/* Akmaz Platform v1.0 — landing / admin base */

:root {
  --bg: #f4f6f9;
  --surface: #ffffff;
  --text: #1a1d26;
  --muted: #5c6478;
  --border: #e2e6ef;
  --accent: #2563eb;
  --accent-hover: #1d4ed8;
  --radius: 12px;
  --shadow: 0 8px 30px rgba(26, 29, 38, 0.08);
  --font: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

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

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.5;
  color: var(--text);
  background: var(--bg);
}

.landing {
  max-width: 720px;
  margin: 0 auto;
  padding: 48px 20px 32px;
}

.landing__eyebrow {
  margin: 0 0 8px;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
}

.landing__title {
  margin: 0 0 12px;
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 700;
  line-height: 1.2;
}

.landing__lead {
  margin: 0;
  color: var(--muted);
  max-width: 52ch;
}

.landing__nav {
  display: grid;
  gap: 16px;
  margin-top: 32px;
}

@media (min-width: 560px) {
  .landing__nav {
    grid-template-columns: 1fr 1fr;
  }
}

.card {
  display: block;
  padding: 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}

.card--link:hover,
.card--link:focus-visible {
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 12px 36px rgba(37, 99, 235, 0.12);
  outline: none;
}

.card__label {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
  margin-bottom: 6px;
}

.card__title {
  display: block;
  font-size: 1.25rem;
  margin-bottom: 6px;
}

.card__desc {
  display: block;
  font-size: 0.875rem;
  color: var(--muted);
}

.landing__footer {
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  font-size: 0.875rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.text-link {
  color: var(--accent);
  text-decoration: none;
  font-weight: 500;
}

.text-link:hover,
.text-link:focus-visible {
  color: var(--accent-hover);
  text-decoration: underline;
}

.muted {
  color: var(--muted);
}

/* Auth / form */

.auth-form {
  margin-top: 32px;
}

.form-group {
  margin-bottom: 16px;
}

.form-group:last-of-type {
  margin-bottom: 20px;
}

.form-label {
  display: block;
  margin-bottom: 6px;
  font-size: 0.875rem;
  font-weight: 600;
}

.form-input {
  display: block;
  width: 100%;
  padding: 10px 12px;
  font: inherit;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.form-input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.form-btn {
  display: block;
  width: 100%;
  padding: 11px 16px;
  font: inherit;
  font-weight: 600;
  color: #fff;
  background: var(--accent);
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.15s ease;
}

.form-btn:hover,
.form-btn:focus-visible {
  background: var(--accent-hover);
  outline: none;
}

.form-error {
  margin: 0 0 16px;
  padding: 10px 12px;
  font-size: 0.875rem;
  color: #b91c1c;
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: 8px;
}

.form-error__list {
  margin: 0;
  padding-left: 1.25rem;
}

.form-success {
  margin: 0 0 16px;
  padding: 10px 12px;
  font-size: 0.875rem;
  color: #166534;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: 8px;
}

.form-hint {
  margin: 0 0 16px;
  font-size: 0.875rem;
}

.landing--wide {
  max-width: 640px;
}

.form-fieldset {
  margin: 0 0 24px;
  padding: 0;
  border: none;
}

.form-legend {
  display: block;
  width: 100%;
  margin-bottom: 12px;
  padding-bottom: 8px;
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
  border-bottom: 1px solid var(--border);
}

.form-input--file {
  padding: 8px;
  cursor: pointer;
}

.app-summary {
  margin-top: 32px;
}

.app-summary__title {
  margin: 0 0 12px;
  font-size: 1rem;
}

.app-summary__list {
  margin: 0;
  display: grid;
  gap: 10px;
}

.app-summary__list div {
  display: grid;
  gap: 2px;
}

.app-summary__list dt {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
}

.app-summary__list dd {
  margin: 0;
}

.doc-form {
  margin-top: 16px;
}

.doc-upload {
  margin-bottom: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
}

.doc-upload:last-of-type {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

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

.doc-upload__badge {
  font-size: 0.75rem;
  font-weight: 600;
  color: #166534;
  background: #dcfce7;
  padding: 2px 8px;
  border-radius: 999px;
}

.doc-upload__meta {
  margin: 0 0 8px;
  font-size: 0.8125rem;
}

/* Admin tables / actions */

.admin-table-wrap {
  margin-top: 32px;
}

.admin-table-scroll {
  overflow-x: auto;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}

.admin-table th,
.admin-table td {
  padding: 10px 12px;
  text-align: left;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}

.admin-table th {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
}

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

.status-badge {
  display: inline-block;
  padding: 2px 8px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 999px;
}

.status-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.status-actions form {
  flex: 1 1 140px;
}

.form-btn--secondary {
  background: #475569;
}

.form-btn--secondary:hover,
.form-btn--secondary:focus-visible {
  background: #334155;
}

.form-btn--success {
  background: #15803d;
}

.form-btn--success:hover,
.form-btn--success:focus-visible {
  background: #166534;
}

.form-btn--danger {
  background: #b91c1c;
}

.form-btn--danger:hover,
.form-btn--danger:focus-visible {
  background: #991b1b;
}

.form-btn--inline {
  display: inline-block;
  width: auto;
  padding: 9px 16px;
  text-decoration: none;
  text-align: center;
}

/* Panel shell */

.panel-shell {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 24px;
  max-width: 1100px;
  margin: 0 auto;
  padding: 32px 20px;
}

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

.panel-sidebar {
  min-width: 0;
}

.panel-content {
  min-width: 0;
}

.panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}

.panel-header__title {
  margin: 0;
  font-size: clamp(1.5rem, 3vw, 2rem);
}

.panel-settings-nav {
  display: grid;
  gap: 8px;
  padding: 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.panel-settings-nav__eyebrow {
  margin: 0 0 4px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--muted);
}

.panel-settings-nav__link {
  display: block;
  padding: 10px 12px;
  border-radius: 8px;
  color: var(--text);
  text-decoration: none;
  font-weight: 500;
}

.panel-settings-nav__link:hover,
.panel-settings-nav__link:focus-visible {
  background: var(--bg);
  outline: none;
}

.panel-settings-nav__link.is-active {
  color: var(--accent);
  background: rgba(37, 99, 235, 0.08);
}

.panel-settings-subnav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 20px;
}

.panel-settings-subnav__link {
  display: inline-flex;
  align-items: center;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-muted);
  text-decoration: none;
  background: var(--surface);
  border: 1px solid var(--border);
}

.panel-settings-subnav__link.is-active {
  color: var(--accent);
  border-color: rgba(37, 99, 235, 0.35);
  background: rgba(37, 99, 235, 0.08);
}

.doc-print-settings-form__rows {
  display: grid;
  gap: 20px;
}

.doc-print-settings-row {
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
}

.doc-print-settings-row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.doc-print-settings-row__grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.doc-print-settings-row__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}

.doc-print-settings-row__head .print-agent-settings__title {
  margin: 0;
}

.doc-print-test-status {
  min-height: 1.2em;
  margin: 0 0 10px;
}

.doc-print-paper-meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.doc-print-paper-size {
  font-size: 1rem;
  color: var(--text);
}

.doc-print-settings-row__methods {
  border: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.doc-print-settings-row__method {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
}

.doc-print-settings-form__note {
  margin-top: 16px;
}

.order-ops-print-btn--secondary {
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border);
}

.order-ops-print-btn--agent {
  margin-top: 4px;
}

.row-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.row-actions__form {
  margin: 0;
}

.text-btn {
  padding: 0;
  border: none;
  background: none;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  text-decoration: underline;
}

.text-btn--danger {
  color: #b91c1c;
}

.text-btn--success {
  color: #15803d;
}

.panel-shell--single {
  grid-template-columns: 1fr;
  max-width: 900px;
}

.panel-main-nav {
  display: none !important;
}

body.erp-layout-body .page-content {
  display: flex;
  flex-direction: column;
  gap: 20px;
  min-width: 0;
}

body.erp-layout-body .panel-header {
  margin-bottom: 0;
}

body.erp-layout-body .panel-header__title {
  font-size: 1.05rem;
}

.panel-main-nav__link {
  display: inline-block;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.875rem;
}

.panel-main-nav__link:hover,
.panel-main-nav__link:focus-visible {
  border-color: var(--accent);
  outline: none;
}

.panel-main-nav__link.is-active {
  color: #fff;
  background: var(--accent);
  border-color: var(--accent);
}

.package-grid {
  display: grid;
  gap: 16px;
  margin-top: 8px;
}

@media (min-width: 760px) {
  .package-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.package-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.package-card__price {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 700;
}

textarea.form-input {
  resize: vertical;
  min-height: 110px;
}

.stock-subnav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}

.stock-subnav__link {
  display: inline-block;
  padding: 7px 12px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  text-decoration: none;
  font-size: 0.8125rem;
  font-weight: 600;
}

.stock-subnav__link:hover,
.stock-subnav__link:focus-visible {
  border-color: var(--accent);
  outline: none;
}

.stock-subnav__link.is-active {
  color: #fff;
  background: var(--accent);
  border-color: var(--accent);
}

/* Orders */

.order-detail__heading {
  margin: 0 0 16px;
  font-size: 1.125rem;
}

.order-detail__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
  margin: 0;
}

.order-detail__grid dt {
  margin: 0 0 4px;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--muted);
}

.order-detail__grid dd {
  margin: 0;
  font-weight: 500;
}

.order-status {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.8125rem;
  font-weight: 600;
  background: #e2e8f0;
  color: #334155;
}

.order-status--draft { background: #e2e8f0; color: #475569; }
.order-status--approved { background: #dbeafe; color: #1d4ed8; }
.order-status--preparing { background: #fef3c7; color: #b45309; }
.order-status--packed { background: #ede9fe; color: #6d28d9; }
.order-status--shipped { background: #cffafe; color: #0e7490; }
.order-status--completed { background: #dcfce7; color: #15803d; }
.order-status--cancelled { background: #fee2e2; color: #b91c1c; }
.order-status--new { background: #dbeafe; color: #1d4ed8; }
.order-status--delivered { background: #dcfce7; color: #15803d; }
.order-status--returned { background: #ffedd5; color: #c2410c; }

.badge-order-status,
.badge-order-invoice,
.badge-order-shipment,
.badge-source {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  white-space: nowrap;
}

.badge-source-manual { background: #f1f5f9; color: #475569; }
.badge-source-trendyol { background: #ffedd5; color: #c2410c; }
.badge-source-hepsiburada { background: #fee2e2; color: #b91c1c; }
.badge-source-n11 { background: #ede9fe; color: #6d28d9; }
.badge-source-amazon { background: #e2e8f0; color: #0f172a; }
.badge-source-woocommerce { background: #dcfce7; color: #15803d; }
.badge-source-shopify { background: #dbeafe; color: #1d4ed8; }
.badge-source-marketplace { background: #e0e7ff; color: #4338ca; }

.badge-order-status--draft { background: #e2e8f0; color: #475569; }
.badge-order-status--new,
.badge-order-status--approved { background: #dbeafe; color: #1d4ed8; }
.badge-order-status--preparing { background: #fef3c7; color: #b45309; }
.badge-order-status--packed { background: #ffedd5; color: #c2410c; }
.badge-order-status--shipped { background: #ede9fe; color: #6d28d9; }
.badge-order-status--completed,
.badge-order-status--delivered { background: #dcfce7; color: #15803d; }
.badge-order-status--returned { background: #ffedd5; color: #c2410c; }
.badge-order-status--cancelled { background: #fee2e2; color: #b91c1c; }

.badge-platform-status {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.badge-platform-status--unknown { background: #f1f5f9; color: #64748b; }
.badge-platform-status--created,
.badge-platform-status--awaiting,
.badge-platform-status--new { background: #e0f2fe; color: #0369a1; }
.badge-platform-status--picking,
.badge-platform-status--inpicking,
.badge-platform-status--processing,
.badge-platform-status--accepted { background: #fef3c7; color: #b45309; }
.badge-platform-status--invoiced,
.badge-platform-status--readytoship,
.badge-platform-status--ready,
.badge-platform-status--packed { background: #ffedd5; color: #c2410c; }
.badge-platform-status--shipped,
.badge-platform-status--incargo { background: #ede9fe; color: #6d28d9; }
.badge-platform-status--delivered { background: #dcfce7; color: #15803d; }
.badge-platform-status--cancelled,
.badge-platform-status--returned,
.badge-platform-status--undeliveredandreturned { background: #fee2e2; color: #b91c1c; }

.badge-order-invoice--none,
.badge-order-invoice--not_invoiced { background: #f1f5f9; color: #64748b; }
.badge-order-invoice--draft { background: #fef3c7; color: #b45309; }
.badge-order-invoice--issued { background: #dbeafe; color: #1d4ed8; }
.badge-order-invoice--einvoice_pending { background: #fef3c7; color: #b45309; }
.badge-order-invoice--einvoice_sent { background: #dcfce7; color: #15803d; }
.badge-order-invoice--cancelled,
.badge-order-invoice--other { background: #fee2e2; color: #b91c1c; }
.badge-order-invoice--external { background: #ede9fe; color: #6d28d9; }
.badge-order-invoice--external-incomplete { background: #fef3c7; color: #b45309; }

.badge-order-shipment--preparing { background: #fef3c7; color: #b45309; }
.badge-order-shipment--shipped { background: #ede9fe; color: #6d28d9; }
.badge-order-shipment--delivered { background: #dcfce7; color: #15803d; }

.order-no-cell,
.order-cargo-cell {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 120px;
}

.order-cargo-cell .badge-order-shipment {
  align-self: flex-start;
}

.icon-actions__form {
  display: inline-flex;
  margin: 0;
  padding: 0;
}

.icon-actions__form button {
  margin: 0;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
  font: inherit;
}

.icon-btn-order-invoice-ready {
  color: #1d4ed8;
  background: #eff6ff;
  border-color: #bfdbfe;
}

.icon-btn-order-invoice-ready:hover,
.icon-btn-order-invoice-ready:focus-visible {
  color: #1e3a8a;
  background: #dbeafe;
}

.icon-btn-order-invoice-done {
  color: #15803d;
  background: #f0fdf4;
  border-color: #bbf7d0;
}

.icon-btn-order-invoice-done:hover,
.icon-btn-order-invoice-done:focus-visible {
  color: #166534;
  background: #dcfce7;
}

.order-totals__list {
  margin: 0;
}

.order-totals__row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
}

.order-totals__row:last-child {
  border-bottom: none;
}

.order-totals__row dt,
.order-totals__row dd {
  margin: 0;
}

.order-totals__row--grand {
  padding-top: 12px;
  font-size: 1.125rem;
  font-weight: 700;
}

.order-actions__buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.order-actions__buttons form {
  margin: 0;
}

/* Current accounts */

.balance-positive {
  color: #b45309;
  font-weight: 600;
}

.balance-negative {
  color: #15803d;
  font-weight: 600;
}

.balance-zero {
  color: var(--muted);
}

.current-balance-display {
  font-size: 1.125rem;
  font-weight: 700;
  margin: 0;
}

.current-address {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

.current-address dt {
  margin: 0 0 4px;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--muted);
}

.current-address dd {
  margin: 0;
}

.form-checkbox {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
  cursor: pointer;
}

/* Shipping */

.shipping-summary p {
  margin: 0 0 8px;
}

.shipping-summary p:last-child {
  margin-bottom: 0;
}

.order-shipping .order-detail__grid dd:last-child {
  font-weight: 500;
}

.shipping-api-notice {
  margin-bottom: 16px;
  padding: 14px 16px;
  border-left: 4px solid var(--accent);
  background: rgba(37, 99, 235, 0.06);
}

/* Invoices */

.invoice-status {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.8125rem;
  font-weight: 600;
  background: #e2e8f0;
  color: #334155;
}

.invoice-status--draft { background: #e2e8f0; color: #475569; }
.invoice-status--issued { background: #dbeafe; color: #1d4ed8; }
.invoice-status--sent { background: #dcfce7; color: #15803d; }
.invoice-status--cancelled { background: #fee2e2; color: #b91c1c; }

.invoice-api-notice {
  margin: 0 0 12px;
}

.einvoice-status {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.8125rem;
  font-weight: 600;
  background: #e2e8f0;
  color: #334155;
}

.einvoice-status--pending { background: #fef3c7; color: #b45309; }
.einvoice-status--processing { background: #dbeafe; color: #1d4ed8; }
.einvoice-status--sent { background: #dcfce7; color: #15803d; }
.einvoice-status--failed { background: #fee2e2; color: #b91c1c; }
.einvoice-status--cancelled { background: #e2e8f0; color: #64748b; }

.payload-preview {
  margin: 0;
  padding: 12px;
  overflow-x: auto;
  font-size: 0.8125rem;
  line-height: 1.5;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  white-space: pre-wrap;
  word-break: break-word;
}

/* Dashboard */
.panel-shell--dashboard {
  max-width: 1100px;
}

.dashboard-welcome {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 0.875rem;
}

.dashboard-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 12px;
  margin-bottom: 24px;
}

.dashboard-card {
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
}

.dashboard-card--accent {
  border-color: var(--accent);
  background: color-mix(in srgb, var(--accent) 6%, var(--surface));
}

.dashboard-card__label {
  margin: 0 0 6px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
}

.dashboard-card__value {
  margin: 0;
  font-size: 1.375rem;
  font-weight: 700;
  line-height: 1.2;
}

.dashboard-card__value--sm {
  font-size: 1.125rem;
}

.dashboard-card__meta {
  margin: 6px 0 0;
  font-size: 0.8125rem;
  color: var(--muted);
}

.dashboard-sections {
  display: grid;
  gap: 16px;
}

@media (min-width: 900px) {
  .dashboard-sections {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.dashboard-section {
  margin-top: 0;
}

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

.dashboard-section__title {
  margin: 0;
  font-size: 1rem;
}

/* Gelen e-Fatura */
.incoming-status {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
}

.incoming-status--received { background: #dbeafe; color: #1d4ed8; }
.incoming-status--matched { background: #e0e7ff; color: #4338ca; }
.incoming-status--converted { background: #dcfce7; color: #15803d; }
.incoming-status--rejected { background: #fee2e2; color: #b91c1c; }
.incoming-status--archived { background: #e2e8f0; color: #64748b; }

.invoice-type {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
}

.invoice-type--purchase {
  background: #fef3c7;
  color: #b45309;
}

.inline-form {
  display: inline;
}

.row-actions .inline-form {
  margin: 0;
}

/* Erişim engeli */
.no-access-card {
  margin-top: 24px;
  text-align: center;
  padding: 32px 24px;
}

.no-access-card__title {
  margin: 0 0 8px;
  font-size: 1.25rem;
}

.no-access-card .form-btn {
  margin-top: 20px;
}

.role-badge-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.role-badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  background: #e0e7ff;
  color: #3730a3;
}

.role-checkbox-group {
  margin: 0 0 16px;
  padding: 0;
  border: none;
}

.role-checkbox-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 8px 12px;
  margin-top: 8px;
}

.role-checkbox {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9375rem;
}

/* Marketplaces */

.marketplace-api-notice {
  margin-bottom: 16px;
  padding: 14px 16px;
  border-left: 4px solid var(--accent);
  background: rgba(37, 99, 235, 0.06);
}

.worker-status-list {
  margin: 0.5rem 0 0;
  padding-left: 1.1rem;
  font-size: 0.8125rem;
  color: #334155;
}

.worker-status-list li {
  margin-bottom: 0.35rem;
}

.worker-status-list li span {
  font-weight: 600;
  color: #0f172a;
}

.marketplace-subnav {
  margin-bottom: 20px;
}

.marketplace-status {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.8125rem;
  font-weight: 600;
  background: #e2e8f0;
  color: #334155;
}

.marketplace-status--new { background: #dbeafe; color: #1d4ed8; }
.marketplace-status--imported { background: #dcfce7; color: #15803d; }
.marketplace-status--cancelled { background: #fee2e2; color: #b91c1c; }
.marketplace-status--error { background: #fee2e2; color: #b91c1c; }
.marketplace-status--draft { background: #e2e8f0; color: #475569; }
.marketplace-status--active { background: #dcfce7; color: #15803d; }
.marketplace-status--passive { background: #fef3c7; color: #b45309; }
.marketplace-status--job-pending { background: #fef3c7; color: #b45309; }
.marketplace-status--job-processing { background: #dbeafe; color: #1d4ed8; }
.marketplace-status--job-completed { background: #dcfce7; color: #15803d; }
.marketplace-status--job-failed { background: #fee2e2; color: #b91c1c; }

.marketplace-log-level {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.8125rem;
  font-weight: 600;
}

.marketplace-log-level--info { background: #e2e8f0; color: #475569; }
.marketplace-log-level--warning { background: #fef3c7; color: #b45309; }
.marketplace-log-level--error { background: #fee2e2; color: #b91c1c; }

.marketplace-test-notice {
  border-left-color: #059669;
  background: rgba(5, 150, 105, 0.06);
}

.marketplace-test-form__section {
  margin: 0 0 24px;
  padding: 0;
  border: 0;
}

.marketplace-test-form__legend {
  margin: 0 0 16px;
  padding: 0;
  font-size: 1rem;
  font-weight: 700;
}

.marketplace-test-form__row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 16px;
}

.marketplace-test-form__total {
  margin: 8px 0 0;
  font-size: 0.9375rem;
}

.marketplace-mp-status {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.8125rem;
  font-weight: 600;
  background: #e2e8f0;
  color: #334155;
}

.marketplace-mp-status--new { background: #dbeafe; color: #1d4ed8; }
.marketplace-mp-status--preparing { background: #fef3c7; color: #b45309; }
.marketplace-mp-status--shipped { background: #e0e7ff; color: #4338ca; }
.marketplace-mp-status--delivered { background: #dcfce7; color: #15803d; }
.marketplace-mp-status--returned { background: #fce7f3; color: #be185d; }
.marketplace-mp-status--cancelled { background: #fee2e2; color: #b91c1c; }
.marketplace-mp-status--error { background: #fee2e2; color: #991b1b; }
.marketplace-mp-status--unknown { background: #e2e8f0; color: #475569; }

.order-source {
  display: inline-block;
  font-size: 0.875rem;
  font-weight: 600;
}

.order-source--manual { color: #475569; }
.order-source--marketplace { color: #1d4ed8; }

.order-source__external {
  font-size: 0.75rem;
  font-weight: 400;
}

.order-marketplace {
  border-left: 4px solid #2563eb;
}

.marketplace-test-result {
  margin-bottom: 16px;
  padding: 20px;
  border-radius: 10px;
  border: 1px solid var(--border);
}

.marketplace-test-result--success {
  border-left: 4px solid #059669;
  background: rgba(5, 150, 105, 0.08);
}

.marketplace-test-result--failure {
  border-left: 4px solid #dc2626;
  background: rgba(220, 38, 38, 0.06);
}

.marketplace-test-result__title {
  margin: 0 0 8px;
  font-size: 1.25rem;
}

.marketplace-test-result__message {
  margin: 0;
  color: var(--text);
}

.marketplace-credentials-notice {
  margin: 16px 0;
}

/* İşlem geçmişi / aktivite */
.activity-filters {
  margin-bottom: 1.25rem;
}

.activity-filters__grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
}

.activity-filters__actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 1rem;
}

.activity-table__date {
  white-space: nowrap;
}

.activity-table__desc {
  max-width: 320px;
}

.activity-badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
}

.activity-badge--module {
  background: #e0e7ff;
  color: #3730a3;
}

.activity-badge--role {
  background: #f1f5f9;
  color: #475569;
}

.activity-badge--status {
  background: #dcfce7;
  color: #15803d;
}

.activity-badge--status.is-inactive {
  background: #fee2e2;
  color: #b91c1c;
}

.activity-table__user {
  min-width: 160px;
}

.activity-user__name {
  display: block;
  font-weight: 600;
}

.activity-user__roles {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 4px;
}

.activity-user-card__email {
  margin: 4px 0 0;
}

.activity-user-card__roles {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}

.activity-stats {
  margin-bottom: 1.25rem;
}

.activity-user-card {
  margin-bottom: 1.25rem;
}

.activity-user-card__name {
  margin: 0 0 4px;
  font-size: 1.25rem;
}

.activity-user-card__roles {
  margin: 8px 0 0;
  font-size: 0.875rem;
  color: var(--muted, #64748b);
}

.activity-section-title {
  margin: 0 0 1rem;
  font-size: 1rem;
}

.panel-header__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

/* Toplu işlemler & sipariş fatura durumu */
.bulk-actions-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border, #e2e8f0);
}

.bulk-check-col {
  width: 36px;
  text-align: center;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.text-link--button {
  background: none;
  border: none;
  padding: 0;
  font: inherit;
  cursor: pointer;
}

.text-link--danger {
  color: #b91c1c;
}

.text-link--danger:hover,
.text-link--danger:focus-visible {
  color: #991b1b;
}

.order-invoice-flow {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  white-space: nowrap;
}

.order-invoice-flow--not_invoiced {
  background: #f1f5f9;
  color: #64748b;
}

.order-invoice-flow--draft {
  background: #fef3c7;
  color: #b45309;
}

.order-invoice-flow--issued {
  background: #dbeafe;
  color: #1d4ed8;
}

.order-invoice-flow--einvoice_pending {
  background: #e0e7ff;
  color: #4338ca;
}

.order-invoice-flow--einvoice_sent {
  background: #dcfce7;
  color: #15803d;
}

/* ── SaaS page shell (reference layout for ERP modules) ── */

.panel-shell--wide {
  max-width: 1280px;
}

.page-shell {
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding-top: 8px;
}

.page-shell--invoices .filter-card,
.page-shell--invoices .data-card {
  border-radius: 16px;
  box-shadow: 0 4px 24px rgba(15, 23, 42, 0.06);
}

.page-shell--invoices .metric-card {
  position: relative;
  overflow: hidden;
  border-radius: 14px;
  box-shadow: 0 2px 12px rgba(15, 23, 42, 0.05);
}

.page-shell--invoices .metric-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #3b82f6, #6366f1);
  opacity: 0.85;
}

.page-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
}

.page-title-wrap {
  flex: 1 1 280px;
  min-width: 0;
}

.page-eyebrow {
  margin: 0 0 6px;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}

.page-title {
  margin: 0 0 8px;
  font-size: clamp(1.5rem, 3vw, 1.875rem);
  font-weight: 700;
  line-height: 1.2;
  color: var(--text);
}

.page-subtitle {
  margin: 0;
  max-width: 520px;
  font-size: 0.9375rem;
  line-height: 1.55;
  color: var(--muted);
}

.page-head__metrics {
  flex: 0 1 auto;
}

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

.metric-card {
  padding: 14px 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 1px 3px rgba(26, 29, 38, 0.04);
}

.metric-card__label {
  margin: 0 0 4px;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}

.metric-card__value {
  margin: 0;
  font-size: 1.375rem;
  font-weight: 700;
  line-height: 1.2;
  color: var(--text);
}

.metric-card__value--money {
  font-size: 1.125rem;
  font-variant-numeric: tabular-nums;
}

.page-alert {
  padding: 12px 16px;
  font-size: 0.875rem;
  font-weight: 500;
  border-radius: var(--radius);
}

.page-alert--success {
  color: #166534;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
}

.page-alert--error {
  color: #991b1b;
  background: #fef2f2;
  border: 1px solid #fecaca;
}

.filter-card {
  padding: 22px 24px;
  background: var(--surface);
  border: 1px solid rgba(226, 230, 239, 0.9);
  border-radius: 16px;
  box-shadow: 0 4px 24px rgba(15, 23, 42, 0.06);
}

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

.filter-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.filter-field--search {
  grid-column: span 2;
}

.filter-field__label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--muted);
}

.filter-field input,
.filter-field select {
  width: 100%;
  padding: 9px 12px;
  font: inherit;
  font-size: 0.875rem;
  color: var(--text);
  background: #fafbfc;
  border: 1px solid var(--border);
  border-radius: 8px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.filter-field input:focus,
.filter-field select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
  background: var(--surface);
}

.filter-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

.data-card {
  background: var(--surface);
  border: 1px solid rgba(226, 230, 239, 0.9);
  border-radius: 16px;
  box-shadow: 0 4px 24px rgba(15, 23, 42, 0.06);
  overflow: hidden;
}

.data-card__form {
  display: flex;
  flex-direction: column;
}

.bulk-bar {
  display: none;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 20px;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid #e2e8f0;
  position: sticky;
  top: 0;
  z-index: 10;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
}

.bulk-bar.is-visible {
  display: flex;
}

.bulk-bar__info {
  display: flex;
  align-items: center;
  gap: 10px;
}

.bulk-bar__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #6366f1;
  box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.18);
  flex-shrink: 0;
}

.bulk-bar__count {
  margin: 0;
  font-size: 0.875rem;
  font-weight: 700;
  color: #0f172a;
  letter-spacing: -0.01em;
}

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

.bulk-bar__btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  font: inherit;
  font-size: 0.75rem;
  font-weight: 600;
  color: #1e40af;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  border-radius: 999px;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.1s ease;
}

.bulk-bar__btn .action-btn__icon {
  width: 14px;
  height: 14px;
}

.bulk-bar__btn:hover,
.bulk-bar__btn:focus-visible {
  background: #dbeafe;
  border-color: #93c5fd;
}

.bulk-bar__btn--danger {
  color: #b91c1c;
  background: #fef2f2;
  border-color: #fecaca;
}

.bulk-bar__btn--danger:hover,
.bulk-bar__btn--danger:focus-visible {
  background: #fee2e2;
  border-color: #fca5a5;
}

.bulk-bar__btn--ghost {
  color: #64748b;
  background: transparent;
  border-color: #e2e8f0;
}

.bulk-bar__btn--ghost:hover,
.bulk-bar__btn--ghost:focus-visible {
  color: #0f172a;
  background: #f8fafc;
}

.row-action-forms {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.data-card__scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.data-table {
  width: 100%;
  min-width: 1020px;
  border-collapse: collapse;
  font-size: 0.875rem;
}

.data-table th,
.data-table td {
  padding: 16px 18px;
  text-align: left;
  vertical-align: middle;
  border-bottom: 1px solid #eef2f7;
}

.data-table th {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #64748b;
  background: #fafbfd;
  white-space: nowrap;
}

.data-table__row {
  transition: background 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.data-table tbody tr:hover,
.data-table__row:hover {
  background: linear-gradient(90deg, #f8faff 0%, #ffffff 100%);
  box-shadow: inset 3px 0 0 #6366f1;
}

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

.data-table__actions {
  min-width: 16.5rem;
  width: 1%;
  white-space: nowrap;
}

.data-table__amount {
  font-size: 1rem;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -0.02em;
}

.data-table__date {
  white-space: nowrap;
  color: #64748b;
  font-size: 0.8125rem;
}

.data-table__check {
  width: 44px;
  text-align: center;
}

.data-table__check input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: var(--accent);
  cursor: pointer;
}

.data-table__num {
  text-align: right;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.data-table__primary-link {
  font-weight: 800;
  font-size: 0.9375rem;
  color: #312e81;
  text-decoration: none;
  letter-spacing: -0.02em;
}

.data-table__primary-link:hover,
.data-table__primary-link:focus-visible {
  color: #4f46e5;
  text-decoration: none;
}

.data-table__cell-main {
  display: block;
  font-weight: 500;
  color: var(--text);
}

.data-table__cell-sub {
  display: block;
  margin-top: 2px;
  font-size: 0.75rem;
  color: var(--muted);
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 11px;
  font-size: 0.6875rem;
  font-weight: 600;
  line-height: 1.4;
  border-radius: 999px;
  white-space: nowrap;
  border: 1px solid transparent;
}

.badge-pill {
  font-size: 0.6875rem;
}

.badge-info {
  color: #1d4ed8;
  background: #eff6ff;
  border-color: #bfdbfe;
}

.badge-success {
  color: #15803d;
  background: #ecfdf5;
  border-color: #bbf7d0;
}

.badge-success-dark {
  color: #14532d;
  background: #dcfce7;
  border-color: #86efac;
}

.badge-warning {
  color: #a16207;
  background: #fefce8;
  border-color: #fde047;
}

.badge-danger {
  color: #b91c1c;
  background: #fef2f2;
  border-color: #fecaca;
}

.badge-muted {
  color: #475569;
  background: #f8fafc;
  border-color: #e2e8f0;
}

/* Invoice status badges (Fatura) */
.badge-inv-draft {
  color: #64748b;
  background: #f1f5f9;
  border-color: #e2e8f0;
}

.badge-inv-issued {
  color: #15803d;
  background: #ecfdf5;
  border-color: #86efac;
}

.badge-inv-cancelled {
  color: #b91c1c;
  background: #fef2f2;
  border-color: #fca5a5;
}

/* E-Fatura status badges */
.badge-ef-none {
  color: #64748b;
  background: #f8fafc;
  border-color: #e2e8f0;
}

.badge-ef-pending {
  color: #a16207;
  background: #fefce8;
  border-color: #fde047;
}

.badge-ef-sending {
  color: #1d4ed8;
  background: #eff6ff;
  border-color: #93c5fd;
}

.badge-ef-sent {
  color: #166534;
  background: #dcfce7;
  border-color: #4ade80;
}

.badge-ef-error {
  color: #b91c1c;
  background: #fef2f2;
  border-color: #fca5a5;
}

/* Type badges */
.badge-type-sales {
  color: #4338ca;
  background: #eef2ff;
  border-color: #c7d2fe;
}

.badge-type-purchase {
  color: #9a3412;
  background: #fff7ed;
  border-color: #fed7aa;
}

.row-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  align-content: flex-start;
  gap: 5px;
  max-width: 100%;
}

.icon-actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

.icon-btn,
a.icon-btn,
button.icon-btn,
span.icon-btn {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  font: inherit;
  line-height: 1;
  border: 1px solid #e3e8f2;
  background: #ffffff;
  color: #667085;
  text-decoration: none;
  cursor: pointer;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.06);
  transition: all 0.16s ease;
}

.icon-btn svg,
.invoice-action-icon svg,
.icon-actions .icon-btn svg {
  display: block;
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  max-width: 16px;
  max-height: 16px;
}

.icon-btn:hover,
.icon-btn:focus-visible,
a.icon-btn:hover,
a.icon-btn:focus-visible,
button.icon-btn:hover,
button.icon-btn:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.1);
  outline: none;
}

.icon-btn:active,
a.icon-btn:active,
button.icon-btn:active {
  transform: translateY(0);
}

.icon-btn-muted {
  background: #ffffff;
  border-color: #e3e8f2;
  color: #667085;
}

.icon-btn-neutral {
  background: #ffffff;
  border-color: #e3e8f2;
  color: #94a3b8;
}

.icon-btn-view.icon-btn-neutral:hover,
.icon-btn-view.icon-btn-neutral:focus-visible,
.icon-btn-print.icon-btn-neutral:hover,
.icon-btn-print.icon-btn-neutral:focus-visible {
  color: #64748b;
  border-color: #cbd5e1;
  background: #f8fafc;
}

.icon-btn-seen {
  background: #ecfdf3;
  border-color: #b7efc5;
  color: #16a34a;
}

.icon-btn-seen:hover,
.icon-btn-seen:focus-visible {
  background: #dcfce7;
  border-color: #86efac;
  color: #15803d;
}

.icon-btn-printed {
  background: #f4f0ff;
  border-color: #ddd0ff;
  color: #7c3aed;
}

.icon-btn-printed:hover,
.icon-btn-printed:focus-visible {
  background: #ede9fe;
  border-color: #c4b5fd;
  color: #6d28d9;
}

.icon-btn-shipping-active,
.icon-btn-shipping-done {
  background: #eff6ff;
  border-color: #bfdbfe;
  color: #2563eb;
}

.icon-btn-shipping-active:hover,
.icon-btn-shipping-active:focus-visible,
.icon-btn-shipping-done:hover,
.icon-btn-shipping-done:focus-visible {
  background: #dbeafe;
  border-color: #93c5fd;
  color: #1d4ed8;
}

.icon-btn-einvoice-pending {
  background: #fefce8;
  border-color: #fde047;
  color: #ca8a04;
}

.icon-btn-einvoice-pending:hover,
.icon-btn-einvoice-pending:focus-visible {
  background: #fef9c3;
  border-color: #facc15;
  color: #a16207;
}

.icon-btn-einvoice {
  background: #fefce8;
  border-color: #fde047;
  color: #ca8a04;
}

.icon-btn-einvoice:hover,
.icon-btn-einvoice:focus-visible {
  background: #fef9c3;
  border-color: #facc15;
  color: #a16207;
}

.icon-btn-einvoice-waiting {
  background: #fff7e6;
  border-color: #ffd591;
  color: #d97706;
}

.icon-btn-einvoice-processing {
  background: #fff7ed;
  border-color: #fdba74;
  color: #ea580c;
}

.icon-btn-einvoice-sent {
  background: #ecfdf3;
  border-color: #b7efc5;
  color: #16a34a;
}

.icon-btn-einvoice-error {
  background: #fff1f2;
  border-color: #fecdd3;
  color: #e11d48;
}

.icon-btn-einvoice-error:hover,
.icon-btn-einvoice-error:focus-visible {
  background: #ffe4e6;
  border-color: #fda4af;
  color: #be123c;
}

.icon-btn-cancel-einvoice,
.icon-btn-einvoice-cancel {
  background: #fff7ed;
  border-color: #fed7aa;
  color: #ea580c;
}

.icon-btn-cancel-einvoice:hover,
.icon-btn-cancel-einvoice:focus-visible,
.icon-btn-einvoice-cancel:hover,
.icon-btn-einvoice-cancel:focus-visible {
  background: #ffedd5;
  border-color: #fdba74;
  color: #c2410c;
}

.icon-btn[data-tooltip] {
  position: relative;
}

.icon-btn[data-tooltip]::after {
  content: attr(data-tooltip);
  position: fixed;
  top: var(--erp-tt-top, 0);
  left: var(--erp-tt-left, 50%);
  transform: var(--erp-tt-transform, translate(-50%, calc(-100% - 10px)));
  box-sizing: border-box;
  width: max-content;
  max-width: 260px;
  padding: 0.5rem 0.65rem;
  border-radius: 8px;
  background: #0f172a;
  color: #f8fafc;
  font-size: 0.75rem;
  font-weight: 500;
  line-height: 1.35;
  text-align: left;
  white-space: normal;
  word-break: normal;
  overflow-wrap: break-word;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.22);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.15s ease, visibility 0.15s ease;
  z-index: 10950;
}

.icon-btn[data-tooltip]::before {
  content: '';
  position: fixed;
  top: var(--erp-tt-arrow-top, var(--erp-tt-top, 0));
  left: var(--erp-tt-arrow-left, var(--erp-tt-left, 50%));
  transform: translate(-50%, -100%);
  border: 6px solid transparent;
  border-top-color: #0f172a;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.15s ease, visibility 0.15s ease;
  z-index: 10951;
  pointer-events: none;
}

.icon-btn[data-tooltip]:hover::after,
.icon-btn[data-tooltip]:hover::before,
.icon-btn[data-tooltip]:focus-visible::after,
.icon-btn[data-tooltip]:focus-visible::before,
.icon-btn[data-tooltip].erp-tooltip-visible::after,
.icon-btn[data-tooltip].erp-tooltip-visible::before {
  opacity: 1;
  visibility: visible;
}

.icon-btn[data-tooltip].tooltip-left::after {
  text-align: left;
}

/* Floating tooltip (layout sayfaları — kesilme / z-index sorununu önler) */
.erp-floating-tooltip {
  position: fixed;
  z-index: 12050;
  box-sizing: border-box;
  width: max-content;
  max-width: 260px;
  padding: 0.5rem 0.65rem;
  border-radius: 8px;
  background: #0f172a;
  color: #f8fafc;
  font-size: 0.75rem;
  font-weight: 500;
  line-height: 1.35;
  text-align: left;
  white-space: normal;
  word-break: normal;
  overflow-wrap: break-word;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.22);
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.12s ease, visibility 0.12s ease;
}

.erp-floating-tooltip.is-visible {
  opacity: 1;
  visibility: visible;
}

body.erp-layout-body .icon-btn[data-tooltip]::after,
body.erp-layout-body .icon-btn[data-tooltip]::before {
  display: none !important;
  content: none !important;
}

.data-table__actions,
.icon-actions {
  overflow: visible;
}

.data-table__row .data-table__actions {
  position: relative;
  z-index: 1;
}

.data-table__row:hover .data-table__actions {
  z-index: 5;
}

.icon-btn-danger-outline {
  background: #ffffff;
  border-color: #fca5a5;
  color: #ef4444;
}

.icon-btn-danger-outline:hover,
.icon-btn-danger-outline:focus-visible {
  background: #fff1f2;
  border-color: #f87171;
  color: #dc2626;
}

.icon-btn-danger-filled {
  background: #ef4444;
  border-color: #dc2626;
  color: #ffffff;
}

.icon-btn-passive {
  cursor: not-allowed;
  pointer-events: none;
}

.icon-btn-passive-action {
  cursor: default;
  opacity: 1;
}

.icon-btn-passive-action:hover,
.icon-btn-passive-action:focus-visible {
  transform: none;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.06);
}

.icon-btn-invoice-cancelled {
  background: #f8fafc;
  border-color: #e5e7eb;
  color: #cbd5e1;
}

.icon-btn-disabled {
  background: #f8fafc;
  border-color: #e5e7eb;
  color: #c0c7d2;
  opacity: 0.72;
  cursor: not-allowed;
  pointer-events: none;
}

.icon-btn-disabled:hover,
.icon-btn-disabled:focus-visible,
.icon-btn-passive:hover,
.icon-btn-passive:focus-visible {
  transform: none;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.06);
}

.icon-btn.icon-btn-seen {
  background: #ecfdf3 !important;
  border-color: #b7efc5 !important;
  color: #16a34a !important;
}

.icon-btn.icon-btn-printed {
  background: #f4f0ff !important;
  border-color: #ddd0ff !important;
  color: #7c3aed !important;
}

.icon-btn.icon-btn-shipping-active,
.icon-btn.icon-btn-shipping-done {
  background: #eff6ff !important;
  border-color: #bfdbfe !important;
  color: #2563eb !important;
}

.icon-btn.icon-btn-einvoice-pending {
  background: #fefce8 !important;
  border-color: #fde047 !important;
  color: #ca8a04 !important;
}

.icon-btn.icon-btn-einvoice-sent {
  background: #ecfdf3 !important;
  border-color: #b7efc5 !important;
  color: #16a34a !important;
}

.toast-stack {
  position: fixed;
  top: 1rem;
  right: 1rem;
  z-index: 12000;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  max-width: min(22rem, calc(100vw - 2rem));
  pointer-events: none;
}

.toast {
  padding: 0.7rem 1rem;
  border-radius: 10px;
  font-size: 0.875rem;
  line-height: 1.4;
  color: #0f172a;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.14);
  opacity: 0;
  transform: translateY(-6px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

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

.toast-success {
  border-color: #86efac;
  background: #f0fdf4;
  color: #166534;
}

.toast-error {
  border-color: #fecaca;
  background: #fef2f2;
  color: #b91c1c;
}

.toast-warning {
  border-color: #fde68a;
  background: #fffbeb;
  color: #a16207;
}

.icon-btn.is-loading {
  opacity: 0.45;
  pointer-events: none;
  cursor: wait;
}

.erp-sheet {
  position: fixed;
  inset: 0;
  z-index: 11000;
  display: flex;
  align-items: stretch;
  justify-content: flex-end;
}

.erp-sheet[hidden] {
  display: none !important;
}

.erp-sheet__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.45);
  backdrop-filter: blur(2px);
}

.erp-sheet__dialog {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  width: min(920px, 100vw);
  max-width: 100%;
  height: 100%;
  background: #f8fafc;
  box-shadow: -12px 0 40px rgba(15, 23, 42, 0.18);
  animation: erp-sheet-in 0.22s ease;
}

@keyframes erp-sheet-in {
  from {
    transform: translateX(100%);
  }
  to {
    transform: translateX(0);
  }
}

.erp-sheet__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 1rem;
  background: #ffffff;
  border-bottom: 1px solid #e2e8f0;
  flex-shrink: 0;
}

.erp-sheet__title {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 600;
  color: #0f172a;
}

.erp-sheet__close {
  width: 36px;
  height: 36px;
  border: 1px solid #e2e8f0;
  border-radius: 999px;
  background: #ffffff;
  color: #64748b;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.15s ease, color 0.15s ease;
}

.erp-sheet__close:hover,
.erp-sheet__close:focus-visible {
  background: #f1f5f9;
  color: #0f172a;
  outline: none;
}

.erp-sheet__body {
  flex: 1;
  min-height: 0;
  background: #eef2f7;
}

.erp-sheet__frame {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  background: #ffffff;
}

body.erp-sheet-open {
  overflow: hidden;
}

body.erp-embed-page {
  margin: 0;
  background: #f8fafc;
}

body.erp-embed-page .panel-shell--embed {
  min-height: 100vh;
}

body.erp-embed-page .panel-shell--embed .panel-content {
  padding: 1rem 1.25rem 1.5rem;
}

body.erp-embed-page .panel-header {
  margin-bottom: 1rem;
}

body.erp-embed-page.shipping-label-page .print-toolbar,
body.erp-embed-page.invoice-print-page .print-toolbar {
  margin: 0 0 1rem;
  padding: 0.75rem 0;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

body.erp-embed-page.invoice-print-page .print-page {
  margin: 0 auto;
}

@media (max-width: 720px) {
  .erp-sheet__dialog {
    width: 100vw;
  }
}

.order-toast-stack {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 12010;
  display: flex;
  flex-direction: column-reverse;
  align-items: flex-end;
  gap: 0.5rem;
  max-width: min(20rem, calc(100vw - 2rem));
  pointer-events: none;
}

.order-toast {
  position: relative;
  width: 100%;
  padding: 0.65rem 2rem 0.65rem 0.75rem;
  border-radius: 10px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  box-shadow: 0 14px 32px rgba(15, 23, 42, 0.16);
  font-size: 0.8125rem;
  line-height: 1.4;
  color: #334155;
  cursor: pointer;
  pointer-events: auto;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.22s ease, transform 0.22s ease;
}

.order-toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.order-toast:hover {
  border-color: #cbd5e1;
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.18);
}

.order-toast-close {
  position: absolute;
  top: 0.35rem;
  right: 0.35rem;
  width: 1.5rem;
  height: 1.5rem;
  padding: 0;
  border: none;
  border-radius: 6px;
  background: transparent;
  color: #94a3b8;
  font-size: 1.125rem;
  line-height: 1;
  cursor: pointer;
}

.order-toast-close:hover {
  color: #475569;
  background: #f1f5f9;
}

.order-toast__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.5rem;
  margin-bottom: 0.35rem;
}

.order-toast-platform {
  font-size: 0.6875rem;
  padding: 2px 7px;
}

.order-toast__title {
  font-size: 0.8125rem;
  font-weight: 700;
  color: #0f172a;
}

.order-toast__line {
  margin: 0.15rem 0 0;
  font-size: 0.75rem;
  color: #475569;
}

.order-toast__label {
  font-weight: 600;
  color: #64748b;
}

.erp-topbar__sound-btn.is-muted .erp-topbar__sound-on {
  display: none;
}

.erp-topbar__sound-btn.is-muted .erp-topbar__sound-off {
  display: block;
}

.erp-topbar__sound-btn:not(.is-muted) .erp-topbar__sound-off {
  display: none;
}

.page-shell--orders .data-table__row.order-row--new-highlight {
  animation: order-row-highlight 2.5s ease-out;
}

@keyframes order-row-highlight {
  0% {
    background: #fef3c7;
    box-shadow: inset 0 0 0 1px #fcd34d;
  }
  100% {
    background: transparent;
    box-shadow: none;
  }
}

.platform-summary-card--pulse {
  animation: platform-card-pulse 1s ease-out;
}

@keyframes platform-card-pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(59, 91, 219, 0.35);
  }
  100% {
    box-shadow: none;
  }
}

.erp-toast-host {
  position: fixed;
  right: 1rem;
  bottom: 6.5rem;
  z-index: 12000;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  max-width: min(22rem, calc(100vw - 2rem));
  pointer-events: none;
}

.erp-toast {
  padding: 0.75rem 1rem;
  border-radius: 10px;
  font-size: 0.875rem;
  line-height: 1.4;
  color: #0f172a;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.14);
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.erp-toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.erp-toast--success {
  border-color: #86efac;
  background: #f0fdf4;
}

.erp-toast--error {
  border-color: #fecaca;
  background: #fef2f2;
}

.erp-toast--info {
  border-color: #bfdbfe;
  background: #eff6ff;
}

.erp-shortcuts-modal {
  position: fixed;
  inset: 0;
  z-index: 11000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.erp-shortcuts-modal[hidden] {
  display: none;
}

.erp-shortcuts-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.45);
}

.erp-shortcuts-modal__dialog {
  position: relative;
  width: min(22rem, 100%);
  max-height: min(80vh, 28rem);
  overflow: auto;
  background: #fff;
  border: 1px solid var(--border, #e2e8f0);
  border-radius: 12px;
  box-shadow: 0 20px 40px rgba(15, 23, 42, 0.18);
}

.erp-shortcuts-modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 1rem 1.1rem;
  border-bottom: 1px solid var(--border, #e2e8f0);
}

.erp-shortcuts-modal__title {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
  color: #0f172a;
}

.erp-shortcuts-modal__close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border: 1px solid var(--border, #e2e8f0);
  border-radius: 8px;
  background: #fff;
  color: #64748b;
  cursor: pointer;
}

.erp-shortcuts-modal__close:hover,
.erp-shortcuts-modal__close:focus-visible {
  color: #0f172a;
  border-color: #cbd5e1;
  background: #f8fafc;
}

.erp-shortcuts-modal__body {
  padding: 0.85rem 1.1rem 1.1rem;
}

.erp-shortcuts-modal__hint,
.erp-shortcuts-modal__footer {
  margin: 0 0 0.75rem;
  font-size: 0.8125rem;
  color: #64748b;
  line-height: 1.45;
}

.erp-shortcuts-modal__footer {
  margin-top: 0.85rem;
  margin-bottom: 0;
}

.erp-shortcuts-modal__list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.erp-shortcuts-modal__list li {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.875rem;
  color: #334155;
}

.erp-shortcuts-modal__key {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.5rem;
  padding: 0.15rem 0.4rem;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.75rem;
  font-weight: 600;
  color: #0f172a;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
}

.erp-shortcuts-modal__plus {
  color: #94a3b8;
  font-size: 0.75rem;
}

.erp-shortcuts-modal__label {
  margin-left: 0.35rem;
  font-weight: 500;
}

body.erp-shortcuts-open {
  overflow: hidden;
}

.panel-header .icon-actions {
  flex-shrink: 0;
}

.print-toolbar__icons .icon-actions {
  margin-left: auto;
}

.form-btn--einvoice-cancel {
  color: #9a3412;
  background: #fff7ed;
  border-color: #fdba74;
}

.form-btn--einvoice-cancel:hover,
.form-btn--einvoice-cancel:focus-visible {
  color: #7c2d12;
  background: #ffedd5;
  border-color: #fb923c;
}

.form-hint--warning {
  color: #9a3412;
}

.invoice-no-cell {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 120px;
}

.invoice-no-cell .data-table__cell-sub {
  margin-top: 0;
}

.btn-xs,
.action-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 5px 10px;
  font: inherit;
  font-size: 0.6875rem;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  border: 1px solid transparent;
  border-radius: 999px;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease, transform 0.1s ease;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.btn-xs:active,
.action-btn:active {
  transform: scale(0.97);
}

.btn-soft,
.action-btn.btn-soft {
  color: #475569;
  background: #ffffff;
  border-color: #e2e8f0;
}

.btn-soft:hover,
.btn-soft:focus-visible,
.action-btn.btn-soft:hover,
.action-btn.btn-soft:focus-visible {
  color: #0f172a;
  background: #f8fafc;
  border-color: #cbd5e1;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.06);
}

.btn-seen {
  color: #166534;
  background: #f0fdf4;
  border-color: #bbf7d0;
}

.btn-seen:hover,
.btn-seen:focus-visible {
  color: #14532d;
  background: #dcfce7;
  border-color: #86efac;
}

.btn-printed {
  color: #6d28d9;
  background: #f5f3ff;
  border-color: #ddd6fe;
}

.btn-printed:hover,
.btn-printed:focus-visible {
  color: #5b21b6;
  background: #ede9fe;
  border-color: #c4b5fd;
}

.action-btn__check {
  font-size: 0.625rem;
  font-weight: 700;
  line-height: 1;
  opacity: 0.85;
}

.action-btn__icon {
  width: 13px;
  height: 13px;
  flex-shrink: 0;
}

.action-btn span {
  line-height: 1;
}

.btn-primary-soft {
  color: #4338ca;
  background: #eef2ff;
  border-color: #c7d2fe;
}

.btn-primary-soft:hover,
.btn-primary-soft:focus-visible {
  color: #3730a3;
  background: #e0e7ff;
  border-color: #a5b4fc;
}

.btn-danger-soft {
  color: #b91c1c;
  background: #fff5f5;
  border-color: #fecaca;
}

.btn-danger-soft:hover,
.btn-danger-soft:focus-visible {
  color: #991b1b;
  background: #fee2e2;
  border-color: #fca5a5;
}

.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 56px 24px;
  text-align: center;
}

.empty-state__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 80px;
  height: 80px;
  margin-bottom: 16px;
  color: #94a3b8;
  background: #f8fafc;
  border: 1px dashed #e2e8f0;
  border-radius: 16px;
}

.empty-state__title {
  margin: 0 0 8px;
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--text);
}

.empty-state__text {
  margin: 0 0 20px;
  font-size: 0.875rem;
  color: var(--muted);
}

@media (max-width: 1024px) {
  .filter-card__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .filter-field--search {
    grid-column: span 3;
  }
}

@media (max-width: 768px) {
  .page-head {
    flex-direction: column;
  }

  .metric-grid {
    grid-template-columns: 1fr;
    width: 100%;
  }

  .filter-card__grid {
    grid-template-columns: 1fr;
  }

  .filter-field--search {
    grid-column: span 1;
  }

  .bulk-bar {
    flex-direction: column;
    align-items: stretch;
  }

  .bulk-bar__actions {
    justify-content: flex-start;
  }

  .data-table th,
  .data-table td {
    padding: 12px 14px;
  }

  .data-table__actions {
    min-width: 280px;
  }
}

@media (max-width: 480px) {
  .page-shell {
    gap: 16px;
  }

  .filter-card {
    padding: 16px;
  }

  .kpi-card__value {
    font-size: 1.25rem;
  }

  .action-btn span {
    display: none;
  }

  .action-btn {
    padding: 7px;
  }
}

/* ── Invoices page: premium e-commerce ERP ── */

body.invoices-page {
  background: linear-gradient(180deg, #f5f7fb 0%, #eef2f8 100%);
}

body.invoices-page .panel-content {
  padding-bottom: 32px;
}

.invoices-hero {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.invoices-hero__intro {
  max-width: 640px;
}

.invoices-hero .page-title {
  font-size: clamp(1.75rem, 3.5vw, 2.125rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #0f172a;
}

.invoices-hero .page-subtitle {
  font-size: 1rem;
  color: #64748b;
}

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

.kpi-card {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 18px 18px 16px;
  background: #ffffff;
  border: 1px solid rgba(226, 232, 240, 0.95);
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.05);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.kpi-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(15, 23, 42, 0.08);
}

.kpi-card__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  flex-shrink: 0;
}

.kpi-card__icon svg {
  width: 22px;
  height: 22px;
}

.kpi-card--blue .kpi-card__icon {
  color: #4338ca;
  background: #eef2ff;
}

.kpi-card--amber .kpi-card__icon {
  color: #b45309;
  background: #fffbeb;
}

.kpi-card--rose .kpi-card__icon {
  color: #e11d48;
  background: #fff1f2;
}

.kpi-card--violet .kpi-card__icon {
  color: #7c3aed;
  background: #f5f3ff;
}

.kpi-card--green .kpi-card__icon {
  color: #15803d;
  background: #f0fdf4;
}

.kpi-card__label {
  margin: 0 0 4px;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #64748b;
}

.kpi-card__value {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: #0f172a;
}

.kpi-card__value--money {
  font-size: 1.25rem;
  font-variant-numeric: tabular-nums;
}

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

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

  .bulk-bar__btn span {
    display: none;
  }

  .bulk-bar__btn {
    padding: 8px 10px;
  }
}

/* ── FAZ 17: Global panel layout (sidebar + topbar + quickbar) ── */

:root {
  --erp-sidebar-width: 260px;
  --erp-sidebar-collapsed: 76px;
  --erp-topbar-height: 60px;
  --erp-quickbar-height: 56px;
  --erp-sidebar-bg: #0f172a;
  --erp-sidebar-bg-soft: #1e293b;
  --erp-sidebar-text: #cbd5e1;
  --erp-sidebar-text-muted: #94a3b8;
  --erp-sidebar-active: linear-gradient(135deg, #3b82f6 0%, #6366f1 100%);
}

body.erp-layout-body {
  margin: 0;
  background: #f1f5f9;
  color: var(--text);
}

.erp-layout {
  --erp-sidebar-current: var(--erp-sidebar-width);
  display: flex;
  min-height: 100vh;
  background: #f1f5f9;
}

.erp-layout--collapsed {
  --erp-sidebar-current: var(--erp-sidebar-collapsed);
}

.erp-layout__backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.45);
  z-index: 1040;
}

.erp-layout__backdrop[hidden] {
  display: none;
}

/* Sidebar */

.erp-sidebar {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: var(--erp-sidebar-width);
  z-index: 1050;
  display: flex;
  flex-direction: column;
  background: var(--erp-sidebar-bg);
  color: var(--erp-sidebar-text);
  border-right: 1px solid rgba(148, 163, 184, 0.12);
  box-shadow: 4px 0 24px rgba(15, 23, 42, 0.12);
  transition: width 0.22s ease, transform 0.22s ease;
}

.erp-layout--collapsed .erp-sidebar {
  width: var(--erp-sidebar-collapsed);
}

.erp-sidebar__brand {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 18px 14px 14px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.12);
}

.erp-sidebar__brand-link {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  color: inherit;
  text-decoration: none;
}

.erp-sidebar__logo {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 1.1rem;
  color: #fff;
  background: var(--erp-sidebar-active);
}

.erp-sidebar__brand-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
  transition: opacity 0.15s ease;
}

.erp-sidebar__brand-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: #f8fafc;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.erp-sidebar__brand-sub {
  font-size: 0.72rem;
  color: var(--erp-sidebar-text-muted);
  white-space: nowrap;
}

.erp-sidebar__collapse {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 8px;
  background: transparent;
  color: var(--erp-sidebar-text);
  cursor: pointer;
  display: grid;
  place-items: center;
}

.erp-sidebar__collapse:hover,
.erp-sidebar__collapse:focus-visible {
  background: var(--erp-sidebar-bg-soft);
  outline: none;
}

.erp-layout--collapsed .erp-sidebar__collapse svg {
  transform: rotate(180deg);
}

.erp-sidebar__nav {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 12px 10px 16px;
  scrollbar-width: thin;
  scrollbar-color: rgba(148, 163, 184, 0.35) transparent;
}

.erp-sidebar__group + .erp-sidebar__group {
  margin-top: 14px;
}

.erp-sidebar__group-title {
  margin: 0 0 6px;
  padding: 0 10px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--erp-sidebar-text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: opacity 0.15s ease;
}

.erp-sidebar__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 4px;
}

/* Paketleme PWA — mobil/el terminali; masaüstü panel menüsünde gizli */
@media (min-width: 1025px) {
  .erp-sidebar__item--mobile-only {
    display: none;
  }
}

.erp-sidebar__link,
.sidebar-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
  border-radius: 10px;
  color: var(--erp-sidebar-text);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  transition: background 0.15s ease, color 0.15s ease;
  min-width: 0;
}

.erp-sidebar__link:hover,
.erp-sidebar__link:focus-visible {
  background: var(--erp-sidebar-bg-soft);
  color: #f8fafc;
  outline: none;
}

.erp-sidebar__link.is-active {
  color: #fff;
  background: var(--erp-sidebar-active);
  box-shadow: 0 8px 20px rgba(59, 130, 246, 0.28);
}

.erp-sidebar__link-icon,
.sidebar-icon {
  flex: 0 0 22px;
  width: 22px;
  height: 22px;
  min-width: 22px;
  min-height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.erp-sidebar svg,
.panel-sidebar svg,
.sidebar svg,
.sidebar-icon svg,
.sidebar-menu svg,
.erp-sidebar__link-icon svg {
  width: 18px !important;
  height: 18px !important;
  max-width: 18px !important;
  max-height: 18px !important;
  display: block;
  flex: 0 0 18px;
}

.erp-sidebar__collapse svg {
  width: 18px !important;
  height: 18px !important;
  max-width: 18px !important;
  max-height: 18px !important;
}

.erp-sidebar__link-label,
.sidebar-label {
  min-width: 0;
  flex: 1 1 auto;
}

.erp-sidebar__link-label {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Faturalar — layout / sidebar doğrulama (FAZ 17 acil düzeltme) */
body.erp-layout-body--invoices .erp-sidebar {
  position: fixed;
  width: var(--erp-sidebar-width);
  max-width: var(--erp-sidebar-width);
  overflow-x: hidden;
}

body.erp-layout-body--invoices .erp-layout__main {
  margin-left: var(--erp-sidebar-current);
  min-width: 0;
}

body.erp-layout-body--invoices .icon-btn svg,
body.erp-layout-body--invoices .invoice-action-icon svg {
  width: 16px !important;
  height: 16px !important;
  max-width: 16px !important;
  max-height: 16px !important;
}

.erp-sidebar__footer {
  padding: 12px 14px 16px;
  border-top: 1px solid rgba(148, 163, 184, 0.12);
}

.erp-sidebar__company {
  display: block;
  font-size: 0.75rem;
  color: var(--erp-sidebar-text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.erp-layout--collapsed .erp-sidebar__brand-text,
.erp-layout--collapsed .erp-sidebar__group-title,
.erp-layout--collapsed .erp-sidebar__link-label,
.erp-layout--collapsed .erp-sidebar__company {
  opacity: 0;
  width: 0;
  overflow: hidden;
}

.erp-layout--collapsed .erp-sidebar__brand-link {
  justify-content: center;
}

.erp-layout--collapsed .erp-sidebar__link {
  justify-content: center;
  padding-left: 8px;
  padding-right: 8px;
}

/* Main column */

.erp-layout__main {
  flex: 1;
  min-width: 0;
  margin-left: var(--erp-sidebar-current);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  transition: margin-left 0.22s ease;
}

.erp-topbar {
  position: sticky;
  top: 0;
  z-index: 1030;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: var(--erp-topbar-height);
  padding: 10px 20px;
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid rgba(226, 232, 240, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 18px rgba(15, 23, 42, 0.04);
}

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

.erp-topbar__menu-btn {
  width: 38px;
  height: 38px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #fff;
  color: var(--text);
  cursor: pointer;
  display: grid;
  place-items: center;
}

.erp-topbar__menu-btn:hover,
.erp-topbar__menu-btn:focus-visible {
  border-color: #93c5fd;
  outline: none;
}

.erp-topbar__titles {
  min-width: 0;
}

.erp-topbar__section {
  margin: 0 0 2px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #64748b;
}

.erp-topbar__title {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.25;
}

.erp-topbar__breadcrumb {
  margin-top: 2px;
}

.erp-topbar__breadcrumb-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 0.78rem;
  color: var(--muted);
}

.erp-topbar__breadcrumb-list a {
  color: #64748b;
  text-decoration: none;
}

.erp-topbar__breadcrumb-list a:hover,
.erp-topbar__breadcrumb-list a:focus-visible {
  color: var(--accent);
}

.erp-topbar__breadcrumb-sep {
  color: #cbd5e1;
}

.erp-topbar__right {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.erp-topbar__icon-btn {
  position: relative;
  width: 38px;
  height: 38px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #fff;
  color: #64748b;
  cursor: not-allowed;
  opacity: 0.7;
  display: grid;
  place-items: center;
}

.erp-topbar__badge {
  position: absolute;
  top: 4px;
  right: 4px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 999px;
  background: #ef4444;
  color: #fff;
  font-size: 0.62rem;
  font-weight: 700;
  line-height: 16px;
  text-align: center;
}

.erp-topbar__status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 10px;
  border-radius: 999px;
  border: 1px solid #dbeafe;
  background: #eff6ff;
  color: #1d4ed8;
  text-decoration: none;
  font-size: 0.78rem;
  font-weight: 600;
}

.erp-topbar__status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.2);
}

.erp-topbar__user {
  position: relative;
}

.erp-topbar__user-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 8px 4px 4px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #fff;
  cursor: pointer;
  max-width: 220px;
}

.erp-topbar__user-btn:hover,
.erp-topbar__user-btn:focus-visible {
  border-color: #bfdbfe;
  outline: none;
}

.erp-topbar__avatar {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: linear-gradient(135deg, #3b82f6, #6366f1);
  color: #fff;
  font-weight: 700;
  font-size: 0.9rem;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.erp-topbar__user-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 0;
  text-align: left;
}

.erp-topbar__user-name {
  font-size: 0.82rem;
  font-weight: 600;
  color: #0f172a;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 120px;
}

.erp-topbar__user-role {
  font-size: 0.7rem;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 120px;
}

.erp-topbar__user-chevron {
  flex-shrink: 0;
  color: #94a3b8;
}

.erp-topbar__dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 200px;
  padding: 8px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: #fff;
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.12);
  z-index: 1100;
}

.erp-topbar__dropdown[hidden] {
  display: none;
}

.erp-topbar__dropdown-email {
  margin: 0 8px 8px;
  font-size: 0.75rem;
  color: var(--muted);
  word-break: break-all;
}

.erp-topbar__dropdown a {
  display: block;
  padding: 9px 10px;
  border-radius: 8px;
  color: var(--text);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
}

.erp-topbar__dropdown a:hover,
.erp-topbar__dropdown a:focus-visible {
  background: #f8fafc;
  outline: none;
}

.erp-topbar__dropdown-danger {
  color: #b91c1c !important;
}

.erp-layout__content {
  flex: 1;
  min-width: 0;
  padding: 20px 22px calc(var(--erp-quickbar-height) + 28px);
}

.erp-layout__content--fluid {
  max-width: none;
}

body.erp-layout-body--invoices .page-shell--invoices {
  padding-top: 0;
  gap: 20px;
}

body.erp-layout-body--invoices .data-card {
  overflow: visible;
}

body.erp-layout-body--invoices .data-card__scroll {
  overflow-x: auto;
  overflow-y: visible;
  -webkit-overflow-scrolling: touch;
}

body.erp-layout-body--invoices .data-table__row:hover {
  z-index: 2;
}

body.erp-layout-body--invoices .data-table__row:hover .data-table__actions {
  z-index: 12;
}

/* Orders list — kurumsal, kompakt, göz yormayan */

body.erp-layout-body--orders {
  background: #f4f6f9;
  color: #334155;
}

body.erp-layout-body--orders .erp-layout__content {
  padding-top: 16px;
  padding-bottom: calc(var(--erp-quickbar-height) + 22px);
}

body.erp-layout-body--orders .page-shell--orders {
  padding-top: 0;
  gap: 14px;
  max-width: 1440px;
}

.orders-page-head {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.orders-page-head__top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 16px;
}

.orders-page-head__eyebrow {
  margin: 0 0 2px;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #64748b;
}

.orders-page-head__title {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #1e293b;
  line-height: 1.25;
}

.orders-page-head__new {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  font-size: 0.75rem;
  font-weight: 600;
  color: #475569;
  text-decoration: none;
  background: #fff;
  border: 1px solid #dbe1ea;
  border-radius: 8px;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.orders-page-head__new:hover,
.orders-page-head__new:focus-visible {
  color: #1e293b;
  background: #f8fafc;
  border-color: #cbd5e1;
  outline: none;
}

.platform-summary-strip {
  display: grid;
  grid-template-columns: repeat(6, minmax(150px, 1fr));
  gap: 12px;
  width: 100%;
  margin-bottom: 16px;
}

.platform-summary-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  min-width: 0;
  min-height: 86px;
  padding: 14px 16px;
  text-decoration: none;
  color: inherit;
  background: #fff;
  border: 1px solid rgba(226, 232, 240, 0.95);
  border-radius: 16px;
  box-shadow: 0 2px 12px rgba(15, 23, 42, 0.05);
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, transform 0.15s ease;
}

.platform-summary-card:hover,
.platform-summary-card:focus-visible {
  border-color: #cbd5e1;
  box-shadow: 0 6px 20px rgba(15, 23, 42, 0.08);
  outline: none;
  transform: translateY(-1px);
}

.platform-summary-card.active {
  border-color: #3b82f6;
  background: linear-gradient(180deg, #f8fbff 0%, #eff6ff 100%);
  box-shadow:
    0 0 0 2px rgba(59, 130, 246, 0.28),
    0 8px 24px rgba(37, 99, 235, 0.12);
}

.platform-summary-card__head {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
}

.platform-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  flex-shrink: 0;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.9);
}

.platform-dot-all {
  background: #3b82f6;
}

.platform-dot-trendyol {
  background: #f97316;
}

.platform-dot-hepsiburada {
  background: #ea580c;
}

.platform-dot-n11 {
  background: #7c3aed;
}

.platform-dot-amazon {
  background: #334155;
}

.platform-dot-manual {
  background: #94a3b8;
}

.platform-dot-akmaz-web {
  background: #2563eb;
}

.platform-summary-title {
  font-size: 0.8125rem;
  font-weight: 700;
  color: #1e293b;
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.platform-summary-count {
  font-size: 0.75rem;
  font-weight: 500;
  color: #64748b;
  line-height: 1.35;
}

.platform-summary-amount {
  font-size: 1.125rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  color: #0f172a;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

@media (max-width: 1200px) {
  .platform-summary-strip {
    display: flex;
    flex-wrap: nowrap;
    gap: 12px;
    overflow-x: auto;
    padding-bottom: 6px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
  }

  .platform-summary-card {
    flex: 0 0 auto;
    min-width: 170px;
    max-width: none;
  }
}

.page-shell--orders .page-alert {
  padding: 10px 14px;
  font-size: 0.8125rem;
  border-radius: 8px;
}

.page-shell--orders .filter-card {
  padding: 14px 16px;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  box-shadow: none;
}

.page-shell--orders .filter-card__grid--orders {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.page-shell--orders .filter-field__label {
  font-size: 0.6875rem;
  color: #94a3b8;
}

.page-shell--orders .filter-field input,
.page-shell--orders .filter-field select {
  padding: 7px 10px;
  font-size: 0.8125rem;
  background: #fafbfc;
  border-color: #e2e8f0;
  border-radius: 7px;
}

.page-shell--orders .filter-card__actions {
  margin-top: 12px;
  padding-top: 12px;
}

.page-shell--orders .filter-card__actions .btn-xs {
  font-size: 0.75rem;
  padding: 6px 12px;
  border-radius: 7px;
  box-shadow: none;
}

.page-shell--orders .data-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  box-shadow: none;
}

body.erp-layout-body--orders .data-card {
  overflow: visible;
}

body.erp-layout-body--orders .data-card__scroll {
  overflow-x: auto;
  overflow-y: visible;
  -webkit-overflow-scrolling: touch;
}

.page-shell--orders .data-table {
  font-size: 0.8125rem;
}

.page-shell--orders .data-table th,
.page-shell--orders .data-table td {
  padding: 9px 11px;
  border-bottom-color: #eef2f6;
  vertical-align: middle;
}

.page-shell--orders .data-table th {
  padding-top: 8px;
  padding-bottom: 8px;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #64748b;
  background: #f8fafc;
  border-bottom: 1px solid #e2e8f0;
}

.page-shell--orders .data-table tbody tr:hover,
.page-shell--orders .data-table__row:hover {
  background: #f8fafc;
}

.page-shell--orders .data-table__primary-link {
  font-size: 0.8125rem;
  font-weight: 600;
  color: #1e40af;
}

.page-shell--orders .data-table__cell-main {
  font-size: 0.8125rem;
  font-weight: 500;
  color: #334155;
}

.page-shell--orders .data-table__cell-sub {
  font-size: 0.6875rem;
  color: #94a3b8;
  line-height: 1.35;
}

.page-shell--orders .data-table__amount {
  font-size: 0.8125rem;
  font-weight: 600;
  color: #1e293b;
}

.page-shell--orders .data-table__date {
  font-size: 0.75rem;
  color: #64748b;
  white-space: nowrap;
}

.page-shell--orders .order-no-cell,
.page-shell--orders .order-cargo-cell {
  min-width: 0;
  gap: 2px;
}

.page-shell--orders .badge-order-status,
.page-shell--orders .badge-order-invoice,
.page-shell--orders .badge-order-shipment,
.page-shell--orders .badge-source {
  padding: 2px 8px;
  font-size: 0.6875rem;
  font-weight: 600;
}

.page-shell--orders .data-table__check input[type="checkbox"] {
  width: 14px;
  height: 14px;
  accent-color: #3b5bdb;
}

.page-shell--orders .bulk-bar {
  padding: 10px 14px;
  background: #f8fafc;
  border-bottom: 1px solid #e2e8f0;
  box-shadow: none;
}

.page-shell--orders .bulk-bar__count {
  font-size: 0.8125rem;
  color: #475569;
}

.page-shell--orders .bulk-bar__btn {
  font-size: 0.75rem;
  padding: 6px 12px;
}

body.erp-layout-body--orders .data-table__row:hover {
  z-index: 2;
}

body.erp-layout-body--orders .data-table__row:hover .data-table__actions {
  z-index: 12;
}

body.erp-layout-body--orders .data-table__row--clickable {
  cursor: pointer;
}

body.erp-layout-body--orders .data-table__row--clickable:focus-visible {
  outline: 2px solid #93b4fd;
  outline-offset: -2px;
}

body.erp-layout-body--orders .data-table__actions {
  width: auto;
  min-width: 15.5rem;
  padding-right: 12px;
  white-space: nowrap;
  vertical-align: middle;
}

.page-shell--orders .data-table__actions .order-row-actions,
.page-shell--orders .data-table__actions .icon-actions {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: nowrap;
}

.page-shell--orders .order-list-invoice-create,
.page-shell--orders .order-list-invoice-view {
  flex-shrink: 0;
}

.page-shell--orders .order-list-invoice-create--disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.page-shell--orders .orders-list-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 8px;
  flex-wrap: wrap;
}

.page-shell--orders .orders-list-toolbar__info {
  margin: 0;
  font-size: 0.75rem;
}

.page-shell--orders .orders-list-toolbar__limit {
  display: inline-flex;
  align-items: center;
  margin: 0;
}

.page-shell--orders .orders-list-toolbar__limit-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  font-size: 0.75rem;
}

.page-shell--orders .orders-list-toolbar__limit-select {
  font: inherit;
  font-size: 0.75rem;
  padding: 4px 8px;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  background: #fff;
  color: #334155;
}

.page-shell--orders .order-list-invoice-create,
.page-shell--orders .order-list-invoice-view {
  max-width: 11rem;
  padding: 5px 10px;
  line-height: 1.2;
  text-align: center;
}

.page-shell--orders .order-items-detail-row__cell {
  padding: 0 12px 10px 12px;
  background: #f1f5f9;
  border-bottom: 1px solid #e2e8f0;
  vertical-align: top;
}

.page-shell--orders .order-items-detail-row:hover,
.page-shell--orders .order-items-detail-row {
  background: #f1f5f9;
  cursor: default;
}

.page-shell--orders .order-items-inline {
  margin: 4px 0 2px;
  padding: 8px 10px;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
}

.page-shell--orders .order-items-inline__loading,
.page-shell--orders .order-items-inline__empty,
.page-shell--orders .order-items-inline__error {
  margin: 0;
  font-size: 0.75rem;
}

.page-shell--orders .order-items-inline__table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.75rem;
}

.page-shell--orders .order-items-inline__table th {
  padding: 4px 8px;
  text-align: left;
  font-weight: 600;
  color: #64748b;
  border-bottom: 1px solid #e2e8f0;
  background: #f8fafc;
}

.page-shell--orders .order-items-inline__table td {
  padding: 5px 8px;
  color: #334155;
  border-bottom: 1px solid #f1f5f9;
  vertical-align: top;
}

.page-shell--orders .order-items-inline__table tbody tr:last-child td {
  border-bottom: none;
}

.page-shell--orders .order-items-inline__name {
  font-weight: 500;
  max-width: 0;
  width: 50%;
}

.page-shell--orders .order-items-inline__num {
  text-align: right;
  white-space: nowrap;
  width: 1%;
}

.page-shell--orders .order-items-inline__thumb-col,
.page-shell--orders .order-detail-items__thumb-col {
  width: 98px;
  padding-right: 10px;
  vertical-align: middle;
}

.page-shell--orders .order-items-inline__thumb-col .order-product-thumb,
.page-shell--orders .order-items-inline__thumb-col .order-item-image,
.page-shell--orders .order-detail-items__thumb-col .order-product-thumb,
.page-shell--orders .order-detail-items__thumb-col .order-item-image {
  display: block;
  box-sizing: border-box;
  width: 90px;
  height: 120px;
  min-width: 90px;
  min-height: 120px;
  max-width: 90px;
  max-height: 120px;
  object-fit: contain;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 4px;
  overflow: hidden;
}

.page-shell--orders .icon-btn.is-active[data-order-items-toggle] {
  color: #1e40af;
  background: #eff6ff;
}

.page-shell--orders .order-list-invoice-form {
  margin: 0;
  display: inline-flex;
}

.order-list-invoice-form {
  margin: 0;
  display: flex;
  justify-content: flex-end;
}

.icon-btn-order-invoice-ready.icon-btn-disabled {
  opacity: 0.45;
  cursor: not-allowed;
  pointer-events: auto;
}

.order-invoice-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 7.25rem;
  padding: 9px 18px;
  font: inherit;
  font-size: 0.8125rem;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 0.01em;
  color: #fff;
  background: #2563eb;
  border: 1px solid #1d4ed8;
  border-radius: 8px;
  cursor: pointer;
  box-shadow: 0 1px 2px rgba(37, 99, 235, 0.2);
  transition: background 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.order-invoice-btn:hover,
.order-invoice-btn:focus-visible {
  background: #1d4ed8;
  border-color: #1e40af;
  box-shadow: 0 2px 6px rgba(37, 99, 235, 0.22);
  outline: none;
}

.order-invoice-btn:active {
  transform: translateY(1px);
  box-shadow: none;
}

.page-shell--orders .empty-state {
  padding: 2rem 1.5rem;
}

.page-shell--orders .empty-state__title {
  font-size: 1rem;
}

.page-shell--orders .empty-state__text {
  font-size: 0.8125rem;
  color: #64748b;
}

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

  .filter-card__grid--orders .filter-field--search {
    grid-column: span 2;
  }
}

@media (max-width: 640px) {
  body.erp-layout-body--orders .data-table__actions {
    min-width: 6.5rem;
  }

  .order-invoice-btn {
    min-width: 6.25rem;
    padding: 8px 14px;
    font-size: 0.75rem;
  }
}

/* Products commerce (FAZ 18) */

body.erp-layout-body--products {
  background: #f4f6f9;
}

body.erp-layout-body--products .page-shell--products {
  gap: 14px;
  max-width: 1440px;
}

.page-shell--products .filter-card,
.page-shell--products .data-card {
  border-radius: 10px;
  border: 1px solid #e2e8f0;
  box-shadow: none;
}

.page-shell--products .data-table th,
.page-shell--products .data-table td {
  padding: 9px 11px;
  font-size: 0.8125rem;
}

.page-shell--products .data-table th {
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #64748b;
  background: #f8fafc;
}

/* FAZ 22 — ürün listesi görsel standartları */
.data-table__thumb,
.products-list-image-cell {
  width: 1%;
  min-width: 98px;
  padding-right: 10px !important;
  vertical-align: middle;
  white-space: nowrap;
}

.product-thumb,
.product-image,
.products-list-image {
  display: block;
  box-sizing: border-box;
  width: 90px;
  height: 120px;
  min-width: 90px;
  min-height: 120px;
  max-width: 90px;
  max-height: 120px;
  object-fit: contain;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 4px;
  overflow: hidden;
}

.product-thumb--empty,
.product-thumb--placeholder {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  width: 90px;
  height: 120px;
  min-width: 90px;
  min-height: 120px;
  background: linear-gradient(145deg, #ffffff 0%, #f8fafc 100%);
  color: #94a3b8;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 4px;
}

.product-thumb--placeholder svg {
  display: block;
}

.product-platform-summary {
  min-width: 6.5rem;
}

.product-platform-summary__lines {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.product-platform-summary__line {
  font-size: 0.6875rem;
  color: #64748b;
  line-height: 1.35;
  white-space: nowrap;
}

.product-platform-summary__line strong {
  font-weight: 700;
  color: #334155;
}

.product-platform-summary__line--published strong {
  color: #15803d;
}

.product-platform-summary__line--pending strong {
  color: #1d4ed8;
}

.product-platform-summary__line--failed strong {
  color: #b91c1c;
}

.product-row-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
}

.product-publish-trigger {
  flex-shrink: 0;
  white-space: nowrap;
}

.product-publish-panel-row[hidden] {
  display: none;
}

.product-publish-panel-row > td {
  padding: 0 !important;
  border-bottom: 1px solid #e2e8f0;
  background: #f8fafc;
}

.product-publish-panel {
  margin: 0;
  border: none;
  border-radius: 0;
  box-shadow: none;
  padding: 14px 16px 16px;
  background: #f8fafc;
}

.product-publish-panel__head {
  margin-bottom: 12px;
}

.product-publish-panel__title {
  margin: 0;
  font-size: 0.9375rem;
  font-weight: 700;
  color: #0f172a;
}

.product-publish-panel__subtitle {
  margin: 4px 0 0;
  font-size: 0.75rem;
  color: #64748b;
}

.product-publish-panel__channels {
  list-style: none;
  margin: 0 0 12px;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 8px 14px;
}

.product-publish-panel__channel {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 8px 10px;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  background: #fff;
}

.product-publish-panel__label {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-size: 0.8125rem;
}

.product-publish-panel__label.is-disabled {
  cursor: not-allowed;
  opacity: 0.72;
}

.product-publish-panel__name {
  font-weight: 600;
  color: #1e293b;
}

.product-publish-panel__status {
  font-size: 0.625rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.product-publish-panel__hint--ok {
  color: #15803d;
}

.product-publish-panel__hint--warn {
  color: #b45309;
}

.product-publish-panel__hint--pending {
  color: #1d4ed8;
}

.product-publish-panel__hint--error {
  color: #b91c1c;
}

.product-publish-panel__note {
  font-size: 0.6875rem;
  color: #64748b;
  padding-left: 24px;
}

.product-publish-panel__note--muted {
  color: #94a3b8;
}

.product-publish-panel__link {
  font-size: 0.6875rem;
  font-weight: 600;
  color: #2563eb;
  text-decoration: none;
}

.product-publish-panel__link:hover,
.product-publish-panel__link:focus-visible {
  text-decoration: underline;
}

.product-publish-panel__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.product-platform-badges {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 8.5rem;
}

.product-platform-badges .badge {
  display: inline-block;
  max-width: 100%;
  padding: 2px 7px;
  font-size: 0.625rem;
  font-weight: 600;
  border-radius: 999px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.badge-product-status--draft { background: #f1f5f9; color: #64748b; }
.badge-product-status--active { background: #dcfce7; color: #15803d; }
.badge-product-status--passive { background: #f1f5f9; color: #475569; }
.badge-product-status--archived { background: #fee2e2; color: #b91c1c; }

.badge-product-listing--not_published { background: #f1f5f9; color: #64748b; }
.badge-product-listing--pending { background: #fef3c7; color: #b45309; }
.badge-product-listing--published { background: #dcfce7; color: #15803d; }
.badge-product-listing--failed { background: #fee2e2; color: #b91c1c; }
.badge-product-listing--passive { background: #e2e8f0; color: #475569; }

.badge-product-source {
  display: inline-block;
  margin-top: 0.25rem;
  margin-right: 0.25rem;
  padding: 0.1rem 0.45rem;
  border-radius: 4px;
  font-size: 0.68rem;
  font-weight: 600;
  line-height: 1.3;
  vertical-align: middle;
}
.badge-product-source--trendyol { background: #ffedd5; color: #c2410c; }
.badge-product-source--incomplete { background: #fef3c7; color: #92400e; }
.product-platform-summary__ty {
  display: inline-block;
  margin-bottom: 0.25rem;
}
.data-table__cell-badges { display: block; margin-top: 0.2rem; }

.product-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid #e2e8f0;
}

.product-tabs__link {
  display: inline-flex;
  padding: 8px 14px;
  font-size: 0.8125rem;
  font-weight: 600;
  color: #64748b;
  text-decoration: none;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.product-tabs__link:hover,
.product-tabs__link:focus-visible {
  color: #1e293b;
  background: #f8fafc;
  outline: none;
}

.product-tabs__link.is-active {
  color: #1d4ed8;
  background: #eff6ff;
  border-color: #bfdbfe;
}

.product-tab-panel {
  padding: 4px 0;
}

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

.product-form-grid--full {
  grid-column: 1 / -1;
}

.product-image-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 12px;
}

.product-image-card {
  position: relative;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
}

.product-image-card img {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
}

.product-image-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  padding: 6px;
  border-top: 1px solid #eef2f6;
}

.page-alert--warning {
  color: #92400e;
  background: #fffbeb;
  border: 1px solid #fde68a;
}

.product-form-grid--single {
  grid-template-columns: 1fr;
}

/* Ürün düzenleme — tek sayfa kart */
.product-edit-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 340px);
  gap: 16px;
  align-items: start;
}

.product-main-column,
.product-side-column {
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 0;
}

.product-card {
  padding: 16px 18px;
}

.product-card-title {
  margin: 0 0 14px;
  font-size: 0.9375rem;
  font-weight: 700;
  color: #0f172a;
}

.product-card-subtitle {
  margin: 1rem 0 0.75rem;
  font-size: 0.8125rem;
  font-weight: 700;
  color: #334155;
}

.product-edit-header {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px 16px;
  padding: 16px 18px;
  margin-bottom: 12px;
}

.product-edit-header__title {
  margin: 0 0 8px;
  font-size: 1.25rem;
  font-weight: 700;
  color: #0f172a;
}

.product-edit-header__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.product-edit-header__chip {
  font-size: 0.75rem;
  color: #64748b;
}

.product-edit-header__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.product-readiness {
  margin-bottom: 12px;
  padding: 12px 16px;
}

.product-readiness--ready {
  border-color: #bbf7d0;
  background: #f0fdf4;
}

.product-readiness--incomplete {
  border-color: #fde68a;
  background: #fffbeb;
}

.product-readiness__message {
  margin: 0 0 8px;
  font-size: 0.8125rem;
  font-weight: 700;
}

.product-readiness--ready .product-readiness__message {
  color: #15803d;
}

.product-readiness--incomplete .product-readiness__message {
  color: #b45309;
}

.product-readiness__list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.product-readiness__item {
  font-size: 0.6875rem;
  color: #94a3b8;
}

.product-readiness__item::before {
  content: "○ ";
}

.product-readiness__item.is-ok {
  color: #15803d;
}

.product-readiness__item.is-ok::before {
  content: "✓ ";
}

.product-inline-form {
  margin-top: 12px;
}

.product-inline-form__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.product-side-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.variant-mini-table {
  margin-bottom: 0;
}

.product-image-sort-list {
  margin: 0.75rem 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 6px;
}

.product-image-sort-list label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 0.75rem;
  color: #64748b;
}

.product-image-sort-list .form-input {
  width: 4.5rem;
  padding: 4px 8px;
}

.product-image-card__body {
  padding: 6px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.product-image-card__form {
  margin: 0;
}

.product-image-card__alt {
  font-size: 0.625rem;
  line-height: 1.3;
  word-break: break-word;
}

.product-platform-hint {
  margin: 10px 0 0;
  font-size: 0.6875rem;
}

/* Platform logo kartları */
.product-platform-cards,
.platform-status-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.product-platform-card-form {
  margin: 0;
  padding: 0;
  display: inline-flex;
}

.product-platform-card {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  min-width: 44px;
  padding: 6px 8px 5px;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  background: #fff;
  cursor: default;
  font: inherit;
  text-decoration: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.12s ease;
}

button.product-platform-card {
  cursor: pointer;
}

.product-platform-card-form .product-platform-card:hover,
.product-platform-card-form .product-platform-card:focus-visible {
  border-color: #93c5fd;
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.12);
  outline: none;
}

.product-platform-card--not_published {
  background: #f8fafc;
  border-color: #e2e8f0;
}

.product-platform-card--pending {
  background: #eff6ff;
  border-color: #93c5fd;
}

.product-platform-card--published {
  background: #f0fdf4;
  border-color: #86efac;
}

.product-platform-card--failed {
  background: #fef2f2;
  border-color: #fca5a5;
}

.product-platform-card--passive {
  background: #f1f5f9;
  border-color: #cbd5e1;
}

.product-platform-card__logo {
  width: 14px;
  height: 14px;
  border-radius: 999px;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.85);
}

.product-platform-card__abbr {
  font-size: 0.625rem;
  font-weight: 800;
  color: #334155;
  line-height: 1;
  letter-spacing: 0.02em;
}

.product-platform-card__status {
  font-size: 0.5rem;
  font-weight: 600;
  color: #64748b;
  line-height: 1.1;
  max-width: 52px;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.product-platform-card--pending .product-platform-card__status {
  color: #1d4ed8;
}

.product-platform-card--published .product-platform-card__status {
  color: #15803d;
}

.product-platform-card--failed .product-platform-card__status {
  color: #b91c1c;
}

.data-table__platforms {
  min-width: 7rem;
  max-width: 9rem;
}

.platform-status-list .product-platform-card {
  min-width: 52px;
  flex: 1 1 calc(33% - 6px);
  max-width: 100px;
}

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

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

  .product-publish-panel__channels {
    grid-template-columns: 1fr;
  }

  .product-row-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .product-publish-trigger {
    width: 100%;
    justify-content: center;
  }
}

body.erp-layout-body--products .data-table__row:hover .data-table__actions {
  z-index: 12;
}

body.erp-layout-body--products .data-table__row:hover .data-table__platforms {
  z-index: 11;
}

/* Quickbar */

.erp-quickbar {
  position: fixed;
  left: var(--erp-sidebar-current);
  right: 0;
  bottom: 0;
  z-index: 1020;
  background: rgba(255, 255, 255, 0.94);
  border-top: 1px solid rgba(226, 232, 240, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: 0 -8px 24px rgba(15, 23, 42, 0.06);
  transition: left 0.22s ease;
}

.erp-quickbar__scroll {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}

.erp-quickbar__btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid #e2e8f0;
  background: #f8fafc;
  color: #334155;
  text-decoration: none;
  font-size: 0.8125rem;
  font-weight: 600;
  white-space: nowrap;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.erp-quickbar__btn:hover,
.erp-quickbar__btn:focus-visible {
  background: #eff6ff;
  border-color: #bfdbfe;
  color: #1d4ed8;
  outline: none;
}

.erp-quickbar__icon {
  width: 18px;
  height: 18px;
  display: grid;
  place-items: center;
  color: #3b82f6;
}

.erp-quickbar__icon svg {
  width: 18px;
  height: 18px;
}

body.erp-layout-mobile-open {
  overflow: hidden;
}

@media (max-width: 960px) {
  .erp-layout {
    --erp-sidebar-current: 0px;
  }

  .erp-sidebar {
    transform: translateX(-100%);
    width: min(280px, 88vw);
  }

  .erp-layout--mobile-open .erp-sidebar {
    transform: translateX(0);
  }

  .erp-layout__main {
    margin-left: 0;
  }

  .erp-quickbar {
    left: 0;
  }

  .erp-sidebar__collapse {
    display: none;
  }

  .erp-topbar__status-text,
  .erp-topbar__user-meta {
    display: none;
  }

  .erp-topbar__user-btn {
    padding: 4px;
    max-width: none;
  }
}

@media (min-width: 961px) {
  .erp-topbar__menu-btn {
    display: none;
  }
}

/* layout-fix-2: sidebar nav icon boyutu (app.css?v=layout-fix-2) */
.panel-sidebar .nav-icon,
.panel-sidebar svg.nav-icon,
.sidebar .nav-icon,
.sidebar svg.nav-icon,
.erp-sidebar .nav-icon,
.erp-sidebar svg.nav-icon {
  width: 18px !important;
  height: 18px !important;
  max-width: 18px !important;
  max-height: 18px !important;
  min-width: 18px !important;
  min-height: 18px !important;
  display: block !important;
  flex: 0 0 18px !important;
}

.panel-sidebar .sidebar-icon,
.sidebar .sidebar-icon,
.erp-sidebar .sidebar-icon,
.erp-sidebar__link-icon.sidebar-icon {
  width: 22px !important;
  height: 22px !important;
  min-width: 22px !important;
  max-width: 22px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  overflow: hidden !important;
  flex: 0 0 22px !important;
}

/* FAZ 20.6 — Sipariş operasyon merkezi */
.orders-page-head__sub {
  margin: 4px 0 0;
  font-size: 0.8125rem;
}

.orders-page-head__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.order-ops-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 2px 0 6px;
  margin-bottom: 4px;
  border-bottom: 1px solid #e2e8f0;
}

.order-ops-tabs__item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  font-size: 0.8125rem;
  font-weight: 600;
  color: #475569;
  text-decoration: none;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.order-ops-tabs__item:hover,
.order-ops-tabs__item:focus-visible {
  color: #1e293b;
  border-color: #cbd5e1;
  outline: none;
}

.order-ops-tabs__item.is-active {
  color: #1d4ed8;
  background: #eff6ff;
  border-color: #93c5fd;
}

.order-ops-tabs__count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.5rem;
  padding: 2px 6px;
  font-size: 0.6875rem;
  font-weight: 700;
  color: #334155;
  background: #f1f5f9;
  border-radius: 999px;
}

.order-ops-tabs__item.is-active .order-ops-tabs__count {
  color: #1d4ed8;
  background: #dbeafe;
}

.order-ops-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.order-ops-bulk-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 12px;
  position: sticky;
  top: 0;
  z-index: 6;
  margin-bottom: 8px;
  padding: 8px 12px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  opacity: 0.92;
}

.order-ops-bulk-bar.is-active {
  background: #eff6ff;
  border-color: #93c5fd;
  opacity: 1;
}

.order-ops-bulk-bar__left {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 16px;
}

.order-ops-bulk-bar__select-all {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8125rem;
  font-weight: 600;
  color: #475569;
  cursor: pointer;
}

.order-ops-bulk-bar__count {
  margin: 0;
  font-size: 0.8125rem;
  font-weight: 700;
  color: #64748b;
}

.order-ops-bulk-bar.is-active .order-ops-bulk-bar__count {
  color: #1d4ed8;
}

.order-ops-bulk-bar__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.order-ops-bulk-bar__btn {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  font-size: 0.75rem;
  font-weight: 600;
  color: #94a3b8;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  cursor: not-allowed;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.order-ops-bulk-bar.is-active .order-ops-bulk-bar__btn:not(:disabled) {
  color: #1e40af;
  border-color: #93c5fd;
  background: #fff;
  cursor: pointer;
}

.order-ops-bulk-bar.is-active .order-ops-bulk-bar__btn:not(:disabled):hover,
.order-ops-bulk-bar.is-active .order-ops-bulk-bar__btn:not(:disabled):focus-visible {
  background: #dbeafe;
  outline: none;
}

.order-ops-bulk-bar__btn--ghost {
  color: #64748b;
  background: transparent;
}

.order-ops-card {
  display: flex;
  align-items: stretch;
  gap: 8px;
  min-height: 0;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  box-shadow: 0 1px 4px rgba(15, 23, 42, 0.05);
  overflow: hidden;
  padding: 0 0 0 3px;
}

/* İşlemler menüsü açıkken: dropdown'ın kart tarafından kırpılmasını ve
   bir sonraki kartın altında kalmasını önle (overflow + stacking fix). */
.order-ops-card.is-menu-open {
  overflow: visible;
  position: relative;
  z-index: 30;
}

.order-ops-card__select {
  display: flex;
  align-items: flex-start;
  padding: 12px 0 12px 10px;
  margin: 0;
  cursor: pointer;
  flex: 0 0 auto;
}

.order-ops-card__check {
  width: 15px;
  height: 15px;
  margin: 2px 0 0;
  accent-color: #2563eb;
}

.order-ops-card--new-highlight {
  animation: order-row-highlight 2.5s ease-out;
}

.order-ops-card__grid {
  flex: 1;
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(148px, 1.05fr) minmax(108px, 0.85fr) minmax(200px, 1.5fr) minmax(82px, 0.55fr) minmax(108px, 0.75fr) minmax(92px, 0.65fr) minmax(132px, 0.95fr);
  gap: 8px 12px;
  padding: 12px 16px;
  align-items: center;
}

@media (max-width: 1200px) {
  .order-ops-card__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .order-ops-card__grid {
    grid-template-columns: 1fr;
  }
}

.order-ops-card__heading {
  margin: 0 0 4px;
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #94a3b8;
}

.order-ops-card__order-no {
  margin: 0 0 4px;
  font-size: 0.8125rem;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.25;
}

.order-ops-card__refs {
  margin: 0 0 4px;
}

.order-ops-ref-line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 3px 5px;
  margin: 0 0 2px;
  font-size: 0.6875rem;
  line-height: 1.35;
}

.order-ops-ref-line__label {
  font-weight: 600;
  color: #94a3b8;
}

.order-ops-ref-line__value {
  font-weight: 600;
  color: #1e293b;
  word-break: break-all;
}

.order-ops-copy-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 3px;
  margin: 0;
  font-size: 0.625rem;
  line-height: 1;
  color: #94a3b8;
  background: transparent;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  vertical-align: middle;
  transition: color 0.15s ease;
}

.order-ops-copy-btn:hover,
.order-ops-copy-btn:focus-visible {
  color: #2563eb;
  outline: none;
}

.order-ops-copy-btn.is-copied {
  color: #16a34a;
}

.order-ops-card__badges {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
  margin-top: 4px;
}

.page-shell--orders-ops .order-ops-card__badges .badge,
.page-shell--orders-ops .order-ops-card__badges .marketplace-mp-status,
.page-shell--orders-ops .order-ops-card__col--invoice .badge {
  font-size: 0.625rem;
  padding: 2px 6px;
  line-height: 1.25;
  border-radius: 4px;
}

@media (max-width: 640px) {
  .order-ops-ref-line {
    align-items: flex-start;
  }

  .order-ops-copy-btn {
    margin-left: 0;
  }
}

.order-ops-card__meta {
  margin: 0 0 2px;
  font-size: 0.6875rem;
  line-height: 1.35;
  color: #64748b;
}

.order-ops-card__label {
  font-weight: 600;
  color: #94a3b8;
  margin-right: 4px;
}

.order-ops-card__buyer-name {
  margin: 0;
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1.35;
  color: #1e293b;
}

.order-ops-card__amount {
  margin: 0;
  font-size: 0.875rem;
  font-weight: 700;
  color: #0f172a;
}

.badge-order-ops-micro {
  display: inline-flex;
  margin-top: 6px;
  padding: 2px 8px;
  font-size: 0.6875rem;
  font-weight: 700;
  color: #9a3412;
  background: #ffedd5;
  border-radius: 6px;
}

.order-ops-card__item-total {
  margin: 0 0 4px;
}

.order-ops-card__item-total-badge {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 2px 8px;
  font-size: 0.625rem;
  font-weight: 700;
  color: #1e40af;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  border-radius: 999px;
}

.order-ops-card__col--products {
  align-self: stretch;
}

.order-ops-products--list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.order-ops-products__row {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  min-width: 0;
}

/* FAZ 22 — sipariş operasyon ürün görselleri (90×120) */
.order-ops-products__media {
  position: relative;
  flex: 0 0 90px;
  width: 90px;
  min-height: 120px;
}

.page-shell--orders-ops .order-product-thumb,
.page-shell--orders-ops .order-item-image,
.page-shell--orders-ops .operations-product-image,
.page-shell--orders-ops .order-ops-products__img {
  display: block;
  box-sizing: border-box;
  width: 90px;
  height: 120px;
  min-width: 90px;
  min-height: 120px;
  max-width: 90px;
  max-height: 120px;
  object-fit: contain;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 4px;
  overflow: hidden;
}

.page-shell--orders-ops .qty-badge {
  position: absolute;
  top: -6px;
  right: -6px;
  min-width: 24px;
  height: 24px;
  padding: 0 6px;
  border-radius: 999px;
  background: #ef4444;
  color: #ffffff;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
  z-index: 10;
  pointer-events: none;
}

.order-ops-products__details {
  flex: 1;
  min-width: 0;
  padding-top: 0;
}

.order-ops-products__qty-line {
  margin: 0;
  font-size: 0.75rem;
  font-weight: 600;
  color: #475569;
}

.order-ops-products {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.order-ops-products__hero {
  position: relative;
  flex: 0 0 90px;
}

.order-ops-products__name {
  margin: 0 0 2px;
  font-size: 0.75rem;
  font-weight: 600;
  color: #1e293b;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  text-overflow: ellipsis;
  word-break: break-word;
}

.order-ops-products__sku,
.order-ops-products__variant {
  margin: 0;
  font-size: 0.6875rem;
  color: #64748b;
  line-height: 1.3;
  word-break: break-word;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.order-ops-products__mini {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
  font-size: 0.6875rem;
  color: #475569;
}

.order-ops-products__mini img {
  width: 32px;
  height: 32px;
  object-fit: cover;
  border-radius: 6px;
  border: 1px solid #e2e8f0;
}

.order-ops-card__actions {
  display: flex;
  flex-direction: column;
  gap: 4px;
  align-items: stretch;
}

.order-ops-action-form {
  margin: 0;
}

.order-ops-card__print-actions {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.order-ops-card__actions .btn-xs,
.order-ops-card__actions .order-ops-action-form button,
.order-ops-card__actions .order-ops-print-btn,
.order-ops-card__actions .order-ops-menu__toggle {
  width: 100%;
  justify-content: center;
  text-align: center;
  white-space: normal;
  line-height: 1.25;
  min-height: 32px;
  max-height: 34px;
  padding: 4px 8px;
  font-size: 0.6875rem;
}

.order-ops-menu__form {
  margin: 0;
  padding: 0;
}

.order-ops-menu__form .order-ops-menu__item {
  width: 100%;
}

.order-ops-btn--blocked,
.order-ops-btn--disabled {
  opacity: 0.45;
  cursor: not-allowed;
  pointer-events: auto;
}

.order-ops-btn--disabled:hover {
  opacity: 0.45;
}

.order-ops-menu {
  position: relative;
  margin-top: 2px;
}

.order-ops-menu__toggle {
  width: 100%;
  justify-content: center;
}

.order-ops-menu__panel {
  position: absolute;
  right: 0;
  top: calc(100% + 4px);
  z-index: 20;
  min-width: 220px;
  padding: 6px;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.12);
}

.order-ops-menu__panel[hidden] {
  display: none;
}

.order-ops-menu__item {
  display: block;
  width: 100%;
  padding: 8px 10px;
  font-size: 0.75rem;
  font-weight: 600;
  color: #334155;
  text-align: left;
  text-decoration: none;
  background: transparent;
  border: none;
  border-radius: 6px;
  cursor: pointer;
}

.order-ops-menu__item:hover,
.order-ops-menu__item:focus-visible {
  background: #f1f5f9;
  outline: none;
}

body.erp-ops-modal-open {
  overflow: hidden;
}

.erp-ops-modal {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.erp-ops-modal[hidden] {
  display: none;
}

.erp-ops-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.45);
}

.erp-ops-modal__dialog {
  position: relative;
  width: min(100%, 440px);
  max-height: 90vh;
  overflow: auto;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.2);
}

.erp-ops-modal__dialog--wide {
  width: min(100%, 560px);
}

.erp-ops-modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid #e2e8f0;
}

.erp-ops-modal__title {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
  color: #0f172a;
}

.erp-ops-modal__close {
  border: none;
  background: transparent;
  font-size: 1.25rem;
  line-height: 1;
  color: #64748b;
  cursor: pointer;
}

.erp-ops-modal__body {
  padding: 14px 16px 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.erp-ops-modal__desc {
  margin: 0;
  font-size: 0.8125rem;
  color: #64748b;
  line-height: 1.45;
}

.erp-ops-modal__footer {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  padding-top: 4px;
}

.order-ops-history-list {
  margin: 0;
  padding: 0;
  list-style: none;
  max-height: 320px;
  overflow: auto;
}

.order-ops-history-item {
  padding: 10px 0;
  border-bottom: 1px solid #f1f5f9;
}

.order-ops-history-item:last-child {
  border-bottom: none;
}

.order-ops-history-item__desc {
  margin: 0 0 4px;
  font-size: 0.8125rem;
  color: #1e293b;
}

.order-ops-history-item__meta {
  margin: 0;
  font-size: 0.6875rem;
}

.order-ops-countdown {
  margin: 4px 0 2px;
  font-size: 0.6875rem;
  font-weight: 700;
  line-height: 1.3;
}

.order-ops-countdown--ok {
  color: #1d4ed8;
}

.order-ops-countdown--warn {
  color: #c2410c;
}

.order-ops-countdown--critical,
.order-ops-countdown--overdue {
  color: #b91c1c;
}

.order-ops-countdown--unknown {
  color: #64748b;
  font-weight: 500;
}

.order-ops-print-btn--primary {
  color: #9a3412 !important;
  background: #fff7ed !important;
  border: 1px solid #f97316 !important;
  font-weight: 600;
}

.order-ops-print-btn--primary:hover,
.order-ops-print-btn--primary:focus-visible {
  color: #c2410c !important;
  background: #ffedd5 !important;
  border-color: #ea580c !important;
}

.order-ops-print-btn--done {
  color: #64748b !important;
  background: #f1f5f9 !important;
  border-color: #e2e8f0 !important;
}

.order-ops-print-btn--done:hover,
.order-ops-print-btn--done:focus-visible {
  background: #e2e8f0 !important;
}

.order-ops-print-btn--blocked {
  opacity: 0.45;
  cursor: not-allowed;
}

/* FAZ 22 — mobil görsel boyutları */
@media (max-width: 768px) {
  .data-table__thumb,
  .products-list-image-cell {
    min-width: 78px;
  }

  .product-thumb,
  .product-image,
  .products-list-image,
  .product-thumb--empty,
  .product-thumb--placeholder {
    width: 70px;
    height: 90px;
    min-width: 70px;
    min-height: 90px;
    max-width: 70px;
    max-height: 90px;
  }

  .page-shell--orders-ops .order-ops-card {
    min-height: 0;
  }

  .page-shell--orders-ops .order-ops-card__grid {
    align-items: start;
  }

  .page-shell--orders-ops .order-ops-products__media {
    flex: 0 0 70px;
    width: 70px;
    min-height: 90px;
  }

  .page-shell--orders-ops .order-product-thumb,
  .page-shell--orders-ops .order-item-image,
  .page-shell--orders-ops .operations-product-image,
  .page-shell--orders-ops .order-ops-products__img {
    width: 70px;
    height: 90px;
    min-width: 70px;
    min-height: 90px;
    max-width: 70px;
    max-height: 90px;
  }

  .page-shell--orders .order-items-inline__thumb-col .order-product-thumb,
  .page-shell--orders .order-items-inline__thumb-col .order-item-image,
  .page-shell--orders .order-detail-items__thumb-col .order-product-thumb,
  .page-shell--orders .order-detail-items__thumb-col .order-item-image {
    width: 70px;
    height: 90px;
    min-width: 70px;
    min-height: 90px;
    max-width: 70px;
    max-height: 90px;
  }

  .page-shell--orders-ops .order-ops-products__hero {
    flex: 0 0 70px;
  }
}

/* Sipariş Operasyon — üst alan kompakt (daha fazla kart görünür) */
.page-shell--orders-ops .orders-page-head {
  gap: 8px;
}

.page-shell--orders-ops .orders-page-head__title {
  font-size: 1.125rem;
}

.page-shell--orders-ops .orders-page-head__sub {
  margin: 2px 0 0;
  font-size: 0.75rem;
}

.page-shell--orders-ops .platform-summary-strip {
  margin-bottom: 10px;
  gap: 8px;
}

.page-shell--orders-ops .platform-summary-card {
  min-height: 68px;
  padding: 10px 12px;
  border-radius: 12px;
  box-shadow: 0 1px 6px rgba(15, 23, 42, 0.05);
}

.page-shell--orders-ops .filter-card--compact {
  margin-bottom: 8px;
  padding: 10px 12px;
}

.page-shell--orders-ops .order-ops-tabs__item {
  padding: 6px 10px;
  font-size: 0.75rem;
}

.page-shell--orders-ops .order-ops-tabs__count {
  font-size: 0.625rem;
  padding: 1px 6px;
}

/* Sipariş operasyon — kart kompakt (ürün görseli 90×120 değişmez) */
.page-shell--orders-ops .order-ops-list {
  gap: 5px;
}

.page-shell--orders-ops .order-ops-card {
  gap: 5px;
  border-radius: 10px;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
}

.page-shell--orders-ops .order-ops-card__select {
  padding: 7px 0 7px 8px;
}

.page-shell--orders-ops .order-ops-card__check {
  width: 14px;
  height: 14px;
  margin: 1px 0 0;
}

.page-shell--orders-ops .order-ops-card__grid {
  gap: 5px 8px;
  padding: 7px 10px 7px 8px;
  grid-template-columns: minmax(128px, 1fr) minmax(96px, 0.8fr) minmax(188px, 1.45fr) minmax(72px, 0.5fr) minmax(96px, 0.7fr) minmax(80px, 0.58fr) minmax(118px, 0.88fr);
  align-items: start;
}

.page-shell--orders-ops .order-ops-card__order-no {
  margin: 0 0 2px;
  font-size: 0.75rem;
  line-height: 1.2;
}

.page-shell--orders-ops .order-ops-card__refs {
  margin: 0 0 2px;
}

.page-shell--orders-ops .order-ops-ref-line {
  margin: 0 0 1px;
  font-size: 0.625rem;
  line-height: 1.2;
  gap: 2px 4px;
}

.page-shell--orders-ops .order-ops-copy-btn {
  font-size: 0.5625rem;
  padding: 0 2px;
}

.page-shell--orders-ops .order-ops-card__meta {
  margin: 0 0 1px;
  font-size: 0.625rem;
  line-height: 1.25;
}

.page-shell--orders-ops .order-ops-card__label {
  margin-right: 3px;
}

.page-shell--orders-ops .order-ops-countdown {
  margin: 1px 0 0;
  font-size: 0.5625rem;
  font-weight: 600;
  line-height: 1.2;
}

.page-shell--orders-ops .order-ops-card__item-total {
  margin: 0 0 2px;
}

.page-shell--orders-ops .order-ops-card__item-total-badge {
  padding: 1px 6px;
  font-size: 0.5625rem;
  gap: 2px;
}

.page-shell--orders-ops .order-ops-card__badges {
  gap: 3px;
  margin-top: 2px;
}

.page-shell--orders-ops .order-ops-card__badges .badge,
.page-shell--orders-ops .order-ops-card__badges .marketplace-mp-status,
.page-shell--orders-ops .order-ops-card__col--invoice .badge,
.page-shell--orders-ops .order-ops-card__col--cargo .badge {
  font-size: 0.5625rem;
  padding: 1px 5px;
  line-height: 1.2;
  border-radius: 4px;
}

.page-shell--orders-ops .badge-order-ops-micro {
  margin-top: 2px;
  padding: 1px 5px;
  font-size: 0.5625rem;
}

.page-shell--orders-ops .order-ops-card__heading {
  margin: 0 0 2px;
  font-size: 0.5625rem;
  letter-spacing: 0.03em;
}

.page-shell--orders-ops .order-ops-card__buyer-name {
  font-size: 0.6875rem;
  line-height: 1.25;
}

.page-shell--orders-ops .order-ops-card__amount {
  font-size: 0.8125rem;
  line-height: 1.2;
}

.page-shell--orders-ops .order-ops-card__col--amount,
.page-shell--orders-ops .order-ops-card__col--cargo,
.page-shell--orders-ops .order-ops-card__col--invoice {
  gap: 0;
}

.page-shell--orders-ops .order-ops-card__cargo-carrier,
.page-shell--orders-ops .order-ops-card__cargo-tracking,
.page-shell--orders-ops .order-ops-card__cargo-barcode {
  line-height: 1.2;
}

.page-shell--orders-ops .order-ops-products--list {
  gap: 4px;
}

.page-shell--orders-ops .order-ops-products__row {
  gap: 6px;
}

.page-shell--orders-ops .order-ops-products__name {
  margin: 0 0 1px;
  font-size: 0.6875rem;
  line-height: 1.25;
  -webkit-line-clamp: 2;
}

.page-shell--orders-ops .order-ops-products__sku,
.page-shell--orders-ops .order-ops-products__variant {
  font-size: 0.625rem;
  line-height: 1.2;
}

.page-shell--orders-ops .order-ops-card__actions,
.page-shell--orders-ops .order-ops-card__print-actions {
  gap: 3px;
}

.page-shell--orders-ops .order-ops-card__actions .btn-xs,
.page-shell--orders-ops .order-ops-card__actions .order-ops-action-form button,
.page-shell--orders-ops .order-ops-card__actions .order-ops-print-btn,
.page-shell--orders-ops .order-ops-card__actions .order-ops-menu__toggle {
  min-height: 24px;
  max-height: 26px;
  padding: 2px 6px;
  font-size: 0.625rem;
  line-height: 1.15;
  border-radius: 6px;
}

.page-shell--orders-ops .order-ops-menu {
  margin-top: 0;
}

.page-shell--orders-ops .order-ops-bulk-bar {
  padding: 5px 10px;
  margin-bottom: 5px;
  gap: 5px 8px;
  border-radius: 10px;
}

.page-shell--orders-ops .order-ops-bulk-bar__left {
  gap: 8px 12px;
}

.page-shell--orders-ops .order-ops-bulk-bar__select-all {
  gap: 6px;
  font-size: 0.75rem;
}

.page-shell--orders-ops .order-ops-bulk-bar__count {
  font-size: 0.75rem;
}

.page-shell--orders-ops .order-ops-bulk-bar__actions {
  gap: 5px;
}

.page-shell--orders-ops .order-ops-bulk-bar__btn {
  padding: 4px 9px;
  font-size: 0.6875rem;
  border-radius: 7px;
}

/* Operasyon ekranında ürün görseli her zaman 90×120 */
@media (max-width: 768px) {
  .page-shell--orders-ops .order-ops-products__media,
  .page-shell--orders-ops .order-ops-products__hero {
    flex: 0 0 90px;
    width: 90px;
    min-height: 120px;
  }

  .page-shell--orders-ops .order-product-thumb,
  .page-shell--orders-ops .order-item-image,
  .page-shell--orders-ops .operations-product-image,
  .page-shell--orders-ops .order-ops-products__img {
    width: 90px;
    height: 120px;
    min-width: 90px;
    min-height: 120px;
    max-width: 90px;
    max-height: 120px;
  }

  .page-shell--orders-ops .order-ops-card__grid {
    padding: 7px 10px;
    gap: 6px;
  }
}

/* FAZ 22.4 — Bağımsız paketleme PWA (panel layout yok) */
html:has(body.packing-standalone) {
  height: 100%;
}

body.packing-standalone {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  background: #cbd5e1;
  color: #0f172a;
  -webkit-tap-highlight-color: transparent;
}

.packing-shell {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  justify-content: center;
  align-items: stretch;
  padding: 0;
  box-sizing: border-box;
}

.packing-shell__device {
  width: 100%;
  max-width: 480px;
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  background: #f8fafc;
  box-shadow: none;
}

@media (min-width: 768px) {
  .packing-shell {
    padding: 20px 16px;
    align-items: center;
  }

  .packing-shell__device {
    width: 430px;
    max-width: 430px;
    min-height: min(920px, calc(100dvh - 40px));
    max-height: calc(100dvh - 40px);
    border-radius: 28px;
    box-shadow:
      0 0 0 10px #1e293b,
      0 0 0 12px #334155,
      0 24px 48px rgba(15, 23, 42, 0.28);
    overflow: hidden;
  }
}

.packing-shell__bar {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 14px;
  padding-top: max(12px, env(safe-area-inset-top, 0px));
  background: linear-gradient(180deg, #1e40af 0%, #1d4ed8 100%);
  color: #fff;
}

.packing-shell__bar-start {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.packing-shell__logo {
  font-size: 1.25rem;
  line-height: 1;
}

.packing-shell__titles {
  min-width: 0;
}

.packing-shell__app-name {
  margin: 0;
  font-size: 0.9375rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.packing-shell__user {
  margin: 2px 0 0;
  font-size: 0.75rem;
  opacity: 0.9;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 180px;
}

.packing-shell__bar-actions {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  gap: 6px;
}

.packing-shell__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 10px;
  font-size: 0.75rem;
  font-weight: 700;
  color: #fff;
  text-decoration: none;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 8px;
}

.packing-shell__link:hover,
.packing-shell__link:focus-visible {
  background: rgba(255, 255, 255, 0.26);
  outline: none;
}

.packing-shell__link--muted {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.35);
}

.packing-shell__main {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  padding: 14px 14px max(20px, env(safe-area-inset-bottom, 0px));
}

.packing-app {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-bottom: 8px;
  flex: 1;
  min-height: 0;
}

.packing-start {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.packing-active-bar {
  display: flex;
  align-items: center;
  margin: 0;
}

.packing-active-bar__back {
  padding: 6px 10px;
  font-size: 0.8125rem;
  font-weight: 600;
  color: #475569;
  background: #fff;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  cursor: pointer;
}

.packing-active-bar__back:hover,
.packing-active-bar__back:focus-visible {
  color: #1d4ed8;
  border-color: #93c5fd;
  outline: none;
}

.packing-app.is-packing-active {
  gap: 6px;
}

.packing-app.is-packing-active .packing-flash {
  margin: 0;
  padding: 8px 10px;
  font-size: 0.8125rem;
}

.packing-app.is-packing-active .packing-order {
  flex: 1;
  min-height: 0;
  gap: 8px;
}

.packing-app.is-packing-active .packing-items {
  flex: 1;
  min-height: 120px;
  max-height: min(52vh, 420px);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.packing-app__hint {
  margin: 0;
  font-size: 0.8125rem;
  line-height: 1.4;
}

.packing-debug {
  margin: 0;
  padding: 10px;
  font-size: 0.6875rem;
  line-height: 1.35;
  white-space: pre-wrap;
  word-break: break-word;
  color: #7f1d1d;
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: 8px;
  max-height: 120px;
  overflow-y: auto;
}

.packing-modes {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}

@media (min-width: 480px) {
  .packing-modes {
    grid-template-columns: repeat(3, 1fr);
  }
}

.packing-modes__btn {
  padding: 12px 10px;
  font-size: 0.8125rem;
  font-weight: 700;
  color: #475569;
  background: #fff;
  border: 2px solid #e2e8f0;
  border-radius: 10px;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease;
}

.packing-modes__btn.is-active {
  color: #1d4ed8;
  background: #eff6ff;
  border-color: #93c5fd;
}

.packing-mode-panel__desc {
  margin: 0 0 10px;
  font-size: 0.8125rem;
  line-height: 1.4;
}

.packing-assigned-list {
  list-style: none;
  margin: 10px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 240px;
  overflow-y: auto;
}

.packing-assigned-item__btn {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  padding: 12px;
  text-align: left;
  background: #fff;
  border: 2px solid #e2e8f0;
  border-radius: 10px;
  cursor: pointer;
}

.packing-assigned-item__btn:hover,
.packing-assigned-item__btn:focus-visible {
  border-color: #93c5fd;
  background: #f8fafc;
  outline: none;
}

.packing-assigned-item__no {
  font-size: 0.9375rem;
  font-weight: 700;
  color: #0f172a;
}

.packing-assigned-item__pkg {
  font-size: 0.75rem;
  color: #64748b;
}

.packing-assigned-empty {
  margin-top: 8px;
  font-size: 0.8125rem;
}

.packing-print-status {
  margin: 12px 0;
  padding: 12px 14px;
  font-size: 0.875rem;
  font-weight: 600;
  border-radius: 10px;
  background: #fef3c7;
  color: #92400e;
  border: 2px solid #fcd34d;
}

.packing-print-status--ready {
  background: #dcfce7;
  color: #166534;
  border-color: #86efac;
}

.packing-label-scan {
  margin-top: 12px;
  padding: 14px 12px;
  border: 2px solid #f59e0b;
  border-radius: 12px;
  background: #fffbeb;
}

.packing-label-scan__lead {
  margin: 0 0 8px;
  font-size: 0.9375rem;
  font-weight: 700;
  color: #92400e;
  line-height: 1.35;
}

.packing-label-scan__expected {
  margin: 0 0 10px;
  font-size: 0.75rem;
  line-height: 1.4;
}

.packing-scan__input--label {
  font-size: 1.0625rem;
  font-weight: 600;
}

.packing-app.is-packing-active.packing-app--awaiting-label .packing-items,
.packing-app.is-packing-active.packing-app--awaiting-label #packing-item-scan {
  display: none !important;
}

.packing-document-pending {
  margin-top: 12px;
  padding: 14px 12px;
  border: 2px solid #f97316;
  border-radius: 12px;
  background: #fff7ed;
}

.packing-document-pending__lead {
  margin: 0 0 6px;
  font-size: 0.9375rem;
  font-weight: 700;
  color: #9a3412;
}

.packing-document-pending__hint {
  margin: 0;
  font-size: 0.8125rem;
  line-height: 1.4;
}

.packing-print-status--doc-pending {
  color: #9a3412;
  background: #ffedd5;
  border-color: #fdba74;
}

.packing-app.is-packing-active.packing-app--document-pending .packing-items,
.packing-app.is-packing-active.packing-app--document-pending #packing-item-scan {
  display: none !important;
}

.packing-item--flash-ok {
  animation: packing-flash-ok 0.6s ease;
}

.packing-item--flash-error {
  animation: packing-flash-error 0.6s ease;
}

@keyframes packing-flash-ok {
  0% { background-color: #bbf7d0; }
  100% { background-color: transparent; }
}

@keyframes packing-flash-error {
  0% { background-color: #fecaca; }
  100% { background-color: transparent; }
}

.packing-scan--item.packing-scan--locked .packing-scan__input {
  opacity: 0.55;
  pointer-events: none;
}

.packing-scan {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.packing-scan__label {
  font-size: 0.75rem;
  font-weight: 700;
  color: #475569;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.packing-scan__input {
  width: 100%;
  box-sizing: border-box;
  padding: 14px 16px;
  font-size: 1.125rem;
  font-weight: 600;
  border: 2px solid #cbd5e1;
  border-radius: 12px;
  background: #fff;
}

.packing-scan__input:focus {
  outline: none;
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.2);
}

.packing-scan__btn {
  width: 100%;
  padding: 12px 16px;
  font-size: 1rem;
}

.packing-flash {
  padding: 10px 12px;
  border-radius: 10px;
  font-size: 0.875rem;
  font-weight: 600;
}

.packing-flash--success {
  color: #166534;
  background: #dcfce7;
  border: 1px solid #86efac;
}

.packing-flash--error {
  color: #991b1b;
  background: #fee2e2;
  border: 1px solid #fca5a5;
}

.packing-flash--warning {
  background: #fffbeb;
  border-color: #f59e0b;
  color: #92400e;
}

.packing-flash--info {
  color: #1e40af;
  background: #eff6ff;
  border: 1px solid #93c5fd;
}

.packing-order {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.packing-order__head {
  padding: 10px 12px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
}

.packing-order__head--compact {
  padding: 8px 10px;
}

.packing-order__meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.packing-order__line {
  margin: 0;
  font-size: 0.8125rem;
  line-height: 1.35;
}

.packing-order__code {
  font-size: 0.9375rem;
  font-weight: 800;
  color: #0f172a;
}

.packing-order__no {
  margin: 0;
  font-size: 1rem;
}

.packing-order__label {
  font-size: 0.6875rem;
  font-weight: 700;
  color: #94a3b8;
  text-transform: uppercase;
  margin-right: 6px;
}

.packing-order__pkg {
  margin: 4px 0 0;
  font-size: 0.8125rem;
}

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

.packing-item {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  padding: 8px;
  background: #fff;
  border: 2px solid #e2e8f0;
  border-radius: 10px;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.packing-item__index {
  flex: 0 0 auto;
  width: 2.5rem;
  font-size: 0.6875rem;
  font-weight: 800;
  color: #64748b;
  line-height: 1.2;
  padding-top: 2px;
}

.packing-item--scan-error {
  border-color: #ef4444;
  background: #fef2f2;
}

.packing-item--partial {
  border-color: #fbbf24;
  background: #fffbeb;
}

.packing-item--done {
  border-color: #22c55e;
  background: #f0fdf4;
}

.packing-item--manual {
  border-color: #f59e0b;
  background: #fffbeb;
}

.packing-item--flash-manual {
  box-shadow: 0 0 0 2px #f59e0b;
}

.packing-item__status {
  display: block;
  font-size: 0.6875rem;
  font-weight: 700;
  margin-top: 4px;
}

.packing-item__status--manual {
  color: #b45309;
}

.packing-item__manual-btn {
  margin-top: 8px;
  width: 100%;
  padding: 8px 10px;
  font-size: 0.8125rem;
  font-weight: 700;
  border: 1px solid #f59e0b;
  border-radius: 8px;
  background: #fff7ed;
  color: #9a3412;
  cursor: pointer;
}

.packing-item__manual-btn:active {
  background: #ffedd5;
}

.packing-manual-dialog {
  border: none;
  border-radius: 12px;
  padding: 0;
  max-width: min(420px, calc(100vw - 24px));
  box-shadow: 0 12px 40px rgba(15, 23, 42, 0.2);
}

.packing-manual-dialog::backdrop {
  background: rgba(15, 23, 42, 0.45);
}

.packing-manual-dialog__form {
  padding: 16px 18px 18px;
}

.packing-manual-dialog__title {
  margin: 0 0 8px;
  font-size: 1.125rem;
  font-weight: 800;
}

.packing-manual-dialog__options {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 8px;
}

.packing-manual-dialog__option {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 0.875rem;
  cursor: pointer;
}

.packing-manual-dialog__actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  margin-top: 16px;
}

.packing-item__media img {
  display: block;
  width: 48px;
  height: 64px;
  object-fit: contain;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: #fff;
}

.packing-item__body {
  flex: 1;
  min-width: 0;
}

.packing-item__name {
  margin: 0 0 4px;
  font-size: 0.875rem;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}

.packing-item__counts {
  margin: 0;
  font-size: 0.75rem;
  font-weight: 600;
  color: #475569;
  display: flex;
  flex-wrap: wrap;
  gap: 4px 8px;
  align-items: center;
}

.packing-item__qty {
  font-weight: 700;
  color: #0f172a;
}

.packing-item__barcode {
  font-size: 0.75rem;
  color: #64748b;
  font-weight: 500;
}

.packing-item__shelf {
  margin: 4px 0 0;
  font-size: 0.75rem;
  color: #1d4ed8;
  font-weight: 600;
}

.packing-order__footer {
  display: flex;
  flex-direction: column;
  gap: 8px;
  position: sticky;
  bottom: 8px;
  padding-top: 4px;
}

.packing-complete-btn {
  width: 100%;
  padding: 14px 16px;
  font-size: 1.0625rem;
  font-weight: 700;
}

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

.packing-reset-btn {
  width: 100%;
}

.packing-reset-btn--secondary {
  width: auto;
  align-self: center;
  padding: 8px 14px;
  font-size: 0.8125rem;
  font-weight: 600;
}
/* V6.14A — Desktop / touch packing station */
.packing-station-page .erp-layout__content {
  padding-bottom: 0;
}

.packing-station {
  display: flex;
  flex-direction: column;
  min-height: calc(100vh - 120px);
  gap: 16px;
}

.packing-station__topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 4px 0;
}

.packing-station__title {
  margin: 0;
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  font-weight: 700;
}

.packing-station__user {
  margin: 4px 0 0;
  font-size: 1rem;
}

.packing-station__idle {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 24px;
  padding: 48px 24px;
}

.packing-station__idle-hint {
  margin: 0;
  font-size: 1.25rem;
  color: var(--muted);
  text-align: center;
}

.packing-station__workspace {
  flex: 1;
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(320px, 2fr) minmax(240px, 1fr);
  gap: 16px;
  min-height: 0;
}

.packing-station__col {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  overflow: auto;
}

.packing-station__section-title {
  margin: 0 0 16px;
  font-size: 1.125rem;
  font-weight: 700;
}

.packing-station__facts {
  margin: 0;
  display: grid;
  gap: 12px;
}

.packing-station__facts dt {
  margin: 0;
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
}

.packing-station__facts dd {
  margin: 2px 0 0;
  font-size: 1.25rem;
  font-weight: 600;
  word-break: break-word;
}

.packing-station__items {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 14px;
}

.packing-station__item {
  display: flex;
  gap: 14px;
  padding: 14px;
  border: 2px solid var(--border);
  border-radius: 12px;
  background: #fafbfc;
}

.packing-station__item.is-complete {
  border-color: #16a34a;
  background: #f0fdf4;
}

.packing-station__item-img {
  flex: 0 0 88px;
  width: 88px;
  height: 88px;
  border-radius: 10px;
  background: #eef1f6;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  overflow: hidden;
}

.packing-station__item-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.packing-station__item-body {
  flex: 1;
  min-width: 0;
}

.packing-station__item-name {
  margin: 0 0 8px;
  font-size: 1.0625rem;
  line-height: 1.35;
}

.packing-station__item-barcode {
  margin: 0 0 8px;
  font-size: 0.9375rem;
}

.packing-station__item-qty {
  margin: 0;
  font-size: 1.375rem;
}

.packing-station__actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.packing-station__cargo-block {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-top: 8px;
  border-top: 1px solid var(--border);
}

.packing-station__label {
  font-size: 1rem;
  font-weight: 600;
}

.packing-station__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 20px;
  border-radius: 12px;
  border: 1px solid transparent;
  font-size: 1.0625rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s, border-color 0.15s, opacity 0.15s;
}

.packing-station__btn--xl {
  min-height: 72px;
  min-width: min(100%, 420px);
  font-size: 1.5rem;
  padding: 20px 32px;
}

.packing-station__btn--block {
  width: 100%;
}

.packing-station__btn--primary {
  background: var(--accent);
  color: #fff;
}

.packing-station__btn--primary:hover:not(:disabled) {
  background: var(--accent-hover);
}

.packing-station__btn--secondary {
  background: #eef2ff;
  color: #1e3a8a;
  border-color: #c7d2fe;
}

.packing-station__btn--ghost {
  background: transparent;
  border-color: var(--border);
  color: var(--text);
}

.packing-station__btn:disabled,
.packing-station__btn.is-disabled {
  opacity: 0.45;
  cursor: not-allowed;
  pointer-events: none;
}

.packing-station__scanbar {
  position: sticky;
  bottom: 0;
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 12px 16px;
  align-items: center;
  padding: 16px 20px;
  background: #1a1d26;
  color: #fff;
  border-radius: var(--radius) var(--radius) 0 0;
}

.packing-station__scanbar-label {
  font-size: 1rem;
  font-weight: 600;
}

.packing-station__scan-input {
  width: 100%;
  min-height: 56px;
  padding: 12px 16px;
  font-size: 1.375rem;
  border: 2px solid #4b5563;
  border-radius: 10px;
  background: #111827;
  color: #fff;
}

.packing-station__scan-input--bar {
  grid-column: 2;
}

.packing-station__scan-input:focus {
  outline: none;
  border-color: var(--accent);
}

.packing-station__flash {
  grid-column: 1 / -1;
  margin: 0;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 1.0625rem;
  font-weight: 600;
}

.packing-station__flash--success {
  background: #14532d;
  color: #dcfce7;
}

.packing-station__flash--error {
  background: #7f1d1d;
  color: #fee2e2;
}

.packing-station__flash--info {
  background: #1e3a8a;
  color: #dbeafe;
}

.packing-station__print-status {
  margin: 0;
  font-size: 0.9375rem;
  line-height: 1.4;
}

@media (max-width: 1100px) {
  .packing-station__workspace {
    grid-template-columns: 1fr;
  }
}

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

  .packing-station__scan-input--bar {
    grid-column: 1;
  }
}

/* V6.15A — Zero-click kiosk packing station */
.packing-station-page--kiosk .erp-sidebar,
.packing-station-page--kiosk #erp-bottom-quickbar,
.packing-station-page--kiosk #erp-quickbar,
.packing-station-page--kiosk .erp-topbar {
  display: none !important;
}

.packing-station-page--kiosk .erp-layout__main {
  margin-left: 0 !important;
  width: 100% !important;
}

.packing-station-page--kiosk .erp-layout__content,
.packing-station-page--kiosk .page-content {
  padding: 0 !important;
  max-width: none !important;
}

.packing-station-page--kiosk .packing-station {
  min-height: 100vh;
  padding: 12px 16px 24px;
}

.packing-station__kiosk-bar {
  display: flex;
  align-items: center;
  padding: 4px 0 12px;
}

.packing-station__back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 16px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
}

.packing-station__back-link:hover {
  background: #f3f4f6;
}

.packing-station__status-banner {
  text-align: center;
  padding: 20px 16px 12px;
}

.packing-station__status-title {
  margin: 0;
  font-size: clamp(2rem, 5vw, 3.25rem);
  font-weight: 800;
  letter-spacing: 0.04em;
  line-height: 1.1;
}

.packing-station__status-hint {
  margin: 10px 0 0;
  font-size: clamp(1rem, 2vw, 1.25rem);
}

.packing-station__status-banner--awaiting_print .packing-station__status-title,
.packing-station__status-banner--ready_to_complete .packing-station__status-title {
  color: #2563eb;
}

.packing-station__status-banner--awaiting_label .packing-station__status-title {
  color: #d97706;
}

.packing-station__status-banner--done .packing-station__status-title {
  color: #16a34a;
}

.packing-station-page--kiosk .packing-station__workspace {
  grid-template-columns: minmax(200px, 0.9fr) minmax(360px, 2.4fr);
}

.packing-station__scan-group {
  width: 100%;
}

.packing-station-page--kiosk .packing-station__scanbar {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 12px;
  margin-top: auto;
  padding: 16px 0 8px;
  border-top: 1px solid var(--border);
}

.packing-station-page--kiosk .packing-station__scan-input--bar {
  width: 100%;
  min-height: 64px;
  font-size: 1.375rem;
}

.packing-station__open-label {
  align-self: center;
  min-width: min(100%, 420px);
  text-align: center;
  text-decoration: none;
}

.packing-station__done {
  min-height: 40vh;
}

/* V6.15B — Real kiosk (scanner-only terminal) */
.packing-station-page--real-kiosk .erp-sidebar,
.packing-station-page--real-kiosk #erp-bottom-quickbar,
.packing-station-page--real-kiosk #erp-quickbar,
.packing-station-page--real-kiosk .erp-topbar {
  display: none !important;
}

.packing-station-page--real-kiosk .erp-layout__main {
  margin-left: 0 !important;
  width: 100% !important;
}

.packing-station-page--real-kiosk .erp-layout__content,
.packing-station-page--real-kiosk .page-content {
  padding: 0 !important;
  max-width: none !important;
}

.packing-station-page--real-kiosk .packing-station {
  min-height: 100vh;
  padding: 4px 12px 12px;
}

.packing-station-page--real-kiosk .packing-station__kiosk-bar {
  padding: 0 0 4px;
}

.packing-station-page--real-kiosk .packing-station__back-link {
  padding: 4px 10px;
  font-size: 0.8125rem;
  border-radius: 8px;
}

.packing-station-page--real-kiosk .packing-station__status-banner {
  padding: 6px 8px 2px;
}

.packing-station-page--real-kiosk .packing-station__status-title {
  font-size: clamp(1.5rem, 4vw, 2.5rem);
}

.packing-station-page--real-kiosk .packing-station__status-hint {
  margin-top: 4px;
  font-size: clamp(0.875rem, 1.6vw, 1rem);
}

.packing-station-page--real-kiosk .packing-station__idle,
.packing-station-page--real-kiosk #ps-next-order,
.packing-station-page--real-kiosk .packing-station__scanbar,
.packing-station-page--real-kiosk .packing-station__open-label {
  display: none !important;
}

.packing-station--active .packing-station__idle,
.packing-station--active #ps-next-order {
  display: none !important;
}

.packing-station-page--real-kiosk .packing-station__scan-ghost {
  position: fixed;
  left: 0;
  top: 0;
  width: 1px;
  height: 1px;
  margin: 0;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
  opacity: 0;
  pointer-events: none;
}

.packing-station-page--real-kiosk .packing-station__scan-input--ghost {
  position: absolute;
  width: 1px;
  height: 1px;
  min-height: 0;
  margin: 0;
  padding: 0;
  border: 0;
  opacity: 0;
  pointer-events: none;
}

.packing-station-page--real-kiosk .packing-station__flash {
  margin: 6px 0 0;
  font-size: 0.9375rem;
}

.packing-station-page--real-kiosk .packing-station__workspace {
  grid-template-columns: minmax(180px, 0.85fr) minmax(320px, 2.5fr);
  gap: 12px;
}

.packing-station-page--real-kiosk .erp-layout__main,
.packing-station-page--real-kiosk .erp-layout__content,
.packing-station-page--real-kiosk .page-content {
  padding-bottom: 12px !important;
}

/* V6.15C — Full-screen packing terminal */
.packing-station-page--terminal .erp-sidebar,
.packing-station-page--terminal #erp-bottom-quickbar,
.packing-station-page--terminal #erp-quickbar,
.packing-station-page--terminal .erp-topbar,
.packing-station-page--terminal .erp-layout__page-header,
.packing-station-page--terminal .page-header,
.packing-station-page--terminal .breadcrumbs,
.packing-station-page--terminal .erp-topbar__titles,
.packing-station-page--terminal .packing-station__scan-debug {
  display: none !important;
  visibility: hidden !important;
  height: 0 !important;
  min-height: 0 !important;
  overflow: hidden !important;
  pointer-events: none !important;
}

.packing-station-page--kiosk.packing-station-page--terminal .erp-layout__main {
  margin-left: 0 !important;
  width: 100% !important;
  padding-top: 0 !important;
}

.packing-station-page--terminal .erp-layout__main {
  margin-left: 0 !important;
  width: 100% !important;
}

.packing-station-page--terminal .erp-layout__content,
.packing-station-page--terminal .page-content {
  padding: 0 !important;
  max-width: none !important;
}

.packing-station-page--terminal .packing-station {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100dvh;
  padding: 4px 10px 10px;
  box-sizing: border-box;
}

.packing-station-page--terminal .packing-station__kiosk-bar {
  flex: 0 0 auto;
  padding: 0 0 4px;
}

.packing-station-page--terminal .packing-station__back-link {
  padding: 6px 12px;
  font-size: 0.875rem;
  border-radius: 8px;
}

.packing-station-page--terminal .packing-station__status-banner {
  flex: 0 0 auto;
  padding: 4px 8px 8px;
  text-align: center;
}

.packing-station-page--terminal .packing-station__status-title {
  font-size: clamp(1.35rem, 3.5vw, 2.25rem);
}

.packing-station-page--terminal .packing-station__status-hint {
  margin-top: 4px;
  font-size: clamp(0.875rem, 1.5vw, 1rem);
}

.packing-station-page--terminal .packing-station__workspace {
  flex: 1 1 auto;
  min-height: 0;
  grid-template-columns: minmax(200px, 0.9fr) minmax(280px, 2.2fr) minmax(240px, 1fr);
  gap: 10px;
}

.packing-station-page--terminal .packing-station__col--actions {
  position: relative;
  display: flex;
  flex-direction: column;
  padding-bottom: 96px;
}

.packing-station-page--terminal .packing-station__actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1 1 auto;
}

.packing-station-page--terminal .packing-station__btn--touch {
  min-height: 80px;
  font-size: 1.0625rem;
  border-radius: 14px;
  touch-action: manipulation;
}

.packing-station-page--terminal .packing-station__next-square {
  position: absolute;
  right: 12px;
  bottom: 12px;
  width: min(100% - 24px, 220px);
  min-height: 88px;
  aspect-ratio: 1;
  max-height: 220px;
  padding: 12px;
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(37, 99, 235, 0.25);
  touch-action: manipulation;
}

.packing-station-page--terminal .packing-station__next-square-label {
  display: block;
  font-size: clamp(0.95rem, 2vw, 1.125rem);
  line-height: 1.25;
  font-weight: 700;
}

.packing-station-page--terminal .packing-station--active .packing-station__next-square {
  opacity: 0.45;
}

.packing-station-page--terminal .packing-station__items-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 200px;
  text-align: center;
  font-size: 1.125rem;
  padding: 24px;
}

.packing-station-page--terminal .packing-station__item.is-complete {
  border-color: #22c55e;
  background: #f0fdf4;
}

.packing-station-page--terminal .packing-station__scan-ghost {
  position: fixed;
  left: 0;
  top: 0;
  width: 1px;
  height: 1px;
  margin: 0;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
  opacity: 0;
  pointer-events: none;
}

.packing-station-page--terminal .packing-station__scan-input--ghost {
  position: absolute;
  width: 1px;
  height: 1px;
  min-height: 0;
  margin: 0;
  padding: 0;
  border: 0;
  opacity: 0;
  pointer-events: none;
}

.packing-station-page--terminal .packing-station__flash--success {
  color: #15803d;
}

.packing-station-page--terminal .packing-station__flash--error {
  color: #b91c1c;
}

.packing-station-page--terminal .erp-layout__main,
.packing-station-page--terminal .erp-layout__content,
.packing-station-page--terminal .page-content {
  padding-bottom: 0 !important;
}

@media (max-width: 960px) {
  .packing-station-page--terminal .packing-station__workspace {
    grid-template-columns: 1fr;
    grid-template-rows: auto 1fr auto;
  }

  .packing-station-page--terminal .packing-station__col--actions {
    padding-bottom: 88px;
  }

  .packing-station-page--terminal .packing-station__next-square {
    width: 120px;
    min-height: 120px;
    max-height: 120px;
  }
}

/* V7.0A — Warehouse OS (ERP layout yok) */
.warehouse-os {
  --warehouse-bar-height: 56px;
  --warehouse-bg: #0b1220;
  --warehouse-surface: #111827;
  --warehouse-border: rgba(148, 163, 184, 0.18);
  --warehouse-text: #e2e8f0;
  --warehouse-muted: #94a3b8;
  --warehouse-accent: #38bdf8;
  background: var(--warehouse-bg);
  color: var(--warehouse-text);
  min-height: 100vh;
  min-height: 100dvh;
}

.warehouse-os__shell {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

.warehouse-os__bar {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: var(--warehouse-bar-height);
  padding: 8px 14px;
  border-bottom: 1px solid var(--warehouse-border);
  background: rgba(15, 23, 42, 0.96);
  backdrop-filter: blur(8px);
}

.warehouse-os__bar-start {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.warehouse-os__brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: inherit;
  text-decoration: none;
}

.warehouse-os__brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: linear-gradient(135deg, #0ea5e9, #6366f1);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.warehouse-os__brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.warehouse-os__brand-text strong {
  font-size: 0.95rem;
}

.warehouse-os__brand-text small {
  color: var(--warehouse-muted);
  font-size: 0.72rem;
}

.warehouse-os__module-pill {
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid var(--warehouse-border);
  color: var(--warehouse-muted);
  font-size: 0.78rem;
}

.warehouse-os__bar-nav {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
  margin-right: auto;
}

.warehouse-os__nav-link {
  padding: 8px 12px;
  border-radius: 10px;
  color: var(--warehouse-muted);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 600;
}

.warehouse-os__nav-link:hover,
.warehouse-os__nav-link.is-active {
  color: var(--warehouse-text);
  background: rgba(56, 189, 248, 0.12);
}

.warehouse-os__bar-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
}

.warehouse-os__user {
  color: var(--warehouse-muted);
  font-size: 0.82rem;
  max-width: 160px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.warehouse-os__action-link {
  color: var(--warehouse-accent);
  text-decoration: none;
  font-size: 0.84rem;
  font-weight: 600;
}

.warehouse-os__action-link--muted {
  color: var(--warehouse-muted);
}

.warehouse-os__main {
  flex: 1 1 auto;
  min-height: 0;
}

.warehouse-os__hub {
  max-width: 1080px;
  margin: 0 auto;
  padding: 28px 18px 40px;
}

.warehouse-os__hub-title {
  margin: 0 0 8px;
  font-size: clamp(1.5rem, 3vw, 2rem);
}

.warehouse-os__hub-lead {
  margin: 0 0 24px;
  color: var(--warehouse-muted);
}

.warehouse-os__tiles {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.warehouse-os__tile {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 180px;
  padding: 20px;
  border-radius: 16px;
  border: 1px solid var(--warehouse-border);
  background: var(--warehouse-surface);
  color: inherit;
  text-decoration: none;
  transition: transform 0.15s ease, border-color 0.15s ease;
}

.warehouse-os__tile:hover {
  transform: translateY(-2px);
  border-color: rgba(56, 189, 248, 0.45);
}

.warehouse-os__tile h2 {
  margin: 0;
  font-size: 1.25rem;
}

.warehouse-os__tile p {
  margin: 0;
  color: var(--warehouse-muted);
  flex: 1;
}

.warehouse-os__tile-cta {
  color: var(--warehouse-accent);
  font-weight: 700;
}

.warehouse-os__tile--disabled {
  opacity: 0.55;
}

.warehouse-os__tile-badge {
  align-self: flex-start;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.12);
  color: var(--warehouse-muted);
  font-size: 0.75rem;
}

.warehouse-os__module-placeholder {
  max-width: 720px;
  margin: 0 auto;
  padding: 36px 18px;
}

.warehouse-os__module-title {
  margin: 0 0 10px;
  font-size: 1.6rem;
}

.warehouse-os__module-lead {
  margin: 0 0 20px;
  color: var(--warehouse-muted);
  line-height: 1.5;
}

.warehouse-os__module-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.warehouse-os__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 16px;
  border-radius: 12px;
  border: 1px solid var(--warehouse-border);
  background: transparent;
  color: var(--warehouse-text);
  text-decoration: none;
  font-weight: 600;
}

.warehouse-os__btn--primary {
  border-color: rgba(56, 189, 248, 0.35);
  background: rgba(56, 189, 248, 0.14);
  color: #bae6fd;
}

.warehouse-os--kiosk .warehouse-os__main {
  padding: 0;
}

.warehouse-os--kiosk .warehouse-os__bar {
  padding-inline: 10px;
}

.warehouse-os--kiosk .warehouse-os__bar-nav {
  display: none;
}

.warehouse-os--kiosk .warehouse-os__module-pill {
  display: none;
}

.warehouse-os--kiosk.packing-station-page--terminal .packing-station {
  min-height: calc(100dvh - var(--warehouse-bar-height));
  padding: 4px 10px 10px;
}

.warehouse-os--kiosk .packing-station__kiosk-bar {
  padding-top: 0;
}

@media (max-width: 900px) {
  .warehouse-os__bar {
    flex-wrap: wrap;
  }

  .warehouse-os__bar-nav {
    order: 3;
    width: 100%;
    margin: 0;
    overflow-x: auto;
  }

  .warehouse-os--kiosk .warehouse-os__bar-nav {
    display: none;
  }
}

/* V7.0B — Barcode station (panel + warehouse) */
.barcode-station-shell--warehouse {
  max-width: 1180px;
  margin: 0 auto;
  padding: 16px 14px 28px;
}

.barcode-station-shell__warehouse-intro {
  margin-bottom: 16px;
}

.barcode-station-shell__hub-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 10px;
  color: var(--warehouse-accent);
  text-decoration: none;
  font-weight: 600;
}

.barcode-station-shell__warehouse-title {
  margin: 0 0 6px;
  font-size: clamp(1.35rem, 2.5vw, 1.75rem);
}

.barcode-station-shell__warehouse-lead {
  margin: 0;
  color: var(--warehouse-muted);
}

.barcode-station-grid {
  display: grid;
  gap: 20px;
}

@media (min-width: 960px) {
  .barcode-station-grid {
    grid-template-columns: 1fr 1.1fr;
    align-items: start;
  }
}

.barcode-station-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 16px 18px;
}

.barcode-station-shell--warehouse .barcode-station-card {
  background: var(--warehouse-surface);
  border-color: var(--warehouse-border);
}

.barcode-station-card h2 {
  margin: 0 0 12px;
  font-size: 1.05rem;
}

.barcode-station-search {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.barcode-station-search__input,
.barcode-station-search input[type="search"],
.barcode-station-search input[type="number"],
.barcode-station-qty {
  flex: 1 1 180px;
  min-width: 0;
  padding: 10px 12px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
}

.barcode-station-shell--warehouse .barcode-station-search__input,
.barcode-station-shell--warehouse .barcode-station-qty {
  min-height: 48px;
  font-size: 1rem;
  background: rgba(15, 23, 42, 0.55);
  border-color: var(--warehouse-border);
  color: var(--warehouse-text);
}

.barcode-station-results {
  list-style: none;
  margin: 12px 0 0;
  padding: 0;
}

.barcode-station-results li {
  border-bottom: 1px solid #f3f4f6;
}

.barcode-station-shell--warehouse .barcode-station-results li {
  border-bottom-color: var(--warehouse-border);
}

.barcode-station-results__link,
.barcode-station-results a {
  display: block;
  padding: 10px 8px;
  text-decoration: none;
  color: inherit;
  border-radius: 8px;
}

.barcode-station-shell--warehouse .barcode-station-results__link {
  padding: 14px 12px;
}

.barcode-station-results__link:hover,
.barcode-station-results__link.is-active,
.barcode-station-results a:hover,
.barcode-station-results a.is-active {
  background: #eff6ff;
}

.barcode-station-shell--warehouse .barcode-station-results__link:hover,
.barcode-station-shell--warehouse .barcode-station-results__link.is-active {
  background: rgba(56, 189, 248, 0.12);
}

.barcode-station-results small {
  color: #6b7280;
  display: block;
  margin-top: 2px;
}

.barcode-station-shell--warehouse .barcode-station-results small {
  color: var(--warehouse-muted);
}

.barcode-station-variants {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.barcode-station-variant {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  cursor: pointer;
}

.barcode-station-shell--warehouse .barcode-station-variant {
  min-height: 56px;
  padding: 14px 14px;
  border-color: var(--warehouse-border);
}

.barcode-station-variant.is-selected {
  border-color: #2563eb;
  background: #eff6ff;
}

.barcode-station-shell--warehouse .barcode-station-variant.is-selected {
  border-color: rgba(56, 189, 248, 0.55);
  background: rgba(56, 189, 248, 0.12);
}

.barcode-station-preview {
  margin-top: 16px;
  padding: 14px;
  border: 1px dashed #cbd5e1;
  border-radius: 10px;
  text-align: center;
  background: #f8fafc;
}

.barcode-station-shell--warehouse .barcode-station-preview {
  background: rgba(15, 23, 42, 0.45);
  border-color: var(--warehouse-border);
}

.barcode-station-preview__name {
  font-weight: 700;
  font-size: 0.95rem;
  margin: 0 0 4px;
}

.barcode-station-preview__variant {
  color: #475569;
  font-size: 0.85rem;
  margin: 0 0 10px;
}

.barcode-station-shell--warehouse .barcode-station-preview__variant {
  color: var(--warehouse-muted);
}

.barcode-station-preview__code {
  font-family: ui-monospace, monospace;
  font-size: 1rem;
  letter-spacing: 0.06em;
  margin: 8px 0 0;
}

.barcode-station-preview__svg svg {
  max-width: 100%;
  height: auto;
}

.barcode-station-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
  align-items: flex-end;
}

.barcode-station-shell--warehouse .barcode-station-actions {
  gap: 12px;
}

.barcode-station-empty {
  color: #6b7280;
  font-size: 0.9rem;
  margin: 8px 0 0;
}

.barcode-station-shell--warehouse .barcode-station-empty {
  color: var(--warehouse-muted);
}

.barcode-station-qty-wrap {
  min-width: 120px;
}

.barcode-station-qty {
  max-width: 120px;
}

.barcode-station-confirm {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  margin: 12px 0;
  font-size: 0.9rem;
}

.barcode-station-generate {
  margin-top: 14px;
  padding: 12px;
  background: #fffbeb;
  border-color: #fde68a;
}

.barcode-station-shell--warehouse .barcode-station-generate {
  background: rgba(251, 191, 36, 0.08);
  border-color: rgba(251, 191, 36, 0.35);
}

.barcode-station-btn {
  min-height: 44px;
}

.barcode-station-shell--warehouse .barcode-station-btn {
  min-height: 52px;
  padding-inline: 18px;
  font-size: 1rem;
  font-weight: 600;
}

.barcode-station-btn--primary {
  font-weight: 700;
}

/* V7.1 — Warehouse packing terminal (full kiosk) */
.packing-station-page--v71.warehouse-os--kiosk .warehouse-os__bar {
  display: none;
}

.packing-station-page--v71.warehouse-os--kiosk .warehouse-os__main {
  padding: 0;
  min-height: 100vh;
  min-height: 100dvh;
}

.packing-station-page--v71 .packing-station {
  min-height: 100vh;
  min-height: 100dvh;
  padding: 0;
  background: #0b1220;
  color: #e2e8f0;
}

.packing-station--v71 {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100dvh;
}

.packing-station__kiosk-bar--admin {
  flex: 0 0 auto;
  padding: 8px 12px;
  background: rgba(15, 23, 42, 0.95);
  border-bottom: 1px solid rgba(148, 163, 184, 0.15);
}

.packing-terminal__grid {
  flex: 1 1 auto;
  display: grid;
  grid-template-columns: minmax(240px, 0.95fr) minmax(420px, 2.4fr) minmax(220px, 0.85fr);
  gap: 14px;
  min-height: 0;
  padding: 14px;
  box-sizing: border-box;
}

.packing-terminal__col {
  min-height: 0;
  display: flex;
  flex-direction: column;
  background: rgba(15, 23, 42, 0.72);
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: 14px;
  overflow: hidden;
}

.packing-terminal__col--queue {
  padding: 14px 12px;
  display: flex;
  flex-direction: column;
}

.packing-terminal__col--queue #ps-refresh-queue {
  margin-top: auto;
  flex-shrink: 0;
}

.packing-terminal__col--main {
  padding: 14px;
  gap: 8px;
}

.packing-terminal__col--actions {
  padding: 14px 12px;
  gap: 14px;
}

.packing-terminal__queue-title {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: #94a3b8;
}

.packing-terminal__queue-meta {
  margin: 6px 0 12px;
  font-size: 0.875rem;
  color: #64748b;
}

.packing-terminal__queue-list {
  list-style: none;
  margin: 0;
  padding: 0;
  flex: 1 1 auto;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
  user-select: none;
}

.packing-terminal__queue-item {
  padding: 12px 12px;
  border-radius: 10px;
  background: rgba(30, 41, 59, 0.65);
  border: 1px solid rgba(148, 163, 184, 0.12);
  display: grid;
  gap: 4px;
}

.packing-terminal__queue-item.is-next {
  border-color: rgba(56, 189, 248, 0.45);
  background: rgba(14, 116, 144, 0.22);
}

.packing-terminal__queue-order {
  font-weight: 800;
  font-size: 1rem;
  color: #f8fafc;
}

.packing-terminal__queue-customer {
  font-size: 0.9rem;
  color: #cbd5e1;
}

.packing-terminal__queue-count {
  font-size: 0.8125rem;
  color: #64748b;
}

.packing-terminal__queue-empty {
  margin: 0 0 12px;
  color: #64748b;
  font-size: 0.875rem;
}

.packing-terminal__queue-stat {
  margin: 0;
  font-size: 0.9375rem;
  color: #94a3b8;
}

.packing-terminal__queue-stat strong {
  color: #38bdf8;
  font-size: 1.25rem;
}

.packing-terminal__order-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 12px;
  padding: 9px 11px;
  border-radius: 10px;
  background: rgba(30, 41, 59, 0.75);
  border: 1px solid rgba(56, 189, 248, 0.25);
}

.packing-terminal__lock-badge {
  font-size: 0.6875rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #38bdf8;
  padding: 3px 7px;
  border-radius: 999px;
  background: rgba(56, 189, 248, 0.12);
}

.packing-terminal__order-no {
  font-size: 1.0625rem;
  font-weight: 800;
  color: #f8fafc;
}

.packing-terminal__order-meta {
  font-size: 0.8125rem;
  color: #cbd5e1;
}

.packing-terminal__order-meta--accent {
  color: #fbbf24;
  font-weight: 700;
}

/* V7.1B — Product image visibility & row layout */
/* V7.1C — Density optimization (100×150 images, tighter rows) */
.packing-terminal__items {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-content: start;
  padding-right: 4px;
}

.packing-terminal__item {
  display: grid;
  grid-template-columns: 100px minmax(0, 1fr) auto;
  gap: 10px 12px;
  align-items: center;
  padding: 10px 14px;
  border-radius: 12px;
  background: rgba(30, 41, 59, 0.72);
  border: 1px solid rgba(148, 163, 184, 0.14);
}

.packing-terminal__item.is-complete {
  border-color: rgba(34, 197, 94, 0.45);
  background: rgba(22, 101, 52, 0.18);
}

.packing-terminal__item-img {
  width: 100px;
  height: 150px;
  flex-shrink: 0;
  border-radius: 8px;
  overflow: hidden;
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
}

.packing-terminal__item-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center center;
}

.packing-terminal__item-body {
  min-width: 0;
}

.packing-terminal__item-name {
  margin: 0 0 4px;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.25;
  color: #f8fafc;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.packing-terminal__item-variant {
  margin: 0 0 4px;
  font-size: 14px;
  color: #94a3b8;
}

.packing-terminal__item-barcode {
  margin: 0;
  font-size: 13px;
  color: #64748b;
  font-family: ui-monospace, monospace;
}

.packing-terminal__item-qty {
  margin: 0;
  flex-shrink: 0;
  padding-left: 10px;
  text-align: right;
  font-size: 1.125rem;
  color: #e2e8f0;
  white-space: nowrap;
}

.packing-terminal__item-qty strong {
  color: #38bdf8;
  font-size: 1.5rem;
}

.packing-terminal__empty {
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #64748b;
  font-size: 1rem;
  padding: 24px;
}

.packing-terminal__scan-status {
  flex: 0 0 auto;
  margin-top: auto;
  min-height: 42px;
  max-height: 45px;
  padding: 4px 10px;
  border-radius: 8px;
  border: 1px dashed rgba(148, 163, 184, 0.28);
  background: rgba(15, 23, 42, 0.55);
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  box-sizing: border-box;
}

.packing-terminal__scan-title {
  margin: 0;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1.15;
  color: #e2e8f0;
}

.packing-terminal__scan-hint {
  margin: 1px 0 0;
  font-size: 0.6875rem;
  line-height: 1.1;
  color: #64748b;
}

.packing-station--cargo .packing-terminal__scan-status {
  border-color: rgba(251, 191, 36, 0.45);
  background: rgba(120, 53, 15, 0.22);
}

.packing-station--cargo .packing-terminal__scan-title {
  color: #fbbf24;
}

.packing-terminal__actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: auto;
}

.packing-terminal__btn {
  min-height: 56px;
  padding: 12px 16px;
  border-radius: 12px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  background: rgba(30, 41, 59, 0.85);
  color: #e2e8f0;
  font-size: 0.9375rem;
  font-weight: 700;
  cursor: pointer;
  touch-action: manipulation;
}

.packing-terminal__btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.packing-terminal__btn--ghost:hover:not(:disabled) {
  border-color: rgba(56, 189, 248, 0.4);
}

.packing-terminal__btn--danger {
  border-color: rgba(248, 113, 113, 0.35);
  color: #fecaca;
}

.packing-terminal__toast {
  position: fixed;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1200;
  margin: 0;
  padding: 10px 16px;
  border-radius: 10px;
  font-weight: 600;
  max-width: min(92vw, 640px);
}

.packing-terminal__toast--success {
  background: rgba(22, 101, 52, 0.95);
  color: #ecfdf5;
}

.packing-terminal__toast--error {
  background: rgba(127, 29, 29, 0.95);
  color: #fef2f2;
}

.packing-terminal__flash-overlay {
  position: fixed;
  inset: 0;
  z-index: 1100;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.12s ease-out;
}

.packing-terminal__flash-overlay--success {
  opacity: 0.22;
  background: #22c55e;
}

.packing-terminal__flash-overlay--error {
  opacity: 0.24;
  background: #ef4444;
}

.packing-station-page--v71 .packing-station__scan-ghost {
  position: fixed;
  left: -9999px;
  top: 0;
  width: 1px;
  height: 1px;
  opacity: 0;
  overflow: hidden;
}

@media (max-width: 1200px) {
  .packing-terminal__grid {
    grid-template-columns: minmax(200px, 0.85fr) minmax(320px, 2fr);
    grid-template-rows: auto 1fr;
  }

  .packing-terminal__col--actions {
    grid-column: 1 / -1;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
  }

  .packing-terminal__actions {
    flex-direction: row;
    margin-top: 0;
    margin-left: auto;
  }
}

@media (max-width: 860px) {
  .packing-terminal__grid {
    grid-template-columns: 1fr;
  }

  .packing-terminal__item {
    grid-template-columns: 100px minmax(0, 1fr);
    grid-template-rows: auto auto;
  }

  .packing-terminal__item-qty {
    grid-column: 2;
    text-align: left;
    padding-left: 0;
    padding-top: 4px;
  }
}

/* V7.2 — Trendyol cargo provider change (Warehouse OS) */
body.cargo-change-modal-open {
  overflow: hidden;
}

.cargo-change-modal {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.cargo-change-modal[hidden] {
  display: none !important;
}

.cargo-change-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.72);
}

.cargo-change-modal__panel {
  position: relative;
  width: min(920px, 100%);
  max-height: calc(100vh - 32px);
  overflow: auto;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 24px 64px rgba(15, 23, 42, 0.35);
  padding: 20px 22px 18px;
}

.cargo-change-modal__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.cargo-change-modal__title {
  margin: 0;
  font-size: 1.35rem;
}

.cargo-change-modal__close {
  border: 0;
  background: transparent;
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
  color: #64748b;
}

.cargo-change-modal__meta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 10px;
  margin-bottom: 16px;
  padding: 12px 14px;
  border-radius: 12px;
  background: #f8fafc;
}

.cargo-change-modal__meta p {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 0.85rem;
  color: #64748b;
}

.cargo-change-modal__meta strong {
  color: #0f172a;
  font-size: 1rem;
}

.cargo-change-modal__lead,
.cargo-change-modal__confirm-text {
  margin: 0 0 12px;
  font-size: 1rem;
}

.cargo-change-modal__confirm-detail {
  margin: 0 0 16px;
  font-size: 1.05rem;
}

.cargo-change-modal__providers {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}

.cargo-change-modal__provider {
  min-height: 72px;
  border: 2px solid #cbd5e1;
  border-radius: 14px;
  background: #fff;
  padding: 14px 16px;
  text-align: left;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  position: relative;
}

.cargo-change-modal__provider:hover:not(:disabled) {
  border-color: #2563eb;
}

.cargo-change-modal__provider.is-selected {
  border-color: #2563eb;
  background: #eff6ff;
}

.cargo-change-modal__provider.is-current {
  opacity: 0.72;
}

.cargo-change-modal__badge {
  position: absolute;
  top: 8px;
  right: 8px;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  color: #475569;
  background: #e2e8f0;
  border-radius: 999px;
  padding: 2px 8px;
}

.cargo-change-modal__error {
  margin: 10px 0 0;
  color: #b91c1c;
  font-weight: 600;
}

.cargo-change-modal__actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 18px;
}

.warehouse-cargo {
  padding: 8px 0 24px;
}

.warehouse-cargo__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.warehouse-cargo__title {
  margin: 0 0 6px;
  font-size: 1.5rem;
}

.warehouse-cargo__lead {
  margin: 0;
  max-width: 720px;
  color: #475569;
}

.warehouse-cargo__status {
  margin: 0 0 12px;
  color: #334155;
}

.warehouse-cargo__status--error {
  color: #b91c1c;
}

.warehouse-cargo__status--success {
  color: #047857;
}

.warehouse-cargo__table-wrap {
  overflow: auto;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  background: #fff;
}

.warehouse-cargo__table {
  width: 100%;
  border-collapse: collapse;
  min-width: 760px;
}

.warehouse-cargo__table th,
.warehouse-cargo__table td {
  padding: 12px 14px;
  border-bottom: 1px solid #e2e8f0;
  text-align: left;
  vertical-align: middle;
}

.warehouse-cargo__table th {
  background: #f8fafc;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: #64748b;
}

.warehouse-os__btn--ghost {
  background: #fff;
  border: 1px solid #cbd5e1;
  color: #0f172a;
}

.warehouse-os__btn--small {
  min-height: 38px;
  padding: 8px 14px;
  font-size: 0.9rem;
}

/* V7.6 — Warehouse packing fixed terminal dashboard */
.packing-station-page--v76,
.packing-station-page--v76 .erp-layout__main,
.packing-station-page--v76 .erp-layout__content,
.packing-station-page--v76 .page-content,
.packing-station-page--v76 .warehouse-os__main {
  height: 100vh;
  height: 100dvh;
  max-height: 100vh;
  max-height: 100dvh;
  overflow: hidden;
  overscroll-behavior: none;
}

.packing-station-page--v76 {
  touch-action: manipulation;
}

.packing-station-page--v76 .packing-station {
  height: 100%;
  max-height: 100%;
  min-height: 0;
  overflow: hidden;
}

.packing-station--v76 {
  display: flex;
  flex-direction: column;
  height: 100%;
  max-height: 100%;
  min-height: 0;
  overflow: hidden;
}

.packing-terminal__dashboard {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 20px;
  overflow: hidden;
}

.packing-terminal__dashboard-inner {
  width: min(920px, 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
  text-align: center;
}

.packing-terminal__dashboard-title {
  margin: 0;
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 800;
  letter-spacing: 0.08em;
  color: #f8fafc;
}

.packing-terminal__dashboard-stats {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.packing-terminal__stat {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 18px 14px;
  border-radius: 14px;
  background: rgba(15, 23, 42, 0.82);
  border: 1px solid rgba(148, 163, 184, 0.18);
}

.packing-terminal__stat-value {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800;
  line-height: 1;
  color: #38bdf8;
}

.packing-terminal__stat-label {
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #94a3b8;
}

.packing-terminal__btn--prepare {
  min-width: min(100%, 520px);
  min-height: 88px;
  font-size: clamp(1.25rem, 3vw, 1.75rem);
  font-weight: 800;
  letter-spacing: 0.06em;
  border-radius: 16px;
  background: linear-gradient(180deg, #0ea5e9 0%, #0284c7 100%);
  color: #fff;
  border: 1px solid rgba(56, 189, 248, 0.45);
  box-shadow: 0 10px 30px rgba(14, 165, 233, 0.25);
}

.packing-terminal__btn--prepare:disabled {
  opacity: 0.55;
}

.packing-terminal__dashboard-footer {
  display: flex;
  flex-direction: column;
  gap: 8px;
  color: #94a3b8;
  font-size: 0.9375rem;
}

.packing-terminal__dashboard-status {
  margin: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.packing-terminal__status-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #64748b;
}

.packing-terminal__status-dot--ready {
  background: #22c55e;
  box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.18);
}

.packing-terminal__dashboard-updated {
  margin: 0;
  font-size: 0.8125rem;
  color: #64748b;
}

.packing-terminal__counter-bar {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px 18px;
  padding: 10px 16px;
  background: rgba(15, 23, 42, 0.95);
  border-bottom: 1px solid rgba(148, 163, 184, 0.16);
  font-size: 1rem;
  color: #cbd5e1;
}

.packing-terminal__counter-item strong {
  color: #38bdf8;
  font-size: 1.25rem;
}

.packing-terminal__counter-sep {
  color: #475569;
}

.packing-terminal__grid--v76 {
  grid-template-columns: minmax(0, 1fr) minmax(260px, 0.75fr);
  flex: 1 1 auto;
  min-height: 0;
  overflow: hidden;
}

.packing-station--workspace .packing-terminal__grid--v76 {
  display: grid;
}

.packing-station--dashboard .packing-terminal__grid--v76 {
  display: none;
}

.packing-terminal__grid--v76 .packing-terminal__col--main {
  min-height: 0;
  overflow: hidden;
}

.packing-terminal__grid--v76 .packing-terminal__items {
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}

.packing-terminal__grid--v76 .packing-terminal__col--actions {
  overflow: hidden;
}

@media (max-width: 900px) {
  .packing-terminal__dashboard-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .packing-terminal__grid--v76 {
    grid-template-columns: 1fr;
    grid-template-rows: minmax(0, 1fr) auto;
  }
}

@media (max-width: 520px) {
  .packing-terminal__dashboard-stats {
    grid-template-columns: 1fr;
  }
}

/* V8.0 — Warehouse Packing Premium Terminal */
.packing-station-page--v80,
.packing-station-page--v80 .warehouse-os__main,
.packing-station-page--v80 .warehouse-os__shell {
  height: 100vh;
  height: 100dvh;
  max-height: 100vh;
  max-height: 100dvh;
  overflow: hidden;
  overscroll-behavior: none;
}

.packing-station-page--v80 {
  touch-action: manipulation;
  background: #0f172a;
}

.packing-station-page--v80 .warehouse-os__bar {
  flex: 0 0 auto;
}

.packing-station-page--v80 .warehouse-os__main {
  min-height: 0;
  display: flex;
  flex-direction: column;
}

.packing-station--v80 {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  color: #e2e8f0;
  background: #0f172a;
}

.pst-kpi {
  flex: 0 0 auto;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr)) auto;
  gap: 12px;
  align-items: stretch;
  padding: 12px 16px 10px;
  background: #0f172a;
  border-bottom: 1px solid rgba(148, 163, 184, 0.12);
}

.pst-kpi__card {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  min-height: 72px;
  padding: 10px 14px;
  border-radius: 12px;
  background: #1e293b;
  border: 1px solid rgba(148, 163, 184, 0.14);
}

.pst-kpi__label {
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: #94a3b8;
}

.pst-kpi__value {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 800;
  line-height: 1;
  color: #f8fafc;
}

.pst-kpi__card--done .pst-kpi__value { color: #22c55e; }
.pst-kpi__card--left .pst-kpi__value { color: #f59e0b; }
.pst-kpi__card--total .pst-kpi__value { color: #2563eb; }
.pst-kpi__card--progress .pst-kpi__value { color: #a78bfa; }

.pst-kpi__updated {
  grid-column: 1 / -1;
  margin: 0;
  font-size: 0.8125rem;
  color: #64748b;
  text-align: right;
}

.pst-dashboard {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  overflow: hidden;
}

.packing-station--workspace .pst-dashboard {
  display: none;
}

.pst-dashboard__inner {
  width: min(760px, 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  text-align: center;
}

.pst-dashboard__title {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  letter-spacing: 0.06em;
  color: #f8fafc;
}

.pst-dashboard__lead {
  margin: 0;
  font-size: 1.0625rem;
  color: #94a3b8;
}

.pst-dashboard__status {
  margin: 0;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #94a3b8;
}

.pst-workspace {
  flex: 1 1 auto;
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(280px, 0.95fr) minmax(520px, 1.8fr) minmax(280px, 0.9fr);
  gap: 14px;
  padding: 14px 16px 16px;
  overflow: hidden;
}

.packing-station--dashboard .pst-workspace {
  display: none;
}

.pst-col {
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  overflow: hidden;
}

.pst-col--left,
.pst-col--right {
  overflow-y: auto;
  overscroll-behavior: contain;
}

.pst-col--center {
  min-width: 0;
}

.pst-panel {
  padding: 14px;
  border-radius: 14px;
  background: #1e293b;
  border: 1px solid rgba(148, 163, 184, 0.12);
}

.pst-panel--address {
  background: linear-gradient(180deg, #1e293b 0%, #172033 100%);
}

.pst-panel--summary {
  margin-top: auto;
}

.pst-panel__title {
  margin: 0 0 12px;
  font-size: 0.8125rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: #94a3b8;
}

.pst-facts {
  margin: 0;
  display: grid;
  gap: 10px;
}

.pst-facts > div {
  display: grid;
  gap: 2px;
}

.pst-facts dt {
  margin: 0;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #64748b;
}

.pst-facts dd {
  margin: 0;
  font-size: 0.9375rem;
  font-weight: 600;
  color: #f8fafc;
  word-break: break-word;
}

.pst-facts--compact dd {
  font-size: 0.875rem;
}

.pst-address-line {
  margin: 0 0 6px;
  font-size: 0.9375rem;
  line-height: 1.45;
  color: #e2e8f0;
}

.pst-address-meta {
  margin: 0;
  font-size: 0.875rem;
  color: #94a3b8;
}

.pst-tracking-no {
  font-size: 1.125rem !important;
  letter-spacing: 0.04em;
  color: #2563eb !important;
}

.pst-barcode-visual {
  margin-top: 12px;
  padding: 10px;
  border-radius: 10px;
  background: #f8fafc;
  border: 1px dashed rgba(37, 99, 235, 0.35);
}

.pst-barcode-svg {
  width: 100%;
  height: 48px;
  display: block;
}

.pst-barcode-value {
  margin-top: 6px;
  font-family: ui-monospace, monospace;
  font-size: 0.8125rem;
  text-align: center;
  color: #0f172a;
}

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

.pst-lock-badge {
  font-size: 0.6875rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #2563eb;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(37, 99, 235, 0.12);
}

.pst-items {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-right: 4px;
}

.pst-items-empty {
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #64748b;
  font-size: 1rem;
}

.pst-item {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 12px 14px;
  border-radius: 14px;
  background: #1e293b;
  border: 2px solid rgba(148, 163, 184, 0.12);
  transition: border-color 0.15s, background 0.15s, box-shadow 0.15s;
}

.pst-item.is-complete {
  border-color: rgba(34, 197, 94, 0.45);
  background: rgba(34, 197, 94, 0.08);
}

.pst-item.is-active {
  border-color: rgba(37, 99, 235, 0.65);
  background: rgba(37, 99, 235, 0.1);
  box-shadow: 0 0 0 1px rgba(37, 99, 235, 0.25);
}

.pst-item__img {
  width: 110px;
  height: 130px;
  border-radius: 10px;
  overflow: hidden;
  background: #0f172a;
  border: 1px solid rgba(148, 163, 184, 0.14);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
}

.pst-item__img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.pst-item__name {
  margin: 0 0 6px;
  font-size: 1.0625rem;
  font-weight: 700;
  line-height: 1.3;
  color: #f8fafc;
}

.pst-item__meta {
  margin: 0 0 4px;
  font-size: 0.8125rem;
  color: #94a3b8;
}

.pst-item__barcode {
  margin: 0;
  font-family: ui-monospace, monospace;
  font-size: 0.75rem;
  color: #64748b;
}

.pst-item__barcode--missing {
  display: inline-block;
  margin-top: 2px;
  padding: 2px 8px;
  border-radius: 999px;
  font-family: inherit;
  font-size: 0.6875rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: #fecaca;
  background: rgba(127, 29, 29, 0.45);
  border: 1px solid rgba(248, 113, 113, 0.55);
}

.pst-item__barcode--manual-pass {
  display: inline-block;
  margin-top: 2px;
  padding: 2px 8px;
  border-radius: 999px;
  font-family: inherit;
  font-size: 0.6875rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: #fde68a;
  background: rgba(120, 53, 15, 0.45);
  border: 1px solid rgba(251, 191, 36, 0.55);
}

.pst-item.is-manual-pass.is-complete {
  border-color: rgba(251, 191, 36, 0.45);
}

.pst-item.is-missing-barcode:not(.is-complete) {
  border-color: rgba(248, 113, 113, 0.45);
}

.pst-missing-barcode-gate {
  margin: 0 0 12px;
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(127, 29, 29, 0.18);
  border: 1px solid rgba(248, 113, 113, 0.35);
}

.pst-missing-barcode-gate__message {
  margin: 0 0 10px;
  color: #fecaca;
  font-size: 0.9375rem;
  line-height: 1.45;
}

.pst-missing-barcode-gate__skip {
  width: 100%;
  min-height: 52px;
}

.packing-terminal__item-barcode--missing {
  display: inline-block;
  margin-top: 4px;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: #b91c1c;
  background: #fee2e2;
  border: 1px solid #fca5a5;
}

.packing-terminal__item-barcode--manual-pass {
  display: inline-block;
  margin-top: 4px;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: #92400e;
  background: #fef3c7;
  border: 1px solid #fcd34d;
}

.pst-manual-pass-report {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgba(15, 23, 42, 0.72);
}

.pst-manual-pass-report[hidden] {
  display: none !important;
}

.pst-manual-pass-report__panel {
  width: min(520px, 100%);
  max-height: min(80vh, 640px);
  overflow: auto;
  padding: 18px 20px;
  border-radius: 14px;
  background: #0f172a;
  border: 1px solid rgba(251, 191, 36, 0.35);
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.35);
}

.pst-manual-pass-report__title {
  margin: 0 0 8px;
  font-size: 1.125rem;
  color: #fde68a;
}

.pst-manual-pass-report__lead {
  margin: 0 0 12px;
  color: #cbd5e1;
  font-size: 0.9375rem;
  line-height: 1.45;
}

.pst-manual-pass-report__list {
  margin: 0 0 16px;
  padding: 0;
  list-style: none;
}

.pst-manual-pass-report__list li {
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(30, 41, 59, 0.85);
  border: 1px solid rgba(148, 163, 184, 0.2);
}

.pst-manual-pass-report__list li + li {
  margin-top: 8px;
}

.pst-manual-pass-report__list strong {
  display: block;
  color: #f8fafc;
  font-size: 0.9375rem;
}

.pst-manual-pass-report__list span {
  display: block;
  margin-top: 4px;
  color: #94a3b8;
  font-size: 0.8125rem;
}

.pst-manual-pass-report__dismiss {
  width: 100%;
  min-height: 52px;
}

.pst-item__qty {
  text-align: right;
  white-space: nowrap;
  font-size: 1.125rem;
  color: #cbd5e1;
}

.pst-item__qty strong {
  display: block;
  font-size: 1.75rem;
  color: #2563eb;
}

.pst-item.is-complete .pst-item__qty strong {
  color: #22c55e;
}

.pst-scan-zone {
  flex: 0 0 auto;
  margin-top: 10px;
  padding: 16px 18px;
  border-radius: 16px;
  background: linear-gradient(180deg, #172033 0%, #1e293b 100%);
  border: 2px dashed rgba(37, 99, 235, 0.35);
  text-align: center;
}

.pst-scan-zone__title {
  margin: 0 0 6px;
  font-size: clamp(1.125rem, 2vw, 1.5rem);
  font-weight: 800;
  letter-spacing: 0.05em;
  color: #f8fafc;
}

.pst-scan-zone__hint {
  margin: 0 0 10px;
  font-size: 0.9375rem;
  color: #94a3b8;
}

.pst-scan-zone__last {
  margin: 0 0 8px;
  font-size: 0.875rem;
  color: #64748b;
}

.pst-scan-zone__last strong {
  color: #e2e8f0;
  font-family: ui-monospace, monospace;
}

.pst-scan-zone__ready {
  margin: 0;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.875rem;
  color: #22c55e;
}

.packing-station--cargo .pst-scan-zone {
  border-color: rgba(245, 158, 11, 0.45);
}

.packing-station--awaiting-print .pst-scan-zone__title {
  color: #f59e0b;
}

.pst-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.pst-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  padding: 14px 18px;
  border: 1px solid transparent;
  border-radius: 14px;
  font-size: 0.9375rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: transform 0.12s, opacity 0.12s, box-shadow 0.12s;
}

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

.pst-btn:not(:disabled):active {
  transform: scale(0.98);
}

.pst-btn--prepare {
  min-width: min(100%, 560px);
  min-height: 96px;
  font-size: clamp(1.35rem, 3vw, 1.85rem);
  color: #fff;
  background: linear-gradient(180deg, #2563eb 0%, #1d4ed8 100%);
  box-shadow: 0 12px 32px rgba(37, 99, 235, 0.28);
}

.pst-auto-next-order {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 0;
  padding: 10px 14px;
  color: #cbd5e1;
  font-size: 1rem;
  line-height: 1.4;
  cursor: pointer;
  user-select: none;
}

.pst-auto-next-order input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin: 0;
  cursor: pointer;
  accent-color: #2563eb;
}

.pst-btn--primary {
  color: #fff;
  background: #2563eb;
}

.pst-btn--purple {
  color: #fff;
  background: #7c3aed;
}

.pst-btn--success {
  color: #fff;
  background: #22c55e;
}

.pst-btn--danger {
  color: #fff;
  background: #ef4444;
}

.pst-btn--ghost,
.pst-btn--back {
  color: #cbd5e1;
  background: transparent;
  border-color: rgba(148, 163, 184, 0.24);
  min-height: 44px;
}

.pst-status-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #64748b;
}

.pst-status-dot--ready {
  background: #22c55e;
  box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.18);
}

.pst-flash-overlay.packing-terminal__flash-overlay--success,
.pst-flash-overlay.packing-terminal__flash-overlay--error {
  pointer-events: none;
}

.pst-toast {
  z-index: 30;
}

.packing-station--scan-success .pst-scan-zone {
  animation: pstScanSuccess 0.35s ease;
}

.packing-station--scan-error .pst-scan-zone {
  animation: pstScanError 0.35s ease;
}

@keyframes pstScanSuccess {
  0%, 100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); background-color: transparent; }
  50% { box-shadow: inset 0 0 0 9999px rgba(34, 197, 94, 0.12); }
}

@keyframes pstScanError {
  0%, 100% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); }
  50% { box-shadow: inset 0 0 0 9999px rgba(239, 68, 68, 0.12); }
}

@media (max-width: 1400px) {
  .pst-workspace {
    grid-template-columns: minmax(240px, 0.85fr) minmax(420px, 1.5fr) minmax(240px, 0.8fr);
  }
}

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

  .pst-workspace {
    grid-template-columns: 1fr;
    grid-template-rows: auto minmax(0, 1fr) auto;
    overflow-y: auto;
  }

  .pst-col--left,
  .pst-col--right {
    overflow: visible;
  }
}

/* V8.1 — Warehouse Packing Terminal (kiosk touch revision) */
html:has(body.packing-station-page--v81),
body.packing-station-page--v81,
.packing-station-page--v81 .warehouse-os__main,
.packing-station-page--v81 .warehouse-os__shell {
  height: 100vh;
  height: 100dvh;
  max-height: 100vh;
  max-height: 100dvh;
  overflow: hidden;
  overscroll-behavior: none;
}

.packing-station-page--v81 .warehouse-os__bar--packing {
  min-height: 52px;
  padding: 6px 16px;
  gap: 12px;
}

.packing-station-page--v81 .warehouse-os__bar-start {
  display: flex;
  align-items: center;
  gap: 16px;
  min-width: 0;
}

.packing-station-page--v81 .warehouse-os__brand-mark {
  width: 36px;
  height: 36px;
  font-size: 0.75rem;
}

.packing-station-page--v81 .warehouse-os__brand-text strong {
  font-size: 0.9375rem;
}

.packing-station-page--v81 .warehouse-os__brand-text small {
  font-size: 0.75rem;
}

.warehouse-os__scanner-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(34, 197, 94, 0.1);
  border: 1px solid rgba(34, 197, 94, 0.22);
  font-size: 0.8125rem;
  font-weight: 700;
  color: #86efac;
  white-space: nowrap;
}

.packing-station-page--v81:has(.packing-station--cargo) .warehouse-os__scanner-status {
  background: rgba(245, 158, 11, 0.1);
  border-color: rgba(245, 158, 11, 0.25);
  color: #fcd34d;
}

.packing-station-page--v81:has(.packing-station--cargo) .warehouse-os__scanner-status .pst-status-dot--ready {
  background: #f59e0b;
  box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.18);
}

.packing-station-page--v81 .warehouse-os__user {
  font-size: 0.875rem;
}

.packing-station-page--v81 .warehouse-os__action-link {
  font-size: 0.8125rem;
  padding: 8px 12px;
}

.warehouse-os__ops-link {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 8px;
  font-size: 0.75rem;
  font-weight: 700;
  color: #94a3b8;
  text-decoration: none;
  border: 1px solid rgba(148, 163, 184, 0.18);
  white-space: nowrap;
  transition: color 0.12s, border-color 0.12s, background 0.12s;
}

.warehouse-os__ops-link:hover {
  color: #e2e8f0;
  border-color: rgba(148, 163, 184, 0.35);
  background: rgba(148, 163, 184, 0.08);
}

.pst-kpi--compact {
  padding: 8px 16px 6px;
}

.pst-kpi--compact .pst-kpi__row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr)) auto;
  gap: 10px;
  align-items: center;
  width: 100%;
}

.pst-kpi--compact .pst-kpi__card {
  min-height: 54px;
  padding: 6px 12px;
  gap: 4px;
  border-radius: 10px;
}

.pst-kpi--compact .pst-kpi__label {
  font-size: 0.6875rem;
}

.pst-kpi--compact .pst-kpi__value {
  font-size: clamp(1.35rem, 2.2vw, 1.85rem);
}

.pst-kpi--compact .pst-kpi__updated {
  grid-column: auto;
  margin: 0;
  padding-left: 8px;
  font-size: 0.75rem;
  white-space: nowrap;
  text-align: right;
}

.pst-workspace--v81 {
  grid-template-columns: 22% 56% 22%;
  gap: 12px;
  padding: 10px 14px 12px;
}

.pst-workspace--v81 .pst-col--left,
.pst-workspace--v81 .pst-col--right {
  overflow: hidden;
}

.pst-panel--unified {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 10px 12px;
  overflow: hidden;
}

.pst-panel__section {
  padding: 8px 0;
  border-bottom: 1px solid rgba(148, 163, 184, 0.12);
}

.pst-panel__section--last {
  border-bottom: 0;
  padding-bottom: 0;
}

.pst-panel__section .pst-panel__title {
  margin: 0 0 8px;
  font-size: 0.6875rem;
}

.pst-panel__section .pst-barcode-visual {
  margin-top: 8px;
  padding: 8px;
}

.pst-panel__section .pst-barcode-svg {
  height: 40px;
}

.pst-workspace--v81 .pst-facts {
  gap: 6px;
}

.pst-workspace--v81 .pst-facts > div {
  gap: 1px;
}

.pst-workspace--v81 .pst-facts dt {
  font-size: 0.625rem;
}

.pst-workspace--v81 .pst-facts dd {
  font-size: 0.8125rem;
  line-height: 1.35;
}

.pst-workspace--v81 .pst-tracking-no {
  font-size: 1.0625rem !important;
}

.pst-items-meta {
  flex: 0 0 auto;
  margin: 0 0 8px;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #94a3b8;
}

.pst-items--v81 {
  flex: 1 1 auto;
  min-height: 0;
  gap: 12px;
}

.pst-item--v81 {
  grid-template-columns: 140px minmax(0, 1fr) 96px;
  gap: 16px;
  padding: 14px 16px;
  border-radius: 16px;
}

.pst-item--v81 .pst-item__img {
  width: 140px;
  height: 160px;
}

.pst-item--v81 .pst-item__name {
  font-size: 1.2rem;
  margin-bottom: 8px;
}

.pst-item--v81 .pst-item__meta,
.pst-item--v81 .pst-item__barcode {
  font-size: 0.9375rem;
  margin-bottom: 4px;
}

.pst-item--v81 .pst-item__qty {
  font-size: 1rem;
}

.pst-item--v81 .pst-item__qty strong {
  font-size: 2.25rem;
}

.pst-scan-bar {
  flex: 0 0 auto;
  max-height: 85px;
  min-height: 70px;
  margin-top: 8px;
  padding: 0 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-radius: 10px;
  background: #172033;
  border: 1px solid rgba(148, 163, 184, 0.16);
  transition: background 0.15s, border-color 0.15s, box-shadow 0.15s;
}

.pst-scan-bar__segment {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.pst-scan-bar__segment--last {
  flex: 1 1 auto;
  font-size: 0.8125rem;
  color: #94a3b8;
}

.pst-scan-bar__segment--last strong {
  font-family: ui-monospace, monospace;
  font-size: 1rem;
  font-weight: 700;
  color: #f8fafc;
  word-break: break-all;
}

.pst-scan-bar__segment--last-error {
  color: #fca5a5;
}

.pst-scan-bar__segment--last-error strong {
  color: #ef4444;
}

.pst-scan-bar__segment--last-ok strong {
  color: #86efac;
}

.pst-scan-bar__icon {
  font-size: 1rem;
  color: #64748b;
}

.pst-scan-bar__label {
  white-space: nowrap;
}

.pst-scan-bar__divider {
  flex: 0 0 auto;
  color: rgba(148, 163, 184, 0.35);
  font-size: 1.125rem;
}

.pst-scan-bar__segment--ready {
  flex: 0 0 auto;
  font-size: 0.875rem;
  font-weight: 700;
  color: #86efac;
  white-space: nowrap;
}

.packing-station--cargo .pst-scan-bar__segment--ready {
  color: #fcd34d;
}

.packing-station--scan-success .pst-scan-bar {
  animation: pstScanBarSuccess 0.35s ease;
}

.packing-station--scan-error .pst-scan-bar {
  animation: pstScanBarError 0.35s ease;
}

@keyframes pstScanBarSuccess {
  0%, 100% { background: #172033; border-color: rgba(148, 163, 184, 0.16); }
  50% { background: rgba(34, 197, 94, 0.22); border-color: rgba(34, 197, 94, 0.45); }
}

@keyframes pstScanBarError {
  0%, 100% { background: #172033; border-color: rgba(148, 163, 184, 0.16); }
  50% { background: rgba(239, 68, 68, 0.2); border-color: rgba(239, 68, 68, 0.45); }
}

.pst-actions--v81 {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 0;
}

.pst-actions__title {
  margin: 0 0 4px;
  flex: 0 0 auto;
}

.pst-btn--action {
  min-height: 72px;
  font-size: 1rem;
  border-radius: 16px;
  letter-spacing: 0.05em;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.35);
}

@media (min-width: 1600px) {
  .pst-workspace--v81 {
    grid-template-columns: 22% 56% 22%;
  }

  .pst-btn--action {
    min-height: 78px;
    font-size: 1.0625rem;
  }

  .pst-item--v81 .pst-item__name {
    font-size: 1.28rem;
  }
}

@media (max-width: 1400px) {
  .packing-station-page--v81 .pst-workspace--v81 {
    grid-template-columns: 24% 52% 24%;
  }
}

@media (max-width: 1100px) {
  .packing-station-page--v81 .pst-kpi--compact .pst-kpi__row {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .packing-station-page--v81:not(.packing-station-page--v82) .pst-kpi--compact .pst-kpi__updated {
    grid-column: 1 / -1;
    text-align: right;
  }

  .packing-station-page--v81 .pst-workspace,
  .packing-station-page--v81 .pst-workspace--v81 {
    grid-template-columns: 22% 56% 22%;
    grid-template-rows: none;
    overflow: hidden;
  }

  .packing-station-page--v81 .pst-col--left,
  .packing-station-page--v81 .pst-col--right {
    overflow: hidden;
  }
}

/* V8.2 — Warehouse Packing Premium Final UI */
body.packing-station-page--v82 {
  --pst-bg: #07111f;
  --pst-panel: #111827;
  --pst-panel-2: #1e293b;
  --pst-border: rgba(148, 163, 184, 0.18);
  --pst-blue: #2563eb;
  --pst-green: #22c55e;
  --pst-red: #ef4444;
  --pst-purple: #7c3aed;
  --pst-orange: #f59e0b;
  --pst-text: #f8fafc;
  --pst-muted: #94a3b8;
  height: 100vh;
  height: 100dvh;
  max-height: 100vh;
  max-height: 100dvh;
  overflow: hidden;
  overscroll-behavior: none;
  background: var(--pst-bg);
}

html:has(body.packing-station-page--v82) {
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
  overscroll-behavior: none;
  background: var(--pst-bg);
}

.packing-station-page--v82 .warehouse-os__shell,
.packing-station-page--v82 .warehouse-os__main {
  background: var(--pst-bg);
}

.packing-station--v82 {
  background: var(--pst-bg);
  color: var(--pst-text);
  gap: 18px;
}

.packing-station-page--v82 .warehouse-os__bar--packing {
  background: rgba(7, 17, 31, 0.96);
  border-bottom: 1px solid var(--pst-border);
}

.pst-kpi.pst-kpi--premium {
  display: block;
  flex: 0 0 auto;
  min-height: 0;
  margin-top: 8px;
  margin-bottom: 0;
  padding: 8px 16px 10px;
  box-sizing: border-box;
  background: var(--pst-bg);
  border-bottom: 1px solid var(--pst-border);
  overflow: hidden;
}

.pst-kpi--premium .pst-kpi__row,
.pst-kpi-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(150px, 1fr));
  gap: 12px;
  align-items: stretch;
  width: 100%;
  min-width: 0;
}

.pst-kpi--premium .pst-kpi__card,
.pst-kpi-card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  min-height: 108px;
  height: 100%;
  min-width: 0;
  padding: 12px 14px;
  border-radius: 16px;
  background: var(--pst-panel);
  border: 1px solid var(--pst-border);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.22);
}

.pst-kpi--premium .pst-kpi__icon {
  position: absolute;
  top: 10px;
  right: 12px;
  width: 20px;
  height: 20px;
  font-size: 14px;
  line-height: 20px;
  text-align: center;
  opacity: 0.85;
}

.pst-kpi--premium .pst-kpi__label,
.pst-kpi-title {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 0.6875rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--pst-muted);
}

.pst-kpi--premium .pst-kpi__card--updated .pst-kpi__label {
  font-size: 0.625rem;
  letter-spacing: 0.08em;
  white-space: normal;
  line-height: 1.15;
}

.pst-kpi--premium .pst-kpi__hint {
  display: block;
  max-width: 100%;
  font-size: 0.5625rem;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 0.04em;
  color: var(--pst-muted);
  opacity: 0.9;
  white-space: normal;
}

.pst-kpi--premium .pst-kpi__card--done .pst-kpi__hint {
  color: rgba(34, 197, 94, 0.75);
}

.pst-kpi--premium .pst-kpi__value,
.pst-kpi-value {
  font-size: clamp(1.5rem, 2.5vw, 2.75rem);
  line-height: 1;
  font-weight: 900;
  color: var(--pst-text);
  font-variant-numeric: tabular-nums;
}

.pst-kpi--premium .pst-kpi__value--time,
.pst-kpi-clock {
  font-size: clamp(1.05rem, 1.6vw, 1.5rem);
  line-height: 1.1;
  font-weight: 800;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: 0.02em;
  color: var(--pst-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

@media (max-width: 1359px) {
  .pst-kpi--premium .pst-kpi__row,
  .pst-kpi-grid {
    grid-template-columns: repeat(3, minmax(150px, 1fr));
  }
}

@media (max-width: 899px) {
  .pst-kpi--premium .pst-kpi__row,
  .pst-kpi-grid {
    grid-template-columns: repeat(2, minmax(140px, 1fr));
  }
}

.pst-kpi--premium .pst-kpi__card--done .pst-kpi__value { color: var(--pst-green); }
.pst-kpi--premium .pst-kpi__card--left .pst-kpi__value { color: var(--pst-orange); }
.pst-kpi--premium .pst-kpi__card--cargo .pst-kpi__value { color: #0ea5e9; }
.pst-kpi--premium .pst-kpi__card--delivered .pst-kpi__value { color: #64748b; }
.pst-kpi--premium .pst-kpi__card--total .pst-kpi__value { color: var(--pst-blue); }
.pst-kpi--premium .pst-kpi__card--progress .pst-kpi__value { color: #a78bfa; }
.pst-kpi--premium .pst-kpi__card--updated .pst-kpi__value { color: var(--pst-text); }

/* V8.3 Micro Polish — dashboard CTA label typography */
.pst-dashboard-start-btn,
#ps-start-btn,
#ps-prepare-order {
  font-size: 34px;
  font-weight: 900;
  letter-spacing: 0.04em;
}

.pst-workspace--v82 {
  grid-template-columns: 24% 52% 24%;
  gap: 18px;
  padding: 12px 18px 14px;
}

.packing-station-page--v82 .pst-panel {
  background: var(--pst-panel);
  border-color: var(--pst-border);
}

.packing-station-page--v82 .pst-panel--unified {
  padding: 10px 14px;
}

.packing-station-page--v82 .pst-panel__section {
  padding: 10px 0;
}

.packing-station-page--v82 .pst-panel__title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  font-size: 0.75rem;
  color: var(--pst-muted);
}

.packing-station-page--v82 .pst-panel__icon {
  font-size: 0.875rem;
  line-height: 1;
}

.packing-station-page--v82 .pst-tracking-no {
  font-size: 1.125rem !important;
  color: var(--pst-blue) !important;
}

.packing-station-page--v82 .pst-barcode-visual,
.packing-station-page--v82 #ps-tracking-barcode,
.packing-station-page--v82 .pst-cargo-barcode,
.packing-station-page--v82 .pst-tracking-barcode,
.packing-station-page--v82 .pst-shipment-barcode {
  display: none !important;
}

.packing-station-page--v82 .pst-items-meta,
.packing-station-page--v82 #ps-items-meta {
  display: none !important;
  margin: 0 !important;
  padding: 0 !important;
  height: 0 !important;
  overflow: hidden !important;
}

.pst-item--v82 {
  grid-template-columns: 132px minmax(0, 1fr) 110px;
  gap: 14px;
  align-items: start;
  min-height: 150px;
  padding: 14px 16px;
  border-radius: 16px;
  background: var(--pst-panel-2);
  border: 2px solid var(--pst-border);
}

.pst-item--v82 .pst-item__img {
  width: 132px;
  height: 132px;
  flex: 0 0 132px;
  border-radius: 12px;
  background: var(--pst-bg);
}

.pst-item--v82 .pst-item__img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.pst-item--v82 .pst-item__name {
  margin: 0 0 3px;
  font-size: 17px;
  font-weight: 800;
  line-height: 1.18;
  max-height: 40px;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  color: var(--pst-text);
}

.pst-item--v82 .pst-item__body {
  min-height: 0;
  max-height: 132px;
  overflow: hidden;
}

.pst-item--v82 .pst-item__meta,
.pst-item--v82 .pst-item__barcode,
.pst-item--v82 .pst-item__sku {
  margin: 0 0 1px;
  font-size: 12.5px;
  line-height: 1.22;
  color: var(--pst-muted);
}

.pst-item--v82.is-active {
  border-color: rgba(37, 99, 235, 0.75);
  background: rgba(37, 99, 235, 0.12);
  box-shadow: 0 0 0 1px rgba(37, 99, 235, 0.25);
}

.pst-item--v82.is-complete {
  border-color: rgba(34, 197, 94, 0.55);
  background: rgba(34, 197, 94, 0.1);
}

.pst-item--v82 .pst-item__qty {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: center;
  gap: 8px;
  font-size: 1.0625rem;
  color: var(--pst-muted);
}

.pst-item--v82 .pst-item__qty strong {
  font-size: 2.5rem;
  color: var(--pst-blue);
}

.pst-item--v82.is-complete .pst-item__qty strong {
  color: var(--pst-green);
}

.pst-item__done-label {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--pst-green);
  background: rgba(34, 197, 94, 0.14);
  border: 1px solid rgba(34, 197, 94, 0.28);
}

.pst-item__done-icon {
  font-size: 0.875rem;
  font-weight: 900;
}

.packing-station-page--v82 .pst-scan-bar {
  flex: 0 0 76px;
  max-height: 76px;
  min-height: 76px;
  background: var(--pst-panel);
  border: 1px solid var(--pst-border);
  border-radius: 12px;
}

.packing-station--scan-success .pst-scan-bar {
  animation: pstScanBarSuccessV82 0.35s ease;
}

.packing-station--scan-error .pst-scan-bar {
  animation: pstScanBarErrorV82 0.35s ease;
}

@keyframes pstScanBarSuccessV82 {
  0%, 100% { background: var(--pst-panel); border-color: var(--pst-border); }
  50% { background: rgba(34, 197, 94, 0.24); border-color: rgba(34, 197, 94, 0.5); }
}

@keyframes pstScanBarErrorV82 {
  0%, 100% { background: var(--pst-panel); border-color: var(--pst-border); }
  50% { background: rgba(239, 68, 68, 0.22); border-color: rgba(239, 68, 68, 0.48); }
}

.pst-actions--v82 {
  gap: 14px;
  padding: 18px 22px;
}

.pst-actions--v82 .pst-actions__title,
.pst-actions--v82 .pst-actions__subtitle {
  display: none;
}

.pst-actions--v82 .pst-btn--action,
.pst-actions--v82 .pst-action-btn {
  border-radius: 18px;
  min-height: 76px;
  margin-inline: 6px;
}

.pst-actions--v82 .pst-btn--hero:disabled {
  opacity: 0.38;
}

.pst-actions--v82 .pst-btn--hero {
  font-size: 1.0625rem;
}

.pst-actions--v82 .pst-btn--success.is-ready:not(:disabled) {
  background: linear-gradient(180deg, #22c55e 0%, #16a34a 100%);
  box-shadow: 0 0 0 2px rgba(34, 197, 94, 0.35), 0 10px 28px rgba(34, 197, 94, 0.28);
}

.pst-btn--print-label:not(:disabled) {
  background: linear-gradient(180deg, #38bdf8 0%, #0284c7 100%);
  color: #f8fafc;
  box-shadow: 0 8px 22px rgba(2, 132, 199, 0.28);
}

.pst-print-status {
  margin: 10px 6px 0;
  padding: 8px 12px;
  font-size: 0.8125rem;
  color: #94a3b8;
  text-align: center;
  line-height: 1.35;
}

.pst-print-status--ok {
  color: #86efac;
}

.pst-print-status--error {
  color: #fca5a5;
}

.pst-micro-export-gate {
  width: 100%;
  margin-top: 10px;
  padding: 14px 12px;
  border-radius: 12px;
  background: rgba(127, 29, 29, 0.22);
  border: 1px solid rgba(248, 113, 113, 0.35);
}

.pst-micro-export-gate__message {
  margin: 0 0 12px;
  color: #fecaca;
  font-size: 0.9375rem;
  line-height: 1.45;
  text-align: center;
}

.pst-micro-export-gate__actions {
  display: grid;
  gap: 10px;
}

.packing-station--micro-export-gate .pst-btn--print-label#ps-print-label {
  display: none;
}

@media (min-width: 1600px) {
  .pst-item--v82 .pst-item__name {
    font-size: 17px;
  }

  .pst-actions--v82 .pst-btn--action,
  .pst-actions--v82 .pst-action-btn {
    min-height: 76px;
  }
}

.packing-station-page--v82 .pst-dashboard {
  background: var(--pst-bg);
  padding: 16px 24px 12px;
}

.packing-station-page--v82 .packing-station--dashboard {
  gap: 0;
}

.packing-station-page--v82 .packing-station--dashboard .pst-dashboard {
  flex: 1 1 auto;
  min-height: 0;
}

.packing-station-page--v82 .pst-dashboard__inner {
  width: min(820px, 100%);
  gap: 16px;
}

.packing-station-page--v82 .pst-btn--prepare {
  min-width: min(100%, 640px);
  min-height: 112px;
  box-shadow: 0 14px 36px rgba(37, 99, 235, 0.32);
}

.packing-station-page--v82 .pst-info-band {
  flex: 0 0 auto;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
  padding: 10px 16px 14px;
  border-top: 1px solid var(--pst-border);
  background: rgba(7, 17, 31, 0.92);
}

.packing-station-page--v82 .packing-station--workspace .pst-info-band {
  display: none;
}

.packing-station-page--v82 .pst-info-band__item {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 8px 12px;
  border-radius: 12px;
  background: var(--pst-panel);
  border: 1px solid var(--pst-border);
}

.packing-station-page--v82 .pst-info-band__label {
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--pst-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.packing-station-page--v82 .pst-info-band__value {
  font-size: clamp(0.875rem, 1.2vw, 1rem);
  font-weight: 700;
  color: var(--pst-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

@media (max-width: 1359px) {
  .packing-station-page--v82 .pst-info-band {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 899px) {
  .packing-station-page--v82 .pst-info-band {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* V8.5 — Active order density polish (workspace only) */
.packing-station-page--v82 #packing-station.packing-station--workspace {
  gap: 10px;
}

.packing-station-page--v82 #packing-station.packing-station--workspace .pst-kpi.pst-kpi--premium {
  margin-bottom: 0;
}

.packing-station-page--v82 #packing-station.packing-station--workspace .pst-workspace--v82 {
  padding-top: 0;
}

.packing-station-page--v82 #packing-station.packing-station--workspace .pst-col--center {
  height: 100%;
  min-height: 0;
  align-self: stretch;
  gap: 10px;
  margin-top: 0;
  padding-top: 0;
  justify-content: flex-start;
}

.packing-station-page--v82 #packing-station.packing-station--workspace .pst-items,
.packing-station-page--v82 #packing-station.packing-station--workspace #ps-items {
  flex: 1 1 auto;
  min-height: 0;
  margin-top: 0 !important;
  padding-top: 0 !important;
  gap: 10px;
  overflow-y: auto;
}

.packing-station-page--v82 #packing-station.packing-station--workspace .pst-scan-bar,
.packing-station-page--v82 #packing-station.packing-station--workspace #ps-scan-zone {
  margin-top: auto;
  flex-shrink: 0;
}

.packing-station-page--v82 #packing-station.packing-station--workspace #ps-items-meta,
.packing-station-page--v82 #packing-station.packing-station--workspace #ps-items-empty {
  display: none !important;
  margin: 0 !important;
  padding: 0 !important;
  height: 0 !important;
}

/* V8.5.1 — KPI-to-items top alignment (workspace only) */
.packing-station-page--v82 #packing-station.packing-station--workspace .pst-col--center > :first-child {
  margin-top: 0 !important;
}

@media (max-width: 1400px) {
  .pst-workspace--v82 {
    grid-template-columns: 24% 52% 24%;
  }
}

.settings-layout {
  display: grid;
  grid-template-columns: minmax(220px, 260px) minmax(0, 1fr);
  gap: 20px;
  align-items: start;
}

.settings-layout__main {
  min-width: 0;
}

.print-agent-settings {
  display: grid;
  gap: 16px;
}

.print-agent-settings__section {
  padding: 20px;
}

.print-agent-settings__section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.print-agent-settings__title {
  margin: 0;
  font-size: 1.125rem;
}

.print-agent-settings__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin: 14px 0;
}

.print-agent-settings__code-panel {
  margin-top: 8px;
  padding: 18px;
  border: 1px dashed var(--border);
  border-radius: 12px;
  background: var(--bg);
  text-align: center;
}

.print-agent-settings__code-label {
  margin: 0 0 8px;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.print-agent-settings__code {
  margin: 0;
  font-size: clamp(2rem, 6vw, 3rem);
  font-weight: 800;
  letter-spacing: 0.35em;
  font-variant-numeric: tabular-nums;
}

.print-agent-settings__table td,
.print-agent-settings__table th {
  vertical-align: middle;
}

.status-badge--ok {
  background: rgba(34, 197, 94, 0.12);
  color: #15803d;
}

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

/* ===== Release-2 product module restore (v69-stable 2026-06-17) — product/accordion scoped CSS, appended; does not modify existing rules ===== */
.page-shell--products .product-list-col-brand {
  min-width: 88px;
}

.page-shell--products .product-list-col-category {
  min-width: 96px;
}

.page-shell--products .product-list-col-size {
  min-width: 120px;
}

.page-shell--products .data-table--products-classic {
  table-layout: auto;
}

.page-shell--products .data-table--products-classic > tbody > tr:not(.product-detail-accordion-row) > td {
  vertical-align: middle;
  padding: 9px 11px;
}

.page-shell--products .data-table--products-classic > tbody > tr:not(.product-detail-accordion-row) {
  height: 120px;
}

.page-shell--products .product-list-col-info,
.page-shell--products .product-list-info-cell {
  min-width: 240px;
  width: 30%;
}

.page-shell--products .product-list-info-cell .data-table__cell-sub {
  display: block;
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.page-shell--products .product-list-info-cell .data-table__cell-badges {
  display: block;
  margin-top: 4px;
}

.page-shell--products .product-list-name-text {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  line-height: 1.35;
  max-height: calc(1.35em * 2 + 2px);
  word-break: normal;
  overflow-wrap: break-word;
}

.page-shell--products .product-list-brand-cell {
  min-width: 88px;
}

.page-shell--products .product-list-category-cell {
  min-width: 120px;
  max-width: 200px;
}

.page-shell--products .product-list-size-cell {
  min-width: 110px;
}

.page-shell--products .data-table__platforms {
  min-width: 100px;
}

.page-shell--products .data-table--products-classic > tbody > tr.data-table__row--accordion {
  cursor: pointer;
  transition: background-color 0.15s ease, box-shadow 0.15s ease;
}

.page-shell--products .data-table--products-classic > tbody > tr.data-table__row--accordion:hover {
  background: #f8fafc;
}

.page-shell--products .data-table--products-classic > tbody > tr.data-table__row--accordion.is-detail-open {
  background: #f5f3ff;
  box-shadow: inset 3px 0 0 #6366f1;
}

.page-shell--products .product-list-status-cell {
  min-width: 130px;
  width: 1%;
  white-space: nowrap;
}

.product-list-status-cell-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.page-shell--products .product-list-status-stack {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  min-width: 0;
}

.product-list-platform-cell {
  width: 1%;
  white-space: nowrap;
}

.product-list-platform-wrap {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.product-list-platform-summary {
  min-width: 0;
}

.product-row-chevron {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  position: relative;
  color: #94a3b8;
  pointer-events: none;
}

.product-row-chevron::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 7px;
  height: 7px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: translate(-50%, -65%) rotate(45deg);
  transition: transform 0.15s ease, color 0.15s ease;
}

.product-row-chevron.is-open::before {
  transform: translate(-50%, -35%) rotate(-135deg);
  color: #6366f1;
}

.page-shell--products .data-table--products-classic > tbody > tr.data-table__row--accordion.is-detail-open .product-row-chevron::before {
  color: #6366f1;
}

.product-v4-quick-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  margin: 0 0 12px;
  padding: 0 2px 10px;
  border-bottom: 1px solid #eef2f7;
}

.product-v4-quick-actions__link {
  font-size: 0.75rem;
  font-weight: 600;
  color: #4f46e5;
  text-decoration: none;
}

.product-v4-quick-actions__link:hover {
  text-decoration: underline;
}

.product-v4-card__action {
  display: inline-flex;
  margin-top: 10px;
  font-size: 0.75rem;
  font-weight: 600;
  color: #4f46e5;
  text-decoration: none;
}

.product-v4-card__action:hover {
  text-decoration: underline;
}

.product-v4-card--marketplace-hero {
  padding: 16px 18px 14px;
  border-color: #a5b4fc;
  box-shadow: 0 8px 28px rgba(99, 102, 241, 0.1);
}

.product-v4-card--marketplace-hero .product-detail-marketplace-table--v4 thead th {
  padding: 12px 14px;
  font-size: 0.75rem;
}

.product-v4-card--marketplace-hero .product-detail-marketplace-table--v4 tbody td {
  padding: 14px;
  font-size: 0.875rem;
}

.product-v4-card--marketplace-hero .product-detail-marketplace-table__platform-name {
  font-size: 0.9375rem;
}

.product-list-brand {
  display: inline-flex;
  align-items: center;
  max-width: 140px;
  padding: 3px 9px;
  border-radius: 999px;
  background: #eef2ff;
  border: 1px solid #c7d2fe;
  color: #3730a3;
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1.35;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.product-list-brand--empty {
  background: transparent;
  border-color: transparent;
  font-weight: 400;
  padding-left: 0;
}

.product-list-brand-wrap {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 3px;
  max-width: 148px;
}

.product-list-brand--ty {
  background: #fff7ed;
  border-color: #fed7aa;
  color: #c2410c;
}

.product-list-brand--tag {
  background: #f0fdf4;
  border-color: #bbf7d0;
  color: #166534;
}

.product-list-brand-source {
  display: inline-flex;
  align-items: center;
  padding: 1px 5px;
  border-radius: 4px;
  font-size: 0.5625rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 1.2;
  color: #64748b;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
}

.product-list-brand-source--erp {
  color: #3730a3;
  background: #eef2ff;
  border-color: #c7d2fe;
}

.product-list-brand-source--ty {
  color: #c2410c;
  background: #fff7ed;
  border-color: #fed7aa;
}

.product-list-brand-source--tag {
  color: #166534;
  background: #f0fdf4;
  border-color: #bbf7d0;
}

.product-list-category {
  display: block;
  max-width: 200px;
  font-size: 0.75rem;
  color: #64748b;
  line-height: 1.35;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.product-list-size-cell {
  vertical-align: middle;
}

.product-size-summary {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
  max-width: 168px;
}

.product-size-pill {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 6px;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  color: #334155;
  font-size: 0.6875rem;
  font-weight: 600;
  line-height: 1.4;
  white-space: nowrap;
}

.product-size-pill--more {
  background: #fff7ed;
  border-color: #fed7aa;
  color: #c2410c;
}

.product-detail-accordion-row td {
  padding: 0 11px 14px !important;
  background: #f8fafc;
  border-bottom: 1px solid #e2e8f0;
}

.product-detail-accordion {
  margin: 0 0 4px;
  padding: 16px 18px 18px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
}

.product-detail-accordion__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid #eef2f7;
}

.product-detail-accordion__eyebrow {
  margin: 0 0 4px;
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #94a3b8;
}

.product-detail-accordion__title {
  margin: 0;
  font-size: 0.9375rem;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.35;
}

.product-detail-accordion__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.product-detail-card {
  padding: 14px 14px 12px;
  background: #fbfdff;
  border: 1px solid #e8edf3;
  border-radius: 10px;
}

.product-detail-card__title {
  margin: 0 0 10px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: #475569;
}

.product-detail-card__hint {
  margin: 8px 0 0;
  font-size: 0.6875rem;
}

.product-detail-kv {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 12px;
  margin: 0;
}

.product-detail-kv div {
  min-width: 0;
}

.product-detail-kv__full {
  grid-column: 1 / -1;
}

.product-detail-kv dt {
  margin: 0 0 2px;
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #94a3b8;
}

.product-detail-kv dd {
  margin: 0;
  font-size: 0.8125rem;
  color: #0f172a;
  line-height: 1.35;
  word-break: break-word;
}

.product-detail-card--marketplace-table {
  grid-column: 1 / -1;
}

.product-detail-marketplace-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid #e8edf3;
  border-radius: 10px;
  background: #ffffff;
}

.product-detail-marketplace-table {
  width: 100%;
  min-width: 520px;
  border-collapse: collapse;
  font-size: 0.8125rem;
}

.product-detail-marketplace-table thead th {
  padding: 10px 12px;
  text-align: left;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #64748b;
  background: #f8fafc;
  border-bottom: 1px solid #e2e8f0;
  white-space: nowrap;
}

.product-detail-marketplace-table tbody td {
  padding: 11px 12px;
  border-bottom: 1px solid #eef2f7;
  color: #334155;
  vertical-align: middle;
}

.product-detail-marketplace-table tbody tr:last-child td {
  border-bottom: none;
}

.product-detail-marketplace-table__platform-name {
  font-weight: 700;
  color: #0f172a;
}

.product-detail-marketplace-badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 0.6875rem;
  font-weight: 700;
  line-height: 1.3;
  white-space: nowrap;
}

.product-detail-marketplace-badge--live {
  color: #166534;
  background: #dcfce7;
}

.product-detail-marketplace-badge--ready {
  color: #1d4ed8;
  background: #dbeafe;
}

.product-detail-marketplace-badge--missing {
  color: #b45309;
  background: #fef3c7;
}

.product-detail-marketplace-badge--draft {
  color: #64748b;
  background: #f1f5f9;
}

.product-detail-marketplace-badge--none {
  color: #94a3b8;
  background: #f8fafc;
  border: 1px dashed #cbd5e1;
}

.product-detail-marketplace-table__price,
.product-detail-marketplace-table__stock {
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.product-detail-marketplace-action {
  display: inline-flex;
  align-items: center;
  font-size: 0.75rem;
  font-weight: 600;
  color: #4f46e5;
  text-decoration: none;
}

.product-detail-marketplace-action:hover {
  color: #4338ca;
  text-decoration: underline;
}

.product-detail-marketplace-action--muted {
  color: #94a3b8;
  cursor: default;
}

.product-detail-platform-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.product-detail-platform-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 72px;
  padding: 10px 11px;
  border-radius: 10px;
  border: 1px solid #e2e8f0;
  background: #ffffff;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
}

.product-detail-platform-card__head {
  display: flex;
  align-items: center;
  gap: 8px;
}

.product-detail-platform-card__abbr {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 28px;
  height: 22px;
  padding: 0 6px;
  border-radius: 6px;
  background: #f1f5f9;
  font-size: 0.625rem;
  font-weight: 800;
  color: #334155;
}

.product-detail-platform-card__name {
  font-size: 0.75rem;
  font-weight: 600;
  color: #0f172a;
}

.product-detail-platform-card__status {
  align-self: flex-start;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.product-detail-platform-card--live {
  border-color: #bbf7d0;
  background: linear-gradient(180deg, #ffffff 0%, #f0fdf4 100%);
}

.product-detail-platform-card--live .product-detail-platform-card__status {
  color: #166534;
  background: #dcfce7;
}

.product-detail-platform-card--draft {
  border-color: #e2e8f0;
}

.product-detail-platform-card--draft .product-detail-platform-card__status {
  color: #64748b;
  background: #f1f5f9;
}

.product-detail-platform-card--missing {
  border-color: #fecaca;
  background: linear-gradient(180deg, #ffffff 0%, #fef2f2 100%);
}

.product-detail-platform-card--missing .product-detail-platform-card__status {
  color: #b91c1c;
  background: #fee2e2;
}

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

.product-detail-price-list__item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 7px 9px;
  border-radius: 8px;
  background: #ffffff;
  border: 1px solid #e8edf3;
}

.product-detail-price-list__label {
  font-size: 0.75rem;
  color: #64748b;
}

.product-detail-price-list__value {
  font-size: 0.8125rem;
  font-weight: 700;
  color: #0f172a;
}

.product-detail-action-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.product-detail-action-grid .btn-xs {
  justify-content: center;
  text-align: center;
}

@media (max-width: 1100px) {
  .product-detail-accordion__grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .product-detail-kv,
  .product-detail-platform-grid,
  .product-detail-action-grid {
    grid-template-columns: 1fr;
  }
  .product-detail-accordion__header {
    flex-direction: column;
    align-items: stretch;
  }
  .product-detail-marketplace-table {
    min-width: 0;
  }
  .product-detail-marketplace-table thead {
    display: none;
  }
  .product-detail-marketplace-table tbody tr {
    display: block;
    padding: 10px 12px;
    border-bottom: 1px solid #eef2f7;
  }
  .product-detail-marketplace-table tbody tr:last-child {
    border-bottom: none;
  }
  .product-detail-marketplace-table tbody td {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 5px 0;
    border-bottom: none;
  }
  .product-detail-marketplace-table tbody td::before {
    content: attr(data-label);
    flex: 0 0 auto;
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    color: #94a3b8;
  }
  .product-detail-marketplace-table__platform {
    padding-bottom: 8px;
    margin-bottom: 4px;
    border-bottom: 1px solid #eef2f7 !important;
  }
  .product-detail-marketplace-table__platform::before {
    display: none;
  }
}

.product-list-stock-total {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
  line-height: 1;
}

.product-list-stock-total__value {
  font-size: 1.375rem;
  font-weight: 800;
  color: #0f172a;
  font-variant-numeric: tabular-nums;
}

.product-list-stock-total__unit {
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #64748b;
}

.product-list-sku,
.product-list-updated {
  font-size: 0.8125rem;
  color: #475569;
}

.product-list-updated-cell,
.product-list-col-updated {
  white-space: nowrap;
}

.product-detail-accordion--v3 {
  background: #f8fafc;
  border-color: #e2e8f0;
}

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

.product-v3-card {
  padding: 14px 16px 12px;
  background: #ffffff;
  border: 1px solid #e8edf3;
  border-radius: 12px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.product-v3-card--full {
  grid-column: 1 / -1;
}

.product-v3-card__title {
  margin: 0 0 12px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #475569;
}

.product-v3-card__title--emphasis {
  color: #4338ca;
}

.product-v3-card__subtitle {
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
  color: #6366f1;
}

.product-v3-card__cta {
  margin-top: 10px;
}

.product-detail-kv--v3 {
  gap: 10px 14px;
}

.product-v3-card--erp-stock {
  background: linear-gradient(180deg, #ffffff 0%, #f5f3ff 100%);
  border-color: #c7d2fe;
  box-shadow: 0 4px 14px rgba(99, 102, 241, 0.08);
}

.product-v3-erp-stock-hero {
  margin-bottom: 10px;
}

.product-v3-erp-stock-hero__value {
  margin: 0;
  font-size: 2rem;
  font-weight: 800;
  color: #312e81;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}

.product-v3-erp-stock-hero__value span {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #6366f1;
  margin-left: 4px;
}

.product-v3-erp-stock-hero__meta {
  margin: 4px 0 0;
  font-size: 0.75rem;
  color: #64748b;
}

.product-v3-erp-stock-updated {
  margin: 0 0 10px;
  font-size: 0.75rem;
  color: #64748b;
  line-height: 1.45;
}

.product-v3-warehouse-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 8px;
}

.product-v3-warehouse-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 7px 10px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px dashed #cbd5e1;
  border-radius: 8px;
  font-size: 0.75rem;
  color: #475569;
}

.product-v3-erp-note {
  margin: 0;
  font-size: 0.6875rem;
  color: #6366f1;
  line-height: 1.4;
}

.product-v3-inline-price {
  display: inline-flex;
  min-width: 72px;
  padding: 4px 8px;
  border-radius: 6px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: #0f172a;
  background: #f8fafc;
  border: 1px solid transparent;
  cursor: pointer;
}

.product-v3-inline-price:hover,
.product-v3-inline-price:focus {
  border-color: #c7d2fe;
  background: #eef2ff;
  outline: none;
}

.product-v3-inline-price--empty {
  color: #94a3b8;
  font-weight: 600;
}

.product-v3-inline-price-input {
  width: 88px;
  padding: 4px 8px;
  border: 1px solid #6366f1;
  border-radius: 6px;
  font-size: 0.8125rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.12);
}

.product-v3-image-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(72px, 1fr));
  gap: 8px;
}

.product-v3-image-card {
  position: relative;
  margin: 0;
  aspect-ratio: 3 / 4;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid #e2e8f0;
  background: #f8fafc;
}

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

.product-v3-image-card__badge {
  position: absolute;
  top: 4px;
  left: 4px;
  padding: 2px 6px;
  border-radius: 999px;
  font-size: 0.5625rem;
  font-weight: 700;
  color: #fff;
  background: rgba(99, 102, 241, 0.92);
}

.product-v3-image-add {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 96px;
  border: 1px dashed #cbd5e1;
  border-radius: 8px;
  background: #fbfdff;
  color: #6366f1;
  text-decoration: none;
  transition: border-color 0.15s, background 0.15s;
}

.product-v3-image-add:hover {
  border-color: #6366f1;
  background: #eef2ff;
}

.product-v3-image-add__label {
  font-size: 0.75rem;
  font-weight: 700;
}

.product-v3-variant-list {
  list-style: none;
  margin: 0 0 8px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.product-v3-variant-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 10px;
  border: 1px solid #eef2f7;
  border-radius: 8px;
  background: #fbfdff;
  font-size: 0.8125rem;
}

.product-v3-variant-item__name {
  font-weight: 600;
  color: #0f172a;
}

.product-v3-variant-item__stock {
  font-variant-numeric: tabular-nums;
  color: #64748b;
  white-space: nowrap;
}

.product-v3-prep-list {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.product-v3-prep-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.product-v3-prep-row dt {
  margin: 0;
  font-size: 0.8125rem;
  color: #475569;
}

.product-v3-prep-row dd {
  margin: 0;
}

.product-v3-publish-select-label {
  display: block;
  margin-bottom: 6px;
  font-size: 0.75rem;
  font-weight: 600;
  color: #64748b;
}

.product-v3-publish-select {
  width: 100%;
  margin-bottom: 10px;
  padding: 8px 10px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #fff;
  font-size: 0.8125rem;
}

.product-v3-publish-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
}

.product-v3-sync-meta,
.product-v3-publish-note {
  margin: 0;
  font-size: 0.75rem;
  color: #64748b;
}

@media (max-width: 1100px) {
  .product-v3-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .product-list-stock-total {
    align-items: flex-start;
  }
  .product-list-stock-total__value {
    font-size: 1.125rem;
  }
}

.product-detail-toggle--subtle {
  padding: 2px 8px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  font-size: 0.6875rem;
  font-weight: 600;
  color: #64748b;
  cursor: pointer;
  line-height: 1.4;
}

.product-detail-toggle--subtle:hover,
.product-detail-toggle--subtle:focus {
  color: #4338ca;
  background: #f1f5f9;
  outline: none;
}

.product-list-status-stack {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
}

.product-readiness-badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 7px;
  border-radius: 999px;
  font-size: 0.625rem;
  font-weight: 700;
  line-height: 1.3;
  white-space: nowrap;
}

.product-readiness-badge--complete,
.product-readiness-badge--ready {
  color: #166534;
  background: #ecfdf5;
}

.product-readiness-badge--partial {
  color: #b45309;
  background: #fffbeb;
}

.product-readiness-badge--none {
  color: #64748b;
  background: #f1f5f9;
}

.product-detail-accordion--v4 {
  background: #f8fafc;
}

.product-detail-accordion__header--v4 {
  margin-bottom: 12px;
  padding-bottom: 10px;
}

.product-v4-grid {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.product-v4-grid-top {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.product-v4-grid-bottom {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.product-v4-card {
  padding: 12px 14px;
  background: #ffffff;
  border: 1px solid #e8edf3;
  border-radius: 12px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.product-v4-card--compact {
  padding: 10px 12px;
}

.product-v4-card--erp-stock {
  background: linear-gradient(180deg, #ffffff 0%, #f8f7ff 100%);
  border-color: #ddd6fe;
}

.product-v4-card--marketplace {
  padding: 14px 16px 12px;
  border-color: #c7d2fe;
  box-shadow: 0 6px 20px rgba(99, 102, 241, 0.08);
}

.product-v4-card__title {
  margin: 0;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #64748b;
}

.product-v4-card__title--emphasis {
  color: #4338ca;
}

.product-v4-card__title--marketplace {
  font-size: 0.75rem;
  color: #312e81;
}

.product-v4-card__subtitle {
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
  color: #6366f1;
}

.product-v4-card__head-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}

.product-v4-card__link {
  font-size: 0.6875rem;
  font-weight: 600;
  color: #6366f1;
  text-decoration: none;
}

.product-v4-card__link:hover {
  text-decoration: underline;
}

.product-detail-kv--v4 {
  gap: 8px 12px;
}

.product-v4-erp-stock-hero__value {
  margin: 0 0 6px;
  font-size: 1.75rem;
  font-weight: 800;
  color: #312e81;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}

.product-v4-erp-stock-hero__value span {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #6366f1;
}

.product-v4-erp-stock-updated {
  margin: 0 0 8px;
  font-size: 0.6875rem;
  color: #64748b;
}

.product-v4-warehouse-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.product-v4-warehouse-row {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  padding: 5px 8px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.7);
  font-size: 0.6875rem;
  color: #64748b;
}

.product-v4-marketplace-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.product-v4-marketplace-sync {
  margin: 0;
  font-size: 0.6875rem;
  color: #64748b;
  white-space: nowrap;
}

.product-detail-marketplace-wrap--v4 {
  border-radius: 10px;
}

.product-detail-marketplace-table--v4 thead th {
  background: #f5f3ff;
  color: #4338ca;
}

.product-detail-marketplace-table--v4 tbody td {
  padding: 12px;
}

.product-v4-inline-price-cell {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  max-width: 100%;
  height: 28px;
  line-height: 28px;
  vertical-align: middle;
}

.product-v4-inline-price,
.product-v3-inline-price {
  display: inline;
  padding: 0;
  border: 0;
  border-bottom: 1px dashed #cbd5e1;
  border-radius: 0;
  font-size: 0.8125rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: #0f172a;
  background: transparent;
  cursor: pointer;
  line-height: 1.2;
}

.product-v4-inline-price:hover,
.product-v4-inline-price:focus,
.product-v3-inline-price:hover,
.product-v3-inline-price:focus {
  color: #4338ca;
  border-bottom-color: #6366f1;
  background: transparent;
  outline: none;
}

.product-v4-inline-price--empty {
  color: #94a3b8;
}

.product-v4-inline-price-currency {
  flex-shrink: 0;
  font-size: 0.6875rem;
  font-weight: 600;
  color: #64748b;
  line-height: 1;
}

.product-v4-inline-price-input,
.product-v3-inline-price-input {
  box-sizing: border-box;
  width: 90px;
  max-width: 90px;
  height: 28px;
  margin: 0;
  padding: 4px 8px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  font-size: 0.8125rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  text-align: right;
  line-height: 1.2;
  vertical-align: middle;
  flex-shrink: 0;
}

.product-v4-inline-price-input:focus,
.product-v3-inline-price-input:focus {
  outline: none;
  border-color: #6366f1;
  box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.12);
}

.product-price-push-modal__dialog {
  max-width: 420px;
}

.product-v4-inline-price-cell {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}

.product-price-sync-badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 600;
  line-height: 1.35;
  white-space: nowrap;
}

.product-price-sync-badge--pending {
  color: #92400e;
  background: #fef3c7;
  border: 1px solid #fcd34d;
}

.product-price-sync-badge--success {
  color: #047857;
  background: #d1fae5;
  border: 1px solid #6ee7b7;
}

.product-price-sync-badge--failed {
  color: #b91c1c;
  background: #fee2e2;
  border: 1px solid #fca5a5;
}

.product-price-push-modal__lead {
  margin: 0 0 14px;
  font-size: 0.92rem;
  color: #334155;
  line-height: 1.45;
}

.product-price-push-modal__preview {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 12px 14px;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  background: #f8fafc;
}

.product-price-push-modal__preview > div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.86rem;
}

.product-price-push-modal__preview dt {
  margin: 0;
  color: #64748b;
  font-weight: 500;
}

.product-price-push-modal__preview dd {
  margin: 0;
  color: #0f172a;
  font-weight: 600;
  text-align: right;
}

.product-price-push-modal__status {
  margin: 12px 0 0;
  font-size: 0.86rem;
  line-height: 1.45;
}

.product-price-push-modal__status--success {
  color: #047857;
}

.product-price-push-modal__status--info {
  color: #475569;
}

.product-price-push-modal__footer {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

.product-detail-marketplace-table--v4 .product-detail-marketplace-table__price {
  overflow: hidden;
}

.product-v4-mp-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: flex-end;
}

.product-v4-mp-action-form {
  margin: 0;
}

.product-v4-mp-action {
  display: inline-flex;
  align-items: center;
  padding: 0;
  border: 0;
  background: none;
  font-size: 0.75rem;
  font-weight: 600;
  color: #4f46e5;
  text-decoration: none;
  cursor: pointer;
}

.product-v4-mp-action--form:hover {
  text-decoration: underline;
}

.product-v4-mp-action--muted {
  color: #94a3b8;
  cursor: default;
}

.product-v4-image-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.product-v4-image-card {
  position: relative;
  width: 52px;
  height: 68px;
  margin: 0;
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid #e2e8f0;
}

.product-v4-image-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-v4-image-card__badge {
  position: absolute;
  top: 2px;
  left: 2px;
  padding: 1px 4px;
  border-radius: 999px;
  font-size: 0.5rem;
  font-weight: 700;
  color: #fff;
  background: rgba(99, 102, 241, 0.9);
}

.product-v4-image-empty {
  font-size: 0.6875rem;
  color: #94a3b8;
  text-decoration: none;
}

.product-v4-variant-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.product-v4-variant-item {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  padding: 5px 0;
  border-bottom: 1px solid #f1f5f9;
  font-size: 0.75rem;
  color: #334155;
}

.product-v4-variant-item:last-child {
  border-bottom: 0;
}

.product-v4-variant-item strong {
  font-variant-numeric: tabular-nums;
  color: #64748b;
}

.product-v4-prep-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.product-v4-prep-chip {
  display: inline-flex;
  flex-direction: column;
  gap: 1px;
  padding: 5px 8px;
  border-radius: 8px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  min-width: 72px;
}

.product-v4-prep-chip--ready {
  border-color: #bbf7d0;
  background: #f0fdf4;
}

.product-v4-prep-chip--missing {
  border-color: #fde68a;
  background: #fffbeb;
}

.product-v4-prep-chip__label {
  font-size: 0.5625rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #94a3b8;
}

.product-v4-prep-chip__value {
  font-size: 0.6875rem;
  font-weight: 700;
  color: #334155;
}

.product-v4-card--info-status .product-readiness {
  margin-bottom: 0;
  padding: 10px 12px;
  border: 1px solid #e8edf3;
  border-radius: 10px;
  background: #f8fafc;
}

.product-info-status-missing {
  margin: 0 0 8px;
  font-size: 0.6875rem;
  color: #b45309;
}

.product-readiness__item.is-missing {
  color: #b45309;
}

.product-readiness__item.is-missing::before {
  content: "✗ ";
}

.product-readiness__item.is-optional {
  color: #94a3b8;
}

.product-readiness__item.is-optional::before {
  content: "· ";
}

.product-platform-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 140px;
  padding: 6px 12px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 0.6875rem;
  font-weight: 700;
  line-height: 1.3;
  white-space: nowrap;
  cursor: default;
}

button.product-platform-btn {
  cursor: pointer;
}

.product-platform-btn--live {
  color: #166534;
  background: #ecfdf5;
  border-color: #bbf7d0;
}

.product-platform-btn--publish {
  color: #92400e;
  background: #fffbeb;
  border-color: #fde68a;
}

.product-platform-btn--publish:hover:not(:disabled),
.product-platform-btn--publish:focus:not(:disabled) {
  background: #fef3c7;
  outline: none;
}

.product-platform-btn--disabled,
.product-platform-btn--publish:disabled {
  color: #64748b;
  background: #f1f5f9;
  border-color: #e2e8f0;
  cursor: not-allowed;
}

@media (max-width: 1100px) {
  .product-v4-grid-top,
  .product-v4-grid-bottom {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .product-v4-marketplace-head {
    flex-direction: column;
    align-items: flex-start;
  }
  .product-v4-mp-actions {
    justify-content: flex-start;
  }
}

.product-v4-card__link--btn {
  border: none;
  background: transparent;
  padding: 0;
  cursor: pointer;
  font: inherit;
}

.product-v4-image-empty--muted {
  cursor: default;
}

.product-image-modal__dialog {
  display: flex;
  flex-direction: column;
  width: min(calc(100vw - 32px), 1180px);
  max-height: 80vh;
  overflow: hidden;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 28px 64px rgba(15, 23, 42, 0.2);
}

.product-image-modal__header {
  flex-shrink: 0;
  background: #fff;
}

.product-image-modal__body {
  flex: 1 1 auto;
  overflow: hidden;
  padding: 12px 16px 8px;
  min-height: 0;
  background: #fff;
}

.product-image-modal__columns {
  display: grid;
  grid-template-columns: minmax(0, 70%) minmax(0, 30%);
  gap: 20px;
  align-items: stretch;
  height: 100%;
  min-height: 0;
}

.product-image-modal__column {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
  min-height: 0;
}

.product-image-modal__column-title {
  margin: 0;
  font-size: 0.8125rem;
  font-weight: 700;
  color: #334155;
  flex-shrink: 0;
}

.product-image-modal__count {
  margin: 0;
  font-size: 0.6875rem;
  color: #64748b;
  flex-shrink: 0;
}

.product-image-modal__grid-wrap {
  flex: 1 1 auto;
  min-height: 0;
  max-height: calc((120px + 20px) * 2 + 8px);
  overflow-y: auto;
  overflow-x: hidden;
  padding-right: 4px;
}

.product-image-modal__grid {
  display: grid;
  grid-template-columns: repeat(4, 90px);
  gap: 8px;
  align-content: start;
}

.product-image-modal__card {
  display: flex;
  flex-direction: column;
  gap: 4px;
  width: 90px;
  min-width: 0;
}

.product-image-modal__thumb {
  position: relative;
  margin: 0;
  width: 90px;
  height: 120px;
  flex-shrink: 0;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid #e2e8f0;
  background: #f8fafc;
}

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

.product-image-modal__badge {
  position: absolute;
  top: 3px;
  left: 3px;
  z-index: 1;
  padding: 1px 5px;
  border-radius: 999px;
  font-size: 0.5rem;
  font-weight: 700;
  line-height: 1.3;
  color: #166534;
  background: rgba(236, 253, 245, 0.95);
}

.product-image-modal__badge--platform {
  top: auto;
  bottom: 3px;
  left: 3px;
  color: #4338ca;
  background: rgba(238, 242, 255, 0.95);
}

.product-image-modal__delete {
  position: absolute;
  top: 3px;
  right: 3px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  padding: 0;
  border: none;
  border-radius: 999px;
  font-size: 0.875rem;
  line-height: 1;
  color: #fff;
  background: rgba(15, 23, 42, 0.62);
  cursor: pointer;
}

.product-image-modal__delete:hover,
.product-image-modal__delete:focus {
  background: rgba(185, 28, 28, 0.88);
  outline: none;
}

.product-image-modal__card-actions {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  width: 90px;
  min-height: 16px;
}

.product-image-modal__card-check {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 0.5625rem;
  color: #64748b;
  cursor: pointer;
  white-space: nowrap;
}

.product-image-modal__card-check input {
  margin: 0;
  width: 12px;
  height: 12px;
}

.product-image-modal__upload {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  gap: 10px;
  min-height: 0;
  overflow: auto;
}

.product-image-modal__dropzone {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: calc((120px + 20px) * 2 + 8px);
  padding: 16px 12px;
  border: 2px dashed #cbd5e1;
  border-radius: 14px;
  background: linear-gradient(180deg, #fafbfc 0%, #f1f5f9 100%);
  cursor: pointer;
  text-align: center;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.product-image-modal__dropzone.is-dragover {
  border-color: #6366f1;
  background: #eef2ff;
}

.product-image-modal__dropzone-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  font-size: 1.375rem;
  font-weight: 700;
  color: #4338ca;
  background: #eef2ff;
}

.product-image-modal__dropzone-title {
  font-size: 0.8125rem;
  font-weight: 700;
  color: #334155;
  line-height: 1.35;
}

.product-image-modal__dropzone-subtitle {
  font-size: 0.75rem;
  font-weight: 600;
  color: #4338ca;
}

.product-image-modal__dropzone-hint {
  margin-top: 4px;
  font-size: 0.625rem;
  color: #64748b;
  line-height: 1.45;
}

.product-image-modal__platform-check {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.75rem;
  color: #475569;
  flex-shrink: 0;
}

.product-image-modal__queue {
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto;
}

.product-image-modal__queue-title {
  margin: 0 0 6px;
  font-size: 0.6875rem;
  font-weight: 700;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.product-image-modal__queue-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.product-image-modal__queue-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 6px 8px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #fff;
  font-size: 0.6875rem;
}

.product-image-modal__queue-item--uploading {
  border-color: #c7d2fe;
  background: #f8faff;
}

.product-image-modal__queue-item--done {
  border-color: #bbf7d0;
  background: #f0fdf4;
}

.product-image-modal__queue-item--error {
  border-color: #fecaca;
  background: #fef2f2;
}

.product-image-modal__queue-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #334155;
  min-width: 0;
}

.product-image-modal__queue-status {
  flex-shrink: 0;
  font-weight: 600;
  color: #64748b;
}

.product-image-modal__queue-item--uploading .product-image-modal__queue-status {
  color: #4338ca;
}

.product-image-modal__queue-item--done .product-image-modal__queue-status {
  color: #15803d;
}

.product-image-modal__queue-item--error .product-image-modal__queue-status {
  color: #b91c1c;
}

.product-image-modal__error {
  margin: 8px 0 0;
  font-size: 0.75rem;
  color: #b91c1c;
  flex-shrink: 0;
}

.product-image-modal__footer {
  flex-shrink: 0;
  justify-content: flex-end;
  padding: 12px 16px 16px;
  border-top: 1px solid #e2e8f0;
  background: #fff;
}

.product-image-modal__empty {
  margin: 0;
  font-size: 0.75rem;
}

@media (max-width: 820px) {
  .product-image-modal__dialog {
    width: min(calc(100vw - 24px), 1180px);
    max-height: 90vh;
  }
  .product-image-modal__columns {
    grid-template-columns: 1fr;
    height: auto;
  }
  .product-image-modal__grid-wrap {
    max-height: calc((120px + 20px) * 2 + 8px);
  }
  .product-image-modal__grid {
    grid-template-columns: repeat(4, minmax(72px, 90px));
  }
  .product-image-modal__card,
  .product-image-modal__thumb,
  .product-image-modal__card-actions {
    width: 100%;
    max-width: 90px;
  }
  .product-image-modal__thumb {
    height: 120px;
  }
  .product-image-modal__dropzone {
    min-height: 180px;
  }
}

@media (max-width: 520px) {
  .product-image-modal__grid {
    grid-template-columns: repeat(2, minmax(72px, 1fr));
  }
}

.product-v4-card__action--btn {
  border: 0;
  background: transparent;
  padding: 0;
  cursor: pointer;
  font: inherit;
}

.product-edit-modal__dialog {
  display: flex;
  flex-direction: column;
  width: min(calc(100vw - 32px), 1050px);
  max-height: 80vh;
  overflow: hidden;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 28px 64px rgba(15, 23, 42, 0.2);
}

.product-edit-modal__header {
  flex-shrink: 0;
  background: #fff;
}

.product-edit-modal__body {
  flex: 1 1 auto;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 12px 16px;
  min-height: 0;
  background: #f8fafc;
}

.product-edit-modal__footer {
  flex-shrink: 0;
  justify-content: flex-end;
  gap: 8px;
  padding: 12px 16px 16px;
  border-top: 1px solid #e2e8f0;
  background: #fff;
}

.product-edit-modal__validation {
  margin: 0 0 12px;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid #fecaca;
  background: #fef2f2;
}

.product-edit-modal__validation-title {
  margin: 0 0 6px;
  font-size: 0.8125rem;
  font-weight: 700;
  color: #991b1b;
}

.product-edit-modal__validation-list {
  margin: 0;
  padding-left: 18px;
  font-size: 0.75rem;
  color: #b91c1c;
}

.product-edit-modal__error {
  margin: 0 0 12px;
  font-size: 0.75rem;
  color: #b91c1c;
}

.product-edit-modal__columns {
  display: grid;
  grid-template-columns: minmax(0, 70%) minmax(0, 30%);
  gap: 16px;
  align-items: start;
}

.product-edit-modal__card,
.product-edit-modal__status-card {
  padding: 16px;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  background: #fff;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.04);
}

.product-edit-modal__card-title {
  margin: 0 0 14px;
  font-size: 0.875rem;
  font-weight: 700;
  color: #1e293b;
}

.product-edit-modal__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 14px;
}

.product-edit-modal__field {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.product-edit-modal__field--full {
  grid-column: 1 / -1;
}

.product-edit-modal__label {
  font-size: 0.75rem;
  font-weight: 600;
  color: #475569;
}

.product-edit-modal__required {
  color: #dc2626;
}

.product-edit-modal__input {
  width: 100%;
  min-height: 36px;
  padding: 8px 10px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  font-size: 0.8125rem;
  color: #0f172a;
  background: #fff;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.product-edit-modal__textarea {
  min-height: 96px;
  resize: vertical;
}

.product-edit-modal__input:focus {
  outline: none;
  border-color: #6366f1;
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
}

.product-edit-modal__field.is-invalid .product-edit-modal__input,
.product-edit-modal__input.is-invalid {
  border-color: #ef4444;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.12);
}

.product-edit-modal__field.is-valid .product-edit-modal__input,
.product-edit-modal__input.is-valid {
  border-color: #22c55e;
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.1);
}

.product-edit-modal__progress-wrap {
  margin-bottom: 14px;
}

.product-edit-modal__progress-label {
  margin: 0 0 6px;
  font-size: 0.6875rem;
  font-weight: 600;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.product-edit-modal__progress-bar {
  height: 8px;
  border-radius: 999px;
  background: #e2e8f0;
  overflow: hidden;
}

.product-edit-modal__progress-fill {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #6366f1, #22c55e);
  transition: width 0.2s ease;
}

.product-edit-modal__progress-value {
  margin: 6px 0 0;
  font-size: 1.125rem;
  font-weight: 700;
  color: #334155;
}

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

.product-edit-modal__status-item {
  font-size: 0.75rem;
  font-weight: 600;
  color: #64748b;
}

.product-edit-modal__status-item.is-ok {
  color: #15803d;
}

.product-edit-modal__status-item.is-missing {
  color: #b45309;
}

.product-edit-modal__lookup {
  display: flex;
  gap: 8px;
  align-items: stretch;
}

.product-edit-modal__lookup-input {
  flex: 1 1 auto;
  min-width: 0;
}

.product-edit-modal__lookup-btn {
  flex-shrink: 0;
  align-self: stretch;
  white-space: nowrap;
}

.product-edit-modal__lookup-result {
  margin: 6px 0 0;
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1.4;
}

.product-edit-modal__lookup-result--ok {
  color: #15803d;
}

.product-edit-modal__lookup-result--warn {
  color: #b45309;
}

.product-edit-modal__lookup-result--error {
  color: #b91c1c;
}

.product-edit-modal__lookup-result--pending {
  color: #64748b;
}

.product-edit-modal__category-results {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 8px;
  max-height: 180px;
  overflow-y: auto;
  padding: 8px;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  background: #f8fafc;
}

.product-edit-modal__category-option {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 8px;
  border: 1px solid transparent;
  background: #fff;
  font-size: 0.75rem;
  color: #334155;
  cursor: pointer;
}

.product-edit-modal__category-option:hover {
  border-color: #c7d2fe;
  background: #eef2ff;
}

.product-edit-modal__category-option input {
  margin-top: 2px;
  flex-shrink: 0;
}

.product-edit-modal__field--lookup.is-valid .product-edit-modal__lookup-input {
  border-color: #22c55e;
}

.product-edit-modal__field--lookup.is-invalid .product-edit-modal__lookup-input {
  border-color: #ef4444;
}

.product-edit-modal__tabs {
  display: flex;
  gap: 4px;
  padding: 0 0 12px;
  margin: 0 0 4px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.35);
}

.product-edit-modal__tab {
  appearance: none;
  border: 0;
  background: transparent;
  color: #64748b;
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

.product-edit-modal__tab:hover {
  background: rgba(148, 163, 184, 0.12);
  color: #334155;
}

.product-edit-modal__tab.is-active {
  background: rgba(59, 130, 246, 0.12);
  color: #1d4ed8;
}

.product-edit-modal__tab-panel {
  display: none;
}

.product-edit-modal__tab-panel.is-active {
  display: block;
}

.product-edit-modal__card-subtitle {
  margin: -4px 0 14px;
  font-size: 12px;
  color: #64748b;
}

.product-edit-modal__grid--common {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.product-edit-modal__select {
  cursor: pointer;
}

.product-edit-modal__input--readonly {
  background: #f8fafc;
  color: #475569;
  cursor: default;
}

.product-edit-modal__custom-input {
  margin-top: 8px;
}

.product-edit-modal__hint {
  margin: 6px 0 0;
  font-size: 11px;
  line-height: 1.4;
}

.product-edit-modal__size-panel {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid rgba(148, 163, 184, 0.35);
}

.product-edit-modal__size-title {
  margin: 0 0 6px;
  font-size: 14px;
  font-weight: 600;
  color: #0f172a;
}

.product-edit-modal__size-actions {
  margin: 10px 0 12px;
}

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

.product-edit-modal__size-item {
  padding: 10px 12px;
  border: 1px solid rgba(148, 163, 184, 0.35);
  border-radius: 8px;
  background: #f8fafc;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.product-edit-modal__lookup--size {
  margin-top: 0;
}

.product-edit-modal__size-item-label {
  font-size: 13px;
  font-weight: 600;
  color: #334155;
}

.product-edit-modal__size-item-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.product-edit-modal__size-item--empty {
  color: #64748b;
  font-size: 12px;
  background: transparent;
  border-style: dashed;
}

@media (max-width: 820px) {
  .product-edit-modal__dialog {
    width: min(calc(100vw - 24px), 1050px);
    max-height: 90vh;
  }
  .product-edit-modal__columns {
    grid-template-columns: 1fr;
  }
  .product-edit-modal__grid {
    grid-template-columns: 1fr;
  }
}

.product-master-modal__dialog {
  width: min(calc(100vw - 32px), 1180px);
  max-height: 92vh;
}

.product-master-modal__tabs {
  flex-wrap: wrap;
}

.product-master-modal__images-columns {
  margin-top: 8px;
}

.product-v62-variants-images-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  gap: 18px;
  align-items: start;
}

.product-v62-variants-column,
.product-v62-images-column {
  min-width: 0;
}

.product-v62-images-columns {
  grid-template-columns: minmax(0, 1fr);
}

.product-v62-help {
  margin: 0;
  font-size: 12px;
  line-height: 1.45;
  color: #64748b;
}

.product-v62-help--block {
  margin-top: 4px;
}

.product-v62-field-hint {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 14px;
  height: 14px;
  margin-left: 4px;
  border-radius: 50%;
  font-size: 10px;
  line-height: 1;
  color: #64748b;
  background: #f1f5f9;
  cursor: help;
  vertical-align: middle;
}

.product-master-modal__variants-table tr.is-row-selected {
  background: #eff6ff;
}

.product-master-modal__variants-table tr.is-row-selected td {
  box-shadow: inset 3px 0 0 #2563eb;
}

.product-master-modal__variants-table tr.is-color-selected:not(.is-row-selected) {
  background: #f8fafc;
}

.product-master-modal__variants-table tr[data-master-variant-row] {
  cursor: pointer;
}

.product-v62-intro {
  margin-bottom: 14px;
  padding: 14px 16px;
  border: 1px solid #bfdbfe;
  border-radius: 12px;
  background: linear-gradient(180deg, #eff6ff 0%, #f8fafc 100%);
}

.product-v62-intro__title {
  margin: 0 0 8px;
  font-size: 14px;
  font-weight: 700;
  color: #1e3a8a;
}

.product-v62-intro__list {
  margin: 0 0 12px;
  padding-left: 18px;
  color: #334155;
  font-size: 12px;
  line-height: 1.5;
}

.product-v62-intro__list li + li {
  margin-top: 4px;
}

@media (max-width: 980px) {
  .product-v62-variants-images-layout {
    grid-template-columns: 1fr;
  }
}

.product-image-scope-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0 10px;
}

.product-image-scope-tab {
  appearance: none;
  border: 1px solid #cbd5e1;
  background: #fff;
  color: #475569;
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.2;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}

.product-image-scope-tab:hover,
.product-image-scope-tab:focus {
  border-color: #94a3b8;
  color: #1e293b;
}

.product-image-scope-tab.is-active {
  background: #0f172a;
  border-color: #0f172a;
  color: #fff;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.18);
}

.product-image-scope-label {
  margin: 0 0 8px;
  font-size: 12px;
}

.product-master-modal__images-card .product-image-modal__grid-wrap {
  max-height: calc(120px * 2 + 8px);
  overflow-y: auto;
  padding-right: 4px;
}

.product-master-modal__images-card .product-image-modal__grid {
  grid-template-columns: repeat(4, 90px);
  gap: 8px;
}

.product-master-modal__images-card .product-image-modal__card,
.product-master-modal__images-card .product-image-modal__thumb {
  width: 90px;
}

.product-master-modal__images-card .product-image-modal__thumb {
  height: 120px;
}

.product-edit-modal__info-warnings {
  list-style: none;
  margin: 0 0 12px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.product-edit-modal__info-warning {
  font-size: 11px;
  line-height: 1.35;
  color: #92400e;
  background: #fffbeb;
  border: 1px solid #fde68a;
  border-radius: 8px;
  padding: 6px 8px;
}

.product-master-modal__variants-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.product-master-modal__variants-table-wrap {
  overflow-x: auto;
  margin-bottom: 16px;
}

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

.product-master-modal__variants-table th,
.product-master-modal__variants-table td {
  padding: 8px 6px;
  border-bottom: 1px solid #e2e8f0;
  text-align: left;
  vertical-align: middle;
}

.product-master-modal__variants-table th {
  font-weight: 600;
  color: #475569;
  background: #f8fafc;
}

.product-master-modal__variants-table tr.is-inactive {
  opacity: 0.55;
}

.product-master-modal__variant-input {
  width: 100%;
  min-width: 72px;
  padding: 6px 8px;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  font-size: 12px;
}

.product-master-modal__variant-remove {
  white-space: nowrap;
}

.product-master-modal__size-panel {
  margin-top: 4px;
}

.product-master-modal__variants-empty {
  padding: 12px 0;
}
