:root {
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica,
    Arial, sans-serif;
  color-scheme: light;
  --bg: #edf2f5;
  --bg-soft: #f7fafb;
  --surface: #ffffff;
  --surface-soft: #f5f8fa;
  --surface-strong: #e8eef2;
  --ink: #101418;
  --ink-soft: #2f3a45;
  --muted: #687684;
  --muted-strong: #465463;
  --line: #d9e2e8;
  --line-strong: #bcc9d3;
  --nav: #101615;
  --nav-soft: #18201f;
  --accent: #0f9488;
  --accent-strong: #0b6f66;
  --blue: #2563eb;
  --amber: #d97706;
  --danger: #d92d20;
  --success: #15803d;
  --shadow-sm: 0 1px 2px rgba(16, 20, 24, 0.08);
  --shadow-md: 0 14px 36px rgba(16, 20, 24, 0.1);
  --radius: 8px;
}

/* Satış ekranı: logosu sabit, menüsü açılır çekmece */
.pos-workspace-shell,
.pos-workspace-shell.sidebar-collapsed {
  grid-template-columns: minmax(0, 1fr) !important;
}

.pos-workspace-shell .main-shell {
  grid-column: 1;
}

.pos-workspace-shell .sidebar {
  position: fixed;
  z-index: 310;
  top: 8px;
  left: 8px;
  width: 232px;
  height: calc(100vh - 16px);
  padding: 14px 10px 10px;
  border: 1px solid rgba(112, 162, 220, .48);
  border-radius: 12px;
  box-shadow: 12px 18px 42px rgba(0, 21, 52, .34);
  transition: opacity 180ms ease, transform 180ms ease;
}

.pos-workspace-shell .brand-block {
  cursor: pointer;
}

.pos-workspace-shell .brand-block:focus-visible {
  outline: 3px solid #38bdf8;
  outline-offset: 2px;
  border-radius: 9px;
}

.pos-workspace-shell .sidebar-edge-toggle {
  display: none;
}

.pos-workspace-shell.sidebar-collapsed .sidebar {
  top: 8px;
  left: 8px;
  width: 58px;
  height: 52px;
  overflow: visible;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.pos-workspace-shell.sidebar-collapsed .brand-block {
  display: block;
  padding: 0;
}

.pos-workspace-shell.sidebar-collapsed .brand-logo-surface {
  width: 58px;
  min-height: 52px;
  padding: 7px;
  border: 1px solid #bdd0e4;
  border-radius: 10px;
  box-shadow: 0 6px 18px rgba(7, 39, 79, .16);
}

.pos-workspace-shell.sidebar-collapsed .brand-logo {
  max-height: 34px;
}

.pos-workspace-shell.sidebar-collapsed .brand-block p,
.pos-workspace-shell.sidebar-collapsed .sidebar-nav,
.pos-workspace-shell.sidebar-collapsed .user-box {
  display: none;
}

.pos-workspace-shell.sidebar-collapsed .pos-command-bar {
  margin-left: 64px;
}

.sales-menu-backdrop {
  position: fixed;
  z-index: 300;
  inset: 0;
  width: 100%;
  height: 100%;
  min-height: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: rgba(3, 18, 37, .28);
  box-shadow: none;
}

/* Daha sakin, okunaklı ödeme özeti */
.fintech-pos .payment-spotlight {
  gap: 7px;
  padding: 7px;
  border: 1px solid #c8d7e7;
  border-radius: 12px;
  background: linear-gradient(180deg, #f8fbff, #eaf2f9);
  box-shadow: 0 6px 18px rgba(12, 48, 88, .12);
}

.fintech-pos .fintech-totals .payment-total-card {
  border-width: 1px 1px 1px 5px;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 2px 7px rgba(12, 48, 88, .08);
}

.fintech-pos .fintech-totals .paid-card {
  border-color: #d5e3ef #d5e3ef #d5e3ef #0ea5e9;
  background: #fff;
}

.fintech-pos .fintech-totals .sale-total-card {
  border-color: #eadfbd #eadfbd #eadfbd #f59e0b;
  background: #fffdf7;
}

.fintech-pos .fintech-totals .change-card {
  border-color: #d8e1e9 #d8e1e9 #d8e1e9 #64748b;
  background: #fff;
}

.fintech-pos .fintech-totals .change-card.has-change {
  border-color: #bbdec9 #bbdec9 #bbdec9 #22c55e;
  background: #f7fff9;
  box-shadow: 0 2px 8px rgba(34, 197, 94, .14);
}

body .pos-workspace-shell:not(.sidebar-collapsed) {
  overflow: visible !important;
}

body .pos-workspace-shell:not(.sidebar-collapsed) .sidebar {
  position: fixed !important;
  z-index: 1001 !important;
  top: 8px !important;
  left: 8px !important;
  display: flex !important;
  width: 288px !important;
  height: calc(100vh - 16px) !important;
  overflow: hidden !important;
  padding: 14px 10px 10px !important;
  visibility: visible !important;
  opacity: 1 !important;
  transform: none !important;
  border: 1px solid rgba(112, 162, 220, .48) !important;
  border-radius: 12px !important;
  background: linear-gradient(180deg, #061a33 0%, #031225 58%, #061b34 100%) !important;
  box-shadow: 12px 18px 42px rgba(0, 21, 52, .34) !important;
}

body .pos-workspace-shell:not(.sidebar-collapsed) .sidebar-nav,
body .pos-workspace-shell:not(.sidebar-collapsed) .user-box,
body .pos-workspace-shell:not(.sidebar-collapsed) .brand-block {
  display: flex !important;
}

body .pos-workspace-shell .sales-menu-backdrop {
  z-index: 1000 !important;
}

body .pos-workspace-shell.sales-menu-open .sidebar {
  position: fixed !important;
  z-index: 1001 !important;
  top: 8px !important;
  left: 8px !important;
  display: flex !important;
  width: 288px !important;
  height: calc(100vh - 16px) !important;
  overflow: hidden !important;
  padding: 14px 10px 10px !important;
  visibility: visible !important;
  opacity: 1 !important;
  transform: translateX(0) !important;
  border: 1px solid rgba(112, 162, 220, .48) !important;
  border-radius: 12px !important;
  background: linear-gradient(180deg, #061a33 0%, #031225 58%, #061b34 100%) !important;
  box-shadow: 12px 18px 42px rgba(0, 21, 52, .34) !important;
}

body .pos-workspace-shell.sales-menu-open .sidebar-nav,
body .pos-workspace-shell.sales-menu-open .user-box,
body .pos-workspace-shell.sales-menu-open .brand-block {
  display: flex !important;
}

body .pos-workspace-shell.sales-menu-open .sidebar-nav {
  flex: 1 1 auto !important;
  flex-direction: column !important;
  grid-template-columns: none !important;
  align-items: stretch !important;
  overflow-y: auto !important;
}

body .pos-workspace-shell.sales-menu-open .nav-section {
  display: block !important;
  width: 100% !important;
}

body .pos-workspace-shell.sales-menu-open .nav-section + .nav-section {
  margin-top: 8px !important;
}

body .pos-workspace-shell.sales-menu-open .sidebar-nav a,
body .pos-workspace-shell.sales-menu-open .technical-nav-toggle {
  width: 100% !important;
  justify-content: flex-start !important;
}

.label-preset-row {
  display: grid;
  gap: 8px;
  margin-bottom: 12px;
  padding: 10px;
  border: 1px solid #c8d7e7;
  border-radius: 8px;
  background: #f5f9fd;
}

.label-preset-row > div {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.label-preset-row button {
  min-height: 38px;
  padding: 7px 12px;
}

.label-preset-row button.active {
  border-color: #0877df;
  background: #0877df;
  color: #fff;
}

.label-sheet {
  grid-template-columns: repeat(var(--label-columns, 3), var(--label-width)) !important;
  align-content: start;
  justify-content: start;
}

@media print {
  @page {
    size: A4 portrait;
    margin: 7mm;
  }

  .label-sheet {
    display: grid !important;
    width: 196mm !important;
    gap: 1.5mm !important;
    padding: 0 !important;
  }

  .label-preset-rulo-ikili {
    width: 110mm !important;
  }
}

/* Emex bilgi hiyerarşisiyle düzenlenen kasa çalışma alanı */
.fintech-pos .open-account-board {
  flex: 0 0 auto !important;
  max-height: none !important;
  overflow: visible !important;
  padding: 8px !important;
  border: 1px solid #b9cde2 !important;
  border-radius: 8px !important;
  background: #eef5fc !important;
  box-shadow: none !important;
}

.fintech-pos .open-account-heading {
  min-height: 34px !important;
  margin-bottom: 6px !important;
  padding: 0 2px !important;
}

.fintech-pos .open-account-heading strong {
  color: #0a3766 !important;
  font-size: 15px !important;
}

.fintech-pos .open-account-heading small {
  display: none !important;
}

.fintech-pos .open-account-heading .add-open-account {
  min-height: 34px !important;
  border: 1px solid #1677d2 !important;
  border-radius: 6px !important;
  background: #0b70c9 !important;
  color: #fff !important;
  box-shadow: none !important;
}

.fintech-pos .compact-basket-tabs {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  grid-auto-flow: row !important;
  gap: 6px !important;
  width: 100% !important;
  max-height: none !important;
  margin: 0 !important;
  overflow: visible !important;
}

.fintech-pos .open-account-tab {
  min-width: 0 !important;
  min-height: 58px !important;
  padding: 4px !important;
  border: 1px solid #bfd0e2 !important;
  border-radius: 7px !important;
  background: #fff !important;
  box-shadow: none !important;
}

.fintech-pos .open-account-tab.active {
  border: 2px solid #1688f5 !important;
  background: #f3f9ff !important;
  box-shadow: 0 0 0 2px rgba(22, 136, 245, .12) !important;
}

.fintech-pos .open-account-select,
.fintech-pos .open-account-tab:not(.active) .open-account-select strong,
.fintech-pos .open-account-tab:not(.active) .open-account-select span {
  color: #102a4d !important;
}

.fintech-pos .open-account-select strong {
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

.fintech-pos .quick-product-header {
  min-height: 40px !important;
  margin: 0 !important;
  padding: 6px 8px !important;
  border: 1px solid #c7d7e7 !important;
  border-radius: 7px !important;
  background: #fff !important;
}

.fintech-pos .quick-product-header strong {
  color: #0d3158 !important;
  font-size: 14px !important;
}

.fintech-pos .product-group-tabs {
  display: grid !important;
  grid-template-columns: repeat(6, minmax(0, 1fr)) !important;
  gap: 4px !important;
  min-height: 0 !important;
  max-height: none !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: visible !important;
}

.fintech-pos .product-group-tabs button {
  width: 100% !important;
  min-width: 0 !important;
  min-height: 34px !important;
  padding: 5px 4px !important;
  overflow: hidden !important;
  border: 1px solid #b9ccdf !important;
  border-radius: 5px !important;
  background: #f4f8fc !important;
  color: #173a61 !important;
  font-size: 10px !important;
  font-weight: 850 !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

.fintech-pos .product-group-tabs button.active {
  border-color: #0877e5 !important;
  background: #0877e5 !important;
  color: #fff !important;
}

.fintech-pos .product-catalog-controls {
  margin: 0 !important;
}

.fintech-pos .product-catalog-controls input {
  min-height: 36px !important;
  border: 1px solid #b9ccdf !important;
  border-radius: 6px !important;
  background: #fff !important;
}

.fintech-pos .product-catalog-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  grid-auto-rows: 112px !important;
  gap: 6px !important;
  min-height: 112px !important;
  max-height: 230px !important;
  padding: 0 3px 3px 0 !important;
  overflow-x: hidden !important;
  overflow-y: auto !important;
  scrollbar-width: thin !important;
  scrollbar-color: #9eb5cb transparent !important;
}

.fintech-pos .quick-product-card,
.fintech-pos .quick-product-grid button {
  width: 100% !important;
  min-width: 0 !important;
  min-height: 112px !important;
  height: 112px !important;
  border-radius: 6px !important;
}

.fintech-pos .quick-product-card {
  overflow: hidden !important;
  border: 1px solid #92c6b5 !important;
  background: #fff !important;
  box-shadow: 0 1px 3px rgba(13, 49, 88, .08) !important;
}

.fintech-pos .quick-product-grid button {
  display: grid !important;
  grid-template-rows: minmax(0, 1fr) auto !important;
  align-items: stretch !important;
  padding: 8px !important;
  text-align: left !important;
}

.fintech-pos .quick-product-grid strong {
  display: -webkit-box !important;
  overflow: hidden !important;
  color: #132b49 !important;
  font-size: 11px !important;
  font-weight: 900 !important;
  line-height: 1.25 !important;
  white-space: normal !important;
  -webkit-box-orient: vertical !important;
  -webkit-line-clamp: 3 !important;
}

.fintech-pos .quick-product-grid span {
  align-self: end !important;
  color: #0877df !important;
  font-size: 13px !important;
  font-weight: 950 !important;
}

.fintech-pos .quick-product-image {
  width: 100% !important;
  height: 54px !important;
  margin-bottom: 4px !important;
  object-fit: contain !important;
}

@media screen and (max-width: 1180px) {
  .fintech-pos .compact-basket-tabs {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }

  .fintech-pos .product-group-tabs {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  }

  .fintech-pos .product-catalog-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    grid-auto-rows: 104px !important;
    max-height: 214px !important;
  }

  .fintech-pos .quick-product-card,
  .fintech-pos .quick-product-grid button {
    min-height: 104px !important;
    height: 104px !important;
  }
}

/* Reference-inspired touch POS layout; Zariç color system is preserved. */
.fintech-pos .customer-select-row,
.fintech-pos .customer-detail-strip {
  display: none !important;
}

.fintech-pos {
  gap: 8px;
  background: #edf3fa;
}

.fintech-pos .pos-command-bar {
  grid-template-columns: minmax(0, 1fr) minmax(360px, 430px);
  gap: 8px;
  padding: 8px;
  border: 1px solid #cbd9e8;
  border-radius: 10px;
  background: linear-gradient(180deg, #ffffff, #f4f8fd);
  box-shadow: 0 7px 20px rgba(9, 42, 82, 0.1);
}

.fintech-pos .pos-search-cluster {
  grid-template-columns: 76px minmax(180px, 1fr) repeat(4, minmax(68px, 82px));
  gap: 6px;
  min-height: 68px;
}

.fintech-pos .price-tier-select,
.fintech-pos .pos-input-wrap,
.fintech-pos .pos-action-button {
  height: 68px;
  min-height: 68px;
  border-radius: 7px;
}

.fintech-pos .pos-action-button {
  border: 1px solid rgba(0, 51, 113, 0.12);
  box-shadow: 0 4px 10px rgba(9, 72, 153, 0.14);
}

.fintech-pos .pos-action-button svg {
  width: 24px;
  height: 24px;
}

.fintech-pos .payment-spotlight {
  gap: 6px;
}

.fintech-pos .payment-total-card {
  padding: 7px;
  border: 1px solid #d5e0ec;
  border-radius: 7px;
  background: #fff;
}

.fintech-pos .fintech-totals label {
  gap: 3px;
  font-size: 11px;
}

.fintech-pos .fintech-totals input,
.fintech-pos .fintech-totals strong {
  height: 42px;
  padding: 0 8px;
  border: 0;
  background: transparent;
  font-size: 24px;
  box-shadow: none;
}

.fintech-pos .sale-total-card {
  border-color: #b8d6fa;
  background: #eef6ff;
}

.fintech-pos .change-card.has-change {
  border-color: #9dd9bd;
  background: #effbf5;
}

.fintech-pos .pos-fintech-board {
  grid-template-columns: minmax(340px, 44%) minmax(420px, 56%);
  gap: 8px;
}

.fintech-pos .pos-product-panel,
.fintech-pos .pos-checkout-panel {
  border-color: #cbd9e8;
  border-radius: 8px;
  box-shadow: 0 8px 22px rgba(11, 45, 88, 0.1);
}

.fintech-pos .pos-product-panel {
  display: flex;
  flex-direction: column;
  padding: 8px;
  background: #f9fbfe;
}

.fintech-pos .product-toolbar {
  grid-template-columns: 100px minmax(120px, 1fr) minmax(140px, 1fr) 64px;
  gap: 6px;
  margin-bottom: 7px;
  padding: 7px;
  border: 1px solid #d5e1ee;
  border-radius: 7px;
  background: #fff;
}

.fintech-pos .product-count strong,
.fintech-pos .product-count > span {
  font-size: 16px;
}

.fintech-pos .misc-amount-control input,
.fintech-pos .discount-control input,
.fintech-pos .discount-control select,
.fintech-pos .more-button {
  min-height: 42px;
}

.fintech-pos .pos-table {
  flex: 1;
  min-height: 250px;
  border: 1px solid #bdcede;
  border-radius: 6px;
  background: #fff;
}

.fintech-pos .pos-table th {
  height: 44px;
  padding: 8px;
  border-color: #176bc9;
  background: linear-gradient(180deg, #0d7cf2, #0865ce);
  color: #fff;
  font-size: 12px;
}

.fintech-pos .pos-table td {
  height: 46px;
  padding: 7px 8px;
  font-size: 12px;
}

.fintech-pos .pos-table tbody tr:nth-child(even) td {
  background: #f2f7fd;
}

.fintech-pos .pos-checkout-panel {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 8px;
  overflow: hidden;
  background: #f7faff;
}

.fintech-pos .open-account-board {
  order: 1;
  margin: 0;
  padding: 8px;
  border-color: #b8cce2;
  background: linear-gradient(135deg, #092c57, #0b559f);
}

.fintech-pos .open-account-heading {
  margin-bottom: 7px;
}

.fintech-pos .open-account-heading strong,
.fintech-pos .open-account-heading small {
  color: #fff;
}

.fintech-pos .open-account-heading .add-open-account {
  min-height: 32px;
  padding: 5px 10px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.14);
}

.fintech-pos .compact-basket-tabs {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 5px;
}

.fintech-pos .open-account-tab {
  min-height: 62px;
  border-color: rgba(255, 255, 255, 0.24);
  background: rgba(255, 255, 255, 0.1);
}

.fintech-pos .open-account-tab.active {
  border-color: #6ec1ff;
  background: #fff;
  box-shadow: 0 0 0 2px rgba(110, 193, 255, 0.42);
}

.fintech-pos .open-account-tab:not(.active) .open-account-select strong,
.fintech-pos .open-account-tab:not(.active) .open-account-select span {
  color: #fff;
}

.fintech-pos .open-account-select {
  min-height: 44px;
}

.fintech-pos .customer-select-row {
  order: 2;
  grid-template-columns: minmax(0, 1fr) 62px 62px;
}

.fintech-pos .customer-detail-strip {
  order: 3;
  min-height: 24px;
  margin: 0;
}

.fintech-pos .quick-product-header {
  order: 4;
  margin-top: 2px;
  padding: 7px 9px;
  border: 1px solid #d2dfed;
  border-radius: 6px;
  background: #fff;
}

.fintech-pos .product-group-tabs {
  order: 5;
  display: flex;
  min-height: 42px;
  gap: 4px;
  overflow-x: auto;
  padding: 2px 0 4px;
}

.fintech-pos .product-group-tabs button {
  flex: 0 0 auto;
  min-width: 94px;
  min-height: 38px;
  padding: 6px 10px;
  border-radius: 5px;
  font-size: 12px;
}

.fintech-pos .product-catalog-controls {
  order: 6;
  margin-top: 0;
}

.fintech-pos .product-catalog-grid {
  order: 7;
  flex: 1 1 auto;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  min-height: 180px;
  max-height: none;
  gap: 5px;
  margin-top: 0;
  overflow-y: auto;
}

.fintech-pos .quick-product-card {
  min-height: 122px;
  border-color: #c7d8e9;
  border-radius: 5px;
}

.fintech-pos .quick-product-grid button {
  min-height: 120px;
  padding: 6px;
}

.fintech-pos .quick-product-image {
  height: 68px;
  border-radius: 3px;
}

.fintech-pos .quick-product-grid strong {
  font-size: 11px;
  line-height: 1.15;
}

.fintech-pos .quick-product-grid span {
  color: #086bd8;
  font-size: 11px;
  font-weight: 900;
}

.fintech-pos .checkout-note {
  order: 7;
}

.fintech-pos .fintech-quick-amounts {
  order: 8;
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

.fintech-pos .fintech-quick-amounts button {
  min-height: 36px;
}

.fintech-pos .fintech-payment-buttons {
  order: 9;
  gap: 5px;
  margin-top: 0;
}

.fintech-pos .pos-payment-buttons button {
  min-height: 76px;
  padding: 8px 4px;
  border-radius: 5px;
}

.fintech-pos .pos-payment-buttons button svg {
  width: 24px;
  height: 24px;
}

.fintech-pos .pos-payment-buttons strong {
  font-size: 12px;
}

.fintech-pos .fintech-split-panel {
  order: 10;
  margin-top: 0;
}

.fintech-pos .terminal-note {
  order: 11;
  margin: 0;
  font-size: 10px;
}

@media (max-width: 1180px) {
  .fintech-pos .pos-command-bar {
    grid-template-columns: minmax(0, 1fr) 330px;
  }

  .fintech-pos .pos-search-cluster {
    grid-template-columns: 62px minmax(140px, 1fr) repeat(4, 60px);
  }

  .fintech-pos .pos-fintech-board {
    grid-template-columns: minmax(310px, 43%) minmax(400px, 57%);
  }

  .fintech-pos .product-catalog-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

* {
  box-sizing: border-box;
}

html,
body,
#root {
  width: 100%;
  height: 100%;
}

body {
  margin: 0;
  background:
    linear-gradient(135deg, rgba(237, 242, 245, 0.96), rgba(248, 250, 251, 0.98) 46%, rgba(232, 242, 239, 0.94));
  color: var(--ink);
  font-size: 14px;
  line-height: 1.45;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

#root {
  min-height: 0;
}

a {
  color: inherit;
}

/* App shell */
.app-shell {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  height: 100vh;
  min-height: 0;
  overflow: hidden;
}

.sidebar {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
  overflow: visible;
  padding: 27px 13px 12px;
  background:
    radial-gradient(circle at 0 0, rgba(16, 104, 255, 0.22), transparent 38%),
    linear-gradient(180deg, #061a33 0%, #031225 58%, #061b34 100%);
  color: #f7fbff;
  border-right: 1px solid rgba(71, 129, 210, 0.35);
  box-shadow: 18px 0 42px rgba(0, 21, 52, 0.2);
}

.sidebar-toggle {
  width: 30px;
  min-height: 30px;
  padding: 0;
  flex: 0 0 30px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #ffffff;
  color: var(--ink);
  box-shadow: none;
  font-size: 22px;
  line-height: 1;
}

.sidebar-toggle:hover {
  border-color: var(--accent);
  background: #eef7ff;
}

.app-shell.sidebar-collapsed {
  grid-template-columns: 72px minmax(0, 1fr);
}

.sidebar-collapsed .sidebar {
  padding: 18px 9px 10px;
}

.sidebar-collapsed .nav-section-title,
.sidebar-collapsed .sidebar-nav a span,
.sidebar-collapsed .technical-nav-toggle span,
.sidebar-collapsed .technical-nav-chevron,
.sidebar-collapsed .user-meta {
  display: none;
}

.sidebar-edge-toggle {
  position: absolute;
  z-index: 20;
  top: 76px;
  right: 5px;
  width: 30px;
  height: 38px;
  min-height: 38px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 2px solid #d6e5f6;
  border-radius: 0 8px 8px 0;
  background: #0877ef;
  color: #fff;
  font-size: 21px;
  line-height: 1;
  box-shadow: 4px 5px 14px rgba(0, 37, 85, 0.25);
}

.sidebar-edge-toggle:hover {
  background: #0566d3;
}

.sidebar-collapsed .brand-block {
  display: flex;
  padding: 0 0 14px;
}

.sidebar-collapsed .brand-block p {
  display: none;
}

.sidebar-collapsed .brand-logo-surface {
  min-height: 46px;
  padding: 7px 4px;
}

.sidebar-collapsed .brand-logo {
  max-height: 32px;
}

.sidebar-collapsed .sidebar-edge-toggle {
  top: 62px;
  right: 5px;
}

.sidebar-collapsed .nav-section + .nav-section {
  margin-top: 8px;
}

.sidebar-collapsed .sidebar-nav a,
.sidebar-collapsed .technical-nav-toggle {
  justify-content: center;
  min-height: 43px;
  padding: 10px;
}

.sidebar-collapsed .nav-icon {
  width: 22px;
  height: 22px;
}

.sidebar-collapsed .user-box {
  display: flex;
  flex-direction: column;
  padding: 10px 0 0;
}

.sidebar-collapsed .user-box button {
  width: 43px;
  overflow: hidden;
  gap: 0;
  padding: 10px 13px;
  color: transparent;
}

.sidebar-collapsed .user-box button svg {
  flex-shrink: 0;
  color: #eaf4ff;
}

.brand-block {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 9px;
  padding: 0 8px 24px;
  border-bottom: 0;
}

.brand-logo-surface {
  width: 100%;
  min-height: 58px;
  border: 1px solid rgba(214, 229, 247, 0.88);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px 12px;
  background: linear-gradient(180deg, #ffffff 0%, #f7fbff 100%);
  box-shadow: 0 14px 30px rgba(0, 18, 48, 0.22);
}

.brand-logo-surface.large {
  width: min(390px, 100%);
  min-height: 92px;
  padding: 15px 18px;
  box-shadow: 0 22px 48px rgba(0, 18, 48, 0.18);
}

.brand-logo {
  display: block;
  width: 100%;
  height: auto;
  max-height: 46px;
  object-fit: contain;
}

.brand-logo-surface.large .brand-logo {
  max-height: 64px;
}

.brand-mark {
  width: 47px;
  height: 47px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: linear-gradient(180deg, #0d7cff, #075ed9);
  color: #ffffff;
  font-weight: 900;
  box-shadow: 0 12px 24px rgba(5, 111, 239, 0.34);
}

.brand-mark.large {
  width: 54px;
  height: 54px;
  font-size: 18px;
}

.brand-block h1 {
  margin: 0;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: 0;
}

.brand-block p {
  margin: 0;
  color: rgba(235, 244, 255, 0.8);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  line-height: 1.35;
  text-align: center;
  text-transform: uppercase;
}

.sidebar-nav {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 0;
  scrollbar-gutter: stable;
  -webkit-overflow-scrolling: touch;
}

.nav-section + .nav-section {
  margin-top: 21px;
}

.nav-section-title {
  padding: 0 10px 8px;
  color: rgba(232, 241, 255, 0.56);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0;
}

.sidebar-nav a {
  position: relative;
  display: flex;
  align-items: center;
  gap: 13px;
  min-height: 43px;
  padding: 10px 12px;
  border-radius: 8px;
  color: rgba(235, 244, 255, 0.84);
  text-decoration: none;
  font-size: 14px;
  font-weight: 700;
}

.sidebar-nav a:hover {
  color: #ffffff;
  background: rgba(30, 123, 255, 0.16);
}

.sidebar-nav a.active {
  color: #ffffff;
  background: linear-gradient(90deg, #0877ff, #055edc);
  box-shadow: 0 12px 24px rgba(7, 112, 243, 0.28);
}

.technical-nav-toggle {
  width: 100%;
  min-height: 43px;
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 10px 12px;
  border: 0;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  color: rgba(235, 244, 255, 0.84);
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  text-align: left;
}

.technical-nav-toggle:hover {
  color: #fff;
  background: rgba(30, 123, 255, 0.16);
}

.technical-nav-chevron {
  margin-left: auto;
  font-size: 18px;
  line-height: 1;
}

.technical-nav-items {
  margin-top: 4px;
  padding-left: 8px;
}

.nav-icon {
  flex-shrink: 0;
  color: currentColor;
}

.user-box {
  display: grid;
  grid-template-columns: 41px minmax(0, 1fr);
  gap: 10px 12px;
  align-items: center;
  padding: 16px 8px 8px;
  border-top: 1px solid rgba(204, 224, 255, 0.14);
}

.user-avatar {
  width: 41px;
  height: 41px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  font-weight: 800;
}

.user-meta {
  min-width: 0;
}

.user-meta strong,
.user-meta span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.user-meta span {
  color: rgba(235, 244, 255, 0.58);
  font-size: 12px;
}

.user-box button {
  grid-column: 1 / -1;
  width: 100%;
  margin-top: 8px;
  border-color: rgba(174, 207, 255, 0.28);
  background: rgba(255, 255, 255, 0.06);
  color: #eaf4ff;
}

.main-shell {
  min-width: 0;
  min-height: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.topbar {
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 0 32px;
  background: rgba(255, 255, 255, 0.78);
  border-bottom: 1px solid rgba(188, 201, 211, 0.72);
  backdrop-filter: blur(16px);
}

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

.topbar-kicker,
.section-eyebrow {
  display: inline-block;
  margin-bottom: 3px;
  color: var(--accent-strong);
  font-size: 11px;
  font-weight: 850;
  text-transform: uppercase;
}

.topbar-title {
  color: var(--ink);
  font-size: 18px;
  font-weight: 800;
}

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

.status-pill {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.74);
  color: var(--muted-strong);
  font-size: 12px;
  font-weight: 750;
}

.status-pill.ready {
  border-color: rgba(15, 148, 136, 0.28);
  background: rgba(15, 148, 136, 0.1);
  color: var(--accent-strong);
}

.content {
  flex: 1;
  min-height: 0;
  overflow: auto;
  overscroll-behavior: contain;
  padding: 28px 32px;
  scrollbar-gutter: stable;
  -webkit-overflow-scrolling: touch;
}

.content-inner {
  width: min(100%, 1480px);
  min-height: 0;
  margin: 0 auto;
}

/* Page structure */
.page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 20px;
}

.page-header h2 {
  margin: 0;
  color: var(--ink);
  font-size: 28px;
  line-height: 1.12;
  letter-spacing: 0;
}

.page-header p {
  max-width: 720px;
  margin: 8px 0 0;
  color: var(--muted);
}

.hero-header {
  align-items: flex-end;
}

.header-stack {
  min-width: 178px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.76);
  box-shadow: var(--shadow-sm);
}

.header-stack span,
.header-stack strong {
  display: block;
}

.header-stack span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
}

.header-stack strong {
  color: var(--ink);
  font-size: 15px;
}

/* Login */
.login-screen {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 36px;
  background:
    linear-gradient(135deg, rgba(16, 22, 21, 0.98) 0%, rgba(24, 32, 31, 0.98) 48%, rgba(237, 242, 245, 1) 48.2%),
    var(--bg);
}

.login-stage {
  width: min(100%, 980px);
  display: grid;
  grid-template-columns: 1fr 410px;
  gap: 38px;
  align-items: center;
}

.app-loading-card {
  width: min(390px, calc(100vw - 44px));
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 22px;
  border: 1px solid rgba(214, 229, 247, 0.82);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 24px 56px rgba(0, 18, 48, 0.2);
  text-align: center;
}

.app-loading-card strong {
  color: var(--ink);
  font-size: 18px;
}

.app-loading-card span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.login-brand-panel {
  min-height: 430px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: #ffffff;
}

.login-logo-group {
  display: flex;
  flex-direction: column;
  gap: 13px;
  align-items: flex-start;
}

.login-logo-group p {
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 13px;
  font-weight: 850;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.login-brand-panel h1 {
  margin: 14px 0 10px;
  font-size: 44px;
  line-height: 1.04;
  letter-spacing: 0;
}

.login-brand-panel p {
  max-width: 480px;
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 17px;
}

.login-signal-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  max-width: 520px;
}

.login-signal-grid div {
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.06);
}

.login-signal-grid span,
.login-signal-grid strong {
  display: block;
}

.login-signal-grid span {
  color: rgba(255, 255, 255, 0.56);
  font-size: 12px;
  font-weight: 750;
}

.login-signal-grid strong {
  margin-top: 3px;
  font-size: 17px;
}

.login-card {
  width: 100%;
  padding: 30px;
  border: 1px solid rgba(188, 201, 211, 0.78);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow-md);
}

.login-card h1 {
  margin: 0 0 6px;
  font-size: 24px;
  line-height: 1.2;
  letter-spacing: 0;
}

.login-card p.subtitle {
  margin: 0 0 24px;
  color: var(--muted);
  font-size: 14px;
}

/* Forms and controls */
.field {
  margin-bottom: 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.field label {
  color: var(--ink-soft);
  font-size: 12px;
  font-weight: 800;
}

input,
select,
textarea {
  min-width: 0;
  min-height: 40px;
  padding: 9px 11px;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  background: #ffffff;
  color: var(--ink);
  font: inherit;
  outline: none;
  box-shadow: inset 0 1px 0 rgba(16, 20, 24, 0.02);
}

input[type='checkbox'] {
  min-width: 16px;
  width: 16px;
  min-height: 16px;
  height: 16px;
  accent-color: var(--accent);
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(15, 148, 136, 0.14);
}

button {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  border: 1px solid transparent;
  border-radius: 6px;
  padding: 9px 14px;
  font: inherit;
  font-size: 14px;
  font-weight: 800;
  background: var(--accent);
  color: #ffffff;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.16) inset, var(--shadow-sm);
  transition:
    transform 140ms ease,
    box-shadow 140ms ease,
    background 140ms ease,
    border-color 140ms ease;
}

button:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 10px 20px rgba(16, 20, 24, 0.1);
}

button:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
}

button.secondary {
  border-color: var(--line);
  background: #ffffff;
  color: var(--ink-soft);
}

button.danger {
  background: var(--danger);
  color: #ffffff;
}

.icon-button {
  width: 34px;
  min-width: 34px;
  height: 34px;
  min-height: 34px;
  padding: 0;
  border-radius: 6px;
}

.danger-lite {
  border-color: rgba(217, 45, 32, 0.24);
  background: rgba(217, 45, 32, 0.08);
  color: var(--danger);
}

.error-text {
  color: var(--danger);
  font-size: 13px;
  font-weight: 700;
  margin: 8px 0 0;
}

.scan-message,
.pos-message {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 13px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  font-size: 13px;
  font-weight: 700;
}

.scan-message.info {
  border-color: rgba(15, 148, 136, 0.24);
  background: rgba(15, 148, 136, 0.1);
  color: var(--accent-strong);
}

.scan-message.warning {
  border-color: rgba(217, 119, 6, 0.24);
  background: rgba(217, 119, 6, 0.1);
  color: #9a5b00;
}

.pos-message.warning {
  min-height: 55px;
  border-color: rgba(246, 153, 45, 0.34);
  border-radius: 8px;
  background: #fff8ed;
  color: #b45400;
  font-size: 14px;
}

.pos-sync-message {
  justify-content: space-between;
}

.pos-sync-message span {
  flex: 1;
}

.pos-sync-message button {
  min-height: 34px;
  padding: 6px 12px;
}

.scan-message.error,
.pos-message.error {
  border-color: rgba(217, 45, 32, 0.24);
  background: rgba(217, 45, 32, 0.08);
  color: #a21d13;
}

.pos-message.success {
  border-color: rgba(21, 128, 61, 0.22);
  background: rgba(21, 128, 61, 0.09);
  color: var(--success);
}

/* Data surfaces */
table {
  width: 100%;
  max-width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

th,
td {
  text-align: left;
  padding: 12px 14px;
  border-bottom: 1px solid #edf2f5;
  color: var(--ink-soft);
  font-size: 13px;
  vertical-align: middle;
}

th {
  background: var(--surface-soft);
  color: var(--muted-strong);
  font-size: 11px;
  font-weight: 850;
  text-transform: uppercase;
}

tbody tr:last-child td {
  border-bottom: 0;
}

tbody tr:hover td {
  background: #fbfcfd;
}

.empty-table-cell {
  text-align: center;
  color: var(--muted);
  padding: 34px 16px;
}

.pos-table .empty-table-cell {
  height: 488px;
  padding: 18px;
}

.cart-empty-state {
  min-height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 10px;
  border: 1px solid #e6edf5;
  border-radius: 8px;
  background: #ffffff;
}

.cart-empty-icon {
  width: 79px;
  height: 79px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: #eef5ff;
  color: #347dff;
}

.cart-empty-state strong {
  display: block;
  color: #0d1b39;
  font-size: 17px;
  font-weight: 900;
}

.cart-empty-state span {
  display: block;
  color: #74839c;
  font-size: 13px;
}

.card {
  min-width: 0;
  margin-bottom: 16px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.88);
  box-shadow: var(--shadow-sm);
}

.management-page {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.elevated-card,
.command-card {
  border-color: rgba(188, 201, 211, 0.82);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 251, 252, 0.94)),
    var(--surface);
  box-shadow: 0 14px 34px rgba(16, 20, 24, 0.08);
}

.command-card {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  margin-bottom: 0;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.command-card input,
.command-card select {
  flex: 1;
}

.compact-command-card {
  justify-content: flex-start;
}

.search-command-card {
  align-items: center;
}

.search-command-card svg {
  flex-shrink: 0;
  color: var(--muted);
}

.result-strip {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-top: -6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.result-strip strong {
  color: var(--ink);
  font-size: 13px;
}

.inline-form {
  display: flex;
  align-items: flex-end;
  gap: 10px;
}

.wrap-form {
  flex-wrap: wrap;
}

.grow-field {
  flex: 1;
  min-width: 180px;
}

.soft-divider {
  margin: 18px 0;
  border: 0;
  border-top: 1px solid var(--line);
}

.card-title,
.section-title {
  margin: 0 0 12px;
  color: var(--ink);
  font-size: 18px;
  line-height: 1.2;
}

.section-title {
  margin-top: 4px;
}

.form-total {
  margin: 12px 0 0;
  color: var(--ink);
  font-size: 18px;
  font-weight: 900;
}

.spaced-table {
  margin-top: 16px;
}

.balance-positive {
  color: var(--success);
  font-weight: 850;
}

.balance-negative {
  color: var(--danger);
  font-weight: 850;
}

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

@media (max-width: 1366px), (max-height: 800px) {
  body {
    font-size: 13px;
  }

  .app-shell {
    grid-template-columns: 218px minmax(0, 1fr);
  }

  .app-shell.sidebar-collapsed {
    grid-template-columns: 64px minmax(0, 1fr);
  }

  .sidebar {
    padding: 18px 10px 10px;
  }

  .brand-block {
    gap: 6px;
    padding: 0 6px 14px;
  }

  .brand-logo-surface {
    min-height: 48px;
    padding: 7px 9px;
  }

  .brand-logo {
    max-height: 38px;
  }

  .brand-block p {
    font-size: 10px;
    line-height: 1.2;
  }

  .nav-section + .nav-section {
    margin-top: 12px;
  }

  .nav-section-title {
    padding: 0 8px 5px;
    font-size: 10px;
  }

  .sidebar-nav a {
    min-height: 36px;
    gap: 9px;
    padding: 7px 9px;
    font-size: 13px;
  }

  .user-box {
    grid-template-columns: 34px minmax(0, 1fr);
    gap: 8px;
    padding: 10px 6px 6px;
  }

  .user-avatar {
    width: 34px;
    height: 34px;
  }

  .user-box button {
    min-height: 34px;
    margin-top: 4px;
    padding: 6px 10px;
  }

  .topbar {
    height: 58px;
    padding: 0 20px;
  }

  .topbar-title {
    font-size: 16px;
  }

  .content {
    padding: 18px 20px;
  }

  .page-header {
    gap: 12px;
    margin-bottom: 14px;
  }

  .page-header h2 {
    font-size: 24px;
  }

  .card {
    margin-bottom: 12px;
    padding: 14px;
  }

  .command-card {
    padding: 12px;
  }

  th,
  td {
    padding: 9px 10px;
    font-size: 12px;
  }

  .form-grid {
    gap: 10px 12px;
  }

  .metric-card {
    min-height: 112px;
    padding: 14px;
  }
}

.line-row {
  display: grid;
  grid-template-columns: minmax(180px, 2fr) minmax(90px, 1fr) minmax(90px, 1fr) minmax(90px, 1fr) auto;
  gap: 10px;
  align-items: end;
  margin-bottom: 10px;
}

.badge {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 850;
}

.badge.draft {
  background: rgba(217, 119, 6, 0.1);
  color: #9a5b00;
}

.badge.posted {
  background: rgba(21, 128, 61, 0.1);
  color: var(--success);
}

.badge.cancelled {
  background: rgba(217, 45, 32, 0.09);
  color: var(--danger);
}

/* Dashboard */
.dashboard-page {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

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

.compact-metrics {
  margin-bottom: 16px;
}

.compact-metrics .metric-card {
  min-height: 108px;
}

.metric-card,
.action-tile {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.88);
  box-shadow: var(--shadow-sm);
}

.metric-card {
  min-height: 130px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-top: 4px solid var(--accent);
}

.metric-card.primary {
  border-top-color: var(--blue);
}

.metric-card.warning {
  border-top-color: var(--amber);
}

.metric-card.success {
  border-top-color: var(--success);
}

.metric-card span,
.metric-card small,
.action-kicker,
.action-tile small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
}

.metric-card strong {
  display: block;
  margin: 8px 0 4px;
  color: var(--ink);
  font-size: 28px;
  line-height: 1.05;
}

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

.action-tile {
  min-height: 142px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  text-decoration: none;
  color: var(--ink);
}

.action-tile:hover {
  border-color: rgba(15, 148, 136, 0.44);
  box-shadow: 0 16px 28px rgba(16, 20, 24, 0.1);
}

.action-tile strong {
  display: block;
  margin: 9px 0 6px;
  font-size: 18px;
  line-height: 1.2;
}

.action-tile.spotlight {
  background: #14201f;
  color: #ffffff;
  border-color: #14201f;
}

.action-tile.spotlight .action-kicker,
.action-tile.spotlight small {
  color: rgba(255, 255, 255, 0.64);
}

.dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(360px, 0.85fr);
  gap: 14px;
}

.owner-radar-grid,
.device-health-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 16px;
}

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

.device-config-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.dashboard-panel {
  min-width: 0;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow-sm);
}

.device-health-card,
.price-queue-card {
  min-width: 0;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow-sm);
}

.device-health-card dl {
  display: grid;
  gap: 10px;
  margin: 0;
}

.device-health-card dl div {
  display: grid;
  grid-template-columns: 128px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  padding: 10px 0;
  border-top: 1px solid rgba(214, 224, 235, 0.78);
}

.device-health-card dt {
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
}

.device-health-card dd {
  min-width: 0;
  margin: 0;
  color: var(--ink);
  font-size: 13px;
  font-weight: 750;
  overflow-wrap: anywhere;
}

.device-panel {
  display: flex;
  min-height: 360px;
  flex-direction: column;
}

.device-panel .form-grid {
  grid-template-columns: 1fr;
}

.device-panel button {
  margin-top: auto;
}

.panel-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 16px;
}

.panel-heading h3 {
  margin: 0;
  color: var(--ink);
  font-size: 18px;
  line-height: 1.2;
}

.panel-heading a {
  color: var(--accent-strong);
  font-size: 12px;
  font-weight: 850;
  text-decoration: none;
}

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

.payment-mix,
.ops-list {
  display: flex;
  flex-direction: column;
  gap: 11px;
}

.payment-row {
  display: grid;
  grid-template-columns: 138px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
}

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

.payment-row strong {
  color: var(--ink-soft);
  font-size: 13px;
}

.payment-row span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
}

.payment-bar {
  height: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: #e8eef2;
}

.payment-bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent), var(--blue));
}

.ops-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-soft);
}

.ops-item strong {
  color: var(--ink);
}

.ops-item span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
  text-align: right;
}

.ops-item.good {
  border-color: rgba(21, 128, 61, 0.18);
  background: rgba(21, 128, 61, 0.07);
}

.ops-item.warn {
  border-color: rgba(217, 119, 6, 0.2);
  background: rgba(217, 119, 6, 0.08);
}

.stock-alert-badge {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  margin-left: 8px;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(217, 45, 32, 0.08);
  color: var(--danger);
  font-size: 11px;
  font-weight: 850;
}

.loading-text {
  color: var(--muted);
  font-size: 13px;
  font-weight: 750;
}

/* POS / Satış ekranı */
.pos-workspace-shell {
  grid-template-columns: 250px minmax(0, 1fr);
  background: #f5f8fc;
}

.pos-workspace-shell .topbar {
  display: none;
}

.pos-workspace-shell .content {
  overflow: auto;
  padding: 27px 18px 28px;
  background: #f5f8fc;
}

.pos-workspace-shell .content-inner {
  width: 100%;
  max-width: none;
}

.pos-page {
  display: flex;
  flex-direction: column;
  height: calc(100vh - 55px);
  min-height: 0;
  overflow: hidden;
  color: #0c1a38;
}

.fintech-pos {
  gap: 13px;
}

.pos-command-bar {
  display: grid;
  grid-template-columns: minmax(760px, 1fr) minmax(492px, 492px);
  gap: 21px;
  align-items: stretch;
  padding: 0 0 18px;
  background: transparent;
  border: 0;
  border-radius: 0;
}

.pos-search-cluster {
  display: grid;
  grid-template-columns: 92px minmax(310px, 1fr) 78px 84px 109px 104px;
  gap: 8px;
  align-items: stretch;
  min-height: 64px;
}

.price-tier-select,
.pos-input-wrap,
.pos-action-button {
  height: 64px;
  border-radius: 8px;
}

.price-tier-select {
  border-color: #d8e3ef;
  background: #ffffff;
  color: #465b78;
  font-weight: 700;
  box-shadow: 0 8px 18px rgba(18, 52, 89, 0.05);
}

.pos-input-wrap {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  align-items: center;
  padding: 0 14px;
  border: 1px solid #d8e3ef;
  background: #ffffff;
  box-shadow: 0 8px 18px rgba(18, 52, 89, 0.05);
}

.pos-input-wrap svg {
  color: #0d234b;
}

.pos-barcode-input {
  width: 100%;
  min-height: 58px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #33445f;
  font-size: 15px;
  font-weight: 650;
  box-shadow: none;
}

.pos-action-button {
  flex-direction: column;
  gap: 4px;
  min-height: 64px;
  padding: 8px 10px;
  border: 0;
  color: #ffffff;
  font-size: 13px;
  font-weight: 850;
  box-shadow: 0 12px 22px rgba(20, 93, 204, 0.18);
}

.pos-action-button small {
  display: block;
  max-width: 100%;
  overflow: hidden;
  color: rgba(255, 255, 255, 0.86);
  font-size: 10px;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pos-action-button:disabled {
  opacity: 1;
  cursor: default;
}

.action-search {
  background: linear-gradient(180deg, #0877ff, #075ed6);
}

.action-price {
  background: linear-gradient(180deg, #26c36b, #14a84f);
}

.action-print {
  background: linear-gradient(180deg, #ffb955, #fb8f1a);
}

.action-payment {
  background: linear-gradient(180deg, #167aff, #075edc);
}

.fintech-totals {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  align-items: start;
}

.fintech-totals label {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 6px;
  color: #0d1b39;
  font-size: 13px;
  font-weight: 800;
}

.fintech-totals input,
.fintech-totals strong {
  display: flex;
  align-items: center;
  height: 52px;
  padding: 0 13px;
  border: 1px solid #d9e2ee;
  border-radius: 7px;
  background: #ffffff;
  font-size: 28px;
  font-weight: 900;
  line-height: 1;
  box-shadow: 0 8px 18px rgba(18, 52, 89, 0.05);
}

.paid-value {
  color: #0d1b39;
}

.fintech-totals input::placeholder {
  color: #0d1b39;
  opacity: 1;
}

.total-value {
  color: #e80000;
}

.change-value {
  color: #047b13;
}

.pos-fintech-board {
  display: grid;
  grid-template-columns: minmax(610px, 1fr) minmax(520px, 520px);
  gap: 13px;
  flex: 1;
  min-height: 0;
  overflow: hidden;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
}

.pos-product-panel,
.pos-checkout-panel {
  min-width: 0;
  min-height: 0;
  height: 100%;
  overflow: auto;
  border: 1px solid #e3ebf5;
  border-radius: 9px;
  background: #ffffff;
  box-shadow: 0 14px 35px rgba(12, 38, 79, 0.08);
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
  -webkit-overflow-scrolling: touch;
}

.pos-product-panel {
  padding: 18px 13px 12px;
}

.pos-checkout-panel {
  padding: 23px 13px 14px;
}

.product-toolbar {
  display: grid;
  grid-template-columns: 155px minmax(170px, 1fr) minmax(190px, 268px) 82px;
  gap: 13px;
  align-items: start;
  margin-bottom: 23px;
}

.product-count {
  min-height: 48px;
}

.product-count strong,
.product-count span {
  display: block;
}

.product-count strong {
  color: #0c1a38;
  font-size: 20px;
  line-height: 1.2;
}

.product-count > span {
  margin-top: 5px;
  color: #0c1a38;
  font-size: 22px;
  line-height: 1;
}

.info-dot {
  display: inline-flex !important;
  width: 14px;
  height: 14px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: #19bbd2;
  color: #ffffff;
  font-size: 10px !important;
  font-weight: 900;
}

.misc-amount-control,
.discount-control,
.customer-select-row {
  display: grid;
  min-width: 0;
}

.misc-amount-control {
  grid-template-columns: minmax(150px, 1fr) 50px;
}

.discount-control {
  grid-template-columns: minmax(150px, 1fr) 60px;
}

.misc-amount-control input,
.discount-control input,
.discount-control select,
.customer-select-row select {
  min-height: 45px;
  border-color: #d9e2ee;
  border-radius: 7px;
  color: #566a85;
  font-weight: 650;
}

.misc-amount-control button {
  min-height: 45px;
  border-radius: 0 7px 7px 0;
  background: #e7f3ff;
  color: #0277f0;
  box-shadow: none;
}

.more-button {
  min-height: 45px;
  border-color: #d9e2ee;
  background: #f3f6fa;
  color: #273a59;
  box-shadow: none;
}

.compact-basket-tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(170px, 1fr));
  gap: 8px;
  margin: 0;
}

.open-account-board {
  margin: 0 8px 15px;
  padding: 12px;
  border: 1px solid #d8e3f0;
  border-radius: 10px;
  background: #f7faff;
}

.open-account-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.open-account-heading > div {
  display: grid;
  gap: 2px;
}

.open-account-heading strong {
  color: #142b4d;
  font-size: 15px;
}

.open-account-heading small {
  color: #687a93;
  font-size: 11px;
}

.open-account-heading .add-open-account {
  min-height: 38px;
  padding: 8px 14px;
  border-radius: 7px;
  background: #0b78ef;
  color: #fff;
  font-size: 13px;
}

.open-account-tab {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 6px;
  align-items: center;
  padding: 5px;
  border: 1px solid #d5e0ed;
  border-radius: 8px;
  background: #fff;
}

.open-account-tab.active {
  border-color: #0877f2;
  background: #eaf4ff;
  box-shadow: 0 0 0 2px rgba(8, 119, 242, 0.13);
}

.compact-basket-tabs .open-account-select {
  min-width: 0;
  min-height: 50px;
  display: grid;
  justify-items: start;
  gap: 2px;
  padding: 7px 9px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #203251;
  box-shadow: none;
  text-align: left;
}

.open-account-select strong {
  width: 100%;
  overflow: hidden;
  color: #17345e;
  font-size: 14px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.open-account-select span {
  color: #0872df;
  font-size: 13px;
  font-weight: 800;
}

.open-account-actions {
  display: grid;
  gap: 3px;
}

.compact-basket-tabs .open-account-actions button {
  min-height: 24px;
  padding: 3px 6px;
  border: 0;
  border-radius: 4px;
  background: #e8eff8;
  color: #395474;
  font-size: 10px;
  box-shadow: none;
}

.compact-basket-tabs .open-account-actions .drop-account {
  background: #fff0f0;
  color: #b52d2d;
}

.open-account-name-input {
  width: 100%;
  min-height: 46px;
  padding: 8px;
  border: 2px solid #0877f2;
  border-radius: 6px;
  background: #fff;
  color: #17345e;
  font-weight: 800;
}

@media (max-width: 1180px) {
  .compact-basket-tabs {
    grid-template-columns: repeat(2, minmax(160px, 1fr));
  }
}

.pos-table {
  border-color: #dfe7f0;
  border-radius: 7px;
  box-shadow: 0 4px 14px rgba(12, 38, 79, 0.04);
}

.pos-table th,
.pos-table td {
  height: 52px;
  padding: 9px 14px;
  border-color: #e7edf4;
  color: #0d1b39;
  font-size: 13px;
}

.pos-table th {
  background: #ffffff;
  font-size: 13px;
  font-weight: 900;
  text-transform: none;
}

.trash-button {
  width: 28px;
  min-width: 28px;
  height: 28px;
  min-height: 28px;
  border: 0;
  background: transparent;
  color: #ff2a6b;
  box-shadow: none;
  font-size: 16px;
}

.qty-input {
  width: 78px;
}

.customer-select-row {
  grid-template-columns: minmax(0, 1fr) 58px 61px;
  gap: 5px;
}

.customer-select-row select {
  border-color: #d9e2ee;
  background: #ffffff;
}

.select-customer-button,
.chart-button {
  min-height: 45px;
  border-radius: 7px;
  color: #ffffff;
  box-shadow: none;
}

.select-customer-button {
  background: #0877ff;
}

.chart-button {
  border: 1px solid #ffc46a;
  background: #fff8ed;
  color: #f18a00;
  font-size: 12px;
}

.customer-detail-strip {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 12px;
  align-items: center;
  min-height: 28px;
  margin: 14px 0 13px;
  color: #202938;
}

.customer-detail-strip span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  border: 1px solid #dce5ef;
  border-radius: 4px;
  background: #f8fafc;
  font-size: 13px;
}

.customer-detail-strip strong {
  font-size: 12px;
}

.customer-detail-strip button {
  min-height: 28px;
  padding: 4px 0;
  background: transparent;
  color: #0d1b39;
  box-shadow: none;
  font-size: 12px;
}

.quick-amounts,
.fintech-quick-amounts {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 4px;
}

.fintech-quick-amounts button {
  min-height: 47px;
  border: 1px solid #d6e8fb;
  border-radius: 6px;
  background: #eef6ff;
  color: #0877ff;
  box-shadow: none;
  font-size: 16px;
}

.pos-payment-buttons,
.fintech-payment-buttons {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
  margin-top: 13px;
}

.pos-payment-buttons button {
  min-height: 118px;
  flex-direction: column;
  gap: 5px;
  padding: 18px 8px;
  border: 0;
  border-radius: 7px;
  color: #ffffff;
  text-align: center;
  box-shadow: none;
}

.pos-payment-buttons button:disabled {
  opacity: 0.88;
}

.pos-payment-buttons strong {
  display: block;
  font-size: 15px;
  line-height: 1.1;
}

.payment-key {
  min-height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.94);
  font-size: 13px;
  font-weight: 900;
}

.payment-cash {
  background: linear-gradient(180deg, #32c976, #18a653);
}

.payment-card {
  background: linear-gradient(180deg, #20c1cf, #16a2ba);
}

.payment-account {
  background: linear-gradient(180deg, #ffb42d, #fa9212);
}

.payment-split {
  background: linear-gradient(180deg, #238cff, #0a6fea);
}

.payment-other {
  background: linear-gradient(180deg, #ff3f44, #ef272f);
}

.split-panel {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.84);
  box-shadow: var(--shadow-sm);
}

.fintech-split-panel {
  margin-top: 10px;
}

.split-panel .field {
  margin-bottom: 10px;
}

.product-list-tabs {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 5px;
  margin-top: 20px;
}

.product-list-tabs button {
  min-height: 41px;
  border: 1px solid #dbe5ef;
  border-radius: 6px;
  background: #ffffff;
  color: #203251;
  box-shadow: none;
  font-weight: 650;
}

.product-list-tabs button.active {
  background: linear-gradient(180deg, #1688ff, #086ce8);
  color: #ffffff;
  border-color: #1688ff;
}

.quick-product-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 11px;
  margin-top: 13px;
}

.quick-product-grid button {
  min-height: 85px;
  align-items: flex-start;
  justify-content: space-between;
  flex-direction: column;
  padding: 12px;
  border: 1px solid #dce6f0;
  border-radius: 6px;
  background: #ffffff;
  color: #0d1b39;
  box-shadow: none;
  text-align: left;
}

.quick-product-card {
  position: relative;
  overflow: hidden;
  border: 1px solid #dce6f0;
  border-radius: 7px;
  background: #fff;
}

.quick-product-card .quick-product-sale-button {
  width: 100%;
  border: 0;
  border-radius: 0;
}

.quick-product-card.is-favorite {
  border-color: #15936f;
  background: #effcf7;
}

.quick-product-image {
  width: 100%;
  height: 62px;
  border-radius: 5px;
  object-fit: cover;
}

.quick-image-picker {
  display: block;
  padding: 6px 8px;
  border-top: 1px solid #dce6f0;
  color: #1565c0;
  font-size: 10px;
  font-weight: 800;
  text-align: center;
  cursor: pointer;
}

.quick-image-picker input {
  display: none;
}

.quick-product-grid button:hover:not(:disabled) {
  border-color: #1788f5;
  background: #eef7ff;
}

.quick-product-grid strong,
.quick-product-grid span {
  display: block;
  max-width: 100%;
}

.product-catalog-controls {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 6px;
  margin-top: 7px;
}

.product-catalog-controls select,
.product-catalog-controls input {
  min-height: 36px;
  padding: 6px 8px;
  font-size: 12px;
}

.product-catalog-grid {
  max-height: 272px;
  overflow-y: auto;
  padding-right: 3px;
}

.quick-product-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 10px;
}

.quick-product-header strong,
.quick-product-header small {
  display: block;
}

.quick-product-header small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
}

.quick-edit-button {
  min-height: 34px;
  padding: 5px 9px;
  border-color: #2463a7;
  background: #eef5ff;
  color: #174d87;
  font-size: 10px;
}

.quick-edit-button.active {
  border-color: #d97706;
  background: #fff3df;
  color: #9a4f00;
}

.product-group-tabs {
  display: flex;
  gap: 5px;
  margin-top: 8px;
  overflow-x: auto;
  padding: 1px 1px 4px;
  scrollbar-width: thin;
}

.product-group-tabs button {
  min-width: max-content;
  min-height: 34px;
  padding: 5px 10px;
  border-color: #c8d6e6;
  background: #f4f7fb;
  color: #29435f;
  font-size: 10px;
  box-shadow: none;
}

.product-group-tabs button.active {
  border-color: #1565c0;
  background: #1565c0;
  color: #fff;
}

.product-catalog-grid.editing button {
  position: relative;
  border-style: dashed;
}

.product-catalog-grid button.is-favorite {
  border-color: #15936f;
  background: #effcf7;
}

.favorite-action {
  position: absolute;
  top: 4px;
  right: 5px;
  padding: 2px 5px;
  border-radius: 999px;
  background: #1565c0;
  color: #fff !important;
  font-size: 8px !important;
  font-weight: 900;
}

.product-catalog-grid button.is-favorite .favorite-action {
  background: #c2410c;
}

.quick-product-grid strong {
  overflow: hidden;
  font-size: 13px;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.quick-product-grid span {
  color: #0877ff;
  font-size: 16px;
  font-weight: 900;
}

.checkout-note {
  margin: 10px 12px 0;
  color: #202938;
  font-size: 12px;
  line-height: 1.55;
}

.terminal-note {
  margin: 20px 4px 0;
  color: #7a8aa3;
  font-size: 13px;
  font-weight: 700;
}

@media (max-width: 1500px) {
  .pos-workspace-shell {
    grid-template-columns: 216px minmax(0, 1fr);
  }

  .pos-page {
    height: calc(100vh - 24px);
    overflow: hidden;
  }

  .pos-workspace-shell .content {
    padding: 12px;
  }

  .pos-command-bar {
    grid-template-columns: minmax(520px, 1fr) minmax(360px, 420px);
    gap: 10px;
    padding: 0 0 10px;
  }

  .pos-search-cluster {
    grid-template-columns: 78px minmax(220px, 1fr) 64px 72px 88px 88px;
    gap: 6px;
    min-height: 56px;
  }

  .price-tier-select,
  .pos-input-wrap,
  .pos-action-button {
    height: 56px;
    min-height: 56px;
  }

  .pos-input-wrap {
    grid-template-columns: 30px minmax(0, 1fr);
    padding: 0 10px;
  }

  .pos-barcode-input {
    min-height: 50px;
    font-size: 14px;
  }

  .pos-action-button {
    gap: 2px;
    padding: 6px 8px;
    font-size: 12px;
  }

  .pos-action-button small {
    font-size: 9px;
  }

  .fintech-totals {
    gap: 7px;
  }

  .fintech-totals label {
    gap: 4px;
    font-size: 12px;
  }

  .fintech-totals input,
  .fintech-totals strong {
    height: 45px;
    padding: 0 10px;
    font-size: 22px;
  }

  .pos-fintech-board {
    grid-template-columns: minmax(500px, 1fr) minmax(370px, 420px);
    gap: 10px;
    overflow: hidden;
  }

  .pos-product-panel,
  .pos-checkout-panel {
    height: 100%;
  }

  .pos-product-panel,
  .pos-checkout-panel {
    padding: 11px;
  }

  .product-toolbar {
    grid-template-columns: 118px minmax(150px, 1fr) minmax(160px, 220px) 72px;
    gap: 8px;
    margin-bottom: 12px;
  }

  .product-count {
    min-height: 42px;
  }

  .product-count strong {
    font-size: 16px;
  }

  .product-count > span {
    margin-top: 2px;
    font-size: 17px;
  }

  .misc-amount-control,
  .discount-control {
    grid-template-columns: minmax(110px, 1fr) 46px;
  }

  .misc-amount-control input,
  .discount-control input,
  .discount-control select,
  .customer-select-row select {
    min-height: 39px;
    padding: 7px 8px;
    font-size: 12px;
  }

  .misc-amount-control button,
  .more-button,
  .select-customer-button,
  .chart-button {
    min-height: 39px;
    padding: 7px 8px;
    font-size: 12px;
  }

  .compact-basket-tabs {
    gap: 6px;
    margin-left: 0;
    margin-right: 0;
    margin-bottom: 10px;
  }

  .compact-basket-tabs button {
    min-height: 44px;
    padding: 6px 8px;
    font-size: 12px;
  }

  .pos-table th,
  .pos-table td {
    height: 42px;
    padding: 6px 8px;
    font-size: 12px;
  }

  .pos-table .empty-table-cell {
    height: 270px;
  }

  .cart-empty-state {
    min-height: 170px;
  }

  .cart-empty-icon {
    width: 58px;
    height: 58px;
  }

  .qty-input {
    width: 64px;
  }

  .customer-select-row {
    grid-template-columns: minmax(0, 1fr) 48px 54px;
  }

  .customer-detail-strip {
    gap: 6px;
    margin: 9px 0;
  }

  .customer-detail-strip span,
  .customer-detail-strip button {
    font-size: 11px;
  }

  .fintech-quick-amounts button {
    min-height: 38px;
    font-size: 14px;
  }

  .pos-payment-buttons,
  .fintech-payment-buttons {
    gap: 5px;
    margin-top: 9px;
  }

  .pos-payment-buttons button {
    min-height: 86px;
    padding: 10px 4px;
  }

  .pos-payment-buttons svg {
    width: 26px;
    height: 26px;
  }

  .pos-payment-buttons strong {
    font-size: 12px;
  }

  .payment-key {
    min-height: 14px;
    font-size: 11px;
  }

  .product-list-tabs {
    margin-top: 12px;
  }

  .product-list-tabs button {
    min-height: 36px;
    font-size: 12px;
  }

  .quick-product-grid {
    gap: 7px;
    margin-top: 9px;
  }

  .quick-product-grid button {
    min-height: 68px;
    padding: 9px;
  }

  .quick-product-grid span {
    font-size: 14px;
  }

  .terminal-note {
    margin-top: 12px;
    font-size: 12px;
  }
}

/* Etiket basımı */
.label-sheet {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.label-tag {
  width: var(--label-width, 59mm);
  min-height: var(--label-height, 38mm);
  border: 1px dashed var(--line-strong);
  border-radius: 6px;
  padding: 8px;
  text-align: center;
  background: #ffffff;
}

.label-name {
  font-size: var(--label-name-size, 13px);
  font-weight: 800;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.label-price {
  margin: 2px 0 4px;
  color: var(--ink);
  font-size: var(--label-price-size, 22px);
  font-weight: 900;
}

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

.label-settings-grid label,
.label-settings-grid span {
  display: block;
}

.label-settings-grid span {
  margin-bottom: 5px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.label-settings-grid input {
  width: 100%;
}

.group-sales-report {
  margin-top: 16px;
}

.group-sales-report .panel-heading select {
  width: min(260px, 40%);
}

.label-nobarcode {
  color: var(--muted);
  font-size: 11px;
  padding: 12px 0;
}

@media (max-width: 1180px) {
  .app-shell {
    grid-template-columns: 206px minmax(0, 1fr);
  }

  .app-shell.sidebar-collapsed,
  .pos-workspace-shell.sidebar-collapsed {
    grid-template-columns: 64px minmax(0, 1fr);
  }

  .pos-workspace-shell {
    grid-template-columns: 206px minmax(0, 1fr);
  }

  .topbar,
  .content {
    padding-left: 22px;
    padding-right: 22px;
  }

  .metrics-grid,
  .action-grid,
  .dashboard-grid,
  .owner-radar-grid,
  .device-health-grid,
  .device-config-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .command-card,
  .inline-form {
    flex-wrap: wrap;
  }

  .pos-top-row,
  .pos-body {
    grid-template-columns: 1fr;
  }

  .pos-command-bar,
  .pos-fintech-board {
    grid-template-columns: 1fr;
  }

  .pos-page {
    height: auto;
    min-height: calc(100vh - 55px);
    overflow: visible;
  }

  .pos-fintech-board {
    overflow: visible;
  }

  .pos-product-panel,
  .pos-checkout-panel {
    height: auto;
  }

  .pos-command-bar {
    padding-top: 18px;
  }

  .product-toolbar {
    grid-template-columns: 140px minmax(220px, 1fr) minmax(260px, 320px) 88px;
    gap: 14px;
  }

  .compact-basket-tabs {
    gap: 8px;
    margin-left: 0;
    margin-right: 0;
  }
}

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

  .sidebar {
    display: none;
  }

  .topbar {
    height: auto;
    min-height: 68px;
    align-items: flex-start;
    padding-top: 14px;
    padding-bottom: 14px;
  }

  .page-header,
  .pos-header,
  .topbar {
    flex-direction: column;
  }

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

  .form-grid,
  .metrics-grid,
  .action-grid,
  .dashboard-grid,
  .owner-radar-grid,
  .device-health-grid,
  .device-config-grid,
  .pos-totals,
  .pos-basket-tabs {
    grid-template-columns: 1fr;
  }

  .device-health-card dl div {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .pos-workspace-shell .content {
    padding: 8px;
  }

  .pos-search-cluster,
  .fintech-totals,
  .product-toolbar,
  .customer-detail-strip {
    grid-template-columns: 1fr;
  }

  .pos-fintech-board {
    gap: 16px;
    padding: 10px;
  }

  .compact-basket-tabs,
  .fintech-quick-amounts,
  .fintech-payment-buttons,
  .product-list-tabs,
  .quick-product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .price-tier-select,
  .pos-barcode-input,
  .pos-action-button {
    width: 100%;
    border-left: 1px solid var(--line-strong);
  }

  .misc-amount-control,
  .discount-control,
  .customer-select-row {
    grid-template-columns: 1fr;
  }

  .login-screen {
    padding: 22px;
    background: var(--bg);
  }

  .login-stage {
    grid-template-columns: 1fr;
  }

  .login-brand-panel {
    min-height: auto;
    color: var(--ink);
    gap: 22px;
  }

  .login-brand-panel p,
  .login-signal-grid span {
    color: var(--muted);
  }

  .login-signal-grid {
    grid-template-columns: 1fr;
  }

  .login-signal-grid div {
    border-color: var(--line);
    background: rgba(255, 255, 255, 0.76);
  }

  .command-card,
  .inline-form {
    align-items: stretch;
    flex-direction: column;
  }

  .command-card input,
  .command-card select,
  .command-card button,
  .inline-form input,
  .inline-form select,
  .inline-form button {
    width: 100%;
  }
}

/* 1024x768 kasa ve yönetim terminalleri */
@media (min-width: 821px) and (max-width: 1100px),
  (min-width: 821px) and (max-width: 1366px) and (max-height: 780px) {
  body {
    font-size: 12px;
  }

  .app-shell,
  .pos-workspace-shell {
    grid-template-columns: 154px minmax(0, 1fr);
  }

  .sidebar {
    padding: 8px 7px 6px;
  }

  .brand-block {
    gap: 0;
    padding: 0 3px 8px;
  }

  .brand-logo-surface {
    min-height: 38px;
    padding: 5px 7px;
  }

  .brand-logo {
    max-height: 29px;
  }

  .brand-block p {
    display: none;
  }

  .nav-section + .nav-section {
    margin-top: 6px;
  }

  .nav-section-title {
    padding: 0 7px 3px;
    font-size: 8px;
  }

  .sidebar-nav a {
    min-height: 29px;
    gap: 6px;
    padding: 4px 7px;
    font-size: 10.5px;
  }

  .nav-icon {
    width: 15px;
    height: 15px;
  }

  .user-box {
    grid-template-columns: 28px minmax(0, 1fr);
    gap: 4px 6px;
    padding: 5px 4px 0;
  }

  .user-avatar {
    width: 28px;
    height: 28px;
    font-size: 10px;
  }

  .user-meta strong {
    font-size: 10.5px;
  }

  .user-meta span {
    font-size: 9px;
  }

  .user-box button {
    min-height: 27px;
    margin-top: 1px;
    padding: 3px 6px;
    font-size: 10.5px;
  }

  .topbar {
    height: 44px;
    padding: 0 12px;
  }

  .topbar-kicker {
    display: none;
  }

  .topbar-title {
    font-size: 14px;
  }

  .status-pill {
    min-height: 24px;
    padding: 3px 7px;
    font-size: 10px;
  }

  .content,
  .topbar {
    padding-left: 12px;
    padding-right: 12px;
  }

  .content {
    padding-top: 10px;
    padding-bottom: 10px;
  }

  .content-inner {
    width: 100%;
  }

  .management-page,
  .dashboard-page {
    gap: 8px;
  }

  .page-header {
    gap: 9px;
    margin-bottom: 9px;
  }

  .page-header h2 {
    font-size: 20px;
  }

  .page-header p {
    margin-top: 3px;
    font-size: 11px;
  }

  .section-eyebrow {
    margin-bottom: 1px;
    font-size: 9px;
  }

  .header-stack {
    min-width: 132px;
    padding: 7px 9px;
  }

  .header-stack span {
    font-size: 10px;
  }

  .header-stack strong {
    font-size: 12px;
  }

  .metrics-grid,
  .action-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 7px;
  }

  .compact-metrics {
    margin-bottom: 7px;
  }

  .metric-card,
  .compact-metrics .metric-card {
    min-height: 78px;
    padding: 9px;
    border-top-width: 3px;
  }

  .metric-card span,
  .metric-card small,
  .action-kicker,
  .action-tile small {
    font-size: 9.5px;
  }

  .metric-card strong {
    margin: 3px 0 1px;
    font-size: 19px;
  }

  .dashboard-grid {
    grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.9fr);
    gap: 8px;
  }

  .owner-radar-grid,
  .device-health-grid,
  .device-config-grid {
    gap: 8px;
  }

  .dashboard-panel,
  .device-health-card,
  .price-queue-card {
    padding: 10px;
  }

  .panel-heading {
    gap: 8px;
    margin-bottom: 9px;
  }

  .panel-heading h3,
  .card-title,
  .section-title {
    font-size: 14px;
  }

  .payment-mix,
  .ops-list {
    gap: 6px;
  }

  .payment-row {
    grid-template-columns: 94px minmax(0, 1fr);
    gap: 7px;
  }

  .ops-item {
    gap: 7px;
    padding: 7px;
  }

  .action-tile {
    min-height: 91px;
    padding: 10px;
  }

  .action-tile strong {
    margin: 4px 0 2px;
    font-size: 14px;
  }

  .card {
    margin-bottom: 8px;
    padding: 10px;
    overflow-x: auto;
  }

  .command-card {
    gap: 7px;
    padding: 8px;
  }

  .field {
    gap: 3px;
    margin-bottom: 8px;
  }

  .form-grid {
    gap: 7px 9px;
  }

  input,
  select,
  textarea,
  button {
    min-height: 34px;
    padding: 6px 8px;
    font-size: 12px;
  }

  th,
  td {
    padding: 7px 8px;
    font-size: 11px;
  }

  th {
    font-size: 9.5px;
  }

  .line-row {
    grid-template-columns: minmax(150px, 2fr) repeat(3, minmax(75px, 1fr)) auto;
    gap: 6px;
  }

  .login-screen {
    padding: 18px;
    background: linear-gradient(90deg, #101615 0%, #18201f 59%, #edf2f5 59.2%, #f7fafb 100%);
  }

  .login-stage {
    width: min(100%, 940px);
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 24px;
  }

  .login-brand-panel {
    min-height: 380px;
  }

  .login-brand-panel h1 {
    font-size: 36px;
  }

  .login-brand-panel p {
    font-size: 14px;
  }

  .login-card {
    padding: 22px;
  }

  .login-card p.subtitle {
    margin-bottom: 16px;
  }

  /* POS, 1024x768'de iki çalışma panelini yan yana tutar. */
  .pos-workspace-shell .content {
    padding: 6px;
  }

  .pos-page {
    height: calc(100vh - 12px);
    min-height: 0;
    overflow: hidden;
  }

  .fintech-pos {
    gap: 6px;
  }

  .pos-command-bar {
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 6px;
    padding: 0 0 6px;
  }

  .pos-search-cluster {
    grid-template-columns: 58px minmax(140px, 1fr) 48px 54px 62px 62px;
    gap: 4px;
    min-height: 46px;
  }

  .price-tier-select,
  .pos-input-wrap,
  .pos-action-button {
    height: 46px;
    min-height: 46px;
  }

  .price-tier-select {
    padding: 4px 5px;
    font-size: 10px;
  }

  .pos-input-wrap {
    grid-template-columns: 22px minmax(0, 1fr);
    padding: 0 7px;
  }

  .pos-input-wrap svg,
  .pos-action-button svg {
    width: 17px;
    height: 17px;
  }

  .pos-barcode-input {
    min-height: 42px;
    font-size: 11px;
  }

  .pos-action-button {
    gap: 1px;
    padding: 3px;
    font-size: 9.5px;
  }

  .pos-action-button small {
    display: none;
  }

  .fintech-totals {
    gap: 3px;
  }

  .fintech-totals label {
    gap: 2px;
    font-size: 9.5px;
  }

  .fintech-totals input,
  .fintech-totals strong {
    height: 31px;
    padding: 0 6px;
    font-size: 16px;
  }

  .pos-message,
  .pos-message.warning {
    min-height: 34px;
    gap: 6px;
    padding: 6px 8px;
    font-size: 10.5px;
  }

  .pos-message svg {
    width: 17px;
    height: 17px;
  }

  .pos-fintech-board {
    grid-template-columns: minmax(0, 1fr) minmax(300px, 330px);
    gap: 6px;
    min-height: 0;
    overflow: hidden;
  }

  .pos-product-panel,
  .pos-checkout-panel {
    height: 100%;
    padding: 8px;
  }

  .product-toolbar {
    grid-template-columns: 76px minmax(100px, 1fr) minmax(110px, 140px) 55px;
    gap: 5px;
    margin-bottom: 7px;
  }

  .product-count {
    min-height: 34px;
  }

  .product-count strong {
    font-size: 12px;
  }

  .product-count > span {
    margin-top: 1px;
    font-size: 14px;
  }

  .misc-amount-control,
  .discount-control {
    grid-template-columns: minmax(80px, 1fr) 38px;
  }

  .misc-amount-control input,
  .discount-control input,
  .discount-control select,
  .customer-select-row select,
  .misc-amount-control button,
  .more-button,
  .select-customer-button,
  .chart-button {
    min-height: 33px;
    padding: 4px 5px;
    font-size: 10px;
  }

  .compact-basket-tabs {
    gap: 3px;
    margin: 0 0 6px;
  }

  .compact-basket-tabs button {
    min-height: 34px;
    padding: 4px;
    font-size: 9.5px;
  }

  .pos-table th,
  .pos-table td {
    height: 34px;
    padding: 4px 6px;
    font-size: 10.5px;
  }

  .pos-table .empty-table-cell {
    height: 245px;
  }

  .cart-empty-state {
    min-height: 118px;
  }

  .cart-empty-icon {
    width: 44px;
    height: 44px;
  }

  .cart-empty-icon svg {
    width: 30px;
    height: 30px;
  }

  .cart-empty-state strong {
    font-size: 13px;
  }

  .cart-empty-state span {
    font-size: 10px;
  }

  .qty-input {
    width: 52px;
  }

  .customer-select-row {
    grid-template-columns: minmax(0, 1fr) 42px 46px;
    gap: 3px;
  }

  .customer-detail-strip {
    gap: 4px;
    margin: 5px 0;
  }

  .customer-detail-strip span,
  .customer-detail-strip button {
    min-height: 23px;
    font-size: 9.5px;
  }

  .fintech-quick-amounts {
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 3px;
  }

  .fintech-quick-amounts button {
    min-height: 31px;
    padding: 4px;
    font-size: 11px;
  }

  .pos-payment-buttons,
  .fintech-payment-buttons {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 4px;
    margin-top: 6px;
  }

  .pos-payment-buttons button {
    min-height: 62px;
    gap: 2px;
    padding: 5px 2px;
  }

  .pos-payment-buttons svg {
    width: 20px;
    height: 20px;
  }

  .pos-payment-buttons strong,
  .payment-key {
    font-size: 9.5px;
  }

  .product-list-tabs {
    gap: 3px;
    margin-top: 7px;
  }

  .product-list-tabs button {
    min-height: 28px;
    padding: 3px;
    font-size: 9px;
  }

  .quick-product-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 5px;
    margin-top: 6px;
  }

  .quick-product-grid button {
    min-height: 53px;
    padding: 6px;
  }

  .quick-product-grid strong {
    font-size: 10px;
  }

  .quick-product-grid span {
    font-size: 11px;
  }

  .checkout-note,
  .terminal-note {
    margin-top: 6px;
    font-size: 9.5px;
  }
}

/* Kasa odakli odeme ve veresiye akisi */
.payment-spotlight {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  width: 100%;
  min-width: 0;
  gap: 8px;
  padding: 8px;
  border-radius: 14px;
  background: #0f172a;
  box-shadow: 0 10px 28px rgba(15, 23, 42, .22);
}

.fintech-totals .payment-total-card {
  min-width: 0;
  padding: 9px 12px;
  border: 2px solid transparent;
  border-radius: 10px;
  background: #fff;
}

.fintech-totals .payment-total-card > span {
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .07em;
}

.fintech-totals .payment-total-card input,
.fintech-totals .payment-total-card strong {
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
  padding-inline: 8px;
  overflow: hidden;
  color: #0f172a;
  font-weight: 950;
  font-variant-numeric: tabular-nums;
  letter-spacing: -.035em;
  line-height: 1.05;
  white-space: nowrap;
}

.fintech-totals .amount-display.amount-large {
  font-size: clamp(28px, 2.45vw, 40px);
}

.fintech-totals .amount-display.amount-medium {
  font-size: clamp(24px, 2.05vw, 34px);
}

.fintech-totals .amount-display.amount-compact {
  font-size: clamp(19px, 1.7vw, 28px);
}

.fintech-totals .paid-card {
  border-color: #38bdf8;
  background: #e0f2fe;
}

.fintech-totals .sale-total-card {
  border-color: #fbbf24;
  background: #fef3c7;
}

.fintech-totals .change-card {
  border-color: #94a3b8;
  background: #f8fafc;
}

.fintech-totals .change-card.has-change {
  border-color: #22c55e;
  background: #dcfce7;
  box-shadow: 0 0 0 3px rgba(34, 197, 94, .22);
}

.fintech-totals .change-card.has-change strong {
  color: #166534;
}

.credit-picker-backdrop {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(2, 6, 23, .72);
  backdrop-filter: blur(4px);
}

.credit-picker-panel {
  display: flex;
  flex-direction: column;
  width: min(720px, 96vw);
  max-height: min(720px, 92vh);
  overflow: hidden;
  border: 1px solid #cbd5e1;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 28px 70px rgba(2, 6, 23, .38);
}

.credit-picker-header,
.credit-picker-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 18px;
}

.credit-picker-header {
  color: #fff;
  background: #7c2d12;
}

.credit-picker-header span {
  color: #fed7aa;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .12em;
}

.credit-picker-header h2,
.credit-picker-header p {
  margin: 2px 0 0;
}

.credit-picker-header p {
  color: #ffedd5;
  font-size: 13px;
}

.credit-picker-close {
  min-width: 76px;
  min-height: 44px;
  border: 1px solid rgba(255,255,255,.55);
  color: #fff;
  background: rgba(255,255,255,.12);
}

.credit-search-block {
  margin: 12px 16px 6px;
}

.credit-search-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 6px;
}

.credit-search-meta label {
  color: #0f172a;
  font-size: 15px;
  font-weight: 900;
}

.credit-search-meta span {
  color: #64748b;
  font-size: 12px;
  font-weight: 800;
}

.credit-picker-search {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  padding: 0 14px;
  border: 2px solid #fb923c;
  border-radius: 12px;
  background: #fff7ed;
}

.credit-picker-search input {
  width: 100%;
  min-height: 48px;
  border: 0;
  outline: 0;
  background: transparent;
  font-size: 16px;
}

.credit-picker-search button {
  min-width: 74px;
  min-height: 40px;
  border: 0;
  color: #9a3412;
  background: transparent;
  font-weight: 900;
}

.credit-customer-list {
  display: grid;
  gap: 8px;
  padding: 8px 16px 14px;
  overflow-y: auto;
}

.credit-customer-list > button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 58px;
  padding: 10px 14px;
  border: 2px solid #e2e8f0;
  color: #0f172a;
  text-align: left;
  background: #fff;
}

.credit-customer-list > button:hover,
.credit-customer-list > button.selected {
  border-color: #ea580c;
  background: #fff7ed;
}

.credit-customer-list span,
.credit-customer-list small,
.credit-customer-list strong {
  display: block;
}

.credit-customer-list small {
  margin-top: 3px;
  color: #64748b;
}

.credit-customer-balance {
  text-align: right;
}

.credit-picker-empty {
  padding: 24px;
  color: #64748b;
  text-align: center;
}

.credit-picker-footer {
  border-top: 1px solid #e2e8f0;
  background: #f8fafc;
}

.credit-picker-footer span,
.credit-picker-footer strong {
  display: block;
}

.credit-picker-footer strong {
  margin-top: 2px;
  font-size: 24px;
  font-variant-numeric: tabular-nums;
}

.credit-confirm-button {
  min-width: 210px;
  min-height: 54px;
  border: 0;
  border-radius: 12px;
  color: #fff;
  background: #c2410c;
  font-size: 16px;
  font-weight: 950;
  letter-spacing: .04em;
}

.credit-confirm-button:disabled {
  cursor: not-allowed;
  opacity: .45;
}

@media (max-width: 1100px) {
  .fintech-totals .payment-total-card {
    min-width: 0;
    padding: 7px 9px;
  }

  .fintech-totals .amount-display.amount-large {
    font-size: 27px;
  }

  .fintech-totals .amount-display.amount-medium {
    font-size: 23px;
  }

  .fintech-totals .amount-display.amount-compact {
    font-size: 18px;
  }

  .credit-picker-panel {
    max-height: 95vh;
  }
}

/* Kare ve kısa kasa ekranları: satış öncelikli sıkı yerleşim */
@media screen and (min-width: 821px) and (max-width: 1200px),
  screen and (min-width: 821px) and (max-height: 800px) {
  .pos-workspace-shell.sidebar-collapsed { grid-template-columns: 56px minmax(0, 1fr); }
  .pos-workspace-shell.sidebar-collapsed .sidebar { padding: 8px 6px 6px; }
  .pos-workspace-shell.sidebar-collapsed .sidebar-nav a { min-height: 36px; padding: 7px; }
  .pos-workspace-shell.sidebar-collapsed .nav-icon { width: 19px; height: 19px; }
  .pos-workspace-shell .content { padding: 5px; }
  .fintech-pos .pos-command-bar { grid-template-columns: minmax(0, 1fr) 286px; gap: 5px; padding: 5px; }
  .fintech-pos .pos-search-cluster { grid-template-columns: 52px minmax(120px, 1fr) 44px 48px 54px 54px; gap: 3px; }
  .fintech-pos .payment-spotlight { gap: 3px; padding: 4px; border-radius: 8px; }
  .fintech-pos .fintech-totals .payment-total-card { padding: 5px 6px; }
  .fintech-pos .fintech-totals .payment-total-card > span { font-size: 9px; letter-spacing: 0; }
  .fintech-pos .fintech-totals .amount-display.amount-large { font-size: 21px; }
  .fintech-pos .fintech-totals .amount-display.amount-medium { font-size: 18px; }
  .fintech-pos .fintech-totals .amount-display.amount-compact { font-size: 15px; }
  .fintech-pos .pos-fintech-board { grid-template-columns: minmax(0, 48%) minmax(0, 52%); gap: 5px; }
  .fintech-pos .product-toolbar { grid-template-columns: 66px minmax(88px, 1fr) minmax(105px, 1fr) 48px; gap: 4px; padding: 5px; }
  .fintech-pos .pos-table { table-layout: fixed; width: 100%; }
  .fintech-pos .pos-table th:nth-child(3), .fintech-pos .pos-table td:nth-child(3),
  .fintech-pos .pos-table th:nth-child(7), .fintech-pos .pos-table td:nth-child(7) { display: none; }
  .fintech-pos .pos-table th:first-child, .fintech-pos .pos-table td:first-child { width: 34px; }
  .fintech-pos .pos-table th:nth-child(4), .fintech-pos .pos-table td:nth-child(4) { width: 62px; }
  .fintech-pos .pos-table th:nth-child(5), .fintech-pos .pos-table td:nth-child(5),
  .fintech-pos .pos-table th:nth-child(6), .fintech-pos .pos-table td:nth-child(6) { width: 68px; }
  .fintech-pos .pos-table th, .fintech-pos .pos-table td { overflow: hidden; padding: 5px; text-overflow: ellipsis; }
  .fintech-pos .open-account-board { max-height: 132px; overflow-y: auto; }
  .fintech-pos .product-catalog-grid { max-height: 205px; }
  .fintech-pos .pos-payment-buttons button { min-height: 58px; }
}

@media print {
  .no-print,
  .sidebar,
  .topbar {
    display: none !important;
  }

  .app-shell,
  .main-shell,
  .content,
  .content-inner {
    display: block;
    height: auto;
    overflow: visible;
    padding: 0;
    margin: 0;
  }

  .label-tag {
    border: 1px solid #000000;
    box-shadow: none;
  }
}

@media screen and (min-width: 821px) and (max-height: 800px) {
  .fintech-pos .open-account-board { max-height: 112px; }
  .fintech-pos .product-catalog-grid { max-height: 126px; }
  .fintech-pos .quick-product-grid button { min-height: 48px; }
}

@media screen and (max-height: 850px) {
  .fintech-pos .open-account-board {
    padding: 6px;
  }

  .fintech-pos .open-account-heading {
    margin-bottom: 4px;
  }

  .fintech-pos .open-account-heading small {
    display: none;
  }

  .fintech-pos .open-account-tab {
    min-height: 48px;
    padding: 3px;
  }

  .fintech-pos .compact-basket-tabs .open-account-select {
    min-height: 36px;
    padding: 3px 5px;
  }

  .fintech-pos .compact-basket-tabs .open-account-actions button {
    min-height: 18px;
    padding: 1px 4px;
    font-size: 8px;
  }

  .fintech-pos .customer-select-row select,
  .fintech-pos .select-customer-button,
  .fintech-pos .chart-button {
    min-height: 34px;
    height: 34px;
  }

  .fintech-pos .customer-detail-strip {
    display: none;
  }

  .fintech-pos .quick-product-header {
    min-height: 38px;
    padding: 4px 7px;
  }

  .fintech-pos .quick-product-header small {
    display: none;
  }

  .fintech-pos .product-group-tabs {
    min-height: 34px;
  }

  .fintech-pos .product-group-tabs button {
    min-height: 30px;
    padding: 4px 8px;
  }

  .fintech-pos .product-catalog-controls input,
  .fintech-pos .product-catalog-controls button {
    min-height: 30px;
    height: 30px;
  }

  .fintech-pos .product-catalog-grid {
    flex: 0 1 116px;
    min-height: 90px;
    max-height: 116px;
  }

  .fintech-pos .quick-product-card,
  .fintech-pos .quick-product-grid button {
    min-height: 104px;
  }

  .fintech-pos .quick-product-image {
    height: 52px;
  }

  .fintech-pos .fintech-quick-amounts button {
    min-height: 30px;
    height: 30px;
  }

  .fintech-pos .pos-payment-buttons button {
    min-height: 64px;
    padding: 5px 3px;
  }

  .fintech-pos .terminal-note {
    display: none;
  }
}

/* Alış faturası: barkod/ürün bulma ve fiyat güncelleme alanı */
.ms-pi-search {
  display: grid;
  grid-template-columns: 28px minmax(240px, 1fr) 92px;
  gap: 8px;
  align-items: center;
  margin: 8px 0;
  padding: 8px 10px;
  border: 2px solid #1688f5;
  border-radius: 9px;
  background: #f4f9ff;
}

.ms-pi-search input {
  min-height: 44px;
  border: 0;
  background: #fff;
  font-size: 15px;
}

.ms-pi-results {
  display: grid;
  gap: 6px;
  max-height: 260px;
  margin-bottom: 10px;
  overflow-y: auto;
}

.ms-pi-results > button:not(.ms-pi-close) {
  display: flex;
  min-height: 54px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 12px;
  border: 1px solid #c8d7e7;
  background: #fff;
  color: #102a4d;
  text-align: left;
}

.ms-pi-results strong,
.ms-pi-results small {
  display: block;
}

.ms-pi-prices {
  flex: 0 0 auto;
  text-align: right;
}

.ms-pi-table {
  table-layout: fixed;
  width: 100%;
}

.ms-pi-table input {
  width: 100%;
  min-width: 70px;
}

.ms-pi-name strong,
.ms-pi-name small {
  display: block;
}

.ms-pi-old {
  color: #64748b;
  font-variant-numeric: tabular-nums;
}

.ms-pi-new {
  border: 2px solid #f59e0b;
  background: #fffbeb;
  font-weight: 900;
}

.ms-pi-new.changed {
  border-color: #16a34a;
  background: #f0fdf4;
}

.ms-pi-empty {
  padding: 18px;
  border: 1px dashed #b8c9db;
  border-radius: 8px;
  color: #53677d;
  text-align: center;
  background: #f8fbfe;
}

/* Etiket şablonları son katman */
.label-sheet {
  display: grid !important;
  grid-template-columns: repeat(var(--label-columns, 3), var(--label-width)) !important;
  align-content: start !important;
  justify-content: start !important;
  gap: 1.5mm !important;
}

@media print {
  .label-sheet {
    display: grid !important;
    width: 196mm !important;
    margin: 0 !important;
  }
}

/* Son görünüm katmanı: ödeme kartları sade ve çerçevesiz hissi verir. */
.fintech-pos .payment-spotlight {
  gap: 7px;
  padding: 7px;
  border: 1px solid #c8d7e7;
  border-radius: 12px;
  background: linear-gradient(180deg, #f8fbff, #eaf2f9);
  box-shadow: 0 6px 18px rgba(12, 48, 88, .12);
}

.fintech-pos .fintech-totals .payment-total-card {
  border-width: 1px 1px 1px 5px;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 2px 7px rgba(12, 48, 88, .08);
}

.fintech-pos .fintech-totals .paid-card {
  border-color: #d5e3ef #d5e3ef #d5e3ef #0ea5e9;
  background: #fff;
}

.fintech-pos .fintech-totals .sale-total-card {
  border-color: #eadfbd #eadfbd #eadfbd #f59e0b;
  background: #fffdf7;
}

.fintech-pos .fintech-totals .change-card {
  border-color: #d8e1e9 #d8e1e9 #d8e1e9 #64748b;
  background: #fff;
}

.fintech-pos .fintech-totals .change-card.has-change {
  border-color: #bbdec9 #bbdec9 #bbdec9 #22c55e;
  background: #f7fff9;
  box-shadow: 0 2px 8px rgba(34, 197, 94, .14);
}

/* Kasa yerleşimi v2: her bölüm sabit yerinde, ürün ızgarası büyük ve düzenli */
.fintech-pos .pos-fintech-board {
  display: grid !important;
  grid-template-columns: minmax(0, 44fr) minmax(0, 56fr) !important;
  gap: 8px !important;
  align-items: stretch !important;
  min-height: 0 !important;
}

.fintech-pos .pos-checkout-panel {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important;
  grid-template-rows: auto auto auto minmax(0, 1fr) auto auto !important;
  grid-template-areas:
    "accounts accounts"
    "quickhead quicksearch"
    "groups groups"
    "catalog catalog"
    "amounts amounts"
    "pay pay" !important;
  gap: 6px !important;
  min-height: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
  background: transparent !important;
}

.fintech-pos .pos-checkout-panel > .open-account-board { grid-area: accounts !important; }
.fintech-pos .pos-checkout-panel > .quick-product-header { grid-area: quickhead !important; }
.fintech-pos .pos-checkout-panel > .product-catalog-controls { grid-area: quicksearch !important; }
.fintech-pos .pos-checkout-panel > .product-group-tabs { grid-area: groups !important; }
.fintech-pos .pos-checkout-panel > .product-catalog-grid { grid-area: catalog !important; }
.fintech-pos .pos-checkout-panel > .quick-amounts { grid-area: amounts !important; }
.fintech-pos .pos-checkout-panel > .pos-payment-buttons { grid-area: pay !important; }

/* 1 — Günlük açık hesaplar */
.fintech-pos .open-account-board {
  display: flex !important;
  flex-direction: column !important;
  gap: 6px !important;
  min-height: 0 !important;
  max-height: 196px !important;
  padding: 8px !important;
  border: 1px solid #cbd9e8 !important;
  border-radius: 10px !important;
  background: #fff !important;
}

.fintech-pos .open-account-heading {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  min-height: 28px !important;
  margin: 0 !important;
  padding: 0 !important;
}

.fintech-pos .open-account-heading strong {
  font-size: 13px !important;
  font-weight: 900 !important;
  letter-spacing: .2px !important;
  text-transform: uppercase !important;
  color: #0e3a68 !important;
}

.fintech-pos .open-account-heading .add-open-account {
  min-height: 28px !important;
  padding: 0 12px !important;
  font-size: 12px !important;
  font-weight: 800 !important;
}

.fintech-pos .compact-basket-tabs {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  grid-auto-rows: 46px !important;
  gap: 6px !important;
  min-height: 0 !important;
  max-height: none !important;
  padding-right: 2px !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
  scrollbar-width: thin !important;
}

.fintech-pos .open-account-tab {
  position: relative !important;
  display: flex !important;
  align-items: center !important;
  min-height: 46px !important;
  height: 46px !important;
  padding: 5px 8px !important;
  border: 1px solid #cbd9e8 !important;
  border-radius: 8px !important;
  background: #f7fafd !important;
}

.fintech-pos .open-account-tab.active {
  border-color: #0b70c9 !important;
  background: #eaf4ff !important;
  box-shadow: inset 0 0 0 1px #0b70c9 !important;
}

.fintech-pos .open-account-select {
  display: flex !important;
  flex-direction: column !important;
  gap: 1px !important;
  align-items: flex-start !important;
  width: 100% !important;
  min-width: 0 !important;
  padding: 0 !important;
  text-align: left !important;
}

.fintech-pos .open-account-select strong {
  max-width: 100% !important;
  overflow: hidden !important;
  color: #12345c !important;
  font-size: 12px !important;
  font-weight: 800 !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

.fintech-pos .open-account-select span {
  color: #0b70c9 !important;
  font-size: 13px !important;
  font-weight: 900 !important;
}

.fintech-pos .open-account-actions {
  position: absolute !important;
  top: 3px !important;
  right: 4px !important;
  display: flex !important;
  gap: 3px !important;
}

.fintech-pos .open-account-actions button {
  min-height: 17px !important;
  padding: 0 5px !important;
  border-radius: 4px !important;
  font-size: 9px !important;
  font-weight: 800 !important;
  line-height: 17px !important;
}

/* 2 — Sabit ürün başlığı ve arama tek satırda */
.fintech-pos .quick-product-header {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 8px !important;
  min-height: 34px !important;
  height: 34px !important;
  padding: 0 10px !important;
  border: 1px solid #cbd9e8 !important;
  border-radius: 8px !important;
  background: #fff !important;
}

.fintech-pos .quick-product-header strong {
  font-size: 12px !important;
  font-weight: 900 !important;
  letter-spacing: .2px !important;
  text-transform: uppercase !important;
  color: #0e3a68 !important;
}

.fintech-pos .quick-product-header small { display: none !important; }

.fintech-pos .quick-product-header .quick-edit-button {
  min-height: 26px !important;
  padding: 0 10px !important;
  font-size: 11px !important;
  font-weight: 800 !important;
}

.fintech-pos .product-catalog-controls {
  display: flex !important;
  align-items: center !important;
  min-height: 34px !important;
  height: 34px !important;
  margin: 0 !important;
}

.fintech-pos .product-catalog-controls input {
  width: 100% !important;
  min-height: 34px !important;
  height: 34px !important;
  padding: 0 10px !important;
  border: 1px solid #cbd9e8 !important;
  border-radius: 8px !important;
  background: #fff !important;
  font-size: 12px !important;
}

/* 3 — Kategori şeridi */
.fintech-pos .product-group-tabs {
  display: grid !important;
  grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
  grid-auto-rows: 27px !important;
  gap: 4px !important;
  min-height: 0 !important;
  max-height: 89px !important;
  margin: 0 !important;
  padding: 0 2px 0 0 !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
  scrollbar-width: thin !important;
}

.fintech-pos .product-group-tabs button {
  width: 100% !important;
  min-width: 0 !important;
  min-height: 27px !important;
  height: 27px !important;
  padding: 0 4px !important;
  overflow: hidden !important;
  border: 1px solid #cbd9e8 !important;
  border-radius: 6px !important;
  background: #fff !important;
  color: #24537f !important;
  font-size: 10px !important;
  font-weight: 850 !important;
  letter-spacing: .1px !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

.fintech-pos .product-group-tabs button.active {
  border-color: #0b70c9 !important;
  background: #0b70c9 !important;
  color: #fff !important;
}

/* 4 — Ürün kartları */
.fintech-pos .product-catalog-grid {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  grid-auto-rows: 106px !important;
  gap: 6px !important;
  min-height: 0 !important;
  max-height: none !important;
  height: 100% !important;
  padding: 0 3px 2px 0 !important;
  overflow-x: hidden !important;
  overflow-y: auto !important;
  align-content: start !important;
  scrollbar-width: thin !important;
}

.fintech-pos .quick-product-card {
  position: relative !important;
  width: 100% !important;
  min-width: 0 !important;
  min-height: 106px !important;
  height: 106px !important;
  overflow: hidden !important;
  border: 1px solid #cbd9e8 !important;
  border-radius: 8px !important;
  background: #fff !important;
  box-shadow: 0 1px 2px rgba(13, 49, 88, .06) !important;
}

.fintech-pos .quick-product-card:hover { border-color: #0b70c9 !important; }

.fintech-pos .quick-product-sale-button,
.fintech-pos .quick-product-grid button.quick-product-sale-button {
  display: grid !important;
  grid-template-rows: minmax(0, 1fr) auto !important;
  gap: 2px !important;
  width: 100% !important;
  height: 100% !important;
  min-height: 0 !important;
  padding: 7px 8px !important;
  border: 0 !important;
  border-radius: 8px !important;
  background: transparent !important;
  text-align: left !important;
}

.fintech-pos .quick-product-sale-button strong {
  display: -webkit-box !important;
  overflow: hidden !important;
  color: #16324f !important;
  font-size: 11px !important;
  font-weight: 800 !important;
  line-height: 1.25 !important;
  white-space: normal !important;
  -webkit-box-orient: vertical !important;
  -webkit-line-clamp: 3 !important;
}

.fintech-pos .quick-product-sale-button span {
  align-self: end !important;
  color: #0b70c9 !important;
  font-size: 14px !important;
  font-weight: 900 !important;
}

.fintech-pos .quick-product-image {
  width: 100% !important;
  height: 44px !important;
  margin-bottom: 3px !important;
  object-fit: contain !important;
}

/* 5 — Hızlı tutar ve ödeme */
.fintech-pos .quick-amounts {
  display: grid !important;
  grid-template-columns: repeat(6, minmax(0, 1fr)) !important;
  gap: 5px !important;
  margin: 0 !important;
}

.fintech-pos .quick-amounts button {
  min-height: 30px !important;
  height: 30px !important;
  border: 1px solid #cbd9e8 !important;
  border-radius: 7px !important;
  background: #fff !important;
  color: #1c4a76 !important;
  font-size: 12px !important;
  font-weight: 800 !important;
}

.fintech-pos .pos-payment-buttons {
  display: grid !important;
  grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
  gap: 6px !important;
  margin: 0 !important;
}

.fintech-pos .pos-payment-buttons button {
  min-height: 62px !important;
  height: 62px !important;
  border-radius: 10px !important;
}

/* 6 — Sol sepet paneli */
.fintech-pos .pos-product-panel {
  min-width: 0 !important;
  border-radius: 10px !important;
}

@media screen and (max-height: 800px) {
  .fintech-pos .open-account-board { max-height: 196px !important; }
  .fintech-pos .product-group-tabs { max-height: 89px !important; }
  .fintech-pos .pos-payment-buttons button { min-height: 56px !important; height: 56px !important; }
}

/* Kasa yerleşimi v2 — ikinci geçiş: ince uyarı şeridi ve derli toplu sepet */
.fintech-pos .pos-message,
.pos-page.fintech-pos > .pos-message {
  min-height: 26px !important;
  margin: 0 !important;
  padding: 4px 10px !important;
  border-radius: 7px !important;
  font-size: 11.5px !important;
  font-weight: 700 !important;
  line-height: 1.35 !important;
}

.fintech-pos .pos-message svg { width: 14px !important; height: 14px !important; }

.fintech-pos .pos-product-panel {
  display: flex !important;
  flex-direction: column !important;
  min-height: 0 !important;
  padding: 8px !important;
  overflow: hidden !important;
}

.fintech-pos .product-toolbar {
  flex: 0 0 auto !important;
  gap: 6px !important;
  margin-bottom: 6px !important;
}

.fintech-pos .product-toolbar input,
.fintech-pos .product-toolbar select,
.fintech-pos .product-toolbar button {
  min-height: 32px !important;
  height: 32px !important;
  font-size: 12px !important;
}

.fintech-pos .pos-product-panel .pos-table-wrapper,
.fintech-pos .pos-product-panel > div:last-child {
  min-height: 0 !important;
}

.fintech-pos .pos-table {
  width: 100% !important;
  table-layout: fixed !important;
  border-collapse: separate !important;
  border-spacing: 0 !important;
}

.fintech-pos .pos-table th {
  padding: 7px 8px !important;
  font-size: 11px !important;
  letter-spacing: .3px !important;
}

.fintech-pos .pos-table td {
  height: 46px !important;
  padding: 5px 8px !important;
  font-size: 12.5px !important;
  vertical-align: middle !important;
}

.fintech-pos .pos-table tbody tr td:nth-child(2) {
  max-width: 0 !important;
  overflow: hidden !important;
  font-weight: 700 !important;
  line-height: 1.25 !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

.fintech-pos .pos-table tbody tr td:nth-child(5),
.fintech-pos .pos-table tbody tr td:nth-child(6) {
  font-weight: 800 !important;
  text-align: right !important;
  white-space: nowrap !important;
}

.fintech-pos .pos-table th:nth-child(5),
.fintech-pos .pos-table th:nth-child(6) { text-align: right !important; }

.fintech-pos .pos-table th:nth-child(1) { width: 34px !important; }
.fintech-pos .pos-table th:nth-child(4) { width: 96px !important; }
.fintech-pos .pos-table th:nth-child(5) { width: 78px !important; }
.fintech-pos .pos-table th:nth-child(6) { width: 84px !important; }

.fintech-pos .qty-input {
  width: 50px !important;
  min-height: 30px !important;
  height: 30px !important;
  padding: 0 6px !important;
  font-size: 12.5px !important;
  text-align: center !important;
}

.fintech-pos .pos-table tbody tr td:nth-child(4) {
  overflow: hidden !important;
  white-space: nowrap !important;
  font-size: 10px !important;
  font-weight: 700 !important;
  color: #4a6b88 !important;
}

.fintech-pos .trash-button {
  width: 26px !important;
  height: 26px !important;
  min-height: 26px !important;
  padding: 0 !important;
  font-size: 12px !important;
}

/* Sepet satırları içerik yüksekliğinde kalsın, tablo paneli doldurmasın */
.fintech-pos .pos-product-panel > .pos-table,
.fintech-pos .pos-table {
  flex: 0 0 auto !important;
  height: auto !important;
  min-height: 0 !important;
}

.fintech-pos .pos-product-panel {
  overflow-y: auto !important;
  scrollbar-width: thin !important;
}

.fintech-pos .pos-table thead th {
  position: sticky !important;
  top: 0 !important;
  z-index: 2 !important;
}

.fintech-pos .pos-table tbody tr td { height: 44px !important; }

.fintech-pos .pos-table .empty-table-cell { height: 320px !important; }

/* Sepet sütun dengesi: ürün adı için daha çok yer */
.fintech-pos .pos-fintech-board {
  grid-template-columns: minmax(0, 48fr) minmax(0, 52fr) !important;
}

.fintech-pos .pos-table th:nth-child(1) { width: 30px !important; }
.fintech-pos .pos-table th:nth-child(4) { width: 78px !important; }
.fintech-pos .pos-table th:nth-child(5) { width: 72px !important; }
.fintech-pos .pos-table th:nth-child(6) { width: 82px !important; }

.fintech-pos .qty-input {
  width: 44px !important;
  padding: 0 3px !important;
}

.fintech-pos .pos-table tbody tr td:nth-child(4) { font-size: 9.5px !important; }

/* Başlık ve birim yazıları tek satırda kalsın */
.fintech-pos .quick-product-header {
  padding: 0 8px !important;
  white-space: nowrap !important;
}

.fintech-pos .quick-product-header strong {
  overflow: hidden !important;
  font-size: 11px !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

.fintech-pos .quick-product-header .quick-edit-button {
  flex: 0 0 auto !important;
  padding: 0 8px !important;
  font-size: 10.5px !important;
  white-space: nowrap !important;
}

.fintech-pos .pos-table th:nth-child(4) { width: 86px !important; }
.fintech-pos .pos-table th:nth-child(5) { width: 66px !important; }

/* Fiyat ve tutar sütunları tam görünsün */
.fintech-pos .pos-table th:nth-child(5) { width: 78px !important; }
.fintech-pos .pos-table th:nth-child(6) { width: 86px !important; }

.fintech-pos .pos-table tbody tr td:nth-child(5),
.fintech-pos .pos-table tbody tr td:nth-child(6) {
  overflow: visible !important;
  padding: 5px 6px !important;
  font-size: 12px !important;
}

/* Geniş ekranda ürün adı sütunu kalan alanı alsın */
.fintech-pos .pos-table th:nth-child(3) { width: 92px !important; }
.fintech-pos .pos-table th:nth-child(7) { width: 62px !important; }
.fintech-pos .pos-table th:nth-child(2) { width: auto !important; }

/* Sabitleri düzenleme modunda "Görsel Ekle" kartın içinde kalsın */
.fintech-pos .product-catalog-grid:has(.quick-image-picker) {
  grid-auto-rows: 140px !important;
}

.fintech-pos .quick-product-card:has(.quick-image-picker) {
  display: flex !important;
  flex-direction: column !important;
  height: 140px !important;
  min-height: 140px !important;
  overflow: hidden !important;
}

.fintech-pos .quick-product-card:has(.quick-image-picker) .quick-product-sale-button {
  flex: 1 1 auto !important;
  height: auto !important;
  min-height: 0 !important;
}

.fintech-pos .quick-image-picker {
  flex: 0 0 auto !important;
  margin: 0 6px 6px !important;
  min-height: 26px !important;
  height: 26px !important;
  border-radius: 6px !important;
  font-size: 10.5px !important;
  font-weight: 800 !important;
}

/* ============================================================
   MS TASARIM SİSTEMİ — referans arayüzün birebir uygulanması
   ============================================================ */
.ms-shell {
  --ms-bg: #f1f5f9;
  --ms-surface: #ffffff;
  --ms-border: #e2e8f0;
  --ms-border-strong: #cbd5e1;
  --ms-text: #0f172a;
  --ms-text-soft: #64748b;
  --ms-blue: #2563eb;
  --ms-blue-dark: #1d4ed8;
  --ms-blue-soft: #eff6ff;
  --ms-green: #16a34a;
  --ms-teal: #0e7490;
  --ms-amber: #f59e0b;
  --ms-red: #dc2626;
  --ms-navy: #0f2138;
  display: grid !important;
  grid-template-rows: 66px minmax(0, 1fr) 72px !important;
  grid-template-columns: minmax(0, 1fr) !important;
  gap: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  min-height: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
  background: var(--ms-bg) !important;
}

/* Üst bar */
.ms-shell .ms-titlebar {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 16px !important;
  padding: 0 18px !important;
  background: linear-gradient(180deg, #13294a 0%, #0f2138 100%) !important;
  box-shadow: 0 1px 0 rgba(255, 255, 255, .06) inset !important;
}

.ms-shell .ms-titlebar-brand {
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  min-width: 0 !important;
}

.ms-shell .ms-titlebar-logo {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 40px !important;
  height: 40px !important;
}

.ms-shell .ms-titlebar-logo img {
  width: 100% !important;
  height: auto !important;
  max-height: 34px !important;
  object-fit: contain !important;
  filter: brightness(0) invert(1) !important;
}

.ms-shell .ms-titlebar-title {
  color: #fff !important;
  font-size: 20px !important;
  font-weight: 800 !important;
  letter-spacing: .2px !important;
  white-space: nowrap !important;
}

.ms-shell .ms-titlebar-meta {
  display: flex !important;
  align-items: center !important;
  gap: 18px !important;
}

.ms-shell .ms-meta-chip {
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  color: #dbe6f5 !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  white-space: nowrap !important;
}

.ms-shell .ms-meta-chip svg { color: #9db6d8 !important; }

.ms-shell .ms-user-chip {
  display: flex !important;
  align-items: center !important;
  gap: 9px !important;
  padding-left: 16px !important;
  border-left: 1px solid rgba(255, 255, 255, .14) !important;
}

.ms-shell .ms-user-avatar {
  display: grid !important;
  place-items: center !important;
  width: 32px !important;
  height: 32px !important;
  border-radius: 50% !important;
  background: rgba(255, 255, 255, .14) !important;
  color: #fff !important;
  font-size: 12px !important;
  font-weight: 800 !important;
}

.ms-shell .ms-user-meta {
  display: flex !important;
  flex-direction: column !important;
  line-height: 1.2 !important;
}

.ms-shell .ms-user-meta strong { color: #fff !important; font-size: 12.5px !important; font-weight: 700 !important; }
.ms-shell .ms-user-meta span { color: #93a9c6 !important; font-size: 10.5px !important; text-transform: capitalize !important; }

.ms-shell .ms-logout {
  display: grid !important;
  place-items: center !important;
  width: 32px !important;
  height: 32px !important;
  padding: 0 !important;
  border: 1px solid rgba(255, 255, 255, .16) !important;
  border-radius: 8px !important;
  background: transparent !important;
  color: #cfe0f5 !important;
}

.ms-shell .ms-logout:hover { background: rgba(255, 255, 255, .1) !important; color: #fff !important; }

/* İçerik alanı */
.ms-shell .content {
  min-height: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
  background: var(--ms-bg) !important;
}

.ms-shell .content-inner {
  height: 100% !important;
  min-height: 0 !important;
  max-width: none !important;
  padding: 14px !important;
  overflow: hidden !important;
}

.ms-shell:not(.pos-workspace-shell) .content-inner { overflow-y: auto !important; }

/* Alt menü */
.ms-shell .ms-bottom-nav {
  display: flex !important;
  align-items: stretch !important;
  gap: 4px !important;
  padding: 6px 10px !important;
  border-top: 1px solid var(--ms-border) !important;
  background: var(--ms-surface) !important;
  box-shadow: 0 -2px 10px rgba(15, 33, 56, .05) !important;
}

.ms-shell .ms-nav-item {
  display: flex !important;
  flex: 1 1 0 !important;
  flex-direction: column !important;
  gap: 4px !important;
  align-items: center !important;
  justify-content: center !important;
  min-width: 0 !important;
  padding: 6px 2px !important;
  border: 0 !important;
  border-radius: 10px !important;
  background: transparent !important;
  color: #475569 !important;
  font-size: 11px !important;
  font-weight: 600 !important;
  text-decoration: none !important;
  white-space: nowrap !important;
  transition: background .15s ease, color .15s ease !important;
}

.ms-shell .ms-nav-item svg { width: 20px !important; height: 20px !important; }
.ms-shell .ms-nav-item span { overflow: hidden !important; max-width: 100% !important; text-overflow: ellipsis !important; }
.ms-shell .ms-nav-item:hover { background: #f1f5f9 !important; color: var(--ms-blue) !important; }

.ms-shell .ms-nav-item.active,
.ms-shell .ms-nav-tech-button.open {
  background: var(--ms-blue) !important;
  color: #fff !important;
  box-shadow: 0 4px 10px rgba(37, 99, 235, .28) !important;
}

.ms-shell .ms-nav-technical {
  position: relative !important;
  display: flex !important;
  flex: 1 1 0 !important;
  min-width: 0 !important;
}

.ms-shell .ms-nav-tech-menu {
  position: absolute !important;
  right: 0 !important;
  bottom: calc(100% + 8px) !important;
  z-index: 60 !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 2px !important;
  min-width: 190px !important;
  padding: 6px !important;
  border: 1px solid var(--ms-border) !important;
  border-radius: 12px !important;
  background: #fff !important;
  box-shadow: 0 12px 28px rgba(15, 33, 56, .18) !important;
}

.ms-shell .ms-nav-tech-menu a {
  display: flex !important;
  gap: 8px !important;
  align-items: center !important;
  padding: 9px 10px !important;
  border-radius: 8px !important;
  color: #334155 !important;
  font-size: 12.5px !important;
  font-weight: 600 !important;
  text-decoration: none !important;
}

.ms-shell .ms-nav-tech-menu a:hover { background: var(--ms-blue-soft) !important; color: var(--ms-blue) !important; }
.ms-shell .ms-nav-tech-menu a.active { background: var(--ms-blue) !important; color: #fff !important; }

/* Satış sayfası kabuğa tam otursun */
.ms-shell .content-inner > .pos-page,
.ms-shell .pos-page.fintech-pos {
  display: flex !important;
  flex-direction: column !important;
  gap: 10px !important;
  height: 100% !important;
  min-height: 0 !important;
  max-height: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
}

.ms-shell .pos-page.fintech-pos > .pos-command-bar,
.ms-shell .pos-page.fintech-pos > .pos-message { flex: 0 0 auto !important; }

.ms-shell .pos-page.fintech-pos > .pos-fintech-board {
  flex: 1 1 auto !important;
  min-height: 0 !important;
  height: auto !important;
}

.ms-shell .ms-titlebar-logo { width: 118px !important; }
.ms-shell .ms-titlebar-logo img { max-height: 30px !important; }

/* --- MS: üst komut çubuğu --- */
.ms-shell .pos-command-bar {
  display: flex !important;
  align-items: stretch !important;
  gap: 10px !important;
  height: 78px !important;
  min-height: 78px !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

.ms-shell .pos-search-cluster {
  display: flex !important;
  flex: 1 1 auto !important;
  align-items: stretch !important;
  gap: 10px !important;
  min-width: 0 !important;
}

.ms-shell .price-tier-select { display: none !important; }

.ms-shell .pos-input-wrap {
  display: flex !important;
  flex: 1 1 auto !important;
  gap: 12px !important;
  align-items: center !important;
  min-width: 0 !important;
  padding: 0 16px !important;
  border: 1px solid var(--ms-border-strong) !important;
  border-radius: 12px !important;
  background: #fff !important;
  box-shadow: none !important;
}

.ms-shell .pos-input-wrap svg { color: #94a3b8 !important; flex: 0 0 auto !important; }

.ms-shell .pos-barcode-input {
  width: 100% !important;
  height: 100% !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  color: var(--ms-text) !important;
  font-size: 14.5px !important;
  font-weight: 600 !important;
}

.ms-shell .pos-barcode-input::placeholder { color: #94a3b8 !important; font-weight: 500 !important; }

.ms-shell .pos-action-button {
  display: flex !important;
  flex: 0 0 82px !important;
  flex-direction: column !important;
  gap: 2px !important;
  align-items: center !important;
  justify-content: center !important;
  width: 82px !important;
  height: 100% !important;
  min-height: 0 !important;
  padding: 6px 4px !important;
  border: 0 !important;
  border-radius: 12px !important;
  color: #fff !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  line-height: 1.15 !important;
  text-align: center !important;
  box-shadow: 0 3px 8px rgba(15, 33, 56, .12) !important;
}

.ms-shell .pos-action-button span { font-size: 12px !important; font-weight: 700 !important; }
.ms-shell .pos-action-button .ms-key {
  margin: 0 !important;
  color: rgba(255, 255, 255, .82) !important;
  font-size: 10px !important;
  font-weight: 800 !important;
  letter-spacing: .4px !important;
}

.ms-shell .pos-action-button.action-search { background: #2563eb !important; }
.ms-shell .pos-action-button.action-price { background: #16a34a !important; }
.ms-shell .pos-action-button.action-print { background: #f59e0b !important; }
.ms-shell .pos-action-button.action-payment { background: #2563eb !important; }
.ms-shell .pos-action-button:disabled { opacity: .55 !important; box-shadow: none !important; }

/* --- MS: tutar kartları --- */
.ms-shell .fintech-totals.payment-spotlight {
  display: flex !important;
  flex: 0 0 auto !important;
  gap: 10px !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

.ms-shell .payment-total-card {
  display: flex !important;
  flex: 0 0 132px !important;
  flex-direction: column !important;
  gap: 4px !important;
  justify-content: center !important;
  width: 132px !important;
  height: 100% !important;
  min-height: 0 !important;
  padding: 8px 12px !important;
  border: 1px solid var(--ms-border) !important;
  border-width: 1px !important;
  border-radius: 12px !important;
  background: #fff !important;
  box-shadow: 0 1px 3px rgba(15, 33, 56, .06) !important;
}

.ms-shell .payment-total-card > span {
  display: flex !important;
  gap: 6px !important;
  align-items: center !important;
  color: #475569 !important;
  font-size: 11.5px !important;
  font-weight: 700 !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
}

.ms-shell .paid-card > span svg { color: #16a34a !important; }
.ms-shell .sale-total-card > span svg { color: #f59e0b !important; }
.ms-shell .change-card > span svg { color: #2563eb !important; }

.ms-shell .payment-total-card .amount-display {
  width: 100% !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  color: var(--ms-text) !important;
  font-size: 23px !important;
  font-weight: 800 !important;
  letter-spacing: -.4px !important;
  text-align: left !important;
}

.ms-shell .payment-total-card .amount-display.amount-compact { font-size: 19px !important; }
.ms-shell .payment-total-card .amount-display.amount-tiny { font-size: 16px !important; }
.ms-shell .change-card.has-change { border-color: #bbf7d0 !important; background: #f0fdf4 !important; }
.ms-shell .change-card.has-change .amount-display { color: #15803d !important; }

.ms-shell .fintech-totals.payment-spotlight {
  width: auto !important;
  max-width: none !important;
  flex: 0 0 auto !important;
}

.ms-shell .pos-search-cluster {
  width: auto !important;
  flex-wrap: nowrap !important;
}

.ms-shell .pos-input-wrap { min-width: 180px !important; }

/* Komut çubuğu oranları: barkod alanı geniş kalsın */
.ms-shell .pos-action-button {
  flex: 0 0 68px !important;
  width: 68px !important;
}

.ms-shell .payment-total-card {
  flex: 0 0 122px !important;
  width: 122px !important;
  padding: 8px 10px !important;
}

.ms-shell .pos-action-button .ms-key,
.ms-shell .pos-action-button small.ms-key {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  max-height: none !important;
  overflow: visible !important;
}

.ms-shell .pos-action-button span { font-size: 11px !important; }
.ms-shell .pos-action-button svg { width: 20px !important; height: 20px !important; }

@media screen and (min-width: 1280px) {
  .ms-shell .pos-action-button { flex: 0 0 84px !important; width: 84px !important; }
  .ms-shell .payment-total-card { flex: 0 0 158px !important; width: 158px !important; padding: 10px 14px !important; }
  .ms-shell .pos-action-button span { font-size: 12.5px !important; }
}

/* --- MS: çalışma alanı ızgarası --- */
.ms-shell .pos-fintech-board {
  display: grid !important;
  grid-template-columns: minmax(0, 48fr) minmax(0, 52fr) !important;
  grid-template-rows: minmax(0, 1fr) auto !important;
  gap: 10px !important;
  min-height: 0 !important;
}

.ms-shell .pos-fintech-board > .pos-product-panel { grid-column: 1 !important; grid-row: 1 !important; }
.ms-shell .pos-fintech-board > .pos-checkout-panel { grid-column: 2 !important; grid-row: 1 !important; }
.ms-shell .pos-fintech-board > .pos-payment-buttons { grid-column: 1 / -1 !important; grid-row: 2 !important; }
.ms-shell .pos-fintech-board > .split-panel { grid-column: 1 / -1 !important; grid-row: 3 !important; }

/* --- MS: satış listesi kartı --- */
.ms-shell .pos-product-panel {
  display: flex !important;
  flex-direction: column !important;
  min-height: 0 !important;
  padding: 0 !important;
  border: 1px solid var(--ms-border) !important;
  border-radius: 12px !important;
  background: #fff !important;
  box-shadow: 0 1px 3px rgba(15, 33, 56, .06) !important;
  overflow: hidden !important;
}

.ms-shell .pos-product-panel .product-toolbar {
  display: flex !important;
  order: 3 !important;
  flex: 0 0 auto !important;
  gap: 6px !important;
  align-items: center !important;
  margin: 0 !important;
  padding: 8px 12px !important;
  border-top: 1px solid var(--ms-border) !important;
  background: #f8fafc !important;
}

.ms-shell .pos-product-panel .product-count {
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  display: flex !important;
  align-items: center !important;
  width: 100% !important;
  height: 46px !important;
  margin: 0 !important;
  padding: 0 16px !important;
  border-bottom: 1px solid var(--ms-border) !important;
  background: #fff !important;
}

.ms-shell .pos-product-panel .product-count strong {
  color: var(--ms-text) !important;
  font-size: 14.5px !important;
  font-weight: 800 !important;
  letter-spacing: -.1px !important;
}

.ms-shell .pos-product-panel .product-count span,
.ms-shell .pos-product-panel .product-count .info-dot { display: none !important; }

.ms-shell .pos-product-panel { position: relative !important; padding-top: 46px !important; }

.ms-shell .pos-product-panel .misc-amount-control,
.ms-shell .pos-product-panel .discount-control { display: flex !important; gap: 5px !important; }

.ms-shell .pos-product-panel .product-toolbar input,
.ms-shell .pos-product-panel .product-toolbar select,
.ms-shell .pos-product-panel .product-toolbar button {
  min-height: 30px !important;
  height: 30px !important;
  border: 1px solid var(--ms-border-strong) !important;
  border-radius: 8px !important;
  background: #fff !important;
  font-size: 11.5px !important;
}

.ms-shell .pos-product-panel .product-toolbar button {
  border-color: transparent !important;
  background: var(--ms-blue-soft) !important;
  color: var(--ms-blue) !important;
  font-weight: 700 !important;
}

/* Sepet tablosu */
.ms-shell .pos-table { order: 2 !important; }

.ms-shell .pos-table thead th {
  padding: 9px 12px !important;
  border-bottom: 1px solid var(--ms-border) !important;
  background: #f8fafc !important;
  color: #64748b !important;
  font-size: 11.5px !important;
  font-weight: 700 !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
}

.ms-shell .pos-table tbody tr { background: #fff !important; }
.ms-shell .pos-table tbody tr:hover { background: #f8fafc !important; }

.ms-shell .pos-table tbody td {
  height: 54px !important;
  padding: 6px 12px !important;
  border-bottom: 1px solid #f1f5f9 !important;
  color: var(--ms-text) !important;
  font-size: 12.5px !important;
}

.ms-shell .pos-table tbody tr td:nth-child(2) {
  max-width: none !important;
  overflow: visible !important;
  white-space: normal !important;
}

.ms-shell .ms-line-product {
  display: flex !important;
  gap: 10px !important;
  align-items: center !important;
  min-width: 0 !important;
}

.ms-shell .ms-line-thumb {
  display: grid !important;
  place-items: center !important;
  flex: 0 0 36px !important;
  width: 36px !important;
  height: 36px !important;
  overflow: hidden !important;
  border: 1px solid var(--ms-border) !important;
  border-radius: 8px !important;
  background: #f8fafc !important;
  color: #94a3b8 !important;
}

.ms-shell .ms-line-thumb img { width: 100% !important; height: 100% !important; object-fit: cover !important; }

.ms-shell .ms-line-name {
  overflow: hidden !important;
  color: var(--ms-text) !important;
  font-size: 12.5px !important;
  font-weight: 600 !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

.ms-shell .ms-qty-stepper {
  display: inline-flex !important;
  align-items: center !important;
  overflow: hidden !important;
  border: 1px solid var(--ms-border-strong) !important;
  border-radius: 8px !important;
  background: #fff !important;
}

.ms-shell .ms-qty-button {
  display: grid !important;
  place-items: center !important;
  width: 26px !important;
  height: 30px !important;
  min-height: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: #fff !important;
  color: #475569 !important;
}

.ms-shell .ms-qty-button:hover { background: var(--ms-blue-soft) !important; color: var(--ms-blue) !important; }

.ms-shell .ms-qty-stepper .qty-input {
  width: 38px !important;
  height: 30px !important;
  min-height: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  color: var(--ms-text) !important;
  font-size: 12.5px !important;
  font-weight: 700 !important;
  text-align: center !important;
}

.ms-shell .pos-table th:nth-child(4) { width: 104px !important; }
.ms-shell .pos-table tbody tr td:nth-child(4) { font-size: 12.5px !important; }
.ms-shell .pos-table tbody tr td:nth-child(6) { font-weight: 800 !important; }

.ms-shell .trash-button {
  width: 24px !important;
  height: 24px !important;
  border: 0 !important;
  background: transparent !important;
  color: var(--ms-red) !important;
  font-size: 14px !important;
  font-weight: 800 !important;
}

/* --- MS: sağ panel --- */
.ms-shell .pos-checkout-panel {
  position: relative !important;
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important;
  grid-template-rows: auto auto auto minmax(0, 1fr) auto !important;
  grid-template-areas:
    "accounts accounts"
    "quickhead quicksearch"
    "groups groups"
    "catalog catalog"
    "amounts amounts" !important;
  gap: 8px !important;
  min-height: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

.ms-shell .pos-checkout-panel::before {
  content: "" !important;
  grid-column: 1 / -1 !important;
  grid-row: 2 / 6 !important;
  margin: -10px -12px !important;
  border: 1px solid var(--ms-border) !important;
  border-radius: 12px !important;
  background: #fff !important;
  box-shadow: 0 1px 3px rgba(15, 33, 56, .06) !important;
}

.ms-shell .pos-checkout-panel > * { position: relative !important; z-index: 1 !important; }
.ms-shell .pos-checkout-panel > .pos-payment-buttons { grid-area: auto !important; }

/* Günlük açık hesaplar */
.ms-shell .open-account-board {
  grid-area: accounts !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 8px !important;
  min-height: 0 !important;
  max-height: 178px !important;
  padding: 12px !important;
  border: 1px solid var(--ms-border) !important;
  border-radius: 12px !important;
  background: #fff !important;
  box-shadow: 0 1px 3px rgba(15, 33, 56, .06) !important;
}

.ms-shell .open-account-heading { min-height: 30px !important; }

.ms-shell .open-account-heading strong {
  color: var(--ms-text) !important;
  font-size: 14.5px !important;
  font-weight: 800 !important;
  letter-spacing: -.1px !important;
  text-transform: none !important;
}

.ms-shell .open-account-heading .add-open-account {
  min-height: 30px !important;
  padding: 0 12px !important;
  border: 1px solid #bfdbfe !important;
  border-radius: 8px !important;
  background: var(--ms-blue-soft) !important;
  color: var(--ms-blue) !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  box-shadow: none !important;
}

.ms-shell .compact-basket-tabs {
  grid-auto-rows: 60px !important;
  gap: 8px !important;
}

.ms-shell .open-account-tab {
  display: flex !important;
  flex-direction: column !important;
  gap: 3px !important;
  justify-content: center !important;
  height: 60px !important;
  min-height: 60px !important;
  padding: 8px 10px !important;
  border: 1px solid var(--ms-border) !important;
  border-radius: 10px !important;
  background: #fff !important;
}

.ms-shell .open-account-tab.active {
  border-color: #93c5fd !important;
  background: #f5faff !important;
  box-shadow: inset 0 0 0 1px #93c5fd !important;
}

.ms-shell .ms-account-title {
  display: flex !important;
  gap: 6px !important;
  align-items: center !important;
  min-width: 0 !important;
  color: #64748b !important;
}

.ms-shell .ms-account-title strong {
  overflow: hidden !important;
  color: var(--ms-text) !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

.ms-shell .open-account-select {
  display: flex !important;
  flex-direction: column !important;
  gap: 3px !important;
  align-items: flex-start !important;
  padding: 0 !important;
}

.ms-shell .open-account-select > span:last-child {
  color: var(--ms-text) !important;
  font-size: 14px !important;
  font-weight: 800 !important;
}

.ms-shell .open-account-tab.active .open-account-select > span:last-child { color: var(--ms-blue) !important; }

.ms-shell .open-account-actions {
  position: absolute !important;
  top: 8px !important;
  right: 8px !important;
  display: flex !important;
  gap: 4px !important;
}

.ms-shell .open-account-actions button {
  min-height: 20px !important;
  height: 20px !important;
  padding: 0 7px !important;
  border: 1px solid var(--ms-border) !important;
  border-radius: 6px !important;
  background: #fff !important;
  color: #64748b !important;
  font-size: 10px !important;
  font-weight: 700 !important;
  line-height: 18px !important;
}

.ms-shell .open-account-actions .drop-account {
  border-color: #fecaca !important;
  background: #fef2f2 !important;
  color: var(--ms-red) !important;
}

/* Sabit ürünler başlığı ve arama */
.ms-shell .quick-product-header {
  min-height: 32px !important;
  height: 32px !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
}

.ms-shell .quick-product-header strong {
  color: var(--ms-text) !important;
  font-size: 14.5px !important;
  font-weight: 800 !important;
  letter-spacing: -.1px !important;
  text-transform: none !important;
}

.ms-shell .quick-product-header .quick-edit-button {
  min-height: 28px !important;
  padding: 0 10px !important;
  border: 1px solid #bfdbfe !important;
  border-radius: 8px !important;
  background: var(--ms-blue-soft) !important;
  color: var(--ms-blue) !important;
  font-size: 11px !important;
  font-weight: 700 !important;
}

.ms-shell .quick-product-header .quick-edit-button.active {
  border-color: var(--ms-blue) !important;
  background: var(--ms-blue) !important;
  color: #fff !important;
}

.ms-shell .product-catalog-controls {
  display: flex !important;
  gap: 6px !important;
  align-items: center !important;
  min-height: 32px !important;
  height: 32px !important;
}

.ms-shell .product-catalog-controls input {
  flex: 1 1 auto !important;
  min-height: 32px !important;
  height: 32px !important;
  padding: 0 10px !important;
  border: 1px solid var(--ms-border-strong) !important;
  border-radius: 8px !important;
  font-size: 12px !important;
}

.ms-shell .ms-view-toggle {
  display: flex !important;
  flex: 0 0 auto !important;
  gap: 4px !important;
}

.ms-shell .ms-view-toggle button {
  display: grid !important;
  place-items: center !important;
  width: 32px !important;
  height: 32px !important;
  min-height: 32px !important;
  padding: 0 !important;
  border: 1px solid var(--ms-border-strong) !important;
  border-radius: 8px !important;
  background: #fff !important;
  color: #64748b !important;
}

.ms-shell .ms-view-toggle button.active {
  border-color: var(--ms-blue) !important;
  background: var(--ms-blue) !important;
  color: #fff !important;
}

.ms-shell .ms-clear-search {
  min-height: 32px !important;
  height: 32px !important;
  padding: 0 10px !important;
  border-radius: 8px !important;
  font-size: 11.5px !important;
}

/* Kategori sekmeleri */
.ms-shell .product-group-tabs {
  grid-auto-rows: 30px !important;
  gap: 5px !important;
  max-height: 100px !important;
}

.ms-shell .product-group-tabs button {
  height: 30px !important;
  min-height: 30px !important;
  border: 1px solid var(--ms-border) !important;
  border-radius: 8px !important;
  background: #fff !important;
  color: #475569 !important;
  font-size: 10.5px !important;
  font-weight: 700 !important;
  letter-spacing: .2px !important;
}

.ms-shell .product-group-tabs button.active {
  border-color: var(--ms-blue) !important;
  background: var(--ms-blue) !important;
  color: #fff !important;
  box-shadow: 0 2px 6px rgba(37, 99, 235, .25) !important;
}

/* --- MS: ürün kartları --- */
.ms-shell .product-catalog-grid {
  grid-area: catalog !important;
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  grid-auto-rows: 118px !important;
  gap: 8px !important;
  min-height: 0 !important;
  height: 100% !important;
  padding: 0 4px 2px 0 !important;
  overflow-y: auto !important;
  align-content: start !important;
}

.ms-shell .quick-product-card {
  height: 118px !important;
  min-height: 118px !important;
  border: 1px solid var(--ms-border) !important;
  border-radius: 10px !important;
  background: #fff !important;
  box-shadow: none !important;
}

.ms-shell .quick-product-card:hover {
  border-color: #93c5fd !important;
  box-shadow: 0 4px 10px rgba(37, 99, 235, .12) !important;
}

.ms-shell .quick-product-sale-button {
  display: grid !important;
  grid-template-rows: 1fr auto auto !important;
  gap: 2px !important;
  place-items: center !important;
  padding: 8px 6px !important;
  text-align: center !important;
}

.ms-shell .quick-product-sale-button > svg {
  width: 40px !important;
  height: 40px !important;
  color: #cbd5e1 !important;
}

.ms-shell .quick-product-image {
  width: auto !important;
  max-width: 100% !important;
  height: 46px !important;
  margin: 0 !important;
  object-fit: contain !important;
}

.ms-shell .quick-product-sale-button strong {
  display: -webkit-box !important;
  overflow: hidden !important;
  color: var(--ms-text) !important;
  font-size: 10.5px !important;
  font-weight: 800 !important;
  line-height: 1.2 !important;
  text-align: center !important;
  -webkit-box-orient: vertical !important;
  -webkit-line-clamp: 2 !important;
}

.ms-shell .quick-product-sale-button span:not(.favorite-action) {
  align-self: center !important;
  color: var(--ms-blue) !important;
  font-size: 12.5px !important;
  font-weight: 800 !important;
}

.ms-shell .favorite-action {
  position: absolute !important;
  top: 5px !important;
  right: 5px !important;
  padding: 2px 7px !important;
  border-radius: 6px !important;
  background: var(--ms-blue) !important;
  color: #fff !important;
  font-size: 9.5px !important;
  font-weight: 800 !important;
}

/* Liste görünümü */
.ms-shell .product-catalog-grid.ms-catalog-list {
  grid-template-columns: minmax(0, 1fr) !important;
  grid-auto-rows: 46px !important;
  gap: 6px !important;
}

.ms-shell .ms-catalog-list .quick-product-card { height: 46px !important; min-height: 46px !important; }

.ms-shell .ms-catalog-list .quick-product-sale-button {
  grid-template-rows: none !important;
  grid-template-columns: 30px minmax(0, 1fr) auto !important;
  gap: 10px !important;
  place-items: center start !important;
  padding: 0 12px !important;
}

.ms-shell .ms-catalog-list .quick-product-sale-button > svg { width: 22px !important; height: 22px !important; }
.ms-shell .ms-catalog-list .quick-product-image { height: 28px !important; }
.ms-shell .ms-catalog-list .quick-product-sale-button strong { font-size: 12px !important; text-align: left !important; -webkit-line-clamp: 1 !important; }
.ms-shell .ms-catalog-list .quick-product-sale-button span:not(.favorite-action) { justify-self: end !important; font-size: 13px !important; }

/* Hızlı tutarlar */
.ms-shell .quick-amounts {
  grid-area: amounts !important;
  display: grid !important;
  grid-template-columns: repeat(6, minmax(0, 1fr)) !important;
  gap: 6px !important;
}

.ms-shell .quick-amounts button {
  height: 34px !important;
  min-height: 34px !important;
  border: 1px solid transparent !important;
  border-radius: 8px !important;
  background: var(--ms-blue-soft) !important;
  color: var(--ms-blue) !important;
  font-size: 12.5px !important;
  font-weight: 700 !important;
}

.ms-shell .quick-amounts button:hover { border-color: #bfdbfe !important; background: #dbeafe !important; }

/* --- MS: ödeme butonları --- */
.ms-shell .pos-payment-buttons {
  display: grid !important;
  grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
  gap: 10px !important;
  margin: 0 !important;
}

.ms-shell .pos-payment-buttons button {
  display: flex !important;
  flex-direction: row !important;
  gap: 10px !important;
  align-items: center !important;
  justify-content: center !important;
  height: 64px !important;
  min-height: 64px !important;
  padding: 0 8px !important;
  border: 0 !important;
  border-radius: 12px !important;
  color: #fff !important;
  box-shadow: 0 4px 10px rgba(15, 33, 56, .12) !important;
}

.ms-shell .pos-payment-buttons button svg { width: 22px !important; height: 22px !important; flex: 0 0 auto !important; }
.ms-shell .pos-payment-buttons .payment-key { color: rgba(255, 255, 255, .92) !important; font-size: 13px !important; font-weight: 700 !important; }
.ms-shell .pos-payment-buttons strong { color: #fff !important; font-size: 15px !important; font-weight: 800 !important; letter-spacing: .3px !important; }
.ms-shell .pos-payment-buttons .payment-cash { background: #16a34a !important; }
.ms-shell .pos-payment-buttons .payment-card { background: #0e7490 !important; }
.ms-shell .pos-payment-buttons .payment-credit { background: #f59e0b !important; }
.ms-shell .pos-payment-buttons .payment-split { background: #1d4ed8 !important; }
.ms-shell .pos-payment-buttons .payment-other { background: #dc2626 !important; }
.ms-shell .pos-payment-buttons button:disabled { opacity: .5 !important; box-shadow: none !important; }
.ms-shell .terminal-note { display: none !important; }

/* --- MS: hesap kartı düzeni (Ad üstte, Düşür altta) --- */
.ms-shell .open-account-tab {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto !important;
  grid-template-rows: auto auto !important;
  gap: 2px 8px !important;
  align-items: center !important;
}

.ms-shell .open-account-tab .open-account-select {
  grid-column: 1 !important;
  grid-row: 1 / 3 !important;
  min-width: 0 !important;
}

.ms-shell .open-account-actions {
  position: static !important;
  grid-column: 2 !important;
  grid-row: 1 / 3 !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 4px !important;
  align-items: flex-end !important;
  justify-content: space-between !important;
  height: 100% !important;
}

/* --- MS: sol panelde araç çubuğu en altta --- */
.ms-shell .pos-product-panel .product-toolbar { margin-top: auto !important; }

/* --- MS: 1024x768 kasa ekranı için sıkı ölçüler --- */
@media screen and (max-height: 820px) {
  .ms-shell .pos-page.fintech-pos > .pos-message { display: none !important; }

  .ms-shell .open-account-board {
    max-height: 154px !important;
    padding: 10px !important;
    gap: 6px !important;
  }

  .ms-shell .open-account-heading { min-height: 26px !important; }
  .ms-shell .open-account-heading strong { font-size: 13px !important; }
  .ms-shell .open-account-heading .add-open-account { min-height: 26px !important; font-size: 11px !important; }

  .ms-shell .compact-basket-tabs { grid-auto-rows: 46px !important; gap: 6px !important; }
  .ms-shell .open-account-tab { height: 46px !important; min-height: 46px !important; padding: 5px 8px !important; }
  .ms-shell .ms-account-title strong { font-size: 12px !important; }
  .ms-shell .open-account-select > span:last-child { font-size: 13px !important; }
  .ms-shell .open-account-actions button { min-height: 18px !important; height: 18px !important; line-height: 16px !important; font-size: 9.5px !important; }

  .ms-shell .product-group-tabs { grid-auto-rows: 27px !important; max-height: 60px !important; }
  .ms-shell .product-group-tabs button { height: 27px !important; min-height: 27px !important; font-size: 10px !important; }

  .ms-shell .product-catalog-grid { grid-auto-rows: 104px !important; gap: 7px !important; }
  .ms-shell .quick-product-card { height: 104px !important; min-height: 104px !important; }
  .ms-shell .quick-product-sale-button > svg { width: 32px !important; height: 32px !important; }
  .ms-shell .quick-product-image { height: 38px !important; }

  .ms-shell .quick-amounts button { height: 30px !important; min-height: 30px !important; }
  .ms-shell .pos-payment-buttons button { height: 58px !important; min-height: 58px !important; }
  .ms-shell .pos-payment-buttons strong { font-size: 13.5px !important; }
  .ms-shell .pos-payment-buttons .payment-key { font-size: 11.5px !important; }
  .ms-shell .pos-table tbody td { height: 48px !important; }
}

/* --- MS: son rötuşlar --- */
.ms-shell .open-account-board { max-height: 196px !important; }

/* Referans tasarımda sepet dört sütun: Ürün / Miktar / Fiyat / Tutar */
.ms-shell .pos-table th:nth-child(3),
.ms-shell .pos-table td:nth-child(3),
.ms-shell .pos-table th:nth-child(7),
.ms-shell .pos-table td:nth-child(7) { display: none !important; }

/* Cihaz uyarısı satış ekranını daraltmasın (durum Cihazlar sayfasında) */
.ms-shell .pos-page.fintech-pos > .pos-message.warning { display: none !important; }
.ms-shell .pos-page.fintech-pos > .pos-message.success,
.ms-shell .pos-page.fintech-pos > .pos-message.error {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  min-height: 32px !important;
  padding: 6px 12px !important;
  border-radius: 10px !important;
  font-size: 12.5px !important;
}

@media screen and (max-width: 1180px) {
  .ms-shell .ms-bottom-nav { gap: 2px !important; padding: 6px 6px !important; }
  .ms-shell .ms-nav-item { padding: 6px 1px !important; font-size: 9.5px !important; letter-spacing: -.2px !important; }
  .ms-shell .ms-nav-item svg { width: 18px !important; height: 18px !important; }
}

/* Bildirimler yerleşimi kaydırmasın: sağ üstte toast */
.ms-shell .pos-page.fintech-pos > .pos-message.success,
.ms-shell .pos-page.fintech-pos > .pos-message.error {
  position: fixed !important;
  top: 78px !important;
  right: 18px !important;
  z-index: 80 !important;
  max-width: 380px !important;
  padding: 10px 14px !important;
  border-radius: 10px !important;
  box-shadow: 0 10px 26px rgba(15, 33, 56, .18) !important;
}

/* Miktar sütunu adım kutusunu tam alsın */
.ms-shell .pos-table th:nth-child(4) { width: 118px !important; }
.ms-shell .pos-table tbody tr td:nth-child(4) {
  overflow: visible !important;
  text-overflow: clip !important;
}

/* --- MS: kategori şeridi tek satır + oklar (referans tasarım) --- */
.ms-shell .pos-checkout-panel > .ms-group-strip {
  grid-area: groups !important;
  position: relative !important;
  display: flex !important;
  align-items: center !important;
  gap: 6px !important;
  min-width: 0 !important;
}

.ms-shell .ms-group-strip .product-group-tabs {
  display: flex !important;
  flex: 1 1 auto !important;
  gap: 6px !important;
  min-width: 0 !important;
  max-height: none !important;
  height: 34px !important;
  padding: 0 !important;
  overflow-x: auto !important;
  overflow-y: hidden !important;
  scroll-behavior: smooth !important;
  scrollbar-width: none !important;
}

.ms-shell .ms-group-strip .product-group-tabs::-webkit-scrollbar { display: none !important; }

.ms-shell .ms-group-strip .product-group-tabs button {
  flex: 0 0 auto !important;
  width: auto !important;
  height: 34px !important;
  min-height: 34px !important;
  padding: 0 14px !important;
  font-size: 11px !important;
}

.ms-shell .ms-strip-nav {
  display: grid !important;
  flex: 0 0 auto !important;
  place-items: center !important;
  width: 28px !important;
  height: 34px !important;
  min-height: 34px !important;
  padding: 0 !important;
  border: 1px solid var(--ms-border) !important;
  border-radius: 8px !important;
  background: #fff !important;
  color: #475569 !important;
}

.ms-shell .ms-strip-nav:hover { border-color: var(--ms-blue) !important; color: var(--ms-blue) !important; }
.ms-shell .ms-strip-prev svg { transform: rotate(180deg) !important; }

/* --- MS: sabit ürün ızgarası belirgin kaydırma --- */
.ms-shell .product-catalog-grid {
  padding-right: 8px !important;
  scrollbar-width: thin !important;
  scrollbar-color: #cbd5e1 #f1f5f9 !important;
  scroll-behavior: smooth !important;
  overscroll-behavior: contain !important;
}

.ms-shell .product-catalog-grid::-webkit-scrollbar { width: 8px !important; }
.ms-shell .product-catalog-grid::-webkit-scrollbar-track { border-radius: 8px !important; background: #f1f5f9 !important; }
.ms-shell .product-catalog-grid::-webkit-scrollbar-thumb { border: 2px solid #f1f5f9 !important; border-radius: 8px !important; background: #cbd5e1 !important; }
.ms-shell .product-catalog-grid::-webkit-scrollbar-thumb:hover { background: #94a3b8 !important; }

/* Görsel her kartta aynı ölçüde dursun */
.ms-shell .quick-product-image {
  width: 100% !important;
  height: 46px !important;
  object-fit: contain !important;
}

/* --- MS: ürün kartı = tam kaplayan görsel + alt gradyan + yazı --- */
.ms-shell .quick-product-card {
  position: relative !important;
  overflow: hidden !important;
  background: #0f172a !important;
}

.ms-shell .quick-product-sale-button,
.ms-shell .quick-product-grid button.quick-product-sale-button {
  position: relative !important;
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  padding: 0 !important;
  border-radius: 10px !important;
  background: transparent !important;
  overflow: hidden !important;
}

.ms-shell .quick-product-sale-button > svg {
  position: absolute !important;
  top: 50% !important;
  left: 50% !important;
  width: 34px !important;
  height: 34px !important;
  transform: translate(-50%, -60%) !important;
  color: #cbd5e1 !important;
}

.ms-shell .quick-product-image {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  object-fit: cover !important;
  object-position: center !important;
  background: #fff !important;
}

/* Vektör görselde kırpma olmasın */
.ms-shell .quick-product-image[data-ms-fallback] {
  padding: 10px 10px 38px !important;
  object-fit: contain !important;
}

.ms-shell .quick-product-sale-button::after {
  content: "" !important;
  position: absolute !important;
  right: 0 !important;
  bottom: 0 !important;
  left: 0 !important;
  height: 64% !important;
  background: linear-gradient(180deg, rgba(8, 17, 33, 0) 0%, rgba(8, 17, 33, .55) 45%, rgba(8, 17, 33, .92) 100%) !important;
  pointer-events: none !important;
}

.ms-shell .quick-product-sale-button strong {
  position: absolute !important;
  right: 8px !important;
  bottom: 22px !important;
  left: 8px !important;
  z-index: 2 !important;
  display: -webkit-box !important;
  overflow: hidden !important;
  color: #fff !important;
  font-size: 10.5px !important;
  font-weight: 800 !important;
  line-height: 1.15 !important;
  text-align: left !important;
  text-shadow: 0 1px 2px rgba(0, 0, 0, .45) !important;
  -webkit-box-orient: vertical !important;
  -webkit-line-clamp: 2 !important;
}

.ms-shell .quick-product-sale-button span:not(.favorite-action) {
  position: absolute !important;
  bottom: 5px !important;
  left: 8px !important;
  z-index: 2 !important;
  color: #7dd3fc !important;
  font-size: 12.5px !important;
  font-weight: 900 !important;
  text-shadow: 0 1px 2px rgba(0, 0, 0, .5) !important;
}

.ms-shell .favorite-action { z-index: 3 !important; }

/* Liste görünümü: görsel solda küçük kare */
.ms-shell .ms-catalog-list .quick-product-card { background: #fff !important; }
.ms-shell .ms-catalog-list .quick-product-sale-button::after { display: none !important; }

.ms-shell .ms-catalog-list .quick-product-image {
  inset: auto !important;
  top: 5px !important;
  left: 6px !important;
  width: 36px !important;
  height: 36px !important;
  border-radius: 6px !important;
  padding: 0 !important;
  object-fit: cover !important;
}

.ms-shell .ms-catalog-list .quick-product-image[data-ms-fallback] { padding: 2px !important; object-fit: contain !important; }

.ms-shell .ms-catalog-list .quick-product-sale-button strong {
  top: 8px !important;
  right: 84px !important;
  bottom: auto !important;
  left: 50px !important;
  color: var(--ms-text) !important;
  font-size: 12px !important;
  text-shadow: none !important;
  -webkit-line-clamp: 2 !important;
}

.ms-shell .ms-catalog-list .quick-product-sale-button span:not(.favorite-action) {
  top: 50% !important;
  right: 12px !important;
  bottom: auto !important;
  left: auto !important;
  color: var(--ms-blue) !important;
  text-shadow: none !important;
  transform: translateY(-50%) !important;
}

.ms-shell .ms-catalog-list .quick-product-sale-button > svg { left: 24px !important; transform: translate(-50%, -50%) !important; width: 22px !important; height: 22px !important; }

/* ============================================================
   MS: MOBİL (telefon / tablet) — Patron Radar ve genel kabuk
   ============================================================ */
@media screen and (max-width: 820px) {
  .ms-shell {
    grid-template-rows: 56px minmax(0, 1fr) auto !important;
    width: 100% !important;
    height: 100dvh !important;
  }

  .ms-shell .ms-titlebar { gap: 8px !important; padding: 0 10px !important; }
  .ms-shell .ms-titlebar-logo { width: 74px !important; }
  .ms-shell .ms-titlebar-logo img { max-height: 22px !important; }
  .ms-shell .ms-titlebar-title { font-size: 15px !important; }
  .ms-shell .ms-titlebar-meta { gap: 10px !important; }
  .ms-shell .ms-meta-chip { font-size: 12px !important; }
  .ms-shell .ms-meta-chip:first-child { display: none !important; }
  .ms-shell .ms-user-chip { gap: 6px !important; padding-left: 10px !important; }
  .ms-shell .ms-user-meta { display: none !important; }

  .ms-shell .content-inner { padding: 10px !important; overflow-y: auto !important; -webkit-overflow-scrolling: touch !important; }

  /* Alt menü telefonda yatay kaydırmalı */
  .ms-shell .ms-bottom-nav {
    gap: 4px !important;
    padding: 6px 8px calc(6px + env(safe-area-inset-bottom)) !important;
    overflow-x: auto !important;
    scrollbar-width: none !important;
  }

  .ms-shell .ms-bottom-nav::-webkit-scrollbar { display: none !important; }

  .ms-shell .ms-nav-item {
    flex: 0 0 66px !important;
    width: 66px !important;
    padding: 6px 2px !important;
    font-size: 9.5px !important;
  }

  .ms-shell .ms-nav-technical { flex: 0 0 66px !important; }
  .ms-shell .ms-nav-tech-menu { right: auto !important; left: 0 !important; }

  /* Patron Radar */
  .ms-shell .owner-radar-page .page-header { gap: 10px !important; }
  .ms-shell .owner-radar-page .page-header h1 { font-size: 20px !important; }
  .ms-shell .owner-radar-page .page-header p { font-size: 12.5px !important; }

  .ms-shell .metrics-grid,
  .ms-shell .metrics-grid.compact-metrics {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 8px !important;
  }

  .ms-shell .metric-card { padding: 10px 12px !important; }
  .ms-shell .metric-card strong { font-size: 18px !important; }
  .ms-shell .metric-card span { font-size: 11px !important; }

  .ms-shell .owner-radar-grid {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 10px !important;
  }

  .ms-shell .owner-radar-page .dashboard-panel { padding: 12px !important; }
  .ms-shell .owner-radar-page .panel-heading h2 { font-size: 15px !important; }

  .ms-shell .owner-radar-page table,
  .ms-shell .owner-radar-page .data-list { font-size: 12px !important; }

  /* Genel yönetim sayfaları: tablolar yatay kaydırsın */
  .ms-shell .management-page .table-wrapper,
  .ms-shell .management-page .data-table-wrapper {
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
  }

  .ms-shell .management-page table { min-width: 620px !important; }

  /* Satış ekranı telefonda alt alta */
  .ms-shell .pos-fintech-board {
    grid-template-columns: minmax(0, 1fr) !important;
    grid-template-rows: auto auto auto !important;
    overflow-y: auto !important;
  }

  .ms-shell .pos-fintech-board > .pos-product-panel,
  .ms-shell .pos-fintech-board > .pos-checkout-panel { grid-column: 1 !important; grid-row: auto !important; }
  .ms-shell .pos-fintech-board > .pos-payment-buttons { grid-column: 1 !important; grid-row: auto !important; grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
  .ms-shell .pos-command-bar { flex-wrap: wrap !important; height: auto !important; min-height: 0 !important; }
  .ms-shell .pos-search-cluster { flex: 1 1 100% !important; }
  .ms-shell .fintech-totals.payment-spotlight { flex: 1 1 100% !important; }
  .ms-shell .payment-total-card { flex: 1 1 0 !important; width: auto !important; height: 62px !important; }
  .ms-shell .pos-action-button { height: 58px !important; }
  .ms-shell .product-catalog-grid { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; }
  .ms-shell .compact-basket-tabs { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
}

@media screen and (max-width: 480px) {
  .ms-shell .metrics-grid,
  .ms-shell .metrics-grid.compact-metrics { grid-template-columns: minmax(0, 1fr) !important; }
  .ms-shell .product-catalog-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
  .ms-shell .quick-amounts { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; }
}

@media screen and (max-width: 820px) {
  .ms-shell .page-header.hero-header,
  .ms-shell .owner-radar-page .page-header {
    display: flex !important;
    flex-direction: column !important;
    gap: 10px !important;
    align-items: flex-start !important;
    padding: 12px !important;
  }

  .ms-shell .owner-radar-page .page-header > * { width: 100% !important; }
  .ms-shell .owner-radar-page .header-stack { align-items: flex-start !important; }
}

@media screen and (max-width: 820px) {
  /* Satış ekranı telefonda: sağ panel tek sütun akışa dönsün */
  .ms-shell .pos-checkout-panel {
    display: flex !important;
    flex-direction: column !important;
    gap: 10px !important;
    padding: 12px !important;
    border: 1px solid var(--ms-border) !important;
    border-radius: 12px !important;
    background: #fff !important;
  }

  .ms-shell .pos-checkout-panel::before { display: none !important; }
  .ms-shell .pos-checkout-panel > * { grid-area: auto !important; }
  .ms-shell .open-account-board { max-height: none !important; border: 0 !important; padding: 0 !important; box-shadow: none !important; }
  .ms-shell .compact-basket-tabs { max-height: none !important; overflow: visible !important; }
  .ms-shell .product-catalog-grid { height: auto !important; max-height: 360px !important; }
  .ms-shell .pos-product-panel { padding-top: 44px !important; }
  .ms-shell .pos-product-panel .product-count { height: 44px !important; }

  /* Komut çubuğu telefonda sarsın */
  .ms-shell .pos-search-cluster { flex-wrap: wrap !important; gap: 8px !important; }
  .ms-shell .pos-input-wrap { flex: 1 1 100% !important; height: 52px !important; }
  .ms-shell .pos-action-button { flex: 1 1 0 !important; width: auto !important; min-width: 70px !important; height: 54px !important; }
  .ms-shell .fintech-totals.payment-spotlight { gap: 8px !important; }

  /* Sepet tablosu telefonda esnek */
  .ms-shell .pos-table { table-layout: auto !important; }
  .ms-shell .pos-table th:nth-child(4),
  .ms-shell .pos-table th:nth-child(5),
  .ms-shell .pos-table th:nth-child(6) { width: auto !important; }
  .ms-shell .pos-table tbody td { height: 52px !important; }
}

/* Telefonda satış ekranı: tek sütun, sayfa kaydırmalı (son katman) */
@media screen and (max-width: 820px) {
  .ms-shell .content-inner > .pos-page,
  .ms-shell .pos-page.fintech-pos {
    height: auto !important;
    min-height: 100% !important;
    max-height: none !important;
    overflow: visible !important;
  }

  .ms-shell .content-inner { overflow-y: auto !important; }

  .ms-shell .pos-fintech-board {
    display: flex !important;
    flex-direction: column !important;
    gap: 10px !important;
    overflow: visible !important;
  }

  .ms-shell .pos-product-panel {
    height: auto !important;
    min-height: 220px !important;
    overflow: visible !important;
  }

  .ms-shell .pos-checkout-panel {
    display: flex !important;
    flex-direction: column !important;
    height: auto !important;
    overflow: visible !important;
  }

  .ms-shell .pos-checkout-panel > .open-account-board { order: 1 !important; }
  .ms-shell .pos-checkout-panel > .quick-product-header { order: 2 !important; }
  .ms-shell .pos-checkout-panel > .product-catalog-controls { order: 3 !important; }
  .ms-shell .pos-checkout-panel > .ms-group-strip { order: 4 !important; }
  .ms-shell .pos-checkout-panel > .product-catalog-grid { order: 5 !important; }
  .ms-shell .pos-checkout-panel > .quick-amounts { order: 6 !important; }
  .ms-shell .pos-checkout-panel > .customer-select-row,
  .ms-shell .pos-checkout-panel > .customer-detail-strip,
  .ms-shell .pos-checkout-panel > .terminal-note { display: none !important; }

  .ms-shell .pos-payment-buttons { position: static !important; }
}

/* --- MS: görseli olmayan ürün kartı (sabit olmayanlar) --- */
.ms-shell .quick-product-card.ms-no-image { background: #fff !important; }
.ms-shell .quick-product-card.ms-no-image .quick-product-sale-button::after { display: none !important; }

.ms-shell .quick-product-card.ms-no-image .quick-product-sale-button {
  display: grid !important;
  grid-template-rows: minmax(0, 1fr) auto !important;
  gap: 4px !important;
  align-content: center !important;
  padding: 10px !important;
}

.ms-shell .quick-product-card.ms-no-image .quick-product-sale-button strong {
  position: static !important;
  display: -webkit-box !important;
  align-self: end !important;
  color: var(--ms-text) !important;
  font-size: 11.5px !important;
  line-height: 1.25 !important;
  text-align: center !important;
  text-shadow: none !important;
  -webkit-box-orient: vertical !important;
  -webkit-line-clamp: 3 !important;
}

.ms-shell .quick-product-card.ms-no-image .quick-product-sale-button span:not(.favorite-action) {
  position: static !important;
  align-self: start !important;
  color: var(--ms-blue) !important;
  font-size: 13px !important;
  text-align: center !important;
  text-shadow: none !important;
}

.ms-shell .ms-catalog-list .quick-product-card.ms-no-image .quick-product-sale-button {
  grid-template-rows: none !important;
  grid-template-columns: minmax(0, 1fr) auto !important;
  align-items: center !important;
  padding: 0 12px !important;
}

.ms-shell .ms-catalog-list .quick-product-card.ms-no-image .quick-product-sale-button strong { text-align: left !important; -webkit-line-clamp: 2 !important; }
.ms-shell .ms-catalog-list .quick-product-card.ms-no-image .quick-product-sale-button span:not(.favorite-action) { align-self: center !important; }

/* --- MS: sepet listesi kendi içinde kaydırsın, çubuk görünmesin --- */
.ms-shell .pos-product-panel {
  display: flex !important;
  flex-direction: column !important;
  padding: 0 !important;
  overflow: hidden !important;
}

.ms-shell .pos-product-panel .product-count {
  position: static !important;
  order: 1 !important;
  flex: 0 0 46px !important;
  height: 46px !important;
}

.ms-shell .ms-cart-scroll {
  order: 2 !important;
  flex: 1 1 auto !important;
  min-height: 0 !important;
  overflow-x: hidden !important;
  overflow-y: auto !important;
  scrollbar-width: none !important;
  -ms-overflow-style: none !important;
  overscroll-behavior: contain !important;
}

.ms-shell .ms-cart-scroll::-webkit-scrollbar { width: 0 !important; height: 0 !important; display: none !important; }

.ms-shell .pos-product-panel .product-toolbar {
  order: 3 !important;
  flex: 0 0 auto !important;
  margin-top: 0 !important;
}

.ms-shell .pos-table thead th {
  position: sticky !important;
  top: 0 !important;
  z-index: 3 !important;
  background: #f8fafc !important;
}

@media screen and (max-width: 820px) {
  .ms-shell .ms-cart-scroll { max-height: 46vh !important; }
}

/* Sepet başlığının sabit kalması için tablodaki overflow kaldırıldı */
.ms-shell .pos-table { overflow: visible !important; }
.ms-shell .pos-table thead th { background: #f8fafc !important; box-shadow: 0 1px 0 var(--ms-border) !important; }

/* ============================================================
   MS: İşlem geçmişi — liste, sağ tık menüsü ve detay penceresi
   ============================================================ */
.ms-shell .ms-history-search {
  min-width: 240px !important;
  height: 38px !important;
  padding: 0 12px !important;
  border: 1px solid var(--ms-border-strong) !important;
  border-radius: 10px !important;
  background: #fff !important;
  font-size: 13px !important;
}

.ms-shell .ms-history-table { width: 100% !important; border-collapse: collapse !important; }

.ms-shell .ms-history-table th {
  padding: 10px 12px !important;
  border-bottom: 1px solid var(--ms-border) !important;
  background: #f8fafc !important;
  color: #64748b !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  text-align: left !important;
}

.ms-shell .ms-history-table td {
  padding: 9px 12px !important;
  border-bottom: 1px solid #f1f5f9 !important;
  font-size: 13px !important;
}

.ms-shell .ms-history-row { cursor: pointer !important; }
.ms-shell .ms-history-row:hover { background: #f8fafc !important; }
.ms-shell .ms-history-row.selected { background: var(--ms-blue-soft) !important; }
.ms-shell .ms-history-total { font-weight: 800 !important; text-align: right !important; white-space: nowrap !important; }

.ms-shell .ms-history-actions {
  display: flex !important;
  gap: 6px !important;
  justify-content: flex-end !important;
}

.ms-shell .ms-history-actions button {
  min-height: 30px !important;
  padding: 0 10px !important;
  border: 1px solid var(--ms-border) !important;
  border-radius: 8px !important;
  background: #fff !important;
  color: #334155 !important;
  font-size: 12px !important;
  font-weight: 700 !important;
}

.ms-shell .ms-history-actions button:hover { border-color: var(--ms-blue) !important; color: var(--ms-blue) !important; }

.ms-shell .ms-context-menu {
  position: fixed !important;
  z-index: 400 !important;
  display: flex !important;
  flex-direction: column !important;
  min-width: 168px !important;
  padding: 6px !important;
  border: 1px solid var(--ms-border) !important;
  border-radius: 10px !important;
  background: #fff !important;
  box-shadow: 0 14px 34px rgba(15, 33, 56, .2) !important;
}

.ms-shell .ms-context-menu button {
  padding: 9px 10px !important;
  border: 0 !important;
  border-radius: 7px !important;
  background: transparent !important;
  color: #1e293b !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  text-align: left !important;
}

.ms-shell .ms-context-menu button:hover { background: var(--ms-blue-soft) !important; color: var(--ms-blue) !important; }

.ms-shell .ms-modal-backdrop {
  position: fixed !important;
  inset: 0 !important;
  z-index: 380 !important;
  display: grid !important;
  place-items: center !important;
  padding: 20px !important;
  background: rgba(8, 17, 33, .55) !important;
}

.ms-shell .ms-modal {
  display: flex !important;
  flex-direction: column !important;
  width: min(560px, 100%) !important;
  max-height: min(80vh, 640px) !important;
  overflow: hidden !important;
  border-radius: 14px !important;
  background: #fff !important;
  box-shadow: 0 24px 60px rgba(8, 17, 33, .35) !important;
}

.ms-shell .ms-modal-head {
  display: flex !important;
  gap: 12px !important;
  align-items: flex-start !important;
  justify-content: space-between !important;
  padding: 16px 18px !important;
  border-bottom: 1px solid var(--ms-border) !important;
}

.ms-shell .ms-modal-head span { color: var(--ms-blue) !important; font-size: 11px !important; font-weight: 800 !important; letter-spacing: .6px !important; }
.ms-shell .ms-modal-head h3 { margin: 2px 0 !important; font-size: 19px !important; font-weight: 800 !important; }
.ms-shell .ms-modal-head p { margin: 0 !important; color: #64748b !important; font-size: 12.5px !important; }

.ms-shell .ms-modal-close {
  min-height: 32px !important;
  padding: 0 12px !important;
  border: 1px solid var(--ms-border) !important;
  border-radius: 8px !important;
  background: #fff !important;
  color: #475569 !important;
  font-size: 12.5px !important;
  font-weight: 700 !important;
}

.ms-shell .ms-modal-body { flex: 1 1 auto !important; min-height: 0 !important; padding: 12px 18px !important; overflow-y: auto !important; }
.ms-shell .ms-detail-table { width: 100% !important; border-collapse: collapse !important; }
.ms-shell .ms-detail-table th { padding: 8px 6px !important; border-bottom: 1px solid var(--ms-border) !important; color: #64748b !important; font-size: 11.5px !important; text-align: left !important; }
.ms-shell .ms-detail-table td { padding: 9px 6px !important; border-bottom: 1px solid #f1f5f9 !important; font-size: 13px !important; }
.ms-shell .ms-detail-table td:nth-child(3), .ms-shell .ms-detail-table td:nth-child(4),
.ms-shell .ms-detail-table th:nth-child(3), .ms-shell .ms-detail-table th:nth-child(4) { text-align: right !important; white-space: nowrap !important; }

.ms-shell .ms-modal-foot {
  display: flex !important;
  gap: 12px !important;
  align-items: center !important;
  justify-content: space-between !important;
  padding: 14px 18px !important;
  border-top: 1px solid var(--ms-border) !important;
  background: #f8fafc !important;
}

.ms-shell .ms-modal-total { display: flex !important; gap: 10px !important; align-items: baseline !important; }
.ms-shell .ms-modal-total span { color: #64748b !important; font-size: 12px !important; font-weight: 700 !important; }
.ms-shell .ms-modal-total strong { font-size: 22px !important; font-weight: 900 !important; }

.ms-shell .ms-modal-foot > button {
  min-height: 42px !important;
  padding: 0 20px !important;
  border: 0 !important;
  border-radius: 10px !important;
  background: var(--ms-blue) !important;
  color: #fff !important;
  font-size: 14px !important;
  font-weight: 800 !important;
}

.ms-shell .ms-printer-field { grid-column: 1 / -1 !important; }
.ms-shell .ms-printer-actions { display: flex !important; gap: 8px !important; margin-top: 8px !important; }

@media screen and (max-width: 820px) {
  .ms-shell .ms-history-table th:nth-child(3),
  .ms-shell .ms-history-table td:nth-child(3) { display: none !important; }
  .ms-shell .ms-history-actions { flex-direction: column !important; }
}

/* ============================================================
   MS: sade komut çubuğu, ekran içi uyarı, fiyat penceresi
   ============================================================ */
/* Bildirim baloncukları tamamen kapalı */
.ms-shell .pos-page.fintech-pos > .pos-message,
.ms-shell .pos-page.fintech-pos > .pos-message.success,
.ms-shell .pos-page.fintech-pos > .pos-message.error,
.ms-shell .pos-page.fintech-pos > .pos-message.warning { display: none !important; }

/* Tutar kartı tek başına, geniş ve büyük */
.ms-shell .fintech-totals.payment-spotlight { flex: 0 0 auto !important; }
.ms-shell .payment-total-card.sale-total-card {
  flex: 0 0 210px !important;
  width: 210px !important;
  border-color: #eadfbd !important;
  background: #fffdf7 !important;
}

.ms-shell .payment-total-card.sale-total-card .amount-display { font-size: 30px !important; }
.ms-shell .payment-total-card.sale-total-card .amount-display.amount-compact { font-size: 25px !important; }
.ms-shell .payment-total-card.sale-total-card .amount-display.amount-tiny { font-size: 20px !important; }

@media screen and (min-width: 1280px) {
  .ms-shell .payment-total-card.sale-total-card { flex: 0 0 260px !important; width: 260px !important; }
  .ms-shell .payment-total-card.sale-total-card .amount-display { font-size: 34px !important; }
}

/* Satış listesi başlığında ekran içi uyarı */
.ms-shell .pos-product-panel .product-count {
  display: flex !important;
  gap: 10px !important;
  align-items: center !important;
  justify-content: space-between !important;
}

.ms-shell .ms-inline-note {
  max-width: 62% !important;
  overflow: hidden !important;
  padding: 3px 9px !important;
  border-radius: 7px !important;
  font-size: 11.5px !important;
  font-weight: 700 !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
  cursor: pointer !important;
}

.ms-shell .ms-inline-note.error { background: #fee2e2 !important; color: #b91c1c !important; }
.ms-shell .ms-inline-note.success { background: #dcfce7 !important; color: #15803d !important; }
.ms-shell .ms-inline-note.warning { background: #fef3c7 !important; color: #b45309 !important; }

/* Fiyat gör penceresi */
.ms-shell .ms-price-modal { width: min(440px, 100%) !important; }
.ms-shell .ms-price-body {
  display: flex !important;
  flex-direction: column !important;
  gap: 6px !important;
  align-items: center !important;
  padding: 26px 20px 30px !important;
}

.ms-shell .ms-price-body strong { color: var(--ms-blue) !important; font-size: 46px !important; font-weight: 900 !important; letter-spacing: -1px !important; }
.ms-shell .ms-price-body span { color: #b45309 !important; font-size: 13px !important; font-weight: 700 !important; }

/* Bekleyen ürünü olan açık hesap belirgin olsun */
.ms-shell .open-account-tab.has-items {
  border-color: #f59e0b !important;
  background: #fffbeb !important;
}

.ms-shell .open-account-tab.has-items.active {
  border-color: #0b70c9 !important;
  background: #eaf4ff !important;
  box-shadow: inset 0 0 0 1px #0b70c9 !important;
}

.ms-shell .ms-account-pending {
  display: block !important;
  color: #b45309 !important;
  font-size: 9.5px !important;
  font-weight: 800 !important;
  letter-spacing: .2px !important;
}

.ms-shell .open-account-tab.active .ms-account-pending { color: #0b70c9 !important; }
.ms-shell .compact-basket-tabs { grid-auto-rows: 58px !important; }
.ms-shell .open-account-tab { height: 58px !important; min-height: 58px !important; }

@media screen and (max-height: 820px) {
  .ms-shell .compact-basket-tabs { grid-auto-rows: 54px !important; }
  .ms-shell .open-account-tab { height: 54px !important; min-height: 54px !important; }
  .ms-shell .open-account-board { max-height: 172px !important; }
  .ms-shell .payment-total-card.sale-total-card .amount-display { font-size: 26px !important; }
}

/* ============================================================
   MS: muhtelif ürün, isteğe bağlı fiş, veresiye toplamı
   ============================================================ */
.ms-shell .ms-misc-card {
  border: 1px dashed #93c5fd !important;
  background: #f0f7ff !important;
}

.ms-shell .ms-misc-card .quick-product-sale-button {
  display: grid !important;
  place-content: center !important;
  gap: 4px !important;
  padding: 10px !important;
}

.ms-shell .ms-misc-card .quick-product-sale-button::after { display: none !important; }

.ms-shell .ms-misc-card .quick-product-sale-button strong {
  position: static !important;
  color: #1d4ed8 !important;
  font-size: 12px !important;
  text-align: center !important;
  text-shadow: none !important;
}

.ms-shell .ms-misc-card .quick-product-sale-button span:not(.favorite-action) {
  position: static !important;
  color: #2563eb !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  text-align: center !important;
  text-shadow: none !important;
}

.ms-shell .ms-misc-modal { width: min(420px, 100%) !important; }

.ms-shell .ms-misc-body {
  display: flex !important;
  flex-direction: column !important;
  gap: 12px !important;
  padding: 18px !important;
}

.ms-shell .ms-misc-body > input {
  width: 100% !important;
  height: 64px !important;
  padding: 0 16px !important;
  border: 1px solid var(--ms-border-strong) !important;
  border-radius: 12px !important;
  font-size: 30px !important;
  font-weight: 800 !important;
  text-align: center !important;
}

.ms-shell .ms-misc-quick {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 8px !important;
}

.ms-shell .ms-misc-quick button {
  height: 40px !important;
  border: 1px solid transparent !important;
  border-radius: 10px !important;
  background: var(--ms-blue-soft) !important;
  color: var(--ms-blue) !important;
  font-size: 14px !important;
  font-weight: 800 !important;
}

.ms-shell .ms-misc-quick button:hover { border-color: #bfdbfe !important; background: #dbeafe !important; }
.ms-shell .ms-modal-foot > button:disabled { opacity: .45 !important; }

/* Cihazlar: otomatik fiş anahtarı */
.ms-shell .ms-auto-print {
  display: flex !important;
  gap: 10px !important;
  align-items: flex-start !important;
  margin-top: 12px !important;
  padding: 10px 12px !important;
  border: 1px solid var(--ms-border) !important;
  border-radius: 10px !important;
  background: #f8fafc !important;
  cursor: pointer !important;
}

.ms-shell .ms-auto-print input { width: 18px !important; height: 18px !important; margin-top: 2px !important; }
.ms-shell .ms-auto-print span { display: flex !important; flex-direction: column !important; gap: 2px !important; }
.ms-shell .ms-auto-print strong { font-size: 13px !important; font-weight: 700 !important; }
.ms-shell .ms-auto-print small { color: #64748b !important; font-size: 11.5px !important; }

/* İşlem geçmişi: ödeme tipi filtresi ve toplam satırı */
.ms-shell .ms-history-filters {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 8px !important;
  margin-bottom: 12px !important;
}

.ms-shell .ms-history-filters button {
  min-height: 34px !important;
  padding: 0 16px !important;
  border: 1px solid var(--ms-border) !important;
  border-radius: 10px !important;
  background: #fff !important;
  color: #475569 !important;
  font-size: 12.5px !important;
  font-weight: 700 !important;
}

.ms-shell .ms-history-filters button.active {
  border-color: var(--ms-blue) !important;
  background: var(--ms-blue) !important;
  color: #fff !important;
}

.ms-shell .metric-card.warning { border-top-color: #f59e0b !important; }

.ms-shell .ms-history-foot td {
  padding: 12px !important;
  border-top: 2px solid var(--ms-border) !important;
  border-bottom: 0 !important;
  background: #f8fafc !important;
  font-size: 13.5px !important;
  font-weight: 800 !important;
}

.ms-shell .ms-history-foot .ms-history-total { color: var(--ms-blue) !important; font-size: 16px !important; }

/* ============================================================
   MS: göz yormayan kontrast — satış ekranı yüzeyleri
   ============================================================ */
.ms-shell {
  --ms-bg: #e9eef5 !important;
  --ms-border: #dde5ee !important;
  --ms-border-strong: #c3cfdd !important;
}

.ms-shell .content,
.ms-shell .pos-page.fintech-pos { background: #e9eef5 !important; }

/* Sepet kartı: kırık beyaz zemin, üstte ince mavi şerit */
.ms-shell .pos-product-panel {
  border: 1px solid #d7e0ea !important;
  border-top: 3px solid #2563eb !important;
  background: #fbfcfe !important;
  box-shadow: 0 1px 3px rgba(15, 33, 56, .07) !important;
}

.ms-shell .pos-product-panel .product-count {
  border-bottom: 1px solid #e2e8f0 !important;
  background: #fbfcfe !important;
}

.ms-shell .pos-product-panel .product-count strong { color: #16324f !important; }

/* Tablo başlığı: yumuşak gri-mavi, koyu yazı */
.ms-shell .pos-table thead th {
  border-bottom: 1px solid #cfdbe8 !important;
  background: #e8eef6 !important;
  color: #43566d !important;
  font-weight: 800 !important;
  box-shadow: 0 1px 0 #cfdbe8 !important;
}

/* Satırlar: zebra + belirgin ayraç */
.ms-shell .pos-table tbody tr { background: #ffffff !important; }
.ms-shell .pos-table tbody tr:nth-child(even) { background: #f4f8fc !important; }
.ms-shell .pos-table tbody tr:hover { background: #e8f1fd !important; }
.ms-shell .pos-table tbody td { border-bottom: 1px solid #e6ecf3 !important; }

.ms-shell .ms-line-name { color: #14243a !important; font-weight: 650 !important; }
.ms-shell .pos-table tbody tr td:nth-child(5) { color: #4a5c72 !important; font-weight: 700 !important; }
.ms-shell .pos-table tbody tr td:nth-child(6) { color: #12263f !important; font-weight: 850 !important; }
.ms-shell .pos-table tbody tr td:nth-child(4) { color: #64748b !important; }

.ms-shell .ms-line-thumb { border-color: #d7e0ea !important; background: #eef3f9 !important; }

.ms-shell .ms-qty-stepper { border-color: #c3cfdd !important; background: #ffffff !important; }
.ms-shell .ms-qty-button { background: #f3f7fb !important; color: #3b5573 !important; }
.ms-shell .ms-qty-button { color: #3b5573 !important; }
.ms-shell .ms-qty-stepper .qty-input { color: #12263f !important; }
.ms-shell .ms-qty-wrap { display:flex; flex-direction:column; align-items:center; gap:4px; }
.ms-shell .ms-package-count { display:block; white-space:nowrap; color:#075985; background:#e0f2fe; border:1px solid #7dd3fc; border-radius:999px; padding:2px 7px; font-size:11px; font-weight:800; line-height:1.2; }
.ms-pi-bulkbar{display:flex;align-items:center;gap:14px;flex-wrap:wrap;margin:14px 0 8px;padding:12px 14px;border:1px solid #bae6fd;border-radius:12px;background:#f0f9ff}.ms-pi-bulkbar label{display:flex;align-items:center;gap:8px;font-weight:800;color:#0c4a6e}.ms-pi-bulkbar input{width:80px!important;margin:0!important}.ms-pi-bulkbar span{color:#475569;font-size:13px;flex:1}.ms-pi-bulkbar button{background:#0284c7;color:#fff}.ms-pi-table-scroll{overflow-x:auto;border:1px solid #dbe6f0;border-radius:12px}.ms-pi-table-scroll .ms-pi-table{min-width:1180px;margin:0}.ms-pi-suggested button{white-space:nowrap;background:#ecfdf5!important;color:#047857!important;border:1px solid #6ee7b7!important;padding:8px!important}.ms-pi-old{white-space:nowrap;font-weight:700;color:#475569}

/* Boş sepet alanı parlamasın */
.ms-shell .pos-table .empty-table-cell { background: #f4f8fc !important; }
.ms-shell .cart-empty-icon { color: #93a9c4 !important; }
.ms-shell .pos-table .empty-table-cell strong { color: #33465e !important; }
.ms-shell .pos-table .empty-table-cell span { color: #6c7f96 !important; }

/* Alt araç çubuğu */
.ms-shell .pos-product-panel .product-toolbar {
  border-top: 1px solid #e2e8f0 !important;
  background: #f1f5fa !important;
}

/* Sağ paneldeki kartlar da bir tık yumuşasın */
.ms-shell .open-account-board,
.ms-shell .pos-checkout-panel::before {
  border-color: #d7e0ea !important;
  background: #fbfcfe !important;
}

.ms-shell .open-account-tab { border-color: #d7e0ea !important; background: #f5f8fc !important; }
.ms-shell .quick-product-header,
.ms-shell .product-catalog-controls input,
.ms-shell .product-group-tabs button { border-color: #d7e0ea !important; }
.ms-shell .pos-input-wrap { border-color: #c3cfdd !important; }
.ms-shell .payment-total-card { border-color: #dde5ee !important; }
.ms-shell .quick-product-card { border-color: #d7e0ea !important; }

/* Sepet ürünleri: görselsiz, tam isimli ve 1080x768 uyumlu */
.ms-shell .ms-line-thumb { display: none !important; }
.ms-shell .ms-line-product { gap: 0 !important; width: 100% !important; }
.ms-shell .ms-line-name {
  display: block !important;
  width: 100% !important;
  overflow: visible !important;
  color: #14243a !important;
  font-weight: 750 !important;
  line-height: 1.25 !important;
  text-overflow: clip !important;
  white-space: normal !important;
  overflow-wrap: anywhere !important;
}
.ms-shell .pos-table tbody tr td:nth-child(2) { min-width: 0 !important; }

@media screen and (max-width: 1100px), screen and (max-height: 768px) {
  .ms-shell .pos-table { table-layout: fixed !important; width: 100% !important; }
  .ms-shell .pos-table th,
  .ms-shell .pos-table tbody td { padding-left: 7px !important; padding-right: 7px !important; }
  .ms-shell .pos-table th:nth-child(1) { width: 30px !important; }
  .ms-shell .pos-table th:nth-child(2) { width: auto !important; }
  .ms-shell .pos-table th:nth-child(4) { width: 96px !important; }
  .ms-shell .pos-table th:nth-child(5) { width: 72px !important; }
  .ms-shell .pos-table th:nth-child(6) { width: 78px !important; }
  .ms-shell .ms-line-name { font-size: 12px !important; }
  .ms-shell .pos-table tbody td { height: auto !important; min-height: 48px !important; }
}

/* ============================================================
   MS: Tutar sepetin altında, ödeme 4 sütun
   ============================================================ */
.ms-shell .pos-command-bar { height: 68px !important; min-height: 68px !important; }
.ms-shell .pos-search-cluster { flex: 1 1 auto !important; }
.ms-shell .pos-action-button { flex: 0 0 92px !important; width: 92px !important; }

@media screen and (min-width: 1280px) {
  .ms-shell .pos-action-button { flex: 0 0 110px !important; width: 110px !important; }
}

.ms-shell .ms-cart-total {
  display: flex !important;
  order: 4 !important;
  flex: 0 0 auto !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 12px !important;
  padding: 10px 14px !important;
  border-top: 2px solid #cfdbe8 !important;
  background: linear-gradient(180deg, #f8fbff, #eef4fb) !important;
}

.ms-shell .ms-cart-total > span {
  display: flex !important;
  gap: 8px !important;
  align-items: center !important;
  color: #43566d !important;
  font-size: 13px !important;
  font-weight: 800 !important;
  letter-spacing: .6px !important;
}

.ms-shell .ms-cart-total > span svg { color: #f59e0b !important; }

.ms-shell .ms-cart-total strong {
  color: #0f2138 !important;
  font-size: 34px !important;
  font-weight: 900 !important;
  letter-spacing: -1px !important;
  line-height: 1 !important;
}

.ms-shell .ms-cart-total strong.amount-compact { font-size: 29px !important; }
.ms-shell .ms-cart-total strong.amount-tiny { font-size: 24px !important; }

.ms-shell .pos-payment-buttons { grid-template-columns: repeat(4, minmax(0, 1fr)) !important; }

@media screen and (max-height: 820px) {
  .ms-shell .ms-cart-total { padding: 8px 12px !important; }
  .ms-shell .ms-cart-total strong { font-size: 30px !important; }
}

@media screen and (max-width: 820px) {
  .ms-shell .pos-payment-buttons { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
}

/* Cari hesap penceresi */
.ms-shell .ms-ledger-modal { width: min(760px, 100%) !important; max-height: min(84vh, 720px) !important; }
.ms-shell .ms-ledger-modal .ms-modal-body { padding: 0 !important; }
.ms-shell .ms-ledger-modal .dashboard-panel { border: 0 !important; border-radius: 0 !important; box-shadow: none !important; }
.ms-shell .ms-ledger-modal table { width: 100% !important; }
.ms-shell .ms-ledger-modal table th { position: sticky !important; top: 0 !important; background: #eef4fb !important; }

/* İade ekranı: barkod öncelikli giriş */
.ms-shell .ms-return-scan { margin-bottom: 14px !important; }

.ms-shell .ms-return-scan-row {
  display: flex !important;
  gap: 10px !important;
  align-items: stretch !important;
}

.ms-shell .ms-return-input {
  display: flex !important;
  flex: 1 1 auto !important;
  gap: 10px !important;
  align-items: center !important;
  min-width: 0 !important;
  height: 54px !important;
  padding: 0 14px !important;
  border: 1px solid var(--ms-border-strong) !important;
  border-radius: 12px !important;
  background: #fff !important;
}

.ms-shell .ms-return-input svg { flex: 0 0 auto !important; color: #94a3b8 !important; }

.ms-shell .ms-return-input input {
  width: 100% !important;
  height: 100% !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  font-size: 15px !important;
  font-weight: 600 !important;
}

.ms-shell .ms-return-scan-row > button {
  flex: 0 0 110px !important;
  height: 54px !important;
  border: 0 !important;
  border-radius: 12px !important;
  background: var(--ms-blue) !important;
  color: #fff !important;
  font-size: 15px !important;
  font-weight: 800 !important;
}

.ms-shell .ms-return-manual { margin-top: 10px !important; }
.ms-shell .ms-return-manual summary { color: var(--ms-blue) !important; font-size: 12.5px !important; font-weight: 700 !important; cursor: pointer !important; }
.ms-shell .ms-return-manual .inline-form { margin-top: 10px !important; }
.ms-shell .success-text { color: #15803d !important; font-size: 12.5px !important; font-weight: 700 !important; }

/* Alış faturası dosyaları */
.ms-shell .ms-invoice-actions { display: flex !important; gap: 6px !important; justify-content: flex-end !important; }
.ms-shell .ms-files-modal { width: min(560px, 100%) !important; }

.ms-shell .ms-file-drop {
  display: flex !important;
  flex-direction: column !important;
  gap: 4px !important;
  align-items: center !important;
  padding: 22px !important;
  border: 2px dashed #a8c7ea !important;
  border-radius: 12px !important;
  background: #f4f9ff !important;
  cursor: pointer !important;
  text-align: center !important;
}

.ms-shell .ms-file-drop:hover { border-color: var(--ms-blue) !important; background: #eaf3ff !important; }
.ms-shell .ms-file-drop strong { color: var(--ms-blue) !important; font-size: 14px !important; font-weight: 800 !important; }
.ms-shell .ms-file-drop small { color: #64748b !important; font-size: 11.5px !important; }
.ms-shell .ms-file-drop input { display: none !important; }

.ms-shell .ms-file-list { margin: 14px 0 0 !important; padding: 0 !important; list-style: none !important; }

.ms-shell .ms-file-list li {
  display: flex !important;
  gap: 10px !important;
  align-items: center !important;
  justify-content: space-between !important;
  padding: 10px 12px !important;
  border: 1px solid var(--ms-border) !important;
  border-radius: 10px !important;
  background: #fff !important;
  margin-bottom: 8px !important;
}

.ms-shell .ms-file-list a { display: flex !important; flex-direction: column !important; gap: 2px !important; min-width: 0 !important; text-decoration: none !important; }
.ms-shell .ms-file-list a strong { overflow: hidden !important; color: #14243a !important; font-size: 13px !important; text-overflow: ellipsis !important; white-space: nowrap !important; }
.ms-shell .ms-file-list a small { color: #64748b !important; font-size: 11px !important; }
.ms-shell .ms-file-list .ms-file-empty { justify-content: center !important; border-style: dashed !important; color: #64748b !important; font-size: 12.5px !important; }
.ms-shell .ms-file-list button.danger { min-height: 30px !important; padding: 0 12px !important; border: 1px solid #fecaca !important; border-radius: 8px !important; background: #fef2f2 !important; color: #b91c1c !important; font-size: 12px !important; font-weight: 700 !important; }

/* ===== RAPORLAR: hızlı aralık, ürün performansı, saatlik dağılım ===== */
.ms-report-ranges { display: flex !important; flex-wrap: wrap !important; gap: 6px !important; align-items: center !important; }
.ms-range-chip { background: #eef3fa !important; border: 1px solid #cfdcec !important; color: #244066 !important; border-radius: 8px !important; padding: 8px 12px !important; font-size: 12px !important; font-weight: 700 !important; cursor: pointer !important; }
.ms-range-chip:hover { background: #dde8f6 !important; }
.ms-range-export { background: #1f7a4d !important; border-color: #1f7a4d !important; color: #fff !important; }
.ms-range-export:hover { background: #196540 !important; }
.ms-report-grid { display: grid !important; grid-template-columns: 1.15fr 1fr !important; gap: 12px !important; align-items: start !important; }
.ms-report-grid > .dashboard-panel { min-width: 0 !important; }
.ms-top-table { width: 100% !important; border-collapse: collapse !important; font-size: 12px !important; }
.ms-top-table th { text-align: left !important; background: #e8eef6 !important; color: #23405f !important; padding: 7px 8px !important; font-size: 11px !important; text-transform: uppercase !important; letter-spacing: .3px !important; }
.ms-top-table td { padding: 6px 8px !important; border-bottom: 1px solid #e7edf5 !important; }
.ms-top-table tbody tr:nth-child(odd) td { background: #f6f9fd !important; }
.ms-top-table .ms-rank { width: 26px !important; color: #7b8ca3 !important; font-weight: 700 !important; }
.ms-top-table .ms-top-name { max-width: 0 !important; width: 45% !important; overflow: hidden !important; text-overflow: ellipsis !important; white-space: nowrap !important; font-weight: 600 !important; }
.ms-hour-list { display: flex !important; flex-direction: column !important; gap: 4px !important; }
.ms-hour-row { display: grid !important; grid-template-columns: 46px 1fr 74px 56px !important; align-items: center !important; gap: 8px !important; font-size: 12px !important; }
.ms-hour-label { font-weight: 700 !important; color: #23405f !important; }
.ms-hour-track { height: 12px !important; background: #e7eef7 !important; border-radius: 6px !important; overflow: hidden !important; }
.ms-hour-track i { display: block !important; height: 100% !important; background: linear-gradient(90deg, #2f6fb0, #4a90d9) !important; border-radius: 6px !important; }
.ms-hour-value { text-align: right !important; font-weight: 700 !important; color: #14304f !important; }
.ms-hour-count { text-align: right !important; color: #7b8ca3 !important; }
.ms-hour-empty { color: #7b8ca3 !important; font-size: 12px !important; margin: 6px 0 0 !important; }
.ms-day-table { width: 100% !important; border-collapse: collapse !important; font-size: 12px !important; margin-top: 12px !important; }
.ms-day-table th { text-align: left !important; background: #e8eef6 !important; color: #23405f !important; padding: 6px 8px !important; font-size: 11px !important; }
.ms-day-table td { padding: 6px 8px !important; border-bottom: 1px solid #e7edf5 !important; }
@media (max-width: 980px) {
  .ms-report-grid { grid-template-columns: 1fr !important; }
}

/* ===== KASA HATA UYARISI: sadece dıt sesi değil, ekranda büyük uyarı ===== */
.ms-error-backdrop { position: fixed !important; inset: 0 !important; background: rgba(8, 20, 35, .55) !important; display: flex !important; align-items: center !important; justify-content: center !important; z-index: 9000 !important; }
.ms-error-alert { background: #fff !important; border-radius: 16px !important; border-top: 6px solid #c0392b !important; box-shadow: 0 24px 60px rgba(0,0,0,.35) !important; width: min(560px, 92vw) !important; padding: 22px 24px !important; display: grid !important; grid-template-columns: 56px 1fr !important; gap: 16px 18px !important; align-items: start !important; }
.ms-error-icon { width: 56px !important; height: 56px !important; border-radius: 50% !important; background: #fdecea !important; color: #c0392b !important; font-size: 32px !important; font-weight: 900 !important; display: flex !important; align-items: center !important; justify-content: center !important; }
.ms-error-body strong { display: block !important; font-size: 15px !important; letter-spacing: .6px !important; color: #c0392b !important; margin-bottom: 6px !important; }
.ms-error-body p { margin: 0 !important; font-size: 16px !important; line-height: 1.45 !important; color: #1d2f45 !important; }
.ms-error-close { grid-column: 1 / -1 !important; justify-self: end !important; background: #c0392b !important; color: #fff !important; border: none !important; border-radius: 10px !important; padding: 12px 34px !important; font-size: 15px !important; font-weight: 800 !important; cursor: pointer !important; }
.ms-error-close:hover { background: #a5301f !important; }

/* ===== CARİ HESAP: hangi satışta ne aldığı ===== */
.ms-ledger-row { cursor: pointer !important; }
.ms-ledger-row:hover td { background: #eef4fb !important; }
.ms-ledger-row.open td { background: #e4eefa !important; }
.ms-ledger-toggle { display: inline-block !important; margin-left: 10px !important; font-size: 11px !important; font-weight: 700 !important; color: #2f6fb0 !important; white-space: nowrap !important; }
.ms-ledger-detail-row > td { background: #f7fafd !important; padding: 10px 12px !important; }
.ms-ledger-lines-wrap { border: 1px solid #dbe6f2 !important; border-radius: 10px !important; overflow: hidden !important; background: #fff !important; }
.ms-ledger-lines { width: 100% !important; border-collapse: collapse !important; font-size: 12px !important; }
.ms-ledger-lines th { background: #e8eef6 !important; color: #23405f !important; text-align: left !important; padding: 6px 10px !important; font-size: 11px !important; text-transform: uppercase !important; letter-spacing: .3px !important; }
.ms-ledger-lines td { padding: 6px 10px !important; border-bottom: 1px solid #eef3f8 !important; }
.ms-ledger-lines tbody tr:nth-child(odd) td { background: #f9fbfe !important; }
.ms-ledger-lines-foot { display: flex !important; justify-content: space-between !important; align-items: center !important; padding: 8px 10px !important; background: #f2f6fb !important; font-size: 12px !important; color: #23405f !important; }
.ms-ledger-lines-info { margin: 6px 0 !important; font-size: 12px !important; color: #62748c !important; }

/* ===== İŞLEM GEÇMİŞİ + RAPORLAR: tek bölüm, iki net alt sekme ===== */
.ms-history-report-tabs { display: grid !important; grid-template-columns: repeat(2, minmax(0, 220px)) !important; gap: 8px !important; width: fit-content !important; padding: 5px !important; margin: 0 0 12px !important; border: 1px solid #d9e5f1 !important; border-radius: 13px !important; background: #eef4fa !important; }
.ms-history-report-tabs a { display: flex !important; min-height: 42px !important; align-items: center !important; justify-content: center !important; padding: 8px 20px !important; border-radius: 9px !important; color: #36536f !important; font-size: 14px !important; font-weight: 800 !important; text-decoration: none !important; }
.ms-history-report-tabs a:hover { background: #e1ebf6 !important; color: #123a61 !important; }
.ms-history-report-tabs a.active { color: #fff !important; background: linear-gradient(135deg, #07549a, #087bc1) !important; box-shadow: 0 4px 12px rgba(7,84,154,.22) !important; }
@media (max-width: 700px) { .ms-history-report-tabs { width: 100% !important; grid-template-columns: 1fr 1fr !important; } }

/* ===== ALIŞ FATURASI DETAY / DÜZENLE / YAZDIR ===== */
.ms-purchase-detail-modal { width: min(1280px, 96vw) !important; max-height: 94vh !important; }
.ms-purchase-detail-modal .ms-modal-body { overflow: auto !important; }
.ms-pd-head-grid { display: grid !important; grid-template-columns: 1.5fr 1fr 1fr .7fr !important; gap: 12px !important; margin-bottom: 14px !important; }
.ms-pd-head-grid label { display: flex !important; flex-direction: column !important; gap: 5px !important; color: #61738a !important; font-size: 11px !important; font-weight: 800 !important; text-transform: uppercase !important; }
.ms-pd-head-grid input,.ms-pd-head-grid select { min-height: 40px !important; border: 1px solid #cbd9e7 !important; border-radius: 8px !important; background: #fff !important; color: #172d46 !important; padding: 7px 10px !important; font-size: 14px !important; font-weight: 700 !important; }
.ms-pd-head-grid .badge { width: fit-content !important; margin-top: 8px !important; }
.ms-pd-table-wrap { overflow: auto !important; border: 1px solid #cfdbe8 !important; border-radius: 9px !important; max-height: 48vh !important; }
.ms-pd-table { width: 100% !important; border-collapse: collapse !important; font-size: 13px !important; }
.ms-pd-table th { position: sticky !important; top: 0 !important; z-index: 1 !important; background: #e7edf4 !important; color: #29425e !important; padding: 9px 10px !important; text-align: left !important; white-space: nowrap !important; }
.ms-pd-table td { border-bottom: 1px solid #dce5ee !important; padding: 7px 10px !important; white-space: nowrap !important; }
.ms-pd-table tbody tr:nth-child(even) td { background: #f5f8fb !important; }
.ms-pd-table input { width: 92px !important; min-height: 34px !important; border: 1px solid #bdccdb !important; border-radius: 6px !important; padding: 5px 7px !important; text-align: right !important; font-weight: 700 !important; }
.ms-pd-table input:disabled,.ms-pd-head-grid input:disabled,.ms-pd-head-grid select:disabled { opacity: 1 !important; color: #293f56 !important; background: #eef2f6 !important; }
.ms-pd-summary { display: flex !important; justify-content: flex-end !important; align-items: center !important; gap: 20px !important; padding: 13px 4px 6px !important; color: #536981 !important; }
.ms-pd-summary .grand { color: #0e4f86 !important; font-size: 17px !important; }
.ms-pd-actions { display: flex !important; justify-content: flex-end !important; gap: 8px !important; margin-top: 12px !important; }
@media (max-width: 900px) { .ms-pd-head-grid { grid-template-columns: 1fr 1fr !important; } }
@media print { body * { visibility: hidden !important; } .ms-purchase-detail-backdrop,.ms-purchase-detail-backdrop * { visibility: visible !important; } .ms-purchase-detail-backdrop { position: absolute !important; inset: 0 !important; background: #fff !important; } .ms-purchase-detail-modal { width: 100% !important; max-height: none !important; box-shadow: none !important; border: 0 !important; } .ms-purchase-detail-modal .ms-modal-body,.ms-pd-table-wrap { overflow: visible !important; max-height: none !important; } .ms-pd-actions,.ms-modal-close { display: none !important; } }

/* ===== SATIŞTA YAZIYLA ÜRÜN ARAMA: seçilebilir fiyatlı liste ===== */
.pos-input-wrap { position: relative !important; }
.ms-sale-search-results { position: absolute !important; top: calc(100% + 6px) !important; left: 0 !important; z-index: 8500 !important; width: min(620px, 72vw) !important; max-height: 420px !important; overflow: auto !important; padding: 6px !important; border: 1px solid #bfcfe0 !important; border-radius: 12px !important; background: #fff !important; box-shadow: 0 18px 45px rgba(12,35,61,.28) !important; }
.ms-sale-search-results button { width: 100% !important; min-height: 58px !important; display: flex !important; align-items: center !important; justify-content: space-between !important; gap: 20px !important; border: 0 !important; border-bottom: 1px solid #e4ebf2 !important; border-radius: 7px !important; padding: 8px 12px !important; background: #fff !important; color: #172d46 !important; text-align: left !important; }
.ms-sale-search-results button:hover,.ms-sale-search-results button:focus { background: #eaf4ff !important; outline: 2px solid #58a1e5 !important; }
.ms-sale-search-results span { min-width: 0 !important; display: flex !important; flex-direction: column !important; gap: 3px !important; }
.ms-sale-search-results strong { overflow: hidden !important; text-overflow: ellipsis !important; white-space: nowrap !important; font-size: 14px !important; }
.ms-sale-search-results small { color: #718299 !important; font-size: 11px !important; font-weight: 600 !important; }
.ms-sale-search-results b { flex: none !important; color: #075b9b !important; font-size: 17px !important; text-align: right !important; }
.ms-shell .pos-command-bar { position: relative !important; z-index: 5000 !important; overflow: visible !important; }
.ms-shell .pos-search-cluster,.ms-shell .pos-input-wrap { position: relative !important; z-index: 5001 !important; overflow: visible !important; }
.ms-shell .pos-fintech-board { position: relative !important; z-index: 1 !important; }
.ms-sale-search-loading { padding: 14px 12px !important; border-radius: 7px !important; background: #eef6ff !important; color: #075b9b !important; font-size: 13px !important; font-weight: 800 !important; }

/* Alış faturası ayrıntısı masaüstünde gerçek tam ekran çalışma alanı */
.ms-purchase-detail-backdrop { position: fixed !important; inset: 0 !important; width: 100vw !important; height: 100vh !important; padding: 0 !important; align-items: stretch !important; justify-content: stretch !important; background: #edf3f9 !important; }
.ms-purchase-detail-modal { position: fixed !important; inset: 0 !important; width: 100vw !important; height: 100vh !important; max-width: none !important; max-height: none !important; margin: 0 !important; border: 0 !important; border-radius: 0 !important; box-shadow: none !important; }
.ms-purchase-detail-modal .ms-modal-body { min-height: 0 !important; display: flex !important; flex-direction: column !important; }
.ms-purchase-detail-modal .ms-pd-table-wrap { flex: 1 1 auto !important; max-height: none !important; min-height: 260px !important; }
.ms-pd-product-search { position: relative !important; display: grid !important; grid-template-columns: 1fr auto !important; gap: 8px !important; margin-bottom: 10px !important; }
.ms-pd-product-search > input { min-height: 42px !important; border: 1px solid #bfcfe0 !important; border-radius: 8px !important; padding: 8px 12px !important; font-size: 14px !important; }
.ms-pd-product-results { position: absolute !important; top: 48px !important; left: 0 !important; right: 0 !important; z-index: 10 !important; max-height: 300px !important; overflow: auto !important; padding: 5px !important; border: 1px solid #bdccdb !important; border-radius: 9px !important; background: #fff !important; box-shadow: 0 14px 30px rgba(13,42,71,.24) !important; }
.ms-pd-product-results button { width: 100% !important; display: flex !important; justify-content: space-between !important; align-items: center !important; border: 0 !important; border-bottom: 1px solid #e2e9f0 !important; background: #fff !important; color: #20374f !important; padding: 8px 10px !important; text-align: left !important; }
.ms-pd-product-results button:hover { background: #eaf4ff !important; }
.ms-pd-product-results span { display: flex !important; flex-direction: column !important; }
.ms-pd-product-results small { color: #728399 !important; }
.ms-pd-product-results b { color: #0872b9 !important; }
.ms-pi-results button.selected,.ms-pd-product-results button.selected { border-color: #86d3b8 !important; background: #eafaf4 !important; color: #087a57 !important; opacity: 1 !important; }
.ms-pd-product-results .ms-pd-results-done { position: sticky !important; bottom: 0 !important; justify-content: center !important; border: 0 !important; background: #087f6f !important; color: #fff !important; font-weight: 800 !important; }
.ms-pd-delete { min-height: 32px !important; padding: 5px 12px !important; border: 1px solid #efb7b2 !important; border-radius: 6px !important; background: #fff2f1 !important; color: #b5261b !important; font-weight: 800 !important; }

/* ===== ALIŞ FATURASI: modal değil, gerçek tam ekran çalışma sayfası ===== */
html body #root .ms-purchase-detail-page-shell { position: fixed !important; inset: 0 !important; z-index: 10000 !important; display: block !important; width: 100vw !important; height: 100vh !important; margin: 0 !important; padding: 0 !important; overflow: hidden !important; background: #eef3f8 !important; }
html body #root .ms-purchase-detail-page { position: absolute !important; inset: 0 !important; display: flex !important; flex-direction: column !important; width: 100% !important; height: 100% !important; max-width: none !important; max-height: none !important; margin: 0 !important; padding: 0 !important; overflow: hidden !important; border: 0 !important; border-radius: 0 !important; box-shadow: none !important; background: #fff !important; }
.ms-purchase-detail-page > .ms-modal-head { flex: 0 0 auto !important; min-height: 94px !important; padding: 18px 28px !important; }
.ms-purchase-detail-page > .ms-modal-body { flex: 1 1 auto !important; min-width: 0 !important; min-height: 0 !important; width: 100% !important; padding: 16px 24px 14px !important; overflow: hidden !important; display: flex !important; flex-direction: column !important; }
.ms-purchase-detail-page .ms-pd-head-grid { flex: 0 0 auto !important; grid-template-columns: minmax(260px, 1.5fr) minmax(210px, 1fr) minmax(180px, .8fr) minmax(130px, .55fr) !important; }
.ms-purchase-detail-page .ms-pd-product-search { flex: 0 0 auto !important; }
.ms-purchase-detail-page .ms-pd-table-wrap { flex: 1 1 auto !important; width: 100% !important; max-width: none !important; max-height: none !important; min-height: 180px !important; overflow: auto !important; }
.ms-purchase-detail-page .ms-pd-table { min-width: 1040px !important; table-layout: auto !important; }
.ms-purchase-detail-page .ms-pd-summary,.ms-purchase-detail-page .ms-pd-actions { flex: 0 0 auto !important; }
@media (max-width: 900px) { .ms-purchase-detail-page > .ms-modal-head { min-height: 78px !important; padding: 12px 16px !important; } .ms-purchase-detail-page > .ms-modal-body { padding: 10px 12px !important; } .ms-purchase-detail-page .ms-pd-head-grid { grid-template-columns: 1fr 1fr !important; } }
@media print { html body #root .ms-purchase-detail-page-shell { position: absolute !important; height: auto !important; overflow: visible !important; } .ms-purchase-detail-page { position: static !important; height: auto !important; overflow: visible !important; } }

/* ===== SATIŞ EKRANI: üst alanları incelt, listeye daha fazla satır bırak ===== */
@media screen and (min-width: 821px) {
  .ms-shell { grid-template-rows: 52px minmax(0, 1fr) 68px !important; }
  .ms-shell .ms-titlebar { min-height: 52px !important; padding: 0 14px !important; }
  .ms-shell .ms-titlebar-brand { gap: 9px !important; }
  .ms-shell .ms-titlebar-logo { width: 102px !important; height: 30px !important; }
  .ms-shell .ms-titlebar-logo img { max-height: 24px !important; }
  .ms-shell .ms-titlebar-title { font-size: 17px !important; }
  .ms-shell .ms-titlebar-meta { gap: 13px !important; }
  .ms-shell .ms-meta-chip { gap: 6px !important; font-size: 12px !important; }
  .ms-shell .ms-meta-chip svg { width: 16px !important; height: 16px !important; }
  .ms-shell .ms-user-chip { gap: 7px !important; padding-left: 12px !important; }
  .ms-shell .content-inner { padding: 8px 10px !important; }
  .ms-shell .pos-page.fintech-pos { gap: 6px !important; }
  .ms-shell .pos-command-bar { height: 52px !important; min-height: 52px !important; gap: 7px !important; }
  .ms-shell .pos-search-cluster { gap: 7px !important; min-height: 52px !important; }
  .ms-shell .pos-input-wrap { height: 52px !important; min-height: 52px !important; padding: 0 13px !important; border-radius: 10px !important; }
  .ms-shell .pos-barcode-input { min-height: 48px !important; font-size: 14px !important; }
  .ms-shell .pos-action-button { height: 52px !important; min-height: 52px !important; padding: 3px !important; border-radius: 10px !important; }
  .ms-shell .pos-action-button svg { width: 17px !important; height: 17px !important; }
  .ms-shell .pos-action-button span { font-size: 11px !important; line-height: 1 !important; }
  .ms-shell .pos-action-button .ms-key { font-size: 8.5px !important; line-height: 1 !important; }
  .ms-sale-search-results { top: calc(100% + 4px) !important; }
}
