﻿:root {
  --bg: #070a12;
  --panel: rgba(15, 23, 42, 0.86);
  --panel-2: rgba(22, 33, 58, 0.9);
  --line: rgba(125, 211, 252, 0.22);
  --text: #f6f6f6;
  --muted: #a9b8cc;
  --orange: #ff8a00;
  --cyan: #15f4ee;
  --green: #28f77f;
  --red: #ff4d6d;
  --yellow: #ffc857;
  --blue: #4ca8ff;
  --violet: #9b5cff;
}

/* Scroll reliability pass: keep long pages and side panels usable on desktop and phone. */
html,
body {
  min-height: 100%;
}

body {
  overflow-x: auto !important;
  overflow-y: auto !important;
}

.layout {
  height: auto !important;
  min-height: calc(100dvh - 42px);
  min-width: 0;
}

.content {
  min-height: 0;
  min-width: 0;
  overflow: visible !important;
}

.table-wrap,
.base-table,
.accounts-table,
.compact-base,
.related-table,
.combo-list,
.client-results,
.account-results,
.sale-editor,
.account-editor,
.renew-modal,
.modal-card {
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
}

.table-wrap,
.base-table,
.accounts-table,
.compact-base,
.related-table,
.combo-list,
.client-results,
.account-results {
  overflow: auto !important;
}

.accounts-layout,
.base-layout,
.account-editor-grid,
.legacy-editor-grid,
.account-detail-panel,
.account-profile-card {
  min-height: 0;
  min-width: 0;
}

.accounts-table {
  max-height: none !important;
}

.accounts-table table {
  min-width: 1180px;
}

.account-editor,
.sale-editor {
  max-height: calc(100dvh - 78px);
  overflow: auto !important;
}

.combo-list,
.client-results,
.account-results {
  max-height: min(420px, 58dvh);
}

@media (max-width: 760px) {
  .topbar,
  .layout {
    min-width: 720px;
  }

  .content {
    overflow: visible !important;
  }

  .base-top-actions {
    display: flex;
    flex-wrap: nowrap;
    max-width: calc(100vw - 82px);
    overflow-x: auto !important;
    scrollbar-width: none;
    width: calc(100vw - 82px);
  }

  .base-top-actions::-webkit-scrollbar {
    display: none;
  }

  .base-table,
  .accounts-table {
    max-height: none !important;
    max-width: calc(100vw - 72px);
  }

  .account-editor,
  .sale-editor {
    max-height: none;
  }
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background:
    radial-gradient(circle at 18% 10%, rgba(21, 244, 238, 0.16), transparent 26%),
    radial-gradient(circle at 92% 22%, rgba(155, 92, 255, 0.14), transparent 28%),
    linear-gradient(135deg, #070a12 0%, #0d1324 50%, #070a12 100%);
  color: var(--text);
  font-family: "Inter", "Segoe UI Variable", "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, Arial, sans-serif;
  font-size: 13px;
  font-feature-settings: "cv02", "cv03", "cv04", "kern";
  min-height: 100vh;
  overflow-x: hidden;
  text-rendering: geometricPrecision;
}

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

.topbar {
  align-items: center;
  backdrop-filter: blur(18px);
  background: rgba(7, 10, 18, 0.82);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 0 30px rgba(21, 244, 238, 0.08);
  display: flex;
  gap: 18px;
  height: 42px;
  padding: 0 14px;
}

.hamburger {
  align-items: center;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(125, 211, 252, 0.2);
  border-radius: 10px;
  box-shadow: none;
  display: inline-flex;
  flex-direction: column;
  gap: 4px;
  height: 32px;
  justify-content: center;
  min-height: 32px;
  padding: 0;
  transition: border-color 180ms ease, background 180ms ease, transform 180ms ease;
  width: 36px;
}

.hamburger span {
  background: var(--cyan);
  border-radius: 999px;
  box-shadow: 0 0 8px rgba(21, 244, 238, 0.55);
  display: block;
  height: 2px;
  transition: transform 220ms ease, opacity 180ms ease, width 180ms ease;
  width: 18px;
}

.hamburger:hover {
  background: rgba(21, 244, 238, 0.12);
  border-color: rgba(21, 244, 238, 0.48);
  transform: translateY(-1px);
}

body:not(.sidebar-collapsed) .hamburger span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

body:not(.sidebar-collapsed) .hamburger span:nth-child(2) {
  opacity: 0;
}

body:not(.sidebar-collapsed) .hamburger span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

.logo {
  align-items: center;
  display: flex;
  font-size: 18px;
  font-weight: 760;
  gap: 10px;
  min-width: 220px;
}

.logo-mark {
  align-items: center;
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 0 18px rgba(21, 244, 238, 0.42);
  color: white;
  display: inline-flex;
  font-weight: 900;
  height: 30px;
  justify-content: center;
  overflow: hidden;
  width: 30px;
}

.logo-mark img {
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.search {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(125, 211, 252, 0.28);
  border-radius: 999px;
  color: white;
  margin: 0 auto;
  max-width: 480px;
  min-height: 30px;
  padding: 7px 12px;
  width: 42vw;
}

.avatar {
  align-items: center;
  background: linear-gradient(135deg, var(--orange), var(--yellow));
  box-shadow: 0 0 18px rgba(255, 138, 0, 0.4);
  border-radius: 50%;
  color: #111;
  display: flex;
  font-weight: 800;
  height: 30px;
  justify-content: center;
  width: 30px;
}

.layout {
  display: grid;
  grid-template-columns: 180px 1fr;
  min-height: calc(100vh - 42px);
}

.sidebar-collapsed .layout {
  grid-template-columns: 64px 1fr;
}

.sidebar {
  background: rgba(8, 13, 24, 0.74);
  border-right: 1px solid var(--line);
  contain: layout paint;
  padding: 4px 0;
}

.nav-item {
  align-items: center;
  border: 1px solid transparent;
  display: flex;
  gap: 12px;
  min-height: 38px;
  margin: 3px 8px;
  padding: 0 12px;
  position: relative;
  transition: background 120ms ease, border-color 120ms ease, color 120ms ease;
  overflow: hidden;
}

.nav-item::before {
  display: none;
}

.nav-item:hover,
.nav-item.active {
  background: linear-gradient(90deg, rgba(21, 244, 238, 0.14), rgba(155, 92, 255, 0.12));
  border: 1px solid rgba(21, 244, 238, 0.25);
  border-radius: 10px;
  color: var(--cyan);
}

.nav-icon {
  color: white;
  display: inline-block;
  flex: 0 0 22px;
  font-size: 15px;
  font-weight: 900;
  text-align: center;
  width: 22px;
}

.nav-label {
  font-size: 13px;
  font-weight: 720;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sidebar-collapsed .nav-item {
  justify-content: center;
  padding: 0;
}

.sidebar-collapsed .nav-label {
  display: none;
  opacity: 0;
  width: 0;
}

.sidebar-collapsed .nav-icon {
  color: var(--cyan);
}

.content {
  overflow: hidden;
  padding: 8px;
}

.crumb {
  align-items: center;
  border-bottom: 1px solid var(--line);
  display: flex;
  font-size: 16px;
  font-weight: 700;
  gap: 8px;
  margin: -8px -8px 8px;
  min-height: 38px;
  padding: 0 10px;
  text-shadow: 0 0 10px rgba(21, 244, 238, 0.25);
}

.page-crumb {
  justify-content: space-between;
}

.page-crumb .button {
  min-height: 28px;
  padding: 6px 12px;
}

.add-sale-button {
  align-items: center;
  background: linear-gradient(135deg, #ff9f1c, #ff7a00) !important;
  border: 1px solid rgba(255, 183, 77, 0.72) !important;
  border-radius: 10px !important;
  box-shadow:
    0 8px 22px rgba(255, 122, 0, 0.24),
    inset 0 1px 0 rgba(255, 255, 255, 0.34) !important;
  color: #140a00 !important;
  display: inline-flex;
  font-weight: 900;
  gap: 8px;
  isolation: isolate;
  min-height: 34px !important;
  overflow: hidden;
  padding: 7px 14px !important;
  position: relative;
}

.add-sale-button::before {
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.38), transparent);
  content: "";
  height: 120%;
  left: -80%;
  position: absolute;
  top: -10%;
  transform: skewX(-22deg);
  transition: left 0.55s ease;
  width: 48%;
  z-index: -1;
}

.add-sale-button::after {
  display: none;
}

.add-sale-button span {
  align-items: center;
  background: rgba(20, 10, 0, 0.13);
  border: 1px solid rgba(20, 10, 0, 0.2);
  border-radius: 50%;
  display: inline-flex;
  font-size: 15px;
  height: 20px;
  justify-content: center;
  line-height: 1;
  width: 20px;
}

.add-sale-button:hover {
  filter: saturate(1.14) brightness(1.05) !important;
  transform: translateY(-1px) !important;
}

.base-top-actions {
  align-items: center;
  display: inline-flex;
  gap: 8px;
}

.base-select-toggle {
  align-items: center !important;
  background: rgba(15, 23, 42, 0.88) !important;
  border: 1px solid rgba(34, 211, 238, 0.28) !important;
  border-radius: 11px !important;
  color: #dbeafe !important;
  display: inline-flex !important;
  font-size: 13px !important;
  font-weight: 880 !important;
  gap: 7px !important;
  min-height: 30px !important;
  padding: 5px 12px 5px 8px !important;
}

.base-select-toggle span {
  align-items: center;
  background: rgba(34, 211, 238, 0.12);
  border: 1px solid rgba(34, 211, 238, 0.32);
  border-radius: 999px;
  color: #67e8f9;
  display: inline-flex;
  height: 18px;
  justify-content: center;
  width: 18px;
}

.base-select-toggle.active {
  background: rgba(8, 145, 178, 0.18) !important;
  border-color: rgba(34, 211, 238, 0.72) !important;
  color: #f8fafc !important;
  box-shadow: 0 0 18px rgba(34, 211, 238, 0.14) !important;
}

.base-otp-sync {
  align-items: center !important;
  background: rgba(7, 19, 35, 0.92) !important;
  border: 1px solid rgba(96, 165, 250, 0.32) !important;
  border-radius: 11px !important;
  color: #dbeafe !important;
  display: inline-flex !important;
  font-size: 13px !important;
  font-weight: 820 !important;
  gap: 7px;
  min-height: 30px !important;
  padding: 5px 11px 5px 7px !important;
}

.base-otp-sync span {
  align-items: center;
  background: rgba(59, 130, 246, 0.14);
  border: 1px solid rgba(96, 165, 250, 0.36);
  border-radius: 999px;
  color: #93c5fd;
  display: inline-flex;
  font-size: 9px;
  height: 20px;
  justify-content: center;
  width: 28px;
}

.base-otp-sync:hover {
  background: rgba(15, 37, 64, 0.96) !important;
  border-color: rgba(96, 165, 250, 0.62) !important;
  transform: translateY(-1px) !important;
}

.base-bulk-bar {
  align-items: center;
  background: rgba(9, 16, 31, 0.94);
  border: 1px solid rgba(34, 211, 238, 0.22);
  border-radius: 14px;
  box-shadow: 0 16px 38px rgba(0, 0, 0, 0.24);
  display: flex;
  gap: 9px;
  margin: 8px 10px 10px;
  padding: 10px;
}

.base-bulk-bar[hidden] {
  display: none !important;
}

.base-bulk-bar > div {
  display: grid;
  gap: 1px;
  margin-right: auto;
}

.base-bulk-bar strong {
  color: #f8fafc;
  font-size: 13px;
}

.base-bulk-bar span {
  color: #94a3b8;
  font-size: 10px;
  font-weight: 760;
}

.bulk-action {
  border-radius: 999px;
  font-size: 12px;
  font-weight: 920;
  min-height: 32px;
  padding: 0 13px;
}

.bulk-action.paid {
  background: rgba(20, 184, 166, 0.14);
  border: 1px solid rgba(45, 212, 191, 0.38);
  color: #99f6e4;
}

.bulk-action.renew {
  background: rgba(14, 165, 233, 0.13);
  border: 1px solid rgba(56, 189, 248, 0.4);
  color: #bae6fd;
}

.bulk-action.combo {
  background: rgba(124, 58, 237, 0.13);
  border: 1px solid rgba(168, 85, 247, 0.45);
  color: #e9d5ff;
}

.bulk-action.combo:hover {
  background: rgba(124, 58, 237, 0.2);
  box-shadow: 0 8px 24px rgba(126, 34, 206, 0.18);
}

.bulk-action.whatsapp {
  background: rgba(22, 163, 74, 0.13);
  border: 1px solid rgba(34, 197, 94, 0.4);
  color: #bbf7d0;
}

.bulk-action.pending {
  background: rgba(244, 63, 94, 0.12);
  border: 1px solid rgba(251, 113, 133, 0.38);
  color: #fda4af;
}

.bulk-action.grace {
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(251, 191, 36, 0.36);
  color: #fde68a;
}

.bulk-action.delete {
  background: rgba(76, 5, 25, 0.18);
  border: 1px solid rgba(251, 113, 133, 0.28);
  color: #fb7185;
}

.bulk-renew-note {
  margin: 2px 0 0;
  color: #a8b6c8;
  font-size: 12px;
  font-weight: 760;
  line-height: 1.45;
}

.combo-convert-modal {
  max-width: 500px;
}

.combo-convert-summary {
  background: rgba(15, 23, 42, 0.64);
  border: 1px solid rgba(168, 85, 247, 0.25);
  border-radius: 10px;
  display: grid;
  gap: 7px;
  margin: 16px 0;
  padding: 15px;
}

.combo-convert-summary strong {
  color: #e9d5ff;
  font-size: 15px;
}

.combo-convert-summary p {
  color: var(--muted);
  line-height: 1.55;
  margin: 0;
}

.combo-confirm {
  background: linear-gradient(135deg, #7c3aed, #4f46e5);
}

.editable-client-row input,
.editable-client-row select {
  width: 100%;
  min-height: 36px;
  border-radius: 10px;
  border: 1px solid rgba(125, 211, 252, 0.22);
  background: rgba(2, 6, 23, 0.52);
  color: #f8fafc;
  font-weight: 760;
  padding: 8px 10px;
}

.editable-client-row input:focus,
.editable-client-row select:focus {
  border-color: rgba(34, 211, 238, 0.72);
  outline: none;
  box-shadow: 0 0 0 3px rgba(34, 211, 238, 0.08);
}

.client-save-button {
  min-height: 34px;
  padding: 0 13px;
  border-radius: 999px;
  background: rgba(20, 184, 166, 0.14) !important;
  border: 1px solid rgba(45, 212, 191, 0.38) !important;
  color: #99f6e4 !important;
}

.bulk-col,
.bulk-cell {
  display: none !important;
  text-align: center !important;
  min-width: 28px !important;
  width: 28px !important;
}

.bulk-col[hidden],
.bulk-cell[hidden] {
  display: none !important;
}

.bulk-enabled .bulk-col,
.bulk-enabled .bulk-cell,
.bulk-mode .bulk-col,
.bulk-mode .bulk-cell {
  display: table-cell !important;
}

.bulk-cell input,
.bulk-col input {
  appearance: none;
  -webkit-appearance: none;
  accent-color: #22d3ee;
  background: rgba(2, 6, 23, 0.42);
  border: 1px solid rgba(125, 211, 252, 0.28);
  border-radius: 999px;
  cursor: pointer;
  height: 13px;
  margin: 0;
  position: relative;
  width: 13px;
}

.bulk-cell input:checked,
.bulk-col input:checked {
  background: linear-gradient(135deg, rgba(34, 211, 238, 0.92), rgba(20, 184, 166, 0.86));
  border-color: rgba(103, 232, 249, 0.92);
}

.bulk-cell input:checked::after,
.bulk-col input:checked::after {
  color: #021018;
  content: "âœ“";
  font-size: 11px;
  font-weight: 950;
  left: 2px;
  line-height: 1;
  position: absolute;
  top: 1px;
}

.bulk-selected-row td {
  background: linear-gradient(90deg, rgba(8, 145, 178, 0.24), rgba(15, 23, 42, 0.96)) !important;
  box-shadow: inset 0 1px 0 rgba(34, 211, 238, 0.16), inset 0 -1px 0 rgba(34, 211, 238, 0.16) !important;
}

body.bulk-enabled .compact-base [data-sale-row] {
  cursor: cell;
}

body.bulk-enabled .compact-base [data-sale-row]:hover td {
  background: linear-gradient(90deg, rgba(14, 116, 144, 0.22), rgba(15, 23, 42, 0.94)) !important;
}

.bulk-cell input:checked::after,
.bulk-col input:checked::after {
  content: "âœ“" !important;
  font-size: 10px !important;
}

.add-sale-button:hover::before {
  left: 132%;
}

.muted { color: var(--muted); }
.orange { color: var(--orange); }
.cyan { color: var(--cyan); }
.green { color: var(--green); }
.red { color: var(--red); }
.yellow { color: var(--yellow); }

.toolbar {
  align-items: center;
  display: flex;
  gap: 8px;
  justify-content: flex-end;
  margin-bottom: 8px;
}

.button,
button {
  background: linear-gradient(135deg, var(--orange), #ffb000);
  border: 0;
  border-radius: 8px;
  box-shadow: 0 0 16px rgba(255, 138, 0, 0.18);
  color: #111;
  cursor: pointer;
  font: inherit;
  font-weight: 800;
  min-height: 30px;
  padding: 7px 12px;
  transition: box-shadow 180ms ease, filter 180ms ease, transform 180ms ease;
}

.button:hover,
button:hover {
  box-shadow: 0 0 22px rgba(255, 138, 0, 0.28);
  filter: brightness(1.06);
  transform: translateY(-1px);
}

.button.secondary,
button.secondary { background: rgba(255, 255, 255, 0.08); color: white; border: 1px solid var(--line); }

.menu-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  max-width: 1180px;
  padding: 18px 4px 36px;
}

.menu-hero {
  align-items: center;
  background:
    radial-gradient(circle at 12% 18%, rgba(21, 244, 238, 0.18), transparent 32%),
    linear-gradient(135deg, rgba(12, 21, 42, 0.94), rgba(27, 22, 61, 0.86));
  border: 1px solid rgba(125, 211, 252, 0.2);
  border-radius: 18px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.24);
  display: flex;
  gap: 18px;
  margin: 16px 4px 6px;
  max-width: 1180px;
  min-height: 118px;
  padding: 18px;
}

.menu-hero img {
  border: 1px solid rgba(21, 244, 238, 0.32);
  border-radius: 16px;
  box-shadow: 0 0 28px rgba(21, 244, 238, 0.16);
  height: 82px;
  object-fit: cover;
  width: 82px;
}

.menu-hero h1 {
  font-size: 31px;
  letter-spacing: 0;
  line-height: 1.05;
  margin: 0 0 8px;
}

.menu-hero p {
  color: #bdd5e8;
  font-size: 14px;
  margin: 0;
}

.module-card {
  align-items: center;
  background: rgba(7, 13, 29, 0.58);
  border: 1px solid rgba(125, 211, 252, 0.14);
  border-radius: 16px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
  display: flex;
  gap: 14px;
  min-height: 96px;
  overflow: hidden;
  padding: 16px;
  transition: border-color 180ms ease, background 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.module-card:hover {
  background: rgba(10, 25, 48, 0.82);
  border-color: rgba(21, 244, 238, 0.42);
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.22), 0 0 0 1px rgba(21, 244, 238, 0.06);
  color: white;
  transform: translateY(-2px);
}

.module-art {
  align-items: center;
  background: linear-gradient(145deg, rgba(21, 244, 238, 0.12), rgba(255, 138, 0, 0.1));
  border: 1px solid rgba(21, 244, 238, 0.22);
  border-radius: 14px;
  color: var(--cyan);
  display: flex;
  flex: 0 0 54px;
  font-size: 24px;
  font-weight: 900;
  height: 54px;
  justify-content: center;
  width: 54px;
}

.module-icon {
  align-items: center;
  display: inline-flex;
  height: 34px;
  justify-content: center;
  width: 34px;
}

.module-art::after {
  display: none;
}

.module-copy {
  min-width: 0;
}

.module-title {
  align-items: center;
  display: flex;
  font-size: 16px;
  font-weight: 800;
  gap: 0;
  line-height: 1.15;
  padding: 0;
}

.module-copy p {
  color: rgba(203, 213, 225, 0.76);
  font-size: 12px;
  line-height: 1.35;
  margin: 6px 0 0;
}

.status-dot {
  display: none;
}

.panel-grid {
  display: grid;
  gap: 8px;
  grid-template-columns: 2fr 2fr 1.35fr;
}

.panel-grid .wide { grid-column: span 1; }

.panel-crumb {
  margin-bottom: 8px;
}

.panel-overview {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  margin: 0 0 12px;
}

.panel-stat {
  background:
    linear-gradient(135deg, rgba(8, 145, 178, 0.13), rgba(15, 23, 42, 0.72)),
    rgba(2, 6, 23, 0.62);
  border: 1px solid rgba(125, 211, 252, 0.22);
  border-radius: 14px;
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.22);
  min-width: 0;
  padding: 14px 16px;
}

.panel-stat span {
  color: rgba(203, 213, 225, 0.74);
  display: block;
  font-size: 12px;
  font-weight: 800;
  margin-bottom: 8px;
  text-transform: uppercase;
}

.panel-stat strong {
  color: #f8fafc;
  display: block;
  font-size: 28px;
  font-weight: 900;
  line-height: 1;
}

.panel-stat-warning {
  background:
    linear-gradient(135deg, rgba(245, 158, 11, 0.14), rgba(15, 23, 42, 0.72)),
    rgba(2, 6, 23, 0.62);
  border-color: rgba(245, 158, 11, 0.32);
}

.panel-stat-warning strong {
  color: #fbbf24;
}

.refined-panel {
  align-items: start;
  gap: 12px;
  grid-template-columns: minmax(440px, 1.45fr) minmax(440px, 1.45fr) minmax(320px, 1fr);
}

.refined-panel .panel-card {
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
}

.refined-panel .panel-card-large {
  height: min(680px, calc(100vh - 210px));
}

.refined-panel .panel-card-review {
  height: min(680px, calc(100vh - 210px));
}

.refined-panel .card-title {
  background:
    linear-gradient(90deg, rgba(14, 165, 233, 0.13), rgba(20, 184, 166, 0.07)),
    rgba(15, 23, 42, 0.72);
  min-height: 58px;
  padding: 10px 12px;
}

.refined-panel .card-title div {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.refined-panel .card-title span {
  color: #93c5fd;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.refined-panel .card-title strong {
  color: #f8fafc;
  font-size: 16px;
  font-weight: 900;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.panel-button {
  border-radius: 12px;
  box-shadow: 0 12px 28px rgba(245, 158, 11, 0.22);
  flex: 0 0 auto;
  min-height: 36px;
  padding: 0 16px;
}

.panel-table-shell {
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto;
  scrollbar-gutter: stable;
}

.panel-table {
  border-collapse: separate;
  border-spacing: 0;
  table-layout: fixed;
  width: 100%;
}

.panel-table thead th {
  background: rgba(2, 6, 23, 0.92);
  border-bottom: 1px solid rgba(125, 211, 252, 0.2);
  color: rgba(226, 232, 240, 0.86);
  font-size: 12px;
  font-weight: 900;
  height: 36px;
  padding: 0 12px;
  position: sticky;
  top: 0;
  z-index: 1;
}

.panel-table tbody td {
  border-bottom: 1px solid rgba(125, 211, 252, 0.14);
  color: rgba(226, 232, 240, 0.92);
  font-size: 12px;
  font-weight: 720;
  height: 46px;
  line-height: 1.2;
  overflow: hidden;
  padding: 8px 12px;
  text-overflow: ellipsis;
  vertical-align: middle;
}

.panel-table tbody tr:nth-child(even) td {
  background: rgba(15, 23, 42, 0.26);
}

.panel-click-row {
  cursor: pointer;
}

.panel-click-row:hover td {
  background: rgba(14, 165, 233, 0.11) !important;
}

.panel-table td strong {
  color: #f8fafc;
  display: block;
  font-weight: 880;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.panel-table td span,
.panel-table td small {
  color: rgba(148, 163, 184, 0.92);
  display: block;
  font-size: 11px;
  font-weight: 680;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.panel-client-col {
  width: 45%;
}

.panel-days-col {
  width: 88px;
}

.panel-account-col {
  width: 40%;
}

.panel-stock-col {
  width: 90px;
}

.panel-product-line {
  align-items: center;
  display: flex;
  gap: 8px;
  min-width: 0;
}

.panel-product-line .icon-box {
  flex: 0 0 auto;
}

.panel-stock-pill {
  align-items: center;
  border-radius: 999px;
  display: inline-flex;
  font-weight: 900;
  justify-content: center;
  min-width: 38px;
  padding: 5px 10px;
}

.panel-stock-pill.ok {
  background: rgba(34, 197, 94, 0.12);
  border: 1px solid rgba(34, 197, 94, 0.42);
  color: #86efac;
}

.panel-stock-pill.empty {
  background: rgba(244, 63, 94, 0.1);
  border: 1px solid rgba(244, 63, 94, 0.34);
  color: #fda4af;
}

@media (max-width: 1500px) {
  .refined-panel {
    grid-template-columns: minmax(420px, 1fr) minmax(420px, 1fr);
  }

  .refined-panel .panel-card-review {
    grid-row: span 2;
  }
}

@media (max-width: 980px) {
  .panel-overview,
  .refined-panel {
    grid-template-columns: 1fr;
  }

  .refined-panel .panel-card,
  .refined-panel .panel-card-large,
  .refined-panel .panel-card-review {
    height: auto;
    max-height: 620px;
  }
}

.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.24);
  min-height: 240px;
  overflow: auto;
  animation: panelRise 260ms ease both;
}

.card-title {
  align-items: center;
  background: linear-gradient(90deg, rgba(21, 244, 238, 0.08), transparent);
  border-bottom: 1px solid var(--line);
  display: flex;
  font-size: 16px;
  font-weight: 700;
  justify-content: space-between;
  min-height: 40px;
  padding: 0 10px;
}

.form-panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.22);
  margin-bottom: 10px;
  padding: 12px;
  animation: panelRise 260ms ease both;
}

.quick-create summary {
  color: var(--cyan);
  cursor: pointer;
  font-weight: 800;
  list-style: none;
}

.quick-create summary::-webkit-details-marker {
  display: none;
}

.quick-create form {
  margin-top: 12px;
}

.form-grid {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(4, minmax(150px, 1fr));
}

.wide-field {
  grid-column: span 2;
}

.inline-create-wrap {
  align-self: end;
}

.inline-client-form {
  background: rgba(2, 6, 23, 0.48);
  border: 1px solid rgba(21, 244, 238, 0.22);
  border-radius: 12px;
  grid-column: 1 / -1;
  padding: 12px;
}

.inline-client-form[hidden] {
  display: none;
}

.inline-form-title {
  color: var(--cyan);
  font-weight: 900;
  margin-bottom: 10px;
}

label {
  color: var(--muted);
  display: grid;
  gap: 5px;
}

input,
select,
textarea {
  background: rgba(2, 6, 23, 0.74);
  border: 1px solid rgba(125, 211, 252, 0.26);
  border-radius: 8px;
  color: white;
  font: inherit;
  min-height: 34px;
  padding: 7px 9px;
  width: 100%;
}

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

.combo-field {
  position: relative;
}

.combo-list {
  background: rgba(15, 23, 42, 0.98);
  border: 1px solid rgba(21, 244, 238, 0.28);
  border-radius: 12px;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.42), 0 0 18px rgba(21, 244, 238, 0.1);
  display: none;
  left: 0;
  max-height: 320px;
  overflow: auto;
  padding: 6px;
  position: absolute;
  right: 0;
  top: calc(100% + 6px);
  z-index: 20;
}

.combo-list.open {
  animation: panelRise 160ms ease both;
  display: grid;
  gap: 4px;
}

.combo-option {
  background: transparent;
  border: 1px solid transparent;
  border-radius: 9px;
  box-shadow: none;
  color: var(--text);
  display: grid;
  gap: 4px;
  justify-items: start;
  min-height: 42px;
  padding: 8px 10px;
  text-align: left;
  width: 100%;
}

.combo-option:hover {
  background: linear-gradient(90deg, rgba(21, 244, 238, 0.13), rgba(255, 138, 0, 0.1));
  border-color: rgba(21, 244, 238, 0.26);
  transform: translateX(2px);
}

.option-main {
  color: white;
  font-weight: 800;
}

.option-meta {
  color: var(--orange);
  font-size: 12px;
  line-height: 1.4;
  white-space: normal;
}

.combo-empty {
  color: var(--muted);
  padding: 12px;
}

.slots-panel {
  background: rgba(2, 6, 23, 0.45);
  border: 1px solid rgba(125, 211, 252, 0.2);
  border-radius: 12px;
  margin: 12px 0;
  padding: 12px;
}

.slots-title {
  color: white;
  font-size: 15px;
  font-weight: 800;
  margin-bottom: 4px;
}

.slots-hint {
  color: var(--muted);
  margin-bottom: 10px;
}

.slots-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.slot {
  align-items: center;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(125, 211, 252, 0.22);
  border-radius: 999px;
  box-shadow: none;
  color: white;
  display: inline-flex;
  gap: 7px;
  min-height: 34px;
}

.slot.available {
  border-color: rgba(40, 247, 127, 0.34);
}

.slot.busy {
  color: var(--muted);
  cursor: not-allowed;
  opacity: 0.58;
}

.slot.selected {
  background: linear-gradient(135deg, rgba(21, 244, 238, 0.24), rgba(40, 247, 127, 0.18));
  border-color: rgba(40, 247, 127, 0.8);
  box-shadow: 0 0 18px rgba(40, 247, 127, 0.18);
}

.slot small {
  color: var(--yellow);
  font-size: 11px;
}

.slot-dot {
  border-radius: 50%;
  display: inline-block;
  height: 12px;
  margin-right: 5px;
  width: 12px;
}

.slot-dot.free {
  background: linear-gradient(135deg, #ffffff, #f0d8ff);
  box-shadow: 0 0 8px rgba(255, 255, 255, 0.4);
}

.slot-dot.used {
  background: linear-gradient(135deg, #7c3aed, #3b0764);
  box-shadow: 0 0 8px rgba(155, 92, 255, 0.45);
}

.slot-summary {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.slot-summary b {
  color: var(--orange);
}

.slot-summary strong {
  color: var(--green);
}

.table-wrap {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: auto;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.24);
  animation: panelRise 260ms ease both;
}

.base-layout {
  display: grid;
  gap: 10px;
  grid-template-columns: 1fr;
}

.base-layout.with-editor {
  grid-template-columns: minmax(620px, 1fr) 390px;
}

.base-table {
  max-height: calc(100vh - 92px);
}

.sale-editor {
  animation: saleEditorIn 150ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
  background:
    linear-gradient(180deg, rgba(28, 16, 45, 0.98), rgba(8, 15, 31, 0.98)),
    #0b1020;
  border: 1px solid rgba(255, 138, 0, 0.46);
  border-radius: 12px;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.44), 0 0 28px rgba(255, 138, 0, 0.16);
  max-height: calc(100vh - 92px);
  overflow: auto;
  padding: 14px;
  transform-origin: top right;
  will-change: opacity, transform;
}

@keyframes saleEditorIn {
  from {
    opacity: 0;
    transform: translate3d(8px, 0, 0) scale(0.992);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
  }
}

.sale-editor h2 {
  font-size: 22px;
  letter-spacing: 0;
  margin: 4px 0;
}

.editor-header {
  align-items: start;
  border-bottom: 1px solid var(--line);
  display: flex;
  gap: 12px;
  justify-content: space-between;
  margin: -2px 0 14px;
  padding-bottom: 12px;
}

.sale-editor form {
  display: grid;
  gap: 9px;
}

.autosave-state {
  align-items: center;
  background: rgba(21, 244, 238, 0.09);
  border: 1px solid rgba(21, 244, 238, 0.24);
  border-radius: 999px;
  color: #a7f3d0;
  display: inline-flex;
  font-size: 11px;
  font-weight: 900;
  justify-content: center;
  min-height: 32px;
  padding: 7px 12px;
  text-transform: uppercase;
}

.sale-editor select,
.sale-editor input,
.sale-editor textarea {
  background: rgba(2, 6, 23, 0.92);
  border-color: rgba(125, 211, 252, 0.38);
  line-height: 1.35;
  min-height: 36px;
  padding: 8px 10px;
}

.sale-editor select {
  appearance: auto;
  color: #fff;
  padding-right: 30px;
}

.sale-summary-card {
  background:
    linear-gradient(135deg, rgba(21, 244, 238, 0.16), rgba(255, 138, 0, 0.12)),
    rgba(2, 6, 23, 0.82);
  border: 1px solid rgba(21, 244, 238, 0.36);
  border-radius: 12px;
  box-shadow: inset 0 0 22px rgba(21, 244, 238, 0.05), 0 12px 28px rgba(0, 0, 0, 0.26);
  margin-bottom: 16px;
  padding: 14px;
}

.summary-product {
  align-items: flex-start;
  display: flex;
  gap: 10px;
}

.summary-product h3 {
  color: white;
  font-size: 19px;
  line-height: 1.05;
  margin: 0 0 4px;
}

.summary-product strong,
.summary-product small,
.summary-product b,
.summary-status {
  display: block;
}

.summary-status {
  color: var(--orange);
  font-weight: 900;
  margin-top: 8px;
}

.summary-product-img {
  border: 1px solid rgba(21, 244, 238, 0.28);
  border-radius: 7px;
  height: 38px;
  object-fit: cover;
  width: 38px;
}

.quick-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.quick-action {
  align-items: center;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.22);
  color: white;
  display: inline-flex;
  flex-direction: column;
  flex: 1 1 92px;
  font-size: 11px;
  font-weight: 900;
  justify-content: center;
  min-height: 58px;
  padding: 7px;
  text-align: center;
  transition: transform 0.16s ease, filter 0.16s ease;
}

.quick-action:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
}

.quick-action b {
  display: block;
  font-size: 15px;
  line-height: 1;
}

.quick-action span {
  font-size: 9px;
  font-weight: 700;
  line-height: 1.1;
  margin-top: 4px;
}

.quick-action.whatsapp { background: #16a34a; }
.quick-action.renew { background: #0891b2; }
.quick-action.renew.minus { background: #0f766e; }
.quick-action.pay { background: #ea580c; }
.quick-action.available { background: #22c55e; }

.toast-stack {
  left: 50%;
  top: 18px;
  bottom: auto;
  display: grid;
  gap: 9px;
  pointer-events: none;
  position: fixed;
  right: auto;
  transform: translateX(-50%);
  z-index: 50;
}

.toast-message {
  -webkit-backdrop-filter: blur(22px) saturate(1.4);
  backdrop-filter: blur(22px) saturate(1.4);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.08)),
    rgba(18, 24, 38, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.38), inset 0 1px 0 rgba(255, 255, 255, 0.16);
  color: #fff;
  font-size: 13px;
  font-weight: 680;
  letter-spacing: 0;
  min-width: 260px;
  opacity: 0;
  padding: 12px 18px;
  text-align: center;
  transform: translateY(-10px) scale(0.97);
  transition: opacity 0.22s ease, transform 0.22s ease;
}

.toast-message.show {
  opacity: 1;
  transform: translateY(0) scale(1);
}

table {
  border-collapse: collapse;
  min-width: 1080px;
  width: 100%;
}

th,
td {
  border-bottom: 1px solid var(--line);
  padding: 6px 8px;
  text-align: left;
  white-space: nowrap;
}

th {
  background: rgba(3, 7, 18, 0.82);
  border-right: 1px solid var(--line);
  color: white;
  font-size: 11.5px;
  font-weight: 780;
  position: sticky;
  top: 0;
  z-index: 5;
  padding: 7px 8px;
}

td {
  font-weight: 620;
}

td .muted {
  font-weight: 560;
}

tr:hover td { background: rgba(21, 244, 238, 0.06); }

.group-row td {
  background: rgba(3, 7, 18, 0.96);
  font-weight: 900;
  position: sticky;
  top: 35px;
  z-index: 4;
}

.group-row.pending td {
  color: #ff4dd8;
}

.sale-account-group-row td {
  background:
    linear-gradient(90deg, rgba(244, 63, 94, 0.15), rgba(15, 23, 42, 0.92) 42%, rgba(8, 47, 73, 0.14)) !important;
  border-top: 1px solid rgba(248, 113, 113, 0.18) !important;
  border-bottom: 1px solid rgba(248, 113, 113, 0.1) !important;
  color: rgba(254, 205, 211, 0.92) !important;
  padding: 8px 14px !important;
}

.sale-account-group-row span {
  background: rgba(248, 113, 113, 0.12);
  border: 1px solid rgba(248, 113, 113, 0.22);
  border-radius: 999px;
  color: #fda4af;
  display: inline-flex;
  font-size: 10px;
  font-weight: 950;
  letter-spacing: .04em;
  margin-right: 10px;
  padding: 4px 8px;
  text-transform: uppercase;
}

.sale-account-group-row strong {
  color: #f8fafc;
  font-size: 12px;
  font-weight: 950;
}

.group-row.grace td {
  color: #fbbf24;
}

.group-row.available td {
  color: var(--green);
}

.group-row.delivered td {
  color: var(--cyan);
}

.selected-row td {
  background: rgba(255, 138, 0, 0.13);
}

.clickable-row {
  cursor: pointer;
}

.clickable-row:hover td {
  background: rgba(21, 244, 238, 0.09);
}

.compact-base table {
  font-size: 12px;
  min-width: 920px;
}

.compact-base td {
  border-bottom: 1px solid rgba(125, 211, 252, 0.22);
  line-height: 1.2;
  max-width: 230px;
  overflow: hidden;
  text-overflow: ellipsis;
  vertical-align: middle;
}

.compact-base .col-product {
  min-width: 160px;
}

.product-cell {
  align-items: center;
  display: flex;
  gap: 7px;
  min-height: 34px;
  overflow: hidden;
}

.base-product-img {
  background: linear-gradient(145deg, rgba(3, 7, 18, 0.96), rgba(15, 23, 42, 0.92));
  border: 1px solid rgba(125, 211, 252, 0.32);
  border-radius: 9px;
  box-sizing: border-box;
  height: 34px;
  object-fit: contain;
  object-position: center center;
  padding: 3px;
  width: 34px;
}

.days-cell {
  font-weight: 900;
}

.pill {
  border-radius: 999px;
  display: inline-flex;
  font-size: 11.5px;
  font-weight: 760;
  gap: 5px;
  padding: 1px 6px;
}

.pill.ok { color: var(--cyan); }
.pill.paid { color: var(--green); }
.pill.warn { color: var(--yellow); }
.pill.bad { color: var(--red); }
.pill.grace { color: var(--yellow); }

.icon-box {
  align-items: center;
  background: linear-gradient(135deg, rgba(21, 244, 238, 0.22), rgba(155, 92, 255, 0.24));
  border: 1px solid rgba(21, 244, 238, 0.3);
  border-radius: 5px;
  color: white;
  display: inline-flex;
  font-size: 11px;
  font-weight: 900;
  height: 24px;
  justify-content: center;
  margin-right: 6px;
  width: 18px;
}

.product-thumb {
  background: linear-gradient(145deg, rgba(3, 7, 18, 0.96), rgba(15, 23, 42, 0.92));
  border: 1px solid rgba(125, 211, 252, 0.3);
  border-radius: 10px;
  box-sizing: border-box;
  box-shadow: 0 0 14px rgba(21, 244, 238, 0.12);
  height: 52px;
  object-fit: contain;
  object-position: center center;
  padding: 5px;
  width: 72px;
}

.upload-hint {
  color: rgba(203, 213, 225, 0.72);
  display: block;
  font-size: 11.5px;
  font-weight: 650;
  line-height: 1.35;
  margin-top: 6px;
}

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

.mini-form {
  align-items: center;
  display: inline-flex;
  gap: 6px;
}

.mini-form input,
.mini-form select { max-width: 115px; min-height: 28px; }
.mini-form button { min-height: 28px; padding: 5px 9px; }

.summary-grid {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(3, 1fr);
  margin-bottom: 10px;
}

.summary {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px;
}

.summary strong {
  display: block;
  font-size: 24px;
  margin-top: 6px;
}

.bars {
  display: grid;
  gap: 8px;
}

.bar-row {
  align-items: center;
  display: grid;
  gap: 10px;
  grid-template-columns: 180px 1fr 90px;
}

.bar {
  background: #333;
  border-radius: 999px;
  height: 12px;
  overflow: hidden;
}

.bar span {
  background: var(--orange);
  display: block;
  height: 100%;
}

.empty { color: #bfefff; padding: 40px; text-align: center; }

@keyframes pageIn {
  from {
    opacity: 0;
    transform: translateY(8px) scale(0.995);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes pageOut {
  from {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
  to {
    opacity: 0;
    transform: translateY(6px) scale(0.996);
  }
}

@keyframes panelRise {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 1100px) {
  .layout { grid-template-columns: 64px 1fr; }
  .sidebar-collapsed .layout { grid-template-columns: 1fr; }
  .sidebar { display: block; }
  .nav-label { display: none; }
  .nav-item { justify-content: center; padding: 0; }
  .sidebar-collapsed .sidebar { display: none; }
  .panel-grid, .summary-grid, .form-grid { grid-template-columns: 1fr; }
  .menu-grid { grid-template-columns: repeat(2, minmax(210px, 1fr)); }
  .search { width: 100%; }
}

@media (max-width: 640px) {
  .menu-hero {
    align-items: flex-start;
    flex-direction: column;
    min-height: 0;
  }
  .menu-grid { grid-template-columns: 1fr; }
}

.menu-page .layout {
  grid-template-columns: 1fr;
}

.menu-page .sidebar {
  display: none;
}

/* Legacy AppSheet-style sale editor */
.base-layout.with-editor {
  grid-template-columns: minmax(520px, 1fr) minmax(720px, 48vw);
}

.sale-editor {
  animation: none;
  background: #121212;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  color: #fff;
  max-height: calc(100vh - 92px);
  overflow: auto;
  padding: 16px 16px 26px;
}

.legacy-editor-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: 330px minmax(560px, 1fr);
  min-width: 900px;
}

.legacy-sale-card,
.legacy-form-panel {
  background: #1f1f1f;
  border: 1px solid #3c3c3c;
  border-radius: 3px;
  color: #fff;
}

.legacy-sale-card {
  align-self: start;
  min-height: 330px;
  padding: 18px 16px;
}

.legacy-product-head {
  align-items: center;
  display: flex;
  gap: 10px;
}

.legacy-product-head h2 {
  color: #fff;
  font-size: 28px;
  letter-spacing: 0;
  line-height: 1.05;
  margin: 0;
}

.sale-editor .legacy-product-img,
.sale-editor .summary-product-img,
.sale-editor .base-product-img {
  display: none;
}

.legacy-email {
  display: block;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.16;
  margin: 16px 0 10px;
  overflow-wrap: anywhere;
}

.legacy-active {
  color: #ff8a00;
  display: block;
  font-size: 20px;
  font-weight: 900;
  margin-bottom: 6px;
}

.legacy-sale-card span,
.legacy-sale-card b {
  display: block;
  font-size: 16px;
  margin-bottom: 5px;
}

.legacy-actions {
  display: grid;
  gap: 14px 14px;
  grid-template-columns: repeat(4, 1fr);
  margin-top: 34px;
  padding: 0 4px;
}

.legacy-action {
  align-items: center;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  color: #fff;
  display: flex;
  flex-direction: column;
  font-size: 12px;
  font-weight: 800;
  gap: 8px;
  line-height: 1.12;
  min-height: 82px;
  padding: 0;
  text-align: center;
}

.legacy-action:hover {
  background: transparent;
  box-shadow: none;
  filter: none;
  transform: none;
}

.legacy-action b {
  align-items: center;
  background: transparent;
  border: 1px solid rgba(21, 244, 238, 0.72);
  border-radius: 50%;
  color: #fff;
  display: inline-flex;
  font-size: 18px;
  height: 40px;
  justify-content: center;
  width: 40px;
}

.legacy-action.whatsapp b { border-color: #22c55e; color: #22c55e; }
.legacy-action.renew b { border-color: #18c6c9; color: #18c6c9; }
.legacy-action.pending b { border-color: #f97316; color: #f97316; }
.legacy-action.available b { border-color: #22c55e; color: #22c55e; }
.legacy-action.days b { border-color: #f97316; color: #f97316; }

.legacy-form-panel {
  padding: 28px 16px 32px;
}

.legacy-editor-top {
  align-items: center;
  display: flex;
  justify-content: space-between;
  margin-bottom: 4px;
}

.legacy-close {
  border: 1px solid #666;
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  padding: 7px 12px;
}

.legacy-form-panel form {
  display: grid;
  gap: 24px;
}

.legacy-form-panel label,
.legacy-field,
.legacy-whatsapp,
.legacy-print {
  align-items: center;
  display: grid;
  font-size: 14px;
  gap: 22px;
  grid-template-columns: 184px 1fr;
}

.legacy-form-panel label,
.legacy-field span,
.legacy-whatsapp > span,
.legacy-print > span {
  color: #b8b8b8;
  font-weight: 700;
}

.legacy-form-panel input,
.legacy-form-panel select,
.legacy-form-panel textarea {
  background: #1f1f1f;
  border: 1px solid #858b94;
  border-radius: 0;
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.2;
  min-height: 46px;
  padding: 10px 14px;
}

.legacy-form-panel textarea {
  min-height: 46px;
  resize: vertical;
}

.legacy-status-row {
  align-items: center;
  display: grid;
  gap: 22px;
  grid-template-columns: 184px 1fr;
}

.legacy-label {
  color: #b8b8b8;
  font-size: 14px;
  font-weight: 700;
}

.legacy-segments {
  display: flex;
  gap: 8px;
}

.legacy-segments button {
  background: transparent;
  border: 1px solid rgba(156, 163, 175, 0.72);
  border-radius: 0;
  box-shadow: none;
  color: #fff;
  font-size: 16px;
  font-weight: 400;
  min-height: 48px;
  padding: 10px 18px;
}

.legacy-segments button:hover {
  filter: none;
  transform: none;
}

.legacy-segments button.available.active {
  background: rgba(34, 197, 94, 0.08);
  border-color: #22c55e;
  color: #22c55e;
}

.legacy-segments button.pending,
.legacy-segments button.pending.active,
.legacy-segments button.delivered {
  background: transparent;
  border-color: rgba(249, 115, 22, 0.82);
  color: #f97316;
}

.legacy-segments button.delivered.active {
  background: rgba(24, 198, 201, 0.08);
  border-color: #18c6c9;
  color: #18c6c9;
}

.legacy-segments button.pending.active {
  background: rgba(249, 115, 22, 0.08);
}

.legacy-field.readonly strong.ok { color: #22c55e; }
.legacy-field.readonly strong.bad { color: #ff4d6d; }

.legacy-whatsapp pre {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.34;
  margin: 0;
  white-space: pre-wrap;
}

.legacy-print strong {
  font-size: 16px;
}

.legacy-sales-total {
  background: #ffad00;
  color: #111;
  margin-left: 184px;
  padding: 18px 20px;
  width: 300px;
}

.legacy-sales-total h3 {
  color: #fff;
  font-size: 25px;
  margin: 0 0 18px;
}

.legacy-sales-total div {
  display: flex;
  font-size: 18px;
  justify-content: space-between;
  margin: 10px 0;
}

.legacy-sales-total b {
  font-weight: 400;
}

/* Strong overrides for the Base side editor. These must beat the global button style. */
.base-layout.with-editor {
  grid-template-columns: minmax(420px, 1fr) minmax(820px, 52vw) !important;
}

.sale-editor {
  min-width: 820px;
  width: 52vw;
}

.sale-editor .legacy-editor-grid {
  gap: 18px;
  grid-template-columns: 320px minmax(470px, 1fr);
  min-width: 780px;
}

.sale-editor .legacy-action,
.sale-editor .legacy-action:hover,
.sale-editor .legacy-segments button,
.sale-editor .legacy-segments button:hover {
  background: transparent !important;
  box-shadow: none !important;
  filter: none !important;
  transform: none !important;
}

.sale-editor .legacy-action {
  border: 1px solid transparent !important;
  color: #fff !important;
}

.sale-editor .legacy-action b {
  background: transparent !important;
}

.sale-editor .legacy-action.renew,
.sale-editor .legacy-action.pending,
.sale-editor .legacy-action.available,
.sale-editor .legacy-action.days {
  border-color: rgba(255, 255, 255, 0.18) !important;
  border-radius: 8px;
}

.sale-editor .legacy-segments button {
  border-radius: 8px;
}

.sale-editor .legacy-segments button.pending,
.sale-editor .legacy-segments button.pending.active,
.sale-editor .legacy-segments button.delivered,
.sale-editor .legacy-segments button.delivered.active {
  background: transparent !important;
}

/* Cohesive glass editor, so Base remains visible underneath. */
.sale-editor {
  -webkit-backdrop-filter: blur(18px) saturate(1.18) !important;
  backdrop-filter: blur(18px) saturate(1.18) !important;
  background:
    linear-gradient(180deg, rgba(15, 23, 42, 0.84), rgba(8, 13, 24, 0.88)) !important;
  border: 1px solid rgba(125, 211, 252, 0.22) !important;
  border-radius: 16px 0 0 16px !important;
  box-shadow: -18px 0 55px rgba(0, 0, 0, 0.28) !important;
}

.sale-editor .legacy-sale-card,
.sale-editor .legacy-form-panel {
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}

.sale-editor .legacy-editor-grid {
  background: rgba(15, 23, 42, 0.62) !important;
  border: 1px solid rgba(125, 211, 252, 0.18) !important;
  border-radius: 16px !important;
  overflow: hidden !important;
}

.sale-editor .legacy-sale-card {
  border-right: 1px solid rgba(125, 211, 252, 0.14) !important;
}

.legacy-editor-top {
  border-bottom: 1px solid rgba(125, 211, 252, 0.12);
  margin: -4px 0 14px;
  padding-bottom: 12px;
}

.legacy-editor-top > span {
  color: rgba(229, 237, 247, 0.62);
  font-size: 12px;
  font-weight: 760;
  text-transform: uppercase;
}

.legacy-close {
  align-items: center;
  background: rgba(255, 255, 255, 0.055) !important;
  border: 1px solid rgba(255, 255, 255, 0.16) !important;
  border-radius: 50% !important;
  color: rgba(255, 255, 255, 0.86) !important;
  display: inline-flex;
  font-size: 19px !important;
  height: 34px;
  justify-content: center;
  line-height: 1;
  padding: 0 !important;
  width: 34px;
}

.legacy-close:hover {
  background: rgba(255, 77, 109, 0.13) !important;
  border-color: rgba(255, 77, 109, 0.45) !important;
  color: #fff !important;
}

/* Responsive editor overlay: keeps Base usable at non-fullscreen sizes. */
.base-layout.with-editor {
  display: block !important;
  grid-template-columns: 1fr !important;
}

.base-layout.with-editor .base-table {
  max-width: 100%;
}

.sale-editor {
  bottom: 0 !important;
  max-height: none !important;
  max-width: calc(100vw - 20px) !important;
  min-width: 0 !important;
  overflow: auto !important;
  position: fixed !important;
  right: 10px !important;
  top: 52px !important;
  width: min(860px, calc(100vw - 20px)) !important;
  z-index: 25 !important;
}

.sale-editor .legacy-editor-grid {
  grid-template-columns: minmax(230px, 300px) minmax(390px, 1fr) !important;
  min-width: 0 !important;
}

.sale-editor .legacy-action.whatsapp,
.sale-editor .legacy-action.renew,
.sale-editor .legacy-action.pending,
.sale-editor .legacy-action.available,
.sale-editor .legacy-action.days {
  border-color: rgba(255, 255, 255, 0.18) !important;
  border-radius: 999px !important;
}

.sale-editor .legacy-action.whatsapp:hover,
.sale-editor .legacy-action.renew:hover,
.sale-editor .legacy-action.pending:hover,
.sale-editor .legacy-action.available:hover,
.sale-editor .legacy-action.days:hover {
  border-color: rgba(255, 255, 255, 0.34) !important;
}

@media (max-width: 880px) {
  .sale-editor {
    left: 10px !important;
    width: auto !important;
  }

  .sale-editor .legacy-editor-grid {
    grid-template-columns: 1fr !important;
  }

  .sale-editor .legacy-form-panel label,
  .sale-editor .legacy-field,
  .sale-editor .legacy-whatsapp,
  .sale-editor .legacy-print,
  .sale-editor .legacy-status-row {
    grid-template-columns: 1fr !important;
  }

  .sale-editor .legacy-sales-total {
    margin-left: 0 !important;
  }
}

/* Minimal polished editor overrides */
.base-layout.with-editor {
  grid-template-columns: minmax(520px, 1fr) minmax(860px, 54vw) !important;
}

.sale-editor {
  background:
    linear-gradient(180deg, rgba(15, 23, 42, 0.98), rgba(8, 13, 24, 0.98)) !important;
  border-left: 1px solid rgba(21, 244, 238, 0.18) !important;
  min-width: 860px !important;
  padding: 18px !important;
  width: 54vw !important;
}

.sale-editor .legacy-editor-grid {
  gap: 18px !important;
  grid-template-columns: 300px minmax(520px, 1fr) !important;
  min-width: 820px !important;
}

.sale-editor .legacy-sale-card,
.sale-editor .legacy-form-panel {
  background: rgba(255, 255, 255, 0.035) !important;
  border: 1px solid rgba(125, 211, 252, 0.18) !important;
  border-radius: 12px !important;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.18) !important;
}

.sale-editor .legacy-sale-card {
  padding: 22px !important;
}

.sale-editor .legacy-product-head h2 {
  font-size: 23px !important;
  font-weight: 760 !important;
  letter-spacing: 0.01em !important;
  line-height: 1.08 !important;
}

.sale-editor .legacy-email {
  color: #d7e4f5 !important;
  font-size: 13.5px !important;
  font-weight: 620 !important;
  margin: 12px 0 12px !important;
}

.sale-editor .legacy-active {
  color: #ff9f1c !important;
  font-size: 18px !important;
  font-weight: 760 !important;
}

.sale-editor .legacy-sale-card span,
.sale-editor .legacy-sale-card b {
  font-size: 13.5px !important;
  font-weight: 620 !important;
}

.sale-editor .legacy-actions {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 10px !important;
  grid-template-columns: none !important;
  margin-top: 24px !important;
  padding: 0 !important;
}

.sale-editor .legacy-action {
  align-items: center !important;
  border-radius: 999px !important;
  display: inline-flex !important;
  flex-direction: row !important;
  gap: 8px !important;
  min-height: 36px !important;
  padding: 7px 11px !important;
  text-align: left !important;
  transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease !important;
  width: auto !important;
}

.sale-editor .legacy-action:hover {
  background: rgba(255, 255, 255, 0.055) !important;
  border-color: rgba(255, 255, 255, 0.32) !important;
}

.sale-editor .legacy-action b {
  border-width: 1px !important;
  font-size: 10px !important;
  font-weight: 780 !important;
  height: 24px !important;
  min-width: 24px !important;
  width: 24px !important;
}

.sale-editor .legacy-action.image-action b {
  background: rgba(255, 255, 255, 0.05) !important;
  border: 1px solid rgba(21, 244, 238, 0.32) !important;
  height: 34px !important;
  min-width: 34px !important;
  overflow: hidden !important;
  width: 34px !important;
}

.sale-editor .legacy-action.image-action b img {
  display: block;
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.sale-editor .legacy-action span {
  display: inline !important;
  font-size: 12.5px !important;
  font-weight: 640 !important;
  line-height: 1 !important;
  margin: 0 !important;
  white-space: nowrap !important;
}

.sale-editor .legacy-form-panel {
  padding: 18px !important;
}

.sale-editor .legacy-form-panel form {
  gap: 14px !important;
}

.sale-editor .legacy-form-panel label,
.sale-editor .legacy-field,
.sale-editor .legacy-whatsapp,
.sale-editor .legacy-print,
.sale-editor .legacy-status-row {
  gap: 14px !important;
  grid-template-columns: 132px 1fr !important;
}

.sale-editor .legacy-form-panel label,
.sale-editor .legacy-field span,
.sale-editor .legacy-whatsapp > span,
.sale-editor .legacy-print > span,
.sale-editor .legacy-label {
  color: rgba(229, 237, 247, 0.78) !important;
  font-size: 12.5px !important;
  font-weight: 620 !important;
  letter-spacing: 0.005em !important;
}

.sale-editor .legacy-form-panel input,
.sale-editor .legacy-form-panel select,
.sale-editor .legacy-form-panel textarea {
  background: rgba(2, 6, 23, 0.72) !important;
  border: 1px solid rgba(125, 211, 252, 0.34) !important;
  border-radius: 8px !important;
  color: #f8fbff !important;
  font-size: 13.5px !important;
  font-weight: 620 !important;
  min-height: 37px !important;
  padding: 8px 10px !important;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease !important;
}

.sale-editor .legacy-form-panel input:focus,
.sale-editor .legacy-form-panel select:focus,
.sale-editor .legacy-form-panel textarea:focus {
  background: rgba(2, 6, 23, 0.88) !important;
  border-color: rgba(21, 244, 238, 0.62) !important;
  box-shadow: 0 0 0 3px rgba(21, 244, 238, 0.08) !important;
  outline: none !important;
}

.sale-editor .legacy-segments {
  gap: 8px !important;
}

.sale-editor .legacy-segments button {
  backdrop-filter: blur(8px) !important;
  border-radius: 999px !important;
  font-size: 12.5px !important;
  font-weight: 640 !important;
  letter-spacing: 0.005em !important;
  min-height: 34px !important;
  padding: 7px 15px !important;
  transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease, box-shadow 0.15s ease !important;
}

.sale-editor .legacy-segments button:hover {
  background: rgba(255, 255, 255, 0.055) !important;
  border-color: rgba(255, 255, 255, 0.34) !important;
}

.sale-editor .legacy-segments button.active {
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.07), 0 10px 24px rgba(0, 0, 0, 0.22) !important;
  font-weight: 820 !important;
}

.sale-editor .legacy-segments button.available.active {
  background: rgba(34, 197, 94, 0.18) !important;
  border-color: #22c55e !important;
  color: #7dffac !important;
}

.sale-editor .legacy-segments button.pending.active {
  background: rgba(249, 115, 22, 0.2) !important;
  border-color: #fb923c !important;
  color: #ffd0a6 !important;
}

.sale-editor .legacy-segments button.delivered.active {
  background: rgba(21, 244, 238, 0.16) !important;
  border-color: #15f4ee !important;
  color: #9ffffb !important;
}

.sale-editor .legacy-segments button.available {
  border-color: rgba(34, 197, 94, 0.82) !important;
  color: #7dffac !important;
}

.sale-editor .legacy-segments button.pending,
.sale-editor .legacy-segments button.pending.active {
  border-color: rgba(255, 77, 109, 0.9) !important;
  color: #ff8aa0 !important;
}

.sale-editor .legacy-segments button.pending.active {
  background: rgba(255, 77, 109, 0.16) !important;
}

.sale-editor .legacy-segments button.delivered,
.sale-editor .legacy-segments button.delivered.active {
  border-color: rgba(21, 244, 238, 0.86) !important;
  color: #9ffffb !important;
}

.sale-editor .legacy-sales-total {
  border-radius: 12px !important;
  margin-left: 132px !important;
  padding: 14px !important;
  width: 260px !important;
}

.sale-editor .legacy-sales-total h3 {
  font-size: 17px !important;
}

.sale-editor .legacy-sales-total div {
  font-size: 13px !important;
  margin: 6px 0 !important;
}

.renew-modal-backdrop {
  align-items: flex-start;
  background: rgba(0, 0, 0, 0.34);
  display: flex;
  inset: 42px 0 0 0;
  justify-content: center;
  opacity: 0;
  padding-top: 74px;
  pointer-events: none;
  position: fixed;
  transition: opacity 0.16s ease;
  z-index: 60;
}

.whatsapp-modal-backdrop {
  align-items: flex-start;
  background: rgba(0, 0, 0, 0.34);
  display: flex;
  inset: 42px 0 0 0;
  justify-content: center;
  opacity: 0;
  padding-top: 68px;
  pointer-events: none;
  position: fixed;
  transition: opacity 0.16s ease;
  z-index: 61;
}

.whatsapp-modal-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}

.whatsapp-modal {
  -webkit-backdrop-filter: blur(24px) saturate(1.25);
  backdrop-filter: blur(24px) saturate(1.25);
  background: linear-gradient(180deg, rgba(31, 41, 59, 0.94), rgba(15, 23, 42, 0.97));
  border: 1px solid rgba(34, 197, 94, 0.24);
  border-radius: 18px;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.48), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  color: #fff;
  overflow: hidden;
  transform: translateY(-8px) scale(0.98);
  transition: transform 0.18s ease;
  width: min(520px, calc(100vw - 34px));
}

.whatsapp-modal-backdrop.open .whatsapp-modal {
  transform: translateY(0) scale(1);
}

.whatsapp-modal-head {
  align-items: flex-start;
  display: flex;
  justify-content: space-between;
  padding: 22px 22px 10px;
}

.whatsapp-modal-head span {
  color: rgba(125, 255, 172, 0.72);
  display: block;
  font-size: 12px;
  font-weight: 800;
  margin-bottom: 6px;
  text-transform: uppercase;
}

.whatsapp-modal-head h3 {
  font-size: 22px;
  font-weight: 780;
  letter-spacing: 0;
  margin: 0;
}

.whatsapp-modal label {
  color: rgba(229, 237, 247, 0.78);
  display: grid;
  font-size: 13px;
  font-weight: 700;
  gap: 10px;
  padding: 16px 22px 8px;
}

.whatsapp-modal textarea {
  background: rgba(2, 6, 23, 0.72);
  border: 1px solid rgba(34, 197, 94, 0.3);
  border-radius: 12px;
  color: #fff;
  font: inherit;
  line-height: 1.35;
  min-height: 150px;
  padding: 12px;
  resize: vertical;
}

.whatsapp-modal textarea:focus {
  border-color: rgba(34, 197, 94, 0.68);
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.08);
  outline: none;
}

.whatsapp-modal-meta {
  color: rgba(229, 237, 247, 0.72);
  font-size: 12px;
  font-weight: 650;
  padding: 0 22px 12px;
}

.renew-modal-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}

.renew-modal {
  -webkit-backdrop-filter: blur(24px) saturate(1.25);
  backdrop-filter: blur(24px) saturate(1.25);
  background:
    linear-gradient(180deg, rgba(31, 41, 59, 0.92), rgba(15, 23, 42, 0.96)),
    rgba(15, 23, 42, 0.96);
  border: 1px solid rgba(125, 211, 252, 0.24);
  border-radius: 18px;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.48), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  color: #fff;
  overflow: hidden;
  transform: translateY(-8px) scale(0.98);
  transition: transform 0.18s ease;
  width: min(430px, calc(100vw - 34px));
}

.renew-modal-backdrop.open .renew-modal {
  transform: translateY(0) scale(1);
}

.otp-bulk-modal {
  width: min(560px, calc(100vw - 34px));
}

.otp-bulk-modal .bulk-renew-note {
  color: rgba(226, 232, 240, 0.76);
  line-height: 1.55;
  margin: 0;
  padding: 8px 22px 20px;
}

.otp-bulk-results {
  display: grid;
  gap: 9px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  padding: 0 22px 20px;
}

.otp-bulk-results[hidden] {
  display: none;
}

.otp-bulk-results > div {
  background: rgba(2, 6, 23, 0.44);
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 10px;
  display: grid;
  gap: 3px;
  min-height: 70px;
  padding: 11px;
}

.otp-bulk-results strong {
  color: #e2e8f0;
  font-size: 21px;
}

.otp-bulk-results span {
  color: #94a3b8;
  font-size: 11px;
  font-weight: 700;
}

.otp-bulk-results .created strong { color: #34d399; }
.otp-bulk-results .existing strong { color: #60a5fa; }
.otp-bulk-results .failed strong { color: #fb7185; }

.otp-bulk-failures {
  background: rgba(127, 29, 29, 0.14);
  border: 1px solid rgba(251, 113, 133, 0.22);
  border-radius: 10px;
  margin: 0 22px 20px;
  max-height: 150px;
  overflow: auto;
  padding: 7px 12px;
}

.otp-bulk-failures p {
  color: #fecdd3;
  font-size: 11px;
  line-height: 1.4;
  margin: 7px 0;
}

@media (max-width: 680px) {
  .base-otp-sync {
    font-size: 0 !important;
    padding-right: 7px !important;
  }

  .base-otp-sync span {
    font-size: 9px;
  }

  .otp-bulk-results {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.renew-modal-head {
  align-items: flex-start;
  display: flex;
  justify-content: space-between;
  padding: 22px 22px 10px;
}

.renew-modal-head span {
  color: rgba(229, 237, 247, 0.62);
  display: block;
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 6px;
  text-transform: uppercase;
}

.renew-modal-head h3 {
  font-size: 22px;
  font-weight: 780;
  letter-spacing: 0;
  margin: 0;
}

.renew-modal-close {
  background: rgba(255, 255, 255, 0.06) !important;
  border: 1px solid rgba(255, 255, 255, 0.14) !important;
  border-radius: 50%;
  box-shadow: none !important;
  color: rgba(255, 255, 255, 0.78) !important;
  font-size: 16px;
  height: 32px;
  min-height: 32px;
  padding: 0;
  width: 32px;
}

.renew-days-field {
  color: rgba(229, 237, 247, 0.78);
  display: grid;
  font-size: 13px;
  font-weight: 700;
  gap: 10px;
  padding: 18px 22px 22px;
}

.renew-days-field::after {
  color: var(--orange);
  content: "*";
  margin-left: 3px;
  position: absolute;
}

.renew-days-control {
  align-items: center;
  background: rgba(2, 6, 23, 0.7);
  border: 1px solid rgba(125, 211, 252, 0.34);
  border-radius: 12px;
  display: grid;
  grid-template-columns: 42px 1fr 42px;
  min-height: 48px;
  overflow: hidden;
}

.renew-days-control input {
  appearance: textfield;
  background: transparent;
  border: 0;
  color: #fff;
  font: inherit;
  font-size: 18px;
  font-weight: 740;
  min-width: 0;
  outline: none;
  padding: 0 8px;
  text-align: center;
}

.renew-days-control input::-webkit-outer-spin-button,
.renew-days-control input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.renew-days-control button {
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  color: rgba(255, 255, 255, 0.68) !important;
  font-size: 24px;
  min-height: 48px;
  padding: 0;
}

.renew-days-control button:hover {
  background: rgba(255, 255, 255, 0.06) !important;
  color: #fff !important;
  filter: none !important;
  transform: none !important;
}

.renew-modal-actions {
  align-items: center;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  padding: 14px 22px 18px;
}

.renew-modal-actions button {
  border-radius: 10px;
  box-shadow: none;
  font-weight: 720;
  min-height: 36px;
  padding: 8px 14px;
}

.renew-cancel {
  background: transparent !important;
  border: 1px solid rgba(249, 115, 22, 0.62) !important;
  color: #fb923c !important;
}

.renew-confirm {
  background: linear-gradient(135deg, #ff8a00, #ffb000) !important;
  color: #111 !important;
}

.whatsapp-settings h2 {
  font-size: 20px;
  margin: 0 0 8px;
}

.toggle-line {
  align-items: center;
  display: flex !important;
  gap: 10px;
}

.toggle-line input {
  min-height: auto;
  width: auto;
}

.combo-builder {
  display: grid;
  gap: 14px;
}

.combo-hero {
  align-items: center;
  background:
    linear-gradient(135deg, rgba(21, 244, 238, 0.12), rgba(255, 138, 0, 0.1)),
    rgba(15, 23, 42, 0.72);
  border: 1px solid rgba(125, 211, 252, 0.22);
  border-radius: 14px;
  display: flex;
  justify-content: space-between;
  padding: 18px;
}

.combo-hero span,
.combo-total-card span {
  color: rgba(229, 237, 247, 0.68);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.combo-hero h1 {
  font-size: 30px;
  margin: 5px 0;
}

.combo-hero p {
  color: var(--muted);
  margin: 0;
}

.combo-total-card {
  background: rgba(2, 6, 23, 0.72);
  border: 1px solid rgba(255, 138, 0, 0.38);
  border-radius: 14px;
  min-width: 190px;
  padding: 14px;
}

.combo-total-card strong {
  color: #ffb000;
  display: block;
  font-size: 26px;
  margin: 6px 0;
}

.combo-total-card small {
  color: rgba(229, 237, 247, 0.72);
}

.combo-main-grid {
  align-items: end;
}

.combo-presets-panel,
.combo-preset-manager {
  background:
    radial-gradient(circle at 10% 0%, rgba(34, 211, 238, 0.09), transparent 35%),
    rgba(7, 17, 32, 0.86);
  border: 1px solid rgba(103, 232, 249, 0.2);
  border-radius: 16px;
  padding: 16px;
}

.combo-presets-panel .combo-section-title {
  margin-bottom: 14px;
}

.combo-eyebrow {
  color: #67e8f9;
  display: block;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.09em;
  margin-bottom: 4px;
  text-transform: uppercase;
}

#combo_preset_status {
  background: rgba(34, 211, 238, 0.1);
  border: 1px solid rgba(34, 211, 238, 0.22);
  border-radius: 999px;
  color: #a5f3fc;
  font-size: 11px;
  max-width: min(520px, 50vw);
  overflow: hidden;
  padding: 6px 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#combo_preset_status.warning {
  background: rgba(245, 158, 11, 0.1);
  border-color: rgba(245, 158, 11, 0.32);
  color: #fcd34d;
}

.combo-preset-grid {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(5, minmax(170px, 1fr));
}

.combo-preset-card {
  align-items: center;
  background: linear-gradient(145deg, rgba(15, 31, 51, 0.96), rgba(6, 15, 29, 0.96)) !important;
  border: 1px solid rgba(100, 164, 201, 0.22) !important;
  border-radius: 15px !important;
  color: #e9f7ff !important;
  display: grid;
  gap: 4px 9px;
  grid-template-columns: auto minmax(0, 1fr);
  min-height: 118px;
  padding: 12px !important;
  text-align: left;
}

.combo-preset-card:hover,
.combo-preset-card.active {
  background: linear-gradient(145deg, rgba(13, 69, 82, 0.96), rgba(8, 25, 42, 0.98)) !important;
  border-color: rgba(45, 212, 191, 0.68) !important;
  box-shadow: 0 10px 32px rgba(2, 12, 27, 0.42), inset 0 0 0 1px rgba(45, 212, 191, 0.1);
  transform: none !important;
}

.combo-preset-card.unavailable {
  border-color: rgba(245, 158, 11, 0.3) !important;
}

.combo-preset-card.custom {
  border-style: dashed !important;
}

.combo-preset-emoji {
  align-items: center;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 11px;
  display: inline-flex;
  font-size: 21px;
  height: 39px;
  justify-content: center;
  width: 39px;
}

.combo-preset-copy {
  min-width: 0;
}

.combo-preset-copy strong,
.combo-preset-copy small,
.combo-preset-card b,
.combo-preset-card em {
  display: block;
}

.combo-preset-copy strong {
  color: #f8fafc;
  font-size: 13px;
}

.combo-preset-copy small {
  color: #91a9bd;
  font-size: 10.5px;
  margin-top: 2px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.combo-preset-card b,
.combo-preset-card em {
  grid-column: 1 / -1;
}

.combo-preset-card b {
  color: #4ade80;
  font-size: 15px;
}

.combo-preset-card em {
  color: #67e8f9;
  font-size: 10px;
  font-style: normal;
  font-weight: 750;
}

.combo-preset-card.unavailable em {
  color: #fbbf24;
}

.combo-notice {
  border-color: rgba(34, 197, 94, 0.35) !important;
  color: #86efac !important;
}

.combo-preset-manager {
  margin-top: 16px;
}

.combo-preset-manager summary {
  color: #67e8f9;
  cursor: pointer;
  font-size: 13px;
  font-weight: 850;
}

.combo-preset-form {
  border-top: 1px solid rgba(148, 163, 184, 0.14);
  margin-top: 14px;
  padding-top: 14px;
}

.combo-product-checks {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  margin: 12px 0;
}

.combo-product-checks label {
  align-items: center;
  background: rgba(2, 6, 23, 0.48);
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: 11px;
  cursor: pointer;
  display: grid;
  gap: 7px;
  grid-template-columns: auto minmax(0, 1fr) auto;
  padding: 9px 10px;
}

.combo-product-checks input {
  min-height: 16px;
  width: 16px;
}

.combo-product-checks small,
.combo-manager-help {
  color: #8da3b7;
}

.combo-preset-admin-list {
  display: grid;
  gap: 7px;
  margin-top: 14px;
}

.combo-preset-admin-list > div {
  align-items: center;
  background: rgba(2, 6, 23, 0.38);
  border-radius: 10px;
  display: flex;
  justify-content: space-between;
  padding: 7px 9px;
}

.combo-preset-admin-list form {
  margin: 0;
}

.combo-preset-admin-list button {
  min-height: 30px;
  padding: 5px 10px;
}

.combo-items-panel,
.combo-discount-panel {
  background: rgba(15, 23, 42, 0.72);
  border: 1px solid rgba(125, 211, 252, 0.18);
  border-radius: 14px;
  padding: 14px;
}

.combo-section-title {
  align-items: center;
  display: flex;
  justify-content: space-between;
  margin-bottom: 12px;
}

.combo-section-title h2 {
  font-size: 18px;
  margin: 0;
}

.combo-section-title span {
  color: var(--cyan);
  font-size: 12px;
  font-weight: 800;
}

.combo-items {
  display: grid;
  gap: 10px;
}

.combo-item {
  align-items: end;
  background: rgba(2, 6, 23, 0.58);
  border: 1px solid rgba(125, 211, 252, 0.16);
  border-radius: 12px;
  display: grid;
  gap: 10px;
  grid-template-columns: 34px minmax(260px, 1.5fr) repeat(3, minmax(110px, 1fr));
  padding: 12px;
}

.combo-item-number {
  align-items: center;
  background: linear-gradient(135deg, #ff8a00, #ffb000);
  border-radius: 50%;
  color: #111;
  display: flex;
  font-weight: 900;
  height: 30px;
  justify-content: center;
  width: 30px;
}

.combo-account-picker {
  min-width: 0;
}

.combo-account-picker > input[data-account-search] {
  padding-right: 34px;
}

.combo-account-picker .account-results {
  max-height: 360px;
  min-width: min(560px, calc(100vw - 48px));
  z-index: 80;
}

.combo-account-picker .account-option {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
}

.combo-account-picker .option-main {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.combo-account-picker .option-meta {
  align-items: center;
  display: flex;
  white-space: nowrap;
}

.editor-account-picker {
  position: relative;
}

.editor-account-picker .account-results {
  max-height: min(380px, 56vh);
  min-width: min(620px, calc(100vw - 48px));
  z-index: 180;
}

.editor-account-picker .account-option {
  align-items: center;
  grid-template-columns: minmax(220px, 1fr) auto;
}

.editor-account-picker .account-option.selected {
  background: rgba(21, 244, 238, 0.1);
  border-color: rgba(21, 244, 238, 0.35);
}

@media (max-width: 760px) {
  .editor-account-picker .account-results {
    min-width: 100%;
  }

  .editor-account-picker .account-option {
    grid-template-columns: 1fr;
  }
}

.combo-picker-meta {
  color: var(--muted);
  display: block;
  font-size: 11px;
  font-weight: 650;
  margin-top: 5px;
}

.combo-discount-panel {
  align-items: end;
  display: grid;
  gap: 14px;
  grid-template-columns: minmax(220px, 320px) 1fr;
}

.combo-discount-panel p {
  color: var(--muted);
  margin: 0;
}

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

.combo-save-button {
  background: linear-gradient(135deg, #15f4ee, #22c55e) !important;
  color: #001111 !important;
}

@media (max-width: 900px) {
  .combo-hero,
  .combo-discount-panel {
    grid-template-columns: 1fr;
    display: grid;
  }

  .combo-item {
    grid-template-columns: 34px 1fr;
  }

  .combo-item label {
    grid-column: span 2;
  }

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

  #combo_preset_status {
    max-width: 100%;
  }
}

@media (max-width: 560px) {
  .combo-preset-grid {
    grid-template-columns: 1fr;
  }

  .combo-presets-panel .combo-section-title {
    align-items: flex-start;
    flex-direction: column;
    gap: 9px;
  }

  .combo-preset-card {
    min-height: 104px;
  }
}

/* Final responsive guarantees for the editor panel. */
.base-layout.with-editor { display: block !important; grid-template-columns: 1fr !important; }
.sale-editor {
  max-width: calc(100vw - 20px) !important;
  min-width: 0 !important;
  position: fixed !important;
  right: 10px !important;
  width: min(860px, calc(100vw - 20px)) !important;
}
.sale-editor .legacy-editor-grid {
  grid-template-columns: minmax(230px, 300px) minmax(390px, 1fr) !important;
  min-width: 0 !important;
}
.sale-editor .legacy-action.whatsapp {
  border-color: rgba(255, 255, 255, 0.18) !important;
  border-radius: 999px !important;
}
@media (max-width: 880px) {
  .sale-editor { left: 10px !important; width: auto !important; }
  .sale-editor .legacy-editor-grid { grid-template-columns: 1fr !important; }
}

/* Final glass look priority */
.sale-editor {
  -webkit-backdrop-filter: blur(18px) saturate(1.18) !important;
  backdrop-filter: blur(18px) saturate(1.18) !important;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.84), rgba(8, 13, 24, 0.88)) !important;
  border: 1px solid rgba(125, 211, 252, 0.22) !important;
  border-radius: 16px 0 0 16px !important;
}
.sale-editor .legacy-editor-grid {
  background: rgba(15, 23, 42, 0.62) !important;
  border: 1px solid rgba(125, 211, 252, 0.18) !important;
  border-radius: 16px !important;
  overflow: hidden !important;
}
.sale-editor .legacy-sale-card,
.sale-editor .legacy-form-panel {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}
.sale-editor .legacy-sale-card {
  border-right: 1px solid rgba(125, 211, 252, 0.14) !important;
}
.sale-editor .legacy-close {
  align-items: center !important;
  background: rgba(255, 255, 255, 0.055) !important;
  border-radius: 50% !important;
  display: inline-flex !important;
  height: 34px !important;
  justify-content: center !important;
  width: 34px !important;
}

/* Slide/narrow window polish */
@media (max-width: 980px) {
  body {
    overflow-x: hidden !important;
  }

  .base-layout.with-editor {
    display: block !important;
  }

  .sale-editor {
    border-radius: 16px 16px 0 0 !important;
    bottom: 0 !important;
    left: 8px !important;
    max-width: calc(100vw - 16px) !important;
    min-width: 0 !important;
    right: 8px !important;
    top: 86px !important;
    width: auto !important;
  }

  .sale-editor .legacy-editor-grid {
    display: grid !important;
    grid-template-columns: 1fr !important;
    min-width: 0 !important;
  }

  .sale-editor .legacy-sale-card {
    border-right: 0 !important;
    border-bottom: 1px solid rgba(125, 211, 252, 0.14) !important;
    padding: 18px !important;
  }

  .sale-editor .legacy-form-panel {
    padding: 18px !important;
  }

  .sale-editor .legacy-actions {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  .sale-editor .legacy-action {
    justify-content: start !important;
    min-width: 0 !important;
    width: 100% !important;
  }

  .sale-editor .legacy-status-row,
  .sale-editor .legacy-form-panel label,
  .sale-editor .legacy-field,
  .sale-editor .legacy-whatsapp,
  .sale-editor .legacy-print {
    grid-template-columns: 1fr !important;
  }

  .sale-editor .legacy-segments {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }

  .sale-editor .legacy-segments button {
    justify-content: center !important;
    min-width: 0 !important;
    width: 100% !important;
  }

  .sale-editor .legacy-sales-total {
    margin-left: 0 !important;
    width: 100% !important;
  }
}

@media (max-width: 560px) {
  .sale-editor {
    left: 0 !important;
    right: 0 !important;
    top: 78px !important;
    max-width: 100vw !important;
    border-radius: 14px 14px 0 0 !important;
  }

  .sale-editor .legacy-actions,
  .sale-editor .legacy-segments {
    grid-template-columns: 1fr !important;
  }

  .sale-editor .legacy-product-head h2 {
    font-size: 20px !important;
  }
}

/* Final menu/sidebar responsive fix */
.menu-page .layout { grid-template-columns: 1fr !important; }
.menu-page .sidebar { display: none !important; }
.menu-page .hamburger { display: none !important; }
@media (max-width: 1100px) {
  body:not(.menu-page):not(.sidebar-collapsed) .layout {
    grid-template-columns: 64px 1fr !important;
  }
  body:not(.menu-page):not(.sidebar-collapsed) .sidebar {
    display: block !important;
  }
  body:not(.menu-page):not(.sidebar-collapsed) .nav-label {
    display: none !important;
  }
}

/* Final Base polish */
.compact-base .col-product {
  min-width: 210px !important;
  width: 210px !important;
}

.compact-base td:first-child,
.compact-base th:first-child {
  min-width: 210px !important;
}

.product-cell {
  gap: 10px !important;
}

.base-product-img,
.product-cell .icon-box {
  border-radius: 9px !important;
  box-shadow: 0 0 0 1px rgba(125, 211, 252, 0.18), 0 6px 14px rgba(0, 0, 0, 0.24);
  flex: 0 0 34px !important;
  height: 34px !important;
  width: 34px !important;
}

.compact-base table {
  min-width: 1080px !important;
}

.compact-base td {
  height: 50px;
}

.group-row td {
  height: 28px !important;
  letter-spacing: 0.01em;
}

/* Accounts detail workspace */
.accounts-layout {
  display: grid;
  gap: 12px;
}

.accounts-layout.with-account-editor {
  grid-template-columns: minmax(520px, 0.95fr) minmax(620px, 1.25fr);
}

.accounts-table table {
  min-width: 1180px;
}

.accounts-table td {
  height: 44px;
  max-width: 260px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.profile-dots,
.profile-slots {
  align-items: center;
  display: inline-flex;
  gap: 5px;
  max-width: 210px;
  overflow: visible;
}

.profile-dots span,
.profile-slots span {
  background: transparent;
  display: inline-block;
  height: 18px;
  position: relative;
  width: 12px;
}

.profile-dots span::before,
.profile-slots span::before {
  background: rgba(148, 163, 184, 0.18);
  border: 1px solid rgba(148, 163, 184, 0.32);
  border-radius: 999px;
  content: "";
  display: inline-block;
  height: 6px;
  left: 3px;
  position: absolute;
  top: 0;
  width: 6px;
}

.profile-dots span::after,
.profile-slots span::after {
  background: rgba(148, 163, 184, 0.12);
  border: 1px solid rgba(148, 163, 184, 0.28);
  border-radius: 999px 999px 5px 5px;
  bottom: 0;
  content: "";
  height: 10px;
  left: 1px;
  position: absolute;
  width: 10px;
}

.profile-dots span.used,
.profile-slots span.filled {
  filter: drop-shadow(0 0 8px rgba(168, 85, 247, 0.42));
}

.profile-dots span.used::before,
.profile-slots span.filled::before {
  background: linear-gradient(180deg, #ddd6fe 0%, #a855f7 72%);
  border-color: rgba(221, 214, 254, 0.74);
}

.profile-dots span.used::after,
.profile-slots span.filled::after {
  background: linear-gradient(180deg, #c084fc 0%, #7c3aed 70%, #581c87 100%);
  border-color: rgba(216, 180, 254, 0.68);
}

.profile-slots b {
  color: var(--orange);
  font-size: 12px;
  font-weight: 950;
  margin-left: 5px;
  min-width: 30px;
}

.profile-dots.large,
.profile-slots.large {
  flex-wrap: wrap;
  margin: 6px 0 10px;
  max-width: none;
}

.profile-dots.large span,
.profile-slots.large span {
  height: 26px;
  width: 18px;
}

.profile-dots.large span::before,
.profile-slots.large span::before {
  height: 9px;
  left: 4px;
  width: 9px;
}

.profile-dots.large span::after,
.profile-slots.large span::after {
  border-radius: 999px 999px 7px 7px;
  height: 15px;
  width: 16px;
}

.profile-slots.large b {
  font-size: 15px;
  margin-left: 8px;
}

.account-actions-cell {
  padding-bottom: 0 !important;
  padding-top: 0 !important;
  vertical-align: middle !important;
}

.account-row-actions {
  align-items: center;
  color: #cbd5e1;
  display: flex;
  gap: 7px;
  justify-content: flex-end;
  min-width: 132px;
  min-height: 44px;
}

.account-row-actions button,
.account-row-actions a {
  align-items: center;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid transparent;
  border-radius: 8px;
  box-shadow: none;
  color: #cbd5e1;
  cursor: pointer;
  display: inline-flex;
  font-size: 16px;
  font-weight: 900;
  height: 28px;
  justify-content: center;
  min-height: 0;
  padding: 0;
  text-decoration: none;
  width: 28px;
}

.account-row-actions button:hover,
.account-row-actions a:hover {
  background: rgba(21, 244, 238, 0.1);
  border-color: rgba(21, 244, 238, 0.28);
  box-shadow: none;
  filter: none;
  transform: none;
}

.account-row-actions .provider-help {
  color: #22c55e;
}

.account-row-actions .provider-help:hover {
  background: rgba(34, 197, 94, 0.12);
  border-color: rgba(34, 197, 94, 0.38);
}

.account-row-actions form {
  align-items: center;
  display: inline-flex;
  height: 28px;
  margin: 0;
}

.sort-link {
  align-items: center;
  color: inherit;
  display: inline-flex;
  gap: 6px;
  min-height: 28px;
  text-decoration: none;
  width: 100%;
}

.sort-link::after {
  color: rgba(148, 163, 184, 0.7);
  content: "\2195";
  font-size: 10px;
  opacity: 0;
  transition: opacity 0.16s ease;
}

.sort-link:hover::after,
.sort-link.active::after {
  opacity: 1;
}

.sort-link.active {
  color: #67e8f9;
}

.sort-link.active.has-direction::after {
  content: none;
}

.sort-direction {
  color: #67e8f9;
  font-size: 13px;
  font-weight: 950;
  line-height: 1;
}

.account-row-actions .danger {
  color: #fb7185;
}

.account-row-actions .danger:hover {
  background: rgba(244, 63, 94, 0.12);
  border-color: rgba(244, 63, 94, 0.36);
}

.accounts-table td {
  border-bottom: 1px solid rgba(125, 211, 252, 0.22) !important;
}

.account-status-danada .account-email-cell,
.account-status-danada .account-stock-badge {
  color: #fb7185 !important;
}

.account-status-soporte .account-email-cell,
.account-status-soporte .account-stock-badge {
  color: #38bdf8 !important;
}

.account-status-activa .account-email-cell {
  color: var(--orange);
}

.account-status-negocio_aparte td {
  background: linear-gradient(90deg, rgba(234, 179, 8, 0.055), rgba(15, 23, 42, 0.78)) !important;
}

.account-status-negocio_aparte .account-email-cell,
.account-status-negocio_aparte .account-stock-badge {
  color: #facc15 !important;
}

.account-group-row td {
  background: rgba(2, 6, 23, 0.9) !important;
  border-bottom: 1px solid rgba(125, 211, 252, 0.24) !important;
  color: #67e8f9;
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0;
  padding: 12px 14px !important;
}

.account-group-negocio_aparte td {
  color: #fde68a;
}

.account-empty-group td {
  background: rgba(15, 23, 42, 0.38) !important;
  color: rgba(203, 213, 225, 0.72) !important;
  font-weight: 760;
  padding: 16px !important;
}

.account-bulk-bar {
  margin-bottom: 10px;
}

.base-select-toggle.active {
  background: rgba(20, 184, 166, 0.18);
  border-color: rgba(34, 211, 238, 0.66);
  color: #67e8f9;
}

.account-toast-stack {
  pointer-events: none;
}

body.account-bulk-mode .accounts-table [data-account-row] {
  cursor: cell;
}

body.account-bulk-mode .accounts-table [data-account-row]:hover td,
.accounts-table .bulk-selected-row td {
  background: rgba(20, 184, 166, 0.14) !important;
  box-shadow: inset 3px 0 0 rgba(34, 211, 238, 0.92);
}

.accounts-table .bulk-selected-row .bulk-cell {
  background: rgba(20, 184, 166, 0.22) !important;
}

.account-head-actions {
  align-items: center;
  display: flex;
  gap: 8px;
}

.account-detail-delete {
  background: rgba(244, 63, 94, 0.08);
  border: 1px solid rgba(244, 63, 94, 0.34);
  border-radius: 8px;
  box-shadow: none;
  color: #fb7185;
  height: 34px;
  min-height: 0;
  padding: 0;
  width: 34px;
}

.account-detail-delete:hover {
  background: rgba(244, 63, 94, 0.16);
  box-shadow: none;
  filter: none;
  transform: none;
}

.account-editor {
  background: rgba(9, 15, 31, 0.92);
  border: 1px solid rgba(125, 211, 252, 0.2);
  border-radius: 16px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.35);
  max-height: calc(100vh - 96px);
  overflow: auto;
}

.account-editor-head {
  align-items: center;
  background: rgba(5, 10, 22, 0.76);
  border-bottom: 1px solid rgba(125, 211, 252, 0.18);
  display: flex;
  justify-content: space-between;
  min-height: 48px;
  padding: 0 14px;
}

.account-editor-head strong {
  font-size: 16px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.account-editor-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: minmax(260px, 0.78fr) minmax(420px, 1.22fr);
  padding: 16px;
}

.account-profile-card,
.account-detail-panel {
  background: rgba(15, 23, 42, 0.72);
  border: 1px solid rgba(125, 211, 252, 0.18);
  border-radius: 14px;
}

.account-profile-card {
  padding: 18px;
}

.account-main-logo {
  background: #050a16;
  border: 1px solid rgba(125, 211, 252, 0.28);
  border-radius: 12px;
  box-sizing: border-box;
  height: 62px;
  object-fit: contain;
  object-position: center center;
  padding: 6px;
  width: 62px;
}

.account-profile-card h2 {
  font-size: 26px;
  line-height: 1.05;
  margin: 14px 0 8px;
}

.account-stock-badge {
  color: var(--orange);
  display: block;
  font-size: 20px;
  font-weight: 900;
  margin-top: 8px;
}

.account-actions {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 34px;
}

.account-actions button {
  align-items: center;
  background: transparent;
  border: 1px solid transparent;
  box-shadow: none;
  color: white;
  display: flex;
  flex-direction: column;
  gap: 7px;
  min-height: 88px;
  padding: 8px;
}

.account-actions button:hover {
  background: rgba(255, 138, 0, 0.08);
  border-color: rgba(255, 138, 0, 0.28);
  box-shadow: none;
}

.account-actions b {
  align-items: center;
  background: var(--orange);
  border-radius: 999px;
  color: #111;
  display: inline-flex;
  font-size: 20px;
  height: 42px;
  justify-content: center;
  width: 42px;
}

.account-actions span {
  font-size: 12.5px;
  line-height: 1.15;
  text-align: center;
}

.account-detail-panel {
  padding: 14px;
}

.related-bases h3 {
  align-items: center;
  display: flex;
  font-size: 18px;
  justify-content: space-between;
  margin: 4px 0 12px;
}

.related-bases h3 span {
  background: rgba(148, 163, 184, 0.28);
  border-radius: 7px;
  font-size: 13px;
  padding: 2px 7px;
}

.related-table {
  border: 1px solid rgba(125, 211, 252, 0.16);
  border-radius: 10px;
  max-height: 360px;
  overflow: auto;
}

.related-table table {
  min-width: 620px;
  font-size: 11.5px;
}

.related-table td {
  cursor: pointer;
  height: 34px;
  padding-bottom: 5px;
  padding-top: 5px;
  vertical-align: middle;
}

.related-table th {
  height: 28px;
  padding-bottom: 4px;
  padding-top: 4px;
}

.related-table .pill {
  font-size: 10.5px;
  padding: 0 5px;
}

.related-profile-cell {
  color: rgba(226, 232, 240, 0.94);
  font-weight: 760;
  white-space: nowrap;
}

.related-profile-cell .muted {
  color: #93c5fd;
  font-size: 11px;
  font-weight: 720;
}

#account-editor-form {
  display: grid;
  gap: 14px;
  margin-top: 18px;
}

#account-editor-form label,
.account-field,
.account-status-row {
  align-items: center;
  display: grid;
  gap: 12px;
  grid-template-columns: 190px minmax(0, 1fr);
}

#account-editor-form input,
#account-editor-form textarea {
  background: rgba(2, 6, 23, 0.74);
  border: 1px solid rgba(125, 211, 252, 0.34);
  border-radius: 8px;
  color: white;
  min-height: 44px;
  padding: 0 13px;
}

#account-editor-form textarea {
  min-height: 58px;
  padding: 12px 13px;
}

.account-field span,
.account-status-row > span,
#account-editor-form label {
  color: rgba(203, 213, 225, 0.86);
  font-weight: 760;
}

.account-field strong.ok { color: var(--green); }
.account-field strong.bad { color: var(--red); }

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

.account-status-buttons button {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(148, 163, 184, 0.42);
  box-shadow: none;
  color: white;
  min-height: 48px;
}

.account-status-buttons button.active {
  background: rgba(34, 197, 94, 0.14);
  border-color: var(--green);
  color: #86efac;
}

.account-status-buttons button.damaged.active {
  background: rgba(244, 63, 94, 0.16);
  border-color: var(--red);
  color: #fda4af;
}

.account-status-buttons button.business.active {
  background: rgba(250, 204, 21, 0.14);
  border-color: #facc15;
  color: #fde68a;
}

.credential-modal form {
  display: grid;
  gap: 14px;
}

.credential-modal label {
  color: rgba(203, 213, 225, 0.86);
  display: grid;
  font-weight: 760;
  gap: 7px;
}

.credential-modal input {
  background: rgba(2, 6, 23, 0.78);
  border: 1px solid rgba(125, 211, 252, 0.34);
  border-radius: 8px;
  color: white;
  min-height: 44px;
  padding: 0 13px;
}

/* Combo history */
.combo-history {
  margin-top: 18px;
}

.combo-history-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}

.combo-history-card {
  background: rgba(7, 13, 29, 0.72);
  border: 1px solid rgba(125, 211, 252, 0.16);
  border-radius: 14px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.18);
  overflow: hidden;
}

.combo-history-card.is-editing {
  border-color: rgba(21, 244, 238, 0.38);
  box-shadow: 0 22px 58px rgba(0, 0, 0, 0.28), 0 0 0 1px rgba(21, 244, 238, 0.08);
  grid-column: 1 / -1;
}

.combo-history-card.is-editing header {
  align-items: center;
}

.combo-search-hint {
  align-items: center;
  background: rgba(14, 165, 233, 0.08);
  border: 1px solid rgba(34, 211, 238, 0.18);
  border-radius: 12px;
  color: rgba(226, 232, 240, 0.82);
  display: flex;
  font-size: 12px;
  justify-content: space-between;
  margin: 10px 0 14px;
  padding: 10px 12px;
}

.combo-search-hint strong {
  color: #67e8f9;
}

.combo-search-hint a {
  color: #15f4ee;
  font-weight: 750;
}

.combo-history-card header {
  align-items: flex-start;
  background: linear-gradient(135deg, rgba(21, 244, 238, 0.09), rgba(255, 138, 0, 0.08));
  border-bottom: 1px solid rgba(125, 211, 252, 0.14);
  display: flex;
  justify-content: space-between;
  padding: 14px;
}

.combo-history-card header span,
.combo-history-meta span,
.combo-history-card small {
  color: rgba(203, 213, 225, 0.76);
  font-size: 12px;
}

.combo-history-card h3 {
  font-size: 18px;
  margin: 4px 0;
}

.combo-history-card header strong {
  color: var(--green);
  font-size: 18px;
}

.combo-history-meta {
  display: grid;
  gap: 6px;
  grid-template-columns: repeat(3, 1fr);
  padding: 12px 14px;
}

.combo-history-meta b {
  color: var(--orange);
  font-size: 12px;
}

.combo-history-items {
  display: grid;
  gap: 1px;
  padding: 0 14px 14px;
}

.combo-history-card.is-editing .combo-history-items {
  gap: 8px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.combo-history-items div {
  align-items: center;
  background: rgba(2, 6, 23, 0.42);
  border-radius: 8px;
  display: grid;
  gap: 8px;
  grid-template-columns: 1fr 1.1fr auto;
  min-height: 34px;
  padding: 7px 9px;
}

.combo-history-card.is-editing .combo-history-items div {
  grid-template-columns: minmax(110px, 0.9fr) minmax(160px, 1.2fr) auto;
}

.combo-history-items b {
  color: white;
  font-size: 12px;
}

.combo-card-actions {
  display: grid;
  gap: 8px;
  grid-template-columns: 1fr auto auto;
  padding: 0 14px 14px;
}

.combo-history-card.is-editing .combo-card-actions {
  align-items: center;
  grid-template-columns: minmax(220px, 1fr) auto auto;
}

.combo-card-actions form {
  display: contents;
}

.combo-card-actions button {
  min-height: 38px;
}

.combo-renew-button,
.combo-delete-button {
  border-radius: 12px;
  font-size: 12px;
  font-weight: 900;
  padding: 0 14px;
}

.combo-renew-button {
  background: rgba(20, 184, 166, 0.15);
  border: 1px solid rgba(45, 212, 191, 0.42);
  color: #99f6e4;
}

.combo-renew-button:hover {
  background: rgba(20, 184, 166, 0.24);
  box-shadow: 0 0 22px rgba(45, 212, 191, 0.14);
}

.combo-delete-button {
  background: rgba(76, 5, 25, 0.16);
  border: 1px solid rgba(251, 113, 133, 0.34);
  color: #fda4af;
}

.combo-delete-button:hover {
  background: rgba(127, 29, 29, 0.26);
  box-shadow: 0 0 22px rgba(251, 113, 133, 0.12);
}

/* Provider detail */
.providers-layout {
  display: grid;
  gap: 14px;
}

.providers-layout.with-provider-detail {
  grid-template-columns: minmax(480px, 0.95fr) minmax(560px, 1.05fr);
}

.providers-table table {
  min-width: 560px;
}

.providers-table td {
  height: 42px;
}

.provider-detail {
  display: grid;
  gap: 14px;
}

.provider-card,
.provider-related-card {
  background: rgba(15, 23, 42, 0.72);
  border: 1px solid rgba(125, 211, 252, 0.18);
  border-radius: 12px;
  box-shadow: 0 22px 55px rgba(0, 0, 0, 0.22);
}

.provider-card {
  display: grid;
  grid-template-columns: 1fr 60px;
  min-height: 320px;
  padding: 20px;
}

.provider-fields {
  display: grid;
  gap: 12px;
  max-width: 520px;
}

.provider-fields label {
  color: #bfefff;
  display: grid;
  font-size: 12px;
  font-weight: 760;
  gap: 5px;
}

.provider-fields input,
.provider-fields textarea {
  background: transparent;
  border: 1px solid transparent;
  border-radius: 8px;
  color: white;
  font-size: 15px;
  font-weight: 800;
  min-height: 30px;
  padding: 4px 0;
}

.provider-fields input::placeholder {
  color: rgba(148, 163, 184, 0.58);
  font-size: 12px;
  font-weight: 650;
}

.provider-fields input:focus,
.provider-fields textarea:focus {
  background: rgba(2, 6, 23, 0.6);
  border-color: rgba(21, 244, 238, 0.32);
  outline: none;
  padding-left: 10px;
}

.provider-fields textarea {
  min-height: 60px;
  resize: vertical;
}

.clean-provider-fields {
  align-content: start;
  gap: 18px;
}

.clean-provider-fields label {
  max-width: 520px;
}

.provider-side-actions {
  align-items: center;
  display: flex;
  flex-direction: column;
  gap: 18px;
  justify-content: center;
}

.provider-side-actions button {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(125, 211, 252, 0.16);
  border-radius: 999px;
  box-shadow: none;
  color: #cbd5e1;
  height: 38px;
  min-height: 0;
  padding: 0;
  width: 38px;
}

.provider-side-actions button:hover {
  background: rgba(21, 244, 238, 0.1);
  border-color: rgba(21, 244, 238, 0.34);
  box-shadow: none;
  filter: none;
}

.provider-related-card {
  padding: 14px;
}

.provider-related-card h3 {
  align-items: center;
  display: flex;
  font-size: 20px;
  gap: 8px;
  margin: 0 0 12px;
}

.provider-related-card h3 span {
  background: rgba(148, 163, 184, 0.32);
  border-radius: 7px;
  font-size: 12px;
  padding: 2px 7px;
}

.provider-related-table {
  max-height: 300px;
}

@media (max-width: 1200px) {
  .providers-layout.with-provider-detail {
    grid-template-columns: 1fr;
  }
}

/* Image-first sale action buttons */
.sale-editor .legacy-actions {
  display: grid !important;
  gap: 12px !important;
  grid-template-columns: repeat(2, minmax(96px, 1fr)) !important;
  margin-top: 24px !important;
}

.sale-editor .legacy-action,
.sale-editor .legacy-action.whatsapp,
.sale-editor .legacy-action.renew,
.sale-editor .legacy-action.replenish,
.sale-editor .legacy-action.pending,
.sale-editor .legacy-action.paid,
.sale-editor .legacy-action.grace,
.sale-editor .legacy-action.available {
  align-items: center !important;
  background: transparent !important;
  border: 0 !important;
  border-radius: 12px !important;
  box-shadow: none !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 8px !important;
  min-height: 86px !important;
  padding: 6px 4px !important;
  text-align: center !important;
  width: auto !important;
}

.sale-editor .legacy-action:hover {
  background: rgba(15, 23, 42, 0.72) !important;
  box-shadow: 0 18px 34px rgba(0, 0, 0, 0.26), inset 0 1px 0 rgba(255, 255, 255, 0.04) !important;
  filter: none !important;
  transform: translateY(-1px) !important;
}

.sale-editor .legacy-action.image-action b,
.sale-editor .legacy-action b {
  align-items: center !important;
  background: rgba(2, 6, 23, 0.52) !important;
  border: 1px solid rgba(125, 211, 252, 0.2) !important;
  border-radius: 999px !important;
  box-shadow: 0 12px 22px rgba(0, 0, 0, 0.22) !important;
  display: inline-flex !important;
  height: 54px !important;
  justify-content: center !important;
  min-width: 54px !important;
  overflow: hidden !important;
  padding: 5px !important;
  width: 54px !important;
}

.sale-editor .legacy-action.image-action b img {
  display: block !important;
  height: 100% !important;
  object-fit: contain !important;
  width: 100% !important;
}

.sale-editor .legacy-action.whatsapp b {
  border-color: rgba(34, 197, 94, 0.42) !important;
  box-shadow: 0 0 20px rgba(34, 197, 94, 0.13) !important;
}

.sale-editor .legacy-action.notify b {
  border-color: rgba(34, 197, 94, 0.42) !important;
  box-shadow: 0 0 20px rgba(34, 197, 94, 0.13) !important;
}

.sale-editor .legacy-action.renew b {
  border-color: rgba(21, 244, 238, 0.38) !important;
}

.sale-editor .legacy-action.replenish b {
  border-color: rgba(167, 139, 250, 0.54) !important;
  box-shadow: 0 0 22px rgba(139, 92, 246, 0.16) !important;
}

.sale-editor .legacy-action.renew img,
.sale-editor .legacy-action.replenish img,
.sale-editor .legacy-action.pending img,
.sale-editor .legacy-action.paid img,
.sale-editor .legacy-action.grace img,
.sale-editor .legacy-action.available img {
  filter: invert(1) brightness(1.08) !important;
}

.sale-editor .legacy-action.replenish img {
  filter: none !important;
}

.replenish-modal {
  max-width: 520px;
}

.replenish-explanation {
  color: #cbd5e1;
  line-height: 1.55;
  margin: 0 0 16px;
}

.replenish-date-summary {
  align-items: stretch;
  background: rgba(15, 23, 42, 0.62);
  border: 1px solid rgba(167, 139, 250, 0.22);
  border-radius: 16px;
  display: grid;
  gap: 10px;
  grid-template-columns: 1fr auto 1fr;
  margin-bottom: 18px;
  padding: 14px;
}

.replenish-date-summary > div:not(.replenish-arrow) {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.replenish-date-summary span {
  color: #94a3b8;
  font-size: 11px;
  font-weight: 750;
  text-transform: uppercase;
}

.replenish-date-summary strong {
  color: #f8fafc;
  font-size: 16px;
}

.replenish-date-summary .replenish-arrow {
  align-self: center;
  color: #a78bfa;
  font-size: 22px;
}

.replenish-confirmation {
  background: rgba(139, 92, 246, 0.1);
  border-left: 3px solid #a78bfa;
  border-radius: 8px;
  color: #ddd6fe;
  margin: 16px 0 0;
  padding: 10px 12px;
}

.replenish-confirm {
  background: linear-gradient(135deg, #8b5cf6, #06b6d4) !important;
}

.content.base-fragment-loading {
  cursor: progress;
}

.table-wrap,
.base-table,
.compact-base,
.sale-editor,
.combo-list,
.account-results,
.client-results {
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  touch-action: pan-x pan-y;
}

@media (max-width: 560px) {
  .replenish-date-summary {
    grid-template-columns: 1fr;
  }

  .replenish-date-summary .replenish-arrow {
    justify-self: center;
    transform: rotate(90deg);
  }
}

.sale-editor .legacy-action.pending b {
  border-color: rgba(255, 138, 0, 0.45) !important;
}

.sale-editor .legacy-action.grace b {
  border-color: rgba(251, 191, 36, 0.52) !important;
  box-shadow: 0 0 20px rgba(251, 191, 36, 0.12) !important;
}

.sale-editor .legacy-action.paid b {
  border-color: rgba(34, 197, 94, 0.52) !important;
  box-shadow: 0 0 20px rgba(34, 197, 94, 0.14) !important;
}

.sale-editor .legacy-action.available b {
  border-color: rgba(34, 197, 94, 0.38) !important;
}

.sale-editor .legacy-action span {
  color: #f8fafc !important;
  display: block !important;
  font-size: 12.5px !important;
  font-weight: 820 !important;
  line-height: 1.18 !important;
  margin: 0 !important;
  max-width: 86px !important;
  white-space: normal !important;
}

@media (max-width: 760px) {
  .sale-editor .legacy-actions {
    grid-template-columns: repeat(2, minmax(92px, 1fr)) !important;
  }
}

/* Minimal premium refresh */
:root {
  --bg: #080d16;
  --panel: rgba(13, 20, 34, 0.88);
  --panel-2: rgba(17, 25, 40, 0.9);
  --line: rgba(148, 163, 184, 0.16);
  --text: #f8fafc;
  --muted: #94a3b8;
  --orange: #f59e0b;
  --cyan: #22d3ee;
  --green: #22c55e;
  --red: #fb5d76;
  --yellow: #fbbf24;
  --blue: #60a5fa;
  --violet: #8b5cf6;
}

body {
  background:
    radial-gradient(circle at 20% -10%, rgba(34, 211, 238, 0.08), transparent 30%),
    radial-gradient(circle at 100% 0%, rgba(139, 92, 246, 0.08), transparent 28%),
    linear-gradient(135deg, #070b13 0%, #0b1220 58%, #080b12 100%) !important;
  color: var(--text) !important;
  font-size: 12.5px !important;
  letter-spacing: 0 !important;
}

.topbar {
  background: rgba(7, 11, 19, 0.88) !important;
  border-bottom-color: rgba(148, 163, 184, 0.14) !important;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.2) !important;
}

.sidebar {
  background: rgba(6, 11, 19, 0.9) !important;
  border-right-color: rgba(148, 163, 184, 0.12) !important;
}

.nav-item {
  border-radius: 11px !important;
  color: rgba(248, 250, 252, 0.86) !important;
}

.nav-item:hover,
.nav-item.active {
  background: rgba(15, 23, 42, 0.95) !important;
  border-color: rgba(34, 211, 238, 0.24) !important;
  color: #67e8f9 !important;
}

.search {
  background: rgba(15, 23, 42, 0.72) !important;
  border-color: rgba(148, 163, 184, 0.28) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04) !important;
}

.crumb {
  background: linear-gradient(90deg, rgba(8, 47, 73, 0.48), rgba(15, 23, 42, 0.28)) !important;
  border-bottom-color: rgba(148, 163, 184, 0.14) !important;
  color: #f8fafc !important;
  font-size: 15px !important;
  font-weight: 820 !important;
  text-shadow: none !important;
}

.add-sale-button {
  align-items: center !important;
  background: rgba(15, 23, 42, 0.92) !important;
  border: 1px solid rgba(34, 211, 238, 0.32) !important;
  border-radius: 11px !important;
  box-shadow:
    0 10px 24px rgba(0, 0, 0, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.05) !important;
  color: #f8fafc !important;
  font-size: 13px !important;
  font-weight: 880 !important;
  gap: 7px !important;
  min-height: 30px !important;
  padding: 5px 12px 5px 8px !important;
  position: relative !important;
  text-shadow: none !important;
}

.add-sale-button::before,
.add-sale-button::after {
  display: none !important;
}

.add-sale-button span {
  align-items: center !important;
  background: rgba(34, 211, 238, 0.12) !important;
  border: 1px solid rgba(34, 211, 238, 0.32) !important;
  border-radius: 999px !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22) !important;
  display: inline-flex !important;
  color: #67e8f9 !important;
  font-size: 13px !important;
  height: 18px !important;
  justify-content: center !important;
  line-height: 1 !important;
  width: 18px !important;
}

.add-sale-button:hover {
  background: rgba(20, 31, 50, 0.98) !important;
  border-color: rgba(34, 211, 238, 0.54) !important;
  box-shadow:
    0 14px 30px rgba(0, 0, 0, 0.28),
    0 0 18px rgba(34, 211, 238, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.06) !important;
  filter: none !important;
  transform: translateY(-1px) !important;
}

.base-table {
  background: rgba(8, 13, 24, 0.76) !important;
  border-color: rgba(148, 163, 184, 0.16) !important;
  border-radius: 14px !important;
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.28) !important;
}

.compact-base table {
  border-collapse: separate !important;
  border-spacing: 0 !important;
  color: rgba(248, 250, 252, 0.92) !important;
  font-size: 12px !important;
}

th {
  background: rgba(3, 7, 18, 0.72) !important;
  border-bottom: 1px solid rgba(148, 163, 184, 0.18) !important;
  color: #e5edf7 !important;
  font-size: 11.5px !important;
  font-weight: 850 !important;
  height: 32px !important;
}

.compact-base td {
  background: rgba(15, 23, 42, 0.58) !important;
  border-bottom: 1px solid rgba(148, 163, 184, 0.13) !important;
  color: rgba(248, 250, 252, 0.88) !important;
  font-weight: 650 !important;
  height: 48px !important;
}

.compact-base tr:nth-child(even):not(.group-row) td {
  background: rgba(13, 20, 34, 0.64) !important;
}

tr:hover td,
.clickable-row:hover td {
  background: rgba(30, 41, 59, 0.78) !important;
}

.selected-row td {
  background: rgba(34, 211, 238, 0.08) !important;
  box-shadow: inset 3px 0 0 rgba(34, 211, 238, 0.78) !important;
}

.group-row td {
  background: rgba(2, 6, 23, 0.94) !important;
  border-bottom: 1px solid rgba(148, 163, 184, 0.16) !important;
  font-size: 12px !important;
  letter-spacing: 0 !important;
}

.group-row.pending td { color: #f472b6 !important; }
.group-row.grace td { color: #fbbf24 !important; }
.group-row.available td { color: #86efac !important; }
.group-row.delivered td { color: #93c5fd !important; }

.product-cell span:last-child,
.compact-base td strong {
  font-weight: 820 !important;
}

.base-product-img,
.product-cell .icon-box {
  background: rgba(2, 6, 23, 0.76) !important;
  border-color: rgba(148, 163, 184, 0.2) !important;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.2) !important;
}

.pill {
  border: 1px solid transparent !important;
  border-radius: 999px !important;
  font-size: 11px !important;
  font-weight: 850 !important;
  padding: 2px 0 !important;
}

.pill.ok {
  color: #38bdf8 !important;
}

.pill.paid {
  color: #4ade80 !important;
}

.pill.bad {
  color: #fb7185 !important;
}

.pill.grace {
  color: #fbbf24 !important;
}

.days-cell.green { color: #4ade80 !important; }
.days-cell.yellow { color: #fbbf24 !important; }
.days-cell.red { color: #fb7185 !important; }

.panel-days {
  align-items: center;
  display: inline-flex;
  gap: 7px;
  font-weight: 900;
  white-space: nowrap;
}

.panel-days span {
  border-radius: 999px;
  display: inline-block;
  height: 10px;
  width: 10px;
}

.panel-days.red {
  color: #fb7185 !important;
}

.panel-days.red span {
  background: radial-gradient(circle at 32% 30%, #fecdd3, #f43f5e 62%, #881337);
  box-shadow: 0 0 12px rgba(244, 63, 94, 0.46);
}

.panel-days.yellow {
  color: #fbbf24 !important;
}

.panel-days.yellow span {
  background: radial-gradient(circle at 32% 30%, #fed7aa, #f97316 62%, #7c2d12);
  box-shadow: 0 0 12px rgba(249, 115, 22, 0.42);
}

.panel-days.green {
  color: #4ade80 !important;
}

.panel-days.green span {
  background: radial-gradient(circle at 32% 30%, #bbf7d0, #22c55e 62%, #14532d);
  box-shadow: 0 0 12px rgba(34, 197, 94, 0.4);
}

.legacy-segments button,
.sale-editor .legacy-segments button {
  background: rgba(15, 23, 42, 0.7) !important;
  border-color: rgba(148, 163, 184, 0.28) !important;
  color: #cbd5e1 !important;
  font-weight: 850 !important;
}

.sale-editor .legacy-segments button.available.active {
  background: rgba(34, 197, 94, 0.12) !important;
  border-color: rgba(34, 197, 94, 0.88) !important;
  color: #86efac !important;
}

.sale-editor .legacy-segments button.pending.active {
  background: rgba(244, 63, 94, 0.12) !important;
  border-color: rgba(244, 63, 94, 0.88) !important;
  color: #fda4af !important;
}

.sale-editor .legacy-segments button.delivered,
.sale-editor .legacy-segments button.delivered.active {
  border-color: rgba(59, 130, 246, 0.66) !important;
  color: #93c5fd !important;
}

.sale-editor .legacy-segments button.delivered.active {
  background: rgba(59, 130, 246, 0.14) !important;
  box-shadow: 0 0 0 1px rgba(59, 130, 246, 0.08), 0 12px 28px rgba(59, 130, 246, 0.08) !important;
}

.sale-editor .payment-status-row {
  margin-top: -4px !important;
}

.sale-editor .payment-segments button.grace {
  border-color: rgba(245, 158, 11, 0.7) !important;
  color: #facc15 !important;
}

.sale-editor .payment-segments button.grace.active {
  background: rgba(245, 158, 11, 0.14) !important;
  border-color: rgba(245, 158, 11, 0.9) !important;
  box-shadow: 0 0 0 1px rgba(245, 158, 11, 0.08), 0 12px 28px rgba(245, 158, 11, 0.08) !important;
  color: #fde68a !important;
}

.sale-editor .payment-segments button.paid {
  border-color: rgba(34, 197, 94, 0.7) !important;
  color: #86efac !important;
}

.sale-editor .payment-segments button.paid.active {
  background: rgba(34, 197, 94, 0.14) !important;
  border-color: rgba(34, 197, 94, 0.92) !important;
  box-shadow: 0 0 0 1px rgba(34, 197, 94, 0.08), 0 12px 28px rgba(34, 197, 94, 0.08) !important;
  color: #bbf7d0 !important;
}

.add-sale-button,
.add-sale-button:visited,
.add-sale-button:focus {
  outline: none !important;
}

.add-sale-button:focus-visible {
  box-shadow:
    0 14px 30px rgba(0, 0, 0, 0.28),
    0 0 0 3px rgba(34, 211, 238, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.06) !important;
}

.compact-base td:nth-child(3) .pill.ok:first-child {
  color: #7dd3fc !important;
}

.compact-base td:nth-child(3) .pill.bad {
  color: #fb7185 !important;
}

.legacy-sale-card,
.sale-editor .legacy-sale-card,
.legacy-form-panel,
.sale-editor .legacy-form-panel {
  background: rgba(15, 23, 42, 0.56) !important;
  border-color: rgba(148, 163, 184, 0.18) !important;
}

.sale-editor {
  background: linear-gradient(180deg, rgba(8, 13, 24, 0.88), rgba(6, 10, 18, 0.92)) !important;
}

/* Split-screen editor: keep Base visible on narrow desktop windows */
@media (min-width: 701px) and (max-width: 1100px) {
  .base-layout.with-editor {
    display: block !important;
  }

  .base-layout.with-editor .base-table {
    max-width: calc(100vw - 430px) !important;
    min-width: 0 !important;
  }

  .sale-editor {
    border-left: 1px solid rgba(125, 211, 252, 0.24) !important;
    border-radius: 16px 0 0 16px !important;
    bottom: 0 !important;
    left: auto !important;
    max-width: 430px !important;
    min-width: 360px !important;
    right: 8px !important;
    top: 54px !important;
    width: min(430px, 48vw) !important;
  }

  .sale-editor .legacy-editor-grid {
    border-radius: 14px !important;
    display: grid !important;
    grid-template-columns: 1fr !important;
    min-width: 0 !important;
  }

  .sale-editor .legacy-sale-card {
    border-bottom: 1px solid rgba(125, 211, 252, 0.14) !important;
    border-right: 0 !important;
    min-height: 0 !important;
    padding: 18px !important;
  }

  .sale-editor .legacy-form-panel {
    padding: 18px !important;
  }

  .sale-editor .legacy-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  .sale-editor .legacy-status-row,
  .sale-editor .legacy-form-panel label,
  .sale-editor .legacy-field,
  .sale-editor .legacy-whatsapp,
  .sale-editor .legacy-print {
    grid-template-columns: 1fr !important;
  }

}

@media (max-width: 700px) {
  .sale-editor {
    left: 8px !important;
    right: 8px !important;
    top: 86px !important;
    width: auto !important;
  }

}

.account-status-buttons button.support.active {
  background: rgba(56, 189, 248, 0.14);
  border-color: var(--cyan);
  color: var(--cyan);
}

.account-create-form[hidden] {
  display: none;
}

@media (max-width: 1320px) {
  .accounts-layout.with-account-editor,
  .account-editor-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  #account-editor-form label,
  .account-field,
  .account-status-row {
    grid-template-columns: 1fr;
  }
  .account-status-buttons,
  .account-actions {
    grid-template-columns: 1fr;
  }
}

/* Combo preset cards must win over the global compact button rules. */
body .combo-builder .combo-preset-card {
  align-items: center !important;
  display: grid !important;
  gap: 4px 9px !important;
  grid-template-columns: 39px minmax(0, 1fr) !important;
  grid-template-rows: auto auto auto !important;
  height: auto !important;
  justify-content: stretch !important;
  min-height: 118px !important;
  padding: 12px !important;
  white-space: normal !important;
}

body .combo-builder .combo-preset-card .combo-preset-emoji {
  flex: none !important;
  height: 39px !important;
  width: 39px !important;
}

body .combo-builder .combo-preset-card .combo-preset-copy {
  min-width: 0 !important;
  width: 100% !important;
}

body .combo-builder .combo-preset-card > b,
body .combo-builder .combo-preset-card > em {
  grid-column: 1 / -1 !important;
  margin: 0 !important;
  position: static !important;
  width: 100% !important;
}

@media (max-width: 560px) {
  body .combo-builder .combo-preset-card {
    min-height: 104px !important;
  }
}

.auto-profile-field[readonly] {
  cursor: default;
  color: #e9fbff;
  font-weight: 800;
  letter-spacing: 0.04em;
  border-color: rgba(69, 196, 230, 0.5);
  background: linear-gradient(135deg, rgba(23, 91, 119, 0.3), rgba(10, 28, 46, 0.82));
  box-shadow: inset 0 0 0 1px rgba(103, 220, 244, 0.08);
}

.auto-profile-note {
  display: block;
  margin-top: 6px;
  color: #83dff1;
  font-size: 0.76rem;
  line-height: 1.35;
}

/* Base: lectura limpia, jerarquia visual y densidad profesional */
body.base-page .content {
  background:
    radial-gradient(circle at 82% 0%, rgba(14, 165, 233, 0.055), transparent 28%),
    linear-gradient(180deg, rgba(7, 17, 30, 0.42), transparent 210px);
}

body.base-page .page-crumb {
  margin-bottom: 12px !important;
  border: 1px solid rgba(92, 132, 164, 0.17) !important;
  border-radius: 16px !important;
  background: linear-gradient(135deg, rgba(12, 28, 45, 0.82), rgba(7, 16, 28, 0.58)) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.035), 0 12px 28px rgba(0, 0, 0, 0.12) !important;
}

body.base-page .page-crumb > span {
  color: #dbeafe;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.015em;
}

body.base-page .base-layout {
  gap: 14px;
}

body.base-page .base-table {
  border: 1px solid rgba(96, 139, 173, 0.2) !important;
  border-radius: 17px !important;
  background: rgba(5, 13, 25, 0.78) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.025), 0 18px 42px rgba(0, 0, 0, 0.2) !important;
  scrollbar-color: rgba(57, 189, 214, 0.38) rgba(5, 13, 25, 0.6);
}

body.base-page .compact-base table {
  border-collapse: separate !important;
  border-spacing: 0 !important;
}

body.base-page .compact-base thead th {
  position: sticky;
  top: 0;
  z-index: 4;
  height: 46px;
  padding: 0 14px !important;
  border-bottom: 1px solid rgba(91, 149, 184, 0.22) !important;
  background: rgba(6, 15, 28, 0.97) !important;
  box-shadow: 0 7px 18px rgba(0, 0, 0, 0.13);
}

body.base-page .compact-base thead th:first-child {
  border-top-left-radius: 16px;
}

body.base-page .compact-base thead th:last-child {
  border-top-right-radius: 16px;
}

body.base-page .compact-base .sort-link {
  color: #b8c8d9;
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0.045em;
  text-transform: uppercase;
}

body.base-page .compact-base .sort-link:hover,
body.base-page .compact-base .sort-link.active {
  color: #67e8f9 !important;
}

body.base-page .compact-base .group-row td {
  height: 34px;
  padding: 8px 14px !important;
  color: #9fb5c9 !important;
  border-block: 1px solid rgba(85, 123, 153, 0.13) !important;
  background: linear-gradient(90deg, rgba(14, 37, 59, 0.76), rgba(7, 19, 33, 0.5)) !important;
  font-size: 10.5px !important;
  font-weight: 900 !important;
  letter-spacing: 0.1em !important;
  text-transform: uppercase;
}

body.base-page .compact-base tbody .clickable-row td {
  height: 58px;
  padding: 9px 14px !important;
  border-bottom: 1px solid rgba(82, 114, 143, 0.14) !important;
  background: rgba(9, 19, 33, 0.66) !important;
  color: #dbe7f3;
  vertical-align: middle;
}

body.base-page .compact-base tbody .clickable-row:nth-of-type(even) td {
  background: rgba(11, 23, 39, 0.74) !important;
}

body.base-page .compact-base tbody .clickable-row:hover td {
  background: rgba(16, 39, 59, 0.92) !important;
  border-bottom-color: rgba(49, 186, 213, 0.32) !important;
}

body.base-page .compact-base tbody .clickable-row.selected-row td {
  background: linear-gradient(90deg, rgba(11, 73, 93, 0.56), rgba(12, 31, 50, 0.94)) !important;
  border-bottom-color: rgba(50, 211, 234, 0.44) !important;
  box-shadow: inset 0 1px rgba(84, 222, 240, 0.1), inset 0 -1px rgba(84, 222, 240, 0.08) !important;
}

body.base-page .compact-base tbody .clickable-row.selected-row td:first-child {
  box-shadow: inset 3px 0 #22d3ee, inset 0 1px rgba(84, 222, 240, 0.1), inset 0 -1px rgba(84, 222, 240, 0.08) !important;
}

body.base-page .product-cell {
  gap: 10px;
}

body.base-page .base-product-img,
body.base-page .product-cell .icon-box {
  width: 34px !important;
  height: 34px !important;
  border-radius: 10px !important;
  border: 1px solid rgba(108, 153, 187, 0.28) !important;
  background-color: rgba(4, 11, 22, 0.82);
  box-shadow: 0 7px 16px rgba(0, 0, 0, 0.2);
}

body.base-page .base-product-title,
body.base-page .client-cell strong {
  color: #ecf5fc !important;
  font-size: 12.5px;
  font-weight: 850;
}

body.base-page .compact-base .muted {
  color: #8da4ba !important;
  font-size: 11.5px !important;
  line-height: 1.45;
}

body.base-page .status-cell .pill {
  display: inline-flex;
  align-items: center;
  min-height: 20px;
  padding: 3px 8px !important;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 10.5px !important;
  font-weight: 850 !important;
  line-height: 1;
}

body.base-page .status-cell .pill.ok {
  color: #67e8f9 !important;
  border-color: rgba(34, 211, 238, 0.2);
  background: rgba(8, 145, 178, 0.11);
}

body.base-page .status-cell .pill.bad {
  color: #fb8da4 !important;
  border-color: rgba(251, 113, 133, 0.2);
  background: rgba(190, 24, 93, 0.1);
}

body.base-page .status-cell .pill.grace {
  color: #fcd56a !important;
  border-color: rgba(250, 204, 21, 0.2);
  background: rgba(161, 98, 7, 0.1);
}

body.base-page .status-cell .pill.paid {
  color: #6ee7b7 !important;
  border-color: rgba(52, 211, 153, 0.2);
  background: rgba(5, 150, 105, 0.1);
}

body.base-page .days-cell {
  font-size: 12px;
  font-weight: 900;
}

body.base-page .days-dot {
  width: 8px !important;
  height: 8px !important;
  margin-right: 8px !important;
  box-shadow: 0 0 0 4px rgba(148, 163, 184, 0.06), 0 0 12px currentColor !important;
}

body.base-page .account-cell,
body.base-page .profile-cell,
body.base-page .expiration-cell {
  color: #c7d5e3;
  font-size: 12px;
}

body.base-page .expiration-cell {
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

body.base-page .total-cell {
  color: #eff9ff !important;
  font-size: 12.5px;
  font-weight: 900;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

body.base-page .combo-sale-badge {
  padding: 3px 7px !important;
  border-radius: 999px !important;
  box-shadow: none !important;
}

body.base-page .sale-editor {
  border: 1px solid rgba(80, 158, 185, 0.24) !important;
  border-radius: 18px !important;
  background: linear-gradient(155deg, rgba(11, 28, 45, 0.97), rgba(6, 15, 28, 0.98)) !important;
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.035), 0 20px 46px rgba(0, 0, 0, 0.24) !important;
}

@media (max-width: 860px) {
  body.base-page .page-crumb {
    border-radius: 14px !important;
    padding: 10px !important;
  }

  body.base-page .page-crumb > span {
    flex: 0 0 auto !important;
    width: 100% !important;
    min-width: 0 !important;
  }

  body.base-page .page-crumb .base-top-actions {
    flex: 0 0 auto !important;
  }

  body.base-page .base-table {
    border-radius: 14px !important;
  }

  body.base-page .compact-base tbody .clickable-row td {
    height: 54px;
    padding: 8px 11px !important;
  }
}

/* Base: separacion cromatica entre estados de venta */
body.base-page .compact-base .group-row {
  --section-color: 103, 232, 249;
  --section-text: #a5f3fc;
}

body.base-page .compact-base .group-row.pending {
  --section-color: 244, 114, 182;
  --section-text: #f9a8d4;
}

body.base-page .compact-base .group-row.grace {
  --section-color: 250, 204, 21;
  --section-text: #fde68a;
}

body.base-page .compact-base .group-row.available {
  --section-color: 56, 189, 248;
  --section-text: #7dd3fc;
}

body.base-page .compact-base .group-row.delivered {
  --section-color: 52, 211, 153;
  --section-text: #6ee7b7;
}

body.base-page .compact-base .group-row td {
  position: relative !important;
  top: auto !important;
  z-index: 1 !important;
  height: 42px !important;
  padding: 8px 14px !important;
  color: var(--section-text) !important;
  border-top: 1px solid rgba(var(--section-color), 0.38) !important;
  border-bottom: 1px solid rgba(var(--section-color), 0.22) !important;
  background:
    linear-gradient(90deg, rgba(var(--section-color), 0.19), rgba(var(--section-color), 0.055) 44%, rgba(6, 17, 30, 0.9) 100%) !important;
  box-shadow: inset 4px 0 rgba(var(--section-color), 0.84), inset 0 1px rgba(255, 255, 255, 0.025) !important;
}

body.base-page .base-section-title {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
}

body.base-page .base-section-title .base-section-dot {
  width: 9px;
  height: 9px;
  flex: 0 0 9px;
  border-radius: 999px;
  background: rgb(var(--section-color));
  box-shadow: 0 0 0 4px rgba(var(--section-color), 0.11), 0 0 14px rgba(var(--section-color), 0.54);
}

body.base-page .base-section-title strong {
  color: var(--section-text) !important;
  font-size: 11px !important;
  font-weight: 950 !important;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

body.base-page .base-section-title small {
  margin-left: 2px;
  padding: 3px 7px;
  border: 1px solid rgba(var(--section-color), 0.2);
  border-radius: 999px;
  color: rgba(226, 241, 250, 0.72);
  background: rgba(var(--section-color), 0.075);
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: none;
}

body.base-page .compact-base tbody .clickable-row.section-pending td {
  background: linear-gradient(90deg, rgba(244, 114, 182, 0.025), rgba(9, 19, 33, 0.69) 26%) !important;
}

body.base-page .compact-base tbody .clickable-row.section-grace td {
  background: linear-gradient(90deg, rgba(250, 204, 21, 0.03), rgba(9, 19, 33, 0.69) 26%) !important;
}

body.base-page .compact-base tbody .clickable-row.section-available td {
  background: linear-gradient(90deg, rgba(56, 189, 248, 0.027), rgba(9, 19, 33, 0.69) 26%) !important;
}

body.base-page .compact-base tbody .clickable-row.section-delivered td {
  background: linear-gradient(90deg, rgba(52, 211, 153, 0.027), rgba(9, 19, 33, 0.69) 26%) !important;
}

body.base-page .compact-base tbody .clickable-row.section-pending .product-data-cell {
  border-left: 2px solid rgba(244, 114, 182, 0.42) !important;
}

body.base-page .compact-base tbody .clickable-row.section-grace .product-data-cell {
  border-left: 2px solid rgba(250, 204, 21, 0.46) !important;
}

body.base-page .compact-base tbody .clickable-row.section-available .product-data-cell {
  border-left: 2px solid rgba(56, 189, 248, 0.44) !important;
}

body.base-page .compact-base tbody .clickable-row.section-delivered .product-data-cell {
  border-left: 2px solid rgba(52, 211, 153, 0.44) !important;
}

body.base-page .compact-base tbody .clickable-row:hover td {
  background: rgba(16, 39, 59, 0.94) !important;
}

body.base-page .compact-base tbody .clickable-row.selected-row td {
  background: linear-gradient(90deg, rgba(11, 73, 93, 0.58), rgba(12, 31, 50, 0.96)) !important;
}

@media (max-width: 860px) {
  body.base-page .compact-base .group-row td {
    height: 40px !important;
    padding-inline: 11px !important;
  }

  body.base-page .base-section-title strong {
    font-size: 10.5px !important;
  }
}

/* Base readability and selection priority */
body {
  font-family: "Segoe UI Variable Text", "Inter", "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, Arial, sans-serif !important;
  font-weight: 500 !important;
}

.compact-base table {
  font-family: "Segoe UI Variable Text", "Inter", "Segoe UI", system-ui, sans-serif !important;
  font-variant-numeric: tabular-nums;
}

.compact-base td {
  font-weight: 500 !important;
  line-height: 1.24 !important;
}

.compact-base th {
  font-weight: 650 !important;
}

.compact-base .product-cell span:last-child,
.compact-base td strong {
  font-weight: 650 !important;
}

.compact-base .pill {
  font-weight: 650 !important;
}

.compact-base .muted {
  color: #93a4ba !important;
  font-weight: 450 !important;
}

.compact-base .clickable-row.selected-row td,
.compact-base tr.selected-row:nth-child(even):not(.group-row) td,
.compact-base tr.selected-row:hover td {
  background: linear-gradient(90deg, rgba(14, 116, 144, 0.2), rgba(30, 41, 59, 0.84)) !important;
  border-bottom-color: rgba(34, 211, 238, 0.34) !important;
  border-top: 1px solid rgba(34, 211, 238, 0.22) !important;
}

.compact-base .clickable-row.selected-row td:first-child {
  box-shadow: inset 3px 0 0 #22d3ee !important;
}

.compact-base .clickable-row.selected-row td:not(:first-child) {
  box-shadow: none !important;
}

.compact-base.live-searching {
  opacity: 0.82;
  transition: opacity 120ms ease;
}

.compact-base.live-search-error {
  outline: 1px solid rgba(251, 113, 133, 0.45);
}

/* Zebra rows must not hide Base hover/selection feedback. */
.compact-base tbody .clickable-row:hover td,
.compact-base tbody .clickable-row:nth-child(even):hover td,
.compact-base tbody .clickable-row:nth-child(odd):hover td {
  background: linear-gradient(90deg, rgba(30, 64, 87, 0.48), rgba(30, 41, 59, 0.88)) !important;
  border-bottom-color: rgba(125, 211, 252, 0.28) !important;
}

.compact-base tbody .clickable-row.selected-row td,
.compact-base tbody .clickable-row.selected-row:nth-child(even) td,
.compact-base tbody .clickable-row.selected-row:nth-child(odd) td,
.compact-base tbody .clickable-row.selected-row:hover td {
  background: linear-gradient(90deg, rgba(8, 145, 178, 0.26), rgba(24, 36, 56, 0.96)) !important;
  border-bottom-color: rgba(34, 211, 238, 0.38) !important;
  border-top-color: rgba(34, 211, 238, 0.22) !important;
}

.compact-base tbody .clickable-row:hover td:first-child,
.compact-base tbody .clickable-row.selected-row td:first-child {
  box-shadow: inset 3px 0 0 rgba(34, 211, 238, 0.88) !important;
}

.base-product-title {
  min-width: 0;
}

.combo-sale-badge {
  align-items: center;
  background: linear-gradient(135deg, rgba(251, 191, 36, 0.18), rgba(20, 184, 166, 0.12));
  border: 1px solid rgba(251, 191, 36, 0.34);
  border-radius: 999px;
  color: #facc15;
  display: inline-flex;
  flex: 0 0 auto;
  font-size: 10px;
  font-weight: 820;
  letter-spacing: 0.02em;
  line-height: 1;
  padding: 4px 7px;
  text-transform: uppercase;
}

.combo-origin-card,
.combo-editor-alert,
.renew-combo-warning {
  background: linear-gradient(135deg, rgba(251, 191, 36, 0.12), rgba(14, 165, 233, 0.08));
  border: 1px solid rgba(251, 191, 36, 0.26);
  border-radius: 14px;
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.14);
}

.combo-origin-card {
  display: grid;
  gap: 6px;
  margin: 14px 0 4px;
  padding: 12px;
}

.sale-editor .combo-origin-card span {
  color: rgba(254, 243, 199, 0.76) !important;
  font-size: 11px !important;
  font-weight: 820 !important;
  letter-spacing: 0.04em !important;
  margin: 0 !important;
  text-transform: uppercase;
}

.sale-editor .combo-origin-card strong {
  color: #facc15 !important;
  font-size: 14px !important;
  margin: 0 !important;
}

.sale-editor .combo-origin-card small {
  color: rgba(226, 232, 240, 0.72);
  font-size: 12px;
  line-height: 1.35;
}

.combo-origin-card a,
.combo-editor-alert a,
.renew-combo-warning a {
  color: #67e8f9;
  font-size: 12px;
  font-weight: 800;
  text-decoration: none;
}

.combo-editor-alert {
  align-items: center;
  display: flex;
  gap: 12px;
  justify-content: space-between;
  margin: 0 0 14px;
  padding: 12px 14px;
}

.combo-editor-alert span,
.renew-combo-warning span {
  color: rgba(226, 232, 240, 0.72);
  display: block;
  font-size: 12px;
  font-weight: 650;
}

.combo-editor-alert strong,
.renew-combo-warning strong {
  color: #facc15;
  display: block;
  font-size: 14px;
  margin-top: 2px;
}

.renew-combo-warning {
  display: grid;
  gap: 6px;
  margin: 4px 22px 14px;
  padding: 12px 14px;
}

/* Touch/table polish: keep the desktop app usable from iPhone without a separate UI. */
.table-wrap,
.base-table,
.compact-base {
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  touch-action: pan-x pan-y;
}

.page-crumb {
  min-width: 0;
  overflow-x: auto;
  scrollbar-width: none;
}

.page-crumb::-webkit-scrollbar {
  display: none;
}

.base-top-actions {
  flex: 0 0 auto;
  flex-wrap: nowrap;
  max-width: 100%;
  overflow-x: auto;
  scrollbar-width: none;
  white-space: nowrap;
}

.base-top-actions::-webkit-scrollbar {
  display: none;
}

.base-top-actions .button,
.base-top-actions button,
.base-top-actions a {
  flex: 0 0 auto;
}

.days-cell {
  white-space: nowrap;
}

.days-dot {
  border-radius: 999px;
  display: inline-block;
  height: 10px;
  margin-right: 7px;
  vertical-align: -1px;
  width: 10px;
}

.days-cell.green .days-dot {
  background: #4ade80;
  box-shadow: 0 0 12px rgba(74, 222, 128, 0.5);
}

.days-cell.yellow .days-dot {
  background: #fb923c;
  box-shadow: 0 0 12px rgba(251, 146, 60, 0.5);
}

.days-cell.red .days-dot {
  background: #fb7185;
  box-shadow: 0 0 12px rgba(251, 113, 133, 0.5);
}

.client-results .combo-option {
  grid-template-columns: 1fr auto;
  min-height: 48px;
}

.client-results .option-meta {
  color: #93c5fd;
}

.clients-table.live-searching,
.compact-base.live-searching {
  cursor: progress;
}

@media (max-width: 700px) {
  .topbar {
    gap: 8px;
    padding: 0 8px;
  }

  .logo {
    flex: 0 0 auto;
    min-width: 0;
  }

  .logo-text {
    max-width: 186px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .search {
    flex: 1 1 84px;
    min-width: 78px;
    width: auto;
  }

  .avatar {
    flex: 0 0 32px;
  }

  .content {
    overflow: visible;
    padding-right: 0;
  }

  .page-crumb {
    align-items: center;
    gap: 12px;
    justify-content: flex-start;
    margin-right: 0;
    padding-right: 8px;
  }

  .page-crumb > span,
  .crumb {
    flex: 0 0 auto;
  }

  .base-top-actions {
    margin-left: auto;
    padding: 4px 2px;
  }

  .base-table {
    max-height: calc(100dvh - 132px);
    max-width: calc(100vw - 72px);
    overflow: auto;
  }

  .compact-base table {
    min-width: 1180px !important;
  }

  .compact-base th,
  .compact-base td {
    font-size: 12px !important;
    padding: 8px 10px !important;
  }

  .compact-base td {
    height: 56px !important;
  }

  .bulk-enabled .bulk-col,
  .bulk-enabled .bulk-cell,
  .bulk-mode .bulk-col,
  .bulk-mode .bulk-cell {
    min-width: 42px !important;
    width: 42px !important;
  }

  .bulk-cell input,
  .bulk-col input {
    height: 22px !important;
    width: 22px !important;
  }

  .base-bulk-bar {
    flex-wrap: nowrap;
    margin-inline: 0;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .base-bulk-bar::-webkit-scrollbar {
    display: none;
  }

  .bulk-action {
    flex: 0 0 auto;
  }

  .sale-editor [data-segment-group="delivery"] {
    grid-template-columns: repeat(2, minmax(118px, 1fr)) !important;
  }

  .sale-editor [data-segment-group="payment"] {
    grid-template-columns: repeat(3, minmax(118px, 1fr)) !important;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .sale-editor [data-segment-group="payment"]::-webkit-scrollbar {
    display: none;
  }
}

/* Ventas Eleccion cleanup */
.sales-date-filter {
  margin-bottom: 14px;
  border-color: rgba(56, 189, 248, 0.22);
  background: linear-gradient(145deg, rgba(15, 23, 42, 0.94), rgba(8, 15, 29, 0.96));
}

.sales-date-table table {
  min-width: 1420px;
}

.sales-date-table th {
  color: #cbd5e1;
  letter-spacing: 0;
  font-weight: 650;
}

.sales-date-table td {
  color: #e5edf8;
  font-weight: 500;
  vertical-align: middle;
}

.sales-date-table tbody tr:hover td {
  background: rgba(30, 64, 87, 0.36);
}

.status-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 24px;
  padding: 4px 10px;
  border: 1px solid rgba(148, 163, 184, 0.28);
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.7);
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
}

.status-delivered {
  border-color: rgba(56, 189, 248, 0.55);
  color: #67e8f9;
  background: rgba(8, 47, 73, 0.26);
}

.status-paid {
  border-color: rgba(34, 197, 94, 0.55);
  color: #86efac;
  background: rgba(20, 83, 45, 0.24);
}

.status-pending {
  border-color: rgba(251, 113, 133, 0.58);
  color: #fb7185;
  background: rgba(76, 5, 25, 0.22);
}

/* Combo editing */
.combo-inline-client {
  grid-column: 1 / -1;
}

.combo-edit-toggle {
  margin-top: 12px;
  width: 100%;
  border: 1px solid rgba(34, 211, 238, 0.36);
  background: rgba(8, 47, 73, 0.22);
  color: #67e8f9;
  border-radius: 12px;
  font-weight: 750;
}

.combo-edit-form {
  background: rgba(2, 6, 23, 0.34);
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 16px;
  margin: 0 14px 16px;
  overflow-x: auto;
  padding: 16px;
}

.combo-edit-grid {
  grid-template-columns: repeat(3, minmax(160px, 1fr));
}

.combo-history-card.is-editing .combo-edit-grid {
  grid-template-columns: repeat(6, minmax(140px, 1fr));
}

.combo-edit-items {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.combo-edit-item {
  display: grid;
  grid-template-columns: minmax(220px, 1.5fr) minmax(110px, 0.6fr) minmax(90px, 0.5fr) minmax(80px, 0.45fr) auto;
  gap: 10px;
  padding: 12px;
  border: 1px solid rgba(56, 189, 248, 0.16);
  border-radius: 14px;
  background: rgba(2, 6, 23, 0.32);
  transition: border-color 0.16s ease, opacity 0.16s ease, background 0.16s ease;
}

.combo-history-card.is-editing .combo-edit-item {
  align-items: end;
  background: rgba(8, 15, 29, 0.72);
  grid-template-columns:
    minmax(320px, 2fr)
    minmax(140px, 0.75fr)
    minmax(128px, 0.65fr)
    minmax(110px, 0.55fr)
    minmax(102px, 0.4fr);
}

.combo-history-card.is-editing .combo-edit-item input,
.combo-history-card.is-editing .combo-edit-item select {
  min-width: 0;
}

.combo-edit-item .combo-account-picker .account-results {
  left: 0;
  right: auto;
}

.combo-history-card.is-editing .combo-edit-item .combo-account-picker .account-results {
  min-width: min(720px, calc(100vw - 80px));
}

.combo-edit-item.is-removing {
  opacity: 0.52;
  border-color: rgba(251, 113, 133, 0.36);
  background: rgba(76, 5, 25, 0.18);
}

.combo-remove-line,
.combo-line-remove {
  align-self: end;
  min-height: 38px;
  border-radius: 999px;
  border: 1px solid rgba(251, 113, 133, 0.38);
  background: rgba(251, 113, 133, 0.08);
  color: #fda4af;
  font-weight: 800;
}

.combo-remove-line {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8px 12px;
  cursor: pointer;
}

.combo-remove-line input {
  width: 16px;
  height: 16px;
  accent-color: #fb7185;
}

.combo-line-remove {
  padding: 0 14px;
}

.combo-edit-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
  margin-top: 12px;
}

@media (max-width: 860px) {
  .combo-edit-grid,
  .combo-edit-item,
  .combo-card-actions {
    grid-template-columns: 1fr;
  }

  .combo-account-picker .account-results {
    min-width: 100%;
  }
}

/* Notifications */
.notifications-hero {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: stretch;
  margin-bottom: 16px;
  padding: 22px;
  border: 1px solid rgba(56, 189, 248, 0.18);
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.96), rgba(8, 47, 73, 0.38));
}

.notifications-hero span,
.notification-card header span,
.api-state span {
  color: #94a3b8;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.notifications-hero h1 {
  margin: 6px 0;
  font-size: 28px;
  letter-spacing: 0;
}

.notifications-hero p {
  margin: 0;
  color: #bfd0e4;
}

.api-state {
  min-width: 190px;
  padding: 16px;
  border-radius: 16px;
  border: 1px solid rgba(148, 163, 184, 0.2);
  background: rgba(2, 6, 23, 0.38);
}

.api-state.ready {
  border-color: rgba(34, 197, 94, 0.42);
}

.api-state.off {
  border-color: rgba(251, 146, 60, 0.42);
}

.api-state strong {
  display: block;
  margin-top: 6px;
  font-size: 22px;
}

.api-state.ready strong {
  color: #86efac;
}

.api-state.off strong {
  color: #fdba74;
}

.api-state small {
  display: block;
  margin-top: 6px;
  color: #94a3b8;
  word-break: break-all;
}

.neonize-control-row {
  margin-top: 12px;
}

.neonize-pause-btn {
  width: 100%;
  border-radius: 999px;
  border: 1px solid rgba(251, 146, 60, 0.46);
  color: #fdba74;
  background: rgba(124, 45, 18, 0.18);
  font-weight: 850;
}

.neonize-pause-btn.paused {
  border-color: rgba(34, 197, 94, 0.46);
  color: #86efac;
  background: rgba(20, 83, 45, 0.2);
}

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

.notification-card {
  padding: 18px;
  border: 1px solid rgba(56, 189, 248, 0.16);
  border-radius: 18px;
  background: rgba(15, 23, 42, 0.76);
  box-shadow: 0 16px 42px rgba(0, 0, 0, 0.18);
}

.notification-card.wide {
  grid-column: 1 / -1;
}

.notification-test-card {
  background:
    linear-gradient(135deg, rgba(8, 47, 73, 0.32), transparent 45%),
    rgba(15, 23, 42, 0.82);
}

.prewarning-card {
  border-color: rgba(251, 191, 36, 0.2);
  background:
    linear-gradient(135deg, rgba(251, 191, 36, 0.08), transparent 42%),
    rgba(15, 23, 42, 0.78);
}

.prewarning-card header b {
  color: #fde68a;
  border-color: rgba(251, 191, 36, 0.36);
  background: rgba(120, 53, 15, 0.28);
}

.prewarning-card .notification-actions button {
  background: linear-gradient(135deg, #f59e0b, #14b8a6);
  box-shadow: 0 14px 28px rgba(245, 158, 11, 0.14);
}

.otp-help-card {
  border-color: rgba(34, 197, 94, 0.22);
  background:
    linear-gradient(135deg, rgba(34, 197, 94, 0.1), transparent 36%),
    linear-gradient(145deg, rgba(8, 47, 73, 0.28), rgba(15, 23, 42, 0.8));
}

.otp-help-card header b {
  color: #86efac;
  border-color: rgba(34, 197, 94, 0.36);
  background: rgba(20, 83, 45, 0.28);
}

.single-message-grid {
  display: grid;
  grid-template-columns: minmax(220px, 0.75fr) minmax(320px, 1.35fr);
  gap: 14px;
  align-items: start;
}

.single-message-grid small {
  margin-top: 6px;
  color: #8ea4bf;
  font-weight: 600;
}

.single-message-grid textarea {
  min-height: 104px;
}

.notification-card header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.notification-card h2 {
  margin: 4px 0 0;
  font-size: 20px;
}

.notification-card header b {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 52px;
  min-height: 38px;
  padding: 0 12px;
  border-radius: 999px;
  color: #67e8f9;
  border: 1px solid rgba(34, 211, 238, 0.34);
  background: rgba(8, 47, 73, 0.38);
  box-shadow: 0 14px 34px rgba(34, 211, 238, 0.08);
  letter-spacing: 0;
  transition: border-color 160ms ease, background 160ms ease, color 160ms ease, box-shadow 160ms ease;
}

.notification-card header b.empty-count {
  color: #94a3b8;
  border-color: rgba(148, 163, 184, 0.22);
  background: rgba(15, 23, 42, 0.6);
  box-shadow: none;
}

.notification-card textarea {
  min-height: 130px;
  resize: vertical;
}

.grouped-template-box {
  margin-top: 12px;
  padding: 12px;
  border: 1px solid rgba(34, 211, 238, 0.16);
  border-radius: 16px;
  background:
    linear-gradient(135deg, rgba(8, 47, 73, 0.22), rgba(15, 23, 42, 0.44)),
    rgba(2, 6, 23, 0.24);
}

.grouped-template-box > div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

.grouped-template-box strong {
  color: #e0f2fe;
  font-size: 13px;
  letter-spacing: 0;
}

.grouped-template-box small {
  color: #8ea4bf;
  font-size: 11px;
  font-weight: 700;
}

.grouped-template-box textarea {
  min-height: 112px;
  background: rgba(2, 6, 23, 0.72);
}

.notification-actions {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 10px;
  margin: 10px 0 14px;
}

.notification-actions button {
  border-radius: 999px;
  background: linear-gradient(135deg, #0891b2, #22c55e);
  color: #ecfeff;
  font-weight: 850;
}

.notification-actions button:disabled {
  opacity: 0.62;
  cursor: wait;
}

.notification-actions .template-save-btn {
  border-color: rgba(148, 163, 184, 0.22);
  background: rgba(15, 23, 42, 0.72);
  color: #cbd5e1;
  box-shadow: none;
}

.notification-actions .template-save-btn:hover {
  border-color: rgba(34, 211, 238, 0.34);
  color: #e0f2fe;
  background: rgba(8, 47, 73, 0.28);
}

.notification-actions .notification-test-btn {
  border-color: rgba(250, 204, 21, 0.34);
  background: linear-gradient(135deg, rgba(250, 204, 21, 0.18), rgba(20, 184, 166, 0.2));
  color: #fef3c7;
  box-shadow: 0 12px 26px rgba(250, 204, 21, 0.1);
}

.notification-actions .notification-test-btn:hover {
  border-color: rgba(250, 204, 21, 0.62);
  color: #fff7ed;
}

.notification-list {
  display: grid;
  gap: 8px;
  max-height: 310px;
  overflow: auto;
}

.notification-list.compact {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.notification-list article {
  padding: 10px 12px;
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: 14px;
  background: rgba(2, 6, 23, 0.28);
}

.notification-person {
  align-items: center;
  background:
    linear-gradient(135deg, rgba(15, 23, 42, 0.62), rgba(2, 6, 23, 0.54)),
    rgba(2, 6, 23, 0.28);
  border: 1px solid rgba(148, 163, 184, 0.12);
  border-radius: 16px;
  display: grid;
  gap: 12px;
  grid-template-columns: 28px minmax(0, 1fr);
  min-height: 70px;
  padding: 12px 14px;
  cursor: pointer;
  opacity: 0.62;
  transition: border-color 160ms ease, background 160ms ease, box-shadow 160ms ease, opacity 160ms ease, transform 160ms ease;
}

.notification-person:hover {
  border-color: rgba(34, 211, 238, 0.24);
  opacity: 0.86;
}

.notification-person.is-selected {
  border-color: rgba(34, 197, 94, 0.34);
  background:
    radial-gradient(circle at top left, rgba(34, 197, 94, 0.12), transparent 42%),
    linear-gradient(135deg, rgba(15, 23, 42, 0.78), rgba(2, 6, 23, 0.58));
  box-shadow: inset 3px 0 0 rgba(34, 197, 94, 0.9), 0 18px 40px rgba(2, 6, 23, 0.22);
  opacity: 1;
}

.notification-person input {
  appearance: none;
  -webkit-appearance: none;
  align-self: center;
  background: rgba(2, 6, 23, 0.76);
  border: 1px solid rgba(148, 163, 184, 0.34);
  border-radius: 9px;
  box-shadow: inset 0 0 0 1px rgba(2, 6, 23, 0.4);
  display: grid;
  height: 24px;
  margin: 0;
  place-items: center;
  transition: border-color 160ms ease, background 160ms ease, box-shadow 160ms ease, transform 160ms ease;
  width: 24px;
}

.notification-person input::after {
  content: "";
  width: 11px;
  height: 7px;
  border-left: 3px solid transparent;
  border-bottom: 3px solid transparent;
  opacity: 0;
  transform: rotate(-45deg) scale(0.72);
  transition: opacity 140ms ease, transform 140ms ease, border-color 140ms ease;
}

.notification-person input:checked {
  background: linear-gradient(135deg, #22c55e, #14b8a6);
  border-color: rgba(134, 239, 172, 0.92);
  box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.12), 0 12px 26px rgba(34, 197, 94, 0.2);
}

.notification-person input:checked::after {
  border-left-color: #052e16;
  border-bottom-color: #052e16;
  opacity: 1;
  transform: rotate(-45deg) scale(1);
}

.notification-person > span {
  min-width: 0;
}

.notification-person em {
  color: #cbd5e1;
  display: block;
  font-style: normal;
  margin-top: 3px;
}

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

.notification-list span {
  margin-top: 3px;
  color: #cbd5e1;
}

.notification-list small {
  margin-top: 3px;
  color: #94a3b8;
}

.account-pick-form {
  margin-bottom: 10px;
}

.account-update-picker-form {
  position: relative;
  z-index: 30;
}

.notification-account-picker {
  display: grid;
  gap: 7px;
  position: relative;
}

.notification-account-picker .field-label {
  color: #a9bbd3;
  font-size: 12px;
  font-weight: 850;
}

.notification-account-searchbox {
  align-items: center;
  background: rgba(2, 6, 23, 0.62);
  border: 1px solid rgba(56, 189, 248, 0.24);
  border-radius: 12px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 24px;
  min-height: 42px;
  padding: 0 9px 0 0;
  transition: border-color 140ms ease, box-shadow 140ms ease, background 140ms ease;
}

.notification-account-searchbox:focus-within {
  background: rgba(2, 6, 23, 0.84);
  border-color: rgba(34, 211, 238, 0.68);
  box-shadow: 0 0 0 3px rgba(34, 211, 238, 0.08);
}

.notification-account-searchbox input {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  color: #f8fafc;
  font-weight: 850;
  min-height: 40px;
}

.notification-account-searchbox span {
  color: #67e8f9;
  font-size: 12px;
  font-weight: 950;
  text-align: center;
}

.notification-account-results {
  background:
    radial-gradient(circle at top left, rgba(34, 211, 238, 0.12), transparent 34%),
    rgba(15, 23, 42, 0.98);
  border: 1px solid rgba(56, 189, 248, 0.32);
  border-radius: 16px;
  box-shadow: 0 26px 70px rgba(0, 0, 0, 0.45);
  display: none;
  gap: 6px;
  left: 0;
  max-height: min(390px, 56vh);
  overflow: auto;
  padding: 8px;
  position: absolute;
  right: 0;
  top: calc(100% + 6px);
  z-index: 220;
}

.notification-account-results.open {
  display: grid;
}

.notification-account-option[hidden] {
  display: none !important;
}

.notification-account-results.empty::after {
  color: #94a3b8;
  content: "Sin resultados para esta busqueda";
  display: block;
  font-size: 12px;
  font-weight: 800;
  padding: 14px;
  text-align: center;
}

.notification-account-option {
  align-items: center;
  background: rgba(2, 6, 23, 0.34);
  border: 1px solid rgba(148, 163, 184, 0.12);
  border-radius: 12px;
  color: #e5edf8;
  display: grid;
  gap: 12px;
  grid-template-columns: minmax(0, 1fr) auto;
  min-height: 52px;
  padding: 10px 12px;
  text-align: left;
  width: 100%;
}

.notification-account-option:hover,
.notification-account-option.selected {
  background: linear-gradient(90deg, rgba(8, 145, 178, 0.24), rgba(15, 23, 42, 0.86));
  border-color: rgba(34, 211, 238, 0.42);
}

.notification-account-option strong,
.notification-account-option small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.notification-account-option strong {
  color: #f8fafc;
  font-size: 13px;
  font-weight: 950;
}

.notification-account-option small {
  color: #9fb3ca;
  font-size: 12px;
  font-weight: 750;
  margin-top: 3px;
}

.notification-account-option b {
  background: rgba(34, 211, 238, 0.1);
  border: 1px solid rgba(34, 211, 238, 0.22);
  border-radius: 999px;
  color: #67e8f9;
  font-size: 11px;
  font-weight: 950;
  padding: 6px 9px;
  white-space: nowrap;
}

.notification-account-meta {
  color: #8ea4bf;
  font-size: 11px;
  font-weight: 750;
}

.otp-filter-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(220px, 1fr));
  gap: 12px;
  margin-bottom: 14px;
}

.otp-filter-form label {
  min-width: 0;
}

.mass-confirm-backdrop {
  position: fixed;
  inset: 0;
  z-index: 3000;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(2, 6, 23, 0.62);
  backdrop-filter: blur(10px);
  opacity: 0;
  transition: opacity 160ms ease;
}

.mass-confirm-backdrop[hidden] {
  display: none !important;
  pointer-events: none !important;
}

.mass-confirm-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}

.mass-confirm-modal {
  width: min(520px, 100%);
  padding: 22px;
  border: 1px solid rgba(56, 189, 248, 0.24);
  border-radius: 20px;
  background: linear-gradient(145deg, rgba(15, 23, 42, 0.98), rgba(2, 6, 23, 0.98));
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.42);
  transform: translateY(10px) scale(0.98);
  transition: transform 160ms ease;
}

.mass-confirm-backdrop.open .mass-confirm-modal {
  transform: translateY(0) scale(1);
}

.mass-confirm-modal > span {
  color: #67e8f9;
  font-size: 12px;
  font-weight: 850;
  text-transform: uppercase;
}

.mass-confirm-modal h2 {
  margin: 8px 0;
  font-size: 24px;
}

.mass-confirm-modal p {
  color: #cbd5e1;
  line-height: 1.45;
}

.mass-confirm-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 18px;
}

.mass-confirm-actions button {
  border-radius: 999px;
  font-weight: 850;
}

.whatsapp-mode-cards form {
  margin-top: 10px;
}

.whatsapp-mode-cards form button {
  width: 100%;
  border-radius: 999px;
  border-color: rgba(251, 113, 133, 0.3);
  color: #fda4af;
  background: rgba(76, 5, 25, 0.18);
}

.whatsapp-mode-cards form button.clear-sent {
  border-color: rgba(148, 163, 184, 0.26);
  color: #cbd5e1;
  background: rgba(15, 23, 42, 0.42);
}

.message-template-table table {
  min-width: 1320px;
  table-layout: fixed;
}

.message-template-table td {
  vertical-align: middle;
}

.message-template-table input,
.message-template-table select,
.message-template-table textarea {
  width: 100%;
  margin: 0;
  border-radius: 10px;
  background: rgba(2, 6, 23, 0.44);
}

.message-template-table textarea {
  min-height: 88px;
  resize: vertical;
  line-height: 1.35;
}

.message-template-table td:nth-child(1) {
  width: 210px;
}

.message-template-table td:nth-child(2) {
  width: 150px;
}

.message-template-table th:nth-child(3),
.message-template-table td:nth-child(3) {
  width: auto;
}

.message-template-table td:nth-child(4) {
  width: 142px;
}

.message-template-table td:nth-child(5) {
  width: 108px;
}

.template-active-toggle {
  --toggle-bg: rgba(30, 41, 59, 0.7);
  --toggle-border: rgba(148, 163, 184, 0.2);
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-width: 118px;
  padding: 7px 11px 7px 7px;
  border: 1px solid var(--toggle-border);
  border-radius: 999px;
  color: #94a3b8;
  background: var(--toggle-bg);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
  cursor: pointer;
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0;
  user-select: none;
  transition: border-color 160ms ease, color 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.template-active-toggle:hover {
  border-color: rgba(148, 163, 184, 0.36);
  background: rgba(30, 41, 59, 0.88);
}

.template-active-toggle input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.template-switch {
  position: relative;
  width: 34px;
  height: 20px;
  flex: 0 0 auto;
  border-radius: 999px;
  background: rgba(71, 85, 105, 0.58);
  box-shadow: inset 0 0 0 1px rgba(148, 163, 184, 0.2);
  transition: background 160ms ease, box-shadow 160ms ease;
}

.template-switch::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 14px;
  height: 14px;
  border-radius: 999px;
  background: #cbd5e1;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.25);
  transition: transform 160ms ease, background 160ms ease;
}

.template-state-text {
  min-width: 48px;
  text-align: left;
}

.template-active-toggle.is-active {
  --toggle-bg: rgba(20, 83, 45, 0.16);
  --toggle-border: rgba(34, 197, 94, 0.36);
  color: #86efac;
  box-shadow: 0 0 0 1px rgba(34, 197, 94, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.template-active-toggle.is-active .template-switch {
  background: linear-gradient(135deg, #059669, #22c55e);
  box-shadow: 0 0 18px rgba(34, 197, 94, 0.16), inset 0 0 0 1px rgba(187, 247, 208, 0.22);
}

.template-active-toggle.is-active .template-switch::after {
  transform: translateX(14px);
  background: #ecfdf5;
}

.message-template-table td button[type="submit"] {
  min-width: 88px;
  border-radius: 999px;
  background: linear-gradient(135deg, #f59e0b, #fbbf24);
  color: #111827;
  font-weight: 900;
  box-shadow: 0 10px 24px rgba(245, 158, 11, 0.16);
}

.mobile-sale-shell {
  max-width: 680px;
  margin: 0 auto;
  padding: 10px 10px 120px;
}

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

.mobile-sale-head span,
.mobile-step-title span {
  color: #67e8f9;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.mobile-sale-head h1 {
  margin: 4px 0;
  font-size: 30px;
}

.mobile-sale-head p {
  margin: 0;
  color: #a8b6c8;
  line-height: 1.35;
}

.mobile-base-link,
.mobile-ghost-btn {
  border: 1px solid rgba(34, 211, 238, 0.28);
  border-radius: 999px;
  color: #dffcff;
  background: rgba(8, 47, 73, 0.28);
  font-weight: 850;
  padding: 10px 13px;
  text-decoration: none;
  white-space: nowrap;
}

.mobile-saved-alert {
  margin-bottom: 12px;
  padding: 12px 14px;
  border: 1px solid rgba(34, 197, 94, 0.38);
  border-radius: 16px;
  background: rgba(20, 83, 45, 0.22);
  color: #bbf7d0;
  font-weight: 900;
}

.sale-error-alert,
.mobile-saved-alert.error {
  margin-bottom: 12px;
  padding: 12px 14px;
  border: 1px solid rgba(251, 113, 133, 0.42);
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(127, 29, 29, 0.24), rgba(15, 23, 42, 0.84));
  box-shadow: 0 18px 42px rgba(127, 29, 29, 0.16);
  color: #fecdd3;
  font-weight: 850;
}

.mobile-sale-form {
  display: grid;
  gap: 14px;
}

.mobile-step {
  padding: 16px;
  border: 1px solid rgba(56, 189, 248, 0.18);
  border-radius: 20px;
  background: rgba(15, 23, 42, 0.82);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.18);
}

.mobile-step-title {
  align-items: center;
  display: flex;
  gap: 12px;
  margin-bottom: 12px;
}

.mobile-step-title b {
  align-items: center;
  border: 1px solid rgba(34, 211, 238, 0.34);
  border-radius: 999px;
  color: #67e8f9;
  display: inline-flex;
  height: 36px;
  justify-content: center;
  width: 36px;
  background: rgba(8, 47, 73, 0.28);
}

.mobile-step-title h2 {
  margin: 0 0 2px;
  font-size: 20px;
}

.mobile-step label {
  color: #cbd5e1;
  display: grid;
  gap: 7px;
  font-size: 13px;
  font-weight: 820;
}

.mobile-step input {
  width: 100%;
  min-height: 48px;
  border-radius: 14px;
  border: 1px solid rgba(125, 211, 252, 0.3);
  background: rgba(2, 6, 23, 0.72);
  color: #f8fafc;
  font-size: 16px;
  font-weight: 760;
  padding: 12px 13px;
}

.mobile-result-list {
  display: grid;
  gap: 8px;
  margin: 10px 0;
  max-height: 300px;
  overflow: auto;
}

.mobile-result-list button,
.mobile-inline-client button {
  width: 100%;
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 16px;
  background: rgba(2, 6, 23, 0.38);
  color: #f8fafc;
  padding: 12px;
  text-align: left;
}

.mobile-result-list strong,
.mobile-result-list span,
.mobile-result-list small {
  display: block;
}

.mobile-result-list span,
.mobile-result-list small {
  margin-top: 3px;
  color: #94a3b8;
}

.mobile-empty {
  padding: 10px;
  color: #94a3b8;
}

.mobile-inline-client,
.mobile-account-card {
  display: grid;
  gap: 10px;
  margin-top: 10px;
}

.mobile-account-card {
  padding: 13px;
  border: 1px solid rgba(34, 197, 94, 0.28);
  border-radius: 16px;
  background: rgba(20, 83, 45, 0.12);
}

.mobile-account-card strong,
.mobile-account-card span,
.mobile-account-card small {
  display: block;
}

.mobile-account-card span,
.mobile-account-card small {
  color: #a8b6c8;
  overflow-wrap: anywhere;
}

.mobile-two,
.mobile-pay-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.mobile-pay-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-bottom: 12px;
}

.mobile-pay-grid button {
  min-height: 46px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.24);
  color: #cbd5e1;
  background: rgba(2, 6, 23, 0.38);
  font-weight: 900;
}

.mobile-pay-grid button.active {
  border-color: rgba(34, 211, 238, 0.62);
  color: #ecfeff;
  background: rgba(8, 145, 178, 0.22);
  box-shadow: 0 0 0 3px rgba(34, 211, 238, 0.08);
}

.mobile-sticky-save {
  position: sticky;
  bottom: 10px;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px;
  border: 1px solid rgba(34, 211, 238, 0.22);
  border-radius: 20px;
  background: rgba(2, 6, 23, 0.9);
  backdrop-filter: blur(14px);
  box-shadow: 0 20px 52px rgba(0, 0, 0, 0.42);
}

.mobile-sticky-save span,
.mobile-sticky-save strong {
  display: block;
}

.mobile-sticky-save span {
  max-width: 230px;
  color: #94a3b8;
  font-size: 12px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mobile-sticky-save button {
  border-radius: 999px;
  background: linear-gradient(135deg, #0891b2, #22c55e);
  color: #ecfeff;
  font-weight: 950;
  min-height: 48px;
  padding: 0 18px;
}

@media (max-width: 640px) {
  .mobile-sale-shell {
    padding-inline: 6px;
  }
  .mobile-sale-head {
    align-items: flex-start;
  }
  .mobile-sale-head h1 {
    font-size: 26px;
  }
  .mobile-two {
    grid-template-columns: 1fr;
  }
  .mobile-pay-grid {
    gap: 7px;
  }
  .mobile-sticky-save {
    left: 8px;
    right: 8px;
  }
}

.sale-editor .legacy-editor-top {
  align-items: center !important;
  gap: 10px !important;
}

.legacy-editor-actions {
  align-items: center;
  display: inline-flex;
  gap: 8px;
}

.legacy-editor-actions form {
  display: contents;
}

.sale-delete-button {
  border-color: rgba(251, 113, 133, 0.38) !important;
  border-radius: 999px !important;
  color: #fda4af !important;
  font-size: 12px !important;
  font-weight: 850 !important;
  min-height: 34px !important;
  padding: 7px 12px !important;
  background: rgba(76, 5, 25, 0.16) !important;
}

.sale-delete-button:hover {
  background: rgba(127, 29, 29, 0.26) !important;
  border-color: rgba(251, 113, 133, 0.62) !important;
}

.sale-editor .legacy-segments {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  width: 100% !important;
}

.sale-editor .legacy-segments button {
  justify-content: center !important;
  min-width: 0 !important;
  overflow: hidden !important;
  padding-inline: 10px !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
  width: 100% !important;
}

.sale-editor .legacy-whatsapp {
  align-items: start !important;
}

.sale-editor .legacy-whatsapp pre {
  color: #e5edf7 !important;
  font-family: "Inter", "Segoe UI", Arial, sans-serif !important;
  font-size: 14px !important;
  font-weight: 720 !important;
  letter-spacing: 0 !important;
  line-height: 1.42 !important;
  overflow-wrap: anywhere !important;
  white-space: pre-wrap !important;
}

@media (max-width: 900px) {
  .notifications-hero,
  .notification-grid,
  .notification-list.compact,
  .single-message-grid {
    grid-template-columns: 1fr;
  }
  .notifications-hero {
    display: grid;
  }
}

.logout-form {
  margin: 0;
}

.logout-form .avatar {
  border: 0;
  cursor: pointer;
  font: inherit;
}

.login-page {
  align-items: center;
  background:
    radial-gradient(circle at 20% 10%, rgba(0, 220, 255, 0.16), transparent 28rem),
    radial-gradient(circle at 90% 0%, rgba(255, 178, 36, 0.12), transparent 22rem),
    #050b16;
  color: #f8fbff;
  display: flex;
  min-height: 100vh;
  min-height: 100dvh;
  padding: max(16px, env(safe-area-inset-top)) max(14px, env(safe-area-inset-right)) max(16px, env(safe-area-inset-bottom)) max(14px, env(safe-area-inset-left));
}

.login-shell {
  display: grid;
  min-height: calc(100vh - 32px);
  min-height: calc(100dvh - 32px);
  place-items: center;
  width: 100%;
}

.login-card {
  background: rgba(12, 21, 38, 0.92);
  border: 1px solid rgba(86, 151, 203, 0.32);
  border-radius: 24px;
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.42), 0 0 44px rgba(10, 211, 255, 0.08);
  max-width: 430px;
  padding: 28px;
  width: min(calc(100vw - 28px), 430px);
}

.login-brand {
  align-items: center;
  display: flex;
  gap: 16px;
  margin-bottom: 26px;
}

.login-brand img {
  border-radius: 16px;
  height: 64px;
  object-fit: cover;
  width: 64px;
}

.login-brand p {
  color: #8fb5d8;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  margin: 0 0 4px;
  text-transform: uppercase;
}

.login-brand h1 {
  font-size: 26px;
  margin: 0;
}

.login-form {
  display: grid;
  gap: 16px;
}

.login-form label {
  color: #b8c6d8;
  display: grid;
  font-size: 13px;
  font-weight: 800;
  gap: 8px;
}

.login-form input {
  background: #050b1a;
  border: 1px solid rgba(74, 135, 188, 0.62);
  border-radius: 13px;
  color: #f8fbff;
  font: inherit;
  font-size: 15px;
  font-weight: 760;
  min-height: 46px;
  outline: none;
  padding: 0 14px;
}

.login-form input:focus {
  border-color: #10d7ff;
  box-shadow: 0 0 0 3px rgba(16, 215, 255, 0.15);
}

.login-form button {
  background: linear-gradient(135deg, #13d6c5, #2ecb71);
  border: 0;
  border-radius: 999px;
  color: #021018;
  cursor: pointer;
  font: inherit;
  font-weight: 950;
  min-height: 48px;
  margin-top: 6px;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  transition: filter 140ms ease, opacity 140ms ease, transform 140ms ease;
}

.login-form button:active {
  transform: translateY(1px);
}

.login-form button:disabled {
  cursor: wait;
  filter: saturate(0.7);
  opacity: 0.78;
}

.login-error {
  background: rgba(255, 82, 116, 0.12);
  border: 1px solid rgba(255, 82, 116, 0.38);
  border-radius: 12px;
  color: #ff9caf;
  font-size: 13px;
  font-weight: 850;
  padding: 10px 12px;
}

/* Final Base editor polish: keep row switching snappy even with older overrides above. */
.sale-editor {
  animation: saleEditorIn 150ms cubic-bezier(0.2, 0.8, 0.2, 1) both !important;
  overscroll-behavior: contain;
  scroll-behavior: auto;
  transform-origin: top right;
  will-change: opacity, transform;
}
/* Papelera and audit */
.trash-hero {
  align-items: center;
  background: linear-gradient(135deg, rgba(8, 47, 73, 0.8), rgba(15, 23, 42, 0.92));
  border: 1px solid rgba(34, 211, 238, 0.22);
  border-radius: 18px;
  display: flex;
  justify-content: space-between;
  margin: 10px 0 14px;
  padding: 22px 24px;
}

.trash-hero span,
.trash-card-head span {
  color: #93c5fd;
  display: block;
  font-size: 12px;
  font-weight: 850;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.trash-hero h1,
.trash-card h2 {
  color: #f8fafc;
  margin: 4px 0;
}

.trash-hero p {
  color: #b6c6db;
  margin: 0;
  max-width: 720px;
}

.trash-hero .trash-warning {
  background: rgba(251, 113, 133, 0.12);
  border: 1px solid rgba(251, 113, 133, 0.35);
  border-radius: 12px;
  color: #fecdd3;
  font-weight: 750;
  margin-top: 12px;
  padding: 10px 12px;
}

.trash-counter {
  align-items: center;
  background: rgba(2, 6, 23, 0.55);
  border: 1px solid rgba(34, 211, 238, 0.28);
  border-radius: 18px;
  display: grid;
  min-width: 116px;
  padding: 16px;
  place-items: center;
}

.trash-counter b {
  color: #22d3ee;
  font-size: 34px;
  line-height: 1;
}

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

.trash-toolbar {
  display: flex;
  justify-content: flex-end;
  margin: 0 0 12px;
}

.trash-clear-btn {
  background: linear-gradient(135deg, #ef4444, #f97316);
  border: 0;
  border-radius: 999px;
  color: #fff7ed;
  cursor: pointer;
  font-weight: 850;
  padding: 11px 18px;
  box-shadow: 0 10px 24px rgba(239, 68, 68, 0.24);
}

.trash-clear-btn:hover {
  filter: brightness(1.05);
}

.trash-card {
  background: rgba(15, 23, 42, 0.78);
  border: 1px solid rgba(51, 65, 85, 0.9);
  border-radius: 18px;
  overflow: hidden;
}

.trash-card-head {
  align-items: center;
  background: rgba(2, 6, 23, 0.36);
  border-bottom: 1px solid rgba(51, 65, 85, 0.82);
  display: flex;
  justify-content: space-between;
  padding: 16px 18px;
}

.trash-card-head b {
  align-items: center;
  background: rgba(8, 145, 178, 0.16);
  border: 1px solid rgba(34, 211, 238, 0.38);
  border-radius: 999px;
  color: #67e8f9;
  display: inline-flex;
  height: 34px;
  justify-content: center;
  min-width: 34px;
}

.trash-list {
  display: grid;
  gap: 10px;
  max-height: 460px;
  overflow: auto;
  padding: 14px;
}

.trash-item {
  align-items: center;
  background: rgba(2, 6, 23, 0.42);
  border: 1px solid rgba(51, 65, 85, 0.75);
  border-radius: 14px;
  display: flex;
  gap: 12px;
  justify-content: space-between;
  padding: 12px 14px;
}

.trash-item strong,
.trash-item span,
.trash-item small {
  display: block;
}

.trash-item span {
  color: #cbd5e1;
}

.trash-item small {
  color: #8494aa;
}

.trash-item button {
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 850;
  padding: 9px 14px;
}

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

.trash-item .trash-restore {
  background: linear-gradient(135deg, #0891b2, #14b8a6);
  color: #ecfeff;
}

.trash-item .trash-destroy {
  background: rgba(244, 63, 94, 0.13);
  border: 1px solid rgba(244, 63, 94, 0.48);
  color: #fda4af;
}

.trash-item .trash-destroy:hover {
  background: rgba(244, 63, 94, 0.22);
  color: #ffe4e6;
}

.audit-card {
  margin-top: 14px;
}

.audit-table {
  border: 0;
  border-radius: 0;
  max-height: 430px;
}

.audit-table table {
  min-width: 980px;
}

.audit-pill {
  border-radius: 999px;
  display: inline-flex;
  font-weight: 850;
  padding: 5px 9px;
}

.audit-pill.trash {
  background: rgba(251, 113, 133, 0.15);
  color: #fda4af;
}

.audit-pill.restore {
  background: rgba(34, 197, 94, 0.14);
  color: #86efac;
}

.audit-pill.destroy {
  background: rgba(244, 63, 94, 0.14);
  color: #fda4af;
}

.audit-agent {
  color: #94a3b8;
  max-width: 360px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@media (max-width: 900px) {
  .trash-grid,
  .trash-hero {
    grid-template-columns: 1fr;
  }
  .trash-hero {
    align-items: stretch;
    display: grid;
  }
}
.sale-editor .legacy-action.otp b {
  border-color: #22d3ee;
  color: #67e8f9;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0;
}

.bezprime-sync-state {
  display: grid;
  gap: 3px;
  margin-top: 12px;
  padding: 10px 12px;
  border: 1px solid #1f3b52;
  border-radius: 8px;
  background: #071423;
  color: #9fb1c5;
  font-size: 0.76rem;
  line-height: 1.35;
}

.bezprime-sync-state strong {
  color: #d9f7ff;
}

.bezprime-sync-state.synced {
  border-color: #0f6f55;
}

.bezprime-sync-state.failed,
.bezprime-sync-state.pending {
  border-color: #7f3349;
}

/* Security center */
.security-lock,
.security-hero,
.security-card,
.security-stats article {
  background: linear-gradient(145deg, rgba(15, 23, 42, 0.94), rgba(8, 20, 38, 0.92));
  border: 1px solid rgba(34, 211, 238, 0.22);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.24);
}

.security-lock {
  align-items: center;
  border-radius: 18px;
  display: grid;
  gap: 26px;
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
  margin: 22px auto;
  max-width: 1080px;
  padding: 28px;
}

.security-lock small,
.security-hero small,
.security-card small {
  color: #7dd3fc;
  display: block;
  font-size: 0.75rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  margin-bottom: 8px;
}

.security-lock h1,
.security-hero h1 {
  color: #f8fafc;
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  margin: 0 0 10px;
}

.security-lock p,
.security-hero p,
.danger-zone p {
  color: #bfd0e5;
  line-height: 1.55;
  margin: 0;
}

.security-note {
  background: rgba(8, 145, 178, 0.12);
  border: 1px solid rgba(34, 211, 238, 0.22);
  border-radius: 14px;
  color: #bae6fd;
  margin-top: 18px;
  padding: 13px 15px;
}

.security-unlock,
.security-form {
  display: grid;
  gap: 10px;
}

.security-unlock {
  background: rgba(2, 6, 23, 0.42);
  border: 1px solid rgba(51, 65, 85, 0.72);
  border-radius: 16px;
  padding: 18px;
}

.security-unlock label,
.security-form label {
  color: #94a3b8;
  font-weight: 800;
}

.security-unlock input,
.security-form input {
  background: #020817;
  border: 1px solid rgba(56, 189, 248, 0.38);
  border-radius: 10px;
  color: #f8fafc;
  font-weight: 800;
  min-height: 42px;
  padding: 0 12px;
}

.security-unlock button,
.security-form button {
  background: linear-gradient(135deg, #06b6d4, #22c55e);
  border: 0;
  border-radius: 999px;
  color: #ecfeff;
  cursor: pointer;
  font-weight: 900;
  min-height: 42px;
  padding: 0 18px;
}

.security-form button.danger {
  background: linear-gradient(135deg, #f43f5e, #f97316);
}

.security-error,
.security-alert.danger {
  color: #fecdd3;
}

.security-hero {
  align-items: center;
  border-radius: 18px;
  display: flex;
  justify-content: space-between;
  margin: 14px 0;
  padding: 22px;
}

.security-hero-actions {
  align-items: flex-end;
  color: #94a3b8;
  display: grid;
  gap: 8px;
  justify-items: end;
}

.security-live {
  background: rgba(34, 197, 94, 0.13);
  border: 1px solid rgba(34, 197, 94, 0.48);
  border-radius: 999px;
  color: #86efac;
  font-weight: 900;
  padding: 8px 14px;
}

.security-alert {
  border-radius: 14px;
  font-weight: 900;
  margin: 10px 0;
  padding: 12px 14px;
}

.security-alert.success {
  background: rgba(34, 197, 94, 0.12);
  border: 1px solid rgba(34, 197, 94, 0.38);
  color: #86efac;
}

.security-alert.danger {
  background: rgba(244, 63, 94, 0.12);
  border: 1px solid rgba(244, 63, 94, 0.38);
}

.security-stats,
.security-grid {
  display: grid;
  gap: 14px;
}

.security-stats {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 14px 0;
}

.security-stats article {
  border-radius: 16px;
  padding: 18px;
}

.security-stats span {
  color: #94a3b8;
  display: block;
  font-weight: 850;
}

.security-stats b {
  color: #22d3ee;
  display: block;
  font-size: 2rem;
  margin-top: 6px;
}

.security-stats .security-date {
  color: #e2e8f0;
  font-size: 0.95rem;
  line-height: 1.35;
}

.security-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 14px 0;
}

.security-card {
  border-radius: 18px;
  overflow: hidden;
  padding: 18px;
}

.security-card header {
  align-items: center;
  display: flex;
  justify-content: space-between;
  margin-bottom: 14px;
}

.security-card h2 {
  color: #f8fafc;
  font-size: 1.25rem;
  margin: 0;
}

.security-ip-list {
  display: grid;
  gap: 9px;
}

.security-ip-row {
  align-items: center;
  background: rgba(2, 6, 23, 0.42);
  border: 1px solid rgba(51, 65, 85, 0.75);
  border-radius: 12px;
  display: flex;
  justify-content: space-between;
  padding: 11px 12px;
}

.security-ip-row b,
.security-ip-row span {
  display: block;
}

.security-ip-row span,
.security-empty {
  color: #94a3b8;
}

.security-ip-row em {
  color: #86efac;
  font-style: normal;
  font-weight: 900;
}

.security-ip-row em.danger {
  color: #fb7185;
}

.security-table {
  max-height: 460px;
}

.security-table table {
  min-width: 1120px;
}

.security-pill {
  background: rgba(34, 211, 238, 0.12);
  border: 1px solid rgba(34, 211, 238, 0.32);
  border-radius: 999px;
  color: #67e8f9;
  display: inline-flex;
  font-weight: 900;
  padding: 5px 9px;
}

.security-agent {
  color: #94a3b8;
  max-width: 340px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sidebar {
  max-height: calc(100vh - 42px);
  overflow-y: auto;
  scrollbar-width: thin;
}

.page-crumb {
  backdrop-filter: blur(14px);
  background: linear-gradient(90deg, rgba(8, 47, 73, 0.92), rgba(15, 23, 42, 0.92));
  position: sticky;
  top: 0;
  z-index: 20;
}

@media (max-width: 760px) {
  body {
    overflow-x: auto;
  }

  .topbar,
  .layout {
    min-width: 720px;
  }

  .content {
    overflow: visible;
  }

  .page-crumb {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
    min-height: auto;
    padding: 8px 10px 10px;
  }

  .base-top-actions {
    display: flex;
    gap: 8px;
    margin-left: 0 !important;
    max-width: calc(100vw - 82px);
    overflow-x: auto;
    padding: 2px 0 4px;
    width: calc(100vw - 82px);
  }

  .base-top-actions .button,
  .base-top-actions button,
  .base-top-actions a {
    min-height: 34px !important;
    white-space: nowrap;
  }

  .base-table {
    max-height: calc(100dvh - 178px) !important;
    max-width: calc(100vw - 72px) !important;
  }

  .security-lock,
  .security-grid,
  .security-stats {
    grid-template-columns: 1fr;
  }

  .security-hero {
    align-items: stretch;
    flex-direction: column;
    gap: 14px;
  }

  .security-hero-actions {
    align-items: start;
    justify-items: start;
  }

  .security-card header,
  .security-ip-row {
    align-items: stretch;
    flex-direction: column;
    gap: 8px;
  }
}

/* Final scroll override. Keep this at the end so older layout rules cannot trap scroll. */
body {
  overflow-x: auto !important;
  overflow-y: auto !important;
}

.layout {
  height: auto !important;
  min-height: calc(100dvh - 42px) !important;
  min-width: 0 !important;
}

.content {
  min-height: 0 !important;
  min-width: 0 !important;
  overflow: visible !important;
}

.table-wrap,
.base-table,
.accounts-table,
.compact-base,
.related-table,
.combo-list,
.client-results,
.account-results {
  -webkit-overflow-scrolling: touch !important;
  overflow: auto !important;
  overscroll-behavior: contain !important;
  touch-action: pan-x pan-y !important;
}

.accounts-table {
  max-height: none !important;
}

.accounts-table table {
  min-width: 1180px !important;
}

.account-editor,
.sale-editor {
  -webkit-overflow-scrolling: touch !important;
  max-height: calc(100dvh - 78px) !important;
  overflow: auto !important;
  overscroll-behavior: contain !important;
}

.combo-list,
.client-results,
.account-results {
  max-height: min(420px, 58dvh) !important;
}

@media (max-width: 760px) {
  .topbar,
  .layout {
    min-width: 720px !important;
  }

  .base-top-actions {
    display: flex !important;
    flex-wrap: nowrap !important;
    max-width: calc(100vw - 82px) !important;
    overflow-x: auto !important;
    scrollbar-width: none;
    width: calc(100vw - 82px) !important;
  }

  .base-top-actions::-webkit-scrollbar {
    display: none;
  }

  .base-table,
  .accounts-table {
    max-height: none !important;
    max-width: calc(100vw - 72px) !important;
  }

  .account-editor,
  .sale-editor {
    max-height: none !important;
  }
}

/* Deployment polish: OTP config + mobile action/scroll safety. Keep after overrides. */
.otp-config-panel {
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.82), rgba(8, 47, 73, 0.36));
  border: 1px solid rgba(34, 211, 238, 0.24);
  border-radius: 18px;
  display: grid;
  gap: 14px;
  margin: 14px 0;
  padding: 16px;
}

.otp-config-head {
  align-items: center;
  display: flex;
  gap: 12px;
  justify-content: space-between;
}

.otp-config-head strong {
  color: #f8fafc;
  display: block;
  font-size: 1rem;
  font-weight: 900;
}

.otp-config-head small,
.otp-preview-box span {
  color: #94a3b8;
  display: block;
  font-size: 0.78rem;
  font-weight: 800;
}

.otp-settings-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: minmax(150px, 0.7fr) minmax(260px, 1.4fr) minmax(170px, 0.8fr);
}

.otp-settings-grid label,
.otp-toggle {
  min-width: 0;
}

.otp-toggle {
  align-items: center;
  background: rgba(2, 6, 23, 0.38);
  border: 1px solid rgba(56, 189, 248, 0.22);
  border-radius: 13px;
  display: flex !important;
  gap: 10px;
  min-height: 42px;
  padding: 10px 12px;
}

.otp-toggle input {
  accent-color: #22d3ee;
  height: 18px;
  width: 18px;
}

.otp-preview-box {
  background: rgba(2, 6, 23, 0.55);
  border: 1px solid rgba(56, 189, 248, 0.2);
  border-radius: 14px;
  padding: 12px;
}

.otp-preview-box pre {
  color: #dbeafe;
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 800;
  line-height: 1.45;
  margin: 7px 0 0;
  white-space: pre-wrap;
  word-break: break-word;
}

.renew-modal-backdrop,
.whatsapp-modal-backdrop {
  -webkit-overflow-scrolling: touch !important;
  overflow: auto !important;
  overscroll-behavior: contain !important;
  touch-action: pan-x pan-y !important;
}

.renew-modal,
.whatsapp-modal {
  -webkit-overflow-scrolling: touch !important;
  max-height: calc(100dvh - 22px) !important;
  overflow: auto !important;
}

@media (max-width: 760px) {
  .page-crumb {
    gap: 8px !important;
    overflow: visible !important;
  }

  .base-top-actions,
  .top-actions,
  .page-actions {
    flex-wrap: wrap !important;
    gap: 8px !important;
    max-width: calc(100vw - 92px) !important;
    overflow: visible !important;
    width: calc(100vw - 92px) !important;
  }

  .base-top-actions .button,
  .base-top-actions button,
  .base-top-actions a,
  .top-actions .button,
  .top-actions button,
  .page-actions .button,
  .page-actions button {
    flex: 1 1 calc(50% - 8px) !important;
    justify-content: center !important;
    min-height: 38px !important;
  }

  .otp-settings-grid {
    grid-template-columns: 1fr !important;
  }

  .otp-config-head,
  .notification-actions {
    align-items: stretch !important;
    flex-direction: column !important;
  }

  .renew-modal-backdrop,
  .whatsapp-modal-backdrop {
    align-items: flex-start !important;
    padding: 10px !important;
  }
}

.bad {
  color: #fb7185 !important;
}

.report-summary-grid {
  grid-template-columns: repeat(8, minmax(135px, 1fr));
}

.net-profit-card {
  background:
    linear-gradient(145deg, rgba(34, 197, 94, 0.14), rgba(14, 165, 233, 0.08)),
    rgba(2, 6, 23, 0.72);
  border-color: rgba(34, 197, 94, 0.34);
}

.report-explain-card {
  align-items: center;
  background: rgba(7, 13, 29, 0.72);
  border: 1px solid rgba(125, 211, 252, 0.18);
  border-radius: 14px;
  color: rgba(226, 232, 240, 0.84);
  display: flex;
  gap: 12px;
  margin: 10px 0;
  padding: 12px 14px;
}

.report-explain-card strong {
  color: #67e8f9;
  flex: 0 0 auto;
  font-weight: 900;
}

.reports-dual-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  margin: 12px 0;
}

.report-card {
  min-height: 360px;
  overflow: hidden;
}

.expense-form {
  display: grid;
  gap: 10px;
  grid-template-columns: 150px 190px 140px minmax(220px, 1fr) auto;
  padding: 14px;
}

.expense-form label {
  color: rgba(203, 213, 225, 0.78);
  display: grid;
  font-size: 12px;
  font-weight: 800;
  gap: 6px;
}

.expense-form input,
.expense-form select {
  background: rgba(2, 6, 23, 0.72);
  border: 1px solid rgba(56, 189, 248, 0.32);
  border-radius: 10px;
  color: #f8fafc;
  min-height: 38px;
  padding: 0 10px;
}

.expense-form button,
.mini-success,
.mini-danger {
  align-self: end;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  font-weight: 900;
  min-height: 36px;
  padding: 0 16px;
}

.expense-form button,
.mini-success {
  background: linear-gradient(135deg, #14b8a6, #22c55e);
  color: #f8fafc;
}

.mini-danger {
  background: rgba(244, 63, 94, 0.12);
  border-color: rgba(244, 63, 94, 0.46);
  color: #fda4af;
}

.report-inner-table {
  max-height: 360px;
  overflow: auto;
}

@media (max-width: 1400px) {
  .report-summary-grid {
    grid-template-columns: repeat(4, minmax(150px, 1fr));
  }

  .expense-form {
    grid-template-columns: repeat(2, minmax(180px, 1fr));
  }
}

@media (max-width: 900px) {
  .report-summary-grid,
  .reports-dual-grid {
    grid-template-columns: 1fr;
  }

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

.finance-filter {
  border-color: rgba(56, 189, 248, 0.18);
  margin-bottom: 12px;
}

.finance-hero {
  align-items: stretch;
  background:
    radial-gradient(circle at 15% 0%, rgba(20, 184, 166, 0.18), transparent 36%),
    linear-gradient(135deg, rgba(8, 20, 36, 0.96), rgba(14, 20, 44, 0.94));
  border: 1px solid rgba(56, 189, 248, 0.2);
  border-radius: 18px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.28);
  display: grid;
  gap: 18px;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 360px);
  margin: 12px 0;
  padding: 22px;
}

.finance-hero h1 {
  color: #f8fafc;
  font-size: clamp(26px, 3vw, 42px);
  letter-spacing: 0;
  line-height: 1.05;
  margin: 8px 0 10px;
}

.finance-hero p,
.report-note {
  color: rgba(203, 213, 225, 0.78);
  font-size: 13px;
  line-height: 1.55;
  margin: 0;
}

.finance-kicker {
  color: #67e8f9;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.finance-net {
  align-content: center;
  border-radius: 16px;
  display: grid;
  min-height: 150px;
  padding: 20px;
}

.finance-net span,
.finance-net small,
.formula-result span,
.cost-card span,
.summary small {
  color: rgba(203, 213, 225, 0.72);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.finance-net strong {
  display: block;
  font-size: clamp(32px, 4vw, 54px);
  letter-spacing: 0;
  line-height: 1;
  margin: 8px 0;
}

.finance-net.is-profit,
.formula-result.is-profit {
  background: linear-gradient(145deg, rgba(34, 197, 94, 0.18), rgba(20, 184, 166, 0.08));
  border: 1px solid rgba(34, 197, 94, 0.36);
  color: #86efac;
}

.finance-net.is-loss,
.formula-result.is-loss {
  background: linear-gradient(145deg, rgba(244, 63, 94, 0.16), rgba(251, 146, 60, 0.08));
  border: 1px solid rgba(244, 63, 94, 0.38);
  color: #fda4af;
}

.finance-summary-grid {
  margin-top: 12px;
}

.finance-summary-grid .summary {
  align-content: start;
  gap: 7px;
  min-height: 118px;
}

.muted-card {
  background: rgba(15, 23, 42, 0.62) !important;
  border-color: rgba(148, 163, 184, 0.18) !important;
}

.finance-formula-card {
  align-items: center;
  background: rgba(2, 6, 23, 0.68);
  border: 1px solid rgba(56, 189, 248, 0.18);
  border-radius: 16px;
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(7, auto);
  justify-content: start;
  margin: 12px 0;
  overflow-x: auto;
  padding: 14px;
}

.formula-part,
.formula-result {
  border-radius: 14px;
  display: grid;
  gap: 6px;
  min-width: 180px;
  padding: 14px;
}

.formula-part {
  background: rgba(15, 23, 42, 0.82);
  border: 1px solid rgba(148, 163, 184, 0.16);
}

.formula-part strong,
.formula-result strong {
  color: #f8fafc;
  font-size: 20px;
}

.formula-op {
  color: #67e8f9;
  font-size: 24px;
  font-weight: 900;
}

.cost-breakdown-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(4, minmax(190px, 1fr));
  margin: 12px 0;
}

.cost-card {
  background: rgba(15, 23, 42, 0.76);
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 16px;
  min-height: 170px;
  padding: 16px;
}

.cost-card h3 {
  color: #f8fafc;
  font-size: 15px;
  letter-spacing: 0;
  margin: 8px 0 10px;
}

.cost-card strong {
  display: block;
  font-size: 26px;
  letter-spacing: 0;
  margin-bottom: 12px;
}

.cost-card p {
  color: rgba(203, 213, 225, 0.74);
  font-size: 12px;
  line-height: 1.45;
  margin: 0;
}

.cost-card.is-info strong {
  color: #cbd5e1;
}

.cost-card.is-real {
  border-color: rgba(251, 113, 133, 0.24);
}

.cost-card.is-real strong {
  color: #fb7185;
}

.cost-card.is-ads {
  border-color: rgba(251, 191, 36, 0.26);
}

.cost-card.is-ads strong {
  color: #fbbf24;
}

.finance-chart-card {
  min-height: 0;
  padding-bottom: 10px;
}

.finance-chart-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  padding: 0 14px 10px;
}

.finance-chart-legend span {
  align-items: center;
  color: rgba(203, 213, 225, 0.74);
  display: inline-flex;
  font-size: 12px;
  font-weight: 800;
  gap: 6px;
}

.finance-chart-legend i {
  border-radius: 999px;
  display: inline-block;
  height: 9px;
  width: 22px;
}

.finance-chart-legend i.sales,
.bar-line.sales {
  background: linear-gradient(90deg, #22d3ee, #38bdf8);
}

.finance-chart-legend i.costs,
.bar-line.costs {
  background: linear-gradient(90deg, #fb7185, #f97316);
}

.finance-chart-legend i.profit,
.bar-line.profit {
  background: linear-gradient(90deg, #22c55e, #14b8a6);
}

.bar-line.loss {
  background: linear-gradient(90deg, #f43f5e, #fb7185);
}

.finance-chart {
  display: grid;
  gap: 8px;
  padding: 0 14px 14px;
}

.chart-row {
  align-items: center;
  background: rgba(2, 6, 23, 0.48);
  border: 1px solid rgba(148, 163, 184, 0.1);
  border-radius: 12px;
  display: grid;
  gap: 12px;
  grid-template-columns: 110px minmax(180px, 1fr) 170px;
  min-height: 54px;
  padding: 10px 12px;
}

.chart-date {
  color: #cbd5e1;
  font-size: 12px;
  font-weight: 900;
}

.chart-bars {
  display: grid;
  gap: 5px;
}

.bar-line {
  border-radius: 999px;
  display: block;
  height: 7px;
  min-width: 4px;
}

.chart-money {
  display: grid;
  gap: 3px;
  justify-items: end;
}

.chart-money small {
  color: rgba(203, 213, 225, 0.62);
  font-size: 11px;
  font-weight: 800;
}

.chart-money strong {
  font-size: 14px;
}

.finance-bars {
  padding: 14px;
}

.report-table {
  margin-top: 10px;
}

.sale-detail-table {
  max-height: 460px;
}

@media (max-width: 1200px) {
  .finance-hero,
  .cost-breakdown-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .finance-formula-card {
    grid-template-columns: 1fr;
  }

  .formula-op {
    display: none;
  }
}

@media (max-width: 760px) {
  .finance-hero,
  .cost-breakdown-grid,
  .chart-row {
    grid-template-columns: 1fr;
  }

  .chart-money {
    justify-items: start;
  }
}

/* Reports clean dashboard */
.reports-page {
  display: grid;
  gap: 14px;
  padding: 10px 0 26px;
}

.reports-filter-card {
  align-items: end;
  background: linear-gradient(135deg, rgba(8, 20, 36, 0.94), rgba(10, 16, 34, 0.92));
  border: 1px solid rgba(56, 189, 248, 0.18);
  border-radius: 16px;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.18);
  display: grid;
  gap: 12px;
  grid-template-columns: minmax(210px, 1fr) 170px 170px minmax(240px, 1.35fr) auto;
  padding: 14px;
}

.reports-filter-card label {
  color: rgba(203, 213, 225, 0.78);
  display: grid;
  font-size: 12px;
  font-weight: 850;
  gap: 6px;
}

.reports-filter-card input {
  background: rgba(2, 6, 23, 0.76);
  border: 1px solid rgba(56, 189, 248, 0.28);
  border-radius: 11px;
  color: #f8fafc;
  font-weight: 850;
  height: 40px;
  min-width: 0;
  padding: 0 12px;
}

.reports-filter-card button {
  background: linear-gradient(135deg, #fbbf24, #f59e0b);
  border: 0;
  border-radius: 999px;
  box-shadow: 0 12px 28px rgba(245, 158, 11, 0.22);
  color: #111827;
  cursor: pointer;
  font-weight: 950;
  height: 40px;
  padding: 0 18px;
}

.reports-success-note {
  align-items: center;
  background: linear-gradient(135deg, rgba(20, 184, 166, 0.18), rgba(34, 197, 94, 0.12));
  border: 1px solid rgba(45, 212, 191, 0.32);
  border-radius: 16px;
  box-shadow: 0 18px 38px rgba(20, 184, 166, 0.12);
  color: #d1fae5;
  display: flex;
  gap: 10px;
  justify-content: space-between;
  padding: 14px 16px;
}

.reports-success-note strong {
  color: #6ee7b7;
  font-size: 14px;
  font-weight: 950;
}

.reports-success-note span {
  color: rgba(226, 232, 240, 0.82);
  font-size: 13px;
  font-weight: 800;
}

.reports-eyebrow {
  color: #67e8f9;
  display: block;
  font-size: 11px;
  font-weight: 950;
  letter-spacing: 0.08em;
  margin-bottom: 6px;
  text-transform: uppercase;
}

.reports-filter-card strong {
  color: #f8fafc;
  display: block;
  font-size: 16px;
  letter-spacing: 0;
}

.reports-hero-clean {
  align-items: center;
  background:
    radial-gradient(circle at 14% 0%, rgba(34, 197, 94, 0.18), transparent 34%),
    linear-gradient(135deg, rgba(11, 23, 42, 0.98), rgba(16, 22, 48, 0.94));
  border: 1px solid rgba(56, 189, 248, 0.2);
  border-radius: 20px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.28);
  display: grid;
  gap: 18px;
  grid-template-columns: minmax(0, 1fr) auto;
  min-height: 190px;
  overflow: hidden;
  padding: 26px;
  position: relative;
}

.reports-hero-clean::after {
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.055), transparent);
  content: "";
  height: 100%;
  position: absolute;
  right: -18%;
  top: 0;
  transform: skewX(-16deg);
  width: 34%;
}

.reports-hero-clean h1 {
  color: #f8fafc;
  font-size: clamp(42px, 7vw, 82px);
  letter-spacing: 0;
  line-height: 0.95;
  margin: 0 0 10px;
}

.reports-hero-clean.is-profit h1 {
  color: #86efac;
  text-shadow: 0 18px 48px rgba(34, 197, 94, 0.24);
}

.reports-hero-clean.is-loss h1 {
  color: #fda4af;
  text-shadow: 0 18px 48px rgba(244, 63, 94, 0.24);
}

.reports-hero-clean p {
  color: rgba(226, 232, 240, 0.82);
  font-size: 15px;
  font-weight: 760;
  margin: 0;
}

.reports-equation {
  background: rgba(2, 6, 23, 0.56);
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  max-width: 520px;
  padding: 16px;
  position: relative;
  z-index: 1;
}

.reports-equation span {
  background: rgba(15, 23, 42, 0.86);
  border: 1px solid rgba(56, 189, 248, 0.14);
  border-radius: 999px;
  color: #e2e8f0;
  font-size: 13px;
  font-weight: 900;
  padding: 9px 12px;
}

.reports-equation b {
  align-self: center;
  color: #67e8f9;
  font-size: 18px;
}

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

.reports-kpi-grid article {
  background: rgba(15, 23, 42, 0.74);
  border: 1px solid rgba(148, 163, 184, 0.15);
  border-radius: 16px;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.16);
  display: grid;
  gap: 8px;
  min-height: 128px;
  padding: 16px;
}

.reports-kpi-grid article span {
  color: rgba(203, 213, 225, 0.76);
  font-size: 12px;
  font-weight: 950;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.reports-kpi-grid article strong {
  color: #f8fafc;
  font-size: clamp(24px, 2.3vw, 36px);
  letter-spacing: 0;
  line-height: 1;
}

.reports-kpi-grid article small {
  color: rgba(203, 213, 225, 0.66);
  font-size: 12px;
  font-weight: 760;
}

.reports-kpi-grid .good-card {
  background: linear-gradient(145deg, rgba(34, 197, 94, 0.18), rgba(20, 184, 166, 0.08));
  border-color: rgba(34, 197, 94, 0.34);
}

.reports-kpi-grid .good-card strong {
  color: #86efac;
}

.reports-kpi-grid .loss-card {
  background: linear-gradient(145deg, rgba(244, 63, 94, 0.16), rgba(251, 146, 60, 0.08));
  border-color: rgba(244, 63, 94, 0.34);
}

.reports-kpi-grid .loss-card strong {
  color: #fda4af;
}

.reports-main-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr);
}

.reports-main-grid .report-card,
.reports-details {
  background: rgba(15, 23, 42, 0.72);
  border: 1px solid rgba(56, 189, 248, 0.16);
  border-radius: 16px;
  box-shadow: 0 16px 38px rgba(0, 0, 0, 0.14);
}

.report-card-head {
  align-items: center;
  display: flex;
  gap: 14px;
  justify-content: space-between;
  padding: 16px 16px 10px;
}

.report-card-head .card-title {
  margin: 0;
}

.report-card-head p {
  color: rgba(203, 213, 225, 0.68);
  font-size: 12px;
  font-weight: 750;
  margin: 5px 0 0;
  max-width: 520px;
}

.report-auto-renew {
  align-items: center;
  background:
    linear-gradient(135deg, rgba(34, 197, 94, 0.2), rgba(6, 182, 212, 0.16)),
    rgba(2, 6, 23, 0.88);
  border: 1px solid rgba(45, 212, 191, 0.52);
  border-radius: 999px;
  box-shadow: 0 16px 34px rgba(20, 184, 166, 0.16);
  color: #d1fae5;
  cursor: pointer;
  display: inline-flex;
  flex-direction: column;
  gap: 1px;
  min-width: 190px;
  padding: 11px 18px;
  text-align: center;
}

.report-auto-renew span {
  color: #f8fafc;
  font-size: 13px;
  font-weight: 950;
}

.report-auto-renew small {
  color: #5eead4;
  font-size: 11px;
  font-weight: 850;
}

.report-auto-renew:hover {
  box-shadow: 0 0 0 1px rgba(94, 234, 212, 0.38), 0 20px 44px rgba(20, 184, 166, 0.2);
  transform: translateY(-1px);
}

.report-auto-renew:disabled {
  cursor: default;
  filter: grayscale(0.7);
  opacity: 0.48;
  transform: none;
}

.reports-pending-strip {
  align-items: center;
  background: rgba(2, 6, 23, 0.44);
  border-top: 1px solid rgba(148, 163, 184, 0.12);
  color: rgba(203, 213, 225, 0.72);
  display: flex;
  font-size: 12px;
  font-weight: 900;
  justify-content: space-between;
  padding: 10px 16px;
  text-transform: uppercase;
}

.reports-pending-strip strong {
  color: #fbbf24;
  font-size: 16px;
}

.reports-details {
  overflow: hidden;
}

.reports-details summary {
  align-items: center;
  cursor: pointer;
  display: flex;
  gap: 12px;
  justify-content: space-between;
  list-style: none;
  padding: 16px 18px;
}

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

.reports-details summary span {
  color: #f8fafc;
  font-size: 16px;
  font-weight: 950;
}

.reports-details summary strong {
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.26);
  border-radius: 999px;
  color: #67e8f9;
  font-size: 13px;
  padding: 8px 12px;
}

.reports-soft-note {
  color: rgba(203, 213, 225, 0.72);
  font-size: 13px;
  font-weight: 750;
  margin: 0;
  padding: 0 18px 12px;
}

.reports-page .expense-form {
  grid-template-columns: 140px 170px 130px minmax(200px, 1fr) auto;
}

.reports-page .report-inner-table {
  border-top: 1px solid rgba(148, 163, 184, 0.12);
  max-height: 340px;
}

.reports-page .sale-detail-table {
  max-height: 520px;
}

@media (max-width: 1280px) {
  .reports-filter-card,
  .reports-hero-clean,
  .reports-main-grid {
    grid-template-columns: 1fr;
  }

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

  .reports-page .expense-form {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .report-card-head,
  .reports-success-note {
    align-items: stretch;
    flex-direction: column;
  }

  .report-auto-renew {
    width: 100%;
  }
}

@media (max-width: 760px) {
  .reports-page {
    min-width: 760px;
  }

  .reports-filter-card {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

/* Accounts usability pass: keep Cuentas usable in split-screen and phone browsers. */
.accounts-layout {
  align-items: start;
  min-width: 0;
  width: 100%;
}

.accounts-layout.with-account-editor {
  display: grid !important;
  grid-template-columns: minmax(560px, 0.92fr) minmax(620px, 1.08fr) !important;
  overflow-x: auto !important;
  overflow-y: visible !important;
  padding-bottom: 8px;
  scrollbar-gutter: stable;
}

.accounts-layout.with-account-editor > .accounts-table {
  max-height: calc(100dvh - 126px) !important;
}

.accounts-layout.with-account-editor > .account-editor {
  align-self: start;
  max-height: calc(100dvh - 126px) !important;
  position: sticky;
  top: 8px;
}

.accounts-table {
  border-radius: 14px;
  max-height: calc(100dvh - 142px) !important;
  min-width: 0 !important;
  width: 100%;
}

.accounts-table table {
  min-width: 1180px !important;
  table-layout: fixed;
}

.accounts-table th:nth-child(1),
.accounts-table td:nth-child(1) {
  width: 58px;
}

.accounts-table th:nth-child(2),
.accounts-table td:nth-child(2) {
  width: 220px;
}

.accounts-table th:nth-child(3),
.accounts-table td:nth-child(3) {
  width: 180px;
}

.accounts-table th:nth-child(4),
.accounts-table td:nth-child(4) {
  width: 64px;
}

.accounts-table th:nth-child(5),
.accounts-table td:nth-child(5) {
  width: 280px;
}

.accounts-table th:nth-child(6),
.accounts-table td:nth-child(6) {
  width: 150px;
}

.accounts-table th:nth-child(7),
.accounts-table td:nth-child(7) {
  width: 82px;
}

.accounts-table th:nth-child(8),
.accounts-table td:nth-child(8) {
  width: 92px;
}

.accounts-table th:nth-child(9),
.accounts-table td:nth-child(9) {
  width: 140px;
}

.accounts-table th:nth-child(10),
.accounts-table td:nth-child(10) {
  width: 280px;
}

.accounts-table th:nth-child(11),
.accounts-table td:nth-child(11) {
  width: 168px;
}

.accounts-table.live-searching {
  cursor: progress;
  opacity: 0.82;
  transition: opacity 120ms ease;
}

.accounts-table.live-search-error {
  outline: 1px solid rgba(251, 113, 133, 0.45);
}

.accounts-table .selected-row td {
  background: linear-gradient(90deg, rgba(8, 145, 178, 0.25), rgba(24, 36, 56, 0.95)) !important;
  border-bottom-color: rgba(34, 211, 238, 0.38) !important;
}

.accounts-table .selected-row td:first-child {
  box-shadow: inset 3px 0 0 rgba(34, 211, 238, 0.9) !important;
}

.account-editor-grid {
  grid-template-columns: minmax(250px, 0.72fr) minmax(430px, 1.28fr) !important;
}

.account-detail-panel {
  min-width: 0;
}

.page-crumb {
  align-items: center;
  display: flex;
  gap: 10px;
  justify-content: space-between;
}

.page-crumb .base-top-actions {
  margin-left: auto;
}

@media (max-width: 1320px) {
  .accounts-layout.with-account-editor {
    grid-template-columns: minmax(640px, 52vw) minmax(640px, 52vw) !important;
    max-width: 100%;
  }

  .account-editor-grid {
    grid-template-columns: 1fr !important;
  }
}

@media (max-width: 900px) {
  .accounts-layout.with-account-editor {
    grid-template-columns: 720px 720px !important;
    width: max-content;
  }

  .accounts-layout.with-account-editor > .accounts-table,
  .accounts-layout.with-account-editor > .account-editor {
    max-height: calc(100dvh - 118px) !important;
  }

  .accounts-table {
    max-width: calc(100vw - 64px) !important;
  }

  .account-editor {
    width: 720px;
  }

  .page-crumb {
    align-items: flex-start;
    flex-direction: column;
  }

  .page-crumb .base-top-actions {
    justify-content: flex-start;
    margin-left: 0;
    max-width: calc(100vw - 78px) !important;
    width: calc(100vw - 78px) !important;
  }
}

/* Final polish: wheel scroll and report insights. */
.table-wrap,
.base-table,
.accounts-table,
.compact-base,
.report-inner-table,
.related-table,
.combo-list {
  overscroll-behavior-x: contain !important;
  overscroll-behavior-y: auto !important;
}

.reports-insights-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: minmax(0, 1.05fr) minmax(360px, 0.95fr);
}

.reports-chart-card,
.platform-breakdown-card {
  background:
    radial-gradient(circle at top left, rgba(34, 211, 238, 0.08), transparent 36%),
    rgba(15, 23, 42, 0.74);
  border: 1px solid rgba(56, 189, 248, 0.18);
  border-radius: 18px;
  min-height: 0;
  overflow: hidden;
}

.compact-head {
  padding-bottom: 8px;
}

.visible-finance-chart {
  gap: 9px;
  max-height: 360px;
  overflow: auto;
  padding: 0 16px 12px;
}

.visible-finance-chart .chart-row {
  background: rgba(2, 6, 23, 0.5);
  border-color: rgba(56, 189, 248, 0.12);
  grid-template-columns: 96px minmax(190px, 1fr) 150px;
  min-height: 48px;
}

.chart-legend {
  align-items: center;
  border-top: 1px solid rgba(148, 163, 184, 0.12);
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  padding: 12px 16px 14px;
}

.chart-legend span {
  align-items: center;
  color: rgba(203, 213, 225, 0.74);
  display: inline-flex;
  font-size: 12px;
  font-weight: 850;
  gap: 7px;
}

.chart-legend i {
  border-radius: 999px;
  display: inline-block;
  height: 8px;
  width: 26px;
}

.legend-sales {
  background: linear-gradient(90deg, #22d3ee, #38bdf8);
}

.legend-costs {
  background: linear-gradient(90deg, #fb7185, #f97316);
}

.legend-net {
  background: linear-gradient(90deg, #22c55e, #14b8a6);
}

.platform-stat-list {
  display: grid;
  gap: 10px;
  max-height: 430px;
  overflow: auto;
  padding: 0 16px 16px;
}

.platform-stat-item {
  background: linear-gradient(135deg, rgba(2, 6, 23, 0.78), rgba(15, 23, 42, 0.78));
  border: 1px solid rgba(148, 163, 184, 0.12);
  border-radius: 14px;
  display: grid;
  gap: 10px;
  padding: 13px;
}

.platform-stat-top,
.platform-stat-meta {
  align-items: center;
  display: flex;
  gap: 10px;
  justify-content: space-between;
}

.platform-stat-top strong {
  color: #f8fafc;
  font-size: 15px;
  font-weight: 950;
}

.platform-stat-top span {
  font-size: 15px;
  font-weight: 950;
}

.platform-stat-bars {
  display: grid;
  gap: 5px;
}

.platform-stat-bars span {
  border-radius: 999px;
  display: block;
  height: 7px;
  min-width: 4px;
}

.platform-stat-bars .sales {
  background: linear-gradient(90deg, #22d3ee, #38bdf8);
}

.platform-stat-bars .costs {
  background: linear-gradient(90deg, #fb7185, #f59e0b);
}

.platform-stat-meta {
  color: rgba(203, 213, 225, 0.72);
  flex-wrap: wrap;
  font-size: 12px;
  font-weight: 780;
  justify-content: flex-start;
}

.platform-stat-meta b {
  color: #e2e8f0;
  font-weight: 950;
}

@media (max-width: 1280px) {
  .reports-insights-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .reports-insights-grid {
    min-width: 760px;
  }

  .visible-finance-chart .chart-row {
    grid-template-columns: 1fr;
  }
}

/* Clear finance table for platform results. */
.platform-table-card {
  min-height: 0 !important;
}

.platform-report-wrap {
  border: 0 !important;
  max-height: 430px;
  overflow: auto !important;
  padding: 0 16px 16px;
}

.platform-report-table {
  border-collapse: separate !important;
  border-spacing: 0 8px !important;
  min-width: 760px;
  width: 100%;
}

.platform-report-table thead th {
  background: rgba(2, 6, 23, 0.72) !important;
  border-bottom: 1px solid rgba(56, 189, 248, 0.18) !important;
  color: rgba(191, 219, 254, 0.86) !important;
  font-size: 11px !important;
  letter-spacing: 0 !important;
  padding: 10px 12px !important;
  text-transform: uppercase;
}

.platform-report-table tbody tr {
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.94), rgba(10, 18, 34, 0.94)) !important;
  box-shadow: inset 0 0 0 1px rgba(56, 189, 248, 0.09);
}

.platform-report-table tbody tr:hover {
  background: linear-gradient(135deg, rgba(17, 34, 56, 0.98), rgba(11, 24, 44, 0.98)) !important;
}

.platform-report-table td {
  border: 0 !important;
  color: #e5edf8 !important;
  font-size: 13px !important;
  font-weight: 900 !important;
  padding: 12px !important;
  vertical-align: middle !important;
  white-space: nowrap;
}

.platform-report-table tbody td:first-child {
  border-bottom-left-radius: 12px;
  border-top-left-radius: 12px;
}

.platform-report-table tbody td:last-child {
  border-bottom-right-radius: 12px;
  border-top-right-radius: 12px;
}

.platform-report-name {
  display: grid;
  gap: 3px;
}

.platform-report-name strong {
  color: #f8fafc;
  font-size: 14px;
  font-weight: 950;
}

.platform-report-name span {
  color: rgba(148, 163, 184, 0.9);
  font-size: 11px;
  font-weight: 850;
}

.platform-report-table .green {
  color: #4ade80 !important;
}

.platform-report-table .bad {
  color: #fb7185 !important;
}

.platform-mini-bars {
  display: grid;
  gap: 6px;
  min-width: 150px;
}

.platform-mini-bars i {
  border-radius: 999px;
  display: block;
  height: 7px;
  min-width: 4px;
}

.platform-mini-bars .sales {
  background: linear-gradient(90deg, #22d3ee, #38bdf8);
  box-shadow: 0 0 14px rgba(34, 211, 238, 0.2);
}

.platform-mini-bars .costs {
  background: linear-gradient(90deg, #fb7185, #f97316);
  box-shadow: 0 0 14px rgba(251, 113, 133, 0.18);
}

@media (max-width: 900px) {
  .platform-report-wrap {
    padding-left: 10px;
    padding-right: 10px;
  }
}

/* Accounts inventory redesign: clearer hierarchy, less visual noise. */
.accounts-hero-crumb {
  background:
    radial-gradient(circle at left, rgba(34, 211, 238, 0.16), transparent 34%),
    linear-gradient(90deg, rgba(8, 47, 73, 0.72), rgba(15, 23, 42, 0.88)) !important;
  border-bottom: 1px solid rgba(56, 189, 248, 0.18) !important;
  min-height: 58px;
  padding: 10px 14px !important;
}

.accounts-hero-title {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.accounts-hero-title > span {
  color: #dbeafe;
  font-size: 13px;
  font-weight: 850;
}

.accounts-hero-title strong {
  color: #f8fafc;
  font-size: 21px;
  font-weight: 950;
  line-height: 1.05;
}

.accounts-hero-title small {
  color: rgba(191, 219, 254, 0.74);
  font-size: 12px;
  font-weight: 750;
}

.accounts-hero-crumb .base-top-actions {
  gap: 8px;
}

.accounts-hero-crumb .button {
  border-radius: 12px !important;
  min-height: 38px !important;
  padding: 0 14px !important;
}

.account-create-card {
  background:
    radial-gradient(circle at top left, rgba(34, 211, 238, 0.1), transparent 40%),
    rgba(15, 23, 42, 0.76) !important;
  border: 1px solid rgba(56, 189, 248, 0.18) !important;
  border-radius: 18px !important;
  margin: 10px 10px 14px !important;
  overflow: visible !important;
  padding: 16px !important;
  position: relative !important;
  z-index: 1200 !important;
}

.account-create-card.product-picker-open {
  padding-bottom: min(360px, 48vh) !important;
  z-index: 3000 !important;
}

.accounts-overview {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(5, minmax(140px, 1fr));
  margin: 12px 10px 14px;
}

.accounts-overview article {
  background:
    linear-gradient(135deg, rgba(15, 23, 42, 0.88), rgba(8, 47, 73, 0.44)),
    rgba(2, 6, 23, 0.7);
  border: 1px solid rgba(56, 189, 248, 0.18);
  border-radius: 16px;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.18);
  display: grid;
  gap: 4px;
  min-height: 94px;
  padding: 14px 16px;
}

.accounts-overview article span {
  color: rgba(191, 219, 254, 0.78);
  font-size: 11px;
  font-weight: 950;
  text-transform: uppercase;
}

.accounts-overview article strong {
  color: #f8fafc;
  font-size: 30px;
  font-weight: 950;
  line-height: 1;
}

.accounts-overview article small {
  color: rgba(203, 213, 225, 0.72);
  font-size: 12px;
  font-weight: 750;
}

.accounts-overview article.available {
  border-color: rgba(34, 197, 94, 0.3);
}

.accounts-overview article.available strong {
  color: #4ade80;
}

.accounts-overview article.urgent {
  border-color: rgba(251, 113, 133, 0.34);
  box-shadow: 0 14px 34px rgba(244, 63, 94, 0.1);
}

.accounts-overview article.urgent strong {
  color: #fb7185;
}

.accounts-overview article.expired {
  background:
    linear-gradient(135deg, rgba(127, 29, 29, 0.52), rgba(15, 23, 42, 0.88)),
    rgba(2, 6, 23, 0.78);
  border-color: rgba(248, 113, 113, 0.44);
  box-shadow: 0 16px 36px rgba(248, 113, 113, 0.12);
}

.accounts-overview article.expired strong {
  color: #f87171;
}

.accounts-overview article.reserved strong {
  color: #fbbf24;
}

.account-create-head {
  align-items: end;
  border-bottom: 1px solid rgba(148, 163, 184, 0.12);
  display: flex;
  gap: 16px;
  justify-content: space-between;
  margin-bottom: 14px;
  padding-bottom: 12px;
}

.account-create-head div {
  display: grid;
  gap: 3px;
}

.account-create-head span {
  color: #67e8f9;
  font-size: 11px;
  font-weight: 950;
  text-transform: uppercase;
}

.account-create-head strong {
  color: #f8fafc;
  font-size: 18px;
  font-weight: 950;
}

.account-create-head small {
  color: rgba(203, 213, 225, 0.72);
  font-size: 12px;
  font-weight: 750;
  text-align: right;
}

.account-create-card .form-grid {
  overflow: visible;
}

.account-create-card .form-field {
  color: var(--muted);
  display: grid;
  gap: 5px;
  min-width: 0;
}

.account-create-card .field-label {
  align-items: center;
  color: #a7b7cc;
  display: inline-flex;
  font-size: 12px;
  font-weight: 850;
  gap: 7px;
  letter-spacing: 0;
}

.account-create-card .field-label::before {
  background: linear-gradient(135deg, #22d3ee, #38bdf8);
  border-radius: 999px;
  box-shadow: 0 0 16px rgba(34, 211, 238, 0.34);
  content: "";
  display: inline-block;
  height: 6px;
  width: 6px;
}

.account-product-picker {
  position: relative;
  z-index: 1400;
}

.account-product-picker.open {
  z-index: 3200 !important;
}

.account-create-card .account-product-picker button {
  appearance: none !important;
  box-shadow: none !important;
  filter: none !important;
  font: inherit !important;
  min-height: 0 !important;
  transform: none !important;
}

.account-product-trigger {
  align-items: center;
  background:
    linear-gradient(135deg, rgba(15, 23, 42, 0.94), rgba(2, 6, 23, 0.82)),
    rgba(2, 6, 23, 0.74) !important;
  border: 1px solid rgba(125, 211, 252, 0.28) !important;
  border-radius: 12px !important;
  color: #f8fafc !important;
  display: grid !important;
  gap: 10px !important;
  grid-template-columns: 34px minmax(0, 1fr) 22px !important;
  min-height: 46px !important;
  padding: 6px 11px !important;
  text-align: left !important;
  width: 100% !important;
  transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.account-product-picker.open .account-product-trigger,
.account-product-trigger:hover {
  background:
    radial-gradient(circle at left, rgba(34, 211, 238, 0.14), transparent 42%),
    linear-gradient(135deg, rgba(15, 23, 42, 0.98), rgba(2, 6, 23, 0.88)) !important;
  border-color: rgba(34, 211, 238, 0.62) !important;
  box-shadow: 0 0 0 3px rgba(34, 211, 238, 0.08), 0 16px 34px rgba(2, 6, 23, 0.28) !important;
}

.account-product-avatar {
  align-items: center;
  background:
    linear-gradient(135deg, rgba(8, 47, 73, 0.78), rgba(15, 23, 42, 0.88));
  border: 1px solid rgba(56, 189, 248, 0.22);
  border-radius: 10px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.03), 0 10px 22px rgba(2, 6, 23, 0.24);
  color: #67e8f9;
  display: inline-flex !important;
  font-size: 13px;
  font-weight: 950;
  flex: 0 0 34px !important;
  height: 34px !important;
  justify-content: center;
  overflow: hidden !important;
  text-transform: uppercase;
  width: 34px !important;
}

.account-product-avatar img,
.account-product-image {
  display: block !important;
  height: 100% !important;
  max-height: 34px !important;
  max-width: 34px !important;
  object-fit: contain !important;
  object-position: center center !important;
  padding: 3px !important;
  width: 100% !important;
}

.account-product-copy {
  display: grid !important;
  gap: 2px !important;
  min-width: 0 !important;
}

.account-product-option-copy {
  display: grid !important;
  gap: 2px !important;
  min-width: 0 !important;
}

.account-product-copy strong,
.account-product-option strong {
  color: #f8fafc !important;
  font-size: 13px !important;
  font-weight: 950 !important;
  line-height: 1.15 !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

.account-product-copy small,
.account-product-option small {
  color: #8ea4bf !important;
  font-size: 11px !important;
  font-weight: 800 !important;
  line-height: 1.1 !important;
}

.account-product-trigger > b {
  align-items: center;
  background: rgba(34, 211, 238, 0.09);
  border: 1px solid rgba(34, 211, 238, 0.22);
  border-radius: 999px;
  color: #67e8f9;
  display: inline-flex;
  font-size: 12px;
  height: 22px;
  justify-content: center;
  text-align: center;
  width: 22px;
}

.account-product-menu {
  background:
    radial-gradient(circle at top left, rgba(34, 211, 238, 0.14), transparent 34%),
    rgba(15, 23, 42, 0.98);
  border: 1px solid rgba(56, 189, 248, 0.34);
  border-radius: 16px;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.46), inset 0 1px 0 rgba(255, 255, 255, 0.03);
  display: none !important;
  gap: 8px !important;
  left: 0 !important;
  max-height: min(390px, 58vh) !important;
  overflow: hidden !important;
  padding: 8px !important;
  position: absolute !important;
  right: 0 !important;
  top: calc(100% + 8px) !important;
  z-index: 3300 !important;
}

.account-product-picker.open .account-product-menu {
  display: grid !important;
}

.account-product-menu > input {
  background: rgba(2, 6, 23, 0.82);
  border-color: rgba(34, 211, 238, 0.28);
  border-radius: 12px;
  min-height: 38px;
}

.account-product-options {
  display: grid !important;
  gap: 6px !important;
  max-height: 318px !important;
  overflow: auto !important;
  padding-right: 2px !important;
}

.account-product-menu.empty .account-product-options::after {
  color: #94a3b8;
  content: "Sin productos con ese texto";
  display: block;
  font-size: 12px;
  font-weight: 850;
  padding: 14px 8px;
  text-align: center;
}

.account-product-option {
  align-items: center;
  background: rgba(2, 6, 23, 0.48) !important;
  border: 1px solid rgba(148, 163, 184, 0.12) !important;
  border-radius: 13px !important;
  color: #f8fafc !important;
  display: grid !important;
  gap: 10px !important;
  grid-template-columns: 34px minmax(0, 1fr) !important;
  min-height: 54px !important;
  padding: 9px 11px !important;
  text-align: left !important;
  transition: border-color 140ms ease, background 140ms ease, transform 140ms ease;
  width: 100% !important;
}

.account-create-card .account-product-picker button.account-product-option {
  min-height: 54px !important;
}

.account-product-option:hover,
.account-product-option.selected {
  background: linear-gradient(90deg, rgba(8, 145, 178, 0.24), rgba(15, 23, 42, 0.84)) !important;
  border-color: rgba(34, 211, 238, 0.44) !important;
}

.account-product-option[hidden] {
  display: none !important;
}

.accounts-layout {
  gap: 14px !important;
  padding: 0 10px 12px;
}

.accounts-layout.with-account-editor {
  grid-template-columns: minmax(650px, 0.9fr) minmax(720px, 1.1fr) !important;
}

.accounts-table {
  background:
    linear-gradient(180deg, rgba(15, 23, 42, 0.82), rgba(8, 13, 28, 0.9)) !important;
  border: 1px solid rgba(56, 189, 248, 0.16) !important;
  border-radius: 18px !important;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.24);
  overflow: auto !important;
  position: relative !important;
  z-index: 1 !important;
}

.accounts-table table {
  border-collapse: separate !important;
  border-spacing: 0 !important;
  min-width: 1260px !important;
}

.accounts-table thead th {
  background: rgba(2, 6, 23, 0.9) !important;
  border-bottom: 1px solid rgba(56, 189, 248, 0.18) !important;
  color: rgba(219, 234, 254, 0.88) !important;
  font-size: 11px !important;
  font-weight: 950 !important;
  height: 44px;
  letter-spacing: 0 !important;
  padding: 0 12px !important;
  text-transform: uppercase;
}

.accounts-table tbody td {
  background: rgba(15, 23, 42, 0.62) !important;
  border-bottom: 1px solid rgba(56, 189, 248, 0.13) !important;
  color: rgba(226, 232, 240, 0.92);
  height: 52px !important;
  padding: 8px 12px !important;
}

.accounts-table tbody tr.clickable-row:hover td {
  background: linear-gradient(90deg, rgba(14, 116, 144, 0.2), rgba(15, 23, 42, 0.84)) !important;
}

.accounts-table .selected-row td {
  background: linear-gradient(90deg, rgba(8, 145, 178, 0.32), rgba(15, 23, 42, 0.92)) !important;
  box-shadow: inset 0 1px 0 rgba(34, 211, 238, 0.18), inset 0 -1px 0 rgba(34, 211, 238, 0.18);
}

.accounts-table .selected-row td:first-child {
  box-shadow: inset 4px 0 0 rgba(34, 211, 238, 0.95) !important;
}

.accounts-table .product-cell {
  align-items: center;
  gap: 12px !important;
}

.accounts-table .product-cell > span:last-child {
  color: #f8fafc;
  font-size: 13px;
  font-weight: 950;
  line-height: 1.1;
}

.accounts-table .base-product-img,
.accounts-table .product-cell .icon-box {
  border-radius: 10px !important;
  height: 36px !important;
  width: 36px !important;
}

.account-email-cell {
  color: #fbbf24 !important;
  font-weight: 900;
}

.account-group-title {
  align-items: center;
  display: flex;
  gap: 10px;
  justify-content: space-between;
}

.account-group-title span {
  color: #67e8f9;
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
}

.account-group-title small {
  background: rgba(34, 211, 238, 0.1);
  border: 1px solid rgba(34, 211, 238, 0.18);
  border-radius: 999px;
  color: rgba(191, 219, 254, 0.84);
  font-size: 11px;
  font-weight: 900;
  padding: 4px 9px;
}

.account-group-row td {
  background: linear-gradient(90deg, rgba(2, 6, 23, 0.94), rgba(8, 47, 73, 0.22)) !important;
  padding: 11px 14px !important;
}

.account-group-vencida td {
  background: linear-gradient(90deg, rgba(127, 29, 29, 0.28), rgba(15, 23, 42, 0.94)) !important;
  border-top-color: rgba(248, 113, 113, 0.22) !important;
}

.account-group-vencida .account-group-title span {
  color: #fda4af;
}

.account-group-vencida .account-group-title small {
  background: rgba(248, 113, 113, 0.1);
  border-color: rgba(248, 113, 113, 0.2);
  color: #fecdd3;
}

.account-row-actions {
  gap: 6px !important;
  justify-content: center !important;
  min-width: 136px !important;
}

.account-row-actions button,
.account-row-actions a {
  background: rgba(15, 23, 42, 0.86) !important;
  border: 1px solid rgba(148, 163, 184, 0.11) !important;
  border-radius: 10px !important;
  height: 32px !important;
  width: 32px !important;
}

.account-row-actions button:hover,
.account-row-actions a:hover {
  background: rgba(34, 211, 238, 0.12) !important;
  border-color: rgba(34, 211, 238, 0.36) !important;
  transform: translateY(-1px);
}

.account-editor {
  background:
    radial-gradient(circle at top left, rgba(34, 211, 238, 0.08), transparent 34%),
    rgba(8, 13, 28, 0.96) !important;
  border: 1px solid rgba(56, 189, 248, 0.22) !important;
  border-radius: 18px !important;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.36);
}

.account-editor-head {
  background: rgba(2, 6, 23, 0.62) !important;
  min-height: 66px !important;
  padding: 10px 14px !important;
}

.account-editor-title {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.account-editor-title span {
  color: #67e8f9;
  font-size: 11px;
  font-weight: 950;
  text-transform: uppercase;
}

.account-editor-title strong {
  color: #f8fafc;
  font-size: 18px !important;
  font-weight: 950;
  line-height: 1.1;
}

.account-editor-title small {
  color: rgba(203, 213, 225, 0.76);
  font-size: 12px;
  font-weight: 800;
  max-width: 430px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.account-editor-grid {
  gap: 16px !important;
  grid-template-columns: minmax(260px, 0.62fr) minmax(460px, 1.38fr) !important;
}

.account-profile-card,
.account-detail-panel {
  background: rgba(15, 23, 42, 0.68) !important;
  border: 1px solid rgba(56, 189, 248, 0.17) !important;
  border-radius: 16px !important;
}

.account-profile-card {
  padding: 22px !important;
}

.account-profile-card h2 {
  color: #f8fafc;
  font-size: 25px !important;
  letter-spacing: 0 !important;
  margin-bottom: 10px !important;
}

.account-card-status {
  background: rgba(2, 6, 23, 0.46);
  border: 1px solid rgba(148, 163, 184, 0.12);
  border-radius: 14px;
  display: grid;
  gap: 2px;
  margin-top: 12px;
  padding: 12px;
}

.account-card-status .legacy-active {
  color: #fbbf24;
  font-size: 18px;
  font-weight: 950;
}

.account-card-status .account-stock-badge {
  font-size: 16px !important;
  margin: 0 !important;
}

.account-actions {
  gap: 12px !important;
  margin-top: 20px !important;
}

.account-actions button {
  align-items: center !important;
  background:
    radial-gradient(circle at 50% 0%, rgba(34, 211, 238, 0.1), transparent 48%),
    linear-gradient(180deg, rgba(15, 23, 42, 0.74), rgba(2, 6, 23, 0.62)) !important;
  border: 1px solid rgba(125, 211, 252, 0.14) !important;
  border-radius: 18px !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.035), 0 12px 26px rgba(2, 6, 23, 0.2) !important;
  color: #f8fafc !important;
  display: grid !important;
  gap: 9px !important;
  justify-items: center !important;
  min-height: 104px !important;
  padding: 14px 10px 12px !important;
  position: relative !important;
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease, background 160ms ease !important;
}

.account-actions button::after {
  background: linear-gradient(90deg, transparent, rgba(34, 211, 238, 0.42), transparent);
  border-radius: 999px;
  bottom: 8px;
  content: "";
  height: 1px;
  left: 18px;
  opacity: 0;
  position: absolute;
  right: 18px;
  transition: opacity 160ms ease;
}

.account-actions button:hover {
  background:
    radial-gradient(circle at 50% 0%, rgba(34, 211, 238, 0.18), transparent 52%),
    linear-gradient(180deg, rgba(15, 23, 42, 0.9), rgba(2, 6, 23, 0.72)) !important;
  border-color: rgba(34, 211, 238, 0.36) !important;
  box-shadow: 0 18px 34px rgba(2, 6, 23, 0.28), 0 0 0 1px rgba(34, 211, 238, 0.08) !important;
  transform: translateY(-2px);
}

.account-actions button:hover::after {
  opacity: 1;
}

.account-actions b {
  background:
    radial-gradient(circle at 35% 25%, rgba(255, 255, 255, 0.26), transparent 28%),
    linear-gradient(135deg, #f59e0b, #fbbf24) !important;
  border: 1px solid rgba(251, 191, 36, 0.5);
  box-shadow: 0 12px 28px rgba(245, 158, 11, 0.28), 0 0 0 6px rgba(245, 158, 11, 0.08);
  color: #07111f !important;
  font-size: 20px !important;
  height: 46px !important;
  width: 46px !important;
}

.account-actions span {
  color: #eaf2ff;
  font-size: 12.5px !important;
  font-weight: 900;
  letter-spacing: 0 !important;
  line-height: 1.12 !important;
  max-width: 94px;
  text-wrap: balance;
}

.account-actions button[data-copy-account] b {
  background:
    radial-gradient(circle at 35% 25%, rgba(255, 255, 255, 0.24), transparent 28%),
    linear-gradient(135deg, #22d3ee, #2563eb) !important;
  border-color: rgba(34, 211, 238, 0.5);
  box-shadow: 0 12px 28px rgba(34, 211, 238, 0.2), 0 0 0 6px rgba(34, 211, 238, 0.08);
  color: #eff6ff !important;
}

.account-actions button[data-provider-note] b,
.account-actions button[data-notify-account-update] b {
  background:
    radial-gradient(circle at 35% 25%, rgba(255, 255, 255, 0.24), transparent 28%),
    linear-gradient(135deg, #fbbf24, #f97316) !important;
}

.account-actions button[data-renew-account] b {
  background:
    radial-gradient(circle at 35% 25%, rgba(255, 255, 255, 0.24), transparent 28%),
    linear-gradient(135deg, #2dd4bf, #06b6d4) !important;
  border-color: rgba(45, 212, 191, 0.5);
  box-shadow: 0 12px 28px rgba(45, 212, 191, 0.18), 0 0 0 6px rgba(45, 212, 191, 0.08);
  color: #ecfeff !important;
}

.account-actions button[data-focus-support] b {
  background:
    radial-gradient(circle at 35% 25%, rgba(255, 255, 255, 0.22), transparent 28%),
    linear-gradient(135deg, #a78bfa, #6366f1) !important;
  border-color: rgba(167, 139, 250, 0.5);
  box-shadow: 0 12px 28px rgba(129, 140, 248, 0.18), 0 0 0 6px rgba(129, 140, 248, 0.08);
  color: #f5f3ff !important;
}

.related-bases {
  background: rgba(2, 6, 23, 0.28);
  border: 1px solid rgba(148, 163, 184, 0.1);
  border-radius: 14px;
  margin-bottom: 14px;
  padding: 12px;
}

.related-bases h3 {
  color: #f8fafc;
  font-size: 17px !important;
}

.related-table {
  border-radius: 12px !important;
  max-height: 260px !important;
}

#account-editor-form {
  gap: 10px !important;
}

#account-editor-form label,
.account-field,
.account-status-row {
  background: rgba(2, 6, 23, 0.18);
  border-radius: 12px;
  padding: 4px;
}

#account-editor-form input,
#account-editor-form textarea {
  border-color: rgba(56, 189, 248, 0.28) !important;
  min-height: 42px !important;
}

.account-status-buttons {
  gap: 8px !important;
}

.account-status-buttons button {
  border-radius: 12px !important;
  min-height: 42px !important;
}

.account-status-buttons button.active {
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.08), inset 0 0 0 1px rgba(134, 239, 172, 0.22) !important;
}

@media (max-width: 1320px) {
  .accounts-overview {
    grid-template-columns: repeat(2, minmax(180px, 1fr));
  }

  .accounts-layout.with-account-editor {
    grid-template-columns: minmax(680px, 52vw) minmax(720px, 56vw) !important;
  }

  .account-editor-grid {
    grid-template-columns: 1fr !important;
  }
}

@media (max-width: 900px) {
  .accounts-overview {
    grid-template-columns: repeat(4, 160px);
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .accounts-overview article {
    min-height: 84px;
  }

  .accounts-overview article strong {
    font-size: 25px;
  }

  .accounts-hero-title small {
    display: none;
  }

  .accounts-hero-crumb .base-top-actions {
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .accounts-layout.with-account-editor {
    grid-template-columns: 760px 760px !important;
  }

  .account-editor {
    width: 760px !important;
  }
}

/* Universal button polish: keeps old actions working, upgrades the visual language. */
.button,
.form-panel button,
.add-sale-button,
.bulk-action,
.combo-card-actions button,
.combo-edit-actions button,
.combo-save-button,
.combo-renew-button,
.combo-delete-button,
.renew-modal-actions button,
.notification-actions button,
.mass-confirm-actions button,
.provider-side-actions button,
.trash-actions button,
.trash-clear-btn,
.mobile-sale-form button,
.mobile-ghost-btn,
.legacy-editor-actions button,
.security-form button,
.security-hero-actions a,
.security-hero-actions button,
.client-save-button,
.mini-form button,
.expense-form button,
.reports-filter-card button {
  align-items: center !important;
  background:
    radial-gradient(circle at 50% 0%, rgba(34, 211, 238, 0.12), transparent 48%),
    linear-gradient(180deg, rgba(15, 23, 42, 0.86), rgba(2, 6, 23, 0.68)) !important;
  border: 1px solid rgba(34, 211, 238, 0.28) !important;
  border-radius: 14px !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04), 0 14px 30px rgba(2, 6, 23, 0.22) !important;
  color: #ecfeff !important;
  display: inline-flex !important;
  font-size: 13px !important;
  font-weight: 950 !important;
  gap: 8px !important;
  justify-content: center !important;
  letter-spacing: 0 !important;
  line-height: 1.1 !important;
  min-height: 38px !important;
  padding: 10px 16px !important;
  position: relative !important;
  text-decoration: none !important;
  text-shadow: none !important;
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease, background 160ms ease !important;
  white-space: nowrap !important;
}

.button:hover,
.form-panel button:hover,
.add-sale-button:hover,
.bulk-action:hover,
.combo-card-actions button:hover,
.combo-edit-actions button:hover,
.combo-save-button:hover,
.combo-renew-button:hover,
.combo-delete-button:hover,
.renew-modal-actions button:hover,
.notification-actions button:hover,
.mass-confirm-actions button:hover,
.provider-side-actions button:hover,
.trash-actions button:hover,
.trash-clear-btn:hover,
.mobile-sale-form button:hover,
.mobile-ghost-btn:hover,
.legacy-editor-actions button:hover,
.security-form button:hover,
.security-hero-actions a:hover,
.security-hero-actions button:hover,
.client-save-button:hover,
.mini-form button:hover,
.expense-form button:hover,
.reports-filter-card button:hover {
  background:
    radial-gradient(circle at 50% 0%, rgba(34, 211, 238, 0.2), transparent 52%),
    linear-gradient(180deg, rgba(15, 23, 42, 0.96), rgba(2, 6, 23, 0.76)) !important;
  border-color: rgba(34, 211, 238, 0.52) !important;
  box-shadow: 0 18px 34px rgba(2, 6, 23, 0.3), 0 0 0 1px rgba(34, 211, 238, 0.1) !important;
  transform: translateY(-1px);
}

.button span:first-child,
.add-sale-button span:first-child,
.base-top-actions .button span:first-child,
.base-top-actions button span:first-child,
.page-actions button span:first-child,
.top-actions button span:first-child {
  align-items: center;
  background: rgba(2, 44, 34, 0.52);
  border: 1px solid rgba(236, 253, 245, 0.72);
  border-radius: 999px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.24), 0 0 18px rgba(34, 211, 238, 0.24);
  color: #ecfeff;
  display: inline-flex;
  font-size: 15px;
  font-weight: 1000;
  height: 22px;
  justify-content: center;
  line-height: 1;
  width: 22px;
}

.add-sale-button,
.combo-save-button,
.renew-confirm,
.template-save-btn,
.notification-test-btn,
.expense-form button[type="submit"],
.mobile-sale-form button[type="submit"],
.form-panel p > button,
.reports-filter-card button {
  background:
    radial-gradient(circle at 35% 10%, rgba(255, 255, 255, 0.22), transparent 30%),
    linear-gradient(135deg, #22d3ee, #14b8a6 52%, #22c55e) !important;
  border-color: rgba(45, 212, 191, 0.46) !important;
  color: #022c22 !important;
  box-shadow: 0 16px 34px rgba(20, 184, 166, 0.22), 0 0 0 1px rgba(45, 212, 191, 0.1) !important;
}

.add-sale-button:hover,
.combo-save-button:hover,
.renew-confirm:hover,
.template-save-btn:hover,
.notification-test-btn:hover,
.expense-form button[type="submit"]:hover,
.mobile-sale-form button[type="submit"]:hover,
.form-panel p > button:hover,
.reports-filter-card button:hover {
  background:
    radial-gradient(circle at 35% 10%, rgba(255, 255, 255, 0.28), transparent 32%),
    linear-gradient(135deg, #67e8f9, #2dd4bf 48%, #4ade80) !important;
  border-color: rgba(125, 211, 252, 0.58) !important;
  box-shadow: 0 18px 40px rgba(20, 184, 166, 0.28), 0 0 0 1px rgba(34, 211, 238, 0.16) !important;
}

.bulk-action.renew,
.combo-renew-button,
.provider-side-actions button,
.security-hero-actions a,
.security-hero-actions button {
  border-color: rgba(34, 211, 238, 0.34) !important;
  color: #a5f3fc !important;
}

.bulk-action.paid,
.bulk-action.whatsapp,
.trash-actions button:not(.trash-destroy),
.mobile-ghost-btn {
  border-color: rgba(34, 197, 94, 0.36) !important;
  color: #bbf7d0 !important;
}

.bulk-action.pending,
.bulk-action.grace {
  border-color: rgba(251, 191, 36, 0.34) !important;
  color: #fde68a !important;
}

.bulk-action.delete,
.combo-delete-button,
.trash-destroy,
.trash-clear-btn,
.sale-delete-button,
.mini-danger {
  background:
    radial-gradient(circle at 34% 10%, rgba(255, 255, 255, 0.16), transparent 30%),
    linear-gradient(135deg, rgba(225, 29, 72, 0.24), rgba(76, 5, 25, 0.78) 58%, rgba(15, 23, 42, 0.88)) !important;
  border-color: rgba(251, 113, 133, 0.58) !important;
  color: #ffe4e6 !important;
  text-shadow: 0 1px 10px rgba(251, 113, 133, 0.22) !important;
}

.bulk-action.delete:hover,
.combo-delete-button:hover,
.trash-destroy:hover,
.trash-clear-btn:hover,
.sale-delete-button:hover,
.mini-danger:hover {
  border-color: rgba(251, 113, 133, 0.7) !important;
  box-shadow: 0 18px 34px rgba(76, 5, 25, 0.34), 0 0 0 1px rgba(251, 113, 133, 0.12) !important;
}

.sale-delete-button::before,
.bulk-action.delete::before,
.trash-clear-btn::before {
  content: "!";
  align-items: center;
  background: rgba(251, 113, 133, 0.18);
  border: 1px solid rgba(251, 113, 133, 0.45);
  border-radius: 999px;
  color: #fecdd3;
  display: inline-flex;
  font-size: 11px;
  font-weight: 950;
  height: 18px;
  justify-content: center;
  line-height: 1;
  width: 18px;
}

.sidebar .nav-item[href="/trash"] {
  border-color: rgba(251, 113, 133, 0.18);
}

.sidebar .nav-item[href="/trash"] .nav-icon {
  background:
    radial-gradient(circle at 34% 12%, rgba(255, 255, 255, 0.2), transparent 34%),
    linear-gradient(145deg, rgba(225, 29, 72, 0.28), rgba(76, 5, 25, 0.76)) !important;
  border: 1px solid rgba(251, 113, 133, 0.42);
  border-radius: 12px;
  color: #fecdd3;
  display: inline-flex;
  height: 28px;
  justify-content: center;
  width: 28px;
}

.sidebar .nav-item[href="/trash"].active,
.sidebar .nav-item[href="/trash"]:hover {
  background: linear-gradient(135deg, rgba(225, 29, 72, 0.16), rgba(15, 23, 42, 0.84)) !important;
  border-color: rgba(251, 113, 133, 0.48) !important;
  color: #ffe4e6 !important;
}

.account-row-actions button,
.account-row-actions a,
.table-actions button,
.row-actions button {
  background: rgba(15, 23, 42, 0.84) !important;
  border: 1px solid rgba(34, 211, 238, 0.18) !important;
  border-radius: 12px !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.035), 0 10px 22px rgba(2, 6, 23, 0.18) !important;
  color: #e0f2fe !important;
}

.account-row-actions button:hover,
.account-row-actions a:hover,
.table-actions button:hover,
.row-actions button:hover {
  border-color: rgba(34, 211, 238, 0.52) !important;
  box-shadow: 0 14px 28px rgba(2, 6, 23, 0.28), 0 0 0 1px rgba(34, 211, 238, 0.12) !important;
}

/* Premium sale action grid */
.sale-editor .legacy-product-panel .legacy-actions {
  display: grid !important;
  gap: 14px !important;
  grid-template-columns: repeat(2, minmax(96px, 1fr)) !important;
  margin-top: 22px !important;
  padding: 0 !important;
}

.sale-editor .legacy-product-panel .legacy-action,
.sale-editor .legacy-product-panel .legacy-action.whatsapp,
.sale-editor .legacy-product-panel .legacy-action.delivery,
.sale-editor .legacy-product-panel .legacy-action.notify,
.sale-editor .legacy-product-panel .legacy-action.renew,
.sale-editor .legacy-product-panel .legacy-action.pending,
.sale-editor .legacy-product-panel .legacy-action.paid,
.sale-editor .legacy-product-panel .legacy-action.grace,
.sale-editor .legacy-product-panel .legacy-action.available,
.sale-editor .legacy-product-panel .legacy-action.otp {
  align-items: center !important;
  background:
    radial-gradient(circle at 50% 4%, rgba(125, 211, 252, 0.1), transparent 42%),
    linear-gradient(180deg, rgba(18, 28, 48, 0.9), rgba(8, 13, 24, 0.74)) !important;
  border: 1px solid rgba(125, 211, 252, 0.14) !important;
  border-radius: 20px !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.045), 0 14px 26px rgba(2, 6, 23, 0.18) !important;
  color: #f8fafc !important;
  display: grid !important;
  gap: 9px !important;
  justify-items: center !important;
  min-height: 116px !important;
  overflow: hidden !important;
  padding: 13px 8px 12px !important;
  position: relative !important;
  text-align: center !important;
  transform: translateZ(0) !important;
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease, background 160ms ease !important;
}

.sale-editor .legacy-product-panel .legacy-action::before {
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  content: "";
  height: 1px;
  left: 18%;
  opacity: 0.55;
  position: absolute;
  right: 18%;
  top: 0;
}

.sale-editor .legacy-product-panel .legacy-action::after {
  background: rgba(34, 211, 238, 0.44);
  border-radius: 999px;
  bottom: 8px;
  content: "";
  height: 2px;
  opacity: 0;
  position: absolute;
  transform: scaleX(0.38);
  transition: opacity 160ms ease, transform 160ms ease;
  width: 38px;
}

.sale-editor .legacy-product-panel .legacy-action:hover {
  background:
    radial-gradient(circle at 50% 0%, rgba(34, 211, 238, 0.16), transparent 46%),
    linear-gradient(180deg, rgba(22, 34, 58, 0.94), rgba(10, 16, 30, 0.86)) !important;
  border-color: rgba(34, 211, 238, 0.38) !important;
  box-shadow: 0 20px 42px rgba(2, 6, 23, 0.32), 0 0 0 1px rgba(34, 211, 238, 0.1) !important;
  transform: translateY(-2px) !important;
}

.sale-editor .legacy-product-panel .legacy-action:hover::after {
  opacity: 1;
  transform: scaleX(1);
}

.sale-editor .legacy-product-panel .legacy-action.image-action b,
.sale-editor .legacy-product-panel .legacy-action b {
  align-items: center !important;
  background:
    radial-gradient(circle at 35% 16%, rgba(255, 255, 255, 0.28), transparent 34%),
    linear-gradient(145deg, rgba(15, 23, 42, 0.98), rgba(2, 6, 23, 0.92)) !important;
  border: 1px solid rgba(34, 211, 238, 0.36) !important;
  border-radius: 20px !important;
  box-shadow: 0 13px 28px rgba(2, 6, 23, 0.34), inset 0 1px 0 rgba(255, 255, 255, 0.08) !important;
  color: #a5f3fc !important;
  display: inline-flex !important;
  font-size: 0.72rem !important;
  font-weight: 900 !important;
  height: 60px !important;
  justify-content: center !important;
  min-width: 60px !important;
  overflow: hidden !important;
  padding: 0 !important;
  width: 60px !important;
}

.sale-editor .legacy-product-panel .legacy-action.image-action b img {
  display: block !important;
  height: 72% !important;
  object-fit: contain !important;
  width: 72% !important;
}

.sale-editor .legacy-product-panel .legacy-action span {
  color: #f8fafc !important;
  display: block !important;
  font-size: 12.7px !important;
  font-weight: 880 !important;
  line-height: 1.08 !important;
  margin: 0 !important;
  max-width: 98px !important;
  text-align: center !important;
  white-space: normal !important;
}

.sale-editor .legacy-product-panel .legacy-action.delivery::after,
.sale-editor .legacy-product-panel .legacy-action.available::after,
.sale-editor .legacy-product-panel .legacy-action.paid::after,
.sale-editor .legacy-product-panel .legacy-action.notify::after {
  background: rgba(34, 197, 94, 0.72);
}

.sale-editor .legacy-product-panel .legacy-action.delivery b,
.sale-editor .legacy-product-panel .legacy-action.notify b,
.sale-editor .legacy-product-panel .legacy-action.whatsapp b,
.sale-editor .legacy-product-panel .legacy-action.available b,
.sale-editor .legacy-product-panel .legacy-action.paid b {
  border-color: rgba(34, 197, 94, 0.62) !important;
  box-shadow: 0 0 28px rgba(34, 197, 94, 0.18), 0 13px 28px rgba(2, 6, 23, 0.32) !important;
}

.sale-editor .legacy-product-panel .legacy-action.renew b {
  border-color: rgba(34, 211, 238, 0.72) !important;
  box-shadow: 0 0 28px rgba(34, 211, 238, 0.18), 0 13px 28px rgba(2, 6, 23, 0.32) !important;
}

.sale-editor .legacy-product-panel .legacy-action.pending b,
.sale-editor .legacy-product-panel .legacy-action.grace b {
  border-color: rgba(251, 191, 36, 0.72) !important;
  box-shadow: 0 0 28px rgba(251, 191, 36, 0.16), 0 13px 28px rgba(2, 6, 23, 0.32) !important;
}

.sale-editor .legacy-product-panel .legacy-action.pending::after,
.sale-editor .legacy-product-panel .legacy-action.grace::after {
  background: rgba(251, 191, 36, 0.76);
}

.sale-editor .legacy-product-panel .legacy-action.otp b {
  background:
    radial-gradient(circle at 35% 16%, rgba(255, 255, 255, 0.16), transparent 34%),
    linear-gradient(145deg, rgba(8, 47, 73, 0.78), rgba(2, 6, 23, 0.96)) !important;
  border-color: rgba(34, 211, 238, 0.52) !important;
  color: #67e8f9 !important;
  text-transform: uppercase;
}

.sale-editor .legacy-product-panel .legacy-action.image-action b img[src*="sale-action-"] {
  filter: drop-shadow(0 10px 16px rgba(0, 0, 0, 0.24)) !important;
}

.sale-editor .legacy-sale-card .legacy-actions {
  display: grid !important;
  gap: 14px !important;
  grid-template-columns: repeat(2, minmax(96px, 1fr)) !important;
  margin-top: 22px !important;
  padding: 0 !important;
}

.sale-editor .legacy-sale-card .legacy-action {
  align-items: center !important;
  background:
    radial-gradient(circle at 50% 4%, rgba(125, 211, 252, 0.1), transparent 42%),
    linear-gradient(180deg, rgba(18, 28, 48, 0.9), rgba(8, 13, 24, 0.74)) !important;
  border: 1px solid rgba(125, 211, 252, 0.14) !important;
  border-radius: 20px !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.045), 0 14px 26px rgba(2, 6, 23, 0.18) !important;
  color: #f8fafc !important;
  display: grid !important;
  gap: 9px !important;
  justify-items: center !important;
  min-height: 116px !important;
  overflow: hidden !important;
  padding: 13px 8px 12px !important;
  position: relative !important;
  text-align: center !important;
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease, background 160ms ease !important;
}

.sale-editor .legacy-sale-card .legacy-action:hover {
  background:
    radial-gradient(circle at 50% 0%, rgba(34, 211, 238, 0.16), transparent 46%),
    linear-gradient(180deg, rgba(22, 34, 58, 0.94), rgba(10, 16, 30, 0.86)) !important;
  border-color: rgba(34, 211, 238, 0.38) !important;
  box-shadow: 0 20px 42px rgba(2, 6, 23, 0.32), 0 0 0 1px rgba(34, 211, 238, 0.1) !important;
  transform: translateY(-2px) !important;
}

.sale-editor .legacy-sale-card .legacy-action.image-action b,
.sale-editor .legacy-sale-card .legacy-action b {
  align-items: center !important;
  background:
    radial-gradient(circle at 35% 16%, rgba(255, 255, 255, 0.28), transparent 34%),
    linear-gradient(145deg, rgba(15, 23, 42, 0.98), rgba(2, 6, 23, 0.92)) !important;
  border: 1px solid rgba(34, 211, 238, 0.36) !important;
  border-radius: 20px !important;
  box-shadow: 0 13px 28px rgba(2, 6, 23, 0.34), inset 0 1px 0 rgba(255, 255, 255, 0.08) !important;
  display: inline-flex !important;
  height: 60px !important;
  justify-content: center !important;
  min-width: 60px !important;
  overflow: hidden !important;
  padding: 0 !important;
  width: 60px !important;
}

.sale-editor .legacy-sale-card .legacy-action.image-action b img {
  display: block !important;
  height: 84% !important;
  object-fit: contain !important;
  width: 84% !important;
}

.sale-editor .legacy-sale-card .legacy-action span {
  color: #f8fafc !important;
  display: block !important;
  font-size: 12.7px !important;
  font-weight: 880 !important;
  line-height: 1.08 !important;
  margin: 0 !important;
  max-width: 98px !important;
  text-align: center !important;
  white-space: normal !important;
}

@media (max-width: 740px) {
  .sale-editor .legacy-product-panel .legacy-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  .sale-editor .legacy-product-panel .legacy-action,
  .sale-editor .legacy-product-panel .legacy-action.whatsapp,
  .sale-editor .legacy-product-panel .legacy-action.delivery,
  .sale-editor .legacy-product-panel .legacy-action.notify,
  .sale-editor .legacy-product-panel .legacy-action.renew,
  .sale-editor .legacy-product-panel .legacy-action.pending,
  .sale-editor .legacy-product-panel .legacy-action.paid,
  .sale-editor .legacy-product-panel .legacy-action.grace,
  .sale-editor .legacy-product-panel .legacy-action.available,
  .sale-editor .legacy-product-panel .legacy-action.otp {
    min-height: 108px !important;
  }
}

/* Responsive action bars and reliable horizontal tables */
.page-crumb {
  align-items: center !important;
  flex-wrap: wrap !important;
  gap: 8px !important;
  overflow: visible !important;
}

.page-crumb > span,
.page-crumb > strong,
.page-crumb > div:first-child {
  min-width: 0 !important;
}

.base-top-actions,
.top-actions,
.page-actions {
  align-items: center !important;
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 8px !important;
  justify-content: flex-end !important;
  min-width: 0 !important;
  overflow: visible !important;
}

.base-top-actions {
  margin-left: auto !important;
  max-width: min(100%, 760px) !important;
}

.base-top-actions .button,
.top-actions .button,
.page-actions .button,
.base-top-actions .add-sale-button {
  flex: 0 1 auto !important;
  max-width: 100% !important;
  white-space: nowrap !important;
}

.base-bulk-bar {
  align-items: center !important;
  flex-wrap: wrap !important;
  max-width: calc(100% - 20px) !important;
  overflow: visible !important;
}

.base-bulk-bar > div {
  flex: 1 1 150px !important;
  min-width: 116px !important;
}

.bulk-action {
  flex: 0 1 auto !important;
  white-space: nowrap !important;
}

.table-wrap,
.base-table,
.accounts-table {
  max-width: 100% !important;
  min-width: 0 !important;
  overflow-x: auto !important;
  overflow-y: auto !important;
  scrollbar-gutter: stable both-edges;
}

.base-table table,
.compact-base table {
  min-width: 1280px !important;
  width: max-content !important;
}

body.bulk-enabled .base-table table,
body.bulk-enabled .compact-base table {
  min-width: 1380px !important;
}

.base-table th,
.base-table td,
.accounts-table th,
.accounts-table td {
  overflow: hidden;
  text-overflow: ellipsis;
}

.base-table .col-product,
.base-table .product-cell {
  min-width: 220px;
}

.base-table td:nth-child(3),
.base-table th:nth-child(3) {
  min-width: 210px;
}

.base-table td:nth-child(6),
.base-table th:nth-child(6) {
  min-width: 260px;
}

@media (max-width: 1180px) {
  .page-crumb {
    align-items: flex-start !important;
    padding-bottom: 8px !important;
  }

  .base-top-actions {
    justify-content: flex-start !important;
    margin-left: 0 !important;
    max-width: 100% !important;
    width: 100% !important;
  }

  .base-top-actions .button,
  .base-top-actions .add-sale-button {
    min-height: 34px !important;
  }

  .base-bulk-bar {
    display: grid !important;
    grid-template-columns: minmax(112px, 0.7fr) repeat(auto-fit, minmax(126px, 1fr)) !important;
    padding: 10px !important;
  }

  .base-bulk-bar > div {
    align-content: center !important;
    margin-right: 0 !important;
  }

  .bulk-action {
    min-height: 36px !important;
    padding-inline: 10px !important;
  }
}

@media (max-width: 860px) {
  .topbar {
    min-width: 0 !important;
  }

  .layout {
    min-width: 0 !important;
  }

  .content {
    overflow: visible !important;
  }

  .page-crumb {
    margin-inline: -4px !important;
  }

  .base-top-actions {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  .base-top-actions .button,
  .base-top-actions .add-sale-button {
    justify-content: center !important;
    width: 100% !important;
  }

  .base-bulk-bar {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  .base-bulk-bar > div {
    grid-column: 1 / -1 !important;
  }
}

/* Polished compact header actions */
.base-top-actions {
  gap: 9px !important;
}

.base-top-actions .button,
.base-top-actions .add-sale-button,
.base-top-actions .base-otp-sync,
.base-top-actions .base-select-toggle {
  position: relative !important;
  isolation: isolate !important;
  min-height: 32px !important;
  padding: 6px 13px 6px 9px !important;
  border-radius: 13px !important;
  border: 1px solid rgba(103, 232, 249, 0.34) !important;
  background:
    linear-gradient(180deg, rgba(15, 28, 52, 0.94), rgba(8, 14, 29, 0.94)) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.07),
    0 10px 24px rgba(0, 0, 0, 0.18) !important;
  color: #eaf6ff !important;
  font-size: 13px !important;
  font-weight: 850 !important;
  letter-spacing: 0 !important;
  line-height: 1 !important;
  text-shadow: none !important;
  transition: transform 150ms ease, border-color 150ms ease, background 150ms ease, box-shadow 150ms ease !important;
}

.base-top-actions .button::before,
.base-top-actions .add-sale-button::before {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: inherit;
  background: radial-gradient(circle at 18% 0%, rgba(34, 211, 238, 0.16), transparent 48%);
  opacity: 0.8;
  z-index: -1;
}

.base-top-actions .button:hover,
.base-top-actions .add-sale-button:hover {
  border-color: rgba(103, 232, 249, 0.66) !important;
  background:
    linear-gradient(180deg, rgba(18, 37, 68, 0.96), rgba(9, 18, 36, 0.96)) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.09),
    0 12px 28px rgba(34, 211, 238, 0.12),
    0 8px 18px rgba(0, 0, 0, 0.22) !important;
  transform: translateY(-1px) !important;
}

.base-top-actions .button span,
.base-top-actions .add-sale-button span,
.base-top-actions .base-otp-sync span,
.base-top-actions .base-select-toggle span {
  width: 22px !important;
  height: 22px !important;
  min-width: 22px !important;
  border-radius: 999px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  background: rgba(12, 24, 45, 0.9) !important;
  border: 1px solid rgba(103, 232, 249, 0.42) !important;
  color: #67e8f9 !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08) !important;
  font-size: 11px !important;
  font-weight: 950 !important;
}

.base-top-actions .base-otp-sync span {
  width: 34px !important;
  min-width: 34px !important;
  font-size: 10px !important;
  letter-spacing: 0 !important;
  color: #dff7ff !important;
}

.base-top-actions .add-sale-button {
  border-color: rgba(45, 212, 191, 0.62) !important;
  background:
    linear-gradient(135deg, #19d5cf 0%, #28d887 100%) !important;
  color: #05231f !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.28),
    0 12px 28px rgba(20, 184, 166, 0.22) !important;
}

.base-top-actions .add-sale-button::before {
  background: linear-gradient(135deg, rgba(255,255,255,0.22), transparent 52%);
}

.base-top-actions .add-sale-button span {
  background: rgba(255, 255, 255, 0.18) !important;
  border-color: rgba(255, 255, 255, 0.3) !important;
  color: #06352f !important;
}

.base-top-actions .add-sale-button:hover {
  background:
    linear-gradient(135deg, #22e1dc 0%, #31e890 100%) !important;
  border-color: rgba(153, 246, 228, 0.84) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.32),
    0 14px 32px rgba(20, 184, 166, 0.3) !important;
}

.base-top-actions .base-select-toggle.active {
  border-color: rgba(45, 212, 191, 0.9) !important;
  background:
    linear-gradient(180deg, rgba(16, 185, 129, 0.25), rgba(8, 47, 73, 0.74)) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    0 0 0 1px rgba(45, 212, 191, 0.12),
    0 14px 30px rgba(20, 184, 166, 0.18) !important;
}

@media (max-width: 860px) {
  .base-top-actions .button,
  .base-top-actions .add-sale-button,
  .base-top-actions .base-otp-sync,
  .base-top-actions .base-select-toggle {
    min-height: 38px !important;
    padding-inline: 9px !important;
  }
}

/* Base header + in-place combo creation repair */
.page-crumb {
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  min-height: 46px !important;
  padding: 9px 12px !important;
  overflow: visible !important;
}

.page-crumb > span {
  flex: 1 1 170px !important;
  min-width: 120px !important;
}

.page-crumb .base-top-actions {
  flex: 0 1 auto !important;
  display: flex !important;
  align-items: center !important;
  justify-content: flex-end !important;
  flex-wrap: wrap !important;
  gap: 8px !important;
  margin-left: auto !important;
  max-width: min(100%, 760px) !important;
  overflow: visible !important;
}

.base-top-actions .button,
.base-top-actions .add-sale-button,
.base-top-actions .base-otp-sync,
.base-top-actions .base-select-toggle,
.base-top-actions .base-combo-create {
  flex: 0 0 auto !important;
  height: 34px !important;
  min-height: 34px !important;
  max-height: 34px !important;
  padding: 0 12px 0 9px !important;
  border-radius: 12px !important;
  gap: 7px !important;
  white-space: nowrap !important;
  font-size: 12.5px !important;
  line-height: 1 !important;
}

.base-top-actions .base-otp-sync {
  max-width: 132px !important;
}

.base-top-actions .base-combo-create {
  border-color: rgba(250, 204, 21, 0.55) !important;
  color: #fde68a !important;
  background: linear-gradient(180deg, rgba(54, 41, 10, 0.92), rgba(13, 21, 38, 0.95)) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08), 0 10px 24px rgba(250, 204, 21, 0.08) !important;
}

.base-top-actions .base-combo-create span {
  border-color: rgba(250, 204, 21, 0.58) !important;
  color: #fde68a !important;
}

.base-top-actions .add-sale-button {
  min-width: 112px !important;
  justify-content: center !important;
  padding-left: 10px !important;
  padding-right: 14px !important;
}

.base-table,
.compact-base,
.table-wrap {
  width: 100% !important;
  max-width: 100% !important;
}

.base-table table,
.compact-base table {
  width: 100% !important;
  min-width: 1220px !important;
  table-layout: fixed !important;
}

body.bulk-enabled .base-table table,
body.bulk-enabled .compact-base table {
  width: 100% !important;
  min-width: 1320px !important;
}

.base-bulk-bar {
  width: calc(100% - 20px) !important;
  max-width: calc(100% - 20px) !important;
  overflow-x: auto !important;
  overflow-y: hidden !important;
  scrollbar-width: thin;
}

.base-bulk-bar .combo-pulse {
  animation: comboPulse 900ms ease-in-out 2;
}

@keyframes comboPulse {
  0%, 100% { box-shadow: inset 0 1px 0 rgba(255,255,255,.08), 0 0 0 rgba(250,204,21,0); }
  50% { box-shadow: inset 0 1px 0 rgba(255,255,255,.12), 0 0 0 3px rgba(250,204,21,.22), 0 16px 32px rgba(250,204,21,.16); }
}

@media (max-width: 1120px) {
  .page-crumb {
    align-items: flex-start !important;
  }
  .page-crumb .base-top-actions {
    flex: 1 1 100% !important;
    width: 100% !important;
    justify-content: flex-start !important;
    margin-left: 0 !important;
  }
}

@media (max-width: 720px) {
  .base-top-actions .button,
  .base-top-actions .add-sale-button,
  .base-top-actions .base-otp-sync,
  .base-top-actions .base-select-toggle,
  .base-top-actions .base-combo-create {
    flex: 1 1 calc(50% - 8px) !important;
    min-width: 0 !important;
    justify-content: center !important;
  }
}

.compact-base tbody .clickable-row.row-opening td {
  background: linear-gradient(90deg, rgba(8, 145, 178, 0.34), rgba(15, 23, 42, 0.96)) !important;
  border-bottom-color: rgba(34, 211, 238, 0.48) !important;
}

/* Crear combo desde Base */
body.base-combo-open {
  overflow: hidden !important;
}

.base-combo-overlay[hidden] {
  display: none !important;
}

.base-combo-overlay {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: flex;
  align-items: stretch;
  justify-content: center;
  padding: 18px;
  background: rgba(2, 6, 18, 0.68);
  backdrop-filter: blur(14px);
}

.base-combo-modal {
  width: min(1480px, calc(100vw - 36px));
  height: min(900px, calc(100vh - 36px));
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid rgba(34, 211, 238, 0.24);
  border-radius: 24px;
  background:
    radial-gradient(circle at top left, rgba(20, 184, 166, 0.18), transparent 34%),
    linear-gradient(145deg, #081426, #0b1020 58%, #10142a);
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  opacity: 0;
  transform: translateY(12px) scale(0.985);
  transition: opacity 180ms ease, transform 180ms ease;
}

.base-combo-overlay.open .base-combo-modal {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.base-combo-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 22px;
  border-bottom: 1px solid rgba(83, 173, 209, 0.2);
  background: rgba(5, 12, 24, 0.64);
}

.base-combo-modal-head span {
  display: block;
  color: #67e8f9;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.base-combo-modal-head h2 {
  margin: 4px 0 0;
  color: #f8fafc;
  font-size: clamp(22px, 2vw, 32px);
  line-height: 1;
}

.base-combo-modal-head p {
  margin: 7px 0 0;
  color: #9fb3c8;
  font-size: 13px;
  font-weight: 700;
}

.base-combo-close {
  width: 44px;
  height: 44px;
  border-radius: 16px;
  border: 1px solid rgba(148, 163, 184, 0.28);
  background: rgba(15, 23, 42, 0.9);
  color: #e2e8f0;
  font-size: 22px;
  font-weight: 900;
  cursor: pointer;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.base-combo-close:hover {
  transform: translateY(-1px);
  border-color: rgba(34, 211, 238, 0.55);
  background: rgba(16, 31, 52, 0.95);
}

.base-combo-frame {
  flex: 1;
  width: 100%;
  min-height: 0;
  border: 0;
  background: #07101d;
}

body.embedded-page {
  min-width: 0 !important;
  overflow: auto !important;
  background: #07101d !important;
}

body.embedded-page .topbar,
body.embedded-page .sidebar {
  display: none !important;
}

body.embedded-page .layout {
  display: block !important;
  min-height: auto !important;
}

body.embedded-page .content {
  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  min-height: auto !important;
  overflow: visible !important;
}

body.embedded-page .page-crumb,
body.embedded-page .combo-history {
  display: none !important;
}

body.embedded-page .combo-builder {
  margin: 0 !important;
  padding: 18px !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

body.embedded-page .combo-hero {
  margin-top: 0 !important;
}

body.embedded-page .combo-actions {
  position: sticky;
  bottom: 0;
  z-index: 6;
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin: 18px -18px -18px;
  padding: 14px 18px;
  border-top: 1px solid rgba(83, 173, 209, 0.22);
  background: rgba(7, 16, 29, 0.92);
  backdrop-filter: blur(10px);
}

@media (max-width: 820px) {
  .base-combo-overlay {
    padding: 8px;
  }

  .base-combo-modal {
    width: calc(100vw - 16px);
    height: calc(100vh - 16px);
    border-radius: 18px;
  }

  .base-combo-modal-head {
    align-items: flex-start;
    padding: 14px;
  }

  .base-combo-modal-head p {
    display: none;
  }
}

.action-crumb {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.sale-form-crumb {
  margin-bottom: 8px;
}

@media (max-width: 720px) {
  .action-crumb {
    align-items: stretch;
  }

  .action-crumb .button {
    width: 100%;
    justify-content: center;
  }
}

/* ================================================================
   Mn1keyStream V5 — professional interface pass (2026-08-23)
   One final, low-motion layer shared by every module.  Kept at the
   end intentionally so legacy screens retain their behavior while
   presenting the same spacing, surfaces and responsive rules.
   ================================================================ */

:root {
  color-scheme: dark;
  --bg: #050a13;
  --panel: rgba(10, 19, 34, 0.94);
  --panel-2: rgba(14, 27, 46, 0.96);
  --line: rgba(121, 170, 207, 0.2);
  --text: #f4f8fc;
  --muted: #97aabc;
  --orange: #f59e0b;
  --cyan: #35d7e5;
  --green: #3ddc97;
  --red: #fb7185;
  --yellow: #fbbf24;
  --blue: #60a5fa;
  --violet: #a78bfa;
  --mn1-bg-deep: #050a13;
  --mn1-bg-soft: #08111f;
  --mn1-surface: rgba(10, 20, 36, 0.94);
  --mn1-surface-raised: rgba(13, 26, 46, 0.97);
  --mn1-surface-soft: rgba(15, 30, 50, 0.72);
  --mn1-border: rgba(120, 167, 202, 0.2);
  --mn1-border-strong: rgba(80, 188, 210, 0.36);
  --mn1-shadow: 0 18px 46px rgba(0, 0, 0, 0.24);
  --mn1-shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.18);
  --mn1-radius-sm: 10px;
  --mn1-radius: 14px;
  --mn1-radius-lg: 20px;
}

html {
  background: var(--mn1-bg-deep);
  scrollbar-gutter: stable;
}

body {
  background:
    radial-gradient(circle at 8% -8%, rgba(21, 119, 157, 0.18), transparent 28rem),
    radial-gradient(circle at 94% 4%, rgba(82, 65, 155, 0.11), transparent 32rem),
    linear-gradient(145deg, #050a13 0%, #08111f 52%, #060b15 100%) !important;
  color: var(--text);
  font-size: 13.5px;
  font-feature-settings: "cv02", "cv03", "cv04", "kern";
  overflow-x: hidden !important;
  text-rendering: optimizeLegibility;
}

::selection {
  background: rgba(53, 215, 229, 0.28);
  color: #fff;
}

.skip-link {
  background: #e8fbff;
  border-radius: 0 0 10px 10px;
  color: #06111c;
  font-weight: 900;
  left: 12px;
  padding: 10px 14px;
  position: fixed;
  top: 0;
  transform: translateY(-120%);
  transition: transform 120ms ease;
  z-index: 2000;
}

.skip-link:focus {
  transform: translateY(0);
}

#main-content:focus {
  outline: none;
}

:where(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
  outline: 2px solid rgba(103, 232, 249, 0.94) !important;
  outline-offset: 2px;
}

.topbar {
  backdrop-filter: saturate(120%) blur(8px);
  background: rgba(4, 10, 19, 0.92) !important;
  border-bottom-color: rgba(113, 168, 205, 0.2) !important;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.2) !important;
  gap: 14px;
  height: 48px;
  padding: 0 14px;
  position: sticky;
  top: 0;
  z-index: 500;
}

.logo {
  gap: 9px;
  min-width: 210px;
}

.logo-mark {
  border: 1px solid rgba(103, 232, 249, 0.24);
  border-radius: 9px;
  box-shadow: 0 8px 22px rgba(20, 184, 166, 0.14) !important;
  height: 32px;
  width: 32px;
}

.logo-text {
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.hamburger {
  border-color: rgba(113, 168, 205, 0.24) !important;
  border-radius: 11px !important;
  height: 34px;
  min-height: 34px;
  width: 38px;
}

.hamburger:hover {
  background: rgba(34, 211, 238, 0.1) !important;
  box-shadow: none !important;
}

.search {
  background: rgba(8, 18, 32, 0.9) !important;
  border-color: rgba(113, 168, 205, 0.28) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.025);
  max-width: 520px;
  min-height: 34px;
  padding-inline: 15px;
}

.search:focus {
  background: rgba(10, 22, 39, 0.98) !important;
  border-color: rgba(53, 215, 229, 0.58) !important;
  box-shadow: 0 0 0 3px rgba(53, 215, 229, 0.08);
}

.avatar {
  border: 1px solid rgba(253, 230, 138, 0.6) !important;
  box-shadow: 0 8px 22px rgba(245, 158, 11, 0.22) !important;
  height: 32px;
  min-height: 32px;
  padding: 0;
  width: 32px;
}

.layout {
  grid-template-columns: 194px minmax(0, 1fr);
  min-height: calc(100dvh - 48px);
}

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

.sidebar {
  align-self: start;
  background: rgba(5, 11, 21, 0.9) !important;
  border-right-color: rgba(113, 168, 205, 0.16) !important;
  height: calc(100dvh - 48px);
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 7px 0 12px;
  position: sticky;
  scrollbar-width: thin;
  top: 48px;
  touch-action: pan-y;
}

.nav-item {
  border-radius: 11px;
  gap: 11px;
  margin: 3px 8px;
  min-height: 40px;
  padding: 0 11px;
}

.nav-item:hover {
  background: rgba(16, 37, 57, 0.7) !important;
  border-color: rgba(83, 170, 201, 0.24) !important;
  box-shadow: none !important;
}

.nav-item.active {
  background:
    linear-gradient(90deg, rgba(30, 132, 165, 0.2), rgba(77, 66, 142, 0.11)),
    rgba(12, 25, 43, 0.88) !important;
  border-color: rgba(68, 187, 211, 0.36) !important;
  box-shadow: inset 3px 0 0 #35d7e5 !important;
  color: #8deaf1 !important;
}

.nav-icon {
  align-items: center;
  display: inline-flex;
  font-size: 16px;
  height: 24px;
  justify-content: center;
}

.nav-label {
  font-size: 13px;
  font-weight: 740;
}

.content {
  max-width: 100%;
  min-width: 0;
  padding: 16px;
}

.crumb {
  background:
    linear-gradient(90deg, rgba(13, 56, 78, 0.46), rgba(13, 24, 43, 0.78) 48%, rgba(12, 20, 37, 0.86));
  border-bottom-color: rgba(113, 168, 205, 0.2) !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
  font-size: 15px;
  letter-spacing: -0.01em;
  margin: -16px -16px 16px;
  min-height: 52px !important;
  padding: 9px 16px !important;
  text-shadow: none !important;
}

.page-crumb > span {
  min-width: 0 !important;
}

.button,
button {
  border: 1px solid rgba(103, 232, 249, 0.28);
  border-radius: 11px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.14);
  min-height: 36px;
  transition: background 120ms ease, border-color 120ms ease, box-shadow 120ms ease, color 120ms ease, transform 120ms ease;
}

.button:hover,
button:hover {
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.2);
  filter: none;
  transform: translateY(-1px);
}

.button.secondary,
button.secondary {
  background: rgba(11, 24, 41, 0.9) !important;
  border-color: rgba(102, 165, 200, 0.28) !important;
  color: #e8f2f9 !important;
}

button:disabled,
.button[aria-disabled="true"] {
  cursor: not-allowed;
  filter: grayscale(0.2);
  opacity: 0.52;
  transform: none !important;
}

input,
select,
textarea {
  background: rgba(5, 13, 26, 0.9) !important;
  border-color: rgba(113, 168, 205, 0.27) !important;
  border-radius: 10px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.02);
  color: #f4f8fc;
  min-height: 38px;
  padding: 8px 11px;
  transition: background 120ms ease, border-color 120ms ease, box-shadow 120ms ease;
}

textarea {
  line-height: 1.48;
  min-height: 104px;
}

input:hover,
select:hover,
textarea:hover {
  border-color: rgba(113, 190, 215, 0.42) !important;
}

input:focus,
select:focus,
textarea:focus {
  background: rgba(7, 17, 31, 0.98) !important;
  border-color: rgba(53, 215, 229, 0.62) !important;
  box-shadow: 0 0 0 3px rgba(53, 215, 229, 0.08);
}

input::placeholder,
textarea::placeholder {
  color: #6f8599;
  opacity: 1;
}

label,
.field-label,
.legacy-label {
  color: #a9bac9;
  font-weight: 650;
}

.form-panel,
.card,
.table-wrap,
.notification-card,
.security-card,
.trash-card,
.provider-card,
.provider-detail,
.account-detail-panel,
.account-profile-card,
.combo-history-card {
  background:
    linear-gradient(150deg, rgba(16, 31, 51, 0.78), rgba(7, 15, 28, 0.9)),
    var(--mn1-surface) !important;
  border-color: var(--mn1-border) !important;
  border-radius: var(--mn1-radius-lg) !important;
  box-shadow: var(--mn1-shadow-soft) !important;
}

.form-panel,
.card,
.table-wrap {
  animation: none !important;
}

.form-panel {
  margin-bottom: 16px;
  padding: 18px;
}

.card-title,
.trash-card-head,
.report-card-head,
.account-editor-head {
  border-bottom-color: var(--mn1-border) !important;
}

.form-grid {
  gap: 13px;
}

.inline-client-form,
.slots-panel,
.related-bases,
.combo-items-panel,
.combo-presets-panel,
.combo-preset-manager,
.otp-config-panel,
.grouped-template-box {
  background: rgba(4, 12, 24, 0.62) !important;
  border-color: rgba(99, 166, 198, 0.22) !important;
  border-radius: var(--mn1-radius) !important;
}

.table-wrap,
.base-table,
.accounts-table,
.compact-base,
.panel-table-shell,
.related-table,
.notification-list,
.combo-list,
.client-results,
.account-results {
  overscroll-behavior: contain;
  scrollbar-color: rgba(102, 157, 188, 0.5) rgba(4, 11, 22, 0.35);
  scrollbar-width: thin;
  touch-action: pan-x pan-y;
  -webkit-overflow-scrolling: touch;
}

table {
  border-color: rgba(106, 156, 191, 0.16) !important;
}

thead th {
  background: rgba(4, 12, 24, 0.97) !important;
  border-bottom-color: rgba(106, 174, 204, 0.24) !important;
  color: #b7c8d6 !important;
  font-size: 11.5px;
  letter-spacing: 0.015em;
}

tbody td {
  border-bottom-color: rgba(104, 151, 184, 0.14) !important;
}

tbody tr:hover > td {
  background-color: rgba(18, 55, 77, 0.34);
}

.empty,
.security-empty,
.mobile-empty,
.combo-empty {
  color: #8fa5b8;
  line-height: 1.5;
}

.pill,
.status-chip,
.security-pill,
.account-stock-badge,
.trash-counter {
  border-radius: 999px !important;
  letter-spacing: 0 !important;
}

.sale-editor,
.account-editor,
.renew-modal,
.whatsapp-modal,
.mass-confirm-modal,
.base-combo-modal {
  animation: none !important;
  background:
    radial-gradient(circle at 0 0, rgba(26, 123, 151, 0.13), transparent 30%),
    linear-gradient(145deg, #0a1728, #080f1d 65%, #101326) !important;
  border-color: rgba(81, 185, 207, 0.34) !important;
  border-radius: 20px !important;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.46) !important;
  transform: none;
  will-change: auto !important;
}

.renew-modal-backdrop,
.whatsapp-modal-backdrop,
.mass-confirm-backdrop,
.base-combo-overlay {
  backdrop-filter: blur(4px) !important;
  background: rgba(1, 5, 12, 0.74) !important;
}

.content.base-fragment-loading,
.compact-base tbody .clickable-row.row-opening {
  filter: none !important;
}

/* Menu */
.menu-page .content {
  padding: clamp(18px, 2.2vw, 34px) !important;
}

.menu-hero,
.menu-grid {
  margin-left: auto;
  margin-right: auto;
  max-width: 1440px;
  width: 100%;
}

.menu-hero {
  background:
    radial-gradient(circle at 9% 18%, rgba(31, 159, 183, 0.2), transparent 26rem),
    linear-gradient(135deg, rgba(11, 31, 51, 0.98), rgba(29, 27, 69, 0.8)) !important;
  border-color: rgba(88, 177, 205, 0.27) !important;
  border-radius: 22px;
  box-shadow: var(--mn1-shadow);
  margin-top: 0;
  min-height: 132px;
  padding: 22px;
}

.menu-grid {
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  padding: 18px 0 36px;
}

.module-card {
  background: linear-gradient(145deg, rgba(11, 24, 42, 0.92), rgba(8, 16, 30, 0.84)) !important;
  border-color: rgba(105, 159, 193, 0.2) !important;
  border-radius: 17px;
  box-shadow: 0 8px 26px rgba(0, 0, 0, 0.14);
  min-height: 100px;
}

.module-card:hover {
  background: linear-gradient(145deg, rgba(14, 35, 55, 0.98), rgba(10, 21, 38, 0.94)) !important;
  border-color: rgba(59, 205, 221, 0.42) !important;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.2) !important;
  transform: translateY(-1px);
}

/* Operational overviews */
.panel-overview,
.accounts-overview,
.reports-kpi-grid,
.summary-grid,
.security-stats {
  gap: 12px !important;
}

.panel-stat,
.accounts-overview > div,
.summary,
.reports-kpi-grid > *,
.security-stats > * {
  border-color: rgba(100, 166, 198, 0.22) !important;
  border-radius: 16px !important;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.16) !important;
}

.accounts-hero-crumb,
.notifications-hero,
.combo-hero,
.reports-hero-clean,
.trash-hero,
.security-hero {
  border-color: rgba(92, 176, 202, 0.26) !important;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.18) !important;
}

/* Base and account inventory */
body.base-page .base-table,
.accounts-table {
  border-radius: 16px !important;
}

body.base-page .compact-base thead th,
.accounts-table thead th {
  box-shadow: inset 0 -1px 0 rgba(98, 174, 204, 0.16);
}

body.base-page .compact-base tbody .clickable-row td,
.accounts-table tbody .clickable-row td {
  transition: background 100ms ease, border-color 100ms ease;
}

.legacy-action,
.account-status-buttons button {
  border-radius: 14px !important;
}

/* Combo builder */
.combo-builder {
  padding: clamp(14px, 1.6vw, 24px) !important;
}

.combo-hero {
  border-radius: 20px !important;
  padding: clamp(18px, 2vw, 28px) !important;
}

.combo-presets-panel,
.combo-items-panel,
.combo-preset-manager {
  padding: clamp(14px, 1.5vw, 22px) !important;
}

.combo-preset-grid {
  gap: 12px !important;
}

.combo-preset-card {
  background: linear-gradient(145deg, rgba(13, 29, 49, 0.96), rgba(7, 15, 29, 0.96)) !important;
  border-color: rgba(83, 172, 202, 0.28) !important;
  border-radius: 16px !important;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.16) !important;
  min-height: 112px;
  transition: background 120ms ease, border-color 120ms ease, transform 120ms ease !important;
}

.combo-preset-card:hover {
  border-color: rgba(59, 205, 221, 0.54) !important;
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.2) !important;
  transform: translateY(-1px) !important;
}

.combo-item,
.combo-edit-item {
  background: rgba(5, 14, 27, 0.72) !important;
  border-color: rgba(100, 163, 195, 0.2) !important;
  border-radius: 15px !important;
}

/* Reports and communications */
.reports-filter-card,
.reports-hero-clean,
.reports-main-grid > *,
.reports-details > *,
.notifications-hero,
.notification-card {
  border-radius: 20px !important;
}

.reports-page,
.notification-grid,
.trash-grid,
.security-grid {
  gap: 16px !important;
}

.notification-card,
.security-card,
.trash-card {
  padding: clamp(14px, 1.7vw, 22px) !important;
}

/* Native scrollbars */
*::-webkit-scrollbar {
  height: 9px;
  width: 9px;
}

*::-webkit-scrollbar-track {
  background: rgba(3, 9, 18, 0.34);
}

*::-webkit-scrollbar-thumb {
  background: rgba(92, 143, 173, 0.42);
  border: 2px solid rgba(3, 9, 18, 0.72);
  border-radius: 999px;
}

*::-webkit-scrollbar-thumb:hover {
  background: rgba(83, 190, 208, 0.56);
}

@media (max-width: 1100px) {
  .layout {
    grid-template-columns: 64px minmax(0, 1fr) !important;
  }

  .page-crumb {
    align-items: center !important;
    flex-direction: row !important;
    flex-wrap: wrap !important;
    height: auto !important;
    justify-content: space-between !important;
    min-height: 54px !important;
  }

  .page-crumb > span {
    flex: 1 1 150px !important;
    height: auto !important;
  }

  .page-crumb .base-top-actions {
    flex: 0 1 auto !important;
    justify-content: flex-end !important;
    margin-left: auto !important;
    max-width: calc(100% - 160px) !important;
    width: auto !important;
  }

  .nav-item {
    justify-content: center;
    padding-inline: 0;
  }

  .nav-label {
    display: none;
  }

  .sidebar .nav-icon {
    color: #9ddce5;
  }

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

  .wide-field {
    grid-column: 1 / -1;
  }
}

@media (max-width: 760px) {
  html {
    scrollbar-gutter: auto;
  }

  .topbar,
  .layout {
    min-width: 0 !important;
  }

  .topbar {
    gap: 7px;
    height: 52px;
    padding: 0 8px;
  }

  .hamburger {
    flex: 0 0 36px;
    height: 36px;
    width: 36px;
  }

  .logo {
    flex: 0 0 34px;
    gap: 0;
    min-width: 34px;
  }

  .logo-mark {
    height: 32px;
    width: 32px;
  }

  .logo-text {
    display: none;
  }

  .search {
    flex: 1 1 auto;
    font-size: 16px;
    margin: 0;
    max-width: none;
    min-width: 0;
    width: auto;
  }

  .avatar {
    flex: 0 0 34px;
    height: 34px;
    min-height: 34px;
    width: 34px;
  }

  .layout,
  .sidebar-collapsed .layout {
    grid-template-columns: 58px minmax(0, 1fr) !important;
    min-height: calc(100dvh - 52px);
  }

  .sidebar {
    height: calc(100dvh - 52px);
    padding-top: 7px;
    top: 52px;
  }

  .nav-item,
  .sidebar-collapsed .nav-item {
    justify-content: center;
    margin: 3px 7px;
    min-height: 39px;
    padding: 0;
  }

  .nav-label {
    display: none !important;
  }

  .content,
  body.base-page .content {
    max-width: calc(100vw - 58px) !important;
    padding: 10px !important;
  }

  .crumb,
  body.base-page .page-crumb {
    align-items: center !important;
    flex-direction: row !important;
    flex-wrap: wrap !important;
    gap: 8px !important;
    height: auto !important;
    margin: -10px -10px 12px !important;
    min-height: 54px !important;
    padding: 9px 10px !important;
  }

  .page-crumb > span,
  body.base-page .page-crumb > span {
    flex: 1 1 112px !important;
    min-width: 0 !important;
  }

  .page-crumb > .button,
  .action-crumb > .button {
    flex: 0 0 auto !important;
    margin-left: auto;
    min-height: 36px !important;
    width: auto !important;
  }

  body.base-page .page-crumb > span {
    flex-basis: 100% !important;
  }

  .page-crumb .base-top-actions,
  body.base-page .page-crumb .base-top-actions {
    display: grid !important;
    flex: 1 1 100% !important;
    gap: 7px !important;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin: 0 !important;
    max-width: none !important;
    overflow: visible !important;
    width: 100% !important;
  }

  .base-top-actions .button,
  .base-top-actions .add-sale-button,
  .base-top-actions .base-otp-sync,
  .base-top-actions .base-select-toggle,
  .base-top-actions .base-combo-create {
    height: 38px !important;
    justify-content: center !important;
    max-height: 38px !important;
    min-height: 38px !important;
    width: 100% !important;
  }

  .form-panel {
    border-radius: 16px !important;
    padding: 14px;
  }

  .form-grid,
  .combo-main-grid,
  .combo-edit-grid,
  .single-message-grid,
  .otp-settings-grid,
  .security-grid,
  .trash-grid,
  .reports-main-grid,
  .reports-details,
  .notification-grid {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  .reports-page,
  .reports-insights-grid,
  .reports-filter-card,
  .reports-hero-clean,
  .reports-equation,
  .notification-grid,
  .notification-card,
  .otp-help-card,
  .account-pick-form,
  .combo-history,
  .combo-history-grid,
  .combo-history-card {
    max-width: 100% !important;
    min-width: 0 !important;
    width: 100% !important;
  }

  .reports-filter-card,
  .reports-hero-clean,
  .reports-insights-grid,
  .otp-filter-form,
  .combo-history-grid {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  .reports-filter-card > *,
  .reports-filter-card label,
  .reports-filter-card input,
  .reports-filter-card button,
  .otp-filter-form > * {
    min-width: 0 !important;
    width: 100% !important;
  }

  .reports-hero-clean {
    min-height: 0 !important;
    overflow: hidden !important;
    padding: 18px !important;
  }

  .reports-hero-clean h1 {
    font-size: clamp(38px, 14vw, 58px) !important;
  }

  .reports-equation {
    gap: 7px !important;
    padding: 11px !important;
  }

  .reports-equation span {
    min-width: 0;
    padding: 8px 10px;
  }

  .reports-page .report-inner-table,
  .platform-report-wrap {
    max-width: 100% !important;
    width: 100% !important;
  }

  .combo-history-card header,
  .combo-history-meta,
  .combo-history-items > div,
  .combo-card-actions {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  .combo-history-card header {
    flex-wrap: wrap;
    gap: 8px;
  }

  .combo-history-meta,
  .combo-history-items > div,
  .combo-card-actions {
    display: grid !important;
  }

  .form-grid > *,
  .wide-field,
  .inline-client-form,
  .combo-main-grid > *,
  .combo-edit-grid > * {
    grid-column: 1 / -1 !important;
    min-width: 0;
  }

  .panel-overview,
  .accounts-overview,
  .reports-kpi-grid,
  .summary-grid,
  .security-stats {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  .table-wrap,
  .base-table,
  .accounts-table,
  .compact-base,
  .related-table,
  .panel-table-shell {
    max-width: 100% !important;
    width: 100% !important;
  }

  .base-table,
  .accounts-table {
    border-radius: 14px !important;
  }

  .sale-editor,
  .account-editor,
  .renew-modal,
  .whatsapp-modal,
  .mass-confirm-modal {
    border-radius: 16px !important;
  }

  .combo-builder {
    padding: 12px !important;
  }

  .combo-hero,
  .combo-presets-panel,
  .combo-items-panel,
  .combo-preset-manager {
    border-radius: 17px !important;
    padding: 16px !important;
  }

  .combo-hero {
    gap: 14px !important;
  }

  .combo-preset-grid {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  .combo-preset-card {
    min-height: 102px;
  }

  .notification-card,
  .security-card,
  .trash-card {
    border-radius: 16px !important;
    padding: 14px !important;
  }

  .renew-modal-backdrop,
  .whatsapp-modal-backdrop,
  .mass-confirm-backdrop,
  .base-combo-overlay {
    backdrop-filter: none !important;
  }
}

@media (max-width: 480px) {
  .menu-page .topbar {
    padding-inline: 10px;
  }

  .menu-page .content {
    max-width: 100vw !important;
    padding: 14px !important;
  }

  .menu-hero {
    align-items: flex-start;
    border-radius: 18px;
    gap: 14px;
    padding: 17px;
  }

  .menu-hero img {
    border-radius: 13px;
    height: 66px;
    width: 66px;
  }

  .menu-hero h1 {
    font-size: 24px;
  }

  .menu-grid {
    gap: 10px;
    grid-template-columns: minmax(0, 1fr);
    padding-top: 12px;
  }

  .module-card {
    min-height: 86px;
    padding: 13px;
  }

  .module-art {
    flex-basis: 48px;
    height: 48px;
    width: 48px;
  }

  .combo-hero {
    align-items: stretch !important;
  }

  .combo-total-card {
    max-width: none !important;
    width: 100% !important;
  }

  .mobile-sale-shell,
  .mobile-sale-form {
    max-width: 100% !important;
  }

  input,
  select,
  textarea {
    font-size: 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-delay: 0s !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}

/* Mobile checkout: one-hand sales flow */
.mobile-checkout,
.mobile-checkout * {
  box-sizing: border-box;
}

.mobile-checkout [hidden] {
  display: none !important;
}

.mobile-checkout {
  --mobile-accent: #22d3ee;
  --mobile-green: #34d399;
  --mobile-line: rgba(125, 211, 252, 0.18);
  --mobile-panel: #0c1729;
  max-width: 760px;
  padding: 12px 12px 124px;
}

.mobile-checkout .mobile-sale-head {
  align-items: center;
  margin-bottom: 12px;
  min-height: 52px;
}

.mobile-sale-brand {
  align-items: center;
  display: flex;
  gap: 11px;
  min-width: 0;
}

.mobile-sale-brand img {
  border: 1px solid rgba(34, 211, 238, 0.25);
  border-radius: 13px;
  box-shadow: 0 8px 24px rgba(6, 182, 212, 0.14);
  height: 44px;
  object-fit: cover;
  width: 44px;
}

.mobile-sale-brand div {
  min-width: 0;
}

.mobile-checkout .mobile-sale-brand span {
  color: #7dd3fc;
  display: block;
  font-size: 10px;
  letter-spacing: 0.11em;
  line-height: 1;
}

.mobile-checkout .mobile-sale-brand h1 {
  font-size: clamp(22px, 5vw, 28px);
  line-height: 1.08;
  margin: 4px 0 0;
}

.mobile-checkout .mobile-base-link {
  align-items: center;
  background: #0b1728;
  border-color: rgba(125, 211, 252, 0.22);
  display: inline-flex;
  font-size: 13px;
  gap: 4px;
  min-height: 42px;
  padding: 0 13px;
}

.mobile-checkout .mobile-base-link span {
  color: #67e8f9;
  font-size: 21px;
  line-height: 1;
}

.mobile-progress {
  align-items: center;
  background: #091423;
  border: 1px solid var(--mobile-line);
  border-radius: 17px;
  display: grid;
  grid-template-columns: auto minmax(16px, 1fr) auto minmax(16px, 1fr) auto;
  margin-bottom: 12px;
  padding: 9px 12px;
}

.mobile-progress > span {
  align-items: center;
  color: #71839a;
  display: inline-flex;
  gap: 6px;
}

.mobile-progress b {
  align-items: center;
  background: #111f33;
  border: 1px solid #25364d;
  border-radius: 999px;
  display: inline-flex;
  font-size: 11px;
  height: 24px;
  justify-content: center;
  width: 24px;
}

.mobile-progress small {
  font-size: 11px;
  font-weight: 850;
}

.mobile-progress i {
  background: #223147;
  height: 1px;
  margin: 0 7px;
}

.mobile-progress > span.active {
  color: #e6fbff;
}

.mobile-progress > span.active b {
  background: #0e7490;
  border-color: #22d3ee;
  box-shadow: 0 0 0 3px rgba(34, 211, 238, 0.09);
  color: #fff;
}

.mobile-progress > span.done {
  color: #a7f3d0;
}

.mobile-progress > span.done b {
  background: #065f46;
  border-color: #34d399;
  color: #fff;
}

.mobile-progress > span.done + i {
  background: rgba(52, 211, 153, 0.62);
}

.mobile-checkout .mobile-saved-alert {
  align-items: center;
  background: #0b2b25;
  border-color: rgba(52, 211, 153, 0.36);
  display: flex;
  gap: 11px;
  padding: 12px 14px;
}

.mobile-checkout .mobile-saved-alert > b {
  align-items: center;
  background: #10b981;
  border-radius: 999px;
  color: #06281f;
  display: inline-flex;
  flex: 0 0 28px;
  height: 28px;
  justify-content: center;
}

.mobile-checkout .mobile-saved-alert strong,
.mobile-checkout .mobile-saved-alert span {
  display: block;
}

.mobile-checkout .mobile-saved-alert span {
  color: #94d9c1;
  font-size: 12px;
  font-weight: 650;
  margin-top: 2px;
}

.mobile-checkout .mobile-sale-form {
  gap: 11px;
}

.mobile-checkout .mobile-step {
  background: var(--mobile-panel);
  border-color: var(--mobile-line);
  border-radius: 19px;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.15);
  padding: 15px;
}

.mobile-checkout .mobile-step.is-complete {
  border-color: rgba(52, 211, 153, 0.32);
}

.mobile-checkout .mobile-step-title {
  gap: 10px;
  margin-bottom: 12px;
}

.mobile-checkout .mobile-step-title > b {
  background: #0b2940;
  border-color: rgba(34, 211, 238, 0.36);
  flex: 0 0 34px;
  font-size: 13px;
  height: 34px;
  width: 34px;
}

.mobile-checkout .mobile-step.is-complete .mobile-step-title > b {
  background: #065f46;
  border-color: #34d399;
  color: #ecfdf5;
}

.mobile-checkout .mobile-step-title > div {
  min-width: 0;
}

.mobile-checkout .mobile-step-title h2 {
  font-size: 17px;
  line-height: 1.15;
  margin: 0 0 3px;
}

.mobile-checkout .mobile-step-title span {
  color: #8293a9;
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: none;
}

.mobile-step-title em {
  background: #101f33;
  border: 1px solid #263951;
  border-radius: 999px;
  color: #8ea0b7;
  font-size: 10px;
  font-style: normal;
  font-weight: 900;
  margin-left: auto;
  padding: 5px 8px;
}

.mobile-step.is-complete .mobile-step-title em {
  background: rgba(6, 95, 70, 0.26);
  border-color: rgba(52, 211, 153, 0.36);
  color: #6ee7b7;
}

.mobile-search-box {
  align-items: center;
  background: #06101f;
  border: 1px solid rgba(125, 211, 252, 0.28);
  border-radius: 14px;
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr) auto;
  min-height: 52px;
  padding: 0 8px 0 13px;
}

.mobile-search-box:focus-within {
  border-color: #22d3ee;
  box-shadow: 0 0 0 3px rgba(34, 211, 238, 0.09);
}

.mobile-search-box > span {
  color: #67e8f9;
  font-size: 22px;
}

.mobile-checkout .mobile-search-box input {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  color: #f8fafc;
  font-size: 16px;
  min-height: 50px;
  min-width: 0;
  outline: 0;
  padding: 0 8px;
  width: 100%;
}

.mobile-search-box > button {
  align-items: center;
  background: #17263a !important;
  border: 0 !important;
  border-radius: 999px !important;
  color: #b9c7d8 !important;
  display: inline-flex;
  font-size: 20px;
  height: 34px;
  justify-content: center;
  min-height: 34px !important;
  padding: 0 !important;
  width: 34px !important;
}

.mobile-checkout .mobile-result-list {
  background: #081424;
  border: 1px solid rgba(125, 211, 252, 0.18);
  border-radius: 16px;
  display: none;
  gap: 0;
  margin: 8px 0 10px;
  max-height: min(360px, 48dvh);
  overscroll-behavior: contain;
  overflow-y: auto;
  scrollbar-width: thin;
  touch-action: pan-y;
}

.mobile-checkout .mobile-result-list.open {
  display: grid;
}

.mobile-checkout .mobile-result-list > button {
  align-items: center;
  background: transparent;
  border: 0;
  border-bottom: 1px solid rgba(148, 163, 184, 0.12);
  border-radius: 0;
  color: #f8fafc;
  display: grid;
  gap: 10px;
  grid-template-columns: 40px minmax(0, 1fr) auto;
  min-height: 64px;
  padding: 9px 11px;
  text-align: left;
  width: 100%;
}

.mobile-checkout .mobile-result-list > button:last-child {
  border-bottom: 0;
}

.mobile-result-avatar,
.mobile-result-account-icon {
  align-items: center;
  background: #10233a;
  border: 1px solid #29425d;
  border-radius: 12px;
  color: #67e8f9 !important;
  display: inline-flex !important;
  font-size: 14px;
  font-style: normal;
  font-weight: 950;
  height: 40px;
  justify-content: center;
  margin: 0 !important;
  width: 40px;
}

.mobile-result-copy {
  display: block !important;
  min-width: 0;
}

.mobile-checkout .mobile-result-copy strong,
.mobile-checkout .mobile-result-copy small,
.mobile-checkout .mobile-result-copy em {
  display: block;
  margin: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mobile-checkout .mobile-result-copy strong {
  color: #f4f8fc;
  font-size: 13px;
}

.mobile-checkout .mobile-result-copy small {
  color: #91a4bb;
  font-size: 11px;
  margin-top: 3px;
}

.mobile-checkout .mobile-result-copy em {
  color: #67e8f9;
  font-size: 10px;
  font-style: normal;
  font-weight: 750;
  margin-top: 3px;
}

.mobile-checkout .mobile-result-list > button > i {
  color: #5f748e;
  font-size: 22px;
  font-style: normal;
}

.mobile-free-badge {
  background: rgba(16, 185, 129, 0.13);
  border: 1px solid rgba(52, 211, 153, 0.28);
  border-radius: 999px;
  color: #6ee7b7 !important;
  display: inline-block !important;
  font-size: 9px;
  font-weight: 900;
  margin: 0 !important;
  padding: 5px 7px;
  white-space: nowrap;
}

.mobile-checkout .mobile-empty {
  display: grid;
  gap: 3px;
  padding: 18px 14px;
  text-align: center;
}

.mobile-checkout .mobile-empty b {
  color: #d7e1ed;
  font-size: 13px;
}

.mobile-checkout .mobile-empty span {
  color: #7f91a8;
  font-size: 11px;
}

.mobile-checkout .mobile-ghost-btn {
  background: transparent;
  border: 0;
  color: #67e8f9;
  font-size: 12px;
  min-height: 42px;
  padding: 4px 2px;
}

.mobile-inline-client {
  background: #091727;
  border: 1px solid rgba(34, 211, 238, 0.24);
  border-radius: 16px;
  gap: 11px;
  margin-top: 10px;
  padding: 13px;
}

.mobile-inline-head {
  align-items: center;
  display: flex;
  justify-content: space-between;
}

.mobile-inline-head button {
  align-items: center;
  background: #17263a !important;
  border: 0 !important;
  border-radius: 999px !important;
  display: inline-flex;
  font-size: 19px;
  height: 34px;
  justify-content: center;
  min-height: 34px;
  padding: 0 !important;
  width: 34px !important;
}

.mobile-inline-client label,
.mobile-advanced label,
.mobile-price-row label {
  color: #aebdd0;
  display: grid;
  font-size: 11px;
  font-weight: 800;
  gap: 6px;
}

.mobile-inline-client input,
.mobile-advanced input,
.mobile-price-row input {
  background: #06101f;
  border: 1px solid rgba(125, 211, 252, 0.25);
  border-radius: 13px;
  color: #f8fafc;
  font-size: 16px;
  min-height: 48px;
  min-width: 0;
  padding: 0 12px;
  width: 100%;
}

.mobile-create-client-btn {
  background: linear-gradient(135deg, #06b6d4, #10b981) !important;
  border: 0 !important;
  color: #03151b !important;
  font-weight: 950;
  min-height: 48px;
  text-align: center !important;
}

.mobile-inline-error {
  background: rgba(127, 29, 29, 0.24);
  border: 1px solid rgba(251, 113, 133, 0.28);
  border-radius: 10px;
  color: #fda4af;
  padding: 8px 10px;
}

.mobile-selected-card {
  align-items: center;
  background: #09251f;
  border: 1px solid rgba(52, 211, 153, 0.3);
  border-radius: 15px;
  display: grid;
  gap: 10px;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  margin-top: 0;
  padding: 11px;
}

.mobile-selected-icon {
  align-items: center;
  background: #064e3b;
  border: 1px solid rgba(110, 231, 183, 0.32);
  border-radius: 12px;
  color: #d1fae5;
  display: inline-flex;
  font-size: 15px;
  font-weight: 950;
  height: 42px;
  justify-content: center;
  width: 42px;
}

.mobile-selected-icon.account-icon {
  color: #67e8f9;
  font-size: 12px;
}

.mobile-selected-card > div {
  min-width: 0;
}

.mobile-selected-card strong,
.mobile-selected-card span,
.mobile-selected-card small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mobile-selected-card strong {
  color: #f1fdf8;
  font-size: 13px;
}

.mobile-selected-card span,
.mobile-selected-card small {
  color: #9fc8bc;
  font-size: 10px;
  margin-top: 3px;
}

.mobile-selected-card > button {
  background: transparent !important;
  border: 1px solid rgba(110, 231, 183, 0.28) !important;
  border-radius: 999px !important;
  color: #6ee7b7 !important;
  font-size: 10px;
  font-weight: 900;
  min-height: 38px;
  padding: 0 9px !important;
}

.mobile-auto-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 7px;
}

.mobile-auto-badges b {
  background: rgba(34, 211, 238, 0.1);
  border: 1px solid rgba(34, 211, 238, 0.22);
  border-radius: 999px;
  color: #a5f3fc;
  font-size: 9px;
  padding: 4px 7px;
}

.mobile-quick-filters {
  display: flex;
  gap: 7px;
  margin-top: 9px;
  overflow-x: auto;
  padding-bottom: 2px;
  scrollbar-width: none;
  touch-action: pan-x;
}

.mobile-quick-filters::-webkit-scrollbar {
  display: none;
}

.mobile-quick-filters button {
  background: #101f32;
  border: 1px solid #263a52;
  border-radius: 999px;
  color: #b6c6d8;
  flex: 0 0 auto;
  font-size: 11px;
  font-weight: 850;
  min-height: 38px;
  padding: 0 13px;
}

.mobile-checkout .mobile-pay-grid {
  gap: 7px;
  margin: 0 0 13px;
}

.mobile-checkout .mobile-pay-grid button {
  align-items: center;
  background: #091526;
  border: 1px solid #27384e;
  border-radius: 13px;
  color: #9aabc0;
  display: flex;
  flex-direction: column;
  font-size: 10px;
  gap: 3px;
  justify-content: center;
  min-height: 57px;
  padding: 6px 3px;
}

.mobile-checkout .mobile-pay-grid button span {
  font-size: 17px;
  line-height: 1;
}

.mobile-checkout .mobile-pay-grid button.pending.active {
  background: rgba(190, 24, 93, 0.14);
  border-color: rgba(244, 114, 182, 0.55);
  color: #f9a8d4;
  box-shadow: 0 0 0 2px rgba(244, 114, 182, 0.07);
}

.mobile-checkout .mobile-pay-grid button.grace.active {
  background: rgba(180, 83, 9, 0.16);
  border-color: rgba(251, 191, 36, 0.55);
  color: #fcd34d;
  box-shadow: 0 0 0 2px rgba(251, 191, 36, 0.07);
}

.mobile-checkout .mobile-pay-grid button.paid.active {
  background: rgba(5, 150, 105, 0.16);
  border-color: rgba(52, 211, 153, 0.55);
  color: #6ee7b7;
  box-shadow: 0 0 0 2px rgba(52, 211, 153, 0.07);
}

.mobile-price-row {
  align-items: end;
  display: grid;
  gap: 10px;
  grid-template-columns: minmax(0, 1fr) 132px;
}

.mobile-money-input {
  align-items: center;
  background: #06101f;
  border: 1px solid rgba(125, 211, 252, 0.28);
  border-radius: 13px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  min-height: 52px;
  padding-left: 12px;
}

.mobile-money-input b {
  color: #34d399;
  font-size: 17px;
}

.mobile-checkout .mobile-money-input input {
  background: transparent;
  border: 0;
  box-shadow: none;
  font-size: 19px;
  font-weight: 950;
  min-height: 50px;
  outline: 0;
  padding-left: 7px;
}

.mobile-quantity-control {
  align-items: center;
  background: #06101f;
  border: 1px solid rgba(125, 211, 252, 0.28);
  border-radius: 13px;
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) 40px;
  min-height: 52px;
  overflow: hidden;
}

.mobile-quantity-control button {
  align-items: center;
  background: #122239;
  border: 0;
  color: #a5f3fc;
  display: inline-flex;
  font-size: 20px;
  height: 50px;
  justify-content: center;
  min-height: 50px;
  padding: 0;
}

.mobile-checkout .mobile-quantity-control input {
  -moz-appearance: textfield;
  background: transparent;
  border: 0;
  box-shadow: none;
  font-weight: 950;
  min-height: 50px;
  padding: 0;
  text-align: center;
}

.mobile-quantity-control input::-webkit-inner-spin-button,
.mobile-quantity-control input::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.mobile-advanced {
  background: #091526;
  border: 1px solid rgba(125, 211, 252, 0.16);
  border-radius: 17px;
  overflow: hidden;
}

.mobile-advanced summary {
  align-items: center;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  list-style: none;
  min-height: 62px;
  padding: 10px 14px;
  user-select: none;
}

.mobile-advanced summary::-webkit-details-marker {
  display: none;
}

.mobile-advanced summary > span {
  align-items: center;
  display: flex;
  gap: 10px;
}

.mobile-advanced summary > span > b {
  align-items: center;
  background: #11243a;
  border-radius: 11px;
  color: #67e8f9;
  display: inline-flex;
  height: 37px;
  justify-content: center;
  width: 37px;
}

.mobile-advanced summary strong,
.mobile-advanced summary small {
  display: block;
}

.mobile-advanced summary strong {
  color: #dbe7f3;
  font-size: 12px;
}

.mobile-advanced summary small {
  color: #7f91a8;
  font-size: 10px;
  margin-top: 2px;
}

.mobile-advanced summary > i {
  color: #6f839b;
  font-size: 18px;
  font-style: normal;
}

.mobile-advanced[open] summary > i {
  transform: rotate(180deg);
}

.mobile-advanced-body {
  border-top: 1px solid rgba(125, 211, 252, 0.12);
  display: grid;
  gap: 11px;
  padding: 13px;
}

.mobile-checkout .mobile-advanced input[readonly] {
  background: rgba(8, 145, 178, 0.08);
  border-color: rgba(34, 211, 238, 0.36);
  color: #a5f3fc;
}

.mobile-checkout .mobile-sticky-save {
  background: #06111f;
  border-color: rgba(34, 211, 238, 0.28);
  border-radius: 18px;
  bottom: 9px;
  box-shadow: 0 14px 38px rgba(0, 0, 0, 0.52);
  gap: 9px;
  min-height: 70px;
  padding: 9px;
}

.mobile-sticky-summary {
  min-width: 0;
  padding-left: 4px;
}

.mobile-checkout .mobile-sticky-summary span {
  max-width: 285px;
}

.mobile-checkout .mobile-sticky-summary strong {
  color: #f8fafc;
  font-size: 16px;
  margin-top: 3px;
}

.mobile-checkout .mobile-sticky-save button[type="submit"] {
  align-items: center;
  background: #12314a;
  border: 1px solid rgba(34, 211, 238, 0.36);
  border-radius: 14px;
  box-shadow: none;
  color: #d8f8fd;
  display: inline-flex;
  flex: 0 0 auto;
  gap: 7px;
  justify-content: center;
  min-height: 52px;
  padding: 0 15px;
}

.mobile-checkout .mobile-sticky-save button[type="submit"] > span:first-child {
  align-items: center;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  color: inherit;
  display: inline-flex;
  font-size: 10px;
  height: 23px;
  justify-content: center;
  width: 23px;
}

.mobile-checkout .mobile-sticky-save button[type="submit"] > span:last-child {
  color: inherit;
  font-size: 12px;
  font-weight: 950;
  max-width: none;
}

.mobile-checkout .mobile-sticky-save button[type="submit"].ready {
  background: linear-gradient(135deg, #06b6d4, #10b981);
  border-color: transparent;
  color: #03151b;
}

@media (max-width: 760px) {
  body.route-movil {
    min-width: 0;
    overflow-x: hidden !important;
  }

  body.route-movil .topbar,
  body.route-movil .sidebar,
  body.route-movil:not(.menu-page):not(.sidebar-collapsed) .sidebar {
    display: none !important;
  }

  body.route-movil .layout {
    display: block !important;
    min-height: 100dvh !important;
  }

  body.route-movil .content {
    max-width: 100vw !important;
    min-width: 0 !important;
    overflow: visible !important;
    padding: 0 !important;
    width: 100% !important;
  }

  .mobile-checkout {
    margin: 0 auto;
    max-width: 100%;
    padding: max(10px, env(safe-area-inset-top)) 11px calc(112px + env(safe-area-inset-bottom));
    width: 100%;
  }

  .mobile-progress {
    position: sticky;
    top: 0;
    z-index: 30;
  }

  .mobile-checkout .mobile-sticky-save {
    bottom: max(8px, env(safe-area-inset-bottom));
  }

  .mobile-checkout button,
  .mobile-checkout a,
  .mobile-checkout summary {
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
  }

  .mobile-checkout .mobile-base-link,
  .mobile-checkout .mobile-ghost-btn,
  .mobile-checkout [data-mobile-quantity-step] {
    min-height: 44px;
    min-width: 44px;
  }
}

@media (max-width: 390px) {
  .mobile-checkout {
    padding-inline: 8px;
  }

  .mobile-checkout .mobile-step {
    border-radius: 17px;
    padding: 13px;
  }

  .mobile-progress {
    padding-inline: 9px;
  }

  .mobile-progress small {
    font-size: 10px;
  }

  .mobile-step-title em {
    display: none;
  }

  .mobile-price-row {
    grid-template-columns: minmax(0, 1fr) 124px;
  }

  .mobile-checkout .mobile-sticky-summary span {
    max-width: 165px;
  }
}

@media (max-width: 345px) {
  .mobile-progress small,
  .mobile-checkout .mobile-sticky-summary span {
    display: none;
  }

  .mobile-progress {
    grid-template-columns: auto 1fr auto 1fr auto;
  }

  .mobile-checkout .mobile-sticky-save button[type="submit"] {
    padding-inline: 11px;
  }
}

/* Base bulk selection: unmistakable checked state */
body.base-page.bulk-enabled .compact-base .bulk-col,
body.base-page.bulk-enabled .compact-base .bulk-cell,
body.base-page.bulk-mode .compact-base .bulk-col,
body.base-page.bulk-mode .compact-base .bulk-cell {
  min-width: 42px !important;
  padding-left: 8px !important;
  padding-right: 6px !important;
  width: 42px !important;
}

body.base-page .compact-base .bulk-cell input,
body.base-page .compact-base .bulk-col input {
  appearance: none !important;
  -webkit-appearance: none !important;
  background: #071322 !important;
  border: 2px solid #5f7894 !important;
  border-radius: 7px !important;
  box-shadow: inset 0 0 0 2px rgba(2, 6, 23, 0.66) !important;
  cursor: pointer !important;
  display: inline-grid !important;
  height: 22px !important;
  margin: 0 !important;
  max-height: 22px !important;
  max-width: 22px !important;
  min-height: 22px !important;
  min-width: 22px !important;
  padding: 0 !important;
  place-items: center !important;
  position: relative !important;
  vertical-align: middle !important;
  width: 22px !important;
}

body.base-page .compact-base .bulk-cell input:hover,
body.base-page .compact-base .bulk-col input:hover,
body.base-page .compact-base .bulk-cell input:focus-visible,
body.base-page .compact-base .bulk-col input:focus-visible {
  border-color: #67e8f9 !important;
  box-shadow: 0 0 0 4px rgba(34, 211, 238, 0.14) !important;
  outline: none !important;
}

body.base-page .compact-base .bulk-cell input:checked,
body.base-page .compact-base .bulk-col input:checked {
  background: linear-gradient(135deg, #22d3ee, #2dd4bf) !important;
  border-color: #a5f3fc !important;
  box-shadow:
    0 0 0 3px rgba(34, 211, 238, 0.16),
    0 0 16px rgba(34, 211, 238, 0.32) !important;
}

body.base-page .compact-base .bulk-cell input:checked::after,
body.base-page .compact-base .bulk-col input:checked::after {
  color: #02202a !important;
  content: "\2713" !important;
  font-family: Arial, sans-serif !important;
  font-size: 15px !important;
  font-weight: 950 !important;
  inset: auto !important;
  line-height: 1 !important;
  position: static !important;
}

body.base-page.bulk-enabled .compact-base tbody tr.clickable-row[data-sale-row].bulk-selected-row > td,
body.base-page.bulk-mode .compact-base tbody tr.clickable-row[data-sale-row].bulk-selected-row > td {
  background:
    linear-gradient(90deg, rgba(8, 145, 178, 0.34), rgba(12, 35, 55, 0.94) 42%, rgba(9, 20, 35, 0.98)) !important;
  border-bottom-color: rgba(34, 211, 238, 0.58) !important;
  border-top-color: rgba(34, 211, 238, 0.5) !important;
  box-shadow:
    inset 0 1px 0 rgba(103, 232, 249, 0.18),
    inset 0 -1px 0 rgba(34, 211, 238, 0.2) !important;
}

body.base-page.bulk-enabled .compact-base tbody tr.clickable-row[data-sale-row].bulk-selected-row > .bulk-cell,
body.base-page.bulk-mode .compact-base tbody tr.clickable-row[data-sale-row].bulk-selected-row > .bulk-cell {
  background: linear-gradient(90deg, rgba(6, 182, 212, 0.48), rgba(8, 145, 178, 0.34)) !important;
  box-shadow:
    inset 4px 0 0 #67e8f9,
    inset 0 1px 0 rgba(165, 243, 252, 0.24),
    inset 0 -1px 0 rgba(34, 211, 238, 0.3) !important;
}

body.base-page .compact-base tr.bulk-selected-row .product-cell,
body.base-page .compact-base tr.bulk-selected-row .client-name,
body.base-page .compact-base tr.bulk-selected-row .amount {
  color: #f4fdff !important;
}

@media (max-width: 760px) {
  body.base-page.bulk-enabled .compact-base .bulk-col,
  body.base-page.bulk-enabled .compact-base .bulk-cell,
  body.base-page.bulk-mode .compact-base .bulk-col,
  body.base-page.bulk-mode .compact-base .bulk-cell {
    min-width: 46px !important;
    width: 46px !important;
  }

  body.base-page .compact-base .bulk-cell input,
  body.base-page .compact-base .bulk-col input {
    height: 24px !important;
    max-height: 24px !important;
    max-width: 24px !important;
    min-height: 24px !important;
    min-width: 24px !important;
    width: 24px !important;
  }
}
