/* ==========================================================================
   LAVOX B2B ENTERPRISE - WHOLESALE PORTAL DESIGN SYSTEM
   Standard: Netsim N4 Mobile Enterprise Design System
   ========================================================================== */

:root {
  /* Unified Enterprise B2B Design Tokens */
  --shell-bg: #f8fafc;
  --shell-edge: #e2e8f0;
  --surface: #ffffff;
  --surface-2: #f1f5f9;
  --line: #e2e8f0;
  --line-strong: #cbd5e1;
  
  --ink: #0f172a;
  --ink-soft: #334155;
  --ink-muted: #64748b;

  /* Corporate Royal Blue & Navy Identity */
  --accent: #2563eb;
  --accent-strong: #1d4ed8;
  --accent-soft: rgba(37, 99, 235, 0.08);
  --on-accent: #ffffff;
  --ring: rgba(37, 99, 235, 0.25);

  --second: #0f172a;
  --second-soft: rgba(15, 23, 42, 0.06);
  --on-second: #ffffff;

  /* Standard Semantic Status Tokens */
  --success: #16a34a;
  --success-soft: rgba(22, 163, 74, 0.10);
  --danger: #dc2626;
  --danger-soft: rgba(220, 38, 38, 0.10);
  --warning: #d97706;
  --warning-soft: rgba(217, 119, 6, 0.12);
  --info: #2563eb;
  --info-soft: rgba(37, 99, 235, 0.10);

  /* Typography & Precision Geometry */
  --font-sans: "IBM Plex Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;

  --radius-xs: 4px;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --radius-full: 999px;

  --shadow-raised: 0 1px 3px rgba(15, 23, 42, 0.06), 0 1px 2px rgba(15, 23, 42, 0.04);
  --shadow-overlay: 0 10px 25px -5px rgba(15, 23, 42, 0.15), 0 8px 10px -6px rgba(15, 23, 42, 0.10);

  /* Compatibility Aliases */
  --slate-900: #0f172a;
  --slate-800: #1e293b;
  --slate-700: #334155;
  --slate-600: #475569;
  --slate-500: #64748b;
  --slate-400: #94a3b8;
  --slate-300: #cbd5e1;
  --slate-200: #e2e8f0;
  --slate-100: #f1f5f9;
  --slate-50:  #f8fafc;

  --corp-navy: #0f172a;
  --corp-navy-hover: #1e293b;
  --corp-blue: #2563eb;
  --corp-blue-hover: #1d4ed8;
  --corp-blue-light: #eff6ff;

  --stock-lavox-bg: #f0fdf4;
  --stock-lavox-border: #bbf7d0;
  --stock-lavox-text: #16a34a;

  --stock-antep-bg: #eff6ff;
  --stock-antep-border: #bfdbfe;
  --stock-antep-text: #1d4ed8;

  --status-danger-bg: #fef2f2;
  --status-danger-border: #fecaca;
  --status-danger-text: #dc2626;

  --safe-bottom: env(safe-area-inset-bottom, 16px);
}

/* Base Reset */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

body {
  font-family: var(--font-sans);
  background-color: var(--shell-bg);
  color: var(--ink);
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
  background: none;
  border: none;
  outline: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
}

button {
  cursor: pointer;
  user-select: none;
}

/* ==========================================================================
   TOP ENTERPRISE HEADER
   ========================================================================== */

.app-header {
  background: #ffffff;
  border-bottom: 1px solid var(--slate-200);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.header-inner {
  max-width: 1440px;
  margin: 0 auto;
  padding: 10px 16px;
}

.header-top-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.brand-block {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-logo-img {
  height: 38px;
  width: auto;
  max-width: 140px;
  object-fit: contain;
  display: block;
}

.brand-emblem {
  width: 32px;
  height: 32px;
  background: var(--corp-navy);
  color: #ffffff;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 16px;
  letter-spacing: -0.5px;
}

.brand-titles {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.brand-main-title {
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.5px;
  color: var(--corp-navy);
  text-transform: uppercase;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.brand-sub-title {
  font-size: 11px;
  color: var(--slate-500);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.plasiyer-badge {
  color: var(--corp-navy);
  font-weight: 700;
  background: var(--slate-100);
  padding: 1px 6px;
  border-radius: var(--radius-xs);
  border: 1px solid var(--slate-200);
  white-space: nowrap;
}

@media (max-width: 768px) {
  .header-inner {
    padding: 8px 12px;
  }
  .brand-block {
    gap: 8px;
    min-width: 0;
  }
  .brand-emblem {
    width: 28px;
    height: 28px;
    font-size: 14px;
    min-width: 28px;
  }
  .brand-main-title {
    font-size: 12px;
    letter-spacing: 0;
    max-width: 170px;
  }
  .brand-sub-title {
    font-size: 10px;
  }
  .brand-sub-title > span:first-child,
  .brand-sub-title > span:nth-child(2),
  .brand-sub-title > span:nth-child(3),
  .brand-sub-title > span:nth-child(4) {
    display: none !important;
  }
  .header-nav-menu {
    display: none !important;
  }
  .user-profile-text {
    display: none !important;
  }
  .dropdown-arrow-icon {
    display: none !important;
  }
  .user-profile-pill-btn {
    padding: 4px;
  }
}

/* Desktop Header Navigation - Executive Segmented Control */
.header-nav-menu {
  display: none;
  align-items: center;
  gap: 3px;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  padding: 3px;
  border-radius: 8px;
}

.nav-menu-btn {
  background: transparent;
  color: #475569;
  padding: 6px 14px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.nav-menu-btn:hover {
  background: rgba(255, 255, 255, 0.7);
  color: #0f172a;
}

.nav-menu-btn.active {
  background: #ffffff;
  color: #1d4ed8;
  border-color: #cbd5e1;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.07);
  font-weight: 700;
}

.nav-menu-btn.active svg {
  color: #2563eb;
}

.nav-badge-pill {
  background: #dc2626;
  color: #ffffff;
  font-size: 10px;
  font-weight: 800;
  padding: 1px 6px;
  border-radius: 10px;
}

/* Customer / Account Banner (Executive Compact) */
.account-banner-box {
  margin-top: 8px;
  background: #ffffff;
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-sm);
  padding: 6px 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
}

.account-banner-left {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  flex: 1;
}

.account-banner-avatar {
  width: 30px;
  height: 30px;
  min-width: 30px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--corp-navy), #2563eb);
  color: #ffffff;
  font-size: 11px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  letter-spacing: -0.5px;
  flex-shrink: 0;
}

.account-banner-text-group {
  min-width: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.account-banner-line1 {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}

.account-banner-name {
  font-size: 12.5px;
  font-weight: 800;
  color: var(--slate-900);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.account-banner-line2 {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: var(--slate-500);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.banner-bullet {
  color: var(--slate-300);
  font-weight: 700;
}

.account-tier-tag {
  font-size: 10px;
  font-weight: 600;
  padding: 1.5px 6px;
  border-radius: var(--radius-xs);
  text-transform: uppercase;
  letter-spacing: 0.2px;
  border: 1px solid var(--slate-200);
  background: var(--slate-100);
  color: var(--slate-700);
  white-space: nowrap;
  flex-shrink: 0;
}

.account-tier-tag.f1, .account-tier-tag.f2 {
  background: #f1f5f9;
  color: #1e293b;
  border-color: #cbd5e1;
  font-weight: 700;
}

.account-tier-tag.f3 {
  background: #f8fafc;
  color: #334155;
  border-color: #cbd5e1;
  font-weight: 600;
}

.account-tier-tag.f4, .account-tier-tag.f5 {
  background: #f8fafc;
  color: #64748b;
  border-color: #e2e8f0;
  font-weight: 500;
}

.account-balance-val {
  font-weight: 700;
}
.balance-positive { color: #15803d; }
.balance-negative { color: #b91c1c; }
.balance-zero { color: var(--slate-500); }

.account-banner-actions {
  display: flex;
  align-items: center;
  gap: 5px;
  flex-shrink: 0;
}

.btn-banner-pill {
  padding: 5px 9px;
  font-size: 11px;
  font-weight: 700;
  border-radius: var(--radius-xs);
  background: var(--slate-100);
  border: 1px solid var(--slate-200);
  color: var(--slate-700);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.btn-banner-pill:hover {
  background: var(--slate-200);
  color: var(--slate-900);
}

.btn-banner-pill.primary {
  background: var(--corp-navy);
  border-color: var(--corp-navy);
  color: #ffffff;
}

.btn-banner-pill.primary:hover {
  background: var(--corp-navy-hover);
}

.btn-switch-account {
  background: #ffffff;
  border: 1px solid var(--slate-300);
  color: var(--slate-700);
  font-size: 11px;
  font-weight: 700;
  padding: 5px 10px;
  border-radius: var(--radius-xs);
  display: flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
  transition: all 0.15s ease;
}

.btn-switch-account:hover {
  background: var(--slate-100);
  border-color: var(--slate-400);
}

/* ==========================================================================
   MAIN VIEW CONTAINER
   ========================================================================== */

.app-main-layout {
  max-width: 1440px;
  margin: 0 auto;
  padding: 14px 16px;
}

.tab-screen-view {
  display: none;
}

.tab-screen-view.active {
  display: block;
}

/* ==========================================================================
   SEARCH TOOLBAR & CONTROLS
   ========================================================================== */

.toolbar-panel {
  background: #ffffff;
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  margin-bottom: 12px;
}

.toolbar-primary-row {
  display: flex;
  gap: 8px;
  align-items: center;
}

.search-input-wrap {
  position: relative;
  flex: 1;
  display: flex;
  align-items: center;
}

.search-input-wrap svg {
  position: absolute;
  left: 10px;
  color: var(--slate-400);
  pointer-events: none;
}

.search-box-input {
  width: 100%;
  padding: 8px 12px 8px 34px;
  font-size: 13px;
  border: 1px solid var(--slate-300);
  border-radius: var(--radius-xs);
  background: #ffffff;
  color: var(--slate-900);
  font-weight: 500;
  transition: border-color 0.15s ease;
}

.search-box-input:focus {
  border-color: var(--corp-blue);
}

.btn-toolbar-action {
  background: var(--slate-50);
  border: 1px solid var(--slate-300);
  color: var(--slate-700);
  padding: 8px 12px;
  border-radius: var(--radius-xs);
  font-size: 12px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  transition: all 0.15s ease;
}

.btn-toolbar-action:hover {
  background: var(--slate-100);
  border-color: var(--slate-400);
}

.btn-toolbar-action.primary {
  background: var(--corp-navy);
  border-color: var(--corp-navy);
  color: #ffffff;
}

.btn-toolbar-action.primary:hover {
  background: var(--corp-navy-hover);
}

/* Category Breadcrumb Strip */
.breadcrumb-filter-bar {
  display: none;
  align-items: center;
  justify-content: space-between;
  background: var(--slate-100);
  border: 1px solid var(--slate-300);
  color: var(--slate-800);
  padding: 6px 12px;
  border-radius: var(--radius-xs);
  font-size: 12px;
  font-weight: 700;
  margin-top: 8px;
}

.breadcrumb-filter-bar.visible {
  display: flex;
}

.btn-clear-breadcrumb {
  font-size: 16px;
  color: var(--slate-500);
  padding: 0 4px;
  font-weight: 800;
  transition: color 0.15s ease;
}

.btn-clear-breadcrumb:hover {
  color: var(--slate-900);
}

/* Brand Filter Chips */
.brand-filter-bar {
  display: flex;
  gap: 5px;
  overflow-x: auto;
  padding: 4px 16px 8px 16px;
  margin-top: 2px;
  border-top: 1px solid #f1f5f9;
  scrollbar-width: none;
}
.brand-filter-bar::-webkit-scrollbar {
  display: none;
}

.brand-chip-item {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 9px;
  font-size: 11px;
  font-weight: 600;
  border-radius: 6px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  color: #475569;
  white-space: nowrap;
  transition: all 0.15s ease;
  cursor: pointer;
  user-select: none;
}

.brand-chip-item:hover {
  border-color: #cbd5e1;
  background: #f8fafc;
  color: #0f172a;
}

.brand-chip-item.active {
  background: #1e293b;
  border-color: #1e293b;
  color: #ffffff;
}

.brand-chip-item .brand-count-badge {
  font-size: 9.5px;
  font-weight: 700;
  padding: 1px 5px;
  border-radius: 6px;
  background: #f1f5f9;
  color: #64748b;
}

.brand-chip-item.active .brand-count-badge {
  background: rgba(255, 255, 255, 0.2);
  color: #ffffff;
}

/* ==========================================================================
   PRODUCT CATALOG (HIGH-DENSITY WHOLESALE LIST / GRID)
   ========================================================================== */

.catalog-products-container {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}

@media (min-width: 768px) {
  .catalog-products-container {
    grid-template-columns: repeat(auto-fill, minmax(420px, 1fr));
    gap: 10px;
  }
}

.product-row-card {
  background: #ffffff;
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  transition: border-color 0.15s ease;
}

.product-row-card:hover {
  border-color: var(--slate-300);
}

.product-upper-row {
  display: flex;
  gap: 10px;
}

.product-image-box {
  width: 64px;
  height: 64px;
  min-width: 64px;
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-xs);
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}

.product-image-box img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 2px;
}

.product-cad-fallback {
  width: 100%;
  height: 100%;
  background: var(--slate-50);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--slate-400);
  font-size: 8px;
  font-weight: 800;
  text-transform: uppercase;
}

.product-info-block {
  flex: 1;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.product-sku-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2px;
}

.sku-code-mono {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  color: var(--slate-800);
}

.brand-text-pill {
  font-size: 10px;
  font-weight: 800;
  color: var(--slate-500);
  text-transform: uppercase;
  margin-left: 6px;
}

.price-source-badge {
  font-size: 9px;
  font-weight: 700;
  padding: 1px 5px;
  border-radius: var(--radius-xs);
  text-transform: uppercase;
}

.price-source-badge.lavox {
  background: var(--stock-lavox-bg);
  border: 1px solid var(--stock-lavox-border);
  color: var(--stock-lavox-text);
}

.price-source-badge.antep {
  background: var(--stock-antep-bg);
  border: 1px solid var(--stock-antep-border);
  color: var(--stock-antep-text);
}

.product-name-text {
  font-size: 13px;
  font-weight: 700;
  color: var(--slate-900);
  line-height: 1.35;
  margin-bottom: 4px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* STOCK DISPLAY (STRICT USER RULES - NO EMOJIS) */
.product-stock-line {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  align-items: center;
  margin-top: 2px;
}

.stock-box-pill {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 10.5px;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: var(--radius-xs);
  border: 1px solid transparent;
}

.stock-box-pill.lavox {
  background: var(--stock-lavox-bg);
  border-color: var(--stock-lavox-border);
  color: var(--stock-lavox-text);
}

.stock-box-pill.antep {
  background: var(--stock-antep-bg);
  border-color: var(--stock-antep-border);
  color: var(--stock-antep-text);
}

.stock-box-pill.total {
  background: #ffffff;
  border-color: var(--slate-300);
  color: var(--slate-700);
}

.stock-box-pill.out {
  background: var(--slate-100);
  border-color: var(--slate-200);
  color: var(--slate-400);
}

/* Lower Section: Pricing & Wholesale Quantity Box */
.product-lower-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-top: 8px;
  padding-top: 6px;
  border-top: 1px dashed var(--slate-200);
}

.price-display-block {
  display: flex;
  flex-direction: column;
}

.price-bold-number {
  font-size: 16px;
  font-weight: 900;
  color: var(--corp-navy);
  letter-spacing: -0.3px;
}

.price-tax-sub {
  font-size: 10.5px;
  color: var(--slate-500);
  font-weight: 600;
}

.order-action-block {
  display: flex;
  align-items: center;
  gap: 6px;
}

.stepper-input-box {
  display: flex;
  align-items: center;
  background: #ffffff;
  border: 1px solid var(--slate-300);
  border-radius: var(--radius-xs);
}

.stepper-btn {
  width: 24px;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 800;
  color: var(--slate-700);
  background: var(--slate-50);
}

.stepper-btn:hover {
  background: var(--slate-200);
}

.stepper-val-input {
  width: 34px;
  height: 26px;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  color: var(--slate-900);
  border-left: 1px solid var(--slate-200);
  border-right: 1px solid var(--slate-200);
}

.btn-add-order {
  background: var(--corp-navy);
  color: #ffffff;
  border: 1px solid var(--corp-navy);
  padding: 5px 12px;
  border-radius: var(--radius-xs);
  font-size: 11.5px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: background 0.15s ease;
}

.btn-add-order:hover {
  background: var(--corp-navy-hover);
}

/* ==========================================================================
   CARİ LİSTESİ VIEW
   ========================================================================== */

.cari-list-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}

@media (min-width: 768px) {
  .cari-list-grid {
    grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
    gap: 10px;
  }
}

.cari-item-row {
  background: #ffffff;
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  transition: border-color 0.15s ease;
}

.cari-item-row:hover {
  border-color: var(--slate-300);
}

.cari-item-row.selected {
  border: 1.5px solid var(--corp-navy);
  background: var(--slate-50);
}

/* ==========================================================================
   SEPET / TEKLİF VIEW
   ========================================================================== */

.cart-table-panel {
  background: #ffffff;
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-sm);
  padding: 12px;
  margin-bottom: 10px;
}

.cart-summary-box {
  background: #ffffff;
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-sm);
  padding: 14px;
  margin-top: 12px;
}

.cart-summary-line {
  display: flex;
  justify-content: space-between;
  margin-bottom: 6px;
  font-size: 12.5px;
  color: var(--slate-600);
}

.cart-summary-line.total {
  font-size: 16px;
  font-weight: 900;
  color: var(--corp-navy);
  border-top: 1px dashed var(--slate-200);
  padding-top: 8px;
  margin-top: 8px;
}

.cart-submission-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 8px;
  margin-top: 12px;
}

.btn-submit-vertek {
  background: #fffbeb;
  color: #92400e;
  border: 1.5px solid #fde68a;
  padding: 10px;
  border-radius: var(--radius-xs);
  font-size: 12px;
  font-weight: 800;
  text-align: center;
  transition: all 0.15s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.btn-submit-vertek:hover {
  background: #fef3c7;
  border-color: #f59e0b;
}

.btn-note-chip {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  color: #334155;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.btn-note-chip:hover {
  background: #eff6ff;
  border-color: #3b82f6;
  color: #1d4ed8;
}

.btn-submit-alisip {
  background: var(--corp-navy);
  color: #ffffff;
  border: 1.5px solid var(--corp-navy);
  padding: 10px;
  border-radius: var(--radius-xs);
  font-size: 12px;
  font-weight: 800;
  text-align: center;
  transition: all 0.15s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.btn-submit-alisip:hover {
  background: var(--corp-navy-hover);
}

.btn-submit-alsasat {
  background: #059669;
  color: #ffffff;
  border: 1.5px solid #059669;
  padding: 10px;
  border-radius: var(--radius-xs);
  font-size: 12px;
  font-weight: 800;
  text-align: center;
  transition: all 0.15s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.btn-submit-alsasat:hover {
  background: #047857;
  border-color: #047857;
}

.cart-editing-banner {
  background: #eff6ff;
  border: 1.5px dashed #3b82f6;
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.cart-editing-banner-text {
  font-size: 12.5px;
  font-weight: 700;
  color: #1e40af;
  line-height: 1.35;
}

.doc-filter-bar {
  display: flex;
  gap: 6px;
  margin-bottom: 12px;
  overflow-x: auto;
  padding-bottom: 2px;
}

.doc-filter-btn {
  padding: 6px 14px;
  font-size: 12px;
  font-weight: 700;
  border-radius: var(--radius-sm);
  border: 1px solid var(--slate-300);
  background: #ffffff;
  color: var(--slate-600);
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s ease;
}

.doc-filter-btn:hover {
  border-color: var(--slate-400);
  color: var(--slate-800);
}

.doc-filter-btn.active {
  background: var(--corp-navy);
  color: #ffffff;
  border-color: var(--corp-navy);
}

/* ==========================================================================
   CATEGORY TREE DRAWER / MODAL
   ========================================================================== */

.tree-drawer-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(3px);
  z-index: 250;
  align-items: flex-end;
}

.tree-drawer-backdrop.active {
  display: flex;
}

.tree-drawer-modal {
  background: #ffffff;
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
  border-top-left-radius: var(--radius-lg);
  border-top-right-radius: var(--radius-lg);
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.15);
}

.tree-drawer-head {
  padding: 12px 16px;
  border-bottom: 1px solid var(--slate-200);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.tree-drawer-scroll {
  padding: 12px 16px;
  overflow-y: auto;
  flex: 1;
}

.tree-node-wrap {
  margin-bottom: 4px;
}

.tree-node-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 10px;
  border-radius: var(--radius-xs);
  background: var(--slate-50);
  border: 1px solid var(--slate-200);
  cursor: pointer;
  transition: background 0.1s ease;
}

.tree-node-head:hover {
  background: var(--slate-100);
}

.tree-node-title {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--slate-800);
  display: flex;
  align-items: center;
  gap: 8px;
}

.tree-count-badge {
  background: var(--slate-200);
  color: var(--slate-700);
  font-size: 10px;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 8px;
}

.tree-sub-branch {
  padding-left: 16px;
  margin-top: 2px;
  border-left: 1.5px solid var(--slate-200);
  margin-left: 12px;
  display: none;
}

.tree-sub-branch.open {
  display: block;
}

.tree-leaf-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 8px;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--slate-700);
  border-radius: var(--radius-xs);
  cursor: pointer;
}

.tree-leaf-item:hover {
  background: var(--slate-100);
  color: var(--slate-900);
}

/* ==========================================================================
   BOTTOM NAVIGATION BAR (MOBILE ONLY)
   ========================================================================== */

.bottom-mobile-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: calc(58px + var(--safe-bottom));
  padding-bottom: var(--safe-bottom);
  background: #ffffff;
  border-top: 1px solid var(--slate-200);
  display: flex;
  justify-content: space-around;
  align-items: center;
  z-index: 100;
}

@media (min-width: 769px) {
  .bottom-mobile-nav {
    display: none !important;
  }
  #sahaNavMenu {
    display: inline-flex !important;
  }
  .depo-nav-menu[style*="display: none"],
  #depoNavMenu[style*="display: none"] {
    display: none !important;
  }
  body {
    padding-bottom: 24px;
  }
}

.nav-tab-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--slate-400);
  font-size: 10px;
  font-weight: 700;
  cursor: pointer;
  flex: 1;
  height: 100%;
  position: relative;
  transition: color 0.15s ease;
}

.nav-tab-link.active {
  color: var(--corp-navy);
}

.mobile-badge-pill {
  position: absolute;
  top: 6px;
  right: 25%;
  background: #dc2626;
  color: #ffffff;
  font-size: 9.5px;
  font-weight: 800;
  width: 17px;
  height: 17px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ==========================================================================
   MODAL CARD
   ========================================================================== */

.app-modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(3px);
  z-index: 300;
  align-items: center;
  justify-content: center;
  padding: 14px;
}

.app-modal-overlay.active {
  display: flex;
}

.modal-dialog-card {
  background: #ffffff;
  width: 100%;
  max-width: 520px;
  border-radius: var(--radius-md);
  padding: 16px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.18);
}

/* ==========================================================================
   PERMISSIONS & FORM CONTROLS
   ========================================================================== */

.perm-checkbox-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 8px;
  background: var(--slate-50);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-xs);
  padding: 10px;
}

.perm-check-label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  color: var(--slate-800);
  cursor: pointer;
  user-select: none;
}

.perm-check-label input[type="checkbox"] {
  width: 15px;
  height: 15px;
  accent-color: var(--corp-navy);
  cursor: pointer;
}

/* ==========================================================================
   CARİ 360 MÜŞTERİ & FİNANSAL YÖNETİM PANELİ
   ========================================================================== */

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

.btn-cari-dash-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #ffffff;
  border: 1px solid var(--slate-300);
  padding: 6px 12px;
  border-radius: var(--radius-xs);
  font-size: 12px;
  font-weight: 700;
  color: var(--slate-700);
  transition: all 0.15s ease;
}

.btn-cari-dash-back:hover {
  background: var(--slate-100);
  color: var(--slate-900);
}

.cari-dash-header-card {
  background: #ffffff;
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  margin-bottom: 12px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.cari-dash-identity-row {
  display: flex;
  align-items: center;
  gap: 14px;
}

.cari-dash-emblem {
  width: 44px;
  height: 44px;
  min-width: 44px;
  background: var(--corp-navy);
  color: #ffffff;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 900;
}

.cari-dash-titles {
  flex: 1;
  overflow: hidden;
}

.cari-dash-code-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 2px;
}

.cari-dash-tax {
  font-size: 11px;
  color: var(--slate-500);
  font-weight: 600;
}

.cari-dash-title {
  font-size: 15px;
  font-weight: 800;
  color: var(--slate-900);
  line-height: 1.3;
  margin-bottom: 2px;
}

.cari-dash-subtitle {
  font-size: 11.5px;
  color: var(--slate-500);
  font-weight: 600;
}

.cari-dash-quick-contact {
  display: flex;
  gap: 6px;
}

.btn-contact-action {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 12px;
  border-radius: var(--radius-xs);
  font-size: 11px;
  font-weight: 700;
  text-decoration: none;
  background: #ffffff;
  color: var(--slate-700);
  border: 1px solid var(--slate-300);
  transition: all 0.15s ease;
}

.btn-contact-action:hover {
  background: var(--slate-100);
  color: var(--slate-900);
  border-color: var(--slate-400);
}

.cari-dash-meta-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 10px;
  padding-top: 8px;
  border-top: 1px dashed var(--slate-200);
  font-size: 11px;
  color: var(--slate-600);
}

/* Financial Health KPIs Grid */
.cari-kpi-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px;
  margin-bottom: 12px;
}

@media (min-width: 992px) {
  .cari-kpi-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
  }
}

.kpi-card {
  background: #ffffff;
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-sm);
  padding: 8px 10px;
  display: flex;
  flex-direction: column;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.02);
  transition: all 0.15s ease;
}

.kpi-card:hover {
  border-color: var(--slate-300);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.04);
}

.kpi-card .kpi-label svg {
  color: var(--slate-400);
}

.kpi-label {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 700;
  color: var(--slate-500);
  margin-bottom: 4px;
  letter-spacing: 0.1px;
}

.kpi-value {
  font-size: 17px;
  font-weight: 800;
  color: var(--slate-900);
  letter-spacing: -0.3px;
  line-height: 1.2;
}

.kpi-sub {
  font-size: 10.5px;
  color: var(--slate-400);
  font-weight: 600;
  margin-top: 3px;
}

/* Primary Big Action */
.cari-dash-action-row {
  margin-bottom: 14px;
}

.btn-start-order-primary {
  width: 100%;
  background: var(--corp-navy);
  color: #ffffff;
  border: 1px solid var(--corp-navy);
  padding: 11px 18px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 2px 4px rgba(11, 25, 44, 0.12);
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-start-order-primary:hover {
  background: var(--corp-navy-hover);
  transform: translateY(-1px);
}

/* Dashboard Tabs */
.cari-dash-tabs-bar {
  display: flex;
  gap: 4px;
  border-bottom: 2px solid var(--slate-200);
  margin-bottom: 12px;
}

.cari-dash-tab-btn {
  background: transparent;
  border: none;
  padding: 8px 14px;
  font-size: 12px;
  font-weight: 700;
  color: var(--slate-600);
  display: flex;
  align-items: center;
  gap: 6px;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  cursor: pointer;
  transition: all 0.12s ease;
}

.cari-dash-tab-btn:hover {
  color: var(--slate-900);
}

.cari-dash-tab-btn.active {
  color: var(--corp-navy);
  border-bottom-color: var(--corp-navy);
  font-weight: 800;
}

/* Ledger & Document Tables */
.table-responsive-card {
  background: #ffffff;
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-sm);
  overflow-x: auto;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.02);
}

.b2b-ledger-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
  text-align: left;
}

.b2b-ledger-table thead th {
  background: #f8fafc;
  color: var(--slate-600);
  font-size: 10.5px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  padding: 9px 12px;
  border-bottom: 2px solid var(--slate-200);
  white-space: nowrap;
}

.b2b-ledger-table tbody tr.ledger-row {
  border-bottom: 1px solid var(--slate-100);
  transition: background 0.12s ease;
}

.b2b-ledger-table tbody tr.ledger-row:hover {
  background: #f8fafc;
}

.b2b-ledger-table tbody tr.ledger-row.is-open {
  background: #f1f5f9;
}

.b2b-ledger-table tbody td {
  padding: 9px 12px;
  color: var(--slate-800);
  vertical-align: middle;
}

/* Expandable Invoice / Purchase Item Details Sub-row */
.ledger-expand-row {
  background: #f8fafc;
  border-bottom: 2px solid var(--slate-200);
}

.ledger-expand-inner {
  padding: 10px 14px 14px 14px;
}

.sub-items-card {
  background: #ffffff;
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-xs);
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
}

.sub-items-header {
  background: var(--slate-100);
  padding: 6px 12px;
  font-size: 11px;
  font-weight: 800;
  color: var(--slate-700);
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--slate-200);
}

.sub-items-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 11px;
}

.sub-items-table th {
  background: #ffffff;
  padding: 6px 10px;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.2px;
  color: var(--slate-500);
  border-bottom: 1px solid var(--slate-200);
}

.sub-items-table td {
  padding: 6px 10px;
  border-bottom: 1px solid var(--slate-100);
  color: var(--slate-800);
}

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

.sub-items-table tbody tr:hover {
  background: #fafafa;
}

.btn-toggle-items {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 8px;
  border-radius: var(--radius-xs);
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  background: #ffffff;
  color: var(--slate-700);
  border: 1px solid var(--slate-300);
  transition: all 0.15s ease;
}

.btn-toggle-items:hover {
  background: var(--slate-100);
  color: var(--slate-900);
  border-color: var(--slate-400);
}

/* Past Documents Grid */
.past-documents-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}

.past-doc-card {
  background: #ffffff;
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all 0.12s ease;
}

.past-doc-card:hover {
  border-color: var(--slate-300);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}

.doc-info-col {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.doc-number-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.doc-meta-text {
  font-size: 11px;
  color: var(--slate-500);
}

.doc-action-col {
  display: flex;
  align-items: center;
  gap: 12px;
}

.doc-total-bold {
  font-size: 13.5px;
  font-weight: 800;
  color: var(--corp-navy);
  text-align: right;
}

/* ==========================================================================
   ENTERPRISE CARI GATE & COST FLOOR INDICATORS (ANA BAYİ MALİYET TABANI)
   ========================================================================== */

.price-cost-floor {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 10px;
  font-weight: 700;
  color: var(--slate-600);
  background: var(--slate-100);
  border: 1px solid var(--slate-300);
  padding: 1.5px 6px;
  border-radius: var(--radius-xs);
  margin-top: 3px;
  width: fit-content;
}

.price-cost-floor .cost-floor-label {
  color: var(--slate-500);
  font-weight: 600;
}

.price-cost-floor .cost-floor-val {
  font-family: var(--font-mono);
  color: var(--slate-900);
  font-weight: 800;
}

.alert-no-cari-banner {
  background: #fffbeb;
  border: 1px solid #fde68a;
  color: #92400e;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
  font-size: 12px;
}

.alert-no-cari-banner strong {
  display: block;
  font-size: 12.5px;
  font-weight: 800;
  color: #78350f;
  margin-bottom: 2px;
}

.alert-no-cari-banner span {
  color: #92400e;
}

.cart-gate-panel {
  background: #ffffff;
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-md);
  padding: 44px 20px;
  text-align: center;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
}

.cart-gate-icon {
  width: 52px;
  height: 52px;
  margin: 0 auto 14px auto;
  background: var(--slate-100);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--slate-600);
}

.cart-gate-title {
  font-size: 16px;
  font-weight: 800;
  color: var(--slate-900);
  margin-bottom: 6px;
}

.cart-gate-desc {
  font-size: 12.5px;
  color: var(--slate-500);
  max-width: 420px;
  margin: 0 auto 18px auto;
  line-height: 1.5;
}

.cost-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 10px;
  font-weight: 800;
  padding: 1.5px 6px;
  border-radius: var(--radius-xs);
  font-family: var(--font-mono);
}

.cost-status-badge.success {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  color: #15803d;
}

.cost-status-badge.danger {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #b91c1c;
}

/* ==========================================================================
   NETSIM N4 MOBIL SAHA SATIŞ ACTION GRID & TILES
   ========================================================================== */

.na-action-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 14px;
}

.na-action-tile {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  box-shadow: var(--shadow-raised);
  display: flex;
  align-items: center;
  gap: 12px;
  text-align: left;
  cursor: pointer;
  transition: transform 0.12s ease-out, border-color 0.12s ease-out, box-shadow 0.12s ease-out;
}

.na-action-tile:hover {
  border-color: var(--line-strong);
  box-shadow: 0 3px 8px rgba(38, 35, 34, 0.08);
}

.na-action-tile:active {
  transform: scale(0.98);
}

.na-tile-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.na-tile-icon.accent {
  background: var(--accent-soft);
  color: var(--accent);
}

.na-tile-icon.success {
  background: var(--success-soft);
  color: var(--success);
}

.na-tile-content {
  flex: 1;
  min-width: 0;
}

.na-tile-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.25;
}

.na-tile-desc {
  font-size: 11.5px;
  color: var(--ink-muted);
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Netsim N4 Mobil Bakiye Rozeti */
.netsim-bakiye-pill {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: center;
  padding: 5px 10px;
  border-radius: var(--radius-sm);
  min-width: 100px;
}

.netsim-bakiye-pill.debt {
  background: var(--danger-soft);
  color: var(--danger);
  border: 1px solid rgba(192, 58, 46, 0.2);
}

.netsim-bakiye-pill.credit {
  background: var(--success-soft);
  color: var(--success);
  border: 1px solid rgba(47, 125, 70, 0.2);
}

.netsim-bakiye-pill .pill-label {
  font-size: 9.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  opacity: 0.85;
}

.netsim-bakiye-pill .pill-val {
  font-size: 13px;
  font-weight: 800;
  font-family: var(--font-mono);
  line-height: 1.2;
  margin-top: 1px;
}

/* ==========================================================================
   NETSİM N4 MOBİL SAHA SATIŞ DASHBOARD BİREBİR TASARIM SİSTEMİ
   ========================================================================== */

/* Plasiyer Kimlik Kartı */
.n4-plasiyer-banner {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 14px 18px;
  display: flex;
  align-items: center;
  gap: 14px;
  box-shadow: var(--shadow-raised);
  margin-bottom: 12px;
}

.n4-plasiyer-avatar {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-full);
  background: #fdf3e7;
  border: 2px solid rgba(208, 107, 0, 0.35);
  color: var(--accent);
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  letter-spacing: 0.5px;
}

.n4-plasiyer-info {
  flex: 1;
  min-width: 0;
}

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

.n4-plasiyer-name {
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.2px;
  margin: 0;
}

.n4-portal-badge {
  font-size: 10px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: var(--radius-full);
  background: var(--accent-soft);
  color: var(--accent-strong);
  letter-spacing: 0.5px;
}

.n4-plasiyer-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 3px;
  font-size: 12px;
  color: var(--ink-muted);
}

.n4-sicil-tag {
  font-family: var(--font-mono);
  font-weight: 600;
  color: var(--ink-soft);
  background: var(--surface-2);
  padding: 1px 6px;
  border-radius: var(--radius-xs);
  border: 1px solid var(--line);
}

.n4-role-desc {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.n4-btn-switch-rep {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
  background: var(--surface-2);
  color: var(--ink-soft);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.n4-btn-switch-rep:hover {
  background: var(--line);
  color: var(--ink);
}

/* Aktif Cari Durum Kartı (Pano) */
.n4-active-cari-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 14px 18px;
  box-shadow: var(--shadow-raised);
  margin-bottom: 16px;
  transition: all 0.2s ease;
}

.n4-active-cari-card.empty-state {
  background: #fdfaf6;
  border: 1.5px dashed rgba(208, 107, 0, 0.4);
}

.n4-cari-empty-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.n4-cari-empty-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.n4-cari-empty-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  background: #fdf3e7;
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.n4-cari-empty-title {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--ink);
}

.n4-cari-empty-desc {
  font-size: 12px;
  color: var(--ink-muted);
  margin-top: 2px;
}

.n4-cari-selected-wrap {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.n4-cari-sel-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}

.n4-cari-sel-badge-row {
  display: flex;
  align-items: center;
  gap: 6px;
}

.n4-cari-tag-label {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--ink-muted);
}

.n4-cari-sel-name {
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.3;
}

.n4-cari-sel-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  font-size: 12px;
  color: var(--ink-muted);
}

.n4-cari-sel-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 4px;
}

/* Bölüm Başlığı */
.n4-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
  padding: 0 4px;
}

.n4-section-title {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.8px;
  color: var(--ink-muted);
  text-transform: uppercase;
}

.n4-section-date {
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-soft);
  font-family: var(--font-sans);
}

/* 2x3 Eylem Karoları Grid */
.n4-dashboard-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-bottom: 16px;
}

@media (min-width: 768px) {
  .n4-dashboard-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
  }
}

.n4-grid-tile {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 16px 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: var(--shadow-raised);
  text-align: left;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}

.n4-grid-tile:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(38, 35, 34, 0.08);
  border-color: var(--line-strong);
}

.n4-grid-tile:active {
  transform: translateY(0);
}

.n4-tile-icon-box {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.n4-grid-tile:hover .n4-tile-icon-box {
  transform: scale(1.05);
}

.n4-tile-icon-box.orange {
  background: #fdf3e7;
  color: #d06b00;
}

.n4-tile-icon-box.blue {
  background: #eef4fc;
  color: #1a62cc;
}

.n4-tile-icon-box.teal {
  background: #eaf6f4;
  color: #178272;
}

.n4-tile-icon-box.slate {
  background: #f1efec;
  color: #514d4b;
}

.n4-tile-icon-box.purple {
  background: #f4effa;
  color: #6e3ab2;
}

.n4-tile-icon-box.emerald {
  background: #ecfdf5;
  color: #059669;
}

.n4-tile-icon-box.indigo {
  background: #eef2ff;
  color: #4f46e5;
}

.n4-tile-icon-box.amber {
  background: #fffbeb;
  color: #d97706;
}

/* Active Cari Dedicated Session Bar */
.n4-cari-session-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  background: var(--surface);
  padding: 12px 16px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-raised);
  margin-bottom: 24px;
}

.session-bar-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.session-status-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.2);
  flex-shrink: 0;
  animation: pulse-dot 2s infinite ease-in-out;
}

@keyframes pulse-dot {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.4); }
  70% { transform: scale(1); box-shadow: 0 0 0 5px rgba(16, 185, 129, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.session-bar-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-toolbar-action.danger {
  color: var(--danger);
  border-color: rgba(220, 38, 38, 0.3);
  background: #fef2f2;
}

.btn-toolbar-action.danger:hover {
  background: #fee2e2;
  border-color: var(--danger);
}

.n4-tile-body {
  flex: 1;
  min-width: 0;
}

.n4-tile-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 6px;
}

.n4-tile-badge {
  background: var(--accent);
  color: #ffffff;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: var(--radius-full);
}

.n4-tile-subtitle {
  font-size: 11.5px;
  color: var(--ink-muted);
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.n4-tile-arrow {
  color: var(--ink-muted);
  opacity: 0.5;
  transition: all 0.2s ease;
}

.n4-grid-tile:hover .n4-tile-arrow {
  opacity: 1;
  transform: translateX(2px);
  color: var(--accent);
}

/* Geniş Eylem Kartları */
.n4-wide-cards-container {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 24px;
}

@media (min-width: 768px) {
  .n4-wide-cards-container {
    flex-direction: row;
  }
}

.n4-wide-card {
  flex: 1;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 14px;
  box-shadow: var(--shadow-raised);
  text-align: left;
  cursor: pointer;
  transition: all 0.2s ease;
}

.n4-wide-card:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(38, 35, 34, 0.08);
  border-color: var(--line-strong);
}

.n4-wide-card-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.n4-wide-card.success .n4-wide-card-icon {
  background: rgba(47, 125, 70, 0.10);
  color: var(--success);
}

.n4-wide-card.secondary .n4-wide-card-icon {
  background: rgba(61, 57, 54, 0.08);
  color: var(--second);
}

.n4-wide-card-text {
  flex: 1;
  min-width: 0;
}

.n4-wide-card-title {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--ink);
}

.n4-wide-card-desc {
  font-size: 11.5px;
  color: var(--ink-muted);
  margin-top: 1px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.n4-wide-card-action {
  font-size: 12px;
  font-weight: 700;
  color: var(--accent);
  white-space: nowrap;
}

.n4-wide-card.success .n4-wide-card-action {
  color: var(--success);
}

/* Geri Dönüş Üst Çubukları */
.cari-screen-top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  padding: 0 2px;
}

.cari-screen-count-pill {
  font-size: 11.5px;
  font-weight: 600;
  color: var(--ink-muted);
  background: var(--surface-2);
  padding: 4px 10px;
  border-radius: var(--radius-full);
  border: 1px solid var(--line);
}

/* Güzergah Rota Satırları */
.n4-route-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  transition: all 0.15s ease;
  gap: 12px;
}

.n4-route-row:hover {
  border-color: var(--line-strong);
  background: var(--surface-2);
}

.n4-route-badge {
  width: 28px;
  height: 28px;
  border-radius: var(--radius-full);
  background: var(--surface-2);
  border: 1px solid var(--line);
  font-size: 12px;
  font-weight: 700;
  font-family: var(--font-mono);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--ink-soft);
}

.n4-route-badge.active {
  background: var(--accent-soft);
  border-color: var(--accent);
  color: var(--accent-strong);
}

/* ==========================================================================
   LAVOX B2B PRO — MODERN ENTERPRISE SAAS DESIGN SYSTEM (ALL SCREENS)
   ========================================================================== */

/* Quick Filter Chips Bar */
.filter-chip-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  padding: 4px 2px 12px 2px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.filter-chip-bar::-webkit-scrollbar {
  display: none;
}

.filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-soft);
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s ease;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.03);
}

.filter-chip:hover {
  background: var(--surface-2);
  border-color: var(--line-strong);
  color: var(--ink);
}

.filter-chip.active {
  background: var(--ink);
  color: #ffffff;
  border-color: var(--ink);
}

.filter-chip .chip-count {
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 700;
  opacity: 0.85;
  padding: 1px 6px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-full);
}

.filter-chip:not(.active) .chip-count {
  background: var(--surface-2);
  color: var(--ink-muted);
}

/* 1. PRO CARİ KARTI */
.pro-cari-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 16px;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  gap: 12px;
  position: relative;
}

.pro-cari-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px -4px rgba(15, 23, 42, 0.08);
  border-color: var(--line-strong);
}

.pro-cari-card.active-selected {
  border: 1.5px solid var(--accent);
  background: #fffdfa;
}

.pro-cari-header-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.pro-cari-avatar {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 16px;
  flex-shrink: 0;
  color: #ffffff;
  letter-spacing: 0.5px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
}

.pro-cari-main-col {
  flex: 1;
  min-width: 0;
}

.pro-cari-title-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.pro-cari-title {
  font-size: 14.5px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.3;
  word-break: break-word;
}

.pro-cari-sub {
  font-size: 11.5px;
  color: var(--ink-muted);
  margin-top: 2px;
}

.pro-cari-tags-row {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 6px;
}

.pro-meta-tag {
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 600;
  padding: 2px 6px;
  border-radius: var(--radius-xs);
  background: var(--surface-2);
  color: var(--ink-soft);
  border: 1px solid var(--line);
}

/* Finansal Durum Şeridi */
.pro-cari-finance-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  font-size: 12px;
}

.pro-finance-col {
  display: flex;
  flex-direction: column;
}

.pro-finance-label {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--ink-muted);
}

.pro-finance-val {
  font-family: var(--font-mono);
  font-size: 13.5px;
  font-weight: 800;
  margin-top: 1px;
}

.pro-finance-val.debt {
  color: #dc2626;
}

.pro-finance-val.credit {
  color: #16a34a;
}

.pro-finance-val.zero {
  color: var(--ink-soft);
}

/* Alt Aksiyon Butonları */
.pro-cari-actions-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding-top: 4px;
}

.pro-contact-group {
  display: flex;
  align-items: center;
  gap: 6px;
}

.pro-icon-btn {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
  background: var(--surface);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-soft);
  transition: all 0.15s ease;
}

.pro-icon-btn:hover {
  background: var(--surface-2);
  border-color: var(--line-strong);
  color: var(--ink);
}

.pro-icon-btn.wp:hover {
  background: #f0fdf4;
  border-color: #86efac;
  color: #16a34a;
}

.pro-icon-btn.tel:hover {
  background: #eff6ff;
  border-color: #93c5fd;
  color: #2563eb;
}

.pro-btn-group {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}

.pro-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 13px;
  border-radius: var(--radius-md);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.pro-btn.secondary {
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--ink);
}

.pro-btn.secondary:hover {
  background: var(--surface-2);
  border-color: var(--line-strong);
}

.pro-btn.primary {
  background: var(--ink);
  color: #ffffff;
  border: 1px solid var(--ink);
}

.pro-btn.primary:hover {
  background: #334155;
  border-color: #334155;
}

.pro-btn.accent {
  background: var(--accent);
  color: #ffffff;
  border: 1px solid var(--accent);
}

.pro-btn.accent:hover {
  background: var(--accent-strong);
}

/* 2. PRO ÜRÜN KARTI (KATALOG) */
.pro-product-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 16px;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 14px;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.pro-product-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px -4px rgba(15, 23, 42, 0.08);
  border-color: var(--line-strong);
}

.pro-product-top {
  display: flex;
  gap: 14px;
}

.pro-product-thumb {
  width: 72px;
  height: 72px;
  min-width: 72px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
  position: relative;
  padding: 4px;
}

.pro-thumb-icon-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--corp-navy);
}

.pro-thumb-brand-name {
  font-size: 8.5px;
  font-weight: 800;
  color: var(--slate-500);
  text-transform: uppercase;
  letter-spacing: 0.3px;
  margin-top: 3px;
  max-width: 62px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pro-product-thumb img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #ffffff;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.pro-product-thumb img.loaded {
  opacity: 1;
}

.pro-product-details {
  flex: 1;
  min-width: 0;
}

.pro-sku-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  margin-bottom: 4px;
}

.pro-brand-pill {
  font-size: 10px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: var(--radius-xs);
  background: #eff6ff;
  color: #1d4ed8;
  border: 1px solid #dbeafe;
}

.pro-product-name {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 6px;
}

/* Stok Bilgileri Şerit (Inline Micro-Pills) */
.pro-stock-strip {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
  margin: 4px 0 2px 0;
}

.stock-pill {
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 600;
  padding: 1.5px 6px;
  border-radius: var(--radius-xs);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: #f8fafc;
  color: #475569;
  border: 1px solid #e2e8f0;
  white-space: nowrap;
}

.stock-pill::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
}

.stock-pill.lavox::before { background: #10b981; }
.stock-pill.antep::before { background: #3b82f6; }
.stock-pill.total::before { background: #64748b; }
.stock-pill.out::before { background: #ef4444; }

.stock-pill strong {
  font-weight: 700;
}
.stock-pill.lavox strong { color: #047857; }
.stock-pill.antep strong { color: #1d4ed8; }
.stock-pill.total strong { color: #0f172a; }
.stock-pill.out strong { color: #b91c1c; }

/* Legacy support */
.pro-stock-chips {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.pro-stock-chip {
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 600;
  padding: 2px 7px;
  border-radius: var(--radius-full);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.pro-stock-chip.lavox { background: #f0fdf4; color: #15803d; border: 1px solid #bbf7d0; }
.pro-stock-chip.antep { background: #f8fafc; color: #475569; border: 1px solid #cbd5e1; }
.pro-stock-chip.total { background: #f1f5f9; color: #0f172a; border: 1px solid #cbd5e1; font-weight: 700; }
.pro-stock-chip.out { background: #fef2f2; color: #b91c1c; border: 1px solid #fecaca; }

/* Alt Fiyat ve Sipariş Çubuğu */
.pro-product-bottom {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 10px;
  border-top: 1px dashed var(--line);
  padding-top: 10px;
}

.pro-price-group {
  display: flex;
  flex-direction: column;
}

.pro-net-price {
  font-size: 16px;
  font-weight: 800;
  color: var(--ink);
  font-family: var(--font-mono);
  letter-spacing: -0.3px;
}

.pro-net-price span {
  font-size: 11px;
  font-weight: 600;
  color: var(--ink-muted);
  font-family: var(--font-sans);
}

.pro-kdv-text {
  font-size: 11px;
  color: var(--ink-muted);
}

/* Taban Maliyet Mührü */
.pro-cost-seal {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 3px;
  padding: 2px 6px;
  background: #fef9c3;
  border: 1px solid #fde047;
  border-radius: var(--radius-xs);
  font-size: 10.5px;
  color: #854d0e;
  font-weight: 600;
}

.pro-cost-seal strong {
  font-family: var(--font-mono);
  font-weight: 800;
  color: #713f12;
}

.pro-stepper-box {
  display: flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface-2);
  overflow: hidden;
}

.pro-stepper-btn {
  width: 28px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
  cursor: pointer;
  transition: background 0.1s ease;
}

.pro-stepper-btn:hover {
  background: var(--line);
}

.pro-stepper-input {
  width: 38px;
  height: 32px;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  border: none;
  background: #ffffff;
  color: var(--ink);
}

.pro-btn-add {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 34px;
  padding: 0 14px;
  border-radius: var(--radius-md);
  background: var(--ink);
  color: #ffffff;
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
}

.pro-btn-add:hover {
  background: var(--accent);
}

/* 3. PRO SEPET & İSKONTO KARTI */
.pro-cart-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 16px;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
  margin-bottom: 12px;
}

.pro-cart-top-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}

.pro-cart-discount-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  padding: 8px 12px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  margin-top: 10px;
}

.pro-discount-input-wrap {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--ink-soft);
}

.pro-discount-field {
  padding: 4px 6px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-xs);
  background: #ffffff;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
}

.pro-margin-pill {
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: var(--radius-full);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.pro-margin-pill.success {
  background: #f0fdf4;
  color: #15803d;
  border: 1px solid #bbf7d0;
}

.pro-margin-pill.danger {
  background: #fef2f2;
  color: #b91c1c;
  border: 1px solid #fecaca;
  animation: pulse-danger 1.5s infinite;
}

@keyframes pulse-danger {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.75; }
}

/* 4. PRO SİPARİŞ ÖZET PANELİ */
.pro-order-summary {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 18px;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.05);
  margin-top: 16px;
}

.pro-summary-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  color: var(--ink-muted);
  margin-bottom: 8px;
}

.pro-summary-line strong {
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--ink);
  font-weight: 700;
}

.pro-summary-line.grand-total {
  border-top: 2px solid var(--line);
  padding-top: 10px;
  margin-top: 10px;
  font-size: 15px;
  font-weight: 800;
  color: var(--ink);
}

.pro-summary-line.grand-total strong {
  font-size: 20px;
  color: var(--accent);
  font-weight: 900;
}

/* 5. PRO FİŞ & İŞLEM GEÇMİŞİ KARTI */
.pro-doc-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 16px;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.pro-doc-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px -4px rgba(15, 23, 42, 0.08);
  border-color: var(--line-strong);
}

.pro-doc-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.pro-doc-type-pill {
  font-size: 11px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: var(--radius-xs);
  letter-spacing: 0.04em;
}

.pro-doc-type-pill.alisip {
  background: #eff6ff;
  color: #1d4ed8;
  border: 1px solid #bfdbfe;
}

.pro-doc-type-pill.vertek {
  background: #fef3c7;
  color: #b45309;
  border: 1px solid #fde68a;
}

.pro-doc-type-pill.alsasat,
.pro-doc-type-pill.satis {
  background: #ecfdf5;
  color: #047857;
  border: 1px solid #a7f3d0;
}

/* 6. MOBİL CARİ DETAY / EKSTRE KARTLARI */
.ledger-mobile-cards {
  display: none;
  flex-direction: column;
  gap: 8px;
}

@media (max-width: 768px) {
  .table-responsive-card table.b2b-ledger-table {
    display: none;
  }
  .ledger-mobile-cards {
    display: flex;
  }
}

.pro-ledger-card {
  background: #ffffff;
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition: all 0.15s ease;
}

.pro-ledger-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.pro-ledger-card-dt {
  font-size: 11px;
  font-weight: 700;
  color: var(--slate-500);
  display: flex;
  align-items: center;
  gap: 6px;
}

.pro-ledger-card-belge {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  color: var(--corp-navy);
}

.pro-ledger-card-body {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
}

.pro-ledger-card-desc {
  font-size: 12px;
  color: var(--slate-700);
  flex: 1;
  min-width: 0;
}

.pro-ledger-card-amount {
  text-align: right;
  flex-shrink: 0;
}

.pro-ledger-amount-val {
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 800;
}
.pro-ledger-amount-val.debt { color: #dc2626; }
.pro-ledger-amount-val.credit { color: #16a34a; }

.pro-ledger-card-items-toggle {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 8px;
  font-size: 11px;
  font-weight: 700;
  background: var(--slate-50);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-xs);
  color: var(--corp-navy);
  cursor: pointer;
  margin-top: 4px;
  width: fit-content;
}

.pro-ledger-card-items-toggle:hover {
  background: var(--slate-100);
}

.pro-ledger-mobile-items-box {
  background: var(--slate-50);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-xs);
  padding: 8px 10px;
  margin-top: 6px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.pro-ledger-mobile-item-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11.5px;
  border-bottom: 1px dashed var(--slate-200);
  padding-bottom: 4px;
}
.pro-ledger-mobile-item-row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

/* Catalog Toolbar Mobile Polish */
@media (max-width: 640px) {
  .toolbar-panel {
    padding: 8px 10px;
  }
  .toolbar-primary-row {
    gap: 6px;
  }
  .search-input-wrap {
    min-width: 0;
    flex: 1;
  }
  .search-box-input {
    padding: 7px 10px 7px 30px;
    font-size: 12px;
  }
  .btn-toolbar-action {
    padding: 7px 8px;
    font-size: 11px;
    gap: 4px;
  }
}

/* ==========================================================================
   HEADER USER PROFILE PILL & DROPDOWN (SESSION PLASİYER)
   ========================================================================== */

.user-profile-menu-container {
  position: relative;
  display: flex;
  align-items: center;
}

.user-profile-pill-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 10px 4px 5px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all 0.15s cubic-bezier(0.16, 1, 0.3, 1);
}

.user-profile-pill-btn:hover {
  background: #ffffff;
  border-color: var(--line-strong);
  box-shadow: var(--shadow-raised);
}

.user-profile-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--ink);
  color: #ffffff;
  font-size: 11px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  letter-spacing: -0.5px;
  flex-shrink: 0;
}

.user-profile-text {
  display: flex;
  flex-direction: column;
  text-align: left;
  line-height: 1.15;
}

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

.user-profile-sub {
  font-size: 10px;
  font-weight: 500;
  color: var(--ink-muted);
}

.dropdown-arrow-icon {
  color: var(--ink-muted);
  transition: transform 0.2s ease;
}

.user-profile-menu-container.open .dropdown-arrow-icon {
  transform: rotate(180deg);
}

.user-profile-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 270px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-overlay);
  z-index: 150;
  display: none;
  flex-direction: column;
  overflow: hidden;
  animation: dropdownFade 0.15s ease-out;
}

.user-profile-dropdown.open {
  display: flex;
}

@keyframes dropdownFade {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}

.user-profile-dropdown-header {
  padding: 12px 14px;
  background: var(--surface-2);
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  gap: 10px;
}

.user-profile-dropdown-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--corp-navy);
  color: #ffffff;
  font-weight: 800;
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.drop-rep-name {
  font-size: 13px;
  font-weight: 800;
  color: var(--ink);
}

.drop-rep-sub {
  font-size: 11px;
  color: var(--ink-muted);
  margin-top: 1px;
}

.user-profile-dropdown-body {
  padding: 6px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.user-dropdown-item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 8px 10px;
  border-radius: var(--radius-xs);
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
  transition: background 0.12s ease;
  text-align: left;
  border: none;
  background: transparent;
}

.user-dropdown-item:hover {
  background: var(--surface-2);
}

.user-dropdown-item svg {
  color: var(--ink-soft);
  flex-shrink: 0;
}

.user-dropdown-item.danger {
  color: var(--danger);
}

.user-dropdown-item.danger svg {
  color: var(--danger);
}

.user-dropdown-item.danger:hover {
  background: var(--danger-soft);
}

.dropdown-divider {
  height: 1px;
  background: var(--line);
  margin: 4px 6px;
}

/* ==========================================================================
   BREADCRUMBS & SCREEN TOP BAR POLISH
   ========================================================================== */

.cari-breadcrumb-desktop {
  display: none;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-muted);
}

.cari-breadcrumb-desktop .crumb-root {
  cursor: pointer;
  transition: color 0.15s ease;
}

.cari-breadcrumb-desktop .crumb-root:hover {
  color: var(--accent);
}

.cari-breadcrumb-desktop .crumb-sep {
  color: var(--line-strong);
}

.cari-breadcrumb-desktop .crumb-current {
  color: var(--ink);
  font-weight: 700;
}

@media (min-width: 900px) {
  .cari-breadcrumb-desktop {
    display: flex;
  }
  .mobile-only {
    display: none !important;
  }
}

/* ==========================================================================
   VIEW SWITCHER (TABLE VS CARDS)
   ========================================================================== */

.view-toggle-wrap {
  display: flex;
  align-items: center;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-xs);
  padding: 2px;
  gap: 2px;
}

.view-toggle-btn {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 5px 9px;
  border-radius: 2px;
  font-size: 11.5px;
  font-weight: 700;
  color: var(--ink-muted);
  cursor: pointer;
  transition: all 0.15s ease;
  border: none;
  background: transparent;
}

.view-toggle-btn:hover {
  color: var(--ink);
}

.view-toggle-btn.active {
  background: #ffffff;
  color: var(--ink);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

/* ==========================================================================
   ENTERPRISE DATA TABLE (.pro-cari-table)
   ========================================================================== */

.table-responsive-wrap {
  width: 100%;
  overflow-x: auto;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
  margin-top: 10px;
}

.pro-cari-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12.5px;
  text-align: left;
}

.pro-cari-table thead th {
  background: var(--surface-2);
  color: var(--ink-muted);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 10px 14px;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
  user-select: none;
}

.pro-cari-table tbody tr {
  cursor: pointer;
  transition: background-color 0.12s ease;
}

.pro-cari-table tbody tr:hover td {
  background-color: #fbfaf8;
}

.pro-cari-table tbody tr.active-selected td {
  background-color: #fffdf5;
}

.pro-cari-table tbody td {
  padding: 10px 14px;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  vertical-align: middle;
}

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

/* Table Avatar & Customer Identity */
.tbl-cari-profile {
  display: flex;
  align-items: center;
  gap: 10px;
}

.tbl-cari-avatar {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 12px;
  color: #ffffff;
  flex-shrink: 0;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.tbl-cari-details {
  min-width: 0;
}

.tbl-cari-name {
  font-weight: 700;
  font-size: 13px;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 320px;
}

.tbl-cari-meta {
  font-size: 11px;
  color: var(--ink-muted);
  margin-top: 1px;
}

/* Table Action Buttons */
.tbl-actions-cell {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
}

.tbl-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 28px;
  padding: 0 10px;
  border-radius: var(--radius-xs);
  font-size: 11.5px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
  border: 1px solid transparent;
}

.tbl-btn.primary {
  background: var(--ink);
  color: #ffffff;
}

.tbl-btn.primary:hover {
  background: var(--accent);
}

.tbl-btn.secondary {
  background: var(--surface);
  border-color: var(--line);
  color: var(--ink);
}

.tbl-btn.secondary:hover {
  background: var(--surface-2);
  border-color: var(--line-strong);
}

.tbl-icon-btn {
  width: 28px;
  height: 28px;
  border-radius: var(--radius-xs);
  border: 1px solid var(--line);
  background: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-muted);
  cursor: pointer;
  transition: all 0.15s ease;
}

.tbl-icon-btn:hover {
  background: var(--surface-2);
  color: var(--ink);
}

.tbl-icon-btn.tel:hover {
  background: #eff6ff;
  border-color: #bfdbfe;
  color: #1d4ed8;
}

.tbl-icon-btn.wp:hover {
  background: #f0fdf4;
  border-color: #bbf7d0;
  color: #15803d;
}

/* ==========================================================================
   CARİ-CENTRIC CATALOG & SEPET ERP GATES
   ========================================================================== */

.pro-btn-no-cari {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 34px;
  padding: 0 12px;
  border-radius: var(--radius-md);
  background: #fff8f0;
  color: var(--accent-strong);
  border: 1.5px dashed var(--accent);
  font-size: 11.5px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.pro-btn-no-cari:hover {
  background: var(--accent);
  color: #ffffff;
  border-style: solid;
}

.cart-gate-panel {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 48px 24px;
  text-align: center;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
  margin-top: 12px;
}

.gate-icon-box {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(208, 107, 0, 0.1);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px auto;
}

.gate-title {
  font-size: 18px;
  font-weight: 800;
  color: var(--ink);
  margin-bottom: 8px;
}

.gate-desc {
  font-size: 13px;
  color: var(--ink-muted);
  max-width: 520px;
  margin: 0 auto 20px auto;
  line-height: 1.55;
}

.gate-actions {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}

/* ==========================================================================
   CARİ YETKİLİ & ADRES / GPS ROTA STYLES (NETSİM N4 MOBİL)
   ========================================================================== */

.uppercase-input {
  text-transform: uppercase;
}

.cari-subpane-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  padding: 12px 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  margin-bottom: 14px;
}

.cari-subpane-title {
  font-size: 13.5px;
  font-weight: 800;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 8px;
}

.cari-subpane-desc {
  font-size: 11px;
  color: var(--ink-muted);
  margin-top: 2px;
}

/* Yetkili Cards Grid */
.yetkili-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 14px;
}

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

.yetkili-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  box-shadow: var(--shadow-raised);
  display: flex;
  flex-direction: column;
  gap: 10px;
  position: relative;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.yetkili-card:hover {
  border-color: var(--line-strong);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.yetkili-card.is-primary {
  border-left: 4px solid var(--accent);
}

.yetkili-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.yetkili-card-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--surface-2);
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 13px;
  flex-shrink: 0;
  border: 1px solid var(--line);
}

.yetkili-card-info {
  flex: 1;
  min-width: 0;
}

.yetkili-card-name {
  font-size: 13.5px;
  font-weight: 800;
  color: var(--ink);
  letter-spacing: 0.02em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.yetkili-card-role {
  font-size: 11px;
  font-weight: 600;
  color: var(--accent-strong);
  margin-top: 1px;
}

.yetkili-card-badges {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.yetkili-pill-primary {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 10px;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: var(--radius-full);
  background: #fef3c7;
  color: #92400e;
  border: 1px solid #fde68a;
  text-transform: uppercase;
}

.yetkili-contact-list {
  display: flex;
  flex-direction: column;
  gap: 5px;
  font-size: 11.5px;
  border-top: 1px dashed var(--line);
  padding-top: 8px;
}

.yetkili-contact-item {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--ink-soft);
  word-break: break-all;
}

.yetkili-contact-item svg {
  color: var(--ink-muted);
  flex-shrink: 0;
}

.yetkili-contact-item a {
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
}

.yetkili-contact-item a:hover {
  color: var(--accent);
  text-decoration: underline;
}

.yetkili-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  border-top: 1px solid var(--line);
  padding-top: 8px;
  margin-top: auto;
}

.yetkili-quick-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.yetkili-manage-actions {
  display: flex;
  align-items: center;
  gap: 4px;
}

/* Adres & Konum Kartları */
.cari-route-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

@media (max-width: 768px) {
  .cari-route-grid {
    grid-template-columns: 1fr;
  }
}

.cari-route-box {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.cari-route-box-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
}

.cari-route-box-title {
  font-size: 13px;
  font-weight: 800;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 6px;
}

.cari-route-box-body {
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--ink-soft);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.route-coord-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  background: var(--surface-2);
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  color: var(--ink);
}

.route-accuracy-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: var(--radius-full);
  background: #f0fdf4;
  color: #166534;
  border: 1px solid #bbf7d0;
}

/* ==========================================================================
   NETSİM N4 MOBİL BİREBİR CARİ HUB & SİPARİŞ TASARIMI
   ========================================================================== */

.netsim-hub-container {
  max-width: 680px;
  margin: 0 auto;
  padding: 8px 12px 24px 12px;
}

/* Top Navigation Bar */
.netsim-hub-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 14px;
}

.netsim-hub-topbar-title {
  flex: 1;
  text-align: center;
  font-size: 14.5px;
  font-weight: 800;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  padding: 0 4px;
}

.netsim-btn-ekstre {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11.5px;
  font-weight: 700;
  color: var(--accent);
  background: var(--accent-soft);
  border: 1px solid rgba(208, 107, 0, 0.25);
  padding: 6px 12px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.netsim-btn-ekstre:hover {
  background: var(--accent);
  color: #ffffff;
}

/* 1. Cari Identity Card */
.netsim-hub-id-card {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px 16px;
  box-shadow: var(--shadow-raised);
  margin-bottom: 14px;
}

.netsim-hub-id-top {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.netsim-hub-emblem {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: #eff6ff;
  color: #1d4ed8;
  font-size: 16px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border: 1px solid #bfdbfe;
}

.netsim-hub-id-titles {
  flex: 1;
  min-width: 0;
}

.netsim-hub-company-name {
  font-size: 14px;
  font-weight: 800;
  color: var(--ink);
  line-height: 1.3;
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.netsim-hub-code-pill {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  color: var(--ink-muted);
  background: var(--surface-2);
  padding: 2px 7px;
  border-radius: 5px;
}

/* 3-Pill Financial KPI Row */
.netsim-hub-kpi-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 8px;
}

.netsim-kpi-box {
  padding: 7px 10px;
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.netsim-kpi-box .kpi-label {
  font-size: 10.5px;
  font-weight: 600;
}

.netsim-kpi-box .kpi-val {
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 800;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.netsim-kpi-box.borc {
  background: #fef3c7;
  color: #92400e;
}

.netsim-kpi-box.alacak {
  background: #f1f5f9;
  color: #334155;
}

.netsim-kpi-box.bakiye-debt {
  background: #fee2e2;
  color: #991b1b;
}

.netsim-kpi-box.bakiye-credit {
  background: #dcfce7;
  color: #166534;
}

.netsim-kpi-box.bakiye-zero {
  background: #f1f5f9;
  color: #64748b;
}

/* 2. 4 Action Cards (2x2 Grid) */
.netsim-action-cards-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 16px;
}

.netsim-big-action-card {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 16px 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 7px;
  cursor: pointer;
  transition: all 0.15s ease;
  box-shadow: var(--shadow-raised);
}

.netsim-big-action-card:hover {
  border-color: var(--accent);
  box-shadow: 0 4px 14px rgba(208, 107, 0, 0.08);
}

.netsim-big-action-card:active {
  transform: scale(0.97);
}

.netsim-action-icon-box {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.netsim-action-icon-box.satis {
  background: #eff6ff;
  color: #2563eb;
  border: 1px solid #dbeafe;
}

.netsim-action-icon-box.tahsilat {
  background: #f0fdf4;
  color: #16a34a;
  border: 1px solid #dcfce7;
}

.netsim-action-icon-box.gecmis {
  background: #f0f9ff;
  color: #0284c7;
  border: 1px solid #e0f2fe;
}

.netsim-action-icon-box.teslimat {
  background: #f5f3ff;
  color: #7c3aed;
  border: 1px solid #ede9fe;
}

.netsim-action-card-title {
  font-size: 13.5px;
  font-weight: 800;
  color: var(--ink);
}

.netsim-action-card-sub {
  font-size: 11px;
  color: var(--ink-muted);
}

/* 3. Section Titles */
.netsim-hub-section-header {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-top: 8px;
  margin-bottom: 2px;
}

.netsim-hub-section-title {
  font-size: 14.5px;
  font-weight: 800;
  color: var(--ink);
}

.netsim-hub-count-bubble {
  width: 19px;
  height: 19px;
  border-radius: 50%;
  background: #eff6ff;
  color: #1d4ed8;
  font-size: 11px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #bfdbfe;
}

.netsim-hub-section-desc {
  font-size: 11.5px;
  color: var(--ink-muted);
  margin-bottom: 10px;
}

/* 4. Selected Address Box */
.netsim-address-card-selected {
  border: 1.5px solid var(--accent);
  background: #f8fafc;
  border-radius: 12px;
  padding: 14px 16px;
  margin-bottom: 16px;
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.06);
}

.netsim-address-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}

.netsim-address-radio-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
}

.netsim-address-radio-dot {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 5px solid var(--accent);
  background: #ffffff;
  flex-shrink: 0;
}

.netsim-address-label {
  font-size: 13px;
  font-weight: 800;
  color: var(--ink);
}

.netsim-address-body-text {
  font-size: 12px;
  line-height: 1.5;
  color: var(--ink-soft);
  margin-bottom: 10px;
  padding-left: 26px;
}

.netsim-address-actions-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-left: 26px;
  flex-wrap: wrap;
}

/* 5. Sticky Bottom Bar */
.netsim-hub-sticky-bottom {
  position: sticky;
  bottom: 0;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-top: 1px solid var(--line);
  padding: 12px 16px;
  margin: 18px -12px -24px -12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  z-index: 25;
}

.netsim-sticky-helper-text {
  font-size: 11px;
  font-weight: 600;
  color: var(--accent);
  text-align: center;
}

.netsim-btn-visit-record {
  width: 100%;
  height: 44px;
  border-radius: 10px;
  background: var(--accent);
  color: #ffffff;
  font-size: 13.5px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: none;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(208, 107, 0, 0.25);
  transition: background 0.15s ease;
}

.netsim-btn-visit-record:hover {
  background: var(--accent-strong);
}

/* Floating WhatsApp Button */
.netsim-float-wp {
  position: fixed;
  bottom: 78px;
  right: 18px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #25d366;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(37, 211, 102, 0.4);
  z-index: 50;
  cursor: pointer;
  transition: transform 0.15s ease;
}

.netsim-float-wp:hover {
  transform: scale(1.08);
}

/* ==========================================================================
   NETSİM SİPARİŞ / KATALOG EKRANI BİREBİR TASARIM
   ========================================================================== */

.netsim-order-topbar {
  background: #ffffff;
  border-bottom: 1px solid var(--line);
  padding: 10px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.netsim-order-header-left {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  min-width: 0;
}

.netsim-order-client-info {
  min-width: 0;
}

.netsim-order-client-name {
  font-size: 13.5px;
  font-weight: 800;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.3;
}

.netsim-order-client-code {
  font-size: 11px;
  font-family: var(--font-mono);
  font-weight: 700;
  color: var(--ink-muted);
}

/* Segmented Mode Switcher [ Sipariş | Saha Satış ] */
.netsim-mode-switcher {
  display: flex;
  align-items: center;
  background: var(--surface-2);
  border-radius: 8px;
  padding: 3px;
  gap: 3px;
  flex-shrink: 0;
}

.netsim-mode-pill {
  padding: 5px 12px;
  font-size: 11.5px;
  font-weight: 700;
  color: var(--ink-soft);
  border-radius: 6px;
  cursor: pointer;
  border: none;
  background: none;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.netsim-mode-pill.active {
  background: var(--accent);
  color: #ffffff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
}

/* Cart Status Strip (Directly Under Header) */
.netsim-cart-strip {
  background: #ffffff;
  border-bottom: 1px solid var(--line);
  padding: 10px 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--ink-muted);
  transition: all 0.15s ease;
}

.netsim-cart-strip.has-items {
  background: #fff8f0;
  color: var(--accent-strong);
  justify-content: space-between;
  cursor: pointer;
  border-bottom-color: #fed7aa;
}

.netsim-cart-strip-left {
  display: flex;
  align-items: center;
  gap: 8px;
}

.netsim-cart-strip-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11.5px;
  font-weight: 800;
  color: #ffffff;
  background: var(--accent);
  padding: 4px 10px;
  border-radius: 6px;
}

/* Search and Barcode Bar */
.netsim-order-search-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  background: #ffffff;
  border-bottom: 1px solid var(--line);
}

.netsim-order-search-input-wrap {
  flex: 1;
  position: relative;
  display: flex;
  align-items: center;
}

.netsim-order-search-input-wrap svg {
  position: absolute;
  left: 12px;
  color: var(--ink-muted);
  pointer-events: none;
}

.netsim-order-search-input {
  width: 100%;
  height: 38px;
  border-radius: 10px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  padding: 0 12px 0 36px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink);
  transition: all 0.15s ease;
}

.netsim-order-search-input:focus {
  background: #ffffff;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--ring);
}

.netsim-barcode-scanner-btn {
  width: 40px;
  height: 38px;
  border-radius: 10px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink);
  cursor: pointer;
  flex-shrink: 0;
  transition: all 0.15s ease;
}

.netsim-barcode-scanner-btn:hover {
  background: #ffffff;
  border-color: var(--accent);
  color: var(--accent);
}

/* Ekstre Modal / Landscape Sheet */
.netsim-ekstre-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(2px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px;
  z-index: 1000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.netsim-ekstre-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.netsim-ekstre-sheet {
  width: 100%;
  max-width: 1140px;
  background: #ffffff;
  border-radius: 14px;
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.25);
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  transform: translateY(15px);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.netsim-ekstre-overlay.active .netsim-ekstre-sheet {
  transform: translateY(0);
}

@media (max-width: 767px) {
  .netsim-ekstre-overlay {
    align-items: flex-end;
    padding: 0;
  }
  .netsim-ekstre-sheet {
    border-radius: 20px 20px 0 0;
    max-height: 92vh;
    transform: translateY(100%);
  }
  .netsim-ekstre-overlay.active .netsim-ekstre-sheet {
    transform: translateY(0);
  }
}

.netsim-ekstre-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--line);
}

.netsim-ekstre-title {
  font-size: 15px;
  font-weight: 800;
  color: var(--ink);
}

.netsim-ekstre-currency-toggle {
  display: flex;
  background: var(--surface-2);
  border-radius: 6px;
  padding: 2px;
  gap: 2px;
}

.netsim-currency-btn {
  padding: 3px 8px;
  font-size: 11px;
  font-weight: 700;
  border-radius: 4px;
  color: var(--ink-soft);
  cursor: pointer;
}

.netsim-currency-btn.active {
  background: #c05621;
  color: #ffffff;
  box-shadow: 0 1px 2px rgba(0,0,0,0.08);
}

/* Netsim Yetkili Hub Card & Empty State */
.netsim-yetkili-empty-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 32px 16px;
  background: #fafafa;
  border: 1.5px dashed #e2e8f0;
  border-radius: 14px;
  color: var(--ink-muted);
  text-align: center;
}

.netsim-hub-yetkili-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.03);
  transition: all 0.15s ease;
}

.netsim-hub-yetkili-card:hover {
  border-color: #cbd5e1;
  box-shadow: 0 2px 6px rgba(0,0,0,0.06);
}

.netsim-hub-yetkili-card.is-primary {
  border-color: #fbd38d;
  background: #fffdfa;
}

.netsim-yetkili-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #fdf3e7;
  color: #c05621;
  font-weight: 800;
  font-size: 12.5px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border: 1px solid #fed7aa;
}

.netsim-yetkili-name {
  font-size: 13px;
  font-weight: 800;
  color: var(--ink);
  line-height: 1.3;
}

.netsim-yetkili-role {
  font-size: 11px;
  color: var(--ink-muted);
  font-weight: 600;
  margin-top: 1px;
}

.netsim-yetkili-contact-pills {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 4px;
  flex-wrap: wrap;
}

.netsim-contact-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  color: var(--ink-soft);
  text-decoration: none;
}

/* Ekstre Movement Row */
.netsim-ekstre-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  border-bottom: 1px solid #f1f5f9;
  font-size: 12px;
}

.netsim-ekstre-row:last-child {
  border-bottom: none;
}

.netsim-ekstre-row-left {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.netsim-ekstre-row-date {
  font-size: 11px;
  font-weight: 600;
  color: var(--ink-muted);
}

.netsim-ekstre-row-desc {
  font-weight: 700;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.netsim-ekstre-row-right {
  text-align: right;
  flex-shrink: 0;
}

.netsim-ekstre-amount.debt {
  color: #c05621;
  font-weight: 800;
}

.netsim-ekstre-amount.credit {
  color: #15803d;
  font-weight: 800;
}

/* ==========================================================================
   EXECUTIVE B2B WHOLESALE ORDER TERMINAL & CATALOG SYSTEM
   ========================================================================== */

.b2b-order-workspace-view {
  background: #f8fafc;
  min-height: 100vh;
}

/* 1. Executive Topbar */
.b2b-order-topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #ffffff;
  border-bottom: 1px solid #e2e8f0;
  padding: 10px 16px;
  position: sticky;
  top: 0;
  z-index: 40;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
}

@media (max-width: 900px) {
  .b2b-order-topbar {
    flex-wrap: wrap;
    gap: 10px;
    padding: 8px 12px;
  }
  
  .b2b-order-header-left {
    width: 100%;
    flex: 1 1 100%;
  }

  .b2b-order-header-right {
    width: 100%;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
  }
}

.b2b-order-header-left {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  flex: 1;
}

.btn-b2b-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 6px 10px;
  color: #1e293b;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
  flex-shrink: 0;
}

.btn-b2b-back:hover {
  background: #f1f5f9;
  border-color: #cbd5e1;
  color: #0f172a;
}

.b2b-cari-avatar-badge {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: linear-gradient(135deg, #1e3a8a, #2563eb);
  color: #ffffff;
  font-weight: 800;
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 2px 5px rgba(37, 99, 235, 0.25);
}

.b2b-client-meta {
  min-width: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.b2b-client-title-row {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  flex-wrap: wrap;
}

.b2b-client-name {
  font-size: 13.5px;
  font-weight: 800;
  color: #0f172a;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 220px;
}

@media (min-width: 768px) {
  .b2b-client-name {
    font-size: 14.5px;
    max-width: 380px;
  }
}

.b2b-tier-badge {
  display: inline-flex;
  align-items: center;
  padding: 1px 7px;
  border-radius: 6px;
  font-size: 10.5px;
  font-weight: 800;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  color: #1d4ed8;
  white-space: nowrap;
  flex-shrink: 0;
}

.b2b-client-sub-row {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
}

.b2b-code-mono {
  font-family: var(--font-mono);
  font-weight: 700;
  color: #64748b;
}

.b2b-meta-divider {
  color: #cbd5e1;
}

.b2b-balance-pill {
  font-weight: 700;
  color: #475569;
}

.b2b-balance-pill.debt {
  color: #c05621;
}

.b2b-balance-pill.credit {
  color: #15803d;
}

.b2b-order-header-right {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.b2b-segmented-group {
  display: inline-flex;
  align-items: center;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 2px;
  gap: 2px;
}

.b2b-seg-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  border: none;
  background: transparent;
  padding: 4px 9px;
  font-size: 11.5px;
  font-weight: 700;
  color: #64748b;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.b2b-seg-btn:hover {
  color: #0f172a;
}

.b2b-seg-btn.active {
  background: #ffffff;
  color: #0f172a;
  font-weight: 800;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

/* 2. Topbar Mini-Cart Trigger */
.b2b-top-cart-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  color: #1d4ed8;
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.b2b-top-cart-btn:hover {
  background: #2563eb;
  border-color: #2563eb;
  color: #ffffff;
}

.b2b-top-cart-btn.has-items {
  background: #16a34a;
  border-color: #16a34a;
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(22, 163, 74, 0.25);
}

/* Category Select Dropdown */
.b2b-select-category {
  height: 40px;
  padding: 0 14px;
  border: 1.5px solid #cbd5e1;
  background: #ffffff;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 700;
  color: #0f172a;
  outline: none;
  cursor: pointer;
  transition: all 0.15s ease;
  min-width: 220px;
  max-width: 320px;
}

.b2b-select-category:hover {
  border-color: #94a3b8;
}

.b2b-select-category:focus {
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

/* Active Category Filter Chip */
.b2b-active-category-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 700;
  color: #1d4ed8;
  cursor: pointer;
  transition: all 0.15s ease;
}

.b2b-active-category-chip:hover {
  background: #dbeafe;
  border-color: #93c5fd;
}

.b2b-active-category-chip .chip-clear-icon {
  font-size: 11px;
  color: #60a5fa;
  font-weight: 800;
  margin-left: 2px;
}

.b2b-active-category-chip:hover .chip-clear-icon {
  color: #ef4444;
}

/* Floating Bottom Cart Dock */
.cat-floating-cart-dock {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  background: #0f172a;
  color: #ffffff;
  border-radius: 999px;
  padding: 8px 12px 8px 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.35);
  z-index: 850;
  border: 1px solid rgba(255, 255, 255, 0.15);
  animation: slideUpDock 0.25s ease-out;
}

@keyframes slideUpDock {
  from { opacity: 0; transform: translate(-50%, 20px); }
  to { opacity: 1; transform: translate(-50%, 0); }
}

.cat-dock-info {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
}

.cat-dock-total {
  font-size: 15px;
  font-weight: 900;
  color: #38bdf8;
}

.btn-cat-dock-complete {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #2563eb;
  color: #ffffff;
  border: none;
  border-radius: 999px;
  padding: 8px 18px;
  font-size: 12.5px;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-cat-dock-complete:hover {
  background: #1d4ed8;
}

@media (max-width: 768px) {
  .cat-floating-cart-dock {
    bottom: 76px;
    width: calc(100% - 24px);
    max-width: 480px;
    justify-content: space-between;
    padding: 8px 10px 8px 16px;
    font-size: 12px;
  }
  .btn-cat-dock-complete {
    padding: 7px 14px;
    font-size: 12px;
  }
}

/* 3. Unified Toolbar & Stock Filters */
.b2b-catalog-toolbar {
  padding: 4px 16px 8px 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.b2b-search-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.b2b-search-input-box {
  flex: 1;
  display: flex;
  align-items: center;
  background: #ffffff;
  border: 1.5px solid #cbd5e1;
  border-radius: 10px;
  padding: 0 12px;
  height: 42px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.b2b-search-input-box:focus-within {
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.b2b-search-input {
  border: none;
  outline: none;
  background: transparent;
  width: 100%;
  height: 100%;
  margin-left: 8px;
  font-size: 13.5px;
  font-weight: 600;
  color: #0f172a;
}

.b2b-search-input::placeholder {
  color: #94a3b8;
  font-weight: 500;
}

.btn-clear-search {
  border: none;
  background: transparent;
  color: #94a3b8;
  font-size: 13px;
  cursor: pointer;
  padding: 4px;
}

.btn-clear-search:hover {
  color: #0f172a;
}

.btn-b2b-tool {
  height: 42px;
  padding: 0 14px;
  border: 1.5px solid #cbd5e1;
  background: #ffffff;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 700;
  color: #334155;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
  transition: all 0.15s ease;
  flex-shrink: 0;
}

.btn-b2b-tool:hover {
  border-color: #94a3b8;
  background: #f8fafc;
  color: #0f172a;
}

.b2b-cat-breadcrumb-inline {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  padding: 3px 9px;
  font-size: 11.5px;
  color: #334155;
  white-space: nowrap;
}

.btn-crumb-back {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  color: #1e293b;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-crumb-back:hover {
  background: #1e293b;
  border-color: #1e293b;
  color: #ffffff;
}

.crumb-arrow {
  color: #94a3b8;
  font-weight: 700;
  font-size: 11px;
}

.crumb-text {
  font-size: 11.5px;
  color: #1e293b;
}

.crumb-text .b2b-bread-crumb-link {
  color: #2563eb;
  cursor: pointer;
  font-weight: 600;
}

.crumb-text .b2b-bread-crumb-link:hover {
  text-decoration: underline;
}

.crumb-text strong {
  color: #0f172a;
  font-weight: 700;
}

.crumb-text .b2b-bread-crumb-sep {
  color: #94a3b8;
  margin: 0 4px;
}

.b2b-stock-filter-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.b2b-stock-tabs {
  display: flex;
  align-items: center;
  gap: 6px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 2px;
}

.b2b-stock-tab {
  border: 1px solid #e2e8f0;
  background: #ffffff;
  color: #475569;
  border-radius: 6px;
  padding: 4px 11px;
  font-size: 11.5px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  transition: all 0.15s ease;
}

.b2b-stock-tab:hover {
  border-color: #cbd5e1;
  background: #f8fafc;
  color: #0f172a;
}

.b2b-stock-tab.active {
  background: #1e293b;
  border-color: #1e293b;
  color: #ffffff;
  font-weight: 700;
}

.b2b-stock-tab .dot-lavox {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #16a34a;
  margin-right: 5px;
}

.b2b-stock-tab .dot-antep {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #2563eb;
  margin-right: 5px;
}

.b2b-catalog-counter {
  font-size: 11.5px;
  font-weight: 700;
  color: #64748b;
  background: #f1f5f9;
  padding: 3px 8px;
  border-radius: 6px;
  white-space: nowrap;
}

/* 4. Product Card & Responsive Grid */
.b2b-products-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

@media (min-width: 640px) {
  .b2b-products-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1080px) {
  .b2b-products-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
  }
}

@media (min-width: 1480px) {
  .b2b-products-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
  }
}

.b2b-product-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
  position: relative;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.b2b-product-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
  border-color: #cbd5e1;
}

.b2b-product-card.in-cart {
  border-color: #86efac;
  background: linear-gradient(180deg, #f0fdf4 0%, #ffffff 40px);
}

.b2b-card-top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}

.b2b-card-tags-left {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}

.b2b-card-sku {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 800;
  color: #334155;
  background: #f1f5f9;
  padding: 2px 6px;
  border-radius: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.b2b-card-brand {
  font-size: 10px;
  font-weight: 800;
  color: #1e3a8a;
  background: #dbeafe;
  padding: 2px 6px;
  border-radius: 4px;
  text-transform: uppercase;
}

.b2b-card-middle {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 10px;
}

.b2b-card-thumb-wrap {
  position: relative;
  width: 84px;
  height: 84px;
  min-width: 84px;
  background: #f8fafc;
  border: 1px solid #f1f5f9;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.b2b-card-thumb-wrap img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 4px;
  background: #ffffff;
  z-index: 1;
  border-radius: inherit;
}

.pro-thumb-icon-wrap {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #475569;
}

.pro-thumb-icon-wrap svg {
  stroke: #475569;
}

.pro-thumb-brand-name {
  position: absolute;
  bottom: 2px;
  font-size: 8px;
  font-weight: 800;
  color: #94a3b8;
  letter-spacing: 0.4px;
  text-transform: uppercase;
}

.b2b-in-cart-pill {
  position: absolute;
  top: 2px;
  left: 2px;
  background: #16a34a;
  color: #ffffff;
  font-size: 9px;
  font-weight: 800;
  padding: 1px 5px;
  border-radius: 4px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.b2b-card-content {
  flex: 1;
  min-width: 0;
}

.b2b-card-title {
  font-size: 13px;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.35;
  margin-bottom: 6px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  height: 35px;
}

.b2b-card-stocks {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
}

.b2b-stock-badge {
  font-size: 10px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  gap: 3px;
}

.b2b-stock-badge.lavox {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  color: #166534;
}

.b2b-stock-badge.antep {
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  color: #1e40af;
}

.b2b-stock-badge.total {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  color: #334155;
}

.b2b-stock-badge.out {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #991b1b;
}

.b2b-card-bottom {
  border-top: 1px dashed #e2e8f0;
  padding-top: 10px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 8px;
}

.b2b-price-stack {
  display: flex;
  flex-direction: column;
}

.b2b-price-net {
  font-size: 17px;
  font-weight: 900;
  color: #0f172a;
  letter-spacing: -0.3px;
  line-height: 1.2;
}

.b2b-price-net span {
  font-size: 10.5px;
  font-weight: 700;
  color: #64748b;
  margin-left: 2px;
}

.b2b-price-kdv {
  font-size: 11px;
  font-weight: 600;
  color: #64748b;
  margin-top: 1px;
}

.b2b-cost-seal {
  background: #fffbeb;
  border: 1px solid #fde68a;
  color: #b45309;
  padding: 1px 5px;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  margin-top: 3px;
  width: fit-content;
}

.b2b-action-wrap {
  display: flex;
  align-items: center;
  gap: 6px;
}

.b2b-stepper {
  display: flex;
  align-items: center;
  border: 1.5px solid #cbd5e1;
  border-radius: 8px;
  background: #ffffff;
  height: 32px;
  overflow: hidden;
}

.b2b-step-btn {
  width: 26px;
  height: 100%;
  border: none;
  background: #f8fafc;
  font-size: 13px;
  font-weight: 800;
  color: #334155;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.b2b-step-btn:hover {
  background: #e2e8f0;
}

.b2b-step-input {
  width: 36px;
  height: 100%;
  border: none;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 12.5px;
  font-weight: 700;
  color: #0f172a;
  border-left: 1px solid #e2e8f0;
  border-right: 1px solid #e2e8f0;
}

.btn-b2b-add {
  height: 32px;
  padding: 0 12px;
  background: #0f172a;
  color: #ffffff;
  border: none;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-b2b-add:hover {
  background: #2563eb;
  transform: scale(1.02);
}

.btn-b2b-add.added-success {
  background: #16a34a !important;
}

/* 5. Fast-Order Wholesale Table View */
.b2b-table-wrap {
  overflow-x: auto;
  background: #ffffff;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
}

.b2b-wholesale-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12.5px;
}

.b2b-wholesale-table thead th {
  background: #f8fafc;
  color: #475569;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  padding: 10px 12px;
  border-bottom: 1.5px solid #e2e8f0;
  text-align: left;
}

.b2b-wholesale-table tbody tr {
  border-bottom: 1px solid #f1f5f9;
  transition: background 0.1s ease;
}

.b2b-wholesale-table tbody tr:hover {
  background: #f8fafc;
}

.b2b-wholesale-table tbody tr.in-cart {
  background: #f0fdf4;
}

.b2b-wholesale-table tbody td {
  padding: 8px 12px;
  vertical-align: middle;
}

.b2b-tbl-thumb {
  width: 40px;
  height: 40px;
  border-radius: 6px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.b2b-tbl-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

@media (max-width: 767px) {
  .desktop-only {
    display: none !important;
  }
}

@media (min-width: 768px) {
  .mobile-only {
    display: none !important;
  }
}

/* ==========================================================================
   DEPOCU MODU & SERİ NUMARALI SEVKİYAT TERMİNALİ TASARIMI
   ========================================================================== */

/* Mode Switcher Pill in Header */
.mode-switch-container {
  display: inline-flex;
  align-items: center;
  background: #e2e8f0;
  border-radius: var(--radius-full);
  padding: 3px;
  gap: 2px;
  margin-left: 8px;
}

.mode-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 12px;
  border-radius: var(--radius-full);
  font-size: 11.5px;
  font-weight: 700;
  color: #475569;
  background: transparent;
  border: none;
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.mode-btn:hover {
  color: #0f172a;
}

.mode-btn.active {
  background: #ffffff;
  color: #0f172a;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.mode-btn#btnModeDepo.active {
  background: #1e3a8a;
  color: #ffffff;
}

/* Body state for Depo Modu */
body.app-mode-depo {
  --primary-accent: #1e3a8a;
  --primary-accent-hover: #1e40af;
}

body.app-mode-depo .brand-emblem {
  background: #1e3a8a !important;
}

/* Depo Workspace Layout */
.depo-workspace {
  display: none;
}
.depo-workspace.active {
  display: flex !important;
  flex-direction: column;
  gap: 16px;
  max-width: 1300px;
  margin: 0 auto;
  padding-bottom: 60px;
}

/* Hero Banner */
.depo-hero-banner {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #1e3a8a 100%);
  color: #ffffff;
  border-radius: var(--radius-lg);
  padding: 24px 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.15);
}

.depo-hero-content {
  flex: 1;
  min-width: 280px;
}

.depo-badge-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.depo-hero-tag {
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  background: rgba(255, 255, 255, 0.15);
  color: #93c5fd;
  padding: 3px 8px;
  border-radius: 4px;
}

.depo-status-live {
  font-size: 11px;
  font-weight: 700;
  color: #4ade80;
  display: flex;
  align-items: center;
  gap: 5px;
}

.depo-status-live::before {
  content: '';
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #4ade80;
  box-shadow: 0 0 8px #4ade80;
}

.depo-hero-title {
  font-size: 20px;
  font-weight: 800;
  margin: 0 0 6px 0;
  letter-spacing: -0.3px;
}

.depo-hero-desc {
  font-size: 12.5px;
  color: #cbd5e1;
  margin: 0;
  max-width: 600px;
  line-height: 1.5;
}

.depo-hero-stats {
  display: flex;
  gap: 12px;
}

.depo-stat-card {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-md);
  padding: 12px 18px;
  text-align: center;
  min-width: 105px;
  backdrop-filter: blur(4px);
}

.depo-stat-num {
  font-family: var(--font-mono);
  font-size: 24px;
  font-weight: 800;
  line-height: 1.1;
  color: #ffffff;
}

.depo-stat-lbl {
  font-size: 11px;
  color: #94a3b8;
  margin-top: 4px;
  font-weight: 600;
}

/* Depo Subnav Bar */
.depo-subnav-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 6px 10px;
  flex-wrap: wrap;
  gap: 10px;
}

.depo-subnav-tabs {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.depo-subtab-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  font-size: 12.5px;
  font-weight: 700;
  color: var(--ink-soft);
  background: transparent;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.15s ease;
}

.depo-subtab-btn:hover {
  background: var(--surface-2);
  color: var(--ink);
}

.depo-subtab-btn.active {
  background: #eff6ff;
  border-color: #bfdbfe;
  color: #1e3a8a;
}

.depo-badge-count {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 800;
  background: #e2e8f0;
  color: #334155;
  padding: 1px 7px;
  border-radius: var(--radius-full);
}

.depo-subtab-btn.active .depo-badge-count {
  background: #1e3a8a;
  color: #ffffff;
}

.depo-subnav-actions {
  display: flex;
  gap: 8px;
}

/* Subviews */
.depo-sub-view {
  display: none;
}

.depo-sub-view.active {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* Filter Strip */
.depo-filter-strip {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.depo-filter-pills {
  display: flex;
  gap: 6px;
}

.depo-filter-pill {
  padding: 6px 12px;
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 700;
  border: 1px solid var(--line);
  background: #ffffff;
  color: var(--ink-soft);
  cursor: pointer;
  transition: all 0.15s ease;
}

.depo-filter-pill:hover {
  background: var(--surface-2);
}

.depo-filter-pill.active {
  background: #0f172a;
  color: #ffffff;
  border-color: #0f172a;
}

/* Document Queue Cards */
.depo-document-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: 14px;
}

.depo-queue-card {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 16px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: all 0.15s ease;
  position: relative;
  border-left: 4px solid #94a3b8;
}

.depo-queue-card:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.07);
  border-color: var(--line-strong);
}

.depo-queue-card.status-bekliyor {
  border-left-color: #f59e0b;
}

.depo-queue-card.status-kismi {
  border-left-color: #3b82f6;
}

.depo-queue-card.status-sevk {
  border-left-color: #10b981;
}

.depo-queue-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 8px;
}

.depo-doc-badge {
  font-size: 10px;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.depo-doc-badge.siparis {
  background: #eff6ff;
  color: #1d4ed8;
  border: 1px solid #dbeafe;
}

.depo-doc-badge.satis {
  background: #f0fdf4;
  color: #15803d;
  border: 1px solid #dcfce7;
}

.depo-queue-title {
  font-size: 14.5px;
  font-weight: 800;
  color: var(--ink);
  line-height: 1.3;
}

.depo-queue-meta {
  font-size: 11.5px;
  color: var(--ink-muted);
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.depo-queue-progress-box {
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 8px 12px;
}

.depo-queue-progress-row {
  display: flex;
  justify-content: space-between;
  font-size: 11.5px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 5px;
}

.depo-progress-bar-bg {
  height: 6px;
  background: #e2e8f0;
  border-radius: 3px;
  overflow: hidden;
}

.depo-progress-bar-fill {
  height: 100%;
  background: #3b82f6;
  border-radius: 3px;
  transition: width 0.3s ease;
}

.depo-progress-bar-fill.complete {
  background: #10b981;
}

.depo-queue-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  border-top: 1px solid #f1f5f9;
  padding-top: 10px;
}

.btn-open-terminal {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #1e3a8a;
  color: #ffffff;
  border: none;
  border-radius: var(--radius-sm);
  padding: 8px 16px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s ease;
}

.btn-open-terminal:hover {
  background: #1e40af;
}

/* ==========================================================================
   TERMINAL WORKSPACE (ACTIVE ORDER SERİ OKUTMA ALANI)
   ========================================================================== */
.depo-terminal-header-card {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 18px 22px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.depo-terminal-top-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 12px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 14px;
  margin-bottom: 14px;
}

.depo-terminal-doc-title {
  font-size: 16px;
  font-weight: 800;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 10px;
}

.depo-terminal-stepper {
  display: flex;
  align-items: center;
  gap: 16px;
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 10px 16px;
}

.depo-stepper-left {
  flex: 1;
}

.depo-stepper-label {
  font-size: 11.5px;
  font-weight: 700;
  color: var(--ink-muted);
  margin-bottom: 4px;
  display: flex;
  justify-content: space-between;
}

/* Terminal Items Container */
.depo-items-container {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.depo-item-card {
  background: #ffffff;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
  transition: all 0.2s ease;
}

.depo-item-card.complete {
  border-color: #86efac;
  background: #f0fdf4;
}

.depo-item-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 12px;
}

.depo-item-code-badge {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 800;
  background: #eff6ff;
  color: #1e3a8a;
  padding: 3px 8px;
  border-radius: 4px;
  border: 1px solid #bfdbfe;
}

.depo-item-title {
  font-size: 14px;
  font-weight: 800;
  color: var(--ink);
  margin: 4px 0 0 0;
}

.depo-item-qty-pill {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 800;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  white-space: nowrap;
  background: #f1f5f9;
  color: #334155;
  border: 1px solid #cbd5e1;
}

.depo-item-qty-pill.complete {
  background: #dcfce7;
  color: #166534;
  border-color: #86efac;
}

/* Scanner Barcode Input Box */
.depo-scanner-box {
  display: flex;
  gap: 8px;
  align-items: center;
  background: #f8fafc;
  border: 1.5px dashed #cbd5e1;
  border-radius: var(--radius-sm);
  padding: 8px 12px;
  margin-bottom: 10px;
  transition: all 0.15s ease;
}

.depo-scanner-box:focus-within {
  border-color: #1e3a8a;
  border-style: solid;
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(30, 58, 138, 0.1);
}

.depo-serial-input {
  flex: 1;
  border: none;
  background: transparent;
  font-family: var(--font-mono);
  font-size: 13.5px;
  font-weight: 700;
  color: #0f172a;
  outline: none;
  text-transform: uppercase;
}

.depo-serial-input::placeholder {
  font-family: var(--font-sans);
  font-weight: 500;
  color: #94a3b8;
  font-size: 12px;
}

.btn-scan-camera {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: #e2e8f0;
  border: 1px solid #cbd5e1;
  color: #1e293b;
  border-radius: 4px;
  padding: 5px 10px;
  font-size: 11.5px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
}

.btn-scan-camera:hover {
  background: #cbd5e1;
}

/* Scanned Serial Tags */
.depo-serials-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  min-height: 28px;
  align-items: center;
}

.serial-tag-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  border-radius: 4px;
  padding: 3px 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  color: #0f172a;
  animation: serialPop 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes serialPop {
  0% { transform: scale(0.85); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

.serial-tag-chip .btn-del-serial {
  cursor: pointer;
  color: #94a3b8;
  border: none;
  background: transparent;
  padding: 0;
  display: flex;
  align-items: center;
  font-size: 14px;
  line-height: 1;
}

.serial-tag-chip .btn-del-serial:hover {
  color: #ef4444;
}

/* Bottom Action Bar */
.depo-terminal-action-bar {
  background: #ffffff;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
}

.btn-complete-dispatch {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #10b981;
  color: #ffffff;
  border: none;
  border-radius: var(--radius-sm);
  padding: 10px 22px;
  font-size: 13.5px;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.15s ease;
  box-shadow: 0 2px 8px rgba(16, 185, 129, 0.25);
}

.btn-complete-dispatch:hover {
  background: #059669;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.35);
}

.btn-complete-dispatch:disabled {
  background: #94a3b8;
  box-shadow: none;
  cursor: not-allowed;
  opacity: 0.7;
}

/* Empty State */
.depo-terminal-empty {
  background: #ffffff;
  border: 1.5px dashed var(--line);
  border-radius: var(--radius-lg);
  padding: 60px 20px;
  text-align: center;
  color: var(--ink-muted);
}

.depo-terminal-empty-icon {
  margin-bottom: 14px;
  color: #94a3b8;
}

.depo-terminal-empty h3 {
  font-size: 16px;
  font-weight: 800;
  color: var(--ink);
  margin-bottom: 6px;
}

.depo-terminal-empty p {
  font-size: 13px;
  max-width: 480px;
  margin: 0 auto 18px auto;
  line-height: 1.5;
}

/* Sevk Edilenler Table Card */
.depo-sevkler-table-card {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  overflow-x: auto;
}

.depo-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12.5px;
}

.depo-table th {
  background: #f8fafc;
  color: #475569;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 10px 14px;
  border-bottom: 1.5px solid var(--line);
  text-align: left;
}

.depo-table td {
  padding: 10px 14px;
  border-bottom: 1px solid #f1f5f9;
  vertical-align: middle;
}

.depo-table tbody tr:hover {
  background: #f8fafc;
}

/* ==========================================================================
   PRINTABLE RECEIPT & REPORT STYLES (YATAY / LANDSCAPE FORMAT)
   ========================================================================== */
.depo-receipt-card.landscape-dialog {
  max-width: 1140px !important;
  width: 95vw !important;
  border-radius: 12px;
}

.badge-landscape-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: #f0fdf4;
  color: #15803d;
  border: 1px solid #bbf7d0;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2px;
}

.receipt-landscape-sheet {
  padding: 24px 30px;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  color: #0f172a;
  background: #ffffff;
  box-sizing: border-box;
}

.receipt-landscape-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  border-bottom: 2.5px solid #0f172a;
  padding-bottom: 14px;
  margin-bottom: 16px;
}

.receipt-landscape-header.giris-header {
  border-bottom-color: #047481;
}

.receipt-header-brand-title {
  margin: 0 0 4px 0;
  font-size: 19px;
  font-weight: 900;
  letter-spacing: 0.4px;
  color: #0f172a;
}

.receipt-header-brand-sub {
  font-size: 12px;
  font-weight: 600;
  color: #475569;
}

.receipt-header-badge-box {
  text-align: right;
}

.receipt-header-doc-no {
  font-family: var(--font-mono, monospace);
  font-size: 16px;
  font-weight: 900;
  color: #1e3a8a;
  letter-spacing: 0.5px;
}

.receipt-header-badge-box.giris-badge .receipt-header-doc-no {
  color: #047481;
}

.receipt-header-date {
  font-size: 11.5px;
  color: #64748b;
  margin-top: 3px;
  font-weight: 600;
}

/* 3 Column Metadata Grid in Landscape */
.receipt-landscape-meta-grid {
  display: grid;
  grid-template-columns: 1.4fr 1.2fr 1fr;
  gap: 14px;
  margin-bottom: 16px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 12px 16px;
  font-size: 12px;
}

.receipt-landscape-meta-grid.four-cols {
  grid-template-columns: 1.2fr 1.1fr 1fr 1.1fr;
}

.receipt-meta-box {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.receipt-meta-label {
  font-size: 10px;
  font-weight: 800;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 2px;
}

.receipt-meta-value-main {
  font-size: 13.5px;
  font-weight: 800;
  color: #0f172a;
}

.receipt-meta-value-sub {
  font-size: 11.5px;
  color: #475569;
  font-weight: 600;
}

.receipt-landscape-banner {
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  border-radius: 6px;
  padding: 8px 14px;
  margin-bottom: 16px;
  font-size: 11.5px;
  color: #1e40af;
}

.receipt-landscape-banner.giris-note {
  background: #fffbeb;
  border-color: #fef3c7;
  color: #92400e;
}

/* Table in Landscape */
.receipt-landscape-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 11.5px;
  margin-bottom: 16px;
}

.receipt-landscape-table th {
  padding: 8px 10px;
  border: 1px solid #0f172a;
  background: #0f172a;
  color: #ffffff;
  font-weight: 700;
  text-align: left;
  letter-spacing: 0.3px;
}

.receipt-landscape-table.giris-table th {
  border-color: #047481;
  background: #047481;
}

.receipt-landscape-table td {
  padding: 8px 10px;
  border: 1px solid #cbd5e1;
  vertical-align: top;
}

.receipt-serial-chips-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 4px;
}

.receipt-serial-chip {
  display: inline-block;
  font-family: var(--font-mono, monospace);
  font-size: 10.5px;
  font-weight: 700;
  background: #f1f5f9;
  color: #1e293b;
  border: 1px solid #cbd5e1;
  padding: 2px 6px;
  border-radius: 4px;
  white-space: nowrap;
}

.receipt-serial-chip.blue {
  background: #eff6ff;
  color: #1e3a8a;
  border-color: #bfdbfe;
}

.receipt-serial-chip.green {
  background: #f0fdf4;
  color: #166534;
  border-color: #bbf7d0;
}

/* Legal Notice */
.receipt-landscape-notice {
  border: 1px dashed #cbd5e1;
  border-radius: 6px;
  padding: 10px 14px;
  font-size: 11px;
  color: #475569;
  line-height: 1.5;
  margin-bottom: 22px;
  background: #fafafa;
}

/* Signatures: 3 Equal Columns in Landscape */
.receipt-landscape-signatures {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 24px;
  margin-top: 18px;
  page-break-inside: avoid;
}

.receipt-signature-col {
  border-top: 1.5px solid #94a3b8;
  padding-top: 8px;
  text-align: center;
}

.receipt-sig-role {
  font-size: 10.5px;
  font-weight: 800;
  color: #475569;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.receipt-sig-name {
  font-size: 12.5px;
  font-weight: 700;
  color: #0f172a;
  margin-top: 3px;
  min-height: 18px;
}

.receipt-sig-space {
  height: 44px;
}

.receipt-sig-hint {
  font-size: 10px;
  color: #94a3b8;
  font-weight: 600;
}

/* @PAGE FOR BROWSER PRINT ENGINE - DEFAULTS TO LANDSCAPE (YATAY) */
@page {
  size: landscape;
  margin: 8mm 10mm;
}

@media print {
  html, body {
    width: 100% !important;
    min-width: 100% !important;
    height: auto !important;
    min-height: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    background: #ffffff !important;
    color: #0f172a !important;
    font-size: 10pt !important;
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
  }

  body * {
    visibility: hidden !important;
  }

  /* Only the active printable report modal is visible */
  #depoReceiptModal.active, #depoReceiptModal.active *,
  #depoGirisReceiptModal.active, #depoGirisReceiptModal.active *,
  #documentDetailsModal.active, #documentDetailsModal.active *,
  #netsimEkstreModal.active, #netsimEkstreModal.active * {
    visibility: visible !important;
  }

  #depoReceiptModal.active,
  #depoGirisReceiptModal.active,
  #documentDetailsModal.active,
  #netsimEkstreModal.active {
    position: absolute !important;
    left: 0 !important;
    top: 0 !important;
    width: 100% !important;
    min-width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    background: #ffffff !important;
    box-shadow: none !important;
    border: none !important;
    display: block !important;
    z-index: 999999 !important;
  }

  .depo-receipt-card,
  .modal-dialog-card,
  .netsim-ekstre-sheet {
    position: static !important;
    max-width: 100% !important;
    width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
    box-shadow: none !important;
    border: none !important;
    border-radius: 0 !important;
    background: #ffffff !important;
    max-height: none !important;
    overflow: visible !important;
  }

  .depo-receipt-actions-top,
  .no-print,
  .netsim-ekstre-filter-bar,
  #documentDetailsModal button,
  #documentDetailsModal #convertOrderSection {
    display: none !important;
  }

  .depo-receipt-print-sheet,
  #depoReceiptPrintSheet,
  #depoGirisReceiptPrintSheet,
  #modalDocBody,
  #ekstreContentBody {
    max-height: none !important;
    overflow: visible !important;
    width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
  }

  .receipt-landscape-table,
  #modalDocBody table,
  #ekstreContentBody table {
    width: 100% !important;
    page-break-inside: auto !important;
  }

  tr {
    page-break-inside: avoid !important;
    page-break-after: auto !important;
  }

  thead {
    display: table-header-group !important;
  }

  tfoot {
    display: table-footer-group !important;
  }

  .receipt-landscape-signatures,
  .depo-receipt-signatures {
    page-break-inside: avoid !important;
  }
}

/* ==========================================================================
   MANDATORY SERIAL NUMBER (SERİ NO ZORUNLU) STYLES
   ========================================================================== */
.badge-serial-mandatory-pill {
  font-size: 10px;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 4px;
  background: #fef2f2;
  color: #b91c1c;
  border: 1px solid #fca5a5;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  letter-spacing: 0.3px;
}

.badge-seri-required {
  font-size: 10.5px;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 4px;
  background: #fee2e2;
  color: #991b1b;
  border: 1px solid #fecaca;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  letter-spacing: 0.3px;
}

.badge-seri-optional {
  font-size: 10.5px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 4px;
  background: #f1f5f9;
  color: #64748b;
  border: 1px solid #e2e8f0;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.depo-item-card.seri-mandatory {
  border-left: 5px solid #f59e0b;
}

.depo-item-card.seri-mandatory.missing-serial {
  border-left-color: #ef4444;
  background: #fffcfc;
}

.depo-item-card.seri-mandatory.complete {
  border-left-color: #10b981;
  background: #f0fdf4;
}

.depo-item-qty-pill.missing {
  background: #fef2f2;
  color: #b91c1c;
  border-color: #fca5a5;
}

.depo-progress-status-blocked {
  color: #dc2626 !important;
  font-weight: 800 !important;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: #fee2e2;
  padding: 4px 10px;
  border-radius: 4px;
  border: 1px solid #fca5a5;
}

.btn-complete-dispatch.blocked {
  background: #f1f5f9 !important;
  color: #94a3b8 !important;
  border: 1.5px solid #cbd5e1 !important;
  cursor: not-allowed;
  box-shadow: none !important;
}

.btn-complete-dispatch.blocked:hover {
  background: #fee2e2 !important;
  color: #b91c1c !important;
  border-color: #fca5a5 !important;
}

/* ==========================================================================
   MAL KABUL & STOK GİRİŞ TERMİNALİ STYLES
   ========================================================================== */

.depo-giris-container {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 14px;
}

.depo-giris-header-card {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}

.depo-giris-mode-selector {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.depo-giris-mode-btn {
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 700;
  border: 1.5px solid var(--line);
  background: #f8fafc;
  color: var(--ink-muted);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s ease;
}

.depo-giris-mode-btn:hover {
  border-color: #047481;
  color: #047481;
}

.depo-giris-mode-btn.active {
  background: #047481;
  border-color: #047481;
  color: #ffffff;
  box-shadow: 0 2px 6px rgba(4, 116, 129, 0.25);
}

.depo-selected-alis-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  border-radius: 8px;
  padding: 8px 14px;
  font-size: 12.5px;
  color: #065f46;
}

.depo-selected-alis-badge strong {
  font-weight: 800;
}

.depo-scan-workflow-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

@media (max-width: 840px) {
  .depo-scan-workflow-grid {
    grid-template-columns: 1fr;
  }
}

.depo-scan-box {
  background: #ffffff;
  border: 2px solid #e2e8f0;
  border-radius: var(--radius-md);
  padding: 16px;
  transition: all 0.2s ease;
  position: relative;
}

.depo-scan-box.step-active {
  border-color: #047481;
  box-shadow: 0 0 0 3px rgba(4, 116, 129, 0.12);
}

.depo-scan-box.step-serial-active {
  border-color: #dc2626;
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.12);
}

.depo-scan-box-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.depo-scan-step-tag {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 3px 8px;
  border-radius: 4px;
  background: #f1f5f9;
  color: #475569;
}

.depo-scan-step-tag.active-barcode {
  background: #e0f2fe;
  color: #0369a1;
}

.depo-scan-step-tag.active-serial {
  background: #fee2e2;
  color: #b91c1c;
}

.depo-scan-input-group {
  display: flex;
  gap: 8px;
}

.depo-scan-input-large {
  flex: 1;
  height: 46px;
  padding: 8px 14px;
  font-size: 15px;
  font-weight: 700;
  border: 2px solid #cbd5e1;
  border-radius: 8px;
  background: #ffffff;
  color: #0f172a;
  outline: none;
  transition: border-color 0.2s;
}

.depo-scan-input-large:focus {
  border-color: #047481;
}

.depo-scan-input-large.serial-focus:focus {
  border-color: #dc2626;
}

.depo-active-prod-preview {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 12px;
  margin-top: 12px;
  display: flex;
  align-items: center;
  gap: 14px;
}

.depo-active-prod-img {
  width: 56px;
  height: 56px;
  min-width: 56px;
  border-radius: 6px;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}

.depo-active-prod-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.depo-active-prod-info {
  flex: 1;
  min-width: 0;
}

.depo-serial-chips-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  max-height: 140px;
  overflow-y: auto;
  margin-top: 10px;
  padding: 6px;
  background: #f8fafc;
  border: 1px dashed #cbd5e1;
  border-radius: 6px;
}

.depo-serial-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  color: #1e40af;
  padding: 3px 8px;
  border-radius: 4px;
  font-family: monospace;
  font-size: 11.5px;
  font-weight: 700;
}

.depo-serial-chip-del {
  cursor: pointer;
  color: #93c5fd;
  font-weight: 800;
  padding: 0 2px;
  line-height: 1;
  border-radius: 2px;
}

.depo-serial-chip-del:hover {
  color: #ef4444;
  background: #fee2e2;
}

.depo-giris-cart-card {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}

.depo-giris-bottom-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  flex-wrap: wrap;
  gap: 14px;
  position: sticky;
  bottom: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  z-index: 10;
}

.depo-giris-stat-pills {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.depo-giris-stat-pill {
  display: flex;
  flex-direction: column;
}

.depo-giris-stat-pill span {
  font-size: 11px;
  color: var(--ink-muted);
  font-weight: 600;
  text-transform: uppercase;
}

.depo-giris-stat-pill strong {
  font-size: 18px;
  font-weight: 800;
  color: var(--ink);
}

.btn-complete-giris {
  padding: 12px 28px;
  font-size: 15px;
  font-weight: 800;
  border-radius: 8px;
  border: none;
  background: #16a34a;
  color: #ffffff;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s ease;
  box-shadow: 0 3px 10px rgba(22, 163, 74, 0.3);
}

.btn-complete-giris:hover {
  background: #15803d;
  transform: translateY(-1px);
}

.btn-complete-giris.blocked {
  background: #f1f5f9 !important;
  color: #94a3b8 !important;
  cursor: not-allowed;
  box-shadow: none !important;
  border: 1.5px solid #cbd5e1 !important;
}

/* ==========================================================================
   PLASİYER SAHA SATIŞ UX & MOBİL KULLANICI DOSTU TASARIM SİSTEMİ
   ========================================================================== */

/* 1. CARİ LİSTESİ MOBİL ZORUNLU KART GÖRÜNÜMÜ */
@media (max-width: 900px) {
  #cariTableWrapper {
    display: none !important;
  }
  #cariViewToggleWrap {
    display: none !important;
  }
  #cariListContainer {
    display: flex !important;
    flex-direction: column !important;
    gap: 12px !important;
    padding: 4px 0 30px 0 !important;
  }
  .toolbar-primary-row {
    flex-direction: column !important;
    gap: 10px !important;
    align-items: stretch !important;
  }
  .search-input-wrap {
    width: 100% !important;
    min-width: 100% !important;
  }
  .cari-screen-top-bar {
    padding: 10px 12px;
  }
}

/* 2. PLASİYER NATIVE CARİ KARTLARI (TOUCH-FRIENDLY) */
.pro-cari-card {
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
  user-select: none;
}
.pro-cari-card:active {
  transform: scale(0.985);
  background: #fbfaf8;
}
.pro-cari-card.active-selected {
  border: 2px solid #d06b00 !important;
  background: #fffbf5 !important;
  box-shadow: 0 4px 16px rgba(208, 107, 0, 0.12) !important;
}
.pro-cari-card-fast-select {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 800;
  border-radius: 8px;
  border: none;
  background: #262322;
  color: #ffffff;
  cursor: pointer;
  transition: background 0.15s;
}
.pro-cari-card-fast-select:hover {
  background: #d06b00;
}

/* 3. DASHBOARD MÜŞTERİ SEÇİM MERKEZİ (HERO GATE) */
.dash-cari-hero-gate {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 24px 20px;
  margin-bottom: 20px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  text-align: center;
}
.dash-cari-hero-icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(208, 107, 0, 0.10);
  color: #d06b00;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 12px;
}
.dash-cari-hero-title {
  font-size: 17px;
  font-weight: 800;
  color: var(--ink);
  margin-bottom: 4px;
}
.dash-cari-hero-sub {
  font-size: 13px;
  color: var(--ink-muted);
  max-width: 480px;
  margin: 0 auto 16px;
  line-height: 1.5;
}
.dash-cari-quick-search-wrap {
  max-width: 520px;
  margin: 0 auto 14px;
  position: relative;
}
.dash-cari-quick-input {
  width: 100%;
  padding: 12px 16px 12px 42px;
  background: #f8fafc;
  border: 1.5px solid #cbd5e1;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 600;
  color: #0f172a;
  outline: none;
  transition: all 0.2s;
}
.dash-cari-quick-input:focus {
  background: #ffffff;
  border-color: #d06b00;
  box-shadow: 0 0 0 3px rgba(208, 107, 0, 0.15);
}
.dash-cari-quick-search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: #94a3b8;
  pointer-events: none;
}
.dash-cari-pills-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}
.dash-cari-pill-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 20px;
  font-size: 12.5px;
  font-weight: 700;
  border: 1px solid var(--line);
  background: var(--surface-2);
  color: var(--ink);
  cursor: pointer;
  transition: all 0.15s;
}
.dash-cari-pill-btn:hover, .dash-cari-pill-btn:active {
  background: #ffffff;
  border-color: #d06b00;
  color: #d06b00;
}
.dash-cari-pill-btn.primary {
  background: #d06b00;
  color: #ffffff;
  border-color: #d06b00;
}
.dash-cari-pill-btn.primary:hover {
  background: #b55c00;
}

/* 4. AKTİF CARİ YÖNETİM ÇUBUĞU (STICKY EXECUTIVE BANNER) */
.active-cari-sticky-bar {
  background: #ffffff;
  border: 1.5px solid #d06b00;
  border-radius: var(--radius-md);
  padding: 10px 14px;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  box-shadow: 0 2px 10px rgba(208, 107, 0, 0.10);
}
.active-cari-sticky-left {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.active-cari-sticky-avatar {
  width: 38px;
  height: 38px;
  min-width: 38px;
  border-radius: 10px;
  color: #ffffff;
  font-weight: 800;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.active-cari-sticky-name {
  font-size: 14px;
  font-weight: 800;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.active-cari-sticky-meta {
  font-size: 11px;
  color: var(--ink-muted);
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 1px;
  flex-wrap: wrap;
}
.active-cari-sticky-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

/* 5. MOBİL YÜZEN SEPET BUTONU (FAB) */
.fab-cart-btn {
  position: fixed;
  right: 18px;
  bottom: 74px;
  z-index: 95;
  background: #d06b00;
  color: #ffffff;
  padding: 12px 18px;
  border-radius: 28px;
  box-shadow: 0 6px 20px rgba(208, 107, 0, 0.4);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 800;
  border: none;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease;
}
.fab-cart-btn:active {
  transform: scale(0.95);
}
.fab-cart-badge {
  background: #ffffff;
  color: #d06b00;
  padding: 2px 7px;
  border-radius: 12px;
  font-size: 11.5px;
  font-weight: 900;
}

/* 6. DOĞRUDAN MÜŞTERİ SEÇİM VE ARAMA ÇALIŞMA ALANI (DASHBOARD) */
.dash-nocari-workspace {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 24px;
}

.dash-welcome-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
}

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

.dash-welcome-avatar {
  width: 44px;
  height: 44px;
  min-width: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
  color: #ffffff;
  font-weight: 800;
  font-size: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.dash-welcome-title {
  font-size: 15px;
  font-weight: 800;
  color: #0f172a;
}

.dash-welcome-sub {
  font-size: 12.5px;
  color: #64748b;
  margin-top: 2px;
}

.dash-welcome-badge {
  background: #f1f5f9;
  color: #334155;
  font-size: 12px;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: 20px;
  white-space: nowrap;
  border: 1px solid #e2e8f0;
}

.dash-live-search-bar {
  position: relative;
  width: 100%;
}

.dash-search-icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: #94a3b8;
  pointer-events: none;
}

.dash-search-input {
  width: 100%;
  padding: 14px 44px 14px 46px;
  background: #ffffff;
  border: 2px solid #cbd5e1;
  border-radius: 14px;
  font-size: 15px;
  font-weight: 600;
  color: #0f172a;
  outline: none;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
  transition: all 0.2s ease;
}

.dash-search-input:focus {
  border-color: #d06b00;
  box-shadow: 0 0 0 4px rgba(208, 107, 0, 0.12);
}

.dash-search-clear {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #e2e8f0;
  color: #475569;
  border: none;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.dash-filter-chips-row {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 2px;
  scrollbar-width: none;
}
.dash-filter-chips-row::-webkit-scrollbar {
  display: none;
}

.dash-chip-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 20px;
  border: 1px solid #cbd5e1;
  background: #ffffff;
  color: #334155;
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s ease;
}

.dash-chip-btn:hover {
  border-color: #d06b00;
  color: #d06b00;
}

.dash-chip-btn.active {
  background: #1e293b;
  color: #ffffff;
  border-color: #1e293b;
}

.dash-chip-btn.debt.active {
  background: #dc2626;
  color: #ffffff;
  border-color: #dc2626;
}

.dash-chip-btn .chip-count {
  background: rgba(0, 0, 0, 0.08);
  padding: 2px 7px;
  border-radius: 10px;
  font-size: 11px;
}

.dash-chip-btn.active .chip-count {
  background: rgba(255, 255, 255, 0.25);
  color: #ffffff;
}

.dash-cari-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 12px;
}

@media (max-width: 768px) {
  .dash-welcome-card {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }
  .dash-welcome-badge {
    text-align: center;
  }
  .dash-cari-cards-grid {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   KURUMSAL MÜŞTERİ (CARİ) LİSTE & TABLO SİSTEMİ (ENTERPRISE CUSTOMER HUB)
   ========================================================================== */

/* ==========================================================================
   ENTERPRISE ERP CUSTOMER WORKBENCH (NETSIM N4 B2B STANDARDS)
   ========================================================================== */

.erp-customer-workbench {
  display: flex !important;
  flex-direction: column !important;
  width: 100%;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  box-shadow: 0 1px 4px rgba(15, 23, 42, 0.05);
  overflow: hidden;
  margin-bottom: 24px;
}

/* 1. Workbench Header & Actions */
.erp-wb-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 16px;
  background: #f8fafc;
  border-bottom: 1px solid #e2e8f0;
  gap: 12px;
}

.erp-wb-title-box {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.erp-wb-main-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: 0.3px;
  text-transform: uppercase;
}

.erp-wb-main-title svg {
  color: #0284c7;
}

.erp-wb-stats {
  display: flex;
  align-items: center;
  gap: 6px;
}

.erp-stat-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 4px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  color: #475569;
}

.erp-stat-badge.total {
  background: #f1f5f9;
  color: #0f172a;
  font-family: var(--font-mono);
  font-weight: 800;
}

.erp-stat-badge.debt {
  color: #b91c1c;
  border-color: #fecaca;
  background: #fef2f2;
}

.erp-stat-badge.credit {
  color: #15803d;
  border-color: #bbf7d0;
  background: #f0fdf4;
}

.stat-indicator {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  display: inline-block;
}

.stat-indicator.red { background: #dc2626; }
.stat-indicator.green { background: #16a34a; }

.erp-wb-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.erp-wb-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 13px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  background: #ffffff;
  color: #334155;
  border: 1px solid #cbd5e1;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.erp-wb-btn:hover {
  background: #f8fafc;
  color: #0f172a;
  border-color: #94a3b8;
}

.erp-wb-btn.primary {
  background: #2563eb;
  color: #ffffff;
  border: 1px solid #1d4ed8;
  box-shadow: 0 1px 2px rgba(37, 99, 235, 0.2);
}

.erp-wb-btn.primary:hover {
  background: #1d4ed8;
  border-color: #1e40af;
}

/* 2. Control Toolbar */
.erp-wb-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 16px;
  background: #ffffff;
  border-bottom: 1px solid #e2e8f0;
  gap: 12px;
}

.erp-search-wrap {
  position: relative;
  flex: 1;
  max-width: 520px;
}

.erp-search-ico {
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  color: #94a3b8;
  pointer-events: none;
}

.erp-search-input {
  width: 100%;
  padding: 6px 30px 6px 32px;
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  border-radius: 5px;
  font-size: 12.5px;
  font-weight: 500;
  color: #0f172a;
  outline: none;
  transition: all 0.15s;
}

.erp-search-input:focus {
  background: #ffffff;
  border-color: #0284c7;
  box-shadow: 0 0 0 2px rgba(2, 132, 199, 0.12);
}

.erp-clear-btn {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #e2e8f0;
  color: #475569;
  border: none;
  font-size: 10px;
  font-weight: bold;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.erp-toolbar-filters {
  display: flex;
  align-items: center;
  gap: 10px;
}

.erp-select-wrap {
  display: flex;
  align-items: center;
  gap: 6px;
}

.erp-select-label {
  font-size: 11px;
  font-weight: 700;
  color: #64748b;
  text-transform: uppercase;
  white-space: nowrap;
}

.erp-select-input {
  padding: 5px 10px;
  border: 1px solid #cbd5e1;
  border-radius: 5px;
  background: #f8fafc;
  font-size: 12px;
  font-weight: 600;
  color: #0f172a;
  outline: none;
  cursor: pointer;
  max-width: 190px;
}

.erp-select-input:focus {
  border-color: #0284c7;
  background: #ffffff;
}

.erp-seg-control {
  display: flex;
  align-items: center;
  background: #f1f5f9;
  padding: 2px;
  border-radius: 5px;
  gap: 2px;
}

.erp-seg-btn {
  padding: 4px 9px;
  border-radius: 4px;
  border: none;
  background: transparent;
  font-size: 11.5px;
  font-weight: 700;
  color: #475569;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: all 0.15s;
}

.erp-seg-btn.active {
  background: #ffffff;
  color: #0f172a;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
}

.erp-seg-btn.debt.active {
  color: #b91c1c;
}

.erp-dot-red {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #dc2626;
  display: inline-block;
}

.erp-seg-num {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 800;
  padding: 1px 5px;
  background: rgba(0, 0, 0, 0.05);
  border-radius: 4px;
}

/* 3. Quick City Strip (Hidden: Replaced by elegant dropdown) */
.erp-quick-cities-strip {
  display: none !important;
}

.erp-city-tab {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 9px;
  border-radius: 4px;
  border: 1px solid #e2e8f0;
  background: #ffffff;
  color: #475569;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s;
}

.erp-city-tab:hover {
  background: #f1f5f9;
  border-color: #cbd5e1;
  color: #0f172a;
}

.erp-city-tab.active {
  background: #0f172a;
  border-color: #0f172a;
  color: #ffffff;
  font-weight: 700;
}

.erp-city-tab .tab-cnt {
  font-size: 9.5px;
  font-family: var(--font-mono);
  font-weight: 700;
  opacity: 0.8;
}

/* 4. Enterprise Table */
.erp-table-container {
  width: 100%;
  overflow-x: auto;
}

.erp-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12.5px;
  text-align: left;
}

.erp-table thead th {
  background: #f8fafc;
  color: #475569;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 8px 12px;
  border-bottom: 1px solid #cbd5e1;
  white-space: nowrap;
  position: sticky;
  top: 0;
  z-index: 2;
}

.erp-table tbody tr {
  border-bottom: 1px solid #f1f5f9;
  transition: background 0.1s ease;
  cursor: pointer;
}

.erp-table tbody tr:hover {
  background: #f8fafc;
}

.erp-table tbody tr.active-selected {
  background: #eff6ff !important;
}

.erp-table tbody tr.active-selected td:first-child {
  border-left: 3px solid #2563eb;
}

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

.erp-table td {
  padding: 8px 12px;
  vertical-align: middle;
}

.erp-code-cell {
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 600;
  color: #1e293b;
  white-space: nowrap;
}

.erp-tier-tag {
  display: inline-block;
  font-size: 10px;
  font-weight: 600;
  padding: 1.5px 6px;
  border-radius: 4px;
  margin-top: 3px;
  text-transform: uppercase;
  letter-spacing: 0.2px;
  border: 1px solid #e2e8f0;
  background: #f8fafc;
  color: #475569;
}

.erp-tier-tag.f1, .erp-tier-tag.f2 {
  color: #1e293b;
  background: #f1f5f9;
  border-color: #cbd5e1;
  font-weight: 700;
}

.erp-tier-tag.f3 {
  color: #334155;
  background: #f8fafc;
  border-color: #cbd5e1;
  font-weight: 600;
}

.erp-tier-tag.f4, .erp-tier-tag.f5 {
  color: #64748b;
  background: #f8fafc;
  border-color: #e2e8f0;
  font-weight: 500;
}

.erp-cari-name {
  font-size: 12.5px;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.3;
}

.erp-cari-meta {
  font-size: 10.5px;
  color: #64748b;
  margin-top: 1px;
}

.erp-loc-primary {
  font-size: 12px;
  font-weight: 700;
  color: #1e293b;
}

.erp-loc-district {
  font-weight: 500;
  color: #475569;
  margin-left: 3px;
}

.erp-loc-address {
  font-size: 11px;
  color: #64748b;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 320px;
  margin-top: 1px;
}

.erp-phone-text {
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 600;
  color: #334155;
  white-space: nowrap;
}

.erp-phone-links {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-left: 6px;
}

.erp-mini-icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 4px;
  border: 1px solid #cbd5e1;
  background: #ffffff;
  color: #475569;
  text-decoration: none;
  transition: all 0.15s;
}

.erp-mini-icon-btn:hover {
  background: #e2e8f0;
  color: #0f172a;
}

.erp-mini-icon-btn.wp:hover {
  background: #16a34a;
  border-color: #16a34a;
  color: #ffffff;
}

.erp-bal-box {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 1px;
}

.erp-bal-val {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.erp-bal-val.debt { color: #b91c1c; }
.erp-bal-val.credit { color: #15803d; }
.erp-bal-val.zero { color: #64748b; }

.erp-tag-debt {
  font-size: 9px;
  font-weight: 800;
  color: #b91c1c;
  background: #fef2f2;
  border: 1px solid #fecaca;
  padding: 0 4px;
  border-radius: 3px;
}

.erp-tag-credit {
  font-size: 9px;
  font-weight: 800;
  color: #15803d;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  padding: 0 4px;
  border-radius: 3px;
}

.erp-risk-val {
  font-size: 10px;
  color: #64748b;
  font-weight: 500;
  white-space: nowrap;
}

.erp-avatar-monogram {
  width: 36px;
  height: 36px;
  min-width: 36px;
  border-radius: 8px;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  color: #334155;
  font-weight: 700;
  font-size: 12.5px;
  letter-spacing: 0.3px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease;
  user-select: none;
  flex-shrink: 0;
}

.erp-avatar-monogram.active,
.erp-table tbody tr.active-selected .erp-avatar-monogram {
  background: #eff6ff;
  border-color: #bfdbfe;
  color: #1d4ed8;
}

.erp-btn-row-select {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 6px 12px;
  border-radius: 6px;
  border: 1px solid #2563eb;
  background: #2563eb;
  color: #ffffff;
  font-size: 11.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
  box-shadow: 0 1px 2px rgba(37, 99, 235, 0.18);
}

.erp-btn-row-select:hover {
  background: #1d4ed8;
  border-color: #1d4ed8;
}

.erp-btn-row-select.active-cari-btn {
  background: #059669;
  border-color: #047857;
  box-shadow: 0 1px 2px rgba(5, 150, 105, 0.18);
}

.erp-btn-row-select.active-cari-btn:hover {
  background: #047857;
}

.erp-btn-row-ekstre {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 6px 10px;
  border-radius: 6px;
  border: 1px solid #cbd5e1;
  background: #ffffff;
  color: #334155;
  font-size: 11.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.erp-btn-row-ekstre:hover {
  background: #f8fafc;
  border-color: #94a3b8;
  color: #0f172a;
}

.erp-muted-dash {
  color: #cbd5e1;
  font-weight: 600;
}

/* Mobile Responsive */
@media (max-width: 850px) {
  .erp-wb-header {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }
  .erp-wb-actions {
    justify-content: flex-start;
  }
  .erp-wb-toolbar {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }
  .erp-toolbar-filters {
    flex-wrap: wrap;
    justify-content: space-between;
  }
  .erp-select-input {
    max-width: 100%;
    flex: 1;
  }
  .erp-table thead {
    display: none;
  }
  .erp-table, .erp-table tbody, .erp-table tr, .erp-table td {
    display: block;
    width: 100%;
  }
  .erp-table tr {
    padding: 10px 12px;
    border-bottom: 1px solid #e2e8f0;
  }
  .erp-table td {
    padding: 3px 0;
  }
  .erp-bal-box {
    align-items: flex-start;
    margin: 4px 0;
  }
}

/* ==========================================================================
   B2B KATEGORİ KATEGORİ LİSTE VE TABLO GÖRÜNÜMÜ SİSTEMİ
   ========================================================================== */

/* 1. Üst Kategori & Alt Kategori Hiyerarşik Çubukları */
.b2b-category-tabs-bar {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 6px 16px 10px 16px;
}

.b2b-cat-tabs-row {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  white-space: nowrap;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  width: 100%;
}

.b2b-cat-tabs-row::-webkit-scrollbar {
  display: none;
}

.b2b-cat-tabs-row.l2,
.b2b-cat-tabs-row.l3 {
  background: transparent;
  border: none;
  padding: 2px 0;
}

.b2b-sub-row-label {
  font-size: 11px;
  font-weight: 700;
  color: #64748b;
  margin-right: 4px;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
}

.b2b-cat-tab {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  font-size: 11.5px;
  font-weight: 600;
  color: #475569;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.15s ease;
  user-select: none;
  flex-shrink: 0;
}

.b2b-cat-tab:hover {
  background: #f8fafc;
  border-color: #cbd5e1;
  color: #0f172a;
}

.b2b-cat-tab.active {
  background: #1e293b;
  color: #ffffff;
  border-color: #1e293b;
  box-shadow: 0 1px 2px rgba(30, 41, 59, 0.15);
}

.b2b-cat-tab .cat-tab-icon {
  font-size: 12px;
  line-height: 1;
}

.b2b-cat-tab .cat-count-bubble {
  font-size: 10px;
  font-weight: 700;
  padding: 1px 5px;
  border-radius: 6px;
  background: #f1f5f9;
  color: #64748b;
}

.b2b-cat-tab.active .cat-count-bubble {
  background: rgba(255, 255, 255, 0.2);
  color: #ffffff;
}

/* Level 2 & 3 Subcategory Tabs */
.b2b-sub-tab {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 8px;
  font-size: 11px;
  font-weight: 600;
  color: #475569;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 5px;
  cursor: pointer;
  transition: all 0.12s ease;
  flex-shrink: 0;
  user-select: none;
}

.b2b-sub-tab:hover {
  background: #eff6ff;
  border-color: #93c5fd;
  color: #1d4ed8;
}

.b2b-sub-tab.active {
  background: #2563eb;
  color: #ffffff;
  border-color: #2563eb;
  box-shadow: 0 1px 2px rgba(37, 99, 235, 0.2);
}

.b2b-sub-tab .cat-count-bubble {
  font-size: 9.5px;
  font-weight: 700;
  padding: 1px 5px;
  border-radius: 5px;
  background: #f1f5f9;
  color: #64748b;
}

.b2b-sub-tab.active .cat-count-bubble {
  background: rgba(255, 255, 255, 0.25);
  color: #ffffff;
}

.b2b-sub-tab.sm {
  padding: 2px 7px;
  font-size: 10.5px;
}

.b2b-sub-tab.sm.active {
  background: #0284c7;
  border-color: #0284c7;
}

/* 2. Kategori Blokları & Başlıkları */
.b2b-category-section {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  margin-bottom: 22px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.b2b-cat-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
  background: #f8fafc;
  border-bottom: 1.5px solid #e2e8f0;
}

.b2b-cat-section-left {
  display: flex;
  align-items: center;
  gap: 8px;
}

.b2b-cat-section-icon {
  font-size: 16px;
  line-height: 1;
}

.b2b-cat-section-title {
  margin: 0;
  font-size: 13.5px;
  font-weight: 700;
  color: #0f172a;
  letter-spacing: -0.01em;
}

.b2b-cat-section-badge {
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 12px;
  background: #e2e8f0;
  color: #334155;
}

.b2b-cat-section-content {
  padding: 0;
}

/* 3. Masaüstü Toptan Tablosu (Wholesale Table) */
.b2b-wholesale-table-wrap {
  width: 100%;
  overflow-x: auto;
}

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

.b2b-wholesale-table thead th {
  background: #f8fafc;
  color: #475569;
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  padding: 9px 12px;
  border-bottom: 1px solid #e2e8f0;
  text-align: left;
  white-space: nowrap;
}

.b2b-wholesale-table tbody tr {
  border-bottom: 1px solid #f1f5f9;
  transition: background 0.1s ease;
}

.b2b-wholesale-table tbody tr:last-child {
  border-bottom: none;
}

.b2b-wholesale-table tbody tr:hover {
  background: #f8fafc;
}

.b2b-wholesale-table tbody tr.in-cart {
  background: #f0fdf4;
}

.b2b-wholesale-table tbody td {
  padding: 7px 12px;
  vertical-align: middle;
}

.b2b-tbl-thumb {
  width: 36px;
  height: 36px;
  border-radius: 6px;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  margin: 0 auto;
}

.b2b-tbl-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.b2b-tbl-thumb-empty {
  font-size: 8px;
  font-weight: 800;
  color: #64748b;
}

.b2b-tbl-title {
  font-size: 12.5px;
  font-weight: 600;
  color: #0f172a;
  line-height: 1.35;
}

.b2b-tbl-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 2px;
}

.b2b-tbl-incart {
  font-size: 10px;
  font-weight: 700;
  color: #16a34a;
}

.b2b-tbl-stocks {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.b2b-cost-val {
  font-size: 11px;
  font-weight: 700;
  color: #b45309;
  background: #fef3c7;
  padding: 2px 6px;
  border-radius: 4px;
  display: inline-block;
  white-space: nowrap;
}

.b2b-tbl-net-price {
  font-size: 13.5px;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.2;
}

.b2b-tbl-kdv-lbl {
  font-size: 9.5px;
  font-weight: 500;
  color: #64748b;
}

.b2b-tbl-kdv-price {
  font-size: 11.5px;
  font-weight: 600;
  color: #475569;
}

.btn-b2b-add.sm {
  height: 28px;
  padding: 0 10px;
  font-size: 11.5px;
  border-radius: 5px;
}

.b2b-stepper.sm {
  height: 28px;
}

.b2b-stepper.sm .b2b-step-btn {
  width: 22px;
  font-size: 12px;
}

.b2b-stepper.sm .b2b-step-input {
  width: 32px;
  font-size: 11.5px;
}

/* 4. Mobil B2B Kompakt Liste Satırları */
.b2b-m-cards-list {
  display: flex;
  flex-direction: column;
}

.b2b-m-product-card {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 12px;
  border-bottom: 1px solid #f1f5f9;
  transition: background 0.1s ease;
}

.b2b-m-product-card:last-child {
  border-bottom: none;
}

.b2b-m-product-card.in-cart {
  background: #f0fdf4;
}

.b2b-m-thumb-wrap {
  width: 44px;
  height: 44px;
  min-width: 44px;
  border-radius: 6px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}

.b2b-m-thumb-wrap img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.b2b-m-thumb-initials {
  font-size: 9px;
  font-weight: 800;
  color: #64748b;
}

.b2b-m-incart-badge {
  position: absolute;
  bottom: 1px;
  right: 1px;
  background: #16a34a;
  color: #ffffff;
  font-size: 8px;
  font-weight: 800;
  padding: 1px 3px;
  border-radius: 3px;
}

.b2b-m-content {
  flex: 1;
  min-width: 0;
}

.b2b-m-header-line {
  display: flex;
  align-items: center;
  gap: 5px;
  flex-wrap: wrap;
  margin-bottom: 2px;
}

.b2b-m-title {
  font-size: 12.5px;
  font-weight: 600;
  color: #0f172a;
  line-height: 1.3;
  margin-bottom: 4px;
}

.b2b-m-stocks {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
  margin-bottom: 6px;
}

.b2b-m-footer {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 8px;
}

.b2b-m-price-box {
  display: flex;
  flex-direction: column;
}

.b2b-m-net {
  font-size: 13.5px;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.2;
}

.b2b-m-vat {
  font-size: 9.5px;
  font-weight: 500;
  color: #64748b;
}

.b2b-m-kdv {
  font-size: 10.5px;
  color: #64748b;
  font-weight: 600;
}

.b2b-m-cost {
  font-size: 10px;
  font-weight: 700;
  color: #b45309;
  margin-top: 1px;
}

.b2b-m-action-box {
  display: flex;
  align-items: center;
  gap: 6px;
}

.btn-b2b-m-add {
  height: 28px;
  padding: 0 10px;
  background: #0f172a;
  color: #ffffff;
  border: none;
  border-radius: 6px;
  font-size: 11.5px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
  flex-shrink: 0;
}

.btn-b2b-m-add:active {
  background: #2563eb;
}

.btn-b2b-m-add.added-success {
  background: #16a34a !important;
  color: #ffffff !important;
}

/* ==========================================================================
   5. KATEGORİ SEÇİM PANELİ (CATEGORY SELECTION HUB)
   ========================================================================== */

.b2b-category-picker-hub {
  padding: 4px 0 32px 0;
}

.b2b-hub-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 10px 16px;
  margin-bottom: 16px;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
}

.b2b-hub-toolbar-left {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.b2b-hub-toolbar-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: #f1f5f9;
  color: #0f172a;
  display: flex;
  align-items: center;
  justify-content: center;
}

.b2b-hub-title {
  font-size: 14.5px;
  font-weight: 800;
  color: #0f172a;
  margin: 0;
  letter-spacing: -0.01em;
  line-height: 1.2;
}

.b2b-hub-meta {
  font-size: 11px;
  font-weight: 500;
  color: #64748b;
  margin-top: 1px;
}

.b2b-hub-toolbar-center {
  flex: 1;
  max-width: 480px;
}

.b2b-hub-search-box {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
}

.b2b-hub-search-box svg {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: #94a3b8;
  pointer-events: none;
  z-index: 2;
}

.b2b-hub-search-input {
  width: 100%;
  height: 36px;
  padding: 0 14px 0 34px;
  font-size: 12.5px;
  border: 1px solid #cbd5e1;
  border-radius: 7px;
  background: #f8fafc;
  color: #0f172a;
  outline: none;
  transition: all 0.15s ease;
  box-sizing: border-box;
}

.b2b-hub-search-input:focus {
  background: #ffffff;
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.b2b-hub-toolbar-right {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.btn-hub-all-action {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #0f172a;
  border: 1px solid #0f172a;
  color: #ffffff;
  font-size: 12px;
  font-weight: 700;
  padding: 8px 16px;
  border-radius: 7px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-hub-all-action:hover {
  background: #2563eb;
  border-color: #2563eb;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.2);
}

.hub-count-pill {
  font-size: 10.5px;
  font-weight: 800;
  padding: 1px 6px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.2);
  color: #ffffff;
}

@media (max-width: 768px) {
  .b2b-hub-toolbar {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    padding: 12px;
  }
  .b2b-hub-toolbar-center {
    max-width: 100%;
  }
  .btn-hub-all-action {
    justify-content: center;
    width: 100%;
  }
}

/* Kategori Kartları Izgarası (Grid) */
.b2b-cat-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 16px;
}

.b2b-cat-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.03);
  position: relative;
  overflow: hidden;
}

.b2b-cat-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: transparent;
  transition: background 0.2s ease;
}

.b2b-cat-card:hover {
  border-color: #cbd5e1;
  box-shadow: 0 6px 20px -4px rgba(15, 23, 42, 0.08);
  transform: translateY(-2px);
}

.b2b-cat-card:hover::before {
  background: #2563eb;
}

.b2b-cat-card-header {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.b2b-cat-card-icon-wrap {
  width: 40px;
  height: 40px;
  min-width: 40px;
  border-radius: 8px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #334155;
  transition: all 0.2s ease;
}

.b2b-cat-card:hover .b2b-cat-card-icon-wrap {
  background: #eff6ff;
  border-color: #bfdbfe;
  color: #2563eb;
}

.b2b-cat-card-head-info {
  flex: 1;
  min-width: 0;
}

.b2b-cat-card-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.b2b-cat-card-title {
  margin: 0;
  font-size: 14.5px;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.3;
}

.b2b-cat-card-count-badge {
  font-size: 11px;
  font-weight: 700;
  color: #475569;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  padding: 2px 7px;
  border-radius: 6px;
  white-space: nowrap;
  flex-shrink: 0;
}

.b2b-cat-card:hover .b2b-cat-card-count-badge {
  background: #eff6ff;
  border-color: #dbeafe;
  color: #1d4ed8;
}

.b2b-cat-card-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  font-weight: 500;
  color: #64748b;
  margin-top: 3px;
}

.b2b-cat-card-dot {
  color: #cbd5e1;
}

.b2b-cat-card-link-text {
  color: #2563eb;
  font-weight: 600;
  transition: transform 0.15s ease;
}

.b2b-cat-card:hover .b2b-cat-card-link-text {
  text-decoration: underline;
}

.b2b-cat-card-body {
  border-top: 1px solid #f1f5f9;
  padding-top: 12px;
  margin-top: 12px;
  flex: 1;
}

.b2b-sub-chips-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.b2b-sub-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  padding: 4px 8px;
  font-size: 11.5px;
  font-weight: 500;
  color: #334155;
  cursor: pointer;
  transition: all 0.12s ease;
}

.b2b-sub-chip:hover {
  border-color: #93c5fd;
  background: #eff6ff;
  color: #1d4ed8;
  transform: translateY(-1px);
}

.b2b-sub-chip .sub-chip-name {
  white-space: nowrap;
}

.b2b-sub-chip .sub-chip-badge {
  font-size: 10px;
  font-weight: 700;
  background: #e2e8f0;
  color: #475569;
  padding: 1px 5px;
  border-radius: 4px;
  transition: all 0.12s ease;
}

.b2b-sub-chip:hover .sub-chip-badge {
  background: #dbeafe;
  color: #1e40af;
}

.b2b-sub-chip.highlighted {
  border-color: #2563eb;
  background: #dbeafe;
  color: #1e40af;
  font-weight: 700;
}

/* Hub search box */
.b2b-hub-search-wrap {
  margin-top: 14px;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}

.b2b-hub-search-input {
  width: 100%;
  height: 40px;
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  padding: 0 14px;
  font-size: 13px;
  font-weight: 500;
  color: #0f172a;
  outline: none;
  transition: all 0.15s ease;
  box-sizing: border-box;
}

.b2b-hub-search-input:focus {
  background: #ffffff;
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

/* Breadcrumb links */
.b2b-bread-crumb-link {
  color: #2563eb;
  cursor: pointer;
  text-decoration: none;
  font-weight: 600;
}

.b2b-bread-crumb-link:hover {
  text-decoration: underline;
}

.b2b-bread-crumb-sep {
  color: #94a3b8;
  margin: 0 3px;
}

/* 6. Seçili Kategori Üst Bilgi Barı & Kategorilere Dön Butonu */
.b2b-cat-active-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 8px 14px;
  margin-bottom: 14px;
}

.b2b-cat-active-info {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: #334155;
}

.b2b-cat-active-info strong {
  color: #0f172a;
  font-weight: 700;
}

.b2b-cat-active-count {
  font-size: 11.5px;
  color: #64748b;
  font-weight: 600;
}

.btn-back-to-cats {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  padding: 5px 11px;
  font-size: 11.5px;
  font-weight: 700;
  color: #334155;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-back-to-cats:hover {
  background: #e2e8f0;
  color: #0f172a;
}

/* TÜRMOB / VKN Sorgulama Butonu ve Input Grubu */
.vkn-input-group {
  display: flex;
  align-items: stretch;
  position: relative;
  width: 100%;
}

.vkn-input-group .search-box-input {
  border-top-right-radius: 0 !important;
  border-bottom-right-radius: 0 !important;
  flex: 1;
  font-family: var(--font-mono, monospace);
  font-weight: 700;
  letter-spacing: 0.5px;
}

.btn-turmob-query {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: linear-gradient(135deg, #1e40af, #2563eb);
  color: #ffffff;
  border: 1px solid #1d4ed8;
  border-left: none;
  padding: 0 11px;
  font-size: 11px;
  font-weight: 700;
  border-top-right-radius: 4px;
  border-bottom-right-radius: 4px;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s ease;
  user-select: none;
}

.btn-turmob-query:hover {
  background: linear-gradient(135deg, #1d4ed8, #1e40af);
  box-shadow: 0 1px 3px rgba(37, 99, 235, 0.3);
}

.btn-turmob-query:active {
  transform: translateY(1px);
}

.btn-turmob-query:disabled {
  background: #94a3b8;
  border-color: #94a3b8;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.vkn-queried-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 1px 6px;
  border-radius: 3px;
  font-size: 10px;
  font-weight: 700;
  line-height: 1.3;
}
.vkn-queried-badge.turmob {
  background: #eff6ff;
  color: #1d4ed8;
  border: 1px solid #bfdbfe;
}
.vkn-queried-badge.netsim {
  background: #f0fdf4;
  color: #15803d;
  border: 1px solid #bbf7d0;
}

.field-autofilled {
  animation: fieldFlash 1.5s ease;
}

@keyframes fieldFlash {
  0% { background-color: #eff6ff; }
  100% { background-color: transparent; }
}

/* ==========================================================================
   NETSIM N4 KURUMSAL GİRİŞ EKRANI & YETKİ KİLİDİ
   ========================================================================== */

/* 1. Body States - STRICT LOCKDOWN WHEN NOT LOGGED IN */
body.not-logged-in .app-header,
body.not-logged-in header,
body.not-logged-in .bottom-mobile-nav,
body.not-logged-in .app-bottom-dock,
body.not-logged-in #sahaBottomNav,
body.not-logged-in #depoBottomNav,
body.not-logged-in #activeCariBanner,
body.not-logged-in .cat-floating-cart-dock,
body.not-logged-in .app-modal-overlay,
body.not-logged-in .erp-customer-workbench,
body.not-logged-in section:not(#screen-login) {
  display: none !important;
}

body.not-logged-in .app-main-layout {
  padding: 0 !important;
  margin: 0 !important;
  max-width: 100% !important;
  min-height: 100vh !important;
}

/* Tanımlar ve Yönetici Ayarları SADECE SYSDBA içindir */
body:not(.is-sysdba-admin) #dropdownAdminSettingsItem,
body:not(.is-sysdba-admin) #adminPermissionsCard,
body:not(.is-sysdba-admin) #adminPersonnelChangeBlock,
body:not(.is-sysdba-admin) #screen-profil {
  display: none !important;
}

/* 2. Login Screen Modal & Backdrop */
.login-screen-view {
  position: fixed;
  inset: 0;
  z-index: 999999;
  background: radial-gradient(circle at 50% 20%, #1e293b 0%, #0f172a 65%, #020617 100%);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
  overflow-y: auto;
}

body.not-logged-in .login-screen-view,
.login-screen-view.active {
  display: flex !important;
}

.login-wrapper {
  width: 100%;
  max-width: 440px;
  margin: auto;
}

.login-card {
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(255, 255, 255, 0.1);
  padding: 36px 32px;
  border: 1px solid #e2e8f0;
}

.login-brand {
  text-align: center;
  margin-bottom: 24px;
}

.login-logo-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 16px;
}

.login-logo {
  max-height: 48px;
  width: auto;
  object-fit: contain;
}

.login-fallback-logo {
  font-size: 26px;
  font-weight: 900;
  letter-spacing: 2px;
  color: #1e3a8a;
  background: #eff6ff;
  padding: 8px 24px;
  border-radius: 8px;
  border: 1px solid #bfdbfe;
}

.login-title {
  font-size: 20px;
  font-weight: 800;
  color: #0f172a;
  margin: 0 0 6px 0;
  letter-spacing: -0.3px;
}

.login-subtitle {
  font-size: 13px;
  color: #64748b;
  margin: 0 0 14px 0;
  font-weight: 500;
}

.login-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: 20px;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  font-size: 11.5px;
  font-weight: 700;
  color: #334155;
}

.login-badge .badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

/* Alert Box */
.login-alert-box {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #991b1b;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 12.5px;
  font-weight: 600;
  margin-bottom: 18px;
  animation: loginShake 0.3s ease-in-out;
}

@keyframes loginShake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-4px); }
  75% { transform: translateX(4px); }
}

/* Form Controls */
.login-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.login-field-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.login-label-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.login-field-label {
  font-size: 12px;
  font-weight: 700;
  color: #1e293b;
  display: block;
}

.login-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.login-input-icon {
  position: absolute;
  left: 12px;
  color: #94a3b8;
  pointer-events: none;
  transition: color 0.15s ease;
}

.login-input {
  width: 100%;
  height: 44px;
  padding: 0 12px 0 40px;
  font-size: 14px;
  font-weight: 600;
  color: #0f172a;
  background: #f8fafc;
  border: 1.5px solid #cbd5e1;
  border-radius: 8px;
  outline: none;
  transition: all 0.2s ease;
}

.login-input:focus {
  background: #ffffff;
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.login-input:focus + .login-input-icon,
.login-input-wrap:focus-within .login-input-icon {
  color: #2563eb;
}

.btn-login-toggle-pw {
  position: absolute;
  right: 10px;
  background: transparent;
  border: none;
  color: #94a3b8;
  cursor: pointer;
  padding: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  transition: color 0.15s ease;
}

.btn-login-toggle-pw:hover {
  color: #334155;
}

/* Submit Button */
.btn-login-submit {
  width: 100%;
  height: 46px;
  background: #2563eb;
  color: #ffffff;
  border: none;
  border-radius: 8px;
  font-size: 14.5px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.2s ease;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
  margin-top: 6px;
}

.btn-login-submit:hover {
  background: #1d4ed8;
  box-shadow: 0 6px 16px rgba(37, 99, 235, 0.35);
  transform: translateY(-1px);
}

.btn-login-submit:active {
  transform: translateY(0);
}

.btn-login-submit:disabled {
  background: #94a3b8;
  cursor: not-allowed;
  box-shadow: none;
  transform: none;
}

.btn-spinner {
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: #ffffff;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}

/* Footer */
.login-footer {
  margin-top: 24px;
  border-top: 1px solid #f1f5f9;
  padding-top: 18px;
  text-align: center;
}

.login-security-notice {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 11px;
  color: #64748b;
  font-weight: 600;
  margin-bottom: 8px;
}

.login-copyright {
  font-size: 10.5px;
  color: #94a3b8;
}

@media (max-width: 480px) {
  .login-card {
    padding: 28px 20px;
    border-radius: 12px;
  }
}



