:root {
  --bg: #f4f6fa;
  --surface: #ffffff;
  --surface-raised: #ffffff;
  --text: #111827;
  --text-2: #4b5563;
  --muted: #9ca3af;
  --line: #e5e7eb;
  --line-strong: #d1d5db;
  --primary: #4f46e5;
  --primary-hover: #4338ca;
  --primary-dim: #eef2ff;
  --primary-text: #3730a3;
  --danger: #dc2626;
  --danger-dim: #fef2f2;
  --success: #16a34a;
  --success-dim: #f0fdf4;
  --focus: rgba(79, 70, 229, 0.16);
}

* { box-sizing: border-box; }

[data-spa-root] {
  transition: opacity 0.12s ease;
}

[data-spa-root].is-loading {
  opacity: 0.65;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

/* ─── Auth shell ─── */

.app-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(340px, 0.85fr) minmax(440px, 1.15fr);
}

.brand-panel {
  position: relative;
  display: flex;
  min-height: 100vh;
  padding: 40px;
  overflow: hidden;
  background: url("/assets/brand-panel.jpg") center / cover;
  color: #fff;
}

.brand-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, rgba(17,24,39,0.55) 0%, rgba(17,24,39,0.45) 100%);
}

.brand-panel::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 50%;
  background: linear-gradient(transparent, rgba(17,24,39,0.7));
}

.brand-content {
  position: relative;
  z-index: 1;
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 48px;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 15px;
  color: rgba(255,255,255,0.9);
}

.brand-symbol {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 9px;
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.2);
  padding: 5px;
}

.brand-symbol img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.brand-copy { max-width: 480px; }

.brand-copy h1 {
  margin: 0 0 20px;
  font-size: clamp(32px, 5vw, 56px);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: #fff;
}

.brand-copy p {
  margin: 0;
  color: rgba(255,255,255,0.65);
  font-size: 15px;
  line-height: 1.75;
  max-width: 380px;
}

.content-panel {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 52px 48px;
  background: var(--surface);
}

.home-main, .auth-main { width: min(100%, 480px); }
.auth-box { width: min(100%, 400px); }

/* ─── Page shell ─── */

.page-shell {
  min-height: 100vh;
  padding: 20px 28px 56px;
}

.page-container {
  width: min(100%, 960px);
  margin: 0 auto;
}

.floating-header {
  position: sticky;
  top: 12px;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 32px;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 10px 14px;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(16px);
  box-shadow: 0 1px 0 var(--line), 0 4px 20px rgba(17,24,39,0.06);
}

/* brand-mark in header (light bg context) */
.floating-header .brand-mark {
  color: var(--text);
}

/* ─── Typography ─── */

.eyebrow {
  margin: 0 0 10px;
  color: var(--primary);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

h2 {
  margin: 0 0 10px;
  font-size: 26px;
  font-weight: 800;
  line-height: 1.22;
  letter-spacing: -0.025em;
  color: var(--text);
}

.lead {
  margin: 0 0 26px;
  color: var(--text-2);
  font-size: 14.5px;
  line-height: 1.75;
}

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

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

.admin-actions { display: none; margin-top: 12px; }
.admin-actions.show { display: flex; flex-direction: column; gap: 6px; }

.admin-link,
.admin-menu-trigger {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 16px;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  color: var(--text);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: border-color 0.15s, box-shadow 0.15s, transform 0.15s;
}

.admin-link:hover,
.admin-menu-trigger:hover {
  border-color: #c7d2fe;
  box-shadow: 0 0 0 3px #eef2ff, 0 4px 16px rgba(79,70,229,0.08);
  transform: translateY(-1px);
  color: var(--primary-text);
}

.admin-menu {
  display: grid;
  gap: 7px;
}

.admin-menu summary {
  list-style: none;
  cursor: pointer;
}

.admin-menu summary::-webkit-details-marker {
  display: none;
}

.admin-menu[open] .admin-menu-trigger {
  border-color: #c7d2fe;
  background: #fbfcff;
}

.admin-menu[open] .admin-menu-trigger .admin-link-arrow {
  color: var(--primary);
  transform: rotate(90deg);
}

.admin-submenu {
  display: grid;
  gap: 6px;
  margin-left: 17px;
  padding: 2px 0 2px 20px;
  border-left: 1.5px solid var(--line);
}

.admin-submenu-link {
  display: flex;
  align-items: center;
  min-height: 38px;
  border: 1.5px solid transparent;
  border-radius: 9px;
  padding: 8px 12px;
  color: var(--text-2);
  font-size: 13.5px;
  font-weight: 600;
  transition: background 0.14s, border-color 0.14s, color 0.14s, transform 0.14s;
}

.admin-submenu-link:hover {
  border-color: var(--line);
  background: var(--surface);
  color: var(--primary-text);
  transform: translateX(2px);
}

.admin-link-icon {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: var(--primary-dim);
  color: var(--primary);
  flex-shrink: 0;
}

.admin-link-icon svg { width: 17px; height: 17px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.admin-link-arrow {
  margin-left: auto;
  color: var(--muted);
  transition: color 0.15s, transform 0.15s;
}

.admin-link:hover .admin-link-arrow,
.admin-menu-trigger:hover .admin-link-arrow {
  color: var(--primary);
  transform: translateX(3px);
}

.admin-menu[open] .admin-menu-trigger:hover .admin-link-arrow {
  transform: rotate(90deg) translateX(3px);
}

.admin-link-arrow svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* ─── Metric grid ─── */

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

.metric {
  padding: 20px 22px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  box-shadow: 0 1px 3px rgba(17,24,39,0.04);
  transition: box-shadow 0.18s, transform 0.18s, border-color 0.18s;
}

.metric:hover {
  border-color: #c7d2fe;
  box-shadow: 0 0 0 3px #eef2ff, 0 4px 16px rgba(79,70,229,0.08);
  transform: translateY(-2px);
}

.metric strong {
  display: block;
  margin-bottom: 5px;
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
}

.metric span {
  display: block;
  color: var(--text-2);
  font-size: 13px;
  line-height: 1.5;
}

/* ─── User strip ─── */

.user-strip {
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 18px 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 13px 16px;
  background: var(--surface);
  box-shadow: 0 1px 3px rgba(17,24,39,0.04);
}

.user-strip.show { display: flex; }
.user-strip strong, .user-strip span { display: block; }
.user-strip strong { font-size: 14px; font-weight: 700; }
.user-strip span { margin-top: 2px; color: var(--text-2); font-size: 13px; }

/* ─── Forms ─── */

.form { display: grid; gap: 16px; margin-top: 22px; }
.field { display: grid; gap: 6px; }

.field label {
  color: var(--text);
  font-size: 13px;
  font-weight: 600;
}

.field input {
  width: 100%;
  min-height: 44px;
  border: 1.5px solid var(--line-strong);
  border-radius: 10px;
  padding: 10px 13px;
  background: var(--surface);
  color: var(--text);
  font: inherit;
  font-size: 14px;
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.field input::placeholder { color: var(--muted); }
.field input:hover { border-color: #9ca3af; }
.field input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--focus);
}

.field textarea {
  width: 100%;
  min-height: 420px;
  resize: vertical;
  border: 1.5px solid var(--line-strong);
  border-radius: 10px;
  padding: 12px 14px;
  background: var(--surface);
  color: var(--text);
  font: inherit;
  font-size: 14px;
  line-height: 1.6;
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.field textarea:hover { border-color: #9ca3af; }
.field textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--focus);
}

.password-control { position: relative; }
.password-control input { padding-right: 50px; }

.password-toggle {
  position: absolute;
  top: 50%;
  right: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  min-height: 30px;
  border: none;
  border-radius: 7px;
  padding: 0;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  transform: translateY(-50%);
  transition: background 0.12s, color 0.12s;
}

.password-toggle:hover { background: var(--primary-dim); color: var(--primary); }
.password-toggle svg { width: 17px; height: 17px; stroke: currentColor; }

/* ─── Buttons — jelas beda karakternya ─── */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 40px;
  border-radius: 9px;
  padding: 0 16px;
  font: inherit;
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s;
  border: 1.5px solid transparent;
}

.btn:active { transform: scale(0.97); }
.btn:disabled { cursor: not-allowed; opacity: 0.5; transform: none; }
.btn .loading-spinner { width: 15px; height: 15px; }

/* Primary — solid, berat, CTA utama */
.btn-primary {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
  box-shadow: 0 1px 2px rgba(79,70,229,0.3), inset 0 1px 0 rgba(255,255,255,0.1);
}

.btn-primary:hover:not(:disabled) {
  background: var(--primary-hover);
  border-color: var(--primary-hover);
  box-shadow: 0 4px 12px rgba(79,70,229,0.35);
  transform: translateY(-1px);
}

/* Secondary — ghost, untuk aksi navigasi */
.btn-secondary {
  background: transparent;
  border-color: var(--line-strong);
  color: var(--text-2);
}

.btn-secondary:hover:not(:disabled) {
  background: var(--bg);
  border-color: #9ca3af;
  color: var(--text);
}

.btn-full { width: 100%; }

/* Danger — merah, untuk aksi destruktif */
.btn-danger {
  background: var(--danger-dim);
  border-color: #fca5a5;
  color: var(--danger);
}

.btn-danger:hover:not(:disabled) {
  background: var(--danger);
  border-color: var(--danger);
  color: #fff;
  box-shadow: 0 4px 12px rgba(220,38,38,0.3);
  transform: translateY(-1px);
}

/* ─── Messages ─── */

.message {
  display: none;
  border-radius: 10px;
  padding: 11px 14px;
  font-size: 13.5px;
  font-weight: 500;
  line-height: 1.55;
}

.message.show { display: block; }

.message.error {
  background: var(--danger-dim);
  border: 1.5px solid #fca5a5;
  color: var(--danger);
}

.message.success {
  background: var(--success-dim);
  border: 1.5px solid #86efac;
  color: var(--success);
}

/* ─── Loading overlay ─── */

loading-overlay {
  display: none;
  width: 100%;
  margin: 12px 0;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  color: var(--text-2);
}

loading-overlay.show { display: block; }

.loading-overlay-content {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 52px;
  padding: 13px 16px;
  font-size: 13.5px;
  font-weight: 600;
}

.loading-spinner {
  display: inline-block;
  width: 18px;
  height: 18px;
  border: 2px solid rgba(79,70,229,0.15);
  border-top-color: var(--primary);
  border-radius: 999px;
  animation: spin 0.7s linear infinite;
  flex: 0 0 auto;
}

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

.helper-row {
  margin-top: 18px;
  color: var(--text-2);
  font-size: 13.5px;
  text-align: center;
}

.helper-row a {
  color: var(--primary);
  font-weight: 600;
}

.helper-row a:hover { text-decoration: underline; }

/* ─── Settings pages ─── */

.template-main { width: 100%; }

.template-section {
  display: grid;
  gap: 14px;
  border-top: 1px solid var(--line);
  padding-top: 18px;
}

.template-section:first-child {
  border-top: 0;
  padding-top: 0;
}

.template-section-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.template-section-header h3 {
  margin: 0;
  color: var(--text);
  font-size: 16px;
  font-weight: 700;
}

.template-section-header span {
  color: var(--text-2);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.07em;
}

.legend-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 8px;
  margin-top: 18px;
}

.legend-item {
  border: 1.5px solid var(--line);
  border-radius: 10px;
  padding: 11px 13px;
  background: var(--surface);
  transition: border-color 0.14s, box-shadow 0.14s;
}

.legend-item:hover {
  border-color: #c7d2fe;
  box-shadow: 0 0 0 3px #eef2ff;
}

.legend-item code {
  display: block;
  margin-bottom: 4px;
  color: var(--primary-text);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.legend-item span {
  color: var(--text-2);
  font-size: 12.5px;
  line-height: 1.5;
}

/* ─── Mapping table ─── */

.mapping-table { display: grid; gap: 8px; margin-top: 14px; }

.mapping-header,
.mapping-row {
  display: grid;
  grid-template-columns: minmax(0,1fr) minmax(0,1fr) 40px;
  gap: 10px;
  align-items: center;
}

.mapping-header {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0 2px;
}

.mapping-row {
  border: 1.5px solid var(--line);
  border-radius: 12px;
  padding: 9px 11px;
  background: var(--surface);
  transition: border-color 0.14s, box-shadow 0.14s;
}

.mapping-row:focus-within {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--focus);
}

.mapping-row .field { gap: 0; }

.mapping-row input {
  min-height: 36px;
  border: 1.5px solid transparent;
  border-radius: 7px;
  padding: 7px 10px;
  background: var(--bg);
  color: var(--text);
  font-size: 13.5px;
}

.mapping-row input:focus {
  background: #fff;
  border-color: var(--primary);
  box-shadow: none;
}

/* delete button — lebih berbeda dari secondary button */
.icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border: 1.5px solid var(--line-strong);
  border-radius: 8px;
  background: var(--surface);
  color: var(--muted);
  cursor: pointer;
  transition: all 0.14s;
}

.icon-button:hover {
  background: var(--danger-dim);
  color: var(--danger);
  border-color: #fca5a5;
}

.icon-button svg { width: 15px; height: 15px; stroke: currentColor; }

/* ─── Code editor ─── */

.editor-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.editor-header label {
  color: var(--text);
  font-size: 13px;
  font-weight: 600;
}

/* Mode toggle — segmented control yang jelas */
.mode-toggle {
  display: flex;
  border: 1.5px solid var(--line-strong);
  border-radius: 9px;
  background: var(--bg);
  padding: 3px;
  gap: 2px;
  flex-shrink: 0;
}

.mode-btn {
  padding: 4px 14px;
  border: none;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.14s;
}

.mode-btn.active {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 1px 4px rgba(79,70,229,0.3);
}

.mode-btn:hover:not(.active) { color: var(--text); }

.html-preview {
  display: none;
  min-height: 420px;
  border: 1.5px solid var(--line-strong);
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
}

.html-preview.show { display: block; }

.code-editor {
  display: none;
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  background: #0d1117;
  border: 1.5px solid #30363d;
  min-height: 420px;
  font-family: "Cascadia Code", "Fira Code", "Consolas", "Menlo", monospace;
  font-size: 13px;
  line-height: 1.6;
}

.code-editor.show { display: flex; }

.code-editor-gutter {
  flex-shrink: 0;
  width: 50px;
  padding: 14px 0;
  background: #0d1117;
  border-right: 1px solid #21262d;
  text-align: right;
  color: #3b4048;
  font-size: 12px;
  line-height: 1.6;
  user-select: none;
  overflow: hidden;
}

.code-editor-gutter span { display: block; padding-right: 12px; }

.code-editor-body { position: relative; flex: 1; overflow: auto; }

.code-editor textarea {
  position: absolute;
  inset: 0;
  z-index: 2;
  width: 100%;
  height: 100%;
  min-height: 420px;
  padding: 14px 18px;
  background: transparent;
  border: none;
  outline: none;
  resize: none;
  color: transparent;
  caret-color: #79c0ff;
  font: inherit;
  line-height: 1.6;
  white-space: pre-wrap;
  overflow-wrap: break-word;
  tab-size: 2;
}

.code-editor-highlight {
  position: absolute;
  inset: 0;
  z-index: 1;
  padding: 14px 18px;
  pointer-events: none;
  white-space: pre-wrap;
  overflow-wrap: break-word;
  color: #d4d4d4;
}

/* VS Code dark theme colors */
.hl-tag     { color: #569cd6; }
.hl-attr    { color: #9cdcfe; }
.hl-value   { color: #ce9178; }
.hl-comment { color: #6a9955; }

/* ─── Transactions ─── */

.trx-toolbar {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.trx-search {
  flex: 1;
  min-height: 40px;
  border: 1.5px solid var(--line-strong);
  border-radius: 10px;
  padding: 8px 13px;
  background: var(--surface);
  color: var(--text);
  font: inherit;
  font-size: 14px;
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.trx-search:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--focus);
}

.trx-filter {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.trx-date-filter {
  min-height: 40px;
  border: 1.5px solid var(--line-strong);
  border-radius: 9px;
  padding: 7px 11px;
  background: var(--surface);
  color: var(--text);
  font: inherit;
  font-size: 13.5px;
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.trx-date-filter:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--focus);
}

.trx-count {
  color: var(--muted);
  font-size: 13px;
  white-space: nowrap;
}

.scalev-stat {
  display: grid;
  gap: 12px;
  margin-bottom: 16px;
  border: 1.5px solid var(--line);
  border-radius: 14px;
  padding: 16px;
  background: var(--surface);
}

.scalev-stat-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.scalev-stat-header .eyebrow {
  margin-bottom: 4px;
}

.scalev-stat-header h3 {
  margin: 0;
  color: var(--text);
  font-size: 16px;
  font-weight: 700;
}

.scalev-stat-header loading-overlay {
  width: auto;
  min-width: 180px;
  margin: 0;
}

.scalev-stat-tabs {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  border-bottom: 1.5px solid var(--line);
  padding-bottom: 8px;
}

.scalev-stat-tab {
  min-height: 34px;
  border: 1.5px solid var(--line-strong);
  border-radius: 8px;
  padding: 0 12px;
  background: var(--surface);
  color: var(--text-2);
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.14s, border-color 0.14s, color 0.14s;
}

.scalev-stat-tab:hover,
.scalev-stat-tab.active {
  border-color: var(--primary);
  background: var(--primary-dim);
  color: var(--primary-text);
}

.scalev-stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 10px;
}

.scalev-stat-card {
  border: 1.5px solid var(--line);
  border-radius: 10px;
  padding: 12px 14px;
  background: var(--bg);
}

.scalev-stat-card-completed {
  border-color: #86efac;
  background: #f0fdf4;
}

.scalev-stat-card-pending {
  border-color: #fde68a;
  background: #fffbeb;
}

.scalev-stat-card-canceled {
  border-color: #fca5a5;
  background: #fef2f2;
}

.scalev-stat-card span {
  display: block;
  margin-bottom: 4px;
  color: var(--text-2);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
}

.scalev-stat-card-completed span,
.scalev-stat-card-completed small {
  color: #15803d;
}

.scalev-stat-card-pending span,
.scalev-stat-card-pending small {
  color: #a16207;
}

.scalev-stat-card-canceled span,
.scalev-stat-card-canceled small {
  color: #b91c1c;
}

.scalev-stat-card strong {
  display: block;
  color: var(--text);
  font-size: 24px;
  line-height: 1.15;
}

.scalev-stat-card small {
  display: block;
  margin-top: 4px;
  color: var(--text-2);
  font-size: 13px;
  font-weight: 600;
}

.scalev-stat-empty {
  padding: 18px;
  border-radius: 10px;
  background: var(--bg);
  color: var(--text-2);
  font-size: 13.5px;
  text-align: center;
}

.trx-table-wrap {
  overflow-x: auto;
  border: 1.5px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
}

.trx-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.5px;
}

.trx-table thead tr {
  border-bottom: 1.5px solid var(--line);
}

.trx-table th {
  padding: 11px 16px;
  text-align: left;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  white-space: nowrap;
}

.trx-table td {
  padding: 13px 16px;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
  color: var(--text);
}

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

.trx-table tbody tr:hover td { background: var(--bg); }

.trx-invoice { font-weight: 600; font-size: 13px; color: var(--text-2); white-space: nowrap; }
.trx-name { font-weight: 600; }
.trx-email { color: var(--text-2); font-size: 12.5px; margin-top: 2px; }
.trx-phone { color: var(--muted); font-size: 12.5px; margin-top: 2px; }
.trx-product { max-width: 220px; }
.trx-price { white-space: nowrap; font-weight: 600; }
.trx-date { white-space: nowrap; color: var(--text-2); }
.trx-date-extra { color: var(--muted); font-size: 12px; }
.trx-actions { text-align: right; white-space: nowrap; }
.trx-action-btn {
  width: 32px;
  min-height: 32px;
  padding: 0;
  border-radius: 8px;
}
.trx-action-btn svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.trx-empty {
  text-align: center;
  padding: 48px 16px !important;
  color: var(--muted);
}

/* ─── Badge ─── */

.badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}

.badge-pending { background: #fef9c3; color: #854d0e; }
.badge-success { background: var(--success-dim); color: var(--success); }
.badge-cancel { background: #fee2e2; color: #991b1b; }
.badge-failed { background: var(--danger-dim); color: var(--danger); }
.badge-default { background: var(--bg); color: var(--text-2); }

/* ─── Pagination ─── */

.trx-pagination {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 16px;
}

.page-ellipsis {
  min-width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text-2);
  font-size: 13px;
}

.page-btn.page-nav {
  font-size: 15px;
}

.page-btn[disabled] {
  opacity: 0.4;
  cursor: not-allowed;
}

.page-btn {
  min-width: 36px;
  height: 36px;
  padding: 0 10px;
  border: 1.5px solid var(--line-strong);
  border-radius: 8px;
  background: var(--surface);
  color: var(--text-2);
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.14s;
}

.page-btn:hover:not(.active) {
  background: var(--bg);
  border-color: #9ca3af;
  color: var(--text);
}

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

/* ─── Modal ─── */

.confirm-backdrop {
  z-index: 200 !important;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(17,24,39,0.5);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal {
  width: min(100%, 860px);
  max-height: 88vh;
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border-radius: 20px;
  box-shadow: 0 32px 80px rgba(17,24,39,0.25);
  overflow: hidden;
}

.modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 24px 16px;
  border-bottom: 1.5px solid var(--line);
  flex-shrink: 0;
}

.modal-header strong {
  font-size: 15px;
  font-weight: 700;
  line-height: 1.4;
  word-break: break-word;
}

.modal-header .nav-actions { flex-shrink: 0; }

.modal-meta {
  display: flex;
  gap: 0;
  flex-wrap: wrap;
  padding: 0 24px;
  border-bottom: 1px solid var(--line);
  flex-shrink: 0;
}

.modal-meta span {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 16px 10px 0;
  color: var(--text-2);
  font-size: 13px;
  margin-right: 16px;
  border-right: 1px solid var(--line);
  padding-right: 16px;
}

.modal-meta span:last-child { border-right: none; margin-right: 0; }

.modal-meta strong { color: var(--text); font-weight: 600; }

.confirm-modal {
  width: min(100%, 400px);
  max-height: unset;
}

.confirm-body {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 8px;
  padding: 32px 28px 20px;
}

.confirm-icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #fef9c3;
  color: #854d0e;
  margin-bottom: 4px;
}

.confirm-icon svg { width: 24px; height: 24px; }

.confirm-body strong { font-size: 16px; font-weight: 700; }

.confirm-body p {
  margin: 0;
  color: var(--text-2);
  font-size: 13.5px;
  line-height: 1.6;
}

.confirm-actions {
  display: flex;
  gap: 8px;
  padding: 16px 20px 20px;
  border-top: 1px solid var(--line);
}

.confirm-actions .btn { flex: 1; }

.modal-iframe-wrap {
  flex: 1;
  overflow: auto;
  padding: 24px;
  background: var(--bg);
}

.modal-iframe {
  border: none;
  width: 100%;
  min-height: 520px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 1px 4px rgba(17,24,39,0.08);
  display: block;
}

.whatsapp-preview {
  width: 100%;
  min-height: 420px;
  margin: 0;
  padding: 18px;
  border-radius: 12px;
  background: var(--surface);
  color: var(--text);
  box-shadow: 0 1px 4px rgba(17,24,39,0.08);
  font: inherit;
  font-size: 14px;
  line-height: 1.7;
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.whatsapp-preview code {
  display: inline;
  padding: 2px 5px;
  border-radius: 5px;
  background: var(--bg);
  color: var(--text);
  font-family: ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace;
  font-size: 0.95em;
}

/* Home dashboard styling */

.home-shell {
  position: relative;
  min-height: 100vh;
  grid-template-columns: minmax(300px, var(--shell-image-width, 425px)) minmax(0, var(--shell-content-width, 655px));
  justify-content: center;
  align-content: center;
  gap: 0;
  overflow: hidden;
  padding: 56px 28px;
  background: #e9e8f1;
}

.home-shell::before,
.home-shell::after {
  content: "";
  position: absolute;
  width: 340px;
  height: 340px;
  border-radius: 50%;
  background: #f38f98;
  opacity: 0.95;
  pointer-events: none;
}

.home-shell::before {
  top: -210px;
  left: -52px;
}

.home-shell::after {
  right: -96px;
  bottom: -220px;
}

.home-shell > brand-shell,
.home-shell > .content-panel {
  position: relative;
  z-index: 1;
  min-height: 650px;
  box-shadow: 0 36px 80px rgba(34, 39, 60, 0.16);
}

.home-shell > brand-shell {
  display: block;
}

.home-shell .brand-panel {
  height: 100%;
  min-height: 650px;
  border-radius: 16px 0 0 16px;
  padding: 28px;
  background-position: center;
}

.home-shell .brand-panel::before {
  background: linear-gradient(160deg, rgba(251, 102, 112, 0.86), rgba(36, 43, 56, 0.58));
}

.home-shell .brand-panel::after {
  height: 58%;
  background: linear-gradient(transparent, rgba(36, 43, 56, 0.58));
}

.home-shell .brand-symbol {
  border: 0;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 10px 24px rgba(34, 39, 60, 0.12);
}

.home-shell .brand-copy h1 {
  font-size: clamp(30px, 4vw, 46px);
  letter-spacing: 0;
}

.home-shell .brand-copy p {
  color: rgba(255, 255, 255, 0.78);
  font-weight: 600;
}

.home-shell .content-panel {
  align-items: stretch;
  justify-content: stretch;
  border-radius: 0 16px 16px 0;
  padding: 34px;
  background: #eef4fb;
}

.home-shell .home-main {
  width: 100%;
  display: flex;
  flex-direction: column;
}

.home-shell .top-nav {
  margin-bottom: 44px;
}

.home-shell .top-nav .brand-mark {
  color: #101827;
  font-size: 13px;
}

.home-shell [data-guest-content] {
  border-radius: 10px;
  padding: 26px 24px;
  background: #fb6670;
  color: #fff;
  box-shadow: 0 18px 34px rgba(251, 102, 112, 0.2);
}

.home-shell [data-guest-content] .eyebrow,
.home-shell [data-guest-content] h2,
.home-shell [data-guest-content] .lead {
  color: #fff;
}

.home-shell [data-guest-content] .eyebrow {
  opacity: 0.75;
}

.home-shell [data-guest-content] .lead {
  max-width: 440px;
  margin-bottom: 0;
  opacity: 0.82;
}

.home-shell .metric-grid {
  gap: 12px;
  margin: 18px 0 0;
}

.home-shell .metric {
  border: 0;
  border-radius: 10px;
  padding: 18px 16px;
  background: #fff;
  box-shadow: 0 16px 30px rgba(34, 39, 60, 0.06);
}

.home-shell .metric:hover {
  border-color: transparent;
  box-shadow: 0 18px 34px rgba(251, 102, 112, 0.14);
}

.home-shell .metric strong {
  color: #fb6670;
  font-size: 18px;
}

.home-shell .metric span {
  color: #6f7785;
  font-size: 12px;
  font-weight: 600;
}

.home-shell .user-strip {
  border: 0;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 16px 30px rgba(34, 39, 60, 0.06);
}

.home-shell .admin-actions.show {
  gap: 10px;
  margin-top: 18px;
}

.home-shell .admin-link,
.home-shell .admin-menu-trigger {
  border: 0;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 12px 24px rgba(34, 39, 60, 0.05);
}

.home-shell .admin-link:hover,
.home-shell .admin-menu-trigger:hover {
  color: #fb6670;
  box-shadow: 0 18px 34px rgba(251, 102, 112, 0.14);
}

.home-shell .admin-link-icon {
  border-radius: 9px;
  background: #fff0f2;
  color: #fb6670;
}

.home-shell .admin-submenu {
  border-left-color: #ffd4d8;
}

.home-shell .admin-submenu-link:hover {
  color: #fb6670;
}

.home-shell .btn-primary {
  border-color: #fb6670;
  background: #fb6670;
  box-shadow: 0 8px 18px rgba(251, 102, 112, 0.28);
}

.home-shell .btn-primary:hover:not(:disabled) {
  border-color: #ef5c66;
  background: #ef5c66;
}

.home-shell .btn-secondary {
  border-color: transparent;
  background: #fff;
  color: #596171;
}

.home-shell loading-overlay {
  border: 0;
  border-radius: 10px;
  background: #fff;
}

/* Shared coral dashboard skin */

:root {
  --primary: #fb6670;
  --primary-hover: #ef5c66;
  --primary-dim: #fff0f2;
  --primary-text: #d94c57;
  --focus: rgba(251, 102, 112, 0.18);
  --shell-width: 1080px;
  --shell-image-width: 425px;
  --shell-content-width: 655px;
}

.app-shell:not(.home-shell) {
  position: relative;
  min-height: 100vh;
  grid-template-columns: minmax(300px, var(--shell-image-width)) minmax(0, var(--shell-content-width));
  justify-content: center;
  align-content: center;
  overflow: hidden;
  padding: 56px 28px;
  background: #e9e8f1;
}

.app-shell:not(.home-shell)::before,
.app-shell:not(.home-shell)::after,
.page-shell::before,
.page-shell::after {
  content: "";
  position: fixed;
  z-index: 0;
  width: 340px;
  height: 340px;
  border-radius: 50%;
  background: #f38f98;
  opacity: 0.88;
  pointer-events: none;
}

.app-shell:not(.home-shell)::before,
.page-shell::before {
  top: -210px;
  left: -52px;
}

.app-shell:not(.home-shell)::after,
.page-shell::after {
  right: -96px;
  bottom: -220px;
}

.app-shell:not(.home-shell) > brand-shell,
.app-shell:not(.home-shell) > .content-panel {
  position: relative;
  z-index: 1;
  min-height: 600px;
  box-shadow: 0 36px 80px rgba(34, 39, 60, 0.16);
}

.app-shell:not(.home-shell) > brand-shell {
  display: block;
}

.app-shell:not(.home-shell) .brand-panel {
  height: 100%;
  min-height: 600px;
  border-radius: 16px 0 0 16px;
  padding: 28px;
}

.app-shell:not(.home-shell) .brand-panel::before {
  background: linear-gradient(160deg, rgba(251, 102, 112, 0.86), rgba(36, 43, 56, 0.58));
}

.app-shell:not(.home-shell) .brand-panel::after {
  height: 58%;
  background: linear-gradient(transparent, rgba(36, 43, 56, 0.58));
}

.app-shell:not(.home-shell) .brand-symbol,
.page-shell .brand-symbol {
  border: 0;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 10px 24px rgba(34, 39, 60, 0.12);
}

.app-shell:not(.home-shell) .brand-copy h1 {
  font-size: clamp(30px, 4vw, 46px);
  letter-spacing: 0;
}

.app-shell:not(.home-shell) .brand-copy p {
  color: rgba(255, 255, 255, 0.78);
  font-weight: 600;
}

.app-shell:not(.home-shell) .content-panel {
  align-items: center;
  border-radius: 0 16px 16px 0;
  background: #eef4fb;
}

.app-shell:not(.home-shell) .auth-box {
  border-radius: 14px;
  padding: 28px;
  background: #fff;
  box-shadow: 0 18px 34px rgba(34, 39, 60, 0.08);
}

.page-shell {
  position: relative;
  overflow: hidden;
  background: #e9e8f1;
}

.page-container {
  position: relative;
  z-index: 1;
  width: min(100%, var(--shell-width));
}

.floating-header {
  border: 0;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 18px 34px rgba(34, 39, 60, 0.09);
}

.floating-header .brand-mark {
  color: #101827;
}

.page-shell .template-main {
  border-radius: 16px;
  padding: 28px;
  background: #eef4fb;
  box-shadow: 0 36px 80px rgba(34, 39, 60, 0.12);
}

.page-shell .eyebrow {
  color: #fb6670;
}

.field input,
.field textarea,
.trx-search,
.trx-date-filter {
  border-color: transparent;
  background: #fff;
  box-shadow: 0 10px 24px rgba(34, 39, 60, 0.05);
}

.field input:focus,
.field textarea:focus,
.trx-search:focus,
.trx-date-filter:focus {
  border-color: #fb6670;
  box-shadow: 0 0 0 3px rgba(251, 102, 112, 0.18);
}

.field .code-editor textarea,
.field .code-editor textarea:hover,
.field .code-editor textarea:focus {
  border: none;
  background: transparent;
  box-shadow: none;
  color: transparent;
}

.template-section {
  border-top-color: rgba(251, 102, 112, 0.22);
}

.template-section-header span {
  color: #fb6670;
}

.legend-item,
.mapping-row,
.scalev-stat,
.trx-table-wrap,
.modal,
.modal-iframe,
.whatsapp-preview {
  border-color: transparent;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 16px 30px rgba(34, 39, 60, 0.06);
}

.legend-item:hover,
.mapping-row:focus-within,
.scalev-stat-tab:hover,
.scalev-stat-tab.active {
  border-color: transparent;
  box-shadow: 0 18px 34px rgba(251, 102, 112, 0.14);
}

.legend-item code {
  color: #fb6670;
}

.trx-table tbody tr:hover td {
  background: #fff7f8;
}

.scalev-stat-card,
.scalev-stat-empty {
  border-color: transparent;
  border-radius: 10px;
  background: #fff;
}

.scalev-stat-card strong {
  color: #101827;
}

.scalev-stat-tab {
  border-color: transparent;
  background: #fff;
}

.page-btn {
  border-color: transparent;
  background: #fff;
  box-shadow: 0 8px 18px rgba(34, 39, 60, 0.05);
}

.page-btn.active {
  border-color: #fb6670;
  background: #fb6670;
}

.badge-success {
  background: #ecfdf3;
}

.badge-pending {
  background: #fff7d6;
}

.badge-failed,
.badge-cancel {
  background: #fff0f2;
  color: #d94c57;
}

.modal-backdrop {
  background: rgba(36, 43, 56, 0.46);
}

.modal-header {
  border-bottom-color: #f0f2f6;
}

.modal-iframe-wrap {
  background: #eef4fb;
}

.confirm-icon {
  background: #fff0f2;
  color: #fb6670;
}

.btn-primary {
  border-color: #fb6670;
  background: #fb6670;
  box-shadow: 0 8px 18px rgba(251, 102, 112, 0.28);
}

.btn-primary:hover:not(:disabled) {
  border-color: #ef5c66;
  background: #ef5c66;
}

.btn-secondary {
  border-color: transparent;
  background: #fff;
  color: #596171;
}

.btn-secondary:hover:not(:disabled) {
  border-color: transparent;
  background: #fff7f8;
  color: #fb6670;
}

.btn-danger {
  border-color: #ffb8be;
  background: #fff0f2;
  color: #d94c57;
}

.btn-danger:hover:not(:disabled) {
  border-color: #fb6670;
  background: #fb6670;
}

.icon-button {
  border-color: transparent;
  background: #fff;
  box-shadow: 0 8px 18px rgba(34, 39, 60, 0.05);
}

loading-overlay {
  border: 0;
  border-radius: 10px;
  background: #fff;
}

.page-shell .mapping-table {
  gap: 10px;
  margin-top: 22px;
}

.page-shell .mapping-header {
  grid-template-columns: minmax(240px, 0.95fr) minmax(280px, 1.25fr) 46px;
  gap: 14px;
  padding: 0 18px;
  color: #fb6670;
  font-size: 11px;
  letter-spacing: 0.08em;
}

.page-shell [data-mapping-rows],
.page-shell [data-scalev-product-rows] {
  display: grid;
  gap: 12px;
}

.page-shell .mapping-row {
  grid-template-columns: minmax(240px, 0.95fr) minmax(280px, 1.25fr) 46px;
  gap: 14px;
  align-items: stretch;
  border: 1px solid rgba(251, 102, 112, 0.08);
  border-radius: 14px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.76);
  box-shadow: 0 14px 30px rgba(34, 39, 60, 0.07);
}

.page-shell .mapping-row:hover {
  border-color: rgba(251, 102, 112, 0.22);
  box-shadow: 0 18px 34px rgba(251, 102, 112, 0.12);
}

.page-shell .mapping-row:focus-within {
  border-color: rgba(251, 102, 112, 0.36);
  box-shadow: 0 0 0 3px rgba(251, 102, 112, 0.12), 0 18px 34px rgba(34, 39, 60, 0.08);
}

.page-shell .mapping-row .field {
  gap: 0;
}

.page-shell .mapping-row input {
  min-height: 48px;
  border: 1px solid #eef0f5;
  border-radius: 10px;
  padding: 11px 14px;
  background: #fff;
  color: #111827;
  box-shadow: none;
}

.page-shell .mapping-row input:hover {
  border-color: #ffd4d8;
}

.page-shell .mapping-row input:focus {
  border-color: #fb6670;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(251, 102, 112, 0.14);
}

.page-shell .mapping-row .icon-button {
  width: 46px;
  height: 48px;
  align-self: center;
  border: 1px solid #ffe0e3;
  background: #fff7f8;
  color: #fb6670;
  box-shadow: none;
}

.page-shell .mapping-row .icon-button:hover {
  border-color: #fb6670;
  background: #fb6670;
  color: #fff;
}

/* ─── Responsive ─── */

@media (max-width: 900px) {
  .app-shell { grid-template-columns: 1fr; }
  .brand-panel { min-height: 220px; padding: 28px; }
  .brand-copy h1 { font-size: 30px; }
  .content-panel { padding: 36px 24px; }
  .page-shell { padding: 14px 16px 40px; }
  .home-shell {
    grid-template-columns: minmax(0, 640px);
    padding: 22px 14px;
  }
  .home-shell > brand-shell,
  .home-shell > .content-panel,
  .home-shell .brand-panel {
    min-height: auto;
  }
  .home-shell .brand-panel {
    border-radius: 16px 16px 0 0;
  }
  .home-shell .content-panel {
    border-radius: 0 0 16px 16px;
  }
  .app-shell:not(.home-shell) {
    grid-template-columns: minmax(0, 640px);
    padding: 22px 14px;
  }
  .app-shell:not(.home-shell) > brand-shell,
  .app-shell:not(.home-shell) > .content-panel,
  .app-shell:not(.home-shell) .brand-panel {
    min-height: auto;
  }
  .app-shell:not(.home-shell) .brand-panel {
    border-radius: 16px 16px 0 0;
  }
  .app-shell:not(.home-shell) .content-panel {
    border-radius: 0 0 16px 16px;
  }
  .page-shell .template-main {
    padding: 22px;
  }
}

@media (max-width: 560px) {
  h2 { font-size: 22px; }
  .metric-grid { grid-template-columns: 1fr; }
  .top-nav, .user-strip, .floating-header { align-items: stretch; flex-direction: column; }
  .nav-actions { width: 100%; }
  .nav-actions .btn { flex: 1; }
  .legend-grid { grid-template-columns: 1fr; }
  .mapping-header { display: none; }
  .mapping-row { grid-template-columns: 1fr; }
  .icon-button { width: 100%; }
  .page-shell .mapping-table {
    gap: 12px;
    margin-top: 16px;
  }
  .page-shell .mapping-row {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 14px;
  }
  .page-shell .mapping-row .field::before {
    content: attr(data-mobile-label);
    display: block;
    margin: 0 0 6px 2px;
    color: #fb6670;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.07em;
    text-transform: uppercase;
  }
  .page-shell .mapping-row input {
    min-height: 44px;
  }
  .page-shell .mapping-row .icon-button {
    width: 100%;
    height: 42px;
  }
  .trx-toolbar { align-items: stretch; flex-direction: column; }
  .trx-filter { width: 100%; }
  .trx-filter .btn, .trx-date-filter { flex: 1; }
  .trx-table-wrap {
    overflow: visible;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
  }
  .trx-table,
  .trx-table tbody,
  .trx-table tr,
  .trx-table td {
    display: block;
    width: 100%;
  }
  .trx-table {
    border-collapse: separate;
    border-spacing: 0;
  }
  .trx-table thead {
    display: none;
  }
  .trx-table tbody {
    display: grid;
    gap: 12px;
  }
  .trx-table tbody tr {
    border-radius: 14px;
    padding: 12px 14px;
    background: #fff;
    box-shadow: 0 14px 30px rgba(34, 39, 60, 0.07);
  }
  .trx-table td {
    display: grid;
    grid-template-columns: minmax(92px, 0.4fr) minmax(0, 1fr);
    gap: 12px;
    align-items: start;
    border-bottom: 1px solid #f0f2f6;
    padding: 10px 0;
    overflow-wrap: anywhere;
  }
  .trx-table td::before {
    content: attr(data-label);
    color: #fb6670;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.07em;
    line-height: 1.5;
    text-transform: uppercase;
  }
  .trx-table td[data-label="Customer"] .trx-email,
  .trx-table td[data-label="Customer"] .trx-phone {
    grid-column: 2;
  }
  .trx-table td:last-child {
    border-bottom: 0;
    padding-bottom: 0;
  }
  .trx-table tbody tr:last-child td {
    border-bottom: 1px solid #f0f2f6;
  }
  .trx-table tbody tr:last-child td:last-child {
    border-bottom: 0;
  }
  .trx-table tbody tr:hover td {
    background: transparent;
  }
  .trx-table .trx-empty {
    display: block;
    text-align: center;
    padding: 28px 16px !important;
  }
  .trx-table .trx-empty::before {
    content: none;
  }
  .trx-product {
    max-width: none;
  }
  .trx-actions {
    text-align: left;
    white-space: normal;
  }
  .trx-actions .btn,
  .trx-actions .trx-action-btn {
    width: 100%;
  }
  .trx-actions .trx-action-btn {
    min-height: 36px;
  }
  .scalev-stat-header { flex-direction: column; }
  .scalev-stat-header loading-overlay { width: 100%; }
}
