@import url("https://fonts.googleapis.com/css2?family=Manrope:wght@500;700;800&family=Space+Grotesk:wght@600;700&display=swap");

#yoxlamaPage {
  padding: 18px 16px 32px;
  background:
    radial-gradient(circle at top left, rgba(15, 118, 110, 0.16), transparent 26%),
    radial-gradient(circle at top right, rgba(251, 191, 36, 0.18), transparent 28%),
    linear-gradient(180deg, #f7fbfc 0%, #eef7f7 100%);
}

.yx-shell {
  max-width: 1320px;
  margin: 0 auto;
  font-family: "Manrope", system-ui, sans-serif;
  color: #102321;
}

.yx-card,
.yx-modal-card,
.yx-toast {
  box-shadow: 0 18px 42px rgba(15, 23, 42, 0.09);
}
.yx-card-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.18em;
}

.yx-card h3,
.yx-modal-card h3 {
  margin: 10px 0 0;
  font-family: "Space Grotesk", "Manrope", sans-serif;
  letter-spacing: -0.03em;
}

.yx-tabs {
  display: inline-flex;
  gap: 10px;
  padding: 8px;
  margin: 18px 0 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(148, 163, 184, 0.22);
  backdrop-filter: blur(14px);
}

.yx-tab,
.yx-btn,
.yx-chip,
.yx-history-card button,
.yx-icon-btn {
  font-family: "Manrope", system-ui, sans-serif;
  font-size: 16px;
  font-weight: 800;
  border: 0;
  border-radius: 16px;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, color 0.18s ease;
}

.yx-tab {
  min-height: 50px;
  padding: 0 22px;
  color: #3b4f4b;
  background: transparent;
}

.yx-tab.is-active {
  background: linear-gradient(135deg, #0f766e, #14b8a6);
  color: #ffffff;
  box-shadow: 0 10px 24px rgba(15, 118, 110, 0.22);
}

.yx-grid {
  display: grid;
  gap: 16px;
}

.yx-work-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 12px;
}

.yx-work-actions-right {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.yx-work-actions .yx-btn {
  min-height: 44px;
  padding: 0 14px;
  border-radius: 12px;
  font-size: 14px;
}

.yx-work-actions #yxBackToSetupBtn {
  min-width: 42px;
  width: 42px;
  min-height: 38px;
  padding: 0;
  border-radius: 10px;
}

.yx-work-actions #yxBackToSetupBtn i {
  font-size: 15px;
}

.yx-work-actions-right .yx-btn {
  min-height: 38px;
  padding: 0 12px;
  border-radius: 10px;
}

.yx-resume-list {
  margin-top: 10px;
  display: grid;
  gap: 8px;
}

.yx-resume-item {
  min-height: 36px;
  padding: 0 10px;
  border-radius: 10px;
  border: 1px solid rgba(148, 163, 184, 0.24);
  background: #ffffff;
  color: #17322d;
  font-size: 12px;
  font-weight: 700;
}

.yx-grid-top {
  grid-template-columns: 1.45fr 1fr;
  gap: 12px;
}

.yx-grid-main {
  grid-template-columns: 1.1fr 0.95fr;
  margin-top: 16px;
}

.yx-grid-lists,
.yx-grid-history {
  grid-template-columns: 1fr 1fr;
  margin-top: 16px;
}

.yx-card {
  padding: 20px;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(148, 163, 184, 0.16);
  backdrop-filter: blur(16px);
}

.yx-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}

.yx-card-head h3 {
  font-size: clamp(20px, 2vw, 28px);
}

.yx-title-inline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.yx-card-icon {
  width: 52px;
  height: 52px;
  border-radius: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #0f766e;
  background: linear-gradient(135deg, rgba(15, 118, 110, 0.14), rgba(251, 191, 36, 0.18));
  font-size: 22px;
}

.yx-control-card,
.yx-summary-card {
  padding: 14px 16px;
  border-radius: 22px;
}

.yx-control-card .yx-card-head,
.yx-summary-card .yx-card-head {
  align-items: center;
  margin-bottom: 12px;
}

.yx-control-card .yx-card-head h3,
.yx-summary-card .yx-card-head h3 {
  font-size: clamp(17px, 1.5vw, 22px);
}

.yx-control-card .yx-card-eyebrow,
.yx-summary-card .yx-card-eyebrow {
  font-size: 10px;
  letter-spacing: 0.14em;
}

.yx-control-card .yx-card-icon,
.yx-summary-card .yx-card-icon {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  font-size: 18px;
}

.yx-control-card .yx-field {
  margin-bottom: 10px;
}

.yx-control-card .yx-session-info,
.yx-control-card .yx-subtle-note {
  padding: 10px 12px;
  border-radius: 14px;
  font-size: 13px;
  line-height: 1.5;
}

.yx-field {
  display: grid;
  gap: 8px;
  margin-bottom: 14px;
}

.yx-field label {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #38524d;
}

.yx-field input,
.yx-field textarea {
  width: 100%;
  min-height: 56px;
  padding: 15px 16px;
  border-radius: 18px;
  border: 1px solid rgba(148, 163, 184, 0.26);
  background: #fbfefe;
  color: #102321;
  font-size: 16px;
  font-weight: 700;
  outline: none;
}

.yx-field textarea {
  min-height: 90px;
  resize: vertical;
}

.yx-field input:focus,
.yx-field textarea:focus {
  border-color: rgba(15, 118, 110, 0.46);
  box-shadow: 0 0 0 4px rgba(15, 118, 110, 0.1);
}

.yx-inline {
  display: flex;
  gap: 10px;
  align-items: center;
}

.yx-inline > input {
  flex: 1;
}

#yxSearchInput {
  flex: 1 1 auto;
  min-width: 0;
}

#yxStoreInput {
  min-height: 42px;
  padding: 10px 12px;
  border-radius: 12px;
  font-size: 14px;
}

.yx-inline-actions {
  flex-wrap: wrap;
}

.yx-control-card .yx-inline-actions .yx-btn {
  min-height: 42px;
  padding: 0 14px;
  border-radius: 14px;
  font-size: 14px;
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.07);
}

.yx-btn {
  min-height: 56px;
  padding: 0 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  white-space: nowrap;
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.08);
}

.yx-btn:hover,
.yx-tab:hover,
.yx-chip:hover,
.yx-history-card button:hover,
.yx-icon-btn:hover {
  transform: translateY(-1px);
}

.yx-btn-primary {
  background: linear-gradient(135deg, #0f766e, #14b8a6);
  color: #ffffff;
}

.yx-btn-success {
  background: linear-gradient(135deg, #15803d, #22c55e);
  color: #ffffff;
}

.yx-btn-danger {
  background: linear-gradient(135deg, #b91c1c, #ef4444);
  color: #ffffff;
}

.yx-btn-soft {
  background: #ecfeff;
  color: #0f766e;
}

.yx-btn-dark {
  background: linear-gradient(135deg, #0f172a, #1f2937);
  color: #ffffff;
}

.yx-btn-premium {
  background: linear-gradient(135deg, #7c3aed, #ec4899);
  color: #ffffff;
  box-shadow: 0 10px 22px rgba(124, 58, 237, 0.28);
}

#yxScanBtn {
  min-width: 58px;
  width: 58px;
  padding: 0;
}

#yxScanBtn i {
  font-size: 20px;
}

#yxReloadCatalogBtn {
  min-width: 42px;
  width: 42px;
  min-height: 42px;
  padding: 0;
  border-radius: 12px;
}

#yxReloadCatalogBtn i {
  font-size: 14px;
}

.yx-session-info,
.yx-subtle-note,
.yx-history-meta {
  padding: 14px 16px;
  border-radius: 18px;
  background: #f6fbfb;
  color: #49625d;
  font-size: 14px;
  line-height: 1.65;
}

.yx-session-info strong,
.yx-history-meta strong {
  color: #102321;
}

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

.yx-metric {
  padding: 12px 14px;
  border-radius: 16px;
  color: #102321;
}

.yx-metric span {
  display: block;
  font-size: 9px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.yx-metric strong {
  display: block;
  margin-top: 4px;
  font-size: 20px;
  line-height: 1;
}

.yx-metric-neutral { background: linear-gradient(135deg, #e2e8f0, #f8fafc); }
.yx-metric-good { background: linear-gradient(135deg, #bbf7d0, #ecfdf5); }
.yx-metric-warn { background: linear-gradient(135deg, #fde68a, #fff7ed); }
.yx-metric-alert { background: linear-gradient(135deg, #fecaca, #fff1f2); }

.yx-search-results,
.yx-list-wrap,
.yx-history-list,
.yx-history-detail {
  min-height: 170px;
}

.yx-search-results {
  display: grid;
  gap: 10px;
}

.yx-search-item,
.yx-history-card {
  width: 100%;
  padding: 14px 16px;
  border-radius: 20px;
  border: 1px solid rgba(148, 163, 184, 0.2);
  background: #ffffff;
}

.yx-search-item {
  text-align: left;
}

.yx-search-item strong,
.yx-history-card strong {
  display: block;
  font-size: 16px;
  color: #102321;
}

.yx-search-item small,
.yx-history-card small {
  display: block;
  margin-top: 4px;
  color: #5b706b;
  font-size: 13px;
}

.yx-selected-empty {
  padding: 14px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(15, 118, 110, 0.06), rgba(251, 191, 36, 0.08));
  color: #31534d;
  line-height: 1.5;
  font-size: 13px;
}

.yx-selected-card {
  padding: 12px;
  border-radius: 14px;
  background: linear-gradient(180deg, #fbfffe 0%, #f6fbfb 100%);
  border: 1px solid rgba(15, 118, 110, 0.12);
}

.yx-selected-top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
}

.yx-selected-top h4 {
  margin: 0;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

.yx-selected-meta {
  margin-top: 6px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.yx-mini-badge,
.yx-stock-pill,
.yx-status-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 999px;
  font-weight: 800;
}

.yx-mini-badge {
  min-height: 28px;
  padding: 0 9px;
  background: #ebf8f6;
  color: #0f766e;
  font-size: 11px;
  border-radius: 999px;
  border: 1px solid rgba(15, 118, 110, 0.12);
}

.yx-stock-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 16px 0;
}

.yx-stock-pill {
  min-height: 78px;
  flex-direction: column;
  padding: 12px;
  background: linear-gradient(135deg, #f8fafc, #ffffff);
  border: 1px solid rgba(148, 163, 184, 0.18);
}

.yx-stock-pill span {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #58706b;
}

.yx-stock-pill strong {
  font-size: 24px;
  line-height: 1.15;
}

.yx-counter-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.yx-status-preview {
  min-height: 58px;
  display: flex;
  align-items: center;
  padding: 0 18px;
  border-radius: 18px;
  font-size: 15px;
  font-weight: 800;
  margin-bottom: 14px;
}

.yx-status-preview-neutral { background: #eef2ff; color: #334155; }
.yx-status-preview-duzgun { background: #dcfce7; color: #166534; }
.yx-status-preview-eskik { background: #fef3c7; color: #92400e; }
.yx-status-preview-artiq { background: #fee2e2; color: #991b1b; }

.yx-list {
  display: grid;
  gap: 8px;
}

.yx-list-wrap {
  max-height: 464px;
  overflow-y: auto;
  padding-right: 4px;
}

.yx-row {
  display: grid;
  gap: 6px;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid rgba(148, 163, 184, 0.18);
}

.yx-row-duzgun { background: #ecfdf5; }
.yx-row-eskik { background: #fffbeb; }
.yx-row-artiq { background: #fff1f2; }

.yx-row-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.yx-row-top strong {
  font-size: 14px;
  line-height: 1.3;
}

.yx-row-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  color: #4a645f;
  font-size: 12px;
}

.yx-row-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.yx-row-actions button,
.yx-history-card button {
  min-height: 34px;
  padding: 0 10px;
  background: #ffffff;
  color: #17322d;
  border-radius: 10px;
  font-size: 12px;
}

.yx-status-badge {
  min-height: 28px;
  padding: 0 10px;
  font-size: 11px;
}

.yx-badge-duzgun { background: #bbf7d0; color: #166534; }
.yx-badge-eskik { background: #fde68a; color: #92400e; }
.yx-badge-artiq { background: #fecaca; color: #991b1b; }

.yx-empty {
  min-height: 170px;
  padding: 20px;
  border-radius: 22px;
  border: 1px dashed rgba(148, 163, 184, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #5d726d;
  background: rgba(255, 255, 255, 0.52);
}

.yx-history-list {
  display: grid;
  gap: 10px;
}

.yx-history-card {
  display: grid;
  gap: 10px;
}

.yx-history-card.is-active {
  border-color: rgba(15, 118, 110, 0.42);
  box-shadow: 0 12px 22px rgba(15, 118, 110, 0.12);
}

.yx-history-card-head,
.yx-history-card-foot {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}

.yx-filter-chips {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin: 14px 0;
}

.yx-chip {
  width: 100%;
  min-height: 34px;
  padding: 0 12px;
  background: linear-gradient(180deg, #d1d5db 0%, #9ca3af 100%);
  color: #0f0f0f;
  border: 1px solid rgba(55, 65, 81, 0.3);
  box-shadow: 0 8px 16px rgba(15, 23, 42, 0.16);
}

.yx-chip.is-active {
  background: linear-gradient(180deg, #6b7280 0%, #4b5563 100%);
  color: #0a0a0a;
  box-shadow: 0 10px 20px rgba(15, 23, 42, 0.22);
}

.yx-chip-all { background: linear-gradient(180deg, #cbd5e1, #94a3b8); color: #0f0f0f; }
.yx-chip-duzgun { background: linear-gradient(180deg, #bbf7d0, #86efac); color: #0f0f0f; }
.yx-chip-eskik { background: linear-gradient(180deg, #fecaca, #fca5a5); color: #0f0f0f; }
.yx-chip-artiq { background: linear-gradient(180deg, #fde68a, #fcd34d); color: #0f0f0f; }

.yx-detail-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0 8px;
}

.yx-detail-table th {
  padding: 0 10px 10px;
  text-align: left;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #617670;
}

.yx-table-wrap {
  position: relative;
}

.yx-detail-table thead th {
  position: sticky;
  z-index: 3;
}

.yx-detail-table thead tr:first-child th {
  top: 0;
}

.yx-detail-table thead tr:nth-child(2) th {
  top: 30px;
  z-index: 2;
}

.yx-detail-table td {
  padding: 12px 10px;
  background: #ffffff;
  font-size: 14px;
  vertical-align: top;
}

.yx-detail-table tr td:first-child {
  border-top-left-radius: 18px;
  border-bottom-left-radius: 18px;
}

.yx-detail-table tr td:last-child {
  border-top-right-radius: 18px;
  border-bottom-right-radius: 18px;
}

.yx-detail-table tr.yx-row-duzgun td { background: #ecfdf5; }
.yx-detail-table tr.yx-row-eskik td { background: #fffbeb; }
.yx-detail-table tr.yx-row-artiq td { background: #fff1f2; }

.yx-modal {
  position: fixed;
  inset: 0;
  z-index: 5000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 18px;
  background: rgba(2, 6, 23, 0.45);
  backdrop-filter: blur(6px);
}

.yx-modal-card {
  width: min(680px, 100%);
  padding: 20px;
  border-radius: 28px;
  background: #f8fffe;
}

.yx-count-modal-card {
  width: min(420px, 100%);
  background:
    radial-gradient(circle at top right, rgba(20, 184, 166, 0.12), transparent 36%),
    linear-gradient(180deg, #fcfffe 0%, #f5fbfb 100%);
}

.yx-confirm-modal-card {
  width: min(360px, 100%);
}

.yx-count-product {
  padding: 14px 16px;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(15, 118, 110, 0.08), rgba(59, 130, 246, 0.08));
  border: 1px solid rgba(15, 118, 110, 0.12);
  color: #16312d;
  margin-bottom: 12px;
  line-height: 1.5;
}

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

.yx-count-product small {
  display: block;
  margin-top: 4px;
  color: #53706a;
  font-size: 12px;
}

.yx-count-switches {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 10px;
}

.yx-count-switch {
  min-height: 40px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 14px;
  background: #ffffff;
  color: #24443f;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}

.yx-count-switch.is-active,
.yx-count-display.is-active {
  border-color: rgba(15, 118, 110, 0.46);
  box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.1);
}

.yx-count-displays {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 12px;
}

.yx-count-display {
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 18px;
  background: #ffffff;
  padding: 12px 14px;
  text-align: left;
  cursor: pointer;
}

.yx-count-display span {
  display: block;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #647a75;
}

.yx-count-display strong {
  display: block;
  margin-top: 6px;
  font-family: "Space Grotesk", "Manrope", sans-serif;
  font-size: 28px;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
  color: #0f172a;
}

.yx-count-keypad {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 12px;
}

.yx-keypad-btn {
  min-height: 58px;
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 18px;
  background: linear-gradient(180deg, #ffffff 0%, #f4fbfb 100%);
  color: #102321;
  font-family: "Space Grotesk", "Manrope", sans-serif;
  font-size: 23px;
  font-weight: 400;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.01em;
  cursor: pointer;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.05);
  transition: transform 0.16s ease, box-shadow 0.16s ease, background 0.16s ease;
}

.yx-keypad-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 22px rgba(15, 23, 42, 0.08);
}

.yx-keypad-btn-soft {
  font-size: 18px;
  background: linear-gradient(180deg, #f8fafc 0%, #eef2ff 100%);
}

.yx-count-note-field {
  margin-bottom: 12px;
}

.yx-count-note-field textarea {
  min-height: 70px;
}

#yxCountModal .yx-inline-actions {
  margin-top: 8px;
}

#yxCountConfirmBtn {
  width: 100%;
}

.yx-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.yx-icon-btn {
  width: 46px;
  height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #ecfeff;
  color: #0f766e;
}

.yx-scanner-view {
  min-height: 280px;
  border-radius: 22px;
  background:
    linear-gradient(180deg, rgba(15, 23, 42, 0.96), rgba(15, 23, 42, 0.88)),
    #0f172a;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #e2e8f0;
}

.yx-scanner-view video,
.yx-scanner-view section {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover;
}

.yx-toast {
  position: fixed;
  right: 16px;
  top: 16px;
  z-index: 5200;
  min-width: 280px;
  max-width: min(420px, calc(100vw - 32px));
  padding: 16px 18px;
  border-radius: 18px;
  background: rgba(15, 23, 42, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 18px 34px rgba(15, 23, 42, 0.28);
  color: #f8fafc;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-12px);
  transition: opacity 0.18s ease, transform 0.18s ease;
}

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

.yx-toast.is-duzgun {
  background: linear-gradient(135deg, rgba(22, 101, 52, 0.96), rgba(34, 197, 94, 0.92));
}

.yx-toast.is-eskik {
  background: linear-gradient(135deg, rgba(146, 64, 14, 0.96), rgba(245, 158, 11, 0.92));
}

.yx-toast.is-artiq {
  background: linear-gradient(135deg, rgba(153, 27, 27, 0.96), rgba(239, 68, 68, 0.92));
}

@media (max-width: 1120px) {
  .yx-grid-top,
  .yx-grid-main,
  .yx-grid-lists,
  .yx-grid-history {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  #yoxlamaPage {
    padding: 6px 6px 14px;
  }

  .yx-card,
  .yx-modal-card {
    padding: 12px;
    border-radius: 18px;
  }

  .yx-control-card,
  .yx-summary-card {
    padding: 12px;
    border-radius: 18px;
  }

  .yx-control-card .yx-card-head,
  .yx-summary-card .yx-card-head {
    margin-bottom: 10px;
  }

  .yx-control-card .yx-card-head h3,
  .yx-summary-card .yx-card-head h3 {
    font-size: 16px;
  }

  .yx-control-card .yx-card-icon,
  .yx-summary-card .yx-card-icon {
    width: 36px;
    height: 36px;
    border-radius: 12px;
    font-size: 15px;
  }

  .yx-control-card .yx-inline {
    flex-direction: row;
    align-items: center;
  }

  .yx-control-card .yx-inline > input {
    width: auto;
    flex: 1;
  }

  .yx-control-card .yx-inline > button {
    width: auto;
  }

  .yx-control-card .yx-inline-actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .yx-control-card .yx-inline-actions .yx-btn {
    min-height: 38px;
    padding: 0 10px;
    font-size: 13px;
    gap: 6px;
    border-radius: 12px;
  }

  #yxStoreInput {
    min-height: 38px;
    padding: 8px 10px;
    font-size: 13px;
  }

  .yx-tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    width: 100%;
    gap: 6px;
    padding: 6px;
    margin: 8px 0 8px;
  }

  .yx-tab {
    width: 100%;
    min-height: 42px;
    padding: 0 14px;
    font-size: 14px;
  }

  .yx-grid-main,
  .yx-grid-lists,
  .yx-grid-history {
    margin-top: 8px;
    gap: 8px;
  }

  .yx-card-head {
    gap: 8px;
    margin-bottom: 10px;
  }

  .yx-card-head h3 {
    font-size: 16px;
  }

  .yx-title-inline {
    gap: 6px;
  }

  .yx-card-eyebrow {
    font-size: 10px;
    letter-spacing: 0.12em;
  }

  .yx-field {
    gap: 6px;
    margin-bottom: 10px;
  }

  .yx-field label {
    font-size: 11px;
    letter-spacing: 0.06em;
  }

  .yx-field input,
  .yx-field textarea {
    min-height: 42px;
    padding: 10px 12px;
    border-radius: 12px;
    font-size: 14px;
  }

  .yx-field textarea {
    min-height: 72px;
  }

  .yx-search-card,
  .yx-inspector-card {
    padding: 12px;
    border-radius: 18px;
  }

  .yx-search-results,
  .yx-list-wrap,
  .yx-history-list,
  .yx-history-detail {
    min-height: 120px;
  }

  .yx-search-item,
  .yx-history-card {
    padding: 11px 12px;
    border-radius: 16px;
  }

  .yx-count-modal-card {
    width: min(360px, 100%);
    padding: 14px;
    border-radius: 20px;
  }

  .yx-count-product {
    padding: 10px 12px;
    border-radius: 14px;
    margin-bottom: 10px;
  }

  .yx-count-display {
    padding: 10px 12px;
    border-radius: 14px;
  }

  .yx-count-display strong {
    font-size: 22px;
  }

  .yx-keypad-btn {
    min-height: 48px;
    border-radius: 14px;
    font-size: 20px;
  }

  .yx-keypad-btn-soft {
    font-size: 16px;
  }

  .yx-search-item strong,
  .yx-history-card strong,
  .yx-row-top strong {
    font-size: 14px;
  }

  .yx-search-item small,
  .yx-history-card small,
  .yx-row-meta {
    font-size: 12px;
  }

  .yx-selected-empty,
  .yx-selected-card {
    padding: 12px;
    border-radius: 16px;
  }

  .yx-selected-top h4 {
    font-size: 15px;
  }

  .yx-selected-meta {
    margin-top: 8px;
    gap: 6px;
  }

  .yx-mini-badge {
    min-height: 28px;
    padding: 0 10px;
    font-size: 11px;
  }

  .yx-stock-strip {
    margin: 10px 0;
    gap: 6px;
  }

  .yx-stock-pill {
    min-height: 60px;
    padding: 8px 10px;
    border-radius: 14px;
  }

  .yx-stock-pill span {
    font-size: 10px;
  }

  .yx-stock-pill strong {
    font-size: 18px;
  }

  .yx-status-preview {
    min-height: 46px;
    padding: 0 12px;
    border-radius: 14px;
    font-size: 13px;
    margin-bottom: 10px;
  }

  .yx-inspector-card .yx-inline-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }

  .yx-inspector-card .yx-inline-actions .yx-btn {
    min-height: 38px;
    padding: 0 10px;
    font-size: 13px;
    gap: 6px;
    border-radius: 12px;
  }

  .yx-history-meta,
  .yx-session-info,
  .yx-subtle-note {
    padding: 10px 12px;
    border-radius: 14px;
    font-size: 12px;
    line-height: 1.45;
  }

  .yx-filter-chips {
    gap: 6px;
    margin: 10px 0;
  }

  .yx-chip {
    min-height: 34px;
    padding: 0 10px;
    border-radius: 12px;
    font-size: 12px;
  }

  .yx-history-card-head,
  .yx-history-card-foot {
    gap: 8px;
  }

  .yx-history-card button {
    min-height: 36px;
    padding: 0 12px;
    border-radius: 12px;
    font-size: 12px;
  }

.yx-history-card-foot .yx-inline {
  flex-direction: row;
  align-items: center;
  gap: 6px;
}

.yx-history-card-foot .yx-inline button {
  min-height: 30px;
  min-width: 72px;
  padding: 0 10px;
  border-radius: 8px;
  font-size: 11px;
  font-weight: 800;
  border: 1px solid rgba(71, 85, 105, 0.42);
  color: #f8fafc;
  box-shadow: 0 6px 14px rgba(15, 23, 42, 0.18);
}

.yx-history-card-foot .yx-inline button[data-yx-history-open] {
  background: linear-gradient(180deg, #334155 0%, #1f2937 100%);
}

.yx-history-card-foot .yx-inline button[data-yx-resume-id] {
  background: linear-gradient(180deg, #0f766e 0%, #115e59 100%);
}

  .yx-detail-table td {
    padding: 8px 10px;
    font-size: 12px;
  }

  .yx-detail-table td strong {
    font-size: 13px;
  }

  .yx-status-badge {
    min-height: 28px;
    padding: 0 10px;
    font-size: 11px;
  }

  .yx-inline,
  .yx-inline-history,
  .yx-inline-actions,
  .yx-history-card-head,
  .yx-history-card-foot,
  .yx-selected-top,
  .yx-row-top {
    flex-direction: column;
    align-items: stretch;
  }

  .yx-work-actions {
    align-items: center;
    flex-direction: row;
  }

  .yx-work-actions-right {
    gap: 6px;
  }

  .yx-work-actions #yxBackToSetupBtn {
    width: 36px;
    min-width: 36px;
    min-height: 34px;
  }

  .yx-work-actions-right .yx-btn {
    min-height: 34px;
    padding: 0 9px;
    font-size: 12px;
    gap: 4px;
  }

  .yx-inline > input,
  .yx-inline > button,
  .yx-row-actions button,
  .yx-history-card button {
    width: 100%;
  }

  #yxScanBtn,
  #yxReloadCatalogBtn {
    width: 100%;
  }

  .yx-stock-strip,
  .yx-counter-grid {
    grid-template-columns: 1fr;
  }

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

  .yx-metric {
    padding: 8px 6px;
    border-radius: 10px;
  }

  .yx-metric span {
    font-size: 8px;
    letter-spacing: 0.04em;
  }

  .yx-metric strong {
    font-size: 14px;
    margin-top: 3px;
  }

  .yx-detail-table,
  .yx-detail-table thead,
  .yx-detail-table tbody,
  .yx-detail-table tr,
  .yx-detail-table th,
  .yx-detail-table td {
    display: block;
    width: 100%;
  }

  .yx-detail-table thead {
    display: none;
  }

  .yx-detail-table tr {
    margin-bottom: 10px;
  }

  .yx-detail-table td {
    border-radius: 0 !important;
    padding: 10px 12px;
  }

  .yx-detail-table tr td:first-child {
    border-top-left-radius: 18px !important;
    border-top-right-radius: 18px !important;
  }

  .yx-detail-table tr td:last-child {
    border-bottom-left-radius: 18px !important;
    border-bottom-right-radius: 18px !important;
  }

  .yx-toast {
    right: 10px;
    left: 10px;
    top: 10px;
    min-width: 0;
    padding: 12px 14px;
    border-radius: 14px;
    font-size: 13px;
  }
}

/* ---- Premium compact refactor overrides ---- */
:root {
  --yx-h-input: 40px;
  --yx-h-btn: 38px;
  --yx-h-btn-icon: 36px;
  --yx-radius-sm: 10px;
  --yx-radius-md: 14px;
  --yx-radius-lg: 18px;
  --yx-gap-1: 6px;
  --yx-gap-2: 10px;
  --yx-gap-3: 14px;
  --yx-font-sm: 12px;
  --yx-font-md: 13px;
}

.yx-shell {
  max-width: 1220px;
}

.yx-setup-panel,
.yx-workspace {
  display: grid;
  gap: var(--yx-gap-3);
}

.yx-work-actions {
  position: sticky;
  top: 8px;
  z-index: 30;
  margin: 0;
  padding: 6px;
  border-radius: var(--yx-radius-lg);
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(148, 163, 184, 0.22);
  backdrop-filter: blur(12px);
}

.yx-work-actions-right {
  margin-left: auto;
}

.yx-btn,
.yx-chip,
.yx-history-card button {
  min-height: var(--yx-h-btn);
  border-radius: var(--yx-radius-sm);
  font-size: var(--yx-font-md);
}

.yx-btn-icon {
  width: var(--yx-h-btn-icon);
  min-width: var(--yx-h-btn-icon);
  min-height: var(--yx-h-btn-icon);
  padding: 0;
}

.yx-btn-start {
  width: 100%;
}

#yxStorePickBtn {
  min-height: var(--yx-h-input);
  min-width: 62px;
  width: auto;
  padding: 0 12px;
  border-radius: var(--yx-radius-sm);
  border: 1px solid rgba(13, 148, 136, 0.28);
  background: linear-gradient(135deg, #ecfeff, #d1fae5);
  color: #0f766e;
  box-shadow: none;
}

#yxStorePickBtn:hover {
  transform: none;
  box-shadow: none;
  filter: none;
}

.yx-card {
  padding: 14px;
  border-radius: var(--yx-radius-lg);
}

.yx-card-head {
  margin-bottom: 10px;
}

.yx-card-head h3 {
  margin: 0;
  font-size: 17px;
}

.yx-card-icon {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  font-size: 15px;
}

.yx-field label {
  font-size: 11px;
  letter-spacing: 0.06em;
}

.yx-field input,
.yx-field textarea {
  min-height: var(--yx-h-input);
  padding: 9px 12px;
  border-radius: var(--yx-radius-sm);
  font-size: var(--yx-font-md);
}

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

.yx-metric {
  padding: 7px 8px;
  border-radius: 12px;
}

.yx-metric span {
  font-size: 8px;
  letter-spacing: 0.04em;
}

.yx-metric strong {
  margin-top: 2px;
  font-size: 15px;
}

.yx-grid-main {
  margin-top: 0;
}

.yx-search-results {
  max-height: 38vh;
  min-height: 150px;
  overflow: auto;
  padding-right: 4px;
}

.yx-search-item {
  padding: 9px 10px;
  border-radius: 12px;
}

.yx-search-item strong {
  font-size: 13px;
}

.yx-search-item small {
  margin-top: 2px;
  font-size: 11px;
}

.yx-selected-card {
  padding: 10px;
  border-radius: 12px;
}

.yx-selected-top h4 {
  font-size: 13px;
}

.yx-mini-badge {
  min-height: 22px;
  padding: 0 7px;
  font-size: 10px;
}

.yx-stock-strip {
  gap: 6px;
  margin: 10px 0;
}

.yx-stock-pill {
  min-height: 54px;
  padding: 8px 6px;
  border-radius: 11px;
}

.yx-stock-pill span {
  font-size: 9px;
}

.yx-stock-pill strong {
  font-size: 16px;
}

.yx-status-preview {
  min-height: 40px;
  padding: 0 10px;
  border-radius: 12px;
  font-size: 12px;
}

.yx-list-wrap {
  max-height: 48vh;
}

.yx-row {
  grid-template-columns: 1fr;
  gap: 4px;
  padding: 8px 10px;
  border-radius: 12px;
}

.yx-row-top strong {
  font-size: 13px;
}

.yx-row-meta {
  gap: 4px;
  font-size: 11px;
}

.yx-row-actions button {
  min-height: 28px;
  padding: 0 8px;
  border-radius: 8px;
  font-size: 11px;
}

.yx-history-list {
  max-height: 58vh;
  overflow: auto;
  padding-right: 4px;
}

.yx-history-card {
  padding: 8px 9px;
  border-radius: 10px;
  gap: 6px;
  border-color: rgba(148, 163, 184, 0.18);
  box-shadow: 0 6px 14px rgba(15, 23, 42, 0.06);
}

.yx-history-card strong {
  font-size: 12px;
  line-height: 1.3;
}

.yx-history-card small {
  font-size: 10px;
}

.yx-history-detail {
  max-height: 62vh;
  overflow: auto;
  padding-right: 4px;
}

.yx-inline-history {
  align-items: center;
}

#yxHistoryStoreFilter {
  flex: 1 1 auto;
  min-width: 280px;
  border-radius: 12px;
  border: 1px solid rgba(148, 163, 184, 0.24);
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

#yxHistoryRefreshBtn {
  min-width: 84px;
  min-height: 34px;
  padding: 0 10px;
  border-radius: 10px;
  font-size: 12px;
  box-shadow: 0 8px 16px rgba(15, 23, 42, 0.14);
}

.yx-table-wrap {
  width: 100%;
  overflow-x: auto;
}

.yx-detail-table th {
  font-size: 10px;
}

.yx-detail-table td {
  font-size: 11px;
  padding: 8px 8px;
}

.yx-detail-table td strong {
  font-size: 12px;
}

.yx-detail-table thead tr:first-child th {
  font-size: 10px;
  font-weight: 800;
  background: #f2f8f8;
}

.yx-detail-table thead tr:nth-child(2) th {
  font-size: 9px;
  color: #4f6661;
}

.yx-cell-diff-neg {
  background: linear-gradient(135deg, #fee2e2, #fff1f2) !important;
  color: #991b1b;
  font-weight: 700;
}

.yx-cell-amount-pos {
  background: linear-gradient(135deg, #dcfce7, #ecfdf5) !important;
  color: #166534;
  font-weight: 700;
}

.yx-count-modal-card {
  width: min(360px, 100%);
}

.yx-sync-modal-card {
  width: min(920px, 100%);
}

.yx-sync-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.yx-sync-list {
  margin-top: 8px;
  max-height: 360px;
  overflow-y: auto;
  display: grid;
  gap: 6px;
  padding-right: 4px;
}

.yx-sync-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px;
  border-radius: 10px;
  border: 1px solid rgba(148, 163, 184, 0.25);
  background: #ffffff;
}

.yx-sync-item strong {
  display: block;
  font-size: 12px;
}

.yx-sync-item small {
  display: block;
  margin-top: 2px;
  font-size: 11px;
  color: #546a65;
}

.yx-sync-item button {
  min-height: 30px;
  padding: 0 10px;
  border: 0;
  border-radius: 8px;
  background: linear-gradient(135deg, #0f766e, #14b8a6);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
}

.yx-sync-item .yx-sync-del-btn {
  background: linear-gradient(135deg, #b91c1c, #ef4444);
}

.yx-count-keypad .yx-keypad-btn {
  min-height: 46px;
  border-radius: 12px;
  font-size: 19px;
}

@media (max-width: 760px) {
  #yxCountModal {
    align-items: flex-end;
    padding: 10px;
  }

  .yx-count-modal-card {
    width: min(360px, 100%);
    max-height: calc(100dvh - 20px);
    overflow-y: auto;
    padding: 12px;
    padding-bottom: calc(18px + env(safe-area-inset-bottom));
    border-radius: 18px 18px 14px 14px;
  }

  .yx-count-switches,
  .yx-count-displays,
  .yx-count-keypad {
    margin-bottom: 8px;
  }

  .yx-count-note-field {
    margin-bottom: 8px;
  }

  .yx-count-note-field textarea {
    min-height: 56px;
  }

  #yxCountModal .yx-inline-actions {
    position: sticky;
    bottom: 0;
    margin-top: 6px;
    padding-top: 6px;
    padding-bottom: calc(2px + env(safe-area-inset-bottom));
    background: linear-gradient(180deg, rgba(245, 251, 251, 0.2), #f5fbfb 30%);
  }

  #yxCountConfirmBtn {
    min-height: 40px;
  }

  .yx-work-actions-right .yx-btn {
    min-height: 32px;
    padding: 0 8px;
    font-size: 11px;
  }

  .yx-work-actions {
    top: 4px;
    padding: 4px;
    gap: 4px;
  }

  .yx-tabs {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin: 2px 0 6px;
  }

  .yx-tab {
    min-height: 34px;
    padding: 0 8px;
    font-size: 11px;
  }

  .yx-grid-main,
  .yx-grid-lists,
  .yx-grid-history {
    grid-template-columns: 1fr;
  }

  .yx-sync-grid {
    grid-template-columns: 1fr;
  }

  .yx-selected-card,
  .yx-selected-empty,
  .yx-history-card,
  .yx-row {
    padding: 8px;
  }

  .yx-history-detail {
    max-height: 56vh;
  }

  .yx-detail-table td {
    font-size: 10px;
    padding: 7px 8px;
  }

  #yxHistoryStoreFilter {
    min-width: 0;
  }

  #yxHistoryRefreshBtn {
    min-width: 72px;
    min-height: 32px;
    font-size: 11px;
  }
}

/* Reports tab: elegant compact action buttons */
#yxTabReports .yx-history-card {
  padding: 7px 8px;
  gap: 4px;
  min-height: 0;
}

#yxTabReports .yx-history-card-head,
#yxTabReports .yx-history-card-foot {
  gap: 6px;
}

#yxTabReports .yx-history-card-foot .yx-inline {
  flex-direction: row !important;
  align-items: center !important;
  justify-content: flex-end;
  gap: 6px;
}

#yxTabReports .yx-history-card-foot .yx-inline button {
  width: auto !important;
  min-height: 28px;
  min-width: 66px;
  padding: 0 9px;
  border-radius: 8px;
  font-size: 10px;
  font-weight: 800;
  border: 1px solid rgba(51, 65, 85, 0.5);
  color: #f8fafc;
  box-shadow: 0 7px 14px rgba(15, 23, 42, 0.2);
  letter-spacing: 0.01em;
}

#yxTabReports .yx-history-card-foot .yx-inline button[data-yx-history-open] {
  background: linear-gradient(180deg, #475569 0%, #334155 100%);
}

#yxTabReports .yx-history-card-foot .yx-inline button[data-yx-resume-id] {
  background: linear-gradient(180deg, #0f766e 0%, #0f5250 100%);
}

#yxTabReports .yx-history-card-foot .yx-inline button:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 18px rgba(15, 23, 42, 0.24);
}

/* Report detail sticky table header */
#yxTabReports .yx-history-detail {
  position: relative;
  max-height: min(62vh, 560px);
  overflow: auto;
}

#yxTabReports .yx-table-wrap {
  min-width: 100%;
}

#yxTabReports .yx-detail-table {
  border-collapse: separate;
  border-spacing: 0;
}

#yxTabReports .yx-detail-table thead th {
  position: sticky;
  top: 0;
  z-index: 5;
  background: #e5ebee;
  box-shadow: inset 0 -1px 0 rgba(15, 23, 42, 0.08);
}

#yxTabReports .yx-detail-table thead tr:nth-child(2) th {
  top: 30px;
  z-index: 6;
}

/* ---- 2026 polish pass ---- */
.yx-shell {
  max-width: 1280px;
}

.yx-work-banner {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.16);
  box-shadow: 0 24px 44px rgba(15, 23, 42, 0.09);
}

.yx-work-banner::before {
  content: "";
  position: absolute;
  inset: auto auto -64px -64px;
  width: 180px;
  height: 180px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(20, 184, 166, 0.16), rgba(20, 184, 166, 0));
  pointer-events: none;
}

.yx-control-card {
  display: grid;
  align-content: start;
  padding: 24px;
  border-radius: 30px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.97), rgba(247, 252, 252, 0.96));
}

.yx-work-banner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.9fr);
  gap: 18px;
  padding: 18px 20px;
  border-radius: 24px;
  background:
    radial-gradient(circle at top right, rgba(251, 191, 36, 0.16), transparent 22%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.94), rgba(240, 253, 250, 0.96));
}

.yx-work-banner strong {
  display: block;
  margin-top: 6px;
  color: #102321;
  font-size: 18px;
}

.yx-work-banner p {
  margin: 8px 0 0;
  color: #49625d;
  font-size: 14px;
  line-height: 1.6;
}

.yx-summary-card {
  padding: 12px 14px;
}

.yx-summary-card .yx-card-head {
  margin-bottom: 8px;
}

.yx-summary-card .yx-card-head h3 {
  font-size: 15px;
}

.yx-session-info-inline {
  height: 100%;
  min-height: 100%;
  background: rgba(255, 255, 255, 0.74);
  border: 1px solid rgba(15, 118, 110, 0.14);
}

.yx-work-section-switch {
  display: none;
  gap: 8px;
  margin-bottom: 10px;
  padding: 6px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(148, 163, 184, 0.18);
}

.yx-work-section-btn {
  flex: 1 1 0;
  min-height: 32px;
  padding: 0 10px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: #38524d;
  font-family: "Manrope", system-ui, sans-serif;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
}

.yx-work-section-btn.is-active {
  background: linear-gradient(135deg, #0f766e, #14b8a6);
  color: #ffffff;
  box-shadow: 0 10px 20px rgba(15, 118, 110, 0.18);
}

.yx-work-actions {
  gap: 8px;
  padding: 8px;
  border-radius: 18px;
}

.yx-work-actions-right {
  gap: 8px;
}

.yx-btn,
.yx-tab,
.yx-chip {
  letter-spacing: -0.01em;
}

.yx-btn {
  min-height: 34px;
  padding: 0 12px;
  border-radius: 10px;
  font-size: 11px;
  font-weight: 700;
  gap: 6px;
}

#yxSyncBtn {
  min-width: 86px;
}

.yx-btn-primary,
.yx-btn-success,
.yx-btn-danger,
.yx-btn-dark {
  box-shadow: 0 14px 26px rgba(15, 23, 42, 0.14);
}

.yx-btn-soft {
  background: linear-gradient(180deg, #ffffff 0%, #ecfeff 100%);
  border: 1px solid rgba(13, 148, 136, 0.18);
}

.yx-tabs {
  width: fit-content;
  max-width: 100%;
  gap: 8px;
  margin-top: 2px;
  margin-bottom: 18px;
  padding: 8px;
  border-radius: 22px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.55);
}

.yx-tab {
  min-height: 34px;
  padding: 0 12px;
  font-size: 11px;
}

.yx-card {
  border-radius: 26px;
}

.yx-summary-card,
.yx-search-card,
.yx-inspector-card,
#yxTabChecked .yx-card,
#yxTabReports .yx-card {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(248, 252, 252, 0.95));
}

.yx-search-item,
.yx-row,
.yx-history-card,
.yx-sync-item {
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.yx-search-item:hover,
.yx-history-card:hover,
.yx-sync-item:hover {
  transform: translateY(-1px);
  border-color: rgba(15, 118, 110, 0.26);
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.08);
}

.yx-search-results,
.yx-list-wrap,
.yx-history-list,
.yx-history-detail,
.yx-sync-list {
  scrollbar-width: thin;
}

.yx-stock-pill {
  min-height: 76px;
  border-radius: 18px;
}

.yx-status-preview {
  min-height: 54px;
  border-radius: 20px;
}

.yx-row {
  padding: 12px 14px;
  border-radius: 18px;
}

.yx-row-actions {
  margin-top: 2px;
}

.yx-row-actions button,
.yx-history-card button {
  min-height: 28px;
  padding: 0 8px;
  border-radius: 9px;
  font-size: 10px;
}

.yx-history-card {
  padding: 12px;
  border-radius: 18px;
}

.yx-sync-grid {
  gap: 16px;
}

.yx-sync-item {
  padding: 12px;
  border-radius: 16px;
}

.yx-sync-item .yx-inline {
  flex-wrap: nowrap;
}

.yx-sync-item button {
  min-height: 28px;
  min-width: 70px;
  padding: 0 8px;
  border-radius: 9px;
  font-size: 10px;
}

.yx-modal-card {
  border-radius: 30px;
}

@media (max-width: 980px) {
  .yx-work-banner {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .yx-shell {
    gap: 12px;
  }

  .yx-control-card {
    padding: 16px;
    border-radius: 22px;
  }

  .yx-work-actions {
    position: static;
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 8px;
    border-radius: 18px;
  }

  .yx-work-actions-right {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin-left: 0;
  }

  #yxBackToSetupBtn,
  #yxSyncBtn,
  #yxWorkFinishBtn,
  #yxWorkDiscardBtn {
    width: 100%;
    min-width: 0;
    min-height: 36px;
  }

  #yxSyncBtn {
    grid-column: 1 / -1;
  }

  .yx-summary-card {
    padding: 10px 12px;
  }

  .yx-summary-card .yx-card-head {
    display: none;
  }

  .yx-work-section-switch {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .yx-tabs {
    display: grid;
    grid-template-columns: 1fr;
    width: 100%;
    padding: 6px;
    border-radius: 18px;
  }

  .yx-tab {
    width: 100%;
    min-height: 36px;
    font-size: 11px;
  }

  .yx-inline {
    flex-wrap: wrap;
  }

  .yx-inline > input,
  .yx-inline > button,
  #yxStorePickBtn,
  #yxScanBtn,
  #yxReloadCatalogBtn {
    width: 100%;
    min-width: 0;
  }

  .yx-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .yx-metric {
    padding: 8px;
    border-radius: 12px;
  }

  .yx-metric strong {
    font-size: 16px;
  }

  .yx-work-section-panel {
    display: none;
  }

  .yx-work-section-panel.is-visible {
    display: block;
  }

  .yx-stock-strip,
  .yx-inspector-card .yx-inline-actions,
  .yx-sync-grid {
    grid-template-columns: 1fr;
  }

  .yx-status-preview {
    min-height: 54px;
  }

  .yx-row-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .yx-history-card-foot .yx-inline,
  .yx-sync-item .yx-inline {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .yx-sync-item {
    align-items: stretch;
  }

  .yx-sync-item button {
    width: 100%;
  }

  .yx-modal {
    padding: 10px;
  }

  .yx-modal-card {
    border-radius: 24px;
  }

  #yxTabReports .yx-history-card-foot .yx-inline {
    display: grid !important;
    justify-content: stretch;
  }

  #yxTabReports .yx-history-card-foot .yx-inline button {
    width: 100% !important;
  }
}

@media (max-width: 420px) {
  .yx-work-section-btn {
    min-height: 32px;
    padding: 0 8px;
    font-size: 10px;
  }

  .yx-metrics {
    gap: 6px;
  }

  .yx-metric {
    padding: 8px;
  }

  .yx-metric strong {
    font-size: 15px;
  }

  .yx-stock-pill {
    min-height: 68px;
  }
}
