:root {
  --font-main: "Outfit", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  --bg: #f8fafc;
  --bg-soft: #f1f5f9;
  --surface: #ffffff;
  --surface-strong: #ffffff;
  --sidebar: #0f172a;
  --sidebar-soft: #1e293b;
  --text: #0f172a;
  --muted: #64748b;
  --gold: #b48e42;
  --gold-soft: #ebd39c;
  --line: #e2e8f0;
  --line-strong: #cbd5e1;
  --success: #10b981;
  --error: #ef4444;
  --shadow: 0 4px 12px rgba(15, 23, 42, 0.05);
  --shadow-soft: 0 1px 3px rgba(15, 23, 42, 0.02);
  --radius-xl: 16px;
  --radius-lg: 12px;
  --radius-md: 8px;
  --input-height: 44px;
  --sidebar-width: 260px;
  --content-max: 1440px;
  --section-gap: 24px;
  --card-padding: 20px;
  
  /* Animation Tokens */
  --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 250ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 400ms cubic-bezier(0.2, 0.8, 0.2, 1);

  --product-thumb-sm: 72px;
  --product-thumb-md: 96px;
  --product-thumb-lg: 112px;
  --product-media-list-w: 160px;
  --product-media-list-h: 136px;
  --product-media-stock-w: 144px;
  --product-media-stock-h: 128px;
  --product-media-card: 112px;
  --product-media-mobile: 104px;
}

html[data-theme="dark"] {
  --bg: #0f172a;
  --bg-soft: #1e293b;
  --surface: #1e293b;
  --surface-strong: #0f172a;
  --sidebar: #020617;
  --sidebar-soft: #0f172a;
  --text: #f8fafc;
  --muted: #94a3b8;
  --gold: #b48e42;
  --gold-soft: #ebd39c;
  --line: #334155;
  --line-strong: #475569;
  --success: #10b981;
  --error: #ef4444;
  --shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
  --shadow-soft: 0 1px 3px rgba(0, 0, 0, 0.2);
}

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

html {
  overflow-x: hidden;
}

body {
  margin: 0;
  font-family: var(--font-main);
  color: var(--text);
  background: var(--bg); /* Clean solid background */
  min-height: 100vh;
  overflow-x: hidden;
  line-height: 1.45;
}

body.theme-dark {
  background: var(--bg); /* Clean solid background */
  color: var(--text);
}

body.theme-dark .hero-card,
body.theme-dark .panel,
body.theme-dark .mini-card,
body.theme-dark .card,
body.theme-dark .token-box,
body.theme-dark .settings-list,
body.theme-dark .import-box,
body.theme-dark .stat-card,
body.theme-dark .search-result-card,
body.theme-dark .wizard-summary-card,
body.theme-dark .operation-file-card,
body.theme-dark .message-preview,
body.theme-dark .empty-state,
body.theme-dark .active-campaign-card,
body.theme-dark .ai-log-detail-panel,
body.theme-dark .ai-import-summary-item,
body.theme-dark .ai-import-summary-list,
body.theme-dark .pagbank-condition-box,
body.theme-dark .pagbank-warning-box,
body.theme-dark .modal-card {
  background: rgba(22, 28, 33, 0.94);
  border-color: rgba(255, 255, 255, 0.08);
  color: var(--text);
}

body.theme-dark .sidebar {
  background: linear-gradient(180deg, #081010, #0d1617);
  box-shadow: 16px 0 40px rgba(0, 0, 0, 0.36);
}

body.theme-dark .topbar,
body.theme-dark .ai-channel-settings,
body.theme-dark .settings-list > div,
body.theme-dark th,
body.theme-dark td,
body.theme-dark .ai-import-history-item {
  border-color: rgba(255, 255, 255, 0.08);
}

body.theme-dark .status-banner,
body.theme-dark .user-chip,
body.theme-dark .badge,
body.theme-dark .checkbox-field,
body.theme-dark .ai-product-media-slot,
body.theme-dark .ai-gender-options,
body.theme-dark .ai-size-options,
body.theme-dark .ai-product-card,
body.theme-dark .ai-product-row-card,
body.theme-dark .media-preview-box,
body.theme-dark .preview-badge.ready,
body.theme-dark .preview-badge.update,
body.theme-dark .preview-badge.duplicate,
body.theme-dark .preview-badge.ignored {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.09);
  color: var(--text);
}

body.theme-dark input,
body.theme-dark textarea,
body.theme-dark select {
  background: rgba(10, 14, 18, 0.92);
  color: var(--text);
  border-color: rgba(255, 255, 255, 0.1);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

body.theme-dark input::placeholder,
body.theme-dark textarea::placeholder {
  color: #95a0a5;
}

body.theme-dark input:focus,
body.theme-dark textarea:focus,
body.theme-dark select:focus {
  outline-color: rgba(210, 165, 84, 0.28);
  border-color: rgba(210, 165, 84, 0.55);
}

body.theme-dark .secondary-button,
body.theme-dark .ghost-button,
body.theme-dark .ai-tab-button,
body.theme-dark .quick-range-button,
body.theme-dark .pagbank-option-chip,
body.theme-dark .pagbank-inline-check,
body.theme-dark .menu-link {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  border-color: rgba(255, 255, 255, 0.08);
}

body.theme-dark .primary-button {
  background: linear-gradient(135deg, #1d5f56, #297468);
}

body.theme-dark .primary-button:disabled,
body.theme-dark .secondary-button:disabled,
body.theme-dark .ghost-button:disabled {
  opacity: 0.45;
}

body.theme-dark .table-wrap,
body.theme-dark .cashback-report-table-panel .table-wrap {
  background: rgba(16, 22, 27, 0.8);
}

body.theme-dark th {
  background: #1a2024;
  color: #cad2d6;
}

body.theme-dark tbody tr:hover td {
  background: rgba(255, 255, 255, 0.04);
}

body.theme-dark .table-meta,
body.theme-dark .helper-text,
body.theme-dark .login-help,
body.theme-dark .pin-validated-subtitle,
body.theme-dark .ai-table-secondary,
body.theme-dark .media-preview-meta span,
body.theme-dark .ai-product-card-body span,
body.theme-dark .brand p,
body.theme-dark .sidebar-footer,
body.theme-dark .eyebrow {
  color: var(--muted);
}

body.theme-dark .text-link,
body.theme-dark #pagbank-checkout-result a {
  color: #7ad4ab;
}

body.theme-dark .operation-error-banner,
body.theme-dark .login-error,
body.theme-dark .ai-import-preview-error {
  color: #ff9b9b;
}

body.theme-dark .cashback-reports-shell {
  background:
    radial-gradient(circle at top right, rgba(210, 165, 84, 0.18), transparent 26%),
    linear-gradient(145deg, #0a1013, #141b1f 58%, #182026);
}

body.theme-dark .login-overlay,
body.theme-dark .modal-overlay {
  background: rgba(0, 0, 0, 0.72);
}

body.theme-dark .theme-help-box {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.08);
}

body.theme-dark .loading-overlay:not(.blocking) .loading-overlay-card,
body.theme-dark .operation-status,
body.theme-dark .inline-loading {
  background: rgba(19, 25, 30, 0.96);
  border-color: rgba(255, 255, 255, 0.1);
  color: var(--text);
}

body.theme-dark .loading-progress-meta {
  color: rgba(241, 236, 228, 0.72);
}

body.theme-dark .loading-progress-meta strong {
  color: #f6efe3;
}

body.theme-dark .loading-progress-track {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.08);
}

body.theme-dark .loading-overlay.blocking {
  background: rgba(6, 10, 13, 0.54);
}

body.theme-dark .loading-spinner,
body.theme-dark .button-loading-spinner {
  border-color: rgba(255, 255, 255, 0.14);
  border-top-color: var(--gold);
}

body.theme-dark .pdv-route-tab,
body.theme-dark .pdv-token,
body.theme-dark .pdv-foundation-list-item {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.08);
  color: var(--text);
}

body.theme-dark .pdv-report-kpi-card,
body.theme-dark .pdv-report-finance-group,
body.theme-dark .pdv-report-empty-state,
body.theme-dark .pdv-report-table-wrap {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.08);
}

body.theme-dark .pdv-report-badge {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.12);
  color: var(--text);
}

button,
input,
textarea,
select {
  font: inherit;
}

button {
  appearance: none;
}

img,
svg,
video,
canvas {
  max-width: 100%;
}

.app-shell {
  min-height: 100vh;
}

.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: var(--sidebar-width);
  background: linear-gradient(180deg, var(--sidebar), #0c1716);
  color: #fff;
  padding: 28px 20px;
  display: flex;
  flex-direction: column;
  gap: 22px;
  overflow-y: auto;
  z-index: 20;
  box-shadow: 16px 0 40px rgba(9, 19, 17, 0.14);
}

.brand h1 {
  margin: 0;
  font-size: clamp(1.8rem, 2vw, 2rem);
  font-weight: 800;
  line-height: 1.1;
}

.brand p,
.sidebar-footer,
.eyebrow {
  color: rgba(255, 255, 255, 0.72);
}

.brand p {
  margin: 8px 0 0;
  line-height: 1.55;
  max-width: 22ch;
}

.brand-kicker,
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 0.75rem;
}

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

.menu-link {
  border: 1px solid transparent;
  background: rgba(255, 255, 255, 0.035);
  color: #fff;
  min-height: 42px;
  padding: 11px 14px;
  border-radius: 14px;
  text-align: left;
  cursor: pointer;
  transition: transform 0.18s ease, background 0.18s ease, border-color 0.18s ease, color 0.18s ease;
  font-size: 0.95rem;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.menu-link:hover,
.menu-link.active {
  background: linear-gradient(135deg, rgba(200, 155, 60, 0.2), rgba(234, 211, 160, 0.08));
  border-color: rgba(234, 211, 160, 0.22);
}

.menu-account-card {
  display: grid;
  gap: 4px;
  padding: 10px 12px;
  border-radius: 13px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
}

.menu-account-card strong {
  font-size: 0.9rem;
}

.menu-account-card span {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.78rem;
}

.content {
  margin-left: var(--sidebar-width);
  width: calc(100% - var(--sidebar-width));
  max-width: calc(var(--content-max) + var(--sidebar-width));
  padding: 24px 26px 32px;
  overflow-x: hidden;
}

.topbar {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: flex-start;
  flex-wrap: wrap;
  margin: 0 auto 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(16, 45, 40, 0.08);
  width: min(100%, var(--content-max));
}

.topbar-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
  max-width: 100%;
}

.user-chip {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(19, 35, 33, 0.08);
  color: var(--text);
  font-weight: 600;
  font-size: 0.92rem;
  max-width: 100%;
  word-break: break-word;
}

.user-chip[role="button"] {
  cursor: pointer;
}

.user-chip[role="button"]:focus-visible {
  outline: 2px solid rgba(18, 109, 92, 0.55);
  outline-offset: 2px;
}

.access-denied-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.access-denied-meta span {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  padding: 7px 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(19, 35, 33, 0.06);
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 600;
}

body.auth-shell-hidden,
body[data-auth-shell="guest"],
body[data-auth-shell="checking"] {
  overflow: hidden;
}

body.auth-shell-hidden .sidebar,
body[data-auth-shell="guest"] .sidebar,
body[data-auth-shell="checking"] .sidebar {
  display: none !important;
}

body.auth-shell-hidden .content,
body[data-auth-shell="guest"] .content,
body[data-auth-shell="checking"] .content {
  margin-left: 0 !important;
  width: 100% !important;
  max-width: none !important;
  min-height: 100vh;
  padding: 0 !important;
}

body.auth-shell-hidden .topbar,
body[data-auth-shell="guest"] .topbar,
body[data-auth-shell="checking"] .topbar {
  display: none !important;
}

body.auth-shell-hidden #access-denied,
body[data-auth-shell="guest"] #access-denied,
body[data-auth-shell="checking"] #access-denied {
  display: none !important;
}

body.auth-shell-hidden .content .page,
body[data-auth-shell="guest"] .content .page,
body[data-auth-shell="checking"] .content .page {
  display: none !important;
}

body[data-section="access-denied"][data-auth-shell="authenticated"] .content,
body[data-section="access-denied"]:not(.auth-shell-hidden) .content {
  display: block;
}

body[data-section="access-denied"][data-auth-shell="authenticated"] #access-denied.page.active,
body[data-section="access-denied"]:not(.auth-shell-hidden) #access-denied.page.active {
  min-height: calc(100vh - 170px);
  margin-top: 0;
  display: grid;
  align-content: center;
  justify-items: center;
  padding-bottom: 24px;
}

body[data-section="access-denied"][data-auth-shell="authenticated"] #access-denied .hero-card,
body[data-section="access-denied"]:not(.auth-shell-hidden) #access-denied .hero-card {
  width: min(100%, 820px);
  min-height: auto;
  margin: 0 auto;
  display: grid;
  gap: 18px;
  align-items: start;
  justify-items: start;
}

body[data-section="access-denied"][data-auth-shell="authenticated"] #access-denied .action-row,
body[data-section="access-denied"]:not(.auth-shell-hidden) #access-denied .action-row {
  width: 100%;
  justify-content: flex-start;
}

#section-title {
  margin: 4px 0 0;
  font-size: clamp(2rem, 3vw, 2.4rem);
  line-height: 1.05;
}

.status-banner {
  min-height: 52px;
  min-width: 220px;
  max-width: 100%;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(255, 250, 243, 0.74);
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
  color: var(--muted);
  word-break: break-word;
  font-size: 0.92rem;
}

.status-banner-body {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.status-banner-body strong {
  font-size: 0.86rem;
  line-height: 1.2;
}

.status-banner-body span {
  line-height: 1.35;
}

.status-banner-body small {
  color: rgba(78, 88, 84, 0.84);
  font-size: 0.76rem;
  line-height: 1.35;
}

.status-banner-dismiss {
  flex-shrink: 0;
  border: 0;
  background: transparent;
  color: currentColor;
  cursor: pointer;
  border-radius: 999px;
  width: 28px;
  height: 28px;
  font-size: 1rem;
  line-height: 1;
}

.status-banner.dismiss:hover,
.status-banner-dismiss:hover {
  background: rgba(255, 255, 255, 0.12);
}

.status-banner.success {
  color: var(--success);
}

.status-banner.warning {
  color: #9c6a11;
}

.status-banner.error {
  color: var(--error);
}

.operation-status {
  display: grid;
  gap: 6px;
  margin: 0 auto 18px;
  width: 100%;
  max-width: var(--content-max);
  padding: 14px 18px;
  border-radius: 18px;
  border: 1px solid rgba(16, 45, 40, 0.12);
  background: rgba(255, 250, 243, 0.9);
  box-shadow: var(--shadow-soft);
}

.operation-status strong {
  font-size: 0.98rem;
}

.operation-status span {
  color: var(--muted);
  font-size: 0.92rem;
}

.operation-status.info {
  border-color: rgba(16, 45, 40, 0.12);
}

.operation-status.success {
  border-color: rgba(31, 122, 86, 0.22);
  color: var(--success);
}

.operation-status.warning {
  border-color: rgba(200, 155, 60, 0.28);
  color: #8a6320;
}

.operation-status.error {
  border-color: rgba(176, 63, 63, 0.22);
  color: var(--error);
}

.loading-overlay {
  position: fixed;
  inset: 20px 24px auto auto;
  z-index: 1300;
  display: flex;
  justify-content: flex-end;
  pointer-events: none;
}

.loading-overlay.blocking {
  inset: 0;
  justify-content: center;
  align-items: center;
  background: rgba(12, 16, 18, 0.16);
  pointer-events: all;
}

.loading-overlay-card {
  display: grid;
  gap: 8px;
  min-width: min(92vw, 360px);
  max-width: min(92vw, 420px);
  padding: 16px 18px;
  border-radius: 20px;
  border: 1px solid rgba(16, 45, 40, 0.12);
  background: rgba(255, 250, 243, 0.96);
  box-shadow: var(--shadow);
}

.loading-overlay-head,
.inline-loading-head {
  display: flex;
  align-items: center;
  gap: 10px;
}

.loading-overlay-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.loading-progress {
  display: grid;
  gap: 8px;
  margin-top: 4px;
}

.loading-progress-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.84rem;
  color: var(--muted);
}

.loading-progress-meta strong {
  color: var(--text);
  font-size: 0.86rem;
  letter-spacing: -0.02em;
}

.loading-progress-track {
  position: relative;
  width: 100%;
  height: 9px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(16, 45, 40, 0.08);
  border: 1px solid rgba(16, 45, 40, 0.08);
}

.loading-progress-bar {
  width: 0%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, rgba(200, 155, 60, 0.96), rgba(226, 187, 102, 0.96));
  box-shadow: 0 0 0 1px rgba(200, 155, 60, 0.12), 0 8px 18px rgba(200, 155, 60, 0.22);
  transition: width 0.28s ease;
}

.loading-spinner,
.button-loading-spinner {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid rgba(16, 45, 40, 0.14);
  border-top-color: var(--gold);
  animation: aiLoadingSpin 0.8s linear infinite;
  flex-shrink: 0;
}

.button-loading {
  position: relative;
}

.button-loading .button-loading-spinner {
  width: 15px;
  height: 15px;
}

.inline-loading {
  margin-top: 16px;
  display: grid;
  gap: 8px;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid rgba(200, 155, 60, 0.24);
  background: rgba(255, 249, 241, 0.92);
  box-shadow: var(--shadow-soft);
}

.inline-loading p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.pdv-hero-card {
  align-items: flex-start;
}

.pdv-route-tabs {
  display: flex;
  flex-wrap: nowrap;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 6px;
  scrollbar-width: thin;
  scrollbar-color: rgba(16, 45, 40, 0.15) transparent;
  -webkit-overflow-scrolling: touch;
}

.pdv-route-group {
  display: grid;
  gap: 6px;
  min-width: max-content;
}

.pdv-route-group-label {
  padding-left: 4px;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(16, 45, 40, 0.52);
}

.pdv-route-group-links {
  display: flex;
  gap: 8px;
}

.pdv-route-group.is-cadastro .pdv-route-group-label {
  color: rgba(193, 168, 122, 0.92);
}

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

.pdv-nav-shell {
  transition: padding 0.18s ease, gap 0.18s ease;
}

.pdv-route-shell-compact {
  padding: 10px 20px;
  background: rgba(255, 255, 255, 0.55);
  box-shadow: none;
  border-color: rgba(16, 45, 40, 0.08);
  border-radius: 14px;
}

.pdv-route-shell-compact .panel-header {
  display: none;
}

.pdv-route-shell-compact #pdv-route-summary {
  display: none;
}

.pdv-route-shell-compact .pdv-route-tabs {
  padding-bottom: 2px;
}

.role-dashboard-shortcut-card,
.role-dashboard-note-card {
  min-height: 170px;
  align-content: start;
}

.role-dashboard-shortcut-card p,
.role-dashboard-note-card p {
  margin: 6px 0 0;
  color: var(--muted);
  line-height: 1.5;
}

.role-dashboard-shortcuts,
.role-dashboard-notes {
  align-items: start;
}

.pdv-route-summary-compact {
  margin-bottom: 0;
  padding: 10px 14px;
  border-radius: 14px;
  box-shadow: none;
}

.pdv-route-tab,
.pdv-token {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 7px 12px;
  border-radius: 999px;
  border: 1px solid rgba(16, 45, 40, 0.1);
  background: rgba(255, 255, 255, 0.82);
  color: var(--text);
  font-weight: 600;
  font-size: 0.84rem;
  line-height: 1.1;
  text-align: center;
}

.pdv-route-tab {
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.pdv-route-tab:hover {
  transform: translateY(-1px);
}

.pdv-route-tab.active {
  border-color: rgba(200, 155, 60, 0.46);
  box-shadow: var(--shadow-soft);
  background: linear-gradient(135deg, rgba(255, 249, 241, 0.98), rgba(250, 240, 216, 0.98));
}

.pdv-foundation-list {
  display: grid;
  gap: 12px;
}

.pdv-foundation-list-item {
  display: grid;
  gap: 4px;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid rgba(16, 45, 40, 0.1);
  background: rgba(255, 255, 255, 0.78);
}

.pdv-foundation-list-item strong {
  font-size: 0.95rem;
}

.pdv-foundation-list-item span {
  color: var(--muted);
  font-size: 0.9rem;
}

body[data-route-section="users-admin"] .users-admin-shell {
  display: grid;
  gap: 18px;
}

.users-admin-hero,
.users-admin-card {
  background: linear-gradient(145deg, rgba(19, 26, 35, 0.96), rgba(15, 20, 27, 0.98));
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 22px;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.24);
}

.users-admin-hero {
  align-items: center;
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 24px;
}

.users-admin-hero h3,
.users-admin-editor-head h3 {
  margin: 0;
}

.users-admin-hero p,
.users-admin-list-head small,
.users-admin-row small {
  color: var(--text-muted, #AAB4C0);
}

.users-admin-kpis {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.users-admin-kpis span,
.users-admin-status {
  background: rgba(45, 212, 191, 0.10);
  border: 1px solid rgba(45, 212, 191, 0.25);
  border-radius: 999px;
  color: var(--text-main, #F4F7FA);
  padding: 8px 12px;
}

.users-admin-status {
  color: #34D399;
  display: inline-flex;
  font-size: 0.78rem;
  font-style: normal;
  font-weight: 800;
  line-height: 1;
  text-transform: uppercase;
}

.users-admin-status.inativo {
  background: rgba(239, 68, 68, 0.10);
  border-color: rgba(239, 68, 68, 0.28);
  color: #FCA5A5;
}

.users-admin-toolbar {
  align-items: center;
  display: grid;
  gap: 10px;
  grid-template-columns: minmax(240px, 1fr) 170px 150px auto auto;
}

.users-admin-toolbar input,
.users-admin-toolbar select,
.users-admin-form-grid input,
.users-admin-form-grid select {
  background: #0B0F14;
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 12px;
  color: var(--text-main, #F4F7FA);
  min-height: 44px;
  padding: 0 12px;
}

.users-admin-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: minmax(320px, 0.9fr) minmax(480px, 1.4fr);
}

.users-admin-card {
  padding: 18px;
}

.users-admin-list-head,
.users-admin-editor-head,
.users-admin-actions {
  align-items: center;
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.users-admin-rows {
  display: grid;
  gap: 10px;
  margin-top: 14px;
  max-height: 680px;
  overflow: auto;
  padding-right: 4px;
  scrollbar-color: rgba(170, 180, 192, 0.24) transparent;
  scrollbar-width: thin;
}

.users-admin-rows::-webkit-scrollbar {
  height: 6px;
  width: 6px;
}

.users-admin-rows::-webkit-scrollbar-track,
.users-admin-rows::-webkit-scrollbar-corner {
  background: transparent;
}

.users-admin-rows::-webkit-scrollbar-thumb {
  background: rgba(170, 180, 192, 0.22);
  border-radius: 999px;
}

.users-admin-rows::-webkit-scrollbar-thumb:hover {
  background: rgba(45, 212, 191, 0.38);
}

.users-admin-row {
  align-items: center;
  background: rgba(23, 31, 42, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 16px;
  color: var(--text-main, #F4F7FA);
  cursor: pointer;
  display: grid;
  gap: 12px;
  grid-template-columns: minmax(0, 1fr) auto auto;
  padding: 13px;
  text-align: left;
}

.users-admin-row.active,
.users-admin-row:hover {
  border-color: rgba(45, 212, 191, 0.35);
  box-shadow: inset 0 0 0 1px rgba(45, 212, 191, 0.16);
}

.users-admin-row span,
.users-admin-row-meta {
  display: grid;
  gap: 4px;
}

.users-admin-row-meta {
  justify-items: end;
}

.users-admin-form-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 16px;
}

.users-admin-form-grid label,
.users-admin-section {
  color: var(--text-muted, #AAB4C0);
  display: grid;
  gap: 7px;
  font-weight: 700;
}

.users-admin-section {
  background: rgba(11, 15, 20, 0.42);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 18px;
  margin-top: 14px;
  padding: 14px;
}

.users-admin-section h4,
.users-admin-permission-group h4 {
  color: var(--text-main, #F4F7FA);
  margin: 0;
}

.users-admin-check-grid,
.users-admin-permissions {
  display: grid;
  gap: 9px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.users-admin-permission-group {
  display: grid;
  gap: 10px;
  padding: 10px 0;
}

.users-admin-check {
  align-items: center;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  color: var(--text-main, #F4F7FA);
  display: flex;
  gap: 8px;
  padding: 9px 10px;
}

.users-admin-check input {
  accent-color: #2DD4BF;
}

.users-admin-actions {
  flex-wrap: wrap;
  justify-content: flex-start;
  margin-top: 16px;
}

.users-admin-alert,
.users-admin-empty {
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.30);
  border-radius: 14px;
  color: #FCD34D;
  padding: 12px 14px;
}

@media (max-width: 1100px) {
  .users-admin-grid,
  .users-admin-toolbar {
    grid-template-columns: 1fr;
  }

  .users-admin-hero {
    align-items: flex-start;
    flex-direction: column;
  }

  .users-admin-kpis {
    justify-content: flex-start;
  }
}

@media (max-width: 760px) {
  .users-admin-form-grid,
  .users-admin-check-grid,
  .users-admin-permissions {
    grid-template-columns: 1fr;
  }

  .users-admin-row {
    grid-template-columns: 1fr;
  }

  .users-admin-row-meta {
    justify-items: start;
  }
}

.pdv-dashboard-premium {
  --pdv-dashboard-bg: #0B0F14;
  --pdv-dashboard-shell: #0F141B;
  --pdv-dashboard-panel: #131A23;
  --pdv-dashboard-card: #171F2A;
  --pdv-dashboard-border: rgba(255, 255, 255, 0.07);
  --pdv-dashboard-border-strong: rgba(255, 255, 255, 0.12);
  --pdv-dashboard-text: #F4F7FA;
  --pdv-dashboard-muted: #AAB4C0;
  --pdv-dashboard-subtle: #7F8A99;
  --pdv-dashboard-accent: #2DD4BF;
  --pdv-dashboard-accent-strong: #14B8A6;
  --pdv-dashboard-accent-soft: rgba(45, 212, 191, 0.12);
  --pdv-dashboard-danger: #EF4444;
  background:
    radial-gradient(circle at 12% 12%, rgba(45, 212, 191, 0.08), transparent 30%),
    linear-gradient(180deg, #0B0F14 0%, #091016 100%);
  color: var(--pdv-dashboard-text);
  display: grid;
  gap: 18px;
  margin: -2px 0 0;
  padding: 0;
}

.pdv-dashboard-premium .primary-button,
.pdv-dashboard-premium .secondary-button {
  border-radius: 12px;
  min-height: 42px;
}

.pdv-dashboard-premium .primary-button {
  background: linear-gradient(135deg, var(--pdv-dashboard-accent-strong), var(--pdv-dashboard-accent));
  border-color: rgba(45, 212, 191, 0.55);
  box-shadow: 0 14px 34px rgba(20, 184, 166, 0.2);
  color: #061014;
}

.pdv-dashboard-premium .secondary-button {
  background: rgba(23, 31, 42, 0.82);
  border-color: var(--pdv-dashboard-border-strong);
  color: var(--pdv-dashboard-text);
}

.pdv-dashboard-topbar,
.pdv-dashboard-hero,
.pdv-dashboard-status-card,
.pdv-dashboard-route-strip,
.pdv-dashboard-operation-card,
.pdv-dashboard-summary-card,
.pdv-dashboard-priority-card {
  background:
    linear-gradient(135deg, rgba(19, 26, 35, 0.96), rgba(15, 20, 27, 0.94));
  border: 1px solid var(--pdv-dashboard-border);
  box-shadow: 0 22px 70px rgba(0, 0, 0, 0.28);
}

.pdv-dashboard-topbar {
  align-items: center;
  border-radius: 18px;
  display: grid;
  gap: 16px;
  grid-template-columns: minmax(230px, 1fr) minmax(360px, auto) auto;
  padding: 12px 14px 12px 20px;
}

.pdv-dashboard-brand,
.pdv-dashboard-top-status,
.pdv-dashboard-top-actions,
.pdv-dashboard-hero-actions {
  align-items: center;
  display: flex;
  gap: 10px;
}

.pdv-dashboard-brand strong {
  color: var(--pdv-dashboard-accent);
  letter-spacing: 0.02em;
}

.pdv-dashboard-brand span:last-child,
.pdv-dashboard-top-status span {
  color: var(--pdv-dashboard-muted);
}

.pdv-dashboard-brand i {
  background: var(--pdv-dashboard-border-strong);
  height: 22px;
  width: 1px;
}

.pdv-dashboard-logo,
.pdv-dashboard-icon {
  align-items: center;
  background: linear-gradient(135deg, rgba(45, 212, 191, 0.24), rgba(20, 184, 166, 0.12));
  border: 1px solid rgba(45, 212, 191, 0.22);
  border-radius: 12px;
  color: var(--pdv-dashboard-accent);
  display: inline-flex;
  flex: 0 0 auto;
  font-size: 0.82rem;
  font-weight: 900;
  height: 36px;
  justify-content: center;
  width: 36px;
}

.pdv-dashboard-top-status {
  color: var(--pdv-dashboard-muted);
  flex-wrap: wrap;
  font-size: 0.9rem;
  justify-content: center;
}

.pdv-dashboard-top-status strong,
.pdv-dashboard-status-list strong,
.pdv-dashboard-priority-item strong {
  color: var(--pdv-dashboard-text);
}

.pdv-dashboard-premium .is-accent {
  color: var(--pdv-dashboard-accent) !important;
}

.pdv-dashboard-premium .is-danger {
  color: var(--pdv-dashboard-danger) !important;
}

.pdv-dashboard-top-actions {
  justify-content: flex-end;
}

.pdv-dashboard-hero-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: minmax(0, 1.6fr) minmax(320px, 0.95fr);
}

.pdv-dashboard-hero {
  border-radius: 20px;
  overflow: hidden;
  padding: 42px 44px;
  position: relative;
}

.pdv-dashboard-hero::after {
  border: 1px solid rgba(45, 212, 191, 0.1);
  border-radius: 50%;
  content: "";
  height: 260px;
  position: absolute;
  right: -70px;
  top: 70px;
  width: 360px;
}

.pdv-dashboard-hero .eyebrow,
.pdv-dashboard-route-strip h3 {
  color: var(--pdv-dashboard-accent);
  letter-spacing: 0.14em;
}

.pdv-dashboard-hero h2 {
  color: var(--pdv-dashboard-text);
  font-size: clamp(2.2rem, 4vw, 3.6rem);
  line-height: 0.96;
  margin: 12px 0 14px;
}

.pdv-dashboard-hero p {
  color: var(--pdv-dashboard-muted);
  font-size: 1.02rem;
  margin: 0;
  max-width: 640px;
}

.pdv-dashboard-hero-actions {
  flex-wrap: wrap;
  margin-top: 34px;
}

.pdv-dashboard-hero-actions .primary-button,
.pdv-dashboard-hero-actions .secondary-button {
  min-width: 160px;
}

.pdv-dashboard-status-card,
.pdv-dashboard-route-strip,
.pdv-dashboard-summary-card,
.pdv-dashboard-priority-card {
  border-radius: 20px;
  padding: 24px;
}

.pdv-dashboard-status-card h3,
.pdv-dashboard-summary-card h3,
.pdv-dashboard-priority-card h3,
.pdv-dashboard-operation-card h3 {
  color: var(--pdv-dashboard-text);
  margin: 0;
}

.pdv-dashboard-status-list {
  display: grid;
  gap: 0;
  margin-top: 14px;
}

.pdv-dashboard-status-list div {
  align-items: center;
  background: rgba(23, 31, 42, 0.58);
  border: 1px solid var(--pdv-dashboard-border);
  border-radius: 14px;
  display: flex;
  justify-content: space-between;
  padding: 15px 18px;
}

.pdv-dashboard-status-list div + div {
  margin-top: 8px;
}

.pdv-dashboard-status-list span {
  color: var(--pdv-dashboard-muted);
}

.pdv-dashboard-route-strip h3 {
  font-size: 1.02rem;
  margin: 0 0 12px;
}

.pdv-dashboard-route-strip .pdv-route-tabs {
  padding-bottom: 0;
}

.pdv-dashboard-route-strip .pdv-route-tab {
  background: rgba(23, 31, 42, 0.82);
  border-color: var(--pdv-dashboard-border-strong);
  color: var(--pdv-dashboard-muted);
}

.pdv-dashboard-route-strip .pdv-route-tab.active {
  background: var(--pdv-dashboard-accent-soft);
  border-color: rgba(45, 212, 191, 0.46);
  box-shadow: 0 12px 28px rgba(20, 184, 166, 0.12);
  color: var(--pdv-dashboard-accent);
}

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

.pdv-dashboard-operation-card {
  border-radius: 18px;
  display: grid;
  gap: 14px;
  min-height: 220px;
  padding: 22px;
}

.pdv-dashboard-operation-card.is-featured {
  border-color: rgba(45, 212, 191, 0.5);
  box-shadow: 0 20px 60px rgba(20, 184, 166, 0.16);
}

.pdv-dashboard-operation-card p {
  color: var(--pdv-dashboard-muted);
  line-height: 1.5;
  margin: 0;
}

.pdv-dashboard-operation-card button {
  align-self: end;
  margin-top: auto;
  width: 100%;
}

.pdv-dashboard-bottom-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: minmax(0, 1.18fr) minmax(360px, 0.92fr);
}

.pdv-dashboard-metric-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  margin-top: 18px;
}

.pdv-dashboard-metric-card {
  align-items: center;
  background: rgba(23, 31, 42, 0.64);
  border: 1px solid var(--pdv-dashboard-border);
  border-radius: 16px;
  display: grid;
  gap: 10px;
  justify-items: center;
  min-height: 176px;
  padding: 20px 12px;
  text-align: center;
}

.pdv-dashboard-metric-card span:not(.pdv-dashboard-icon),
.pdv-dashboard-metric-card small,
.pdv-dashboard-priority-item small {
  color: var(--pdv-dashboard-muted);
}

.pdv-dashboard-metric-card strong {
  color: var(--pdv-dashboard-text);
  font-size: 1.8rem;
  line-height: 1;
}

.pdv-dashboard-priority-list {
  display: grid;
  gap: 8px;
  margin-top: 14px;
}

.pdv-dashboard-priority-item {
  align-items: center;
  background: rgba(23, 31, 42, 0.62);
  border: 1px solid var(--pdv-dashboard-border);
  border-radius: 14px;
  color: var(--pdv-dashboard-text);
  cursor: pointer;
  display: grid;
  gap: 14px;
  grid-template-columns: 42px 1fr auto;
  padding: 10px 14px;
  text-align: left;
}

.pdv-dashboard-priority-item span:nth-child(2) {
  display: grid;
  gap: 2px;
}

.pdv-dashboard-priority-item em {
  color: var(--pdv-dashboard-subtle);
  font-style: normal;
  font-size: 1.5rem;
}

.pdv-dashboard-priority-item:hover {
  border-color: rgba(45, 212, 191, 0.34);
  background: rgba(45, 212, 191, 0.08);
}

@media (max-width: 1280px) {
  .pdv-dashboard-topbar,
  .pdv-dashboard-hero-grid,
  .pdv-dashboard-bottom-grid {
    grid-template-columns: 1fr;
  }

  .pdv-dashboard-top-status,
  .pdv-dashboard-top-actions {
    justify-content: flex-start;
  }

  .pdv-dashboard-operation-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 860px) {
  .pdv-dashboard-hero,
  .pdv-dashboard-status-card,
  .pdv-dashboard-route-strip,
  .pdv-dashboard-summary-card,
  .pdv-dashboard-priority-card {
    padding: 20px;
  }

  .pdv-dashboard-operation-grid,
  .pdv-dashboard-metric-grid {
    grid-template-columns: 1fr;
  }

  .pdv-dashboard-hero-actions,
  .pdv-dashboard-top-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .pdv-dashboard-hero-actions .primary-button,
  .pdv-dashboard-hero-actions .secondary-button,
  .pdv-dashboard-top-actions .primary-button,
  .pdv-dashboard-top-actions .secondary-button {
    width: 100%;
  }
}

.pdv-import-card {
  display: grid;
  gap: 14px;
}

.pdv-quality-badge,
.pdv-event-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  background: rgba(15, 23, 42, 0.08);
  color: var(--text-primary);
}

.pdv-event-stack {
  display: grid;
  gap: 10px;
}

.pdv-event-card {
  display: grid;
  gap: 6px;
  padding: 12px 14px;
  border: 1px solid var(--border-color);
  border-radius: 16px;
  background: var(--panel-bg);
}

.pdv-event-card strong,
.pdv-event-card span,
.pdv-event-card small {
  color: inherit;
}

html[data-theme="dark"] .pdv-quality-badge,
html[data-theme="dark"] .pdv-event-badge {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-primary);
}

.page {
  display: none;
  margin: 22px auto 0;
  gap: var(--section-gap);
  width: 100%;
  max-width: var(--content-max);
  min-width: 0;
}

.page.active {
  display: grid;
}

.pagbank-consult-grid {
  margin-top: 16px;
}

.pagbank-builder {
  display: grid;
  gap: 18px;
}

.pagbank-card {
  display: grid;
  gap: 14px;
  padding: 20px;
}

.panel-header.compact {
  margin-bottom: 0;
}

.pagbank-card h4 {
  margin: 2px 0 0;
  font-size: 1.05rem;
}

.pagbank-name-field {
  display: grid;
  gap: 6px;
}

.pagbank-name-field small {
  justify-self: end;
}

.pagbank-option-grid,
.pagbank-radio-group {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 10px;
}

.pagbank-option-chip {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 12px 14px;
  border: 1px solid rgba(16, 45, 40, 0.12);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--text);
  font-weight: 600;
  cursor: pointer;
}

.pagbank-option-chip input[type="checkbox"],
.pagbank-option-chip input[type="radio"] {
  width: 18px;
  height: 18px;
  min-height: 18px;
  margin: 0;
  flex-shrink: 0;
}

.pagbank-option-chip.is-disabled {
  opacity: 0.58;
  cursor: not-allowed;
}

.pagbank-inline-check {
  display: flex !important;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 12px 14px;
  border: 1px dashed rgba(16, 45, 40, 0.16);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.82);
}

.pagbank-inline-check input[type="checkbox"] {
  width: 18px;
  height: 18px;
  min-height: 18px;
  margin: 0;
}

.pagbank-condition-box {
  display: grid;
  gap: 6px;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid rgba(16, 45, 40, 0.1);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(248, 241, 226, 0.96));
}

.pagbank-condition-box strong {
  font-size: 1rem;
}

.pagbank-summary-note {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.theme-help-box {
  display: grid;
  gap: 6px;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid rgba(16, 45, 40, 0.08);
  background: rgba(255, 255, 255, 0.7);
}

.pagbank-warning-box {
  display: grid;
  gap: 6px;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid rgba(176, 63, 63, 0.22);
  background: rgba(176, 63, 63, 0.08);
  color: #7f2525;
}

.pagbank-warning-box strong {
  font-size: 1rem;
}

#pagbank-checkout-result .action-row {
  margin-top: 4px;
}

#pagbank-checkout-result a {
  color: var(--success);
  text-decoration: none;
}

#pagbank-checkout-result a:hover {
  text-decoration: underline;
}

.hero-card,
.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
  border-radius: var(--radius-xl);
  min-width: 0;
}

.hero-card {
  padding: 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.hero-card h3 {
  margin: 8px 0 0;
  font-size: clamp(1.35rem, 1.8vw, 1.8rem);
  max-width: 760px;
  line-height: 1.18;
  word-break: break-word;
}

.stats-grid,
.cards-grid,
.split-grid {
  display: grid;
  gap: 18px;
  min-width: 0;
}

.stats-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.cards-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.mini-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 16px;
  transition: transform 0.1s ease, box-shadow 0.1s ease;
}

body.theme-dark .mini-card {
  background: var(--surface-strong);
}

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

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

.panel {
  padding: var(--card-padding);
  min-width: 0;
}

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

.panel h3 {
  margin: 0;
  font-size: clamp(1.08rem, 1.35vw, 1.35rem);
  line-height: 1.2;
  font-weight: 700;
}

.form-grid,
.filters-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 16px;
  min-width: 0;
}

.form-grid label,
.filters-grid label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  min-width: 0;
}

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

input,
textarea,
select {
  width: 100%;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-md);
  min-height: var(--input-height);
  padding: 8px 12px;
  background: var(--surface);
  color: var(--text);
  box-shadow: var(--shadow-soft);
  transition: border-color 0.1s ease, box-shadow 0.1s ease;
}

input:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 2px rgba(180, 142, 66, 0.2);
}

input,
select {
  height: var(--input-height);
}

textarea {
  resize: vertical;
  min-height: 110px;
  line-height: 1.5;
}

input:focus,
textarea:focus,
select:focus {
  outline: 2px solid rgba(200, 147, 60, 0.22);
  border-color: rgba(200, 147, 60, 0.5);
}

.primary-button,
.secondary-button,
.ghost-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: none;
  border-radius: var(--radius-md);
  min-height: 40px;
  padding: 8px 16px;
  cursor: pointer;
  transition: transform 0.1s ease, background-color 0.1s ease, box-shadow 0.1s ease;
  font-weight: 500;
  white-space: nowrap;
  max-width: 100%;
  font-size: 0.95rem;
}

.primary-button:hover,
.secondary-button:hover,
.ghost-button:hover,
.menu-link:hover {
  transform: translateY(-1px);
}

.primary-button {
  background: var(--text);
  color: var(--bg);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}
.primary-button:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.16);
}

.secondary-button {
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--line-strong);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}
.secondary-button:hover {
  background: var(--bg-soft);
}

.ghost-button {
  background: transparent;
  color: var(--text);
}
.ghost-button:hover {
  background: var(--line);
}

.primary-button:disabled,
.secondary-button:disabled,
.ghost-button:disabled {
  opacity: 0.42;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.text-link {
  color: #1b5d46;
  text-decoration: none;
  font-weight: 600;
}

.text-link:hover {
  text-decoration: underline;
}

.stat-card {
  background: var(--surface-strong);
  border-radius: 20px;
  padding: 20px;
  border: 1px solid rgba(16, 45, 40, 0.08);
  min-width: 0;
  min-height: 132px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.stat-card span {
  display: block;
  color: var(--muted);
  line-height: 1.4;
  word-break: break-word;
  font-size: 0.84rem;
  font-weight: 600;
  max-width: 28ch;
}

.stat-card strong {
  font-size: clamp(1.45rem, 1.9vw, 2.25rem);
  display: block;
  margin-top: 12px;
  line-height: 1.04;
  white-space: nowrap;
  word-break: normal;
  overflow-wrap: normal;
  overflow: hidden;
  text-overflow: ellipsis;
  letter-spacing: -0.03em;
}

.pdv-reports-shell {
  display: grid;
  gap: 18px;
}

.pdv-report-section {
  overflow: hidden;
}

.pdv-report-kpi-grid {
  grid-template-columns: repeat(auto-fit, minmax(214px, 1fr));
  gap: 16px;
}

.pdv-report-mini-kpi-grid {
  grid-template-columns: repeat(auto-fit, minmax(188px, 1fr));
  gap: 14px;
}

.pdv-report-kpi-card {
  min-height: 140px;
  justify-content: space-between;
  padding: 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
  border-radius: var(--radius-lg);
  transition: transform 0.1s ease, box-shadow 0.1s ease;
}

.pdv-report-kpi-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.pdv-report-kpi-card.compact {
  min-height: 118px;
}

.pdv-report-kpi-card span {
  display: block;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.pdv-report-kpi-card strong {
  margin-top: 14px;
  font-size: clamp(1.32rem, 1.6vw, 2.1rem);
  white-space: nowrap;
  overflow: visible;
  text-overflow: clip;
  word-break: normal;
  overflow-wrap: normal;
  letter-spacing: -0.035em;
}

.pdv-report-feature-grid,
.pdv-report-table-grid,
.pdv-report-finance-grid {
  align-items: start;
}

.pdv-report-callout-list {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.pdv-report-callout-card {
  gap: 10px;
  min-height: 122px;
}

.pdv-report-callout-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.pdv-report-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border: 1px solid rgba(16, 45, 40, 0.12);
  background: rgba(255, 255, 255, 0.82);
  color: var(--text);
}

.pdv-report-badge.success {
  color: #166d4b;
  border-color: rgba(31, 122, 86, 0.28);
  background: rgba(225, 248, 237, 0.92);
}

.pdv-report-badge.warning {
  color: #8a6320;
  border-color: rgba(200, 155, 60, 0.28);
  background: rgba(255, 246, 219, 0.92);
}

.pdv-report-badge.danger,
.pdv-report-badge.high,
.pdv-report-badge.critical {
  color: #a53434;
  border-color: rgba(176, 63, 63, 0.28);
  background: rgba(255, 236, 236, 0.92);
}

.pdv-report-badge.info,
.pdv-report-badge.low {
  color: #37546a;
  border-color: rgba(76, 115, 149, 0.22);
  background: rgba(233, 241, 248, 0.92);
}

.pdv-report-finance-groups {
  display: grid;
  gap: 18px;
}

.pdv-report-finance-group {
  display: grid;
  gap: 12px;
  padding: 16px;
  border-radius: 18px;
  border: 1px solid rgba(16, 45, 40, 0.08);
  background: rgba(255, 255, 255, 0.58);
}

.pdv-report-finance-group .pdv-report-kpi-card strong,
.pdv-report-mini-kpi-grid .pdv-report-kpi-card strong {
  white-space: nowrap;
  font-size: clamp(1.18rem, 1.35vw, 1.62rem);
  line-height: 1.02;
}

.pdv-report-finance-head {
  display: grid;
  gap: 4px;
}

.pdv-report-finance-head strong {
  font-size: 1rem;
}

.pdv-report-finance-head span {
  color: var(--muted);
  font-size: 0.88rem;
}

.pdv-report-table-wrap {
  overflow-x: auto;
  overflow-y: auto;
  max-height: 410px;
  padding-bottom: 0;
  border-radius: 16px;
  border: 1px solid rgba(16, 45, 40, 0.08);
  background: rgba(255, 255, 255, 0.45);
}

.pdv-report-sales-wrap {
  max-height: 460px;
}

.pdv-report-table {
  min-width: 0;
  table-layout: fixed;
}

.pdv-report-table th,
.pdv-report-table td {
  padding: 12px 12px;
  font-size: 0.92rem;
}

.pdv-report-table th:nth-child(1),
.pdv-report-table td:nth-child(1) {
  width: 128px;
}

.pdv-report-table td {
  word-break: normal;
  overflow-wrap: anywhere;
}

.pdv-report-empty-state {
  padding: 18px;
  border-radius: 16px;
  border: 1px dashed rgba(16, 45, 40, 0.16);
  color: var(--muted);
  background: rgba(255, 255, 255, 0.4);
}

.pdv-cockpit-shell {
  display: grid;
  gap: 18px;
}

.pdv-cockpit-filter-panel,
.pdv-cockpit-intro-panel,
.pdv-cockpit-side-panel,
.pdv-cockpit-decision-card,
.pdv-cockpit-trend-panel {
  overflow: hidden;
}

.pdv-cockpit-filter-actions,
.pdv-cockpit-route-switch {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.pdv-cockpit-route-switch .ghost-button.active,
.pdv-cockpit-margin-tabs .ghost-button.active {
  border-color: rgba(79, 204, 149, 0.35);
  background: rgba(79, 204, 149, 0.12);
  color: #d8f9ea;
}

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

.pdv-cockpit-filter-grid label,
.pdv-cockpit-custom-dates label,
.pdv-cockpit-curve-toolbar label {
  display: grid;
  gap: 8px;
  font-size: 0.86rem;
  color: var(--muted);
}

.pdv-cockpit-custom-dates {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 14px;
}

.pdv-cockpit-custom-dates.hidden {
  display: none;
}

.pdv-cockpit-intro-copy {
  display: grid;
  gap: 8px;
  max-width: 780px;
}

.pdv-cockpit-intro-grid {
  align-items: stretch;
}

.pdv-cockpit-mini-panel {
  display: grid;
  gap: 12px;
}

.pdv-cockpit-bullet-list {
  margin: 0;
  padding-left: 18px;
  display: grid;
  gap: 8px;
  color: var(--muted);
}

.pdv-cockpit-summary-grid {
  grid-template-columns: repeat(auto-fit, minmax(178px, 1fr));
  gap: 14px;
}

.pdv-cockpit-stat-card {
  min-height: 124px;
  display: grid;
  gap: 12px;
  align-content: space-between;
}

.pdv-cockpit-stat-card strong {
  line-height: 1;
  letter-spacing: -0.04em;
}

.pdv-cockpit-stat-meta {
  display: grid;
  gap: 8px;
}

.pdv-cockpit-stat-meta small {
  color: var(--muted);
}

.pdv-cockpit-priority-grid,
.pdv-cockpit-main-grid {
  align-items: start;
}

.pdv-cockpit-side-stack {
  display: grid;
  gap: 18px;
}

.pdv-cockpit-decision-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.pdv-cockpit-decision-list,
.pdv-cockpit-trend-list {
  display: grid;
  gap: 10px;
}

.pdv-cockpit-decision-item,
.pdv-cockpit-trend-item {
  display: grid;
  gap: 8px;
  padding: 14px;
  border-radius: 16px;
  border: 1px solid rgba(79, 204, 149, 0.12);
  background: rgba(255, 255, 255, 0.04);
}

.pdv-cockpit-decision-head,
.pdv-cockpit-trend-head,
.pdv-cockpit-decision-foot,
.pdv-cockpit-curve-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.pdv-cockpit-decision-head span,
.pdv-cockpit-trend-head span,
.pdv-cockpit-decision-item small,
.pdv-cockpit-trend-item small,
.pdv-cockpit-inline-warning {
  color: var(--muted);
}

.pdv-cockpit-decision-item p {
  margin: 0;
  color: var(--text);
  font-size: 0.92rem;
}

.pdv-cockpit-highlight-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 12px;
}

.pdv-cockpit-highlight-card {
  min-height: 96px;
}

.pdv-cockpit-inline-warning {
  margin-bottom: 12px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(220, 173, 80, 0.22);
  background: rgba(220, 173, 80, 0.08);
}

.pdv-cockpit-curve-toolbar {
  margin-bottom: 14px;
}

.pdv-cockpit-curve-toolbar label {
  min-width: 160px;
  flex: 1 1 160px;
}

.pdv-cockpit-table {
  table-layout: auto;
}

.pdv-cockpit-table th,
.pdv-cockpit-table td {
  vertical-align: top;
}

.pdv-cockpit-product-cell,
.pdv-cockpit-action-cell {
  display: grid;
  gap: 6px;
}

.pdv-cockpit-product-cell small,
.pdv-cockpit-action-cell small {
  color: var(--muted);
}

.pdv-cockpit-curve-wrap,
.pdv-cockpit-margin-wrap {
  max-height: 580px;
}

.pdv-cockpit-warning-list {
  margin: 0;
  padding-left: 18px;
  display: grid;
  gap: 8px;
  color: var(--muted);
}

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

.pdv-cockpit-error-state .action-row {
  margin-top: 12px;
}

body.theme-dark .pdv-cockpit-filter-panel,
body.theme-dark .pdv-cockpit-intro-panel,
body.theme-dark .pdv-cockpit-side-panel,
body.theme-dark .pdv-cockpit-decision-card,
body.theme-dark .pdv-cockpit-trend-panel,
body.theme-dark .pdv-cockpit-mini-panel {
  border-color: rgba(255, 255, 255, 0.07);
  background:
    radial-gradient(circle at top right, rgba(68, 170, 128, 0.08), transparent 32%),
    rgba(12, 17, 21, 0.94);
  box-shadow: 0 22px 64px rgba(0, 0, 0, 0.22);
}

body.theme-dark .pdv-cockpit-stat-card,
body.theme-dark .pdv-cockpit-highlight-card {
  border: 1px solid rgba(255, 255, 255, 0.06);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.01)),
    rgba(14, 21, 26, 0.96);
}

body.theme-dark .pdv-cockpit-curve-wrap,
body.theme-dark .pdv-cockpit-margin-wrap {
  border-color: rgba(255, 255, 255, 0.07);
  background: rgba(8, 12, 16, 0.72);
}

body.theme-dark .pdv-cockpit-table th {
  background: rgba(10, 14, 18, 0.92);
  position: sticky;
  top: 0;
  z-index: 1;
}

body.theme-dark .pdv-cockpit-table tbody tr:nth-child(odd) {
  background: rgba(255, 255, 255, 0.015);
}

body.theme-dark .pdv-cockpit-table tbody tr:hover {
  background: rgba(79, 204, 149, 0.05);
}

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

  .pdv-cockpit-highlight-grid,
  .pdv-cockpit-trends-grid,
  .pdv-cockpit-decision-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 1180px) {
  .pdv-cockpit-priority-grid,
  .pdv-cockpit-main-grid,
  .pdv-cockpit-intro-grid {
    grid-template-columns: 1fr;
  }

  .pdv-cockpit-filter-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .pdv-cockpit-custom-dates,
  .pdv-cockpit-trends-grid,
  .pdv-cockpit-highlight-grid,
  .pdv-cockpit-decision-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .pdv-cockpit-filter-grid,
  .pdv-cockpit-custom-dates {
    grid-template-columns: 1fr;
  }

  .pdv-cockpit-filter-actions,
  .pdv-cockpit-route-switch,
  .pdv-cockpit-curve-toolbar {
    flex-direction: column;
    align-items: stretch;
  }

  .pdv-cockpit-table th:nth-child(4),
  .pdv-cockpit-table td:nth-child(4),
  .pdv-cockpit-table th:nth-child(6),
  .pdv-cockpit-table td:nth-child(6),
  .pdv-cockpit-table th:nth-child(7),
  .pdv-cockpit-table td:nth-child(7) {
    display: none;
  }
}

.pdv-sale-shell {
  display: grid;
  gap: 16px;
}

/* Header do painel operacional: destaque de marca */
.pdv-sale-shell > .panel:first-child,
#pdv-operational-panel {
  background:
    linear-gradient(145deg, rgba(255, 250, 243, 0.98), rgba(248, 240, 224, 0.97)),
    radial-gradient(circle at top right, rgba(200, 155, 60, 0.1), transparent 40%);
  border-color: rgba(200, 155, 60, 0.22);
}

.pdv-sale-header {
  margin-bottom: 0;
}

.pdv-sale-header h3 {
  font-size: clamp(1.15rem, 1.5vw, 1.45rem);
  font-weight: 800;
  letter-spacing: -0.02em;
}

.pdv-sale-header .helper-text {
  color: var(--muted);
  font-size: 0.84rem;
}

.pdv-sale-top-metrics {
  grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
}

.pdv-sale-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(360px, 1fr);
  gap: 20px;
  align-items: start;
}

.pdv-sale-main,
.pdv-sale-sidebar,
.pdv-sale-secondary {
  display: grid;
  gap: 18px;
}

.pdv-sale-secondary {
  margin-top: 2px;
}

.pdv-sale-zone {
  overflow: hidden;
}

.pdv-sale-actions-shell {
  padding: 14px 16px;
}

.pdv-sale-action-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.pdv-sale-action-chips .ghost-button {
  min-height: 38px;
  padding: 8px 14px;
  border-radius: 999px;
}

.pdv-drawer-overlay {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: flex;
  justify-content: flex-end;
  background: rgba(8, 14, 13, 0.54);
  backdrop-filter: blur(8px);
}

.pdv-drawer-overlay.hidden {
  display: none;
}

.pdv-drawer {
  width: min(580px, 96vw);
  max-width: 100vw;
  height: 100%;
  box-sizing: border-box;
  padding: 20px;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 14px;
  margin-left: auto;
  position: relative;
  flex-shrink: 0;
  background:
    linear-gradient(180deg, rgba(245, 241, 235, 0.98), rgba(238, 234, 227, 0.97)),
    radial-gradient(circle at top right, rgba(200, 155, 60, 0.12), transparent 38%);
  border-left: 1px solid rgba(16, 45, 40, 0.1);
  box-shadow: -24px 0 48px rgba(8, 14, 13, 0.22);
  transform: translateX(100%);
  transition: transform 180ms ease;
}

.pdv-drawer.open {
  transform: translateX(0);
}

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

.pdv-drawer-header h3 {
  margin: 0 0 4px;
}

.pdv-drawer-body {
  min-height: 0;
  overflow-y: auto;
  padding-right: 4px;
  display: grid;
  gap: 16px;
}

.pdv-drawer-close {
  flex-shrink: 0;
}

.pdv-sale-drawer-section {
  display: grid;
  gap: 16px;
}

body.pdv-drawer-open {
  overflow: hidden;
}

.pdv-sale-search-label {
  display: grid;
  gap: 8px;
  margin-bottom: 14px;
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--muted);
}

.pdv-sale-search-label input {
  min-height: 56px;
  padding: 14px 16px;
  border-radius: 18px;
  font-size: 1rem;
}

.pdv-sale-search-results,
.pdv-sale-customer-results,
.pdv-sale-cart-list,
.pdv-sale-payment-list {
  display: grid;
  gap: 12px;
}

.pdv-sale-customer-card-actions {
  margin-top: 6px;
}

.pdv-sale-drafts-zone {
  margin-top: 16px;
}

.pdv-sale-drafts-list {
  display: grid;
  gap: 12px;
}

.pdv-sale-draft-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid rgba(16, 45, 40, 0.1);
  background: rgba(255, 255, 255, 0.56);
}

.pdv-sale-draft-copy {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.pdv-sale-draft-copy strong,
.pdv-sale-draft-copy span,
.pdv-sale-draft-copy small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pdv-sale-draft-copy span,
.pdv-sale-draft-copy small {
  color: var(--muted);
}

.pdv-sale-draft-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.pdv-sale-result-group {
  display: grid;
  gap: 12px;
}

.pdv-sale-result-group-title {
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.pdv-sale-search-card,
.pdv-sale-customer-result-card,
.pdv-sale-cart-card,
.pdv-sale-payment-card {
  display: grid;
  gap: 12px;
  padding: 16px 18px;
  border-radius: 18px;
  border: 1px solid rgba(16, 45, 40, 0.1);
  background: rgba(255, 255, 255, 0.64);
}

.pdv-sale-search-card,
.pdv-sale-customer-result-card {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
}

.pdv-sale-customer-result-actions {
  display: grid;
  gap: 8px;
  justify-items: end;
}

.pdv-sale-origin-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 26px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(200, 155, 60, 0.14);
  border: 1px solid rgba(200, 155, 60, 0.24);
  color: #7a5a18;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
}

.pdv-sale-search-copy,
.pdv-sale-customer-result-copy,
.pdv-sale-cart-copy,
.pdv-sale-payment-copy {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.pdv-sale-search-copy strong,
.pdv-sale-customer-result-copy strong,
.pdv-sale-cart-copy strong,
.pdv-sale-payment-copy strong {
  font-size: 1rem;
  line-height: 1.2;
}

.pdv-sale-search-copy span,
.pdv-sale-customer-result-copy span,
.pdv-sale-cart-copy span,
.pdv-sale-payment-copy span {
  color: var(--muted);
  font-size: 0.88rem;
}

.pdv-sale-search-side,
.pdv-sale-cart-metrics {
  display: grid;
  gap: 8px;
  justify-items: end;
  min-width: 0;
}

.pdv-sale-meta {
  font-size: 0.82rem;
  color: var(--muted);
  text-align: right;
}

.pdv-sale-money {
  font-size: 0.98rem;
  font-weight: 700;
  white-space: nowrap;
  line-height: 1.05;
  letter-spacing: -0.02em;
}

.pdv-sale-money.strong {
  font-size: clamp(1.18rem, 1.35vw, 1.55rem);
}

.pdv-sale-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid rgba(16, 45, 40, 0.1);
  background: rgba(255, 255, 255, 0.85);
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.pdv-sale-empty-state {
  display: grid;
  gap: 6px;
  padding: 18px;
  border-radius: 18px;
  border: 1px dashed rgba(16, 45, 40, 0.16);
  background: rgba(255, 255, 255, 0.46);
}

.pdv-sale-empty-state.compact {
  padding: 10px 12px;
}

.pdv-sale-cart-zone .pdv-sale-empty-state,
.pdv-sale-customer-zone .pdv-sale-empty-state,
.pdv-sale-checkout-zone .pdv-sale-empty-state {
  padding: 10px 12px;
  min-height: 72px;
  align-content: center;
}

.pdv-sale-empty-state strong {
  font-size: 0.96rem;
}

.pdv-sale-empty-state span {
  color: var(--muted);
  font-size: 0.88rem;
}

.pdv-sale-session-grid {
  grid-template-columns: repeat(auto-fit, minmax(105px, 1fr));
}

.pdv-sale-summary-grid {
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
}

.pdv-sale-summary-card strong {
  white-space: normal;
  word-break: break-word;
  overflow: visible;
  text-overflow: clip;
  font-size: clamp(1rem, 1.25vw, 1.32rem);
  line-height: 1.15;
}

.pdv-sale-summary-total,
.stat-card.pdv-sale-summary-total {
  background: linear-gradient(155deg, rgb(18, 48, 42), rgb(29, 64, 57)) !important;
  background-color: rgb(18, 48, 42) !important;
  color: #f5f1eb !important;
  border-color: rgba(200, 155, 60, 0.35) !important;
  box-shadow: 0 4px 16px rgba(8, 14, 13, 0.18);
}

.pdv-sale-summary-total span,
.stat-card.pdv-sale-summary-total span {
  color: rgba(245, 241, 235, 0.7) !important;
}

.pdv-sale-summary-total strong,
.stat-card.pdv-sale-summary-total strong {
  color: #ffffff !important;
  font-size: clamp(1.4rem, 1.75vw, 2rem);
}

.pdv-sale-checkout-zone {
  position: sticky;
  top: 18px;
}

.pdv-sale-payment-panel {
  padding: 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.38);
  border: 1px solid rgba(16, 45, 40, 0.08);
}

.pdv-sale-payment-groups {
  display: grid;
  gap: 14px;
}

.pdv-sale-payment-group {
  display: grid;
  gap: 12px;
  padding: 14px;
  border-radius: 16px;
  border: 1px solid rgba(16, 45, 40, 0.08);
  background: rgba(255, 255, 255, 0.52);
}

.pdv-sale-payment-head {
  display: grid;
  gap: 4px;
}

.pdv-sale-payment-head strong {
  font-size: 0.98rem;
}

.pdv-sale-payment-head span {
  color: var(--muted);
  font-size: 0.86rem;
}

.pdv-sale-payment-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.pdv-sale-payment-fields label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 700;
}

.pdv-sale-finalize-form {
  gap: 14px;
}

.pdv-sale-finalize-support {
  display: grid;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 16px;
  border: 1px solid rgba(16, 45, 40, 0.08);
  background: rgba(255, 255, 255, 0.48);
}

.pdv-sale-finalize-support-head {
  display: grid;
  gap: 3px;
}

.pdv-sale-finalize-support-head strong {
  font-size: 0.82rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.pdv-sale-finalize-support-head span {
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.4;
}

.pdv-sale-finalize-support-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.pdv-sale-final-actions {
  grid-column: 1 / -1;
}

.pdv-sale-final-button {
  min-height: 52px;
  padding-inline: 24px;
  font-size: 1rem;
  font-weight: 600;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.pdv-sale-customer-card,
.pdv-sale-cash-card {
  gap: 6px;
}

.pdv-sale-quick-customer {
  margin-top: 8px;
}

body.theme-dark .pdv-sale-search-card,
body.theme-dark .pdv-sale-customer-result-card,
body.theme-dark .pdv-sale-cart-card,
body.theme-dark .pdv-sale-payment-card,
body.theme-dark .pdv-sale-payment-group,
body.theme-dark .pdv-sale-payment-panel,
body.theme-dark .pdv-sale-finalize-support,
body.theme-dark .pdv-sale-draft-card,
body.theme-dark .pdv-sale-empty-state {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.08);
}

body.theme-dark .pdv-drawer {
  background:
    linear-gradient(180deg, rgba(11, 22, 20, 0.98), rgba(14, 28, 25, 0.98)),
    radial-gradient(circle at top right, rgba(200, 155, 60, 0.12), transparent 38%);
  border-left-color: rgba(255, 255, 255, 0.08);
}

body.theme-dark .pdv-sale-chip {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.12);
}

body.theme-dark .pdv-sale-origin-badge {
  background: rgba(200, 155, 60, 0.16);
  border-color: rgba(200, 155, 60, 0.28);
  color: #f3d88e;
}

body.theme-dark .pdv-sale-summary-total,
body.theme-dark .stat-card.pdv-sale-summary-total {
  background: linear-gradient(155deg, rgb(14, 34, 31), rgb(24, 48, 43)) !important;
  background-color: rgb(14, 34, 31) !important;
}

/* ── PDV: correcciones de hierarquia visual e truncamento ──────────────── */

/* Session summary cards: valores legíveis sem corte */
.pdv-sale-session-grid .stat-card {
  min-height: 100px;
  padding: 14px 16px;
}

.pdv-sale-session-grid .stat-card strong {
  white-space: normal;
  word-break: break-all;
  overflow: visible;
  text-overflow: clip;
  font-size: clamp(0.88rem, 1vw, 1.05rem);
  margin-top: 6px;
  letter-spacing: -0.01em;
}

/* Top metrics: números grandes e legíveis em uma linha */
.pdv-sale-top-metrics .stat-card {
  min-height: 88px;
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.8);
  border-color: rgba(16, 45, 40, 0.1);
  border-radius: 16px;
  transition: box-shadow 0.15s ease, transform 0.15s ease;
}

.pdv-sale-top-metrics .stat-card:hover {
  box-shadow: 0 4px 16px rgba(16, 45, 40, 0.1);
  transform: translateY(-1px);
}

.pdv-sale-top-metrics .stat-card span {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}

.pdv-sale-top-metrics .stat-card strong {
  font-size: clamp(1.55rem, 1.8vw, 2.2rem);
  margin-top: 4px;
  font-weight: 800;
  letter-spacing: -0.04em;
}

/* Produto: destaque para preço e disponibilidade */
.pdv-sale-search-card {
  gap: 10px;
  padding: 16px 18px;
  border-left: 3px solid transparent;
  transition: border-color 0.15s ease;
}

.pdv-sale-search-card:hover {
  border-left-color: var(--gold);
}

.pdv-sale-search-copy strong {
  font-size: 1.02rem;
  font-weight: 700;
  color: var(--text);
}

.pdv-sale-search-copy span {
  font-size: 0.8rem;
  color: var(--muted);
  line-height: 1.5;
}

.pdv-sale-money {
  font-size: 1.08rem;
  font-weight: 800;
}

/* Cleanup checkout sticky overrides */
.pdv-sale-checkout-zone {
  /* Default block layout */
}

/* Customer panel */
.pdv-sale-customer-zone {
  /* Default panel */
}

/* Action chips: mais respiro */
.pdv-sale-action-chips .ghost-button {
  min-height: 42px;
  padding: 10px 18px;
  font-size: 0.88rem;
  font-weight: 600;
}

/* Abas: scrollbar sutil mas funcional */
.pdv-route-tabs::-webkit-scrollbar {
  height: 4px;
}

.pdv-route-tabs::-webkit-scrollbar-track {
  background: transparent;
}

.pdv-route-tabs::-webkit-scrollbar-thumb {
  background: rgba(16, 45, 40, 0.18);
  border-radius: 999px;
}

/* Aba ativa: mais destaque */
.pdv-route-tab.active {
  background: linear-gradient(135deg, rgba(200, 155, 60, 0.22), rgba(250, 240, 216, 0.98));
  border-color: rgba(200, 155, 60, 0.55);
  color: #7a5a18;
  box-shadow: 0 2px 8px rgba(200, 155, 60, 0.18);
}

/* Zones: identidade visual por função */
.pdv-sale-product-zone {
  border-top: 3px solid rgba(16, 45, 40, 0.12);
}

.pdv-sale-cart-zone {
  border-top: 3px solid rgba(16, 45, 40, 0.12);
}

/* Campo de busca de produto: destaque */
.pdv-sale-search-label input {
  min-height: 52px;
  font-size: 1.02rem;
  border-radius: 16px;
  border-width: 1.5px;
  background: rgba(255, 255, 255, 0.92);
  padding: 14px 18px;
}

.pdv-sale-search-label input:focus {
  border-color: rgba(200, 155, 60, 0.6);
  box-shadow: 0 0 0 3px rgba(200, 155, 60, 0.12);
}

/* Campo de busca de cliente */
#pdv-customer-search {
  min-height: 52px;
  font-size: 1.02rem;
  border-radius: 16px;
  border-width: 1.5px;
}

/* Botão abrir sessão: mais imponente */
#open-pdv-session {
  min-height: 44px;
  padding: 10px 22px;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  box-shadow: 0 8px 20px rgba(16, 45, 40, 0.18);
}

/* Painel de fechamento: topo dourado */
.pdv-sale-checkout-zone {
  border-top: 3px solid rgba(200, 155, 60, 0.45);
}

/* Ações da venda: fundo mais suave */
.pdv-sale-actions-shell {
  background: rgba(255, 255, 255, 0.5);
  border: 1px dashed rgba(16, 45, 40, 0.14);
}

/* Dark mode overrides */
body.theme-dark .pdv-sale-customer-zone {
  border-top-color: rgba(200, 155, 60, 0.28);
}

body.theme-dark .pdv-route-tabs::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.14);
}

body.theme-dark .pdv-route-tab.active {
  background: linear-gradient(135deg, rgba(200, 155, 60, 0.2), rgba(30, 40, 35, 0.98));
  border-color: rgba(200, 155, 60, 0.48);
  color: #f3d88e;
}

/* ── PDV PREMIUM REDESIGN v2 ─────────────────────────────────────────────── */

/* Barra de ações rápidas — logo abaixo do cabeçalho do painel */
.pdv-action-chips-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 10px 0 4px;
  border-bottom: 1px solid rgba(16, 45, 40, 0.08);
  margin-bottom: 4px;
}
.pdv-action-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 32px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1.5px solid rgba(16, 45, 40, 0.14);
  background: rgba(255, 255, 255, 0.82);
  color: var(--text);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: border-color 0.13s ease, background 0.13s ease, color 0.13s ease;
}
.pdv-action-chip:hover {
  border-color: rgba(200, 155, 60, 0.52);
  background: rgba(250, 240, 216, 0.9);
  color: #7a5a18;
}
body.theme-dark .pdv-action-chips-bar { border-bottom-color: rgba(255,255,255,0.07); }
body.theme-dark .pdv-action-chip { background: rgba(255,255,255,0.06); border-color: rgba(255,255,255,0.12); color: rgba(248,241,228,0.82); }
body.theme-dark .pdv-action-chip:hover { border-color: rgba(200,155,60,0.4); background: rgba(200,155,60,0.1); color: #f3d88e; }

/* Container reset quando infobar está ativo */
.pdv-sale-infobar-slot {
  display: block !important;
  grid-template-columns: none !important;
}

/* Session Info Bar */
.pdv-session-infobar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 20px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(18, 48, 42, 0.97), rgba(26, 60, 54, 0.94));
  border: 1px solid rgba(200, 155, 60, 0.22);
  box-shadow: 0 4px 18px rgba(8, 14, 13, 0.14);
  flex-wrap: wrap;
  gap: 12px 20px;
}
.pdv-session-infobar-left {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 14px;
  min-width: 0;
}
.pdv-session-id {
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  color: rgba(248, 241, 228, 0.6);
  font-family: monospace;
  white-space: nowrap;
}
.pdv-session-status-badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 0.67rem;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  white-space: nowrap;
}
.pdv-session-status-badge.open {
  background: rgba(48, 188, 120, 0.2);
  border: 1px solid rgba(48, 188, 120, 0.36);
  color: #7ff4bc;
}
.pdv-session-status-badge.closed {
  background: rgba(200, 155, 60, 0.18);
  border: 1px solid rgba(200, 155, 60, 0.32);
  color: #f3d88e;
}
.pdv-session-meta-item {
  font-size: 0.8rem;
  color: rgba(248, 241, 228, 0.62);
  white-space: nowrap;
}
.pdv-session-meta-item strong {
  color: rgba(248, 241, 228, 0.88);
  font-weight: 700;
}
.pdv-session-infobar-right {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-shrink: 0;
}
.pdv-session-metric {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 1px;
}
.pdv-session-metric span {
  font-size: 0.63rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: rgba(248, 241, 228, 0.5);
}
.pdv-session-metric strong {
  font-size: 1.18rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #fff6e8;
  line-height: 1;
}
.pdv-session-metric.highlight strong {
  color: var(--gold);
}

/* Product Cards — premium */
.pdv-product-card {
  border-radius: 14px;
  border: 1px solid rgba(16, 45, 40, 0.09);
  background: rgba(255, 255, 255, 0.72);
  overflow: hidden;
  transition: box-shadow 0.14s ease, transform 0.14s ease, border-color 0.14s ease;
}
.pdv-product-card:hover {
  box-shadow: 0 4px 20px rgba(16, 45, 40, 0.1);
  transform: translateY(-1px);
  border-color: rgba(200, 155, 60, 0.38);
}
.pdv-product-card-body {
  display: grid;
  grid-template-columns: var(--product-media-list-w) minmax(0, 1fr) auto;
  gap: 18px;
  padding: 16px;
  align-items: center;
}

.pdv-product-card-media {
  width: var(--product-media-list-w);
  height: var(--product-media-list-h);
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(16, 45, 40, 0.12);
  background:
    radial-gradient(circle at 28% 22%, rgba(200, 155, 60, 0.2), transparent 46%),
    rgba(16, 45, 40, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
}

.pdv-product-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}

.pdv-product-card-media .pdv-products-photo-fallback {
  font-size: 0.92rem;
}
.pdv-product-card-identity {
  display: grid;
  gap: 5px;
  min-width: 0;
}
.pdv-product-card-name {
  font-size: 0.96rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--text);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.pdv-product-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}
.pdv-product-card-tag {
  display: inline-flex;
  align-items: center;
  padding: 2px 7px;
  border-radius: 999px;
  background: rgba(16, 45, 40, 0.06);
  border: 1px solid rgba(16, 45, 40, 0.09);
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--muted);
  letter-spacing: 0.02em;
  white-space: nowrap;
}
.pdv-product-card-sku {
  font-size: 0.7rem;
  color: var(--muted);
  letter-spacing: 0.04em;
  opacity: 0.7;
  font-family: monospace;
}
.pdv-product-card-identifiers {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}
.pdv-product-card-tag.missing {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.48);
}
.pdv-product-card-action {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 5px;
  flex-shrink: 0;
}
.pdv-product-card-price {
  font-size: clamp(1.15rem, 1.45vw, 1.45rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--text);
  line-height: 1;
  white-space: nowrap;
}
.pdv-product-card-stock {
  display: grid;
  gap: 2px;
  font-size: 0.7rem;
  color: var(--muted);
  text-align: right;
}
.pdv-product-card-stock strong {
  font-size: 0.72rem;
  color: var(--text);
}
.pdv-product-card-stock span {
  white-space: normal;
  line-height: 1.35;
}
.pdv-product-card-stock-ready strong { color: #1f8f65; }
.pdv-product-card-stock-adjacent strong { color: #3d8bff; }
.pdv-product-card-stock-pending strong { color: #2DD4BF; }
.pdv-product-card-stock-warning strong { color: #c79a2b; }
.pdv-product-card-stock-logistics strong { color: #c36b26; }
.pdv-product-card-stock-blocked strong { color: #b44c4c; }
.pdv-product-card-btn-pending,
.pdv-product-card-btn-warning,
.pdv-product-card-btn-logistics {
  background: rgba(255, 255, 255, 0.9);
  color: var(--text);
}
.pdv-product-card-btn-blocked {
  background: rgba(255, 255, 255, 0.18);
  color: var(--muted);
}
.pdv-product-card-btn {
  margin-top: 2px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 7px 14px;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(18, 48, 42, 0.92), rgba(26, 60, 54, 0.88));
  border: 1px solid rgba(200, 155, 60, 0.22);
  color: #f5f1eb;
  font-size: 0.79rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.13s ease, box-shadow 0.13s ease;
}
.pdv-product-card-btn:hover {
  background: linear-gradient(135deg, rgba(26, 64, 56, 0.97), rgba(34, 76, 68, 0.92));
  box-shadow: 0 4px 12px rgba(16, 45, 40, 0.22);
}
body.theme-dark .pdv-product-card {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.08);
}
body.theme-dark .pdv-product-card:hover {
  border-color: rgba(200, 155, 60, 0.3);
}
body.theme-dark .pdv-product-card-tag {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.5);
}
body.theme-dark .pdv-products-table tr.is-selected {
  background: rgba(37, 99, 235, 0.16);
}

/* Customer Profile (cliente vinculado) */
.pdv-customer-profile {
  border-radius: 14px;
  border: 1px solid rgba(200, 155, 60, 0.28);
  background: linear-gradient(155deg, rgba(255, 255, 255, 0.88), rgba(250, 244, 230, 0.6));
  overflow: hidden;
}
.pdv-customer-profile-hero {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 14px 18px;
  background: linear-gradient(135deg, rgba(18, 48, 42, 0.97), rgba(26, 60, 54, 0.94));
  border-bottom: 1px solid rgba(200, 155, 60, 0.18);
}
.pdv-customer-profile-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(200, 155, 60, 0.55), rgba(200, 155, 60, 0.28));
  border: 2px solid rgba(200, 155, 60, 0.48);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  font-weight: 800;
  color: #fff6e8;
  flex-shrink: 0;
  letter-spacing: -0.02em;
}
.pdv-customer-profile-identity { min-width: 0; }
.pdv-customer-profile-name {
  display: block;
  font-size: 1.02rem;
  font-weight: 800;
  color: #f5f1eb;
  letter-spacing: -0.01em;
  line-height: 1.2;
  margin-bottom: 5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.pdv-customer-profile-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 5px;
  font-size: 0.78rem;
  color: rgba(248, 241, 228, 0.6);
}
.pdv-customer-abc-badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 7px;
  border-radius: 999px;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.pdv-customer-abc-badge.a { background: rgba(200,155,60,0.28); color: #f3d88e; border: 1px solid rgba(200,155,60,0.4); }
.pdv-customer-abc-badge.b { background: rgba(48,188,120,0.2); color: #7ff4bc; border: 1px solid rgba(48,188,120,0.3); }
.pdv-customer-abc-badge.c { background: rgba(255,255,255,0.1); color: rgba(248,241,228,0.65); border: 1px solid rgba(255,255,255,0.14); }
.pdv-customer-origin-chip {
  display: inline-flex;
  align-items: center;
  padding: 2px 7px;
  border-radius: 999px;
  font-size: 0.64rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: rgba(248, 241, 228, 0.62);
}
.pdv-customer-profile-cashback {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 1px;
  flex-shrink: 0;
}
.pdv-customer-profile-cashback span {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(200, 155, 60, 0.7);
}
.pdv-customer-profile-cashback strong {
  font-size: 1.22rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--gold);
  line-height: 1;
}
.pdv-customer-profile-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-bottom: 1px solid rgba(16, 45, 40, 0.07);
}
.pdv-customer-profile-stat {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 10px 12px;
  border-right: 1px solid rgba(16, 45, 40, 0.07);
}
.pdv-customer-profile-stat:last-child { border-right: none; }
.pdv-customer-profile-stat span {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}
.pdv-customer-profile-stat strong {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.01em;
  line-height: 1.2;
}
.pdv-customer-profile-intel {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 12px;
  padding: 9px 16px;
  align-items: baseline;
  background: rgba(255, 255, 255, 0.36);
}
.pdv-customer-profile-intel + .pdv-customer-profile-intel {
  border-top: 1px solid rgba(16, 45, 40, 0.07);
}
.pdv-customer-intel-label {
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
}
.pdv-customer-intel-value {
  font-size: 0.78rem;
  color: var(--text);
}
body.theme-dark .pdv-customer-profile {
  background: linear-gradient(155deg, rgba(255,255,255,0.05), rgba(200,155,60,0.04));
  border-color: rgba(200, 155, 60, 0.2);
}
body.theme-dark .pdv-customer-profile-stats,
body.theme-dark .pdv-customer-profile-stat { border-color: rgba(255,255,255,0.07); }
body.theme-dark .pdv-customer-profile-intel { background: rgba(255,255,255,0.03); }

/* Customer Search Result Cards */
.pdv-customer-result-card-v2 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  align-items: stretch;
  padding: 14px;
  border-radius: 16px;
  border: 1px solid rgba(16, 45, 40, 0.09);
  background: rgba(255, 255, 255, 0.7);
  transition: border-color 0.13s ease, box-shadow 0.13s ease;
  min-width: 0;
}
.pdv-customer-result-card-v2:hover {
  border-color: rgba(200, 155, 60, 0.34);
  box-shadow: 0 3px 14px rgba(16, 45, 40, 0.08);
}
.pdv-customer-result-main-v2 {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 9px;
  align-items: center;
  min-width: 0;
}

.pdv-customer-result-avatar-v2 {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(18, 48, 42, 0.14), rgba(18, 48, 42, 0.07));
  border: 1.5px solid rgba(16, 45, 40, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--text);
  flex-shrink: 0;
}
.pdv-customer-result-info-v2 { min-width: 0; display: grid; gap: 3px; }
.pdv-customer-result-name-v2 {
  font-size: 0.92rem;
  font-weight: 850;
  color: var(--text);
  white-space: normal;
  overflow-wrap: anywhere;
  display: block;
  line-height: 1.16;
  text-align: left;
}
.pdv-customer-result-meta-v2 {
  font-size: 0.76rem;
  color: var(--muted);
  white-space: normal;
  overflow: hidden;
  display: block;
  line-height: 1.25;
  text-align: left;
}

.pdv-customer-result-bottom-v2 {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(92px, auto);
  gap: 10px;
  align-items: end;
  min-width: 0;
}
.pdv-customer-result-cashback-v2 {
  display: grid;
  gap: 2px;
  min-width: 0;
  align-self: stretch;
  padding: 8px 10px;
  border-radius: 12px;
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.12);
}
.pdv-customer-result-cashback-v2 span {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--muted);
}
.pdv-customer-result-cashback-v2 strong {
  font-size: 0.94rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #3a6e1a;
}

.pdv-customer-result-cashback-v2 small {
  display: block;
  color: var(--muted);
  font-size: 0.7rem;
  line-height: 1.25;
}
.pdv-customer-result-btn-v2 {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 9px 15px;
  align-self: stretch;
  border-radius: 999px;
  border: 1.5px solid rgba(16, 45, 40, 0.16);
  background: rgba(255, 255, 255, 0.9);
  color: var(--text);
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: border-color 0.13s ease, background 0.13s ease, color 0.13s ease;
  flex-shrink: 0;
}
.pdv-customer-result-btn-v2:hover {
  border-color: rgba(200, 155, 60, 0.55);
  background: rgba(250, 240, 216, 0.92);
  color: #7a5a18;
}
body.theme-dark .pdv-customer-result-card-v2 {
  background: rgba(255,255,255,0.04);
  border-color: rgba(255,255,255,0.08);
}
body.theme-dark .pdv-customer-result-cashback-v2 {
  background: rgba(16, 185, 129, 0.08);
  border-color: rgba(110, 231, 168, 0.14);
}
body.theme-dark .pdv-customer-result-cashback-v2 strong { color: #7ff4bc; }
body.theme-dark .pdv-customer-result-btn-v2 {
  background: rgba(255,255,255,0.06);
  border-color: rgba(255,255,255,0.12);
  color: rgba(248,241,228,0.85);
}

.pdv-customer-search-loading,
.pdv-customer-empty-state {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 16px;
  border: 1px solid rgba(45, 212, 191, 0.18);
  background: linear-gradient(145deg, rgba(45, 212, 191, 0.08), rgba(255, 255, 255, 0.035));
}

.pdv-customer-empty-state {
  grid-template-columns: minmax(0, 1fr);
  border-color: rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
}

.pdv-customer-empty-state.is-error {
  border-color: rgba(248, 113, 113, 0.24);
  background: rgba(248, 113, 113, 0.08);
}

.pdv-customer-search-loading strong,
.pdv-customer-empty-state strong {
  display: block;
  color: #f4f7fa;
  font-size: 0.95rem;
  line-height: 1.2;
}

.pdv-customer-search-loading span,
.pdv-customer-empty-state span {
  display: block;
  color: #aab4c0;
  font-size: 0.82rem;
  line-height: 1.35;
}

.pdv-mini-spinner {
  width: 18px;
  height: 18px;
  border-radius: 999px;
  border: 2px solid rgba(45, 212, 191, 0.18);
  border-top-color: rgba(45, 212, 191, 0.92);
  animation: pdvMiniSpin 0.75s linear infinite;
}

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

/* Payment — grade 2 colunas compacta */
.pdv-payment-group-v2 {
  display: grid;
  gap: 4px 0;
}
.pdv-payment-group-title {
  font-size: 0.63rem;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 8px 12px 4px;
}
.pdv-payment-methods-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3px;
  padding: 0 4px;
}
.pdv-payment-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 7px 10px;
  border-radius: 9px;
  border: 1px solid transparent;
  transition: background 0.12s ease, border-color 0.12s ease;
}
.pdv-payment-row.full-width {
  grid-column: 1 / -1;
}
.pdv-payment-row:hover {
  background: rgba(255, 255, 255, 0.65);
  border-color: rgba(16, 45, 40, 0.08);
}
.pdv-payment-row.active {
  background: linear-gradient(135deg, rgba(250, 244, 230, 0.92), rgba(255, 255, 255, 0.75));
  border-color: rgba(200, 155, 60, 0.35);
}
.pdv-payment-row-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 1;
}
.pdv-payment-row.active .pdv-payment-row-label { font-weight: 700; color: #5a3e0a; }
.pdv-payment-row-fields { display: flex; gap: 5px; align-items: center; flex-shrink: 0; }
.pdv-payment-row-field { display: flex; align-items: center; gap: 0; }
.pdv-payment-row-field span { display: none; }
.pdv-payment-row-field input {
  width: 70px;
  padding: 5px 7px;
  border-radius: 7px;
  border: 1.5px solid rgba(16, 45, 40, 0.13);
  background: rgba(255, 255, 255, 0.92);
  font-size: 0.82rem;
  font-weight: 700;
  text-align: right;
  color: var(--text);
  transition: border-color 0.12s ease;
}
.pdv-payment-row-field input:focus {
  outline: none;
  border-color: rgba(200, 155, 60, 0.55);
  box-shadow: 0 0 0 2px rgba(200, 155, 60, 0.1);
}
.pdv-payment-row.active .pdv-payment-row-field input { border-color: rgba(200, 155, 60, 0.42); color: #5a3e0a; }
.pdv-payment-row-field input[type="number"]::-webkit-inner-spin-button { opacity: 0.35; }
/* parcelas label visível só para crédito */
.pdv-payment-row.full-width .pdv-payment-row-field span {
  display: inline;
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--muted);
  margin-right: 4px;
  white-space: nowrap;
}
.pdv-payment-row.full-width .pdv-payment-row-field input { width: 62px; }
/* form de fechamento compacto */
.pdv-sale-finalize-form {
  gap: 8px !important;
}
.pdv-sale-finalize-form label {
  font-size: 0.75rem !important;
  gap: 3px !important;
}
.pdv-sale-finalize-form input,
.pdv-sale-finalize-form select {
  padding: 7px 10px !important;
  font-size: 0.85rem !important;
  border-radius: 8px !important;
}
body.theme-dark .pdv-payment-row:hover { background: rgba(255,255,255,0.05); border-color: rgba(255,255,255,0.08); }
body.theme-dark .pdv-payment-row.active { background: rgba(200,155,60,0.08); border-color: rgba(200,155,60,0.25); }
body.theme-dark .pdv-payment-row.active .pdv-payment-row-label { color: #f3d88e; }
body.theme-dark .pdv-payment-row-field input { background: rgba(255,255,255,0.06); border-color: rgba(255,255,255,0.12); color: rgba(248,241,228,0.9); }

/* Produto esgotado: dimmed, sem botão de adicionar */
.pdv-product-card.esgotado {
  opacity: 0.48;
  filter: grayscale(0.35);
  pointer-events: none;
}
.pdv-product-card.esgotado .pdv-product-card-btn { display: none; }

/* Cart item card — premium */
.pdv-cart-item-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid rgba(16, 45, 40, 0.09);
  background: rgba(255, 255, 255, 0.72);
  transition: border-color 0.13s ease;
}
.pdv-cart-item-card:hover { border-color: rgba(200, 155, 60, 0.3); }
.pdv-cart-item-left {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  min-width: 0;
}
.pdv-cart-item-qty {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(18, 48, 42, 0.12), rgba(18, 48, 42, 0.07));
  border: 1.5px solid rgba(16, 45, 40, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--text);
  flex-shrink: 0;
  letter-spacing: -0.02em;
}
.pdv-cart-item-info { min-width: 0; display: grid; gap: 3px; }
.pdv-cart-item-name {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: block;
}
.pdv-cart-item-variation {
  font-size: 0.76rem;
  color: var(--muted);
  display: block;
}
.pdv-cart-item-note {
  font-size: 0.74rem;
  color: var(--muted);
  font-style: italic;
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.pdv-cart-item-logistics {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  font-size: 0.73rem;
  color: var(--muted);
}
.pdv-cart-item-logistics span {
  border-radius: 999px;
  border: 1px solid rgba(200, 155, 60, 0.18);
  background: rgba(255, 255, 255, 0.58);
  padding: 2px 8px;
}
.pdv-cart-item-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
  flex-shrink: 0;
}
.pdv-cart-item-pricing { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; }
.pdv-cart-item-unit {
  font-size: 0.72rem;
  color: var(--muted);
  white-space: nowrap;
}
.pdv-cart-item-total {
  font-size: clamp(1.05rem, 1.25vw, 1.3rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text);
  line-height: 1;
  white-space: nowrap;
}
.pdv-cart-item-actions {
  display: flex;
  gap: 4px;
}
.pdv-cart-action-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  height: 30px;
  padding: 0 8px;
  border-radius: 8px;
  border: 1.5px solid rgba(16, 45, 40, 0.14);
  background: rgba(255, 255, 255, 0.88);
  color: var(--text);
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  transition: border-color 0.12s ease, background 0.12s ease;
}
.pdv-cart-action-btn:hover {
  border-color: rgba(200, 155, 60, 0.5);
  background: rgba(250, 240, 216, 0.9);
}
.pdv-cart-action-btn.danger { color: #b53030; border-color: rgba(181, 48, 48, 0.18); font-size: 1rem; }
.pdv-cart-action-btn.danger:hover { border-color: rgba(181, 48, 48, 0.45); background: rgba(181, 48, 48, 0.06); color: #b53030; }
body.theme-dark .pdv-cart-item-card { background: rgba(255,255,255,0.04); border-color: rgba(255,255,255,0.08); }
body.theme-dark .pdv-cart-action-btn { background: rgba(255,255,255,0.06); border-color: rgba(255,255,255,0.12); color: rgba(248,241,228,0.85); }
body.theme-dark .pdv-cart-item-logistics span { background: rgba(255,255,255,0.05); border-color: rgba(255,255,255,0.12); }

.pdv-sale-resolution-modal {
  width: min(560px, calc(100vw - 32px));
  margin: auto;
  border-radius: 20px;
  border: 1px solid rgba(200, 155, 60, 0.22);
  background: rgba(12, 16, 20, 0.98);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.38);
  color: #f3ede1;
  padding: 20px;
  display: grid;
  gap: 16px;
}
.pdv-sale-resolution-header {
  display: flex;
  justify-content: space-between;
  gap: 16px;
}
.pdv-sale-resolution-header h3 {
  margin: 0 0 4px;
  font-size: 1.1rem;
}
.pdv-sale-resolution-header p {
  margin: 0;
  color: rgba(243, 237, 225, 0.72);
  line-height: 1.45;
}
.pdv-sale-resolution-body,
.pdv-sale-resolution-list,
.pdv-sale-resolution-actions {
  display: grid;
  gap: 10px;
}
.pdv-sale-resolution-product {
  display: grid;
  gap: 3px;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.pdv-sale-resolution-option {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.pdv-sale-resolution-option span {
  color: rgba(243, 237, 225, 0.72);
}

.pdv-sale-resolution-note {
  display: grid;
  gap: 8px;
  color: rgba(243, 237, 225, 0.78);
  font-size: 0.82rem;
  font-weight: 800;
}

.pdv-sale-resolution-note textarea {
  width: 100%;
  min-height: 74px;
  resize: vertical;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.055);
  color: rgba(248, 241, 228, 0.92);
  padding: 12px;
  outline: none;
}

.pdv-cart-item-logistics .pdv-cart-physical-badge {
  border-color: rgba(45, 212, 191, 0.42);
  background: rgba(45, 212, 191, 0.14);
  color: #2dd4bf;
}

.pdv-cart-item-note.physical {
  color: #2dd4bf;
  font-style: normal;
  font-weight: 800;
}

.pdv-sale-label-not-found {
  align-items: flex-start;
  border-color: rgba(45, 212, 191, 0.24);
  background: rgba(45, 212, 191, 0.07);
}

.pdv-sale-label-not-found .primary-button {
  width: fit-content;
  margin-top: 4px;
}

.pdv-label-product-drawer {
  background:
    radial-gradient(circle at 12% 0%, rgba(45, 212, 191, 0.10), transparent 30%),
    linear-gradient(180deg, #131A23 0%, #0F141B 100%);
  border-left-color: rgba(255, 255, 255, 0.08);
  color: #F4F7FA;
}

.pdv-label-product-drawer .pdv-drawer-header p {
  margin: 0;
  color: #AAB4C0;
  line-height: 1.45;
}

.pdv-label-product-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.pdv-label-product-grid label {
  display: grid;
  gap: 6px;
  font-size: 0.78rem;
  font-weight: 800;
  color: #AAB4C0;
}

.pdv-label-product-grid .span-2 {
  grid-column: 1 / -1;
}

.pdv-label-product-grid input,
.pdv-label-product-grid textarea {
  width: 100%;
  min-height: 42px;
  box-sizing: border-box;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: #0B0F14;
  color: #F4F7FA;
  padding: 10px 12px;
  outline: none;
}

.pdv-label-product-grid input:focus,
.pdv-label-product-grid textarea:focus {
  border-color: rgba(45, 212, 191, 0.42);
  box-shadow: 0 0 0 3px rgba(45, 212, 191, 0.10);
}

.pdv-label-product-confirmation {
  display: grid;
  gap: 4px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(45, 212, 191, 0.24);
  background: rgba(45, 212, 191, 0.08);
}

.pdv-label-product-confirmation span {
  color: #AAB4C0;
  font-size: 0.82rem;
}

@media (max-width: 720px) {
  .pdv-label-product-grid {
    grid-template-columns: 1fr;
  }
}

.table-wrap {
  position: relative;
  overflow-x: auto;
  overflow-y: hidden;
  width: 100%;
  max-width: 100%;
  padding-bottom: 4px;
}

.table-scroll-top {
  overflow-x: auto;
  overflow-y: hidden;
  height: 14px;
  margin-bottom: 8px;
}

.table-scroll-top-inner {
  height: 1px;
}

.table-meta {
  margin: 6px 0 0;
  color: var(--muted);
}

.aerointel-product-thumb {
  width: var(--product-media-list-w);
  height: var(--product-media-list-h);
  object-fit: cover;
  object-position: center top;
  border-radius: 16px;
  display: block;
  margin-bottom: 0.35rem;
  background: rgba(15, 23, 42, 0.06);
}

.aerointel-product-detail-media {
  margin-top: 1rem;
}

.aerointel-product-preview {
  width: min(220px, 100%);
  border-radius: 16px;
  display: block;
  background: rgba(15, 23, 42, 0.06);
}

table {
  width: 100%;
  min-width: 820px;
  border-collapse: collapse;
  table-layout: auto;
}

th,
td {
  text-align: left;
  padding: 13px 10px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
  line-height: 1.4;
  word-break: break-word;
}

th {
  white-space: nowrap;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--muted);
  position: sticky;
  top: 0;
  background: var(--surface-strong);
  z-index: 1;
}

tbody tr:hover td {
  background: rgba(19, 35, 33, 0.035);
}

.table-actions,
.action-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}

.action-row.compact label {
  min-width: 160px;
}

.helper-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
}

.token-box,
.settings-list,
.import-box {
  display: grid;
  gap: 12px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.45);
  border-radius: 18px;
  border: 1px solid rgba(16, 45, 40, 0.08);
}

.file-trigger {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  text-decoration: none;
}

.import-preview-box {
  display: grid;
  gap: 16px;
  margin-top: 18px;
}

.hidden {
  display: none !important;
}

.preview-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.preview-badge.ready,
.preview-badge.update {
  background: rgba(31, 122, 86, 0.12);
  color: var(--success);
}

.preview-badge.warning {
  background: rgba(245, 158, 11, 0.12);
  color: #fbbf24;
}

.preview-badge.duplicate,
.preview-badge.danger,
.preview-badge.ignored {
  background: rgba(176, 63, 63, 0.1);
  color: var(--error);
}

.card {
  background: var(--surface-strong);
  border: 1px solid rgba(19, 35, 33, 0.08);
  border-radius: 20px;
  padding: 18px;
  display: grid;
  gap: 10px;
  min-width: 0;
}

.card strong,
.card span,
.card p {
  word-break: break-word;
}

.cashback-reports-shell {
  background:
    radial-gradient(circle at top right, rgba(200, 147, 60, 0.22), transparent 26%),
    linear-gradient(145deg, #10201f, #182c2a 58%, #213532);
  color: #f8f1e8;
  border: 1px solid rgba(229, 199, 144, 0.18);
}

.cashback-reports-shell .panel-header h3,
.cashback-reports-shell .eyebrow,
.cashback-reports-shell label,
.cashback-reports-shell .table-meta {
  color: #f8f1e8;
}

.cashback-reports-shell input,
.cashback-reports-shell select {
  background: rgba(255, 255, 255, 0.94);
}

.cashback-report-filters {
  display: grid;
  gap: 18px;
}

.quick-range-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.quick-range-button {
  background: rgba(255, 255, 255, 0.09);
  color: #fff;
  border: 1px solid rgba(229, 199, 144, 0.16);
}

.quick-range-button.active {
  background: linear-gradient(135deg, var(--gold), var(--gold-soft));
  color: #261a09;
}

.cashback-report-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
}

.cashback-report-card {
  background: linear-gradient(160deg, #11211f, #1e3430);
  color: #fff;
  border-radius: 24px;
  padding: 22px;
  border: 1px solid rgba(229, 199, 144, 0.12);
  box-shadow: 0 18px 40px rgba(10, 16, 15, 0.28);
  cursor: pointer;
  min-width: 0;
}

.cashback-report-card.active {
  outline: 2px solid rgba(229, 199, 144, 0.55);
  transform: translateY(-1px);
}

.cashback-report-card span,
.cashback-report-card small {
  display: block;
}

.cashback-report-card span {
  color: rgba(255, 255, 255, 0.7);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.72rem;
}

.cashback-report-card strong {
  display: block;
  margin-top: 12px;
  font-size: clamp(1.6rem, 3vw, 2.5rem);
  line-height: 1;
}

.cashback-report-card small {
  margin-top: 10px;
  color: rgba(255, 255, 255, 0.82);
}

.cashback-report-kpis {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.cashback-report-kpi {
  background: rgba(255, 250, 243, 0.96);
  border-radius: 22px;
  padding: 20px;
  border: 1px solid rgba(19, 35, 33, 0.08);
  box-shadow: var(--shadow);
}

.cashback-report-kpi span {
  display: block;
  color: var(--muted);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.cashback-report-kpi strong {
  display: block;
  margin-top: 10px;
  font-size: 1.8rem;
}

.cashback-report-table-panel .table-wrap {
  background: rgba(255, 255, 255, 0.94);
  border-radius: 18px;
}

.cashback-report-table th,
.cashback-report-table td {
  white-space: nowrap;
}

.pagination-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  margin-top: 18px;
  flex-wrap: wrap;
}

.login-overlay {
  position: fixed;
  inset: 0;
  background: rgba(12, 23, 22, 0.62);
  backdrop-filter: blur(10px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 999;
  padding: 24px;
}

.login-overlay.active {
  display: flex;
}

body[data-auth-shell="authenticated"] #login-overlay,
body[data-auth-shell="authenticated"] .login-overlay {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

.login-card {
  width: min(460px, 100%);
  background: var(--surface-strong);
  border-radius: 24px;
  padding: 24px;
  box-shadow: var(--shadow);
  border: 1px solid rgba(255, 255, 255, 0.6);
  display: grid;
  gap: 12px;
}

.login-fields {
  display: grid;
  gap: 12px;
}

.login-card h2,
.login-card p {
  margin: 0;
}

.login-help,
.login-status,
.login-error,
.pin-validated-subtitle,
.helper-text {
  color: var(--muted);
  line-height: 1.5;
}

.login-overlay[data-mode="checking"] .login-card {
  min-height: 280px;
  align-content: center;
}

.login-overlay[data-mode="checking"] .login-fields,
.login-overlay[data-mode="checking"] .login-error {
  display: none;
}

.login-status {
  min-height: 22px;
  font-weight: 600;
}

.login-error {
  color: var(--error);
  min-height: 22px;
}

.pin-validated {
  color: var(--success);
  display: block;
  font-size: 1.15rem;
  font-weight: 800;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 999px;
  padding: 8px 12px;
  background: rgba(200, 147, 60, 0.14);
  color: #6d4a15;
  width: fit-content;
  max-width: 100%;
}

.active-campaign-card,
.message-preview,
.empty-state {
  min-height: 160px;
  padding: 18px;
  border-radius: 18px;
  border: 1px dashed rgba(19, 35, 33, 0.18);
  background: rgba(255, 255, 255, 0.58);
  white-space: pre-wrap;
  word-break: break-word;
  overflow-wrap: anywhere;
}

.wizard-summary-card {
  display: grid;
  gap: 10px;
  min-height: 0;
  padding: 18px;
  background: rgba(255, 255, 255, 0.62);
  border-radius: 18px;
  border: 1px solid rgba(16, 45, 40, 0.08);
}

.assistant-layout {
  display: grid;
  gap: 16px;
  min-width: 0;
}

.assistant-layout h4 {
  margin: 0;
  font-size: 1.25rem;
}

.assistant-layout span,
.assistant-layout strong {
  word-break: break-word;
}

.operation-hero {
  margin-bottom: 20px;
}

.operation-grid {
  align-items: start;
}

.campaign-row-card {
  display: grid;
  gap: 14px;
}

.campaign-row-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
  flex-wrap: wrap;
}

.campaign-meta-line,
.campaign-stats-inline,
.campaign-metrics-grid {
  display: flex;
  gap: 10px 14px;
  flex-wrap: wrap;
  color: var(--muted);
}

.campaign-metrics-grid span,
.campaign-stats-inline span {
  white-space: nowrap;
}

.operation-summary-card {
  gap: 10px;
}

.operation-error-banner {
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(160, 45, 45, 0.08);
  border: 1px solid rgba(160, 45, 45, 0.14);
  color: #7c1f1f;
}

.operation-controls {
  align-items: center;
}

.operation-media-preview {
  width: 100%;
  max-width: 320px;
  border-radius: 16px;
  border: 1px solid rgba(19, 35, 33, 0.1);
  background: rgba(255, 255, 255, 0.9);
}

.operation-file-card {
  display: grid;
  gap: 8px;
  padding: 16px;
  border-radius: 16px;
  border: 1px solid rgba(19, 35, 33, 0.08);
  background: rgba(255, 255, 255, 0.82);
}

.ai-response-box {
  display: grid;
  gap: 18px;
  min-width: 0;
}

.ai-response-summary {
  display: grid;
  gap: 10px;
}

.ai-shell-panel {
  padding: 24px;
  overflow: hidden;
}

.ai-shell-header {
  align-items: flex-start;
}

.ai-tab-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.ai-tab-button {
  background: rgba(16, 45, 40, 0.06);
}

.ai-tab-button.active {
  background: var(--text);
  color: var(--bg);
  border-color: transparent;
}

.ai-tab-panels,
.ai-tab-panel {
  min-width: 0;
}

.ai-tab-panel {
  display: none;
}

.ai-tab-panel.active {
  display: grid;
  gap: 18px;
}

.ai-focus-grid,
.ai-products-top-layout,
.ai-templates-layout {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}

.ai-curated-layout {
  display: grid;
  gap: 18px;
  margin-top: 18px;
}

.ai-inner-panel {
  box-shadow: none;
  background: rgba(255, 255, 255, 0.82);
}

.ai-channel-settings {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid rgba(16, 45, 40, 0.08);
}

.checkbox-field {
  display: flex !important;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 10px 14px;
  border-radius: 14px;
  border: 1px solid rgba(16, 45, 40, 0.12);
  background: rgba(255, 255, 255, 0.92);
}

.checkbox-field input[type="checkbox"] {
  width: 18px;
  height: 18px;
  min-height: 18px;
  margin: 0;
}

.checkbox-field span {
  color: var(--text);
  font-size: 0.92rem;
  font-weight: 600;
}

.ai-product-suggestions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}

.ai-strategic-products-grid,
.ai-curated-summary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 14px;
}

.ai-strategic-product-card,
.ai-curated-stat-card,
.ai-curated-preview-card {
  border-radius: 18px;
  border: 1px solid rgba(16, 45, 40, 0.1);
  background: linear-gradient(180deg, rgba(255, 252, 246, 0.96), rgba(255, 255, 255, 0.98));
  padding: 16px;
}

.ai-strategic-product-card {
  display: grid;
  gap: 10px;
}

.ai-strategic-product-card-header,
.ai-curated-preview-head,
.ai-curated-preview-foot,
.ai-curated-toolbar-actions {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.ai-strategic-product-card-header span,
.ai-curated-preview-title span,
.ai-curated-preview-foot span,
.ai-curated-stat-card span,
.ai-curated-stat-card small {
  color: var(--muted);
  font-size: 0.82rem;
}

.ai-strategic-product-metrics,
.ai-strategic-product-badges,
.ai-curated-preview-warnings {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.ai-curated-stat-card strong {
  font-size: 1.6rem;
  color: var(--text);
}

.ai-curated-toolbar {
  margin-top: 16px;
}

.ai-curated-preview-list {
  display: grid;
  gap: 16px;
  margin-top: 18px;
}

.ai-curated-preview-card.is-selected {
  border-color: rgba(16, 45, 40, 0.24);
  box-shadow: 0 20px 40px rgba(16, 45, 40, 0.08);
}

.ai-curated-preview-title {
  display: grid;
  gap: 4px;
  min-width: 220px;
  flex: 1;
}

.ai-curated-preview-meta {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.ai-curated-preview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
  margin-top: 14px;
}

.ai-curated-preview-grid label,
.ai-curated-preview-actions .checkbox-field {
  display: grid;
  gap: 6px;
}

.ai-curated-preview-grid label.full {
  grid-column: 1 / -1;
}

.ai-curated-preview-grid input,
.ai-curated-preview-grid select,
.ai-curated-preview-grid textarea {
  width: 100%;
}

.ai-curated-preview-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 14px;
}

body.theme-dark .ai-strategic-product-card,
body.theme-dark .ai-curated-stat-card,
body.theme-dark .ai-curated-preview-card {
  border-color: rgba(193, 168, 122, 0.14);
  background:
    linear-gradient(180deg, rgba(20, 24, 33, 0.96), rgba(10, 13, 19, 0.98));
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.28);
}

body.theme-dark .ai-strategic-product-card-header strong,
body.theme-dark .ai-curated-preview-title strong,
body.theme-dark .ai-curated-stat-card strong {
  color: #f8f1e4;
}

body.theme-dark .ai-strategic-product-card-header span,
body.theme-dark .ai-curated-preview-title span,
body.theme-dark .ai-curated-preview-foot span,
body.theme-dark .ai-curated-stat-card span,
body.theme-dark .ai-curated-stat-card small,
body.theme-dark .ai-strategic-product-metrics span {
  color: rgba(248, 241, 228, 0.66);
}

body.theme-dark .ai-curated-preview-card.is-selected {
  border-color: rgba(193, 168, 122, 0.34);
  box-shadow: 0 24px 56px rgba(0, 0, 0, 0.34);
}

body.theme-dark .ai-curated-preview-grid label,
body.theme-dark .ai-curated-preview-actions .checkbox-field {
  color: rgba(248, 241, 228, 0.72);
}

body.theme-dark .ai-curated-preview-grid input,
body.theme-dark .ai-curated-preview-grid select,
body.theme-dark .ai-curated-preview-grid textarea {
  width: 100%;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(9, 12, 18, 0.94);
  color: #f8f1e4;
  padding: 12px 13px;
  outline: none;
  transition: border-color 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

body.theme-dark .ai-curated-preview-grid input::placeholder,
body.theme-dark .ai-curated-preview-grid textarea::placeholder {
  color: rgba(248, 241, 228, 0.36);
}

body.theme-dark .ai-curated-preview-grid input:focus,
body.theme-dark .ai-curated-preview-grid select:focus,
body.theme-dark .ai-curated-preview-grid textarea:focus {
  border-color: rgba(193, 168, 122, 0.52);
  box-shadow: 0 0 0 3px rgba(193, 168, 122, 0.12);
}

body.theme-dark .ai-curated-preview-foot {
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

body.theme-dark .ai-curated-preview-actions {
  padding-top: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

body.theme-dark .pill-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 30px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.05);
  color: #f8f1e4;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

body.theme-dark .badge-dark-soft,
body.theme-dark .badge-neutral-soft {
  border-color: rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.05);
  color: rgba(248, 241, 228, 0.84);
}

body.theme-dark .badge-success-soft {
  border-color: rgba(85, 154, 124, 0.28);
  background: rgba(85, 154, 124, 0.14);
  color: #bce8d1;
}

body.theme-dark .badge-warning-soft {
  border-color: rgba(193, 168, 122, 0.28);
  background: rgba(193, 168, 122, 0.14);
  color: #f2d7a6;
}

body.theme-dark .status-banner.success {
  color: #bce8d1;
}

body.theme-dark .status-banner.warning {
  color: #f2d7a6;
}

body.theme-dark .status-banner.error {
  color: #ffb7b7;
}

body.theme-dark .status-banner-body small {
  color: rgba(232, 240, 236, 0.72);
}

body.theme-dark .status-banner-dismiss:hover {
  background: rgba(255, 255, 255, 0.08);
}

body.theme-dark .ai-product-card,
body.theme-dark .media-preview-box,
body.theme-dark .ai-product-media-slot,
body.theme-dark .ai-gender-options,
body.theme-dark .ai-size-options,
body.theme-dark .ai-size-chip,
body.theme-dark .ai-import-loading,
body.theme-dark .ai-import-summary-item,
body.theme-dark .ai-import-summary-list,
body.theme-dark .ai-product-row-card {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.08);
  color: rgba(245, 241, 235, 0.94);
}

body.theme-dark .ai-product-card-body span,
body.theme-dark .media-preview-meta span,
body.theme-dark .ai-import-summary-item span,
body.theme-dark .ai-import-summary-list span,
body.theme-dark .ai-import-history-stats,
body.theme-dark .ai-config-item {
  color: rgba(212, 220, 216, 0.76);
}

body.theme-dark .ai-config-item,
body.theme-dark .ai-import-history-item {
  border-color: rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
}

.ai-product-card {
  display: grid;
  gap: 14px;
  background: #fffaf3;
  border: 1px solid rgba(16, 45, 40, 0.1);
  border-radius: 20px;
  padding: 16px;
}

.ai-product-card-media img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 16px;
  display: block;
}

.ai-product-card-media {
  min-height: 220px;
  display: grid;
}

.field-error {
  border-color: rgba(160, 45, 45, 0.45) !important;
  box-shadow: 0 0 0 3px rgba(160, 45, 45, 0.12);
}

.ai-product-card-body {
  display: grid;
  gap: 8px;
}

.ai-product-card-body span,
.media-preview-meta span {
  color: #6f756f;
  font-size: 0.92rem;
}

.media-preview-box {
  display: grid;
  gap: 12px;
  border: 1px solid rgba(16, 45, 40, 0.1);
  border-radius: 18px;
  padding: 16px;
  background: #fffaf3;
}

.media-preview-meta {
  display: grid;
  gap: 4px;
}

.ai-product-media-grid,
.ai-product-media-preview-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.ai-product-media-slot {
  display: grid;
  gap: 8px;
  padding: 12px;
  border: 1px solid rgba(16, 45, 40, 0.1);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.92);
}

.ai-gender-options {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 10px;
  border: 1px solid rgba(16, 45, 40, 0.12);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.9);
}

.ai-gender-chip {
  min-height: 40px;
  padding: 0 14px;
  border-radius: 999px;
  font-weight: 700;
}

.ai-gender-chip.active {
  background: #173a34;
  color: #fffaf3;
  border-color: #173a34;
}

.ai-size-options {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(56px, max-content));
  gap: 8px;
  padding: 10px;
  border: 1px solid rgba(16, 45, 40, 0.12);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.9);
  justify-content: start;
}

.ai-size-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-height: 36px;
  padding: 0 10px;
  font-size: 0.88rem;
  font-weight: 600;
  border-radius: 999px;
  border: 1px solid rgba(16, 45, 40, 0.12);
  background: #fff;
  width: fit-content;
}

.ai-size-chip input {
  width: 14px;
  height: 14px;
  margin: 0;
}

.ai-generated-copy-box .mini-card {
  display: grid;
  gap: 8px;
}

.compact-grid {
  margin-top: 12px;
}

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

.ai-config-card {
  display: grid;
  gap: 12px;
  align-content: start;
}

.ai-config-card-head {
  display: grid;
  gap: 2px;
}

.ai-config-list {
  display: grid;
  gap: 8px;
  max-height: 220px;
  overflow-y: auto;
  padding-right: 4px;
}

.ai-config-item {
  display: grid;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(16, 45, 40, 0.04);
  border: 1px solid rgba(16, 45, 40, 0.08);
}

.ai-config-item-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.ai-config-item-meta {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

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

.ai-config-actions .ghost-button,
.ai-config-actions .secondary-button {
  padding: 8px 10px;
  min-height: 34px;
}

.ai-products-base-panel {
  margin-top: 18px;
}

.ai-products-import-panel {
  margin-top: 18px;
}

.ai-import-summary {
  margin-top: 16px;
  display: grid;
  gap: 14px;
}

.ai-import-loading {
  margin-top: 14px;
  display: grid;
  gap: 10px;
  border: 1px solid rgba(200, 155, 60, 0.28);
  background: linear-gradient(135deg, rgba(255, 249, 241, 0.98), rgba(250, 240, 216, 0.98));
}

.ai-import-loading-head {
  display: flex;
  align-items: center;
  gap: 10px;
}

.ai-loading-spinner {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid rgba(16, 45, 40, 0.16);
  border-top-color: var(--gold);
  animation: aiLoadingSpin 0.8s linear infinite;
  flex-shrink: 0;
}

@keyframes aiLoadingSpin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

.ai-search-toolbar {
  margin-top: 14px;
}

.ai-search-meta-row {
  justify-content: space-between;
  align-items: center;
  margin: 8px 0 12px;
}

.ai-import-summary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
  gap: 10px;
}

.ai-import-summary-item,
.ai-import-summary-list {
  padding: 12px 14px;
  border: 1px solid rgba(16, 45, 40, 0.1);
  border-radius: 14px;
  background: #fffef9;
}

.ai-import-summary-item span,
.ai-import-summary-list span {
  display: block;
  color: var(--muted);
  font-size: 0.8rem;
  margin-bottom: 6px;
}

.ai-import-summary-item strong,
.ai-import-summary-list strong {
  display: block;
  line-height: 1.45;
}

.ai-import-summary-lists {
  display: grid;
  gap: 10px;
}

.ai-import-preview-error {
  color: #8a2f2f;
  font-size: 0.82rem;
  margin-top: 6px;
}

.ai-import-history-card {
  margin-top: 16px;
}

.ai-import-history-item {
  padding: 14px 0;
  border-top: 1px solid rgba(16, 45, 40, 0.08);
  display: grid;
  gap: 6px;
}

.ai-import-history-item:first-child {
  border-top: 0;
  padding-top: 0;
}

.ai-import-history-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.ai-import-history-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  color: var(--muted);
  font-size: 0.88rem;
}

.ai-products-list {
  display: grid;
  gap: 14px;
}

#ai-products-table.scroll-panel {
  margin-top: 6px;
  padding-right: 6px;
}

.ai-product-row-card {
  display: grid;
  grid-template-columns: var(--product-media-list-w) minmax(0, 1.5fr) minmax(0, 1fr) auto;
  gap: 16px;
  padding: 14px 16px;
  border: 1px solid rgba(16, 45, 40, 0.1);
  border-radius: 18px;
  background: #fffef9;
  align-items: start;
}

.ai-product-row-media {
  width: var(--product-media-list-w);
}

.ai-product-row-main,
.ai-product-row-side,
.ai-product-row-actions {
  min-width: 0;
}

.ai-product-row-main {
  display: grid;
  gap: 8px;
}

.ai-product-row-side {
  display: grid;
  gap: 8px;
}

.ai-product-row-actions {
  display: grid;
  gap: 8px;
  justify-items: end;
}

.ai-product-row-copy {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.ai-product-badges {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.ai-product-meta-line {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}

.ai-badge-active {
  background: rgba(22, 102, 66, 0.12);
}

.ai-badge-muted {
  background: rgba(120, 122, 120, 0.12);
}

.ai-badge-warn {
  background: rgba(164, 123, 44, 0.14);
}

.field-label {
  display: inline-block;
  margin-bottom: 8px;
  font-weight: 600;
}

.empty-state.compact {
  min-height: 0;
  padding: 14px 16px;
}

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

.ai-template-card {
  display: grid;
  gap: 10px;
  padding: 18px;
}

.message-preview.compact {
  min-height: 0;
  padding: 14px 16px;
}

.token-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(16, 45, 40, 0.08);
  color: var(--text);
  font-size: 0.78rem;
  font-weight: 700;
  width: fit-content;
}

.token-pill.subtle {
  background: rgba(200, 155, 60, 0.12);
}

.ai-product-thumb {
  width: var(--product-media-list-w);
  height: var(--product-media-list-h);
  object-fit: cover;
  object-position: center top;
  border-radius: 14px;
  display: block;
}

.ai-thumb-placeholder {
  width: var(--product-media-list-w);
  height: var(--product-media-list-h);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background: rgba(16, 45, 40, 0.06);
  color: var(--muted);
  font-size: 0.76rem;
  text-align: center;
  padding: 8px;
}

.ai-table-secondary {
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.45;
  margin-top: 4px;
}

.ai-log-message {
  font-weight: 600;
  margin-bottom: 6px;
}

.ai-log-detail-panel {
  margin-top: 18px;
  border: 1px solid rgba(16, 45, 40, 0.1);
  border-radius: 18px;
  padding: 18px;
  background: rgba(255, 255, 255, 0.9);
}

.ai-log-detail-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
}

.ai-log-detail-item {
  display: grid;
  gap: 6px;
  padding: 14px;
  border-radius: 14px;
  background: rgba(16, 45, 40, 0.04);
}

.ai-log-detail-item span {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 600;
}

.ai-logs-table-wrap {
  max-width: 100%;
}

.ai-import-history-card .scroll-panel,
.ai-import-history-card .bounded-list {
  margin-top: 4px;
}

#ai {
  overflow-x: hidden;
}

@media (max-width: 960px) {
  .campaign-row-head {
    flex-direction: column;
  }

  .pdv-drawer {
    width: 100vw;
    padding: 18px 14px;
  }

  .ai-focus-grid,
  .ai-products-top-layout,
  .ai-templates-layout {
    grid-template-columns: 1fr;
  }

  .ai-product-media-grid,
  .ai-product-media-preview-grid {
    grid-template-columns: 1fr;
  }

  .ai-config-grid {
    grid-template-columns: 1fr;
  }

  .ai-product-row-card {
    grid-template-columns: 1fr;
  }

  .ai-product-row-actions {
    justify-items: start;
  }
}

.recovery-segments-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.recovery-segment-card {
  display: grid;
  gap: 12px;
  padding: 18px;
  border-radius: 20px;
  background: linear-gradient(160deg, #132f29, #1d433d);
  color: #f7efe4;
  border: 1px solid rgba(229, 199, 144, 0.16);
  box-shadow: 0 12px 28px rgba(13, 19, 18, 0.16);
  min-width: 0;
}

.recovery-segment-card .eyebrow {
  color: rgba(255, 255, 255, 0.7);
}

.recovery-segment-card h4 {
  margin: 0;
  font-size: 1rem;
  line-height: 1.25;
}

.recovery-segment-metrics {
  display: grid;
  gap: 8px;
}

.recovery-segment-metrics strong {
  font-size: clamp(1.35rem, 1.8vw, 1.8rem);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.recovery-segment-card .action-row {
  margin-top: 4px;
}

.alert-card,
.insight-card {
  background: var(--surface-strong);
  border: 1px solid rgba(19, 35, 33, 0.08);
  border-radius: 20px;
  padding: 18px;
  display: grid;
  gap: 8px;
}

.alert-card strong,
.insight-card strong {
  font-size: 1.25rem;
}

.alert-card p,
.insight-card p {
  margin: 0;
  color: var(--muted);
}

.search-suggestions {
  display: grid;
  gap: 8px;
}

.search-result-card {
  background: var(--surface-strong);
  border: 1px solid rgba(19, 35, 33, 0.08);
  border-radius: 18px;
  padding: 14px;
  display: grid;
  gap: 8px;
  min-width: 0;
}

.search-result-card.is-selected {
  border-color: rgba(200, 147, 60, 0.7);
  box-shadow: 0 0 0 2px rgba(200, 147, 60, 0.18);
}

.search-result-card strong,
.search-result-card span,
.selected-customers span {
  word-break: break-word;
}

.compact-results {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.selected-customers {
  display: grid;
  gap: 12px;
}

.selected-customers .mini-card,
#saved-audiences-list .mini-card {
  min-width: 0;
}

.settings-list > div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.settings-list > div:last-child {
  border-bottom: none;
}

.settings-list strong,
.settings-list span {
  word-break: break-word;
}

.settings-panel {
  display: grid;
  gap: 14px;
}

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

.settings-panel-description {
  margin: 6px 0 0;
  color: var(--muted);
  line-height: 1.5;
  max-width: 58ch;
}

.settings-panel-note {
  margin: -2px 0 0;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  color: var(--muted);
  line-height: 1.5;
}

.settings-badge {
  flex-shrink: 0;
  align-self: flex-start;
}

.settings-badge.success {
  background: rgba(71, 157, 107, 0.14);
  border-color: rgba(71, 157, 107, 0.28);
  color: #89d0a3;
}

.settings-badge.neutral {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.08);
  color: var(--text);
}

.settings-list-detailed > div {
  align-items: flex-start;
}

.settings-store-layout {
  display: grid;
  gap: 16px;
}

.settings-store-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  flex-wrap: wrap;
}

.settings-store-toolbar-copy {
  display: grid;
  gap: 4px;
}

.settings-store-toolbar-copy span {
  color: var(--muted);
  font-size: 0.9rem;
}

.settings-store-section {
  display: grid;
  gap: 12px;
  padding: 16px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
}

.settings-store-section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}

.settings-store-section-head p {
  margin: 6px 0 0;
  color: var(--muted);
}

.settings-store-section-badge {
  flex-shrink: 0;
}

.settings-store-form-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.settings-field {
  display: grid;
  gap: 6px;
}

.settings-field small,
.settings-field-help {
  color: var(--muted);
  font-size: 0.8rem;
}

.settings-field-wide {
  grid-column: 1 / -1;
}

.settings-field-checkbox {
  align-content: start;
}

.settings-field-checkbox input {
  margin-right: 8px;
}

body.theme-dark .settings-store-section {
  background: rgba(8, 11, 15, 0.52);
  border-color: rgba(255, 255, 255, 0.07);
}

.execution-warning {
  border-left: 4px solid var(--gold);
}

.execution-low {
  background: rgba(176, 63, 63, 0.06);
}

#feedback:empty {
  display: none;
}

@media (max-width: 1180px) {
  .sidebar {
    width: 250px;
    padding: 24px 18px;
  }

  .content {
    margin-left: 250px;
    width: calc(100% - 250px);
    padding: 22px;
  }

  .split-grid {
    grid-template-columns: 1fr;
  }

  .stats-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .pdv-report-kpi-grid {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  }

  .pdv-report-mini-kpi-grid {
    grid-template-columns: repeat(auto-fit, minmax(178px, 1fr));
  }

  .pdv-sale-layout {
    grid-template-columns: 1fr;
  }

  .pdv-sale-checkout-zone {
    position: static;
  }

  .pdv-sale-payment-fields {
    grid-template-columns: 1fr 1fr;
  }

  .cards-grid,
  .recovery-segments-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 920px) {
  .sidebar {
    position: static;
    width: 100%;
    inset: auto;
    border-bottom-left-radius: 24px;
    border-bottom-right-radius: 24px;
  }

  .content {
    margin-left: 0;
    width: 100%;
    padding: 20px;
  }

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

  .pdv-route-shell-compact {
    padding: 12px 16px;
  }

  .pdv-report-kpi-grid,
  .pdv-report-mini-kpi-grid {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  }

  .pdv-sale-search-card,
  .pdv-sale-customer-result-card {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .pdv-sale-search-side,
  .pdv-sale-cart-metrics {
    justify-items: start;
  }

  .topbar,
  .hero-card {
    align-items: stretch;
  }

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

@media (max-width: 640px) {
  .content {
    padding: 16px;
  }

  .panel,
  .hero-card,
  .login-card {
    padding: 18px;
    border-radius: 22px;
  }

  .stats-grid,
  .cards-grid,
  .recovery-segments-grid,
  .form-grid,
  .filters-grid {
    grid-template-columns: 1fr;
  }

  .pdv-report-kpi-grid,
  .pdv-report-mini-kpi-grid,
  .pdv-report-callout-list {
    grid-template-columns: 1fr;
  }

  .pdv-report-kpi-card {
    min-height: 124px;
  }

  .pdv-sale-payment-fields {
    grid-template-columns: 1fr;
  }

  .pdv-sale-final-button {
    width: 100%;
  }

  .pdv-route-tab,
  .pdv-token {
    min-height: 32px;
    padding: 6px 10px;
    font-size: 0.8rem;
  }

  .pdv-route-shell-compact .panel-header {
    margin-bottom: 8px;
  }

  .status-banner,
  .user-chip,
  .primary-button,
  .secondary-button,
  .ghost-button {
    width: 100%;
  }

  .panel-header,
  .action-row,
  .topbar-actions {
    align-items: stretch;
  }

  .cashback-report-card-grid,
  .cashback-report-kpis {
    grid-template-columns: 1fr;
  }

  table {
    min-width: 680px;
  }

  .pdv-report-table {
    min-width: 620px;
  }
}

/* Modal Styles */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.modal-card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: var(--card-padding);
  max-width: 500px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.modal-header h3 {
  margin: 0;
}

.modal-close {
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--muted);
  padding: 0.25rem;
  border-radius: var(--radius-md);
  transition: background-color 0.2s;
}

.modal-close:hover {
  background: var(--bg-soft);
}

/* Stage CRM Premium Refresh */

:root {
  --crm-shell-radius: 28px;
  --crm-panel-radius: 24px;
  --crm-panel-padding: 24px;
  --crm-surface-glow: linear-gradient(135deg, rgba(255, 255, 255, 0.86), rgba(255, 249, 241, 0.72));
  --crm-surface-border: rgba(200, 155, 60, 0.16);
  --crm-accent: linear-gradient(135deg, #d0a24a, #b07a22);
  --crm-accent-soft: rgba(208, 162, 74, 0.14);
  --crm-shadow-strong: 0 22px 60px rgba(31, 22, 12, 0.14);
  --crm-shadow-card: 0 14px 34px rgba(31, 22, 12, 0.08);
}

body,
button,
input,
textarea,
select,
table,
th,
td,
label,
.menu-link,
.user-chip,
.status-banner,
.panel,
.hero-card,
.mini-card {
  font-family: var(--font-main);
}

h1,
h2,
h3,
.hero-card h3,
.brand h1,
.panel-header h3 {
  font-family: var(--font-main);
  letter-spacing: -0.03em;
}

.app-shell {
  min-height: 100vh;
  background:
    radial-gradient(circle at top right, rgba(208, 162, 74, 0.14), transparent 22%),
    radial-gradient(circle at left 18%, rgba(16, 45, 40, 0.08), transparent 18%);
}

.sidebar {
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: 28px 22px 20px;
  border-right: 1px solid rgba(255, 255, 255, 0.06);
  background:
    linear-gradient(180deg, rgba(7, 17, 16, 0.98), rgba(11, 25, 24, 0.96)),
    radial-gradient(circle at top, rgba(208, 162, 74, 0.14), transparent 30%);
}

.brand {
  padding: 18px 18px 14px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(18px);
}

.brand-kicker {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(208, 162, 74, 0.14);
  color: var(--gold-soft);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.brand h1 {
  margin: 10px 0 6px;
  font-size: 1.78rem;
}

.brand p {
  margin: 0;
  max-width: 20ch;
}

.menu {
  display: grid;
  gap: 16px;
}

.menu-group {
  display: grid;
  gap: 8px;
}

.menu-group-title {
  padding: 0 10px;
  color: rgba(255, 255, 255, 0.56);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.menu-group-pdv {
  margin-top: 4px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.menu-link {
  min-height: 46px;
  justify-content: flex-start;
  border-radius: 16px;
  font-weight: 700;
  letter-spacing: -0.01em;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease, border-color 0.18s ease;
}

.menu-link:hover {
  transform: translateX(3px);
}

.menu-link.active {
  background: linear-gradient(135deg, rgba(208, 162, 74, 0.22), rgba(208, 162, 74, 0.08));
  border-color: rgba(208, 162, 74, 0.28);
  box-shadow: inset 0 0 0 1px rgba(208, 162, 74, 0.1);
}

.sidebar-footer {
  margin-top: auto;
  padding: 14px 12px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.content {
  padding: 30px 32px 40px;
}

.topbar {
  position: sticky;
  top: 18px;
  z-index: 20;
  margin-bottom: 28px;
  padding: 18px 22px;
  border-radius: 24px;
  background: rgba(255, 249, 241, 0.72);
  border: 1px solid var(--crm-surface-border);
  box-shadow: var(--crm-shadow-card);
  backdrop-filter: blur(18px);
}

body.theme-dark .topbar {
  background: rgba(18, 24, 29, 0.78);
  border-color: rgba(255, 255, 255, 0.08);
}

.eyebrow {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

#section-title {
  font-size: clamp(1.85rem, 2vw, 2.4rem);
  line-height: 1.05;
}

.topbar-actions {
  gap: 12px;
}

.user-chip,
.status-banner {
  min-height: 42px;
  border-radius: 999px;
}

.status-banner {
  display: inline-flex;
  align-items: center;
  padding: 0 16px;
  font-weight: 700;
}

.page {
  gap: 22px;
}

.hero-card,
.panel,
.mini-card,
.card,
.token-box,
.import-box,
.settings-list,
.stat-card,
.search-result-card,
.wizard-summary-card,
.operation-file-card,
.message-preview,
.active-campaign-card,
.ai-log-detail-panel,
.ai-import-summary-list,
.pagbank-condition-box,
.pagbank-warning-box,
.modal-card {
  border-radius: var(--crm-panel-radius);
  border: 1px solid var(--crm-surface-border);
  background: var(--crm-surface-glow);
  box-shadow: var(--crm-shadow-card);
}

body.theme-dark .hero-card,
body.theme-dark .panel,
body.theme-dark .mini-card,
body.theme-dark .card,
body.theme-dark .token-box,
body.theme-dark .settings-list,
body.theme-dark .import-box,
body.theme-dark .stat-card,
body.theme-dark .search-result-card,
body.theme-dark .wizard-summary-card,
body.theme-dark .operation-file-card,
body.theme-dark .message-preview,
body.theme-dark .active-campaign-card,
body.theme-dark .ai-log-detail-panel,
body.theme-dark .ai-import-summary-list,
body.theme-dark .pagbank-condition-box,
body.theme-dark .pagbank-warning-box,
body.theme-dark .modal-card {
  background:
    linear-gradient(180deg, rgba(22, 28, 33, 0.96), rgba(19, 24, 28, 0.92)),
    radial-gradient(circle at top right, rgba(208, 162, 74, 0.08), transparent 38%);
}

.hero-card,
.panel {
  padding: var(--crm-panel-padding);
}

.hero-card {
  position: relative;
  overflow: hidden;
  min-height: 188px;
  align-items: end;
  background:
    linear-gradient(145deg, rgba(15, 39, 36, 0.98), rgba(22, 56, 51, 0.94)),
    radial-gradient(circle at top right, rgba(208, 162, 74, 0.28), transparent 34%);
  color: #f8f0e2;
  border-color: rgba(208, 162, 74, 0.22);
  box-shadow: var(--crm-shadow-strong);
}

.hero-card .helper-text,
.hero-card .eyebrow {
  color: rgba(248, 240, 226, 0.74);
}

.hero-card h3 {
  max-width: 18ch;
  margin: 0;
  font-size: clamp(2rem, 2.7vw, 3rem);
  line-height: 0.98;
}

.panel-header {
  align-items: start;
  gap: 12px;
  margin-bottom: 18px;
}

.panel-header h3 {
  font-size: clamp(1.15rem, 1.2vw, 1.4rem);
  line-height: 1.08;
}

.helper-text,
.table-meta {
  font-size: 0.9rem;
  line-height: 1.55;
}

.stats-grid {
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
}

.cards-grid {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}

.split-grid {
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 18px;
}

.stat-card {
  position: relative;
  min-height: 126px;
  padding: 18px;
  overflow: hidden;
}

.stat-card::after {
  content: "";
  position: absolute;
  inset: auto -10% -30% auto;
  width: 92px;
  height: 92px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(208, 162, 74, 0.22), transparent 68%);
  pointer-events: none;
}

.stat-card span:first-child {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.stat-card strong {
  display: block;
  margin-top: 10px;
  font-size: clamp(1.35rem, 2vw, 2.1rem);
  line-height: 1.02;
  letter-spacing: -0.04em;
  word-break: keep-all;
}

.table-wrap {
  overflow: auto;
  border-radius: 18px;
  border: 1px solid rgba(16, 45, 40, 0.08);
  background: rgba(255, 255, 255, 0.62);
}

.scroll-panel,
.table-scroll,
.preview-scroll,
.results-scroll,
.bounded-list {
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: rgba(170, 131, 49, 0.72) transparent;
}

.scroll-panel::-webkit-scrollbar,
.table-scroll::-webkit-scrollbar,
.preview-scroll::-webkit-scrollbar,
.results-scroll::-webkit-scrollbar,
.bounded-list::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

.scroll-panel::-webkit-scrollbar-track,
.table-scroll::-webkit-scrollbar-track,
.preview-scroll::-webkit-scrollbar-track,
.results-scroll::-webkit-scrollbar-track,
.bounded-list::-webkit-scrollbar-track {
  background: transparent;
}

.scroll-panel::-webkit-scrollbar-thumb,
.table-scroll::-webkit-scrollbar-thumb,
.preview-scroll::-webkit-scrollbar-thumb,
.results-scroll::-webkit-scrollbar-thumb,
.bounded-list::-webkit-scrollbar-thumb {
  border-radius: 999px;
  border: 2px solid transparent;
  background-clip: padding-box;
  background: linear-gradient(180deg, rgba(191, 151, 68, 0.88), rgba(128, 98, 33, 0.82));
}

.table-wrap.table-scroll {
  overflow-x: auto;
  overflow-y: auto;
  max-height: clamp(280px, 42vh, 520px);
}

.table-wrap.preview-scroll {
  max-height: clamp(340px, 54vh, 680px);
}

.table-wrap.results-scroll {
  max-height: clamp(260px, 40vh, 500px);
}

.scroll-panel {
  overflow-y: auto;
  overflow-x: hidden;
}

.bounded-list {
  display: grid;
  gap: 10px;
  max-height: clamp(260px, 40vh, 500px);
  padding-right: 6px;
}

.scroll-panel.preview-scroll,
.bounded-list.preview-scroll {
  max-height: clamp(340px, 54vh, 680px);
}

.scroll-panel.results-scroll,
.bounded-list.results-scroll {
  max-height: clamp(260px, 40vh, 500px);
}

body.theme-dark .table-wrap {
  background: rgba(11, 16, 20, 0.76);
}

body.theme-dark .scroll-panel,
body.theme-dark .table-scroll,
body.theme-dark .preview-scroll,
body.theme-dark .results-scroll,
body.theme-dark .bounded-list {
  scrollbar-color: rgba(219, 182, 101, 0.78) transparent;
}

table {
  min-width: 100%;
  border-collapse: separate;
  border-spacing: 0;
}

th {
  position: sticky;
  top: 0;
  z-index: 1;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

th,
td {
  padding: 13px 14px;
  white-space: nowrap;
}

td {
  font-size: 0.92rem;
}

tbody tr {
  transition: transform 0.16s ease, background-color 0.16s ease;
}

tbody tr:hover td {
  background: rgba(208, 162, 74, 0.08);
}

.primary-button,
.secondary-button,
.ghost-button,
.danger-button {
  min-height: 40px;
  padding: 0 16px;
  border-radius: var(--radius-md);
  font-weight: 500;
  transition: transform 0.1s ease, box-shadow 0.1s ease, background-color 0.1s ease;
}

.primary-button:hover,
.secondary-button:hover,
.ghost-button:hover,
.danger-button:hover {
  transform: translateY(-1px);
}

.primary-button {
  background: var(--text);
  color: var(--bg);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}

.secondary-button {
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--line-strong);
}

.ghost-button {
  background: transparent;
  color: var(--text);
}

.danger-button {
  background: var(--error);
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(239, 68, 68, 0.2);
}

body.theme-dark .danger-button {
  background: var(--error);
  color: #fff;
}

.button-loading,
.button-loading:hover {
  transform: none;
}

.filters-grid,
.form-grid {
  gap: 14px 16px;
}

label {
  gap: 8px;
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--muted);
}

input,
textarea,
select {
  min-height: 46px;
  border-radius: 14px;
  padding: 11px 14px;
  font-family: var(--font-main);
  font-size: 0.96rem;
}

.inline-loading,
.operation-status,
.loading-overlay-card {
  border-radius: 20px;
}

.inline-loading {
  padding: 14px 16px;
  box-shadow: var(--crm-shadow-card);
}

.loading-overlay-card {
  min-width: min(480px, 92vw);
  padding: 22px 24px;
}

.loading-overlay-head strong,
.inline-loading-head strong {
  font-family: var(--font-main);
  font-size: 1.05rem;
}

.page#dashboard .hero-card,
.page#campaigns .hero-card,
.page#assistant .hero-card,
.page#ai .hero-card,
.page#crm-contacts > .panel:first-child,
.page#contacts > .panel:first-child,
.page#cashback > .hero-card,
.page#reports > .hero-card {
  box-shadow: var(--crm-shadow-strong);
}

#crm-contacts .panel,
#contacts .panel,
#campaigns .panel,
#assistant .panel,
#campaign-execution .panel,
#cashback .panel,
#reports .panel,
#ai .panel,
#settings .panel {
  position: relative;
  overflow: hidden;
}

#crm-contacts .panel::before,
#contacts .panel::before,
#campaigns .panel::before,
#assistant .panel::before,
#cashback .panel::before,
#reports .panel::before,
#ai .panel::before,
#settings .panel::before {
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, rgba(208, 162, 74, 0.68), rgba(16, 45, 40, 0.18), transparent 78%);
  pointer-events: none;
}

#crm-contacts .table-wrap,
#contacts .table-wrap,
#campaigns .table-wrap,
#assistant .table-wrap,
#campaign-execution .table-wrap,
#cashback .table-wrap,
#reports .table-wrap,
#ai .table-wrap {
  /* Removed max-height constraint for better data visibility */
}

#whatsapp-settings-panel .settings-list,
#whatsapp-crm .settings-list {
  margin-bottom: 16px;
}

.whatsapp-crm-meta-list {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.whatsapp-crm-inline-note {
  margin: 18px 0 0;
}

.whatsapp-crm-qr-box {
  display: grid;
  gap: 12px;
  justify-items: start;
  padding: 18px;
  border-radius: 18px;
  border: 1px dashed rgba(200, 155, 60, 0.32);
  background: rgba(255, 249, 241, 0.6);
  margin-bottom: 16px;
}

.whatsapp-crm-qr-box img {
  width: min(100%, 240px);
  border-radius: 18px;
  background: #fff;
  padding: 10px;
}

.whatsapp-crm-error-box {
  margin: 0 0 16px;
}

.whatsapp-crm-activity-card {
  display: grid;
  gap: 8px;
}

.whatsapp-crm-activity-card span,
.whatsapp-crm-activity-card small {
  color: var(--muted);
}

body.theme-dark .whatsapp-crm-qr-box {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(210, 165, 84, 0.26);
}

#whatsapp-status {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 38px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(16, 45, 40, 0.08);
  border: 1px solid rgba(16, 45, 40, 0.08);
  font-weight: 700;
}

body.theme-dark #whatsapp-status {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.08);
}

#whatsapp-qr-section {
  display: grid;
  justify-items: start;
  gap: 12px;
  margin: 8px 0 16px;
  padding: 18px;
  border-radius: 18px;
  background: rgba(208, 162, 74, 0.08);
  border: 1px dashed rgba(208, 162, 74, 0.28);
}

body.theme-dark #whatsapp-qr-section {
  background: rgba(208, 162, 74, 0.08);
  border-color: rgba(208, 162, 74, 0.24);
}

#whatsapp-qr-code {
  width: min(220px, 100%);
  border-radius: 18px;
  border: 1px solid rgba(16, 45, 40, 0.12);
  background: #fff;
  padding: 12px;
  box-shadow: var(--crm-shadow-card);
}

#whatsapp-error-box {
  margin: 0 0 14px;
  min-height: 24px;
}

.ai-tab-button {
  min-height: 42px;
  border-radius: 14px;
  font-weight: 700;
}

.ai-tab-panel.active {
  display: grid;
  gap: 18px;
}

.ai-inner-panel,
.ai-shell-panel,
.ai-products-base-panel,
.ai-products-import-panel {
  border-radius: 22px;
  border: 1px solid var(--crm-surface-border);
  box-shadow: var(--crm-shadow-card);
}

.search-result-card,
.active-campaign-card,
.ai-product-card,
.ai-product-row-card,
.operation-file-card {
  border-radius: 18px;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.search-result-card:hover,
.active-campaign-card:hover,
.ai-product-card:hover,
.ai-product-row-card:hover,
.operation-file-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 28px rgba(31, 22, 12, 0.12);
}

body[data-section="dashboard"] #section-title::after,
body[data-section="crm-contacts"] #section-title::after,
body[data-section="contacts"] #section-title::after,
body[data-section="campaigns"] #section-title::after,
body[data-section="assistant"] #section-title::after,
body[data-section="ai"] #section-title::after {
  content: "";
  display: block;
  width: 52px;
  height: 4px;
  margin-top: 10px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--gold), rgba(16, 45, 40, 0.2));
}

@media (max-width: 1320px) {
  .content {
    padding: 24px 24px 34px;
  }

  .split-grid {
    grid-template-columns: 1fr;
  }

  .stats-grid {
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  }

  #crm-contacts .table-wrap,
  #contacts .table-wrap,
  #campaigns .table-wrap,
  #assistant .table-wrap,
  #campaign-execution .table-wrap,
  #cashback .table-wrap,
  #reports .table-wrap,
  #ai .table-wrap {
    max-height: 360px;
  }
}

@media (max-width: 980px) {
  .sidebar {
    padding-bottom: 14px;
  }

  .menu {
    gap: 12px;
  }

  .menu-group {
    gap: 6px;
  }

  .topbar {
    top: 10px;
    padding: 16px 18px;
  }

  .hero-card h3 {
    max-width: none;
    font-size: clamp(1.7rem, 6vw, 2.3rem);
  }

  .topbar-actions {
    width: 100%;
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  th,
  td {
    padding: 11px 12px;
  }
}

@media (max-width: 720px) {
  .content {
    padding: 18px 14px 28px;
  }

  .hero-card,
  .panel {
    padding: 18px;
    border-radius: 20px;
  }

  .stats-grid,
  .cards-grid {
    grid-template-columns: 1fr;
  }

  .table-wrap {
    border-radius: 16px;
  }

  .primary-button,
  .secondary-button,
  .ghost-button,
  .danger-button {
    width: 100%;
  }

  .action-row {
    width: 100%;
  }
}

/* Stage CRM Premium Refresh - Phase 2 */

:root {
  --crm-panel-padding: 20px;
  --crm-shell-gap: 16px;
  --crm-compact-radius: 20px;
  --crm-operational-shadow: 0 16px 36px rgba(18, 14, 9, 0.09);
}

body {
  letter-spacing: -0.01em;
}

.app-shell {
  align-items: stretch;
}

.sidebar {
  gap: 18px;
  padding: 22px 18px 16px;
  border-right-width: 1px;
}

.brand {
  gap: 8px;
  padding-bottom: 14px;
}

.brand-kicker {
  font-size: 0.66rem;
  letter-spacing: 0.24em;
}

.brand h1 {
  font-size: 1.42rem;
  line-height: 1.02;
}

.brand p {
  font-size: 0.84rem;
}

.menu {
  gap: 12px;
}

.menu-group {
  gap: 5px;
  padding: 12px;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.62), rgba(255, 255, 255, 0.24));
  border: 1px solid rgba(16, 45, 40, 0.08);
}

body.theme-dark .menu-group {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.018));
  border-color: rgba(255, 255, 255, 0.05);
}

.menu-group-title {
  margin-bottom: 4px;
  font-size: 0.64rem;
  letter-spacing: 0.2em;
}

.menu-link {
  min-height: 40px;
  padding: 9px 12px;
  border-radius: 13px;
  font-size: 0.9rem;
  font-weight: 700;
}

.sidebar-footer {
  padding-top: 10px;
  font-size: 0.75rem;
}

.content {
  padding: 18px 22px 24px;
  gap: 14px;
}

.topbar {
  top: 8px;
  margin-bottom: 12px;
  padding: 12px 16px;
  border-radius: 18px;
  min-height: 76px;
  box-shadow: 0 16px 34px rgba(31, 22, 12, 0.08);
}

.topbar > div:first-child {
  gap: 4px;
}

.eyebrow {
  margin-bottom: 4px;
  font-size: 0.66rem;
  letter-spacing: 0.2em;
}

#section-title {
  font-size: clamp(1.52rem, 2vw, 2.1rem);
  line-height: 0.98;
  letter-spacing: -0.045em;
}

.topbar-actions {
  gap: 10px;
}

.user-chip,
.status-banner,
.ghost-button,
.secondary-button,
.primary-button,
.danger-button {
  min-height: 40px;
}

.page {
  gap: var(--crm-shell-gap);
}

.hero-card,
.panel {
  padding: var(--crm-panel-padding);
  border-radius: var(--crm-compact-radius);
  box-shadow: var(--crm-operational-shadow);
}

.hero-card {
  min-height: 152px;
}

.hero-card h3 {
  max-width: 14ch;
  line-height: 0.98;
}

.hero-card .action-row {
  margin-top: 4px;
}

.panel-header {
  margin-bottom: 14px;
}

.panel-header h3,
.panel-header h4 {
  line-height: 1.04;
}

.split-grid,
.cards-grid,
.stats-grid,
.filters-grid {
  gap: 14px;
}

.stats-grid {
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
}

.cards-grid {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.stat-card {
  min-height: 118px;
  padding: 16px 16px 14px;
  border-radius: 18px;
}

.stat-card span {
  font-size: 0.74rem;
  letter-spacing: 0.12em;
}

.stat-card strong {
  font-size: clamp(1.7rem, 2.3vw, 2.45rem);
  line-height: 0.92;
  letter-spacing: -0.05em;
}

.helper-text,
.panel p,
.page p {
  line-height: 1.45;
}

.table-wrap {
  border-radius: 18px;
}

table {
  min-width: 760px;
}

thead th {
  font-size: 0.72rem;
  letter-spacing: 0.12em;
}

th,
td {
  padding: 10px 12px;
}

tbody tr {
  height: 52px;
}

.action-row {
  gap: 10px;
}

/* CRM sections feel more like an operational surface and less like loose cards */
#dashboard .split-grid,
#crm-contacts .split-grid,
#contacts .split-grid,
#campaigns .split-grid,
#assistant .split-grid,
#cashback .split-grid,
#reports .split-grid,
#ai .split-grid,
#settings .split-grid {
  align-items: start;
}

/* PDV shell densification */
#pdv .panel,
#pdv .hero-card,
#pdv .stat-card {
  box-shadow: 0 14px 32px rgba(10, 11, 16, 0.16);
}

.pdv-route-shell {
  padding: 14px 16px;
  border-radius: 18px;
}

.pdv-route-tabs {
  gap: 8px;
}

.pdv-route-tab {
  min-height: 36px;
  padding: 7px 12px;
  border-radius: 12px;
  font-size: 0.82rem;
}

.pdv-route-summary {
  gap: 10px;
  padding-top: 10px;
}

.pdv-route-summary .stat-card {
  min-width: 0;
}

.pdv-route-summary-value {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  min-width: 0;
}

.pdv-route-summary .pdv-active-store-select.is-compact {
  width: auto;
  max-width: 100%;
  min-width: 92px;
  height: 30px;
  padding: 0 28px 0 11px;
  border-color: rgba(45, 212, 191, 0.22);
  background:
    linear-gradient(135deg, rgba(45, 212, 191, 0.14), rgba(15, 20, 27, 0.72));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
  font-size: 0.86rem;
  line-height: 1;
}

.pdv-active-store-select {
  width: 100%;
  min-width: 138px;
  height: 38px;
  border: 1px solid rgba(45, 212, 191, 0.35);
  border-radius: 12px;
  background: rgba(15, 20, 27, 0.92);
  color: #F4F7FA;
  font: inherit;
  font-weight: 800;
  padding: 0 34px 0 12px;
  outline: none;
}

.pdv-active-store-select.is-compact {
  min-width: 126px;
  height: 34px;
  border-radius: 10px;
  font-size: 0.86rem;
  padding-left: 10px;
}

.pdv-active-store-select:focus {
  border-color: rgba(45, 212, 191, 0.65);
  box-shadow: 0 0 0 3px rgba(45, 212, 191, 0.12);
}

.pdv-dashboard-store-switcher {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.pdv-dashboard-store-switcher .pdv-active-store-select {
  width: auto;
  min-width: 118px;
}

.topbar-active-store-switcher {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 8px 6px 10px;
  border: 1px solid rgba(45, 212, 191, 0.28);
  border-radius: 14px;
  background: rgba(19, 26, 35, 0.86);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.topbar-active-store-switcher span {
  color: #AAB4C0;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  white-space: nowrap;
}

.pdv-sale-shell {
  gap: 14px;
}

.pdv-sale-layout {
  gap: 14px;
  grid-template-columns: minmax(0, 1.58fr) minmax(300px, 0.82fr);
}

.pdv-sale-main,
.pdv-sale-sidebar,
.pdv-sale-secondary {
  gap: 14px;
}

.pdv-sale-zone,
.pdv-sale-payment-panel,
.pdv-sale-cash-card,
.pdv-sale-summary-card,
.pdv-sale-cart-card,
.pdv-sale-search-card,
.pdv-sale-customer-result-card {
  border-radius: 18px;
}

.pdv-sale-zone,
.pdv-sale-payment-panel,
.pdv-sale-cash-card {
  padding: 16px;
}

.pdv-sale-search-label {
  margin-bottom: 8px;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
}

.pdv-sale-shell input[type="text"],
.pdv-sale-shell input[type="search"],
.pdv-sale-shell input[type="number"],
.pdv-sale-shell select {
  min-height: 46px;
  padding: 11px 13px;
  border-radius: 14px;
}

.pdv-sale-search-results,
.pdv-sale-customer-results,
.pdv-sale-cart-list {
  gap: 10px;
}

.pdv-sale-search-card,
.pdv-sale-cart-card,
.pdv-sale-customer-result-card {
  padding: 14px;
}

.pdv-sale-search-card h4,
.pdv-sale-cart-card h4 {
  line-height: 1.08;
}

.pdv-sale-summary-grid {
  gap: 10px;
}

.pdv-sale-summary-card {
  min-height: 92px;
  padding: 14px;
}

.pdv-sale-summary-card strong,
.pdv-sale-summary-total strong,
.pdv-sale-payment-card strong,
.pdv-sale-cash-card strong {
  white-space: nowrap;
  word-break: keep-all;
  overflow-wrap: normal;
}

.pdv-sale-summary-card strong {
  font-size: clamp(1.15rem, 1.6vw, 1.5rem);
}

.pdv-sale-summary-total,
.stat-card.pdv-sale-summary-total {
  padding: 16px;
  border-radius: 18px;
}

.pdv-sale-summary-total strong,
.stat-card.pdv-sale-summary-total strong {
  font-size: clamp(1.75rem, 2.6vw, 2.45rem) !important;
  line-height: 0.94;
  color: #ffffff !important;
}

.pdv-sale-payment-groups {
  gap: 12px;
}

.pdv-sale-payment-group {
  padding: 12px;
  border-radius: 16px;
}

.pdv-sale-payment-fields {
  gap: 10px;
}

.pdv-sale-payment-card {
  min-height: 78px;
  padding: 12px 13px;
  border-radius: 15px;
}

.pdv-sale-actions-shell {
  padding: 12px 14px;
  border-radius: 18px;
}

.pdv-sale-action-chips {
  gap: 8px;
}

.pdv-sale-action-chips .ghost-button,
.pdv-sale-action-chips .secondary-button {
  min-height: 36px;
  padding: 7px 11px;
  border-radius: 11px;
  font-size: 0.82rem;
}

.pdv-sale-final-button {
  min-height: 52px;
  border-radius: 16px;
  font-size: 0.98rem;
}

.pdv-drawer-overlay {
  background: rgba(9, 10, 14, 0.42);
  backdrop-filter: blur(10px);
}

.pdv-drawer {
  width: min(430px, calc(100vw - 18px));
  border-radius: 22px 0 0 22px;
}

/* Keep shells compact on business notebook sizes */
@media (max-width: 1320px) {
  .sidebar {
    padding: 18px 14px 14px;
  }

  .content {
    padding: 16px 18px 24px;
  }

  .topbar {
    padding: 11px 14px;
    min-height: 70px;
  }

  .stats-grid {
    grid-template-columns: repeat(auto-fit, minmax(156px, 1fr));
  }

  .cards-grid {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  }

  .pdv-sale-layout {
    grid-template-columns: minmax(0, 1fr) 320px;
  }
}

@media (max-width: 980px) {
  .sidebar {
    gap: 14px;
  }

  .menu-group {
    padding: 10px;
    border-radius: 16px;
  }

  .content {
    padding: 14px 14px 22px;
  }

  .topbar {
    top: 8px;
    margin-bottom: 10px;
    border-radius: 16px;
  }

  .hero-card,
  .panel {
    padding: 16px;
    border-radius: 18px;
  }

  .hero-card {
    min-height: 132px;
  }

  .pdv-sale-layout {
    grid-template-columns: 1fr;
  }

  .pdv-sale-sidebar {
    position: static;
  }
}

@media (max-width: 720px) {
  .sidebar {
    padding: 12px 10px 12px;
  }

  .brand h1 {
    font-size: 1.18rem;
  }

  .content {
    padding: 12px 10px 22px;
  }

  .topbar {
    min-height: auto;
    padding: 10px 12px;
  }

  #section-title {
    font-size: 1.34rem;
  }

  .stats-grid,
  .cards-grid {
    grid-template-columns: 1fr;
  }

  .pdv-route-shell,
  .pdv-sale-zone,
  .pdv-sale-payment-panel,
  .pdv-sale-cash-card,
  .pdv-sale-actions-shell {
    padding: 14px;
  }
}

/* =====================================================
   CASHBACK PREMIUM — Central de Recorrência AEROSTORE
   ===================================================== */

/* Hero */
.cb-hero {
  background: linear-gradient(135deg, #08111f 0%, #0c1d30 45%, #0e2418 100%);
  border-radius: 20px;
  padding: 30px 36px;
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 28px;
  align-items: center;
  border: 1px solid rgba(212, 175, 55, 0.18);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.35);
  position: relative;
  overflow: hidden;
  margin-bottom: 4px;
}

.cb-hero::before {
  content: '';
  position: absolute;
  top: -80px;
  right: -80px;
  width: 280px;
  height: 280px;
  background: radial-gradient(circle, rgba(212, 175, 55, 0.07) 0%, transparent 70%);
  pointer-events: none;
}

.cb-hero::after {
  content: '';
  position: absolute;
  bottom: -60px;
  left: 30%;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(94, 246, 178, 0.04) 0%, transparent 70%);
  pointer-events: none;
}

.cb-hero-eyebrow {
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  display: block;
  margin-bottom: 8px;
}

.cb-hero-title {
  font-size: 1.55rem;
  font-weight: 800;
  color: #fff;
  margin: 0 0 6px;
  line-height: 1.2;
}

.cb-hero-sub {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.45);
  margin: 0;
}

.cb-hero-stats {
  display: flex;
  gap: 2px;
  align-items: stretch;
}

.cb-hero-stat {
  text-align: center;
  padding: 10px 20px;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
}

.cb-hero-stat:last-child {
  border-right: none;
}

.cb-hero-stat span {
  display: block;
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.4);
  margin-bottom: 5px;
  white-space: nowrap;
}

.cb-hero-stat strong {
  display: block;
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--gold);
  line-height: 1;
}

.cb-hero-stat.accent strong { color: #5ef6b2; }
.cb-hero-stat.warn strong { color: #ffa552; }
.cb-hero-stat.neutral strong { color: rgba(255, 255, 255, 0.75); }

/* KPI Strip */
.cb-kpi-strip {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(155px, 1fr));
  gap: 12px;
}

.cb-kpi-card {
  background: var(--surface, #111827);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 14px;
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 7px;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.cb-kpi-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 22px rgba(0, 0, 0, 0.18);
}

.cb-kpi-card span {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted, rgba(255,255,255,0.45));
  line-height: 1.3;
}

.cb-kpi-card strong {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--text, #fff);
  line-height: 1;
}

.cb-kpi-card.positive strong { color: #5ef6b2; }
.cb-kpi-card.warn strong { color: #ffa552; }
.cb-kpi-card.danger strong { color: #ff7070; }
.cb-kpi-card.gold strong { color: var(--gold, #d4af37); }
.cb-kpi-card.info strong { color: #52aaff; }

.cb-kpi-card.highlight {
  background: linear-gradient(135deg, #0c1d2e 0%, #0e2418 100%);
  border-color: rgba(212, 175, 55, 0.22);
}

/* Recovery urgency cards */
.cb-recovery-urgency-strip {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 14px;
}

.cb-urgency-card {
  background: var(--surface, #111827);
  border-radius: 16px;
  padding: 18px 20px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-left: 4px solid var(--gold, #d4af37);
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.cb-urgency-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 22px rgba(0, 0, 0, 0.18);
}

.cb-urgency-card.danger { border-left-color: #ff6b6b; }
.cb-urgency-card.warn { border-left-color: #ffa552; }
.cb-urgency-card.info { border-left-color: #52aaff; }
.cb-urgency-card.ok { border-left-color: #5ef6b2; }

.cb-urgency-top { display: flex; flex-direction: column; gap: 3px; }

.cb-urgency-eyebrow {
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted, rgba(255,255,255,0.4));
}

.cb-urgency-title {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text, #fff);
  margin: 0;
}

.cb-urgency-metrics { display: flex; flex-direction: column; gap: 3px; }

.cb-urgency-count {
  font-size: 1.7rem;
  font-weight: 800;
  color: var(--text, #fff);
  line-height: 1;
}

.cb-urgency-value {
  font-size: 0.8rem;
  color: var(--gold, #d4af37);
  font-weight: 600;
}

.cb-urgency-card .action-row {
  flex-direction: column;
  gap: 6px;
  margin-top: auto;
}

.cb-urgency-card .action-row button {
  font-size: 0.73rem;
  padding: 6px 10px;
  width: 100%;
  justify-content: center;
}

/* Customer profile premium */
.cb-customer-profile {
  background: linear-gradient(135deg, #081528 0%, #0c1d2e 55%, #0e2418 100%);
  border-radius: 16px;
  padding: 20px 22px;
  margin: 14px 0 4px;
  border: 1px solid rgba(212, 175, 55, 0.2);
}

.cb-customer-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 0;
}

.cb-customer-avatar {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: linear-gradient(135deg, #1a3a28, #1a2a3c);
  border: 2px solid var(--gold, #d4af37);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--gold, #d4af37);
  flex-shrink: 0;
  text-transform: uppercase;
}

.cb-customer-info { flex: 1; min-width: 0; }

.cb-customer-name {
  font-size: 0.98rem;
  font-weight: 700;
  color: #fff;
  margin: 0 0 3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cb-customer-meta {
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.45);
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.cb-customer-balance-chip {
  background: rgba(212, 175, 55, 0.12);
  border: 1px solid rgba(212, 175, 55, 0.3);
  border-radius: 22px;
  padding: 7px 16px;
  text-align: center;
  flex-shrink: 0;
}

.cb-customer-balance-chip span {
  display: block;
  font-size: 0.57rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(212, 175, 55, 0.65);
  margin-bottom: 3px;
}

.cb-customer-balance-chip strong {
  display: block;
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--gold, #d4af37);
  white-space: nowrap;
}

/* Status badges for cashback records */
.cb-badge {
  display: inline-block;
  padding: 3px 9px;
  border-radius: 20px;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
}

.cb-badge-ativo     { background: rgba(94,246,178,0.1);  color: #5ef6b2; border: 1px solid rgba(94,246,178,0.22); }
.cb-badge-pendente  { background: rgba(255,165,82,0.1);  color: #ffa552; border: 1px solid rgba(255,165,82,0.22); }
.cb-badge-vencido   { background: rgba(255,107,107,0.1); color: #ff7070; border: 1px solid rgba(255,107,107,0.22); }
.cb-badge-usado     { background: rgba(82,170,255,0.1);  color: #52aaff; border: 1px solid rgba(82,170,255,0.22); }
.cb-badge-cancelado { background: rgba(255,255,255,0.05); color: rgba(255,255,255,0.38); border: 1px solid rgba(255,255,255,0.1); }
.cb-badge-reativado { background: rgba(212,175,55,0.1);  color: var(--gold); border: 1px solid rgba(212,175,55,0.22); }
.cb-badge-antecipado { background: rgba(180,120,255,0.1); color: #c07aff; border: 1px solid rgba(180,120,255,0.22); }

/* Event type badges */
.cb-event-badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  white-space: nowrap;
}

.cb-ev-gerado   { background: rgba(94,246,178,0.08);  color: #5ef6b2; }
.cb-ev-usado    { background: rgba(82,170,255,0.08);  color: #52aaff; }
.cb-ev-vencido  { background: rgba(255,107,107,0.08); color: #ff7070; }
.cb-ev-perdido  { background: rgba(255,107,107,0.08); color: #ff7070; }
.cb-ev-reativado { background: rgba(212,175,55,0.08); color: var(--gold); }
.cb-ev-antecipado { background: rgba(255,165,82,0.08); color: #ffa552; }
.cb-ev-cancelado { background: rgba(255,255,255,0.05); color: rgba(255,255,255,0.38); }
.cb-ev-default  { background: rgba(255,255,255,0.05); color: rgba(255,255,255,0.45); }

/* Urgency panel */
.cb-urgency-panel {
  border: 1px solid rgba(255, 107, 107, 0.1);
}

/* Assistant card premium */
.cb-assistant-card {
  background: linear-gradient(135deg, #0c1c2a 0%, #0e2216 100%);
  border-radius: 16px;
  padding: 20px 22px;
  border: 1px solid rgba(212, 175, 55, 0.18);
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 12px;
}

.cb-assistant-header {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.cb-assistant-info { flex: 1; min-width: 0; }

.cb-assistant-name {
  font-size: 0.98rem;
  font-weight: 700;
  color: #fff;
  margin: 0 0 4px;
}

.cb-assistant-meta {
  font-size: 0.73rem;
  color: rgba(255, 255, 255, 0.45);
  line-height: 1.55;
}

.cb-assistant-balance {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--gold, #d4af37);
  white-space: nowrap;
  flex-shrink: 0;
}

.cb-assistant-msg {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.65;
  white-space: pre-wrap;
  word-break: break-word;
}

/* Responsive adjustments for cashback premium */
@media (max-width: 900px) {
  .cb-hero {
    grid-template-columns: 1fr;
    gap: 18px;
    padding: 22px 20px;
  }

  .cb-hero-stats {
    flex-wrap: wrap;
    gap: 0;
  }

  .cb-hero-stat {
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding: 8px 14px;
    flex: 1;
    min-width: 110px;
  }

  .cb-kpi-strip {
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  }

  .cb-recovery-urgency-strip {
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  }
}

/* =====================================================
   IA DE MENSAGENS PREMIUM — Central IA de Atendimento
   ===================================================== */

/* Hero da Central IA */
.ai-central-hero {
  background: linear-gradient(135deg, #06101e 0%, #0a1a30 45%, #0c1e16 100%);
  border-radius: 20px;
  padding: 28px 34px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: center;
  border: 1px solid rgba(82, 170, 255, 0.15);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.35);
  position: relative;
  overflow: hidden;
  margin-bottom: 4px;
}

.ai-central-hero::before {
  content: '';
  position: absolute;
  top: -80px;
  right: 180px;
  width: 260px;
  height: 260px;
  background: radial-gradient(circle, rgba(82, 170, 255, 0.07) 0%, transparent 70%);
  pointer-events: none;
}

.ai-central-hero::after {
  content: '';
  position: absolute;
  bottom: -60px;
  right: -40px;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(94, 246, 178, 0.05) 0%, transparent 70%);
  pointer-events: none;
}

.ai-central-eyebrow {
  font-size: 0.59rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #52aaff;
  display: block;
  margin-bottom: 8px;
}

.ai-central-title {
  font-size: 1.5rem;
  font-weight: 800;
  color: #fff;
  margin: 0 0 6px;
  line-height: 1.2;
}

.ai-central-sub {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.42);
  margin: 0;
}

.ai-central-hero-kpis {
  display: flex;
  gap: 0;
  align-items: stretch;
}

.ai-hero-kpi {
  text-align: center;
  padding: 10px 20px;
  border-right: 1px solid rgba(255, 255, 255, 0.07);
}

.ai-hero-kpi:last-child { border-right: none; }

.ai-hero-kpi span {
  display: block;
  font-size: 0.57rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.38);
  margin-bottom: 5px;
  white-space: nowrap;
}

.ai-hero-kpi strong {
  display: block;
  font-size: 1.15rem;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.75);
  line-height: 1;
}

.ai-hero-kpi.accent strong { color: #5ef6b2; }

/* Ações rápidas */
.ai-quick-actions-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  padding: 12px 0 4px;
}

.ai-quick-actions-label {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted, rgba(255,255,255,0.4));
  flex-shrink: 0;
  margin-right: 4px;
}

.ai-quick-action-btn {
  background: rgba(82, 170, 255, 0.08);
  border: 1px solid rgba(82, 170, 255, 0.2);
  border-radius: 20px;
  padding: 6px 14px;
  font-size: 0.72rem;
  font-weight: 600;
  color: #52aaff;
  cursor: pointer;
  transition: background 0.15s, transform 0.1s;
  white-space: nowrap;
}

.ai-quick-action-btn:hover {
  background: rgba(82, 170, 255, 0.15);
  transform: translateY(-1px);
}

/* Seções internas do composer */
.ai-section-block {
  margin-bottom: 16px;
}

.ai-section-label {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted, rgba(255,255,255,0.4));
  margin: 0 0 8px;
}

/* Chips de objetivo */
.ai-objective-chips,
.ai-tone-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.ai-obj-chip,
.ai-tone-chip {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  padding: 5px 12px;
  font-size: 0.7rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: all 0.15s;
}

.ai-obj-chip:hover,
.ai-tone-chip:hover {
  border-color: rgba(82, 170, 255, 0.4);
  color: #52aaff;
}

.ai-obj-chip.active {
  background: rgba(82, 170, 255, 0.12);
  border-color: rgba(82, 170, 255, 0.4);
  color: #52aaff;
}

.ai-tone-chip.active {
  background: rgba(94, 246, 178, 0.1);
  border-color: rgba(94, 246, 178, 0.35);
  color: #5ef6b2;
}

/* Composer textarea */
.ai-composer-textarea-wrap {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.ai-composer-textarea-wrap label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--muted, rgba(255,255,255,0.5));
  margin-bottom: 2px;
}

.ai-composer-textarea-wrap textarea {
  resize: vertical;
  min-height: 110px;
}

.ai-char-counter {
  font-size: 0.62rem;
  color: var(--muted, rgba(255,255,255,0.35));
  text-align: right;
  line-height: 1;
}

/* Resultado: coluna direita */
.ai-result-column {
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-self: start;
}

/* Card de resposta premium */
.ai-reply-card {
  background: linear-gradient(135deg, #07121f 0%, #0b1e15 100%);
  border: 1px solid rgba(82, 170, 255, 0.18);
  border-radius: 16px;
  padding: 20px 22px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.ai-reply-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.ai-reply-analysis-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

/* Badges de intenção */
.ai-intent-badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.ai-intent-compra       { background: rgba(94,246,178,0.1); color: #5ef6b2; }
.ai-intent-duvida       { background: rgba(82,170,255,0.1); color: #52aaff; }
.ai-intent-preco        { background: rgba(212,175,55,0.1); color: var(--gold); }
.ai-intent-disponibilidade { background: rgba(94,246,178,0.08); color: #5ef6b2; }
.ai-intent-troca        { background: rgba(255,165,82,0.1); color: #ffa552; }
.ai-intent-reclamacao   { background: rgba(255,107,107,0.1); color: #ff7070; }
.ai-intent-cashback     { background: rgba(212,175,55,0.1); color: var(--gold); }
.ai-intent-posvenda     { background: rgba(180,120,255,0.1); color: #c07aff; }
.ai-intent-indeciso     { background: rgba(255,255,255,0.06); color: rgba(255,255,255,0.45); }
.ai-intent-outro        { background: rgba(255,255,255,0.05); color: rgba(255,255,255,0.38); }

/* Temperatura */
.ai-temp-chip {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 0.62rem;
  font-weight: 600;
}

.ai-temp-quente  { background: rgba(255,107,107,0.1); color: #ff7070; }
.ai-temp-morno   { background: rgba(255,165,82,0.1); color: #ffa552; }
.ai-temp-frio    { background: rgba(82,170,255,0.1); color: #52aaff; }
.ai-temp-atencao { background: rgba(255,165,82,0.15); color: #ffa552; border: 1px solid rgba(255,165,82,0.3); }

/* Tom usado */
.ai-tone-used-chip {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 0.6rem;
  font-weight: 600;
  background: rgba(94,246,178,0.07);
  color: rgba(94,246,178,0.7);
}

/* Texto da resposta */
.ai-reply-text {
  font-size: 0.88rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.85);
  white-space: pre-wrap;
  word-break: break-word;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 10px;
  padding: 14px 16px;
}

/* Alerta precisa humano */
.ai-human-alert {
  background: rgba(255, 165, 82, 0.08);
  border: 1px solid rgba(255, 165, 82, 0.25);
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 0.78rem;
  color: #ffa552;
  line-height: 1.5;
}

/* Histórico */
.ai-history-panel {
  max-height: 340px;
  overflow-y: auto;
}

.ai-history-item {
  padding: 12px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.ai-history-item:last-child { border-bottom: none; }

.ai-history-item-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.ai-history-time {
  font-size: 0.62rem;
  color: var(--muted, rgba(255,255,255,0.35));
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.ai-history-client,
.ai-history-obj {
  font-size: 0.62rem;
  color: rgba(255, 255, 255, 0.35);
  font-style: italic;
}

.ai-history-trecho {
  font-size: 0.76rem;
  color: rgba(255, 255, 255, 0.55);
  margin: 0;
  line-height: 1.5;
}

.ai-history-copy-btn {
  align-self: flex-start;
  font-size: 0.68rem;
  padding: 3px 10px;
}

/* Responsivo */
@media (max-width: 900px) {
  .ai-central-hero {
    grid-template-columns: 1fr;
    padding: 22px 20px;
  }

  .ai-central-hero-kpis {
    flex-wrap: wrap;
  }

  .ai-hero-kpi {
    flex: 1;
    min-width: 100px;
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  }

  .ai-quick-actions-bar {
    gap: 6px;
  }

  .ai-result-column {
    flex-direction: column;
  }
}

/* ============================================================
   CENTRAL IA DE PRODUTOS — aip-* classes
   ============================================================ */

.aip-hero {
  background: linear-gradient(135deg, #08111f 0%, #0c1d30 45%, #0e1a28 100%);
  border: 1px solid rgba(212, 175, 55, 0.18);
  border-radius: 20px;
  padding: 30px 36px;
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 24px;
  align-items: center;
  margin-bottom: 20px;
}

.aip-hero-eyebrow {
  color: var(--gold);
  font-size: 0.59rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.aip-hero-title {
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 6px;
}

.aip-hero-sub {
  color: var(--muted);
  font-size: 0.82rem;
  margin: 0;
}

.aip-hero-kpis {
  display: flex;
  gap: 12px;
}

.aip-hero-kpi {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 12px;
  padding: 12px 16px;
  text-align: center;
  min-width: 76px;
}

.aip-hero-kpi span {
  display: block;
  font-size: 0.63rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 4px;
}

.aip-hero-kpi strong {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--gold);
}

.aip-hero-kpi.positive strong { color: #5ef6b2; }
.aip-hero-kpi.warn strong     { color: #ffa552; }
.aip-hero-kpi.danger strong   { color: #ff7070; }
.aip-hero-kpi.info strong     { color: #52aaff; }

/* ── Filter chips ─────────────────────────────────────────── */

.aip-filter-chips {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.aip-filter-chip {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  color: var(--muted);
  cursor: pointer;
  font-size: 0.75rem;
  font-weight: 500;
  padding: 6px 14px;
  transition: all 0.18s;
}

.aip-filter-chip:hover {
  background: rgba(212, 175, 55, 0.08);
  border-color: rgba(212, 175, 55, 0.3);
  color: var(--gold);
}

.aip-filter-chip.active {
  background: rgba(212, 175, 55, 0.12);
  border-color: rgba(212, 175, 55, 0.45);
  color: var(--gold);
  font-weight: 600;
}

/* ── Premium product card ─────────────────────────────────── */

.aip-product-card {
  background: var(--surface);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 16px;
  display: grid;
  grid-template-columns: var(--product-media-list-w) 1fr auto auto;
  gap: 16px;
  align-items: center;
  padding: 16px 18px;
  margin-bottom: 10px;
  transition: border-color 0.18s;
}

.aip-product-card:hover {
  border-color: rgba(212, 175, 55, 0.28);
}

.aip-product-card-media {
  width: var(--product-media-list-w);
  height: var(--product-media-list-h);
  border-radius: 10px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.07);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.aip-product-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.aip-thumb-placeholder {
  font-size: 0.63rem;
  color: var(--muted);
  text-align: center;
  padding: 4px;
}

.aip-product-card-main {
  min-width: 0;
}

.aip-product-card-name {
  font-size: 0.93rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.aip-product-card-copy {
  font-size: 0.77rem;
  color: var(--muted);
  margin-bottom: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.aip-product-card-meta {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.aip-product-card-side {
  text-align: right;
  flex-shrink: 0;
  min-width: 110px;
}

.aip-product-card-price {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--gold);
  margin-bottom: 8px;
}

.aip-product-card-badges {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: flex-end;
  margin-bottom: 6px;
}

/* ── Quality score badge ──────────────────────────────────── */

.aip-quality-badge {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  border-radius: 10px;
  font-size: 0.63rem;
  font-weight: 700;
  padding: 3px 8px;
}

.aip-quality-badge.high {
  background: rgba(94, 246, 178, 0.1);
  color: #5ef6b2;
}

.aip-quality-badge.medium {
  background: rgba(255, 165, 82, 0.1);
  color: #ffa552;
}

.aip-quality-badge.low {
  background: rgba(255, 112, 112, 0.1);
  color: #ff7070;
}

/* ── Product card actions ─────────────────────────────────── */

.aip-product-card-actions {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex-shrink: 0;
}

/* ── Product detail drawer ────────────────────────────────── */

.aip-drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.52);
  z-index: 900;
  display: none;
}

.aip-drawer-overlay.open {
  display: block;
}

.aip-drawer {
  position: fixed;
  top: 0;
  right: -500px;
  width: 460px;
  height: 100vh;
  background: #0d1b2a;
  border-left: 1px solid rgba(212, 175, 55, 0.2);
  z-index: 901;
  overflow-y: auto;
  transition: right 0.28s cubic-bezier(0.4, 0, 0.2, 1);
  padding: 28px 26px;
  box-sizing: border-box;
}

.aip-drawer.open {
  right: 0;
}

.aip-drawer-close {
  position: absolute;
  top: 18px;
  right: 20px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  color: var(--muted);
  cursor: pointer;
  font-size: 1rem;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.aip-drawer-close:hover {
  background: rgba(255, 255, 255, 0.12);
  color: var(--text);
}

.aip-drawer-eyebrow {
  color: var(--gold);
  font-size: 0.59rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 4px;
}

.aip-drawer-product-name {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 16px;
}

.aip-drawer-media-row {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
}

.aip-drawer-media-thumb {
  width: 96px;
  height: 96px;
  border-radius: 10px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.07);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
  color: var(--muted);
}

.aip-drawer-media-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.aip-drawer-section {
  margin-bottom: 20px;
}

.aip-drawer-section-label {
  font-size: 0.63rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 8px;
}

.aip-drawer-kpi-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.aip-drawer-kpi {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 10px;
  padding: 10px 12px;
}

.aip-drawer-kpi span {
  display: block;
  font-size: 0.63rem;
  color: var(--muted);
  margin-bottom: 3px;
}

.aip-drawer-kpi strong {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text);
}

.aip-drawer-copy-block {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 0.8rem;
  color: var(--muted);
  line-height: 1.55;
}

.aip-drawer-actions {
  display: flex;
  gap: 10px;
  margin-top: 24px;
}

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

  .aip-hero-kpis {
    flex-wrap: wrap;
  }

  .aip-product-card {
    grid-template-columns: var(--product-media-mobile) 1fr;
    grid-template-rows: auto auto;
  }

  .aip-product-card-side,
  .aip-product-card-actions {
    grid-column: 2;
  }

  .aip-drawer {
    width: 100vw;
    right: -100vw;
  }
}

@media (max-width: 720px) {
  :root {
    --product-thumb-md: var(--product-thumb-sm);
    --product-thumb-lg: 96px;
    --product-media-list-w: var(--product-media-mobile);
    --product-media-list-h: var(--product-media-mobile);
    --product-media-stock-w: var(--product-media-mobile);
    --product-media-stock-h: var(--product-media-mobile);
  }

  .pdv-product-card-body {
    grid-template-columns: var(--product-media-mobile) minmax(0, 1fr);
  }

  .pdv-product-card-media {
    width: var(--product-media-mobile);
    height: var(--product-media-mobile);
    border-radius: 16px;
  }

  .pdv-product-card-action {
    grid-column: 1 / -1;
    align-items: flex-start;
  }

  .pdv-products-photo.is-product-media {
    width: var(--product-media-mobile);
    height: var(--product-media-mobile);
    min-width: var(--product-media-mobile);
    flex-basis: var(--product-media-mobile);
  }

  .pdv-products-photo.is-product-media.is-featured,
  .pdv-products-detail-hero {
    --product-thumb-lg: var(--product-thumb-md);
  }

  .pdv-stock-product-cell {
    grid-template-columns: var(--product-media-mobile) minmax(0, 1fr);
    min-width: 0;
  }
}

/* STAGE 8.13 — Frente de caixa premium e funcional */
.pdv-sale-layout {
  grid-template-columns: minmax(0, 1.18fr) minmax(430px, 0.92fr);
  gap: 18px;
}

.pdv-sale-main {
  min-width: 0;
  gap: 12px;
}

.pdv-sale-sidebar {
  position: sticky;
  top: 14px;
  align-self: start;
  gap: 10px;
}

.pdv-sale-product-zone,
.pdv-sale-cart-zone,
.pdv-sale-customer-zone,
.pdv-sale-checkout-zone {
  background:
    linear-gradient(180deg, rgba(13, 17, 18, 0.97), rgba(20, 24, 25, 0.95)),
    radial-gradient(circle at top right, rgba(200, 155, 60, 0.09), transparent 42%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 18px 36px rgba(4, 6, 7, 0.28);
  color: rgba(245, 241, 235, 0.94);
}

.pdv-sale-zone .panel-header {
  margin-bottom: 10px;
}

.pdv-sale-zone .panel-header h3 {
  color: #f8f2e8;
}

.pdv-sale-zone .helper-text,
.pdv-sale-zone p {
  color: rgba(215, 220, 219, 0.7);
}

.pdv-sale-zone .pdv-foundation-list-item,
.pdv-sale-zone .pdv-customer-profile,
.pdv-sale-zone .pdv-cart-item-card,
.pdv-sale-zone .pdv-product-card,
.pdv-sale-zone .stat-card.pdv-sale-summary-card {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.08);
  color: rgba(245, 241, 235, 0.92);
}

.pdv-sale-zone .pdv-sale-empty-state {
  background: rgba(255, 255, 255, 0.03);
  border-color: rgba(255, 255, 255, 0.08);
}

.pdv-sale-zone .pdv-foundation-list-item span,
.pdv-sale-zone .pdv-customer-profile-meta,
.pdv-sale-zone .pdv-customer-profile-stat span,
.pdv-sale-zone .pdv-cart-item-variation,
.pdv-sale-zone .pdv-cart-item-unit,
.pdv-sale-zone .pdv-product-card-stock,
.pdv-sale-zone .pdv-product-card-sku,
.pdv-sale-zone .stat-card.pdv-sale-summary-card span {
  color: rgba(223, 228, 227, 0.72);
}

.pdv-sale-zone .pdv-product-card-tag {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.08);
  color: rgba(245, 241, 235, 0.82);
}

.pdv-sale-zone .pdv-product-card-price,
.pdv-sale-zone .pdv-cart-item-total,
.pdv-sale-zone .pdv-customer-profile-name,
.pdv-sale-zone .pdv-customer-profile-stat strong,
.pdv-sale-zone .stat-card.pdv-sale-summary-card strong {
  color: #fff7ec;
}

.pdv-sale-search-shell {
  display: grid;
  gap: 10px;
}

.pdv-sale-search-legend {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.pdv-sale-inline-hint {
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: var(--muted);
}

.pdv-sale-search-label input {
  min-height: 64px;
  padding: 16px 18px;
  border-radius: 20px;
  font-size: 1.04rem;
  font-weight: 600;
}

.pdv-sale-search-results {
  display: grid;
  gap: 10px;
  max-height: min(62vh, 680px);
  overflow-y: auto;
  overflow-x: hidden;
  padding-right: 4px;
}

.pdv-sale-cart-zone {
  display: grid;
  gap: 10px;
}

.pdv-sale-cart-list {
  display: grid;
  gap: 10px;
  max-height: min(48vh, 560px);
  overflow-y: auto;
  padding-right: 4px;
}

.pdv-sale-customer-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 6px;
}

.pdv-sale-customer-toolbar .ghost-button,
.pdv-sale-customer-toolbar .secondary-button {
  min-height: 38px;
}

.pdv-customer-selection-state {
  display: inline-flex;
  margin-bottom: 4px;
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: rgba(248, 241, 228, 0.72);
}

.pdv-customer-profile.compact .pdv-customer-profile-hero {
  padding: 12px 14px;
  gap: 10px;
}

.pdv-customer-profile.compact .pdv-customer-profile-avatar {
  width: 40px;
  height: 40px;
}

.pdv-customer-profile.compact .pdv-customer-profile-stats {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.pdv-customer-profile.compact .pdv-customer-profile-stat:nth-child(2) {
  border-right: none;
}

.pdv-customer-profile.compact .pdv-customer-profile-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 10px 12px 12px;
  background: rgba(255, 255, 255, 0.03);
}

.pdv-customer-cashback-stack {
  display: grid;
  gap: 8px;
  padding: 12px 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  background: rgba(255, 255, 255, 0.025);
}

.pdv-customer-cashback-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 10px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.03);
}

.pdv-customer-cashback-row span {
  display: flex;
  align-items: center;
  gap: 8px;
  color: rgba(223, 228, 227, 0.8);
  font-size: 0.78rem;
}

.pdv-customer-cashback-row span em {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(245, 158, 11, 0.14);
  border: 1px solid rgba(245, 158, 11, 0.24);
  color: #f7ca7f;
  font-style: normal;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.pdv-customer-cashback-row strong {
  color: #f8f2e8;
  font-size: 0.88rem;
  white-space: nowrap;
}

.pdv-customer-cashback-row.positive {
  border-color: rgba(16, 185, 129, 0.2);
  background: rgba(16, 185, 129, 0.08);
}

.pdv-customer-cashback-row.legacy {
  border-color: rgba(245, 158, 11, 0.22);
  background: rgba(245, 158, 11, 0.08);
}

.pdv-customer-cashback-row.used {
  border-color: rgba(59, 130, 246, 0.22);
  background: rgba(59, 130, 246, 0.08);
}

.pdv-customer-cashback-row.forecast {
  border-color: rgba(134, 239, 172, 0.22);
  background: rgba(34, 197, 94, 0.08);
}

.pdv-sale-customer-advanced {
  display: grid;
  gap: 14px;
}

.pdv-sale-customer-advanced summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
  color: #f8f2e8;
  font-weight: 700;
}

.pdv-sale-customer-advanced summary::-webkit-details-marker {
  display: none;
}

.pdv-sale-customer-advanced-body {
  display: grid;
  gap: 14px;
}

.pdv-register-highlight-list {
  display: grid;
  gap: 10px;
  margin-bottom: 14px;
}

.pdv-register-highlight-card,
.pdv-register-inline-warning {
  display: grid;
  gap: 4px;
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid rgba(16, 45, 40, 0.1);
  background: rgba(255, 255, 255, 0.56);
}

.pdv-register-highlight-card strong,
.pdv-register-inline-warning strong {
  font-size: 1rem;
}

.pdv-register-highlight-card span,
.pdv-register-inline-warning span,
.pdv-register-meta {
  color: var(--muted);
  font-size: 0.84rem;
}

.pdv-register-highlight-badge,
.pdv-register-status-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  min-height: 28px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 1px solid rgba(16, 45, 40, 0.12);
  background: rgba(255, 255, 255, 0.78);
}

.pdv-register-highlight-badge.current,
.pdv-register-status-badge.current {
  background: rgba(16, 185, 129, 0.14);
  border-color: rgba(16, 185, 129, 0.28);
  color: #0f766e;
}

.pdv-register-highlight-badge.open,
.pdv-register-status-badge.open {
  background: rgba(250, 204, 21, 0.16);
  border-color: rgba(234, 179, 8, 0.25);
  color: #92400e;
}

.pdv-register-highlight-badge.reopened,
.pdv-register-status-badge.reopened {
  background: rgba(59, 130, 246, 0.14);
  border-color: rgba(59, 130, 246, 0.22);
  color: #1d4ed8;
}

.pdv-register-highlight-badge.closed,
.pdv-register-status-badge.closed {
  background: rgba(15, 23, 42, 0.08);
  border-color: rgba(15, 23, 42, 0.16);
  color: #334155;
}

.pdv-register-inline-warning.warning {
  border-color: rgba(245, 158, 11, 0.22);
  background: rgba(250, 204, 21, 0.12);
}

.pdv-register-inline-warning.info {
  border-color: rgba(59, 130, 246, 0.2);
  background: rgba(59, 130, 246, 0.08);
}

.pdv-register-open-card {
  display: grid;
  grid-template-columns: minmax(180px, 1.15fr) minmax(120px, 0.7fr) minmax(120px, 0.7fr) minmax(160px, 1fr);
  gap: 12px;
  align-items: end;
  margin-top: 14px;
  padding: 14px;
  border-radius: 18px;
  border: 1px solid rgba(45, 212, 191, 0.22);
  background: rgba(45, 212, 191, 0.08);
  overflow: hidden;
}

.pdv-register-open-card .primary-button {
  grid-column: 1 / -1;
  justify-self: end;
  min-width: 132px;
}

.pdv-register-open-card > div,
.pdv-register-open-card label {
  display: grid;
  gap: 6px;
}

.pdv-register-open-card strong {
  color: var(--text);
  font-size: 0.98rem;
}

.pdv-register-open-card span,
.pdv-register-open-card label {
  color: var(--text-soft);
  font-size: 0.8rem;
}

.pdv-register-open-card input,
.pdv-register-open-card select {
  min-height: 38px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: #0f141b;
  color: var(--text);
  padding: 0 12px;
}

.pdv-register-open-card input:focus,
.pdv-register-open-card select:focus {
  outline: none;
  border-color: rgba(45, 212, 191, 0.42);
  box-shadow: 0 0 0 3px rgba(45, 212, 191, 0.1);
}

@media (max-width: 1100px) {
  .pdv-register-open-card {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 720px) {
  .pdv-register-open-card {
    grid-template-columns: 1fr;
  }
}

.pdv-register-label-cell {
  display: grid;
  gap: 3px;
}

.pdv-register-label-cell strong {
  font-size: 0.94rem;
}

.pdv-cash-shell {
  display: grid;
  gap: 20px;
}

.pdv-cash-summary-grid,
.pdv-cash-kpi-grid {
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.pdv-cash-table-panel,
.pdv-cash-detail-panel {
  min-width: 0;
}

.pdv-cash-pending-panel {
  display: grid;
  gap: 14px;
}

.pdv-cash-pending-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 28px;
  min-height: 28px;
  margin-left: 8px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(245, 158, 11, 0.14);
  border: 1px solid rgba(245, 158, 11, 0.22);
  color: #f6c76a;
  font-size: 0.82rem;
  vertical-align: middle;
}

.pdv-cash-pending-table td {
  vertical-align: top;
}

.pdv-cash-pending-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.pdv-cash-pending-actions .ghost-button.small,
.pdv-cash-pending-actions .secondary-button.small {
  justify-content: center;
}

.pdv-cash-table tbody tr.is-selected td {
  background: rgba(200, 155, 60, 0.08);
}

.pdv-cash-table tbody tr.is-highlighted td {
  border-top: 1px solid rgba(16, 185, 129, 0.2);
  border-bottom: 1px solid rgba(16, 185, 129, 0.2);
}

.pdv-cash-detail-card {
  display: grid;
  gap: 16px;
  padding: 18px;
  border-radius: 18px;
  border: 1px solid rgba(16, 45, 40, 0.1);
  background: rgba(255, 255, 255, 0.52);
}

.pdv-cash-detail-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.pdv-cash-detail-head strong,
.pdv-cash-detail-payments strong {
  display: block;
  font-size: 1rem;
}

.pdv-cash-detail-head span,
.pdv-cash-detail-payments span {
  color: var(--muted);
  font-size: 0.88rem;
}

.pdv-cash-detail-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
}

.pdv-cash-detail-grid div {
  display: grid;
  gap: 4px;
  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(16, 45, 40, 0.04);
  border: 1px solid rgba(16, 45, 40, 0.08);
}

.pdv-cash-detail-grid span {
  color: var(--muted);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.pdv-cash-detail-grid strong {
  font-size: 1rem;
}

.pdv-cash-detail-payments {
  display: grid;
  gap: 6px;
}

.pdv-cash-detail-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.ghost-button.small,
.secondary-button.small,
.primary-button.small {
  min-height: 34px;
  padding: 7px 12px;
  font-size: 0.74rem;
}

.pdv-sale-checkout-zone {
  display: grid;
  gap: 10px;
}

.pdv-sale-cash-card.warning {
  border-color: rgba(168, 85, 15, 0.22);
  background: rgba(122, 66, 18, 0.18);
}

.pdv-sale-cash-inline-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 6px;
}

.pdv-sale-payment-inline {
  display: grid;
  gap: 10px;
}

.pdv-payment-inline-card,
.pdv-sale-discount-inline {
  display: grid;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
}

.pdv-payment-inline-head,
.pdv-payment-inline-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.pdv-payment-inline-head strong,
.pdv-sale-discount-inline strong {
  font-size: 0.92rem;
}

.pdv-payment-inline-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.pdv-payment-inline-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  padding: 7px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.06);
  font-size: 0.78rem;
  font-weight: 600;
  color: rgba(245, 241, 235, 0.92);
}

.pdv-sale-cashback-forecast,
.pdv-sale-cashback-success {
  display: grid;
  gap: 4px;
  margin-top: 8px;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid rgba(134, 239, 172, 0.18);
  background: rgba(34, 197, 94, 0.08);
}

.pdv-sale-cashback-forecast strong,
.pdv-sale-cashback-success strong {
  color: #e7f9ee;
  font-size: 0.9rem;
}

.pdv-sale-cashback-forecast span,
.pdv-sale-cashback-success span,
.pdv-sale-cashback-forecast small {
  color: rgba(228, 238, 235, 0.8);
  font-size: 0.8rem;
}

.pdv-sale-discount-inline.warning {
  border-color: rgba(168, 85, 15, 0.28);
  background: rgba(255, 247, 237, 0.92);
}

.pdv-sale-discount-inline span {
  color: var(--muted);
  font-size: 0.82rem;
}

.pdv-sale-footer-bar {
  position: sticky;
  bottom: 0;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid rgba(18, 48, 42, 0.14);
  background: linear-gradient(140deg, rgba(12, 34, 31, 0.98), rgba(20, 48, 44, 0.96));
  box-shadow: 0 16px 32px rgba(8, 14, 13, 0.22);
}

.pdv-sale-footer-totals {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.pdv-sale-footer-totals span,
.pdv-sale-footer-totals small {
  color: rgba(245, 241, 228, 0.72);
}

.pdv-sale-footer-totals strong {
  font-size: clamp(1.48rem, 2vw, 2rem);
  line-height: 1;
  letter-spacing: -0.05em;
  color: #ffffff;
}

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

.pdv-sale-finalize-form-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  pointer-events: none;
  opacity: 0;
}

.pdv-payment-group-v3 {
  display: grid;
  gap: 10px;
}

.pdv-payment-methods-grid-v3 {
  display: grid;
  gap: 12px;
}

.pdv-payment-card-v3 {
  display: grid;
  gap: 12px;
  padding: 16px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.pdv-payment-card-v3:hover,
.pdv-payment-card-v3.selected {
  border-color: rgba(200, 155, 60, 0.38);
  box-shadow: 0 8px 20px rgba(20, 38, 34, 0.09);
  transform: translateY(-1px);
}

.pdv-payment-card-v3.active {
  background: linear-gradient(160deg, rgba(200, 155, 60, 0.1), rgba(255, 255, 255, 0.04));
}

.pdv-payment-card-head,
.pdv-payment-card-foot {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.pdv-payment-card-head strong {
  display: block;
  font-size: 1rem;
  margin-bottom: 4px;
}

.pdv-payment-card-head span,
.pdv-payment-card-foot span {
  color: rgba(223, 228, 227, 0.72);
  font-size: 0.8rem;
}

.pdv-payment-card-fields {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 10px;
}

.pdv-payment-card-fields.credit {
  grid-template-columns: minmax(0, 1fr) 132px;
}

.pdv-payment-card-field {
  display: grid;
  gap: 8px;
}

.pdv-payment-card-field span {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--muted);
}

.pdv-payment-card-field input {
  min-height: 62px;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1.5px solid rgba(16, 45, 40, 0.12);
  background: rgba(255, 255, 255, 0.94);
  font-size: 1.36rem;
  font-weight: 800;
  text-align: right;
  letter-spacing: -0.04em;
}

.pdv-payment-card-field.compact input {
  font-size: 1rem;
}

.pdv-payment-card-field input:focus {
  outline: none;
  border-color: rgba(200, 155, 60, 0.55);
  box-shadow: 0 0 0 3px rgba(200, 155, 60, 0.12);
}

.pdv-sale-finalize-form {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.pdv-sale-finalize-form .pdv-sale-notes-field {
  grid-column: 1 / -1;
}

body.theme-dark .pdv-sale-product-zone,
body.theme-dark .pdv-sale-cart-zone,
body.theme-dark .pdv-sale-customer-zone,
body.theme-dark .pdv-sale-checkout-zone,
body.theme-dark .pdv-payment-inline-card,
body.theme-dark .pdv-sale-discount-inline,
body.theme-dark .pdv-payment-card-v3 {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.08);
}

body.theme-dark .pdv-register-highlight-card,
body.theme-dark .pdv-register-inline-warning {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.08);
}

body.theme-dark .pdv-register-highlight-badge,
body.theme-dark .pdv-register-status-badge {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.1);
  color: rgba(248, 241, 228, 0.86);
}

body.theme-dark .pdv-register-highlight-badge.current,
body.theme-dark .pdv-register-status-badge.current {
  background: rgba(16, 185, 129, 0.16);
  border-color: rgba(16, 185, 129, 0.26);
  color: #b7f7e4;
}

body.theme-dark .pdv-register-highlight-badge.open,
body.theme-dark .pdv-register-status-badge.open {
  background: rgba(245, 158, 11, 0.16);
  border-color: rgba(245, 158, 11, 0.26);
  color: #fcdba4;
}

body.theme-dark .pdv-register-highlight-badge.reopened,
body.theme-dark .pdv-register-status-badge.reopened {
  background: rgba(59, 130, 246, 0.18);
  border-color: rgba(59, 130, 246, 0.3);
  color: #c8d9ff;
}

body.theme-dark .pdv-register-highlight-badge.closed,
body.theme-dark .pdv-register-status-badge.closed {
  background: rgba(148, 163, 184, 0.16);
  border-color: rgba(148, 163, 184, 0.22);
  color: rgba(226, 232, 240, 0.86);
}

body.theme-dark .pdv-cash-table tbody tr.is-selected td {
  background: rgba(200, 155, 60, 0.1);
}

body.theme-dark .pdv-cash-table tbody tr.is-highlighted td {
  border-top-color: rgba(16, 185, 129, 0.26);
  border-bottom-color: rgba(16, 185, 129, 0.26);
}

body.theme-dark .pdv-cash-detail-card,
body.theme-dark .pdv-cash-detail-grid div {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.08);
}

body.theme-dark .pdv-sale-footer-bar {
  background: linear-gradient(140deg, rgba(10, 20, 18, 0.98), rgba(18, 34, 31, 0.96));
}

body.theme-dark .pdv-payment-inline-pill {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.1);
}

body.theme-dark .pdv-sale-discount-inline.warning,
body.theme-dark .pdv-sale-cash-card.warning {
  background: rgba(168, 85, 15, 0.12);
  border-color: rgba(251, 191, 36, 0.18);
}

body.theme-dark .pdv-payment-card-field input {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.12);
  color: rgba(248, 241, 228, 0.92);
}

@media (max-width: 1180px) {
  .pdv-sale-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .pdv-sale-sidebar {
    position: static;
  }

  .pdv-sale-search-results,
  .pdv-sale-cart-list {
    max-height: none;
  }
}

@media (max-width: 760px) {
  .pdv-sale-search-legend,
  .pdv-sale-footer-bar,
  .pdv-payment-card-head,
  .pdv-payment-card-foot,
  .pdv-sale-cash-inline-meta {
    grid-template-columns: 1fr;
    display: grid;
  }

  .pdv-customer-profile.compact .pdv-customer-profile-stats,
  .pdv-sale-finalize-form,
  .pdv-payment-card-fields.credit {
    grid-template-columns: minmax(0, 1fr);
  }

  .pdv-sale-footer-actions {
    width: 100%;
  }

  .pdv-sale-footer-actions .primary-button,
  .pdv-sale-footer-actions .ghost-button {
    flex: 1 1 180px;
  }
}

body.theme-dark .pdv-route-shell-compact {
  background: linear-gradient(135deg, rgba(12, 17, 21, 0.94), rgba(17, 24, 29, 0.9)) !important;
  border-color: rgba(255, 255, 255, 0.08) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

body.theme-dark .pdv-sale-shell > .panel:first-child,
body.theme-dark #pdv-operational-panel {
  background:
    linear-gradient(145deg, rgba(11, 15, 18, 0.99), rgba(16, 21, 26, 0.98)),
    radial-gradient(circle at right top, rgba(200, 155, 60, 0.06), transparent 40%) !important;
  border-color: rgba(255, 255, 255, 0.06) !important;
}

.pdv-sale-layout {
  align-items: stretch;
}

.pdv-sale-main {
  align-self: stretch;
}

.pdv-sale-product-zone {
  min-height: 100%;
}

body.theme-dark .pdv-sale-zone input,
body.theme-dark .pdv-sale-zone input[type="text"],
body.theme-dark .pdv-sale-zone input[type="search"],
body.theme-dark .pdv-sale-zone input[type="number"],
body.theme-dark .pdv-sale-zone textarea,
body.theme-dark .pdv-sale-zone select {
  background: rgba(8, 12, 15, 0.85) !important;
  color: rgba(245, 241, 235, 0.94) !important;
  border-color: rgba(255, 255, 255, 0.1) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

body.theme-dark .pdv-sale-zone input::placeholder,
body.theme-dark .pdv-sale-zone textarea::placeholder {
  color: rgba(200, 210, 208, 0.42) !important;
}

body.theme-dark .pdv-sale-zone input:focus,
body.theme-dark .pdv-sale-zone textarea:focus,
body.theme-dark .pdv-sale-zone select:focus {
  border-color: rgba(200, 155, 60, 0.6) !important;
  box-shadow: 0 0 0 3px rgba(200, 155, 60, 0.12) !important;
  outline: none !important;
}

body.theme-dark .pdv-sale-zone .ghost-button,
body.theme-dark .pdv-sale-zone .secondary-button {
  background: rgba(255, 255, 255, 0.07) !important;
  border: 1px solid rgba(255, 255, 255, 0.14) !important;
  color: rgba(245, 241, 235, 0.88) !important;
}

body.theme-dark .pdv-sale-zone .ghost-button:hover,
body.theme-dark .pdv-sale-zone .secondary-button:hover {
  background: rgba(255, 255, 255, 0.12) !important;
  border-color: rgba(200, 155, 60, 0.42) !important;
  color: rgba(245, 241, 235, 1) !important;
}

.pdv-cashback-history-badge {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 2px 8px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.05);
  color: rgba(240, 236, 229, 0.86);
  font-size: 0.72rem;
  font-weight: 700;
}

.pdv-cashback-history-badge.available {
  border-color: rgba(16, 185, 129, 0.24);
  background: rgba(16, 185, 129, 0.12);
  color: #b8f4d8;
}

.pdv-cashback-history-badge.pending,
.pdv-cashback-history-badge.pending_migration {
  border-color: rgba(245, 158, 11, 0.24);
  background: rgba(245, 158, 11, 0.1);
  color: #f9d18a;
}

.pdv-cashback-history-badge.used {
  border-color: rgba(59, 130, 246, 0.24);
  background: rgba(59, 130, 246, 0.1);
  color: #c7d9ff;
}

.pdv-cashback-history-badge.expired {
  border-color: rgba(148, 163, 184, 0.2);
  background: rgba(148, 163, 184, 0.08);
  color: rgba(226, 232, 240, 0.82);
}

.pdv-drawer-overlay[data-drawer-type="payment"] {
  left: var(--sidebar-width);
}

#pdv-sale-drawer[data-drawer-type="payment"] {
  width: min(1500px, calc(100vw - var(--sidebar-width) - 12px));
  max-width: calc(100vw - var(--sidebar-width) - 4px);
  height: 100%;
  max-height: 100vh;
  box-sizing: border-box;
  overflow: hidden;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  padding: 16px;
  gap: 10px;
}

#pdv-sale-drawer[data-drawer-type="payment"] .pdv-drawer-body {
  overflow: hidden;
  display: grid;
  grid-template-rows: minmax(0, 1fr);
  min-height: 0;
}

#pdv-drawer-section-payment {
  height: auto;
  min-height: 100%;
}

#pdv-drawer-section-payment .split-grid {
  grid-template-columns: 1fr 1fr;
  align-items: stretch;
  min-height: 100%;
  height: auto;
  gap: 24px;
}

#pdv-drawer-section-payment .split-grid > .panel {
  min-height: 0;
}

#pdv-drawer-section-payment .split-grid > .panel:first-child,
#pdv-drawer-section-payment .split-grid > .panel:last-child {
  display: flex;
  flex-direction: column;
  min-height: 0;
}

#pdv-drawer-section-payment .split-grid > .panel:first-child {
  overflow-y: auto;
  overflow-x: hidden;
  padding-right: 6px;
}

#pdv-drawer-section-payment .split-grid > .panel:last-child {
  overflow-y: auto;
  overflow-x: hidden;
  padding-right: 6px;
}

#pdv-drawer-section-payment .split-grid > .panel:first-child,
#pdv-drawer-section-payment .split-grid > .panel:last-child {
  scrollbar-gutter: stable;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: rgba(198, 157, 84, 0.62) transparent;
}

#pdv-drawer-section-payment .split-grid > .panel:first-child::-webkit-scrollbar,
#pdv-drawer-section-payment .split-grid > .panel:last-child::-webkit-scrollbar {
  width: 10px;
}

#pdv-drawer-section-payment .split-grid > .panel:first-child::-webkit-scrollbar-track,
#pdv-drawer-section-payment .split-grid > .panel:last-child::-webkit-scrollbar-track {
  background: transparent;
}

#pdv-drawer-section-payment .split-grid > .panel:first-child::-webkit-scrollbar-thumb,
#pdv-drawer-section-payment .split-grid > .panel:last-child::-webkit-scrollbar-thumb {
  background: rgba(198, 157, 84, 0.55);
  border-radius: 999px;
  border: 2px solid transparent;
  background-clip: padding-box;
}

#pdv-drawer-section-payment .split-grid > .panel:first-child::-webkit-scrollbar-thumb:hover,
#pdv-drawer-section-payment .split-grid > .panel:last-child::-webkit-scrollbar-thumb:hover {
  background: rgba(220, 182, 101, 0.78);
  background-clip: padding-box;
}

#pdv-drawer-section-payment .split-grid > .panel:first-child .panel-header,
#pdv-drawer-section-payment .split-grid > .panel:last-child .panel-header {
  margin-bottom: 8px;
  flex-shrink: 0;
}

#pdv-drawer-section-payment .split-grid > .panel:last-child .pdv-sale-finalize-form {
  flex: 0 0 auto;
  min-height: auto;
  overflow: visible;
  align-content: start;
  gap: 10px;
}

#pdv-drawer-section-payment .split-grid > .panel:last-child {
  gap: 12px;
}

#pdv-sale-authorization-panel {
  flex-shrink: 0;
}

.pdv-payment-panel-v4 {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  height: 100%;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(7, 10, 13, 0.42);
  overflow: hidden;
}

.pdv-payment-panel-v4--checkout {
  margin-top: auto;
  min-height: 320px;
}

.pdv-payment-launched-panel {
  display: grid;
  gap: 8px;
  padding: 10px 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(6, 10, 13, 0.68);
}

.pdv-payment-launched-header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  color: rgba(232, 236, 232, 0.86);
  font-size: 0.78rem;
}

.pdv-payment-launched-list {
  display: grid;
  gap: 6px;
}

.pdv-payment-launched-line {
  border-radius: 10px;
  padding: 8px 10px;
  background: rgba(255, 255, 255, 0.03);
}

.pdv-payment-summary-sticky {
  position: sticky;
  top: 0;
  z-index: 4;
  padding: 8px 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  background: linear-gradient(180deg, rgba(10, 15, 18, 0.98), rgba(12, 18, 21, 0.96));
  backdrop-filter: blur(10px);
}

.pdv-payment-summary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(132px, 1fr));
  gap: 10px;
  align-items: center;
}

.pdv-payment-summary-grid.mockup-summary-grid {
  display: flex !important;
  flex-direction: column !important;
  gap: 0;
}

.pdv-payment-summary-grid.mockup-summary-grid > div {
  display: flex !important;
}

.pdv-payment-summary-grid div {
  display: grid;
  gap: 2px;
}

.pdv-payment-summary-grid span {
  font-size: 0.68rem;
  font-weight: 500;
  color: rgba(192, 201, 199, 0.62);
  letter-spacing: 0.02em;
}

.pdv-payment-summary-grid strong {
  font-size: 0.9rem;
  font-weight: 600;
  color: rgba(245, 241, 235, 0.94);
}

.pdv-payment-summary-preview {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(132px, 1fr));
  gap: 10px;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.pdv-payment-summary-preview div {
  display: grid;
  gap: 2px;
}

.pdv-payment-summary-preview span {
  font-size: 0.68rem;
  color: rgba(203, 211, 209, 0.7);
}

.pdv-payment-summary-preview strong {
  font-size: 0.84rem;
  font-weight: 600;
}

.pdv-payment-summary-helper {
  margin-top: 10px;
  font-size: 0.75rem;
  color: rgba(245, 212, 139, 0.9);
}

.pdv-payment-cashback-zone {
  padding: 10px 10px 0;
}

.pdv-cashback-checkout-card {
  display: grid;
  gap: 10px;
  padding: 12px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(180deg, rgba(18, 22, 26, 0.96), rgba(15, 19, 22, 0.92));
}

.pdv-cashback-checkout-card.has-applied {
  border-color: rgba(74, 222, 128, 0.24);
  box-shadow: 0 0 0 1px rgba(74, 222, 128, 0.06);
}

.pdv-cashback-checkout-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.pdv-cashback-checkout-head strong {
  display: block;
  font-size: 0.86rem;
  color: rgba(245, 241, 228, 0.96);
}

.pdv-cashback-checkout-head span,
.pdv-cashback-inline-status {
  font-size: 0.72rem;
  color: rgba(198, 205, 204, 0.7);
}

.pdv-cashback-checkout-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(128px, 1fr));
  gap: 10px;
}

.pdv-cashback-checkout-grid div {
  display: grid;
  gap: 2px;
}

.pdv-cashback-status-card small {
  font-size: 0.68rem;
  color: rgba(198, 205, 204, 0.7);
}

.pdv-cashback-status-card.has-pending small {
  color: rgba(245, 212, 139, 0.88);
}

.pdv-cashback-checkout-grid span {
  font-size: 0.68rem;
  color: rgba(192, 201, 199, 0.62);
}

.pdv-cashback-checkout-grid strong {
  font-size: 0.88rem;
  font-weight: 600;
  color: rgba(245, 241, 235, 0.94);
}

.pdv-cashback-checkout-actions {
  display: grid;
  gap: 10px;
}

.pdv-cashback-checkout-field {
  display: grid;
  gap: 6px;
}

.pdv-cashback-checkout-field span {
  font-size: 0.72rem;
  color: rgba(198, 205, 204, 0.72);
}

.pdv-cashback-checkout-field input {
  height: 38px;
  padding: 6px 10px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(9, 13, 17, 0.92);
  color: rgba(248, 241, 228, 0.96);
  font-size: 0.94rem;
  font-weight: 600;
  text-align: right;
}

.pdv-cashback-checkout-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.pdv-cashback-checkout-helper {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  font-size: 0.72rem;
  color: rgba(245, 212, 139, 0.84);
}

.pdv-cashback-helper-pill,
.pdv-cashback-helper-stack {
  display: inline-grid;
  gap: 2px;
}

.pdv-cashback-helper-stack strong {
  font-size: 0.72rem;
  font-weight: 600;
  color: rgba(245, 241, 235, 0.92);
}

.pdv-cashback-checkout-helper small {
  color: rgba(198, 205, 204, 0.72);
}

.pdv-sale-summary-cashback strong,
.pdv-payment-summary-grid .is-cashback strong {
  color: #f5d48b;
}

.pdv-payment-summary-grid .is-draft strong {
  color: #f5d48b;
}

.pdv-payment-summary-grid .is-pending strong {
  color: #f6cf83;
}

.pdv-payment-summary-grid .is-balanced strong {
  color: #6ee7a8;
}

.pdv-payment-summary-grid .is-troco strong {
  color: #7dd3fc;
}

.pdv-payment-scroller-v4 {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  display: grid;
  gap: 10px;
  padding: 8px 0;
}

.pdv-payment-section-v4,
.pdv-payment-more-methods {
  display: grid;
  gap: 8px;
  padding: 0 10px;
}

.pdv-payment-section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}

.pdv-payment-section-head strong,
.pdv-payment-more-methods summary {
  font-size: 0.82rem;
  font-weight: 500;
  color: rgba(245, 241, 235, 0.9);
}

.pdv-payment-section-head span {
  font-size: 0.72rem;
  color: rgba(190, 199, 198, 0.58);
}

.pdv-payment-more-methods summary {
  cursor: pointer;
  list-style: none;
}

.pdv-payment-more-methods summary::-webkit-details-marker {
  display: none;
}

.pdv-payment-method-list-v4 {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.pdv-payment-method-row {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(10, 14, 20, 0.4);
  transition: all 0.2s ease;
}

.pdv-payment-method-row:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.15);
}

.pdv-payment-method-row.is-launched {
  border-color: rgba(74, 222, 128, 0.24);
  background: rgba(34, 197, 94, 0.08);
}

.pdv-payment-method-row.is-draft {
  border-color: rgba(245, 158, 11, 0.26);
  background: rgba(161, 98, 7, 0.1);
}

.pdv-payment-method-row.is-mixed {
  border-color: rgba(245, 158, 11, 0.26);
  background: linear-gradient(180deg, rgba(161, 98, 7, 0.12), rgba(34, 197, 94, 0.06));
}

.pdv-payment-method-row.payment-method-card--filled .pdv-payment-method-input {
  border-color: rgba(74, 222, 128, 0.28);
  box-shadow: 0 0 0 1px rgba(74, 222, 128, 0.08);
}

.pdv-payment-method-row.is-draft .pdv-payment-method-input,
.pdv-payment-method-row.is-mixed .pdv-payment-method-input {
  border-color: rgba(245, 158, 11, 0.28);
  box-shadow: 0 0 0 1px rgba(245, 158, 11, 0.08);
}

.pdv-payment-method-row.is-draft .pdv-payment-add-btn,
.pdv-payment-method-row.is-mixed .pdv-payment-add-btn {
  border-color: rgba(245, 158, 11, 0.28);
  background: rgba(90, 58, 14, 0.92);
  color: #f7d48f;
}

.pdv-payment-method-row.is-launched .pdv-payment-add-btn {
  border-color: rgba(74, 222, 128, 0.28);
  background: rgba(24, 72, 52, 0.92);
  color: #b7f7cf;
}

.pdv-payment-method-row-main {
  display: flex;
  align-items: center;
  gap: 7px;
  min-height: 42px;
}

.pdv-payment-method-icon {
  width: 18px;
  text-align: center;
  font-size: 0.88rem;
  opacity: 0.9;
}

.pdv-payment-method-meta {
  flex: 1;
  min-width: 0;
  display: grid;
  gap: 4px;
}

.pdv-payment-method-name {
  min-width: 0;
  font-size: 0.95rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.95);
}

.pdv-payment-method-helper {
  margin-top: 4px;
  font-size: 0.72rem;
  color: rgba(245, 212, 139, 0.84);
}

.pdv-payment-method-state-badge {
  width: fit-content;
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 2px 8px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.64rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.pdv-payment-method-state-badge.draft,
.pdv-payment-method-state-badge.mixed {
  border-color: rgba(245, 158, 11, 0.24);
  background: rgba(245, 158, 11, 0.12);
  color: #f5d48b;
}

.pdv-payment-method-state-badge.launched {
  border-color: rgba(74, 222, 128, 0.24);
  background: rgba(34, 197, 94, 0.12);
  color: #b7f7cf;
}

.pdv-credit-preview {
  font-size: 0.72rem;
  color: rgba(223, 228, 227, 0.74);
}

.pdv-payment-method-input-wrap {
  flex: 0 0 126px;
}

.pdv-payment-method-input {
  width: 100%;
  height: 34px;
  padding: 5px 9px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(9, 13, 17, 0.92);
  color: rgba(248, 241, 228, 0.96);
  font-size: 0.92rem;
  font-weight: 600;
  text-align: right;
}

.pdv-payment-installments-wrap {
  display: flex;
  align-items: center;
  gap: 6px;
  flex: 0 0 auto;
}

.pdv-payment-installments-wrap span {
  font-size: 0.66rem;
  color: rgba(192, 201, 199, 0.56);
}

.pdv-payment-installments-wrap input {
  width: 56px;
  height: 30px;
  padding: 4px 8px;
  border-radius: 7px;
  text-align: center;
}

.pdv-payment-fill-btn,
.pdv-payment-add-btn,
.pdv-payment-inline-remove {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  border-radius: 7px;
  font-size: 0.72rem;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
}

.pdv-payment-fill-btn {
  padding: 6px 10px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.05);
  color: rgba(255, 255, 255, 0.85);
  font-weight: 500;
  transition: all 0.2s ease;
}

.pdv-payment-fill-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.pdv-payment-add-btn {
  padding: 6px 16px;
  border: none;
  background: #cba25a; /* AEROSTORE GOLD */
  color: #070a0d;
  font-weight: 700;
  font-size: 0.8rem;
  box-shadow: 0 2px 8px rgba(203, 162, 90, 0.3);
  transition: all 0.2s ease;
}

.pdv-payment-add-btn:hover {
  background: #e2b971;
  transform: translateY(-1px);
}

.pdv-credit-installment-panel {
  display: grid;
  gap: 6px;
  padding: 6px 4px 2px 22px;
}

.pdv-credit-installment-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.pdv-credit-installment-toolbar span {
  font-size: 0.72rem;
  color: rgba(190, 199, 198, 0.66);
}

.pdv-credit-installment-toolbar-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.pdv-credit-installment-table {
  display: grid;
  gap: 6px;
}

.pdv-credit-installment-row {
  display: grid;
  grid-template-columns: 34px 92px minmax(128px, 1fr) auto auto;
  gap: 8px;
  align-items: center;
  min-height: 32px;
  padding: 4px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.pdv-credit-installment-row label {
  display: grid;
  gap: 3px;
  font-size: 0.64rem;
  color: rgba(190, 199, 198, 0.56);
}

.pdv-credit-installment-row input {
  height: 28px;
  padding: 4px 8px;
  border-radius: 6px;
  font-size: 0.74rem;
}

.pdv-credit-installment-row strong {
  font-size: 0.76rem;
  font-weight: 600;
  color: rgba(245, 241, 235, 0.92);
}

.pdv-payment-added-list {
  display: grid;
  gap: 0;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  overflow: hidden;
}

.pdv-payment-added-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 32px;
  padding: 5px 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.025);
}

.pdv-payment-added-row:last-child {
  border-bottom: none;
}

.pdv-payment-added-row.total {
  background: rgba(59, 130, 246, 0.08);
}

.pdv-payment-added-name {
  color: rgba(205, 212, 211, 0.78);
  font-size: 0.78rem;
  font-weight: 500;
}

.pdv-payment-added-value {
  color: rgba(245, 241, 235, 0.95);
  font-size: 0.8rem;
  font-weight: 600;
}

.pdv-payment-inline-remove {
  padding: 2px 8px;
  border: none;
  background: transparent;
  color: #fb7185;
}

.pdv-payment-success-actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.pdv-payment-inline-remove {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 28px;
  min-height: 28px;
  border-radius: 999px;
  border: 1px solid rgba(251, 113, 133, 0.18);
  background: rgba(127, 29, 29, 0.14);
  color: #fda4af;
  cursor: pointer;
  transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.pdv-payment-inline-remove:hover:not(:disabled) {
  background: rgba(153, 27, 27, 0.22);
  border-color: rgba(251, 113, 133, 0.34);
  color: #fecdd3;
  transform: translateY(-1px);
}

.pdv-payment-inline-remove:disabled {
  opacity: 0.45;
  cursor: wait;
}

.pdv-payment-alert {
  display: grid;
  gap: 4px;
  margin: 0 0 12px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(245, 208, 132, 0.2);
  background: rgba(118, 59, 11, 0.16);
}

.pdv-payment-alert strong {
  font-size: 0.84rem;
  color: #f8deb3;
}

.pdv-payment-alert span {
  font-size: 0.8rem;
  color: rgba(242, 228, 203, 0.88);
}

.pdv-payment-alert.warning {
  border-color: rgba(251, 191, 36, 0.28);
  background: linear-gradient(180deg, rgba(120, 53, 15, 0.18), rgba(82, 37, 10, 0.14));
}

.pdv-payment-alert.strong {
  margin-top: 12px;
}

.pdv-payment-alert.draft {
  border-color: rgba(245, 208, 132, 0.22);
  background: rgba(93, 63, 17, 0.14);
}

.pdv-sale-financial-summary {
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 18px;
  padding: 16px;
}

.pdv-sale-financial-lines {
  display: grid;
  gap: 0;
}

.pdv-sale-financial-row {
  align-items: center;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  gap: 14px;
  justify-content: space-between;
  min-width: 0;
  padding: 10px 0;
}

.pdv-sale-financial-row:first-child {
  border-top: 0;
  padding-top: 0;
}

.pdv-sale-financial-row span {
  color: rgba(226, 232, 240, 0.68);
  font-size: 0.86rem;
  line-height: 1.25;
  min-width: 0;
}

.pdv-sale-financial-row strong {
  color: #f8fafc;
  flex: 0 0 auto;
  font-size: 0.96rem;
  font-weight: 850;
  letter-spacing: -0.02em;
  text-align: right;
  white-space: nowrap;
}

.pdv-sale-financial-row strong.is-discount {
  color: #a8f3d4;
}

.pdv-sale-financial-total {
  border-top-color: rgba(255, 255, 255, 0.16);
  margin-top: 4px;
  padding-top: 14px;
}

.pdv-sale-financial-total span {
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.98rem;
  font-weight: 800;
}

.pdv-sale-financial-total strong {
  color: #fff;
  font-size: 1.38rem;
}

.pdv-sale-financial-pending strong {
  font-size: 1.04rem;
}

.pdv-sale-financial-pending.is-balanced strong {
  color: #6ee7b7;
}

.pdv-sale-financial-pending.is-pending strong {
  color: #ffd37a;
}

.pdv-sale-financial-projected {
  border-top-style: dashed;
  margin-top: 4px;
}

.pdv-sale-financial-projected span {
  color: rgba(191, 219, 254, 0.76);
}

.pdv-sale-financial-projected strong {
  color: #bfdbfe;
}

.pdv-payment-footer-v4 {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(8, 12, 15, 0.94);
  position: sticky;
  bottom: 0;
  z-index: 3;
}

.pdv-payment-checkout-footer {
  display: grid;
  gap: 12px;
  align-items: stretch;
  padding: 12px;
  border-radius: 18px;
  border: 1px solid rgba(200, 157, 84, 0.22);
  background:
    linear-gradient(180deg, rgba(16, 23, 25, 0.98), rgba(7, 10, 13, 0.98)),
    rgba(8, 12, 15, 0.98);
  box-shadow: 0 -20px 42px rgba(0, 0, 0, 0.42);
}

.pdv-payment-footer-summary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
  gap: 8px;
}

.pdv-payment-footer-summary div {
  display: grid;
  gap: 2px;
  min-width: 0;
  padding: 9px 10px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(255, 255, 255, 0.045);
}

.pdv-payment-footer-summary span {
  font-size: 0.62rem;
  color: rgba(198, 205, 204, 0.64);
}

.pdv-payment-footer-summary strong {
  font-size: 0.9rem;
  color: rgba(245, 241, 235, 0.96);
  word-break: break-word;
}

.pdv-payment-footer-decision {
  display: grid;
  gap: 3px;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  background: rgba(255, 255, 255, 0.035);
}

.pdv-payment-footer-decision span {
  color: rgba(198, 205, 204, 0.68);
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.pdv-payment-footer-decision strong {
  color: rgba(248, 244, 237, 0.96);
  font-size: 0.82rem;
  line-height: 1.25;
}

.pdv-payment-footer-decision.is-ready {
  border-color: rgba(110, 231, 168, 0.24);
  background: rgba(16, 185, 129, 0.08);
}

.pdv-payment-footer-decision.is-warning {
  border-color: rgba(245, 208, 132, 0.24);
  background: rgba(93, 63, 17, 0.16);
}

.pdv-payment-footer-decision.is-danger {
  border-color: rgba(248, 113, 113, 0.24);
  background: rgba(127, 29, 29, 0.16);
}

.pdv-payment-footer-summary .is-balanced strong {
  color: #6ee7a8;
}

.pdv-payment-footer-summary .is-pending strong {
  color: #f6cf83;
}

.pdv-payment-footer-summary .is-troco strong {
  color: #7dd3fc;
}

.pdv-payment-footer-actions {
  display: grid;
  grid-template-columns: minmax(112px, 0.46fr) minmax(220px, 1fr);
  align-items: center;
  gap: 12px;
}

.pdv-payment-footer-v4 .primary-button,
.pdv-payment-footer-v4 .ghost-button {
  min-height: 48px;
  width: 100%;
  white-space: normal;
  text-align: center;
}

.pdv-payment-footer-v4.is-ready {
  border-top-color: rgba(110, 231, 168, 0.28);
  box-shadow: 0 -14px 26px rgba(4, 10, 8, 0.28);
}

.pdv-payment-finalize-btn.is-ready {
  box-shadow: 0 0 0 1px rgba(110, 231, 168, 0.2), 0 14px 30px rgba(22, 163, 74, 0.24);
}

.pdv-payment-finalize-btn {
  font-size: 0.96rem;
  font-weight: 900;
  letter-spacing: 0.01em;
}

.pdv-payment-footer-v4 .pdv-payment-finalize-btn:disabled {
  opacity: 0.78;
  color: rgba(248, 244, 237, 0.78);
  background: linear-gradient(135deg, rgba(44, 54, 56, 0.95), rgba(26, 31, 33, 0.96));
  border: 1px solid rgba(245, 208, 132, 0.18);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.035);
}

.pdv-payment-cancel-btn {
  color: rgba(245, 241, 235, 0.86);
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.1);
}

.button-disabled-passive {
  opacity: 0.64;
  cursor: wait;
}

.pdv-payment-success-shell {
  display: grid;
  gap: 14px;
}

.pdv-payment-success-badge {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(16, 185, 129, 0.14);
  border: 1px solid rgba(16, 185, 129, 0.24);
  color: #93f3c4;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.pdv-payment-success-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 18px;
  border-radius: 20px;
  background: rgba(8, 14, 13, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.pdv-payment-success-head-main {
  display: grid;
  gap: 6px;
}

.pdv-payment-success-head h3,
.pdv-payment-success-total strong {
  margin: 0;
  font-size: 1.18rem;
}

.pdv-payment-success-head p,
.pdv-payment-success-total span {
  margin: 4px 0 0;
  color: rgba(209, 218, 216, 0.74);
}

.pdv-payment-success-total {
  display: grid;
  gap: 4px;
  text-align: right;
}

.pdv-payment-success-helper {
  display: grid;
  gap: 4px;
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid rgba(110, 231, 168, 0.2);
  background: linear-gradient(180deg, rgba(10, 28, 22, 0.86), rgba(7, 18, 15, 0.94));
}

.pdv-payment-success-helper strong {
  color: #c9f7dd;
  font-size: 0.92rem;
}

.pdv-payment-success-helper span {
  color: rgba(221, 232, 228, 0.8);
  font-size: 0.82rem;
}

.pdv-payment-success-helper.is-alert {
  border-color: rgba(245, 158, 11, 0.34);
  background: linear-gradient(180deg, rgba(52, 34, 8, 0.9), rgba(28, 18, 5, 0.96));
}

.pdv-payment-success-helper.is-alert strong {
  color: #f6c76a;
}

.pdv-payment-success-helper.is-alert span {
  color: rgba(248, 229, 189, 0.92);
}

.pdv-payment-success-helper.is-success {
  border-color: rgba(110, 231, 168, 0.3);
  background: linear-gradient(180deg, rgba(9, 38, 29, 0.92), rgba(7, 24, 18, 0.98));
}

.pdv-payment-success-helper.is-success strong {
  color: #8ef0b7;
}

.pdv-payment-success-helper.is-success span {
  color: rgba(211, 246, 225, 0.88);
}

.pdv-payment-success-helper.is-neutral {
  border-color: rgba(148, 163, 184, 0.22);
  background: linear-gradient(180deg, rgba(32, 37, 45, 0.88), rgba(18, 22, 28, 0.96));
}

.pdv-payment-success-helper.is-neutral strong {
  color: #d0d8e4;
}

.pdv-payment-success-helper.is-neutral span {
  color: rgba(220, 226, 236, 0.8);
}

.pdv-payment-link-tone-success {
  color: #8ef0b7 !important;
}

.pdv-payment-link-tone-warning {
  color: #f6c76a !important;
}

.pdv-payment-link-tone-danger {
  color: #f59f9f !important;
}

.pdv-payment-link-tone-neutral {
  color: rgba(229, 231, 235, 0.88) !important;
}

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

.pdv-payment-success-card {
  display: grid;
  gap: 4px;
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.pdv-payment-success-card span {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: rgba(190, 198, 196, 0.68);
}

.pdv-payment-success-card strong {
  color: rgba(245, 241, 235, 0.95);
  font-size: 0.92rem;
}

.pdv-payment-success-panel {
  display: grid;
  gap: 12px;
  padding: 16px;
  border-radius: 20px;
  background: rgba(9, 15, 14, 0.74);
  border: 1px solid rgba(255, 255, 255, 0.06);
  overflow: hidden;
}

.pdv-payment-success-layout {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.pdv-payment-success-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.pdv-payment-success-panel-head strong {
  color: rgba(245, 241, 235, 0.96);
}

.pdv-payment-success-panel-head span {
  color: rgba(201, 247, 221, 0.82);
  font-size: 0.8rem;
}

.pdv-post-sale-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.pdv-post-sale-metrics div {
  display: grid;
  gap: 4px;
  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.pdv-post-sale-metrics span,
.pdv-post-sale-item span {
  color: rgba(209, 218, 216, 0.7);
  font-size: 0.78rem;
}

.pdv-post-sale-metrics strong,
.pdv-post-sale-item strong {
  color: rgba(245, 241, 235, 0.96);
}

.pdv-payment-success-list {
  display: grid;
  gap: 10px;
}

.pdv-post-sale-items {
  display: grid;
  gap: 10px;
}

.pdv-post-sale-item {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.pdv-post-sale-item > div {
  display: grid;
  gap: 4px;
}

.pdv-payment-success-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.pdv-payment-success-line span {
  color: rgba(209, 218, 216, 0.76);
}

.pdv-payment-success-line strong {
  color: rgba(245, 241, 235, 0.96);
}

.pdv-payment-success-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.secondary-button.is-attention {
  border-color: rgba(245, 158, 11, 0.38);
  color: #f4d089;
}

.pdv-post-sale-whatsapp-box {
  display: grid;
  gap: 8px;
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.03);
}

.pdv-post-sale-whatsapp-box strong {
  color: rgba(245, 241, 235, 0.95);
}

.pdv-post-sale-whatsapp-box span,
.pdv-post-sale-print-note {
  color: rgba(209, 218, 216, 0.76);
  font-size: 0.82rem;
}

.pdv-post-sale-whatsapp-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.pdv-post-sale-whatsapp-row input {
  flex: 1 1 240px;
}

.pdv-post-sale-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.link-button {
  border: 0;
  background: none;
  padding: 0;
  color: #b8cfc7;
  font-size: 0.88rem;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

.link-button:hover {
  color: #e8f2ee;
}

@media (max-width: 980px) {
  .pdv-drawer-overlay[data-drawer-type="payment"] {
    left: 0;
  }

  #pdv-sale-drawer[data-drawer-type="payment"] {
    width: min(100vw, calc(100vw - 12px));
    max-width: 100vw;
  }

  #pdv-drawer-section-payment .split-grid {
    grid-template-columns: 1fr;
    min-height: auto;
    height: auto;
  }

  #pdv-sale-drawer[data-drawer-type="payment"] .pdv-drawer-body {
    overflow-y: auto;
    overflow-x: hidden;
  }

  #pdv-drawer-section-payment .split-grid > .panel:first-child,
  #pdv-drawer-section-payment .split-grid > .panel:last-child {
    overflow: visible;
    padding-right: 0;
    scrollbar-gutter: auto;
  }
}

@media (max-width: 760px) {
  .pdv-payment-success-head {
    flex-direction: column;
  }

  .pdv-payment-success-total {
    text-align: left;
  }

  .pdv-payment-success-grid {
    grid-template-columns: 1fr;
  }

  .pdv-payment-success-layout,
  .pdv-post-sale-metrics {
    grid-template-columns: 1fr;
  }

  .pdv-payment-summary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .pdv-payment-method-row-main {
    flex-wrap: wrap;
    min-height: auto;
  }

  .pdv-payment-method-input-wrap {
    flex: 1 1 160px;
  }

  .pdv-credit-installment-row {
    grid-template-columns: 1fr;
  }

  .pdv-payment-footer-v4 {
    flex-wrap: wrap;
  }

  .pdv-payment-footer-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .pdv-payment-footer-actions {
    grid-template-columns: 1fr;
  }

  .pdv-payment-footer-v4 .primary-button,
  .pdv-payment-footer-v4 .ghost-button {
    flex: 1 1 180px;
  }

  .pdv-payment-success-actions .primary-button,
  .pdv-payment-success-actions .secondary-button,
  .pdv-payment-success-actions .ghost-button {
    flex: 1 1 180px;
  }

  .pdv-post-sale-whatsapp-row .ghost-button,
  .pdv-post-sale-whatsapp-row input {
    flex: 1 1 100%;
  }

  .pdv-sale-finalize-support-grid {
    grid-template-columns: 1fr;
  }
}

.pdv-products-shell {
  position: relative;
  overflow: hidden;
}

.pdv-products-header {
  align-items: flex-start;
}

.pdv-products-toolbar {
  display: grid;
  grid-template-columns: minmax(0, 1.8fr) minmax(280px, 0.9fr);
  gap: 14px;
  align-items: end;
  margin-bottom: 16px;
}

.pdv-products-search-label,
.pdv-products-toolbar-filters label {
  display: flex;
  flex-direction: column;
  gap: 8px;
  color: rgba(226, 232, 240, 0.88);
  font-size: 0.8rem;
  font-weight: 600;
}

.pdv-products-search-label input,
.pdv-products-toolbar-filters select,
.pdv-products-drawer-form input,
.pdv-products-drawer-form select,
.pdv-products-drawer-form textarea {
  min-height: 46px;
  border-radius: 14px;
  border: 1px solid rgba(148, 163, 184, 0.14);
  background: rgba(8, 12, 15, 0.82);
  color: rgba(248, 250, 252, 0.96);
  padding: 0 14px;
}

.pdv-products-search-label input::placeholder,
.pdv-products-drawer-form input::placeholder,
.pdv-products-drawer-form textarea::placeholder {
  color: rgba(148, 163, 184, 0.74);
}

.pdv-products-toolbar-filters {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.pdv-products-summary-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}

.pdv-products-stat-card {
  min-height: 114px;
  justify-content: space-between;
}

.pdv-products-stat-card small {
  color: rgba(148, 163, 184, 0.84);
  font-size: 0.74rem;
  line-height: 1.45;
}

.pdv-label-print-overlay {
  position: fixed;
  inset: 0;
  z-index: 96;
  display: flex;
  justify-content: flex-end;
  background:
    radial-gradient(circle at 82% 18%, rgba(198, 157, 75, 0.18), transparent 34%),
    rgba(3, 8, 10, 0.68);
  backdrop-filter: blur(10px);
}

.pdv-label-print-drawer {
  width: min(720px, 96vw);
  height: 100%;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  gap: 14px;
  padding: 22px;
  box-sizing: border-box;
  background:
    linear-gradient(180deg, rgba(18, 27, 30, 0.98), rgba(10, 17, 20, 0.98)),
    radial-gradient(circle at top right, rgba(196, 161, 89, 0.14), transparent 40%);
  border-left: 1px solid rgba(211, 178, 101, 0.28);
  box-shadow: -26px 0 60px rgba(0, 0, 0, 0.42);
}

.pdv-label-print-header,
.pdv-label-print-footer {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.pdv-label-print-header h3 {
  margin: 4px 0;
  font-size: 1.5rem;
}

.pdv-label-print-header p {
  margin: 0;
  color: rgba(203, 213, 225, 0.78);
}

.pdv-label-print-kicker {
  color: #d8b76a;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.pdv-label-print-body {
  min-height: 0;
  overflow-y: auto;
  display: grid;
  gap: 14px;
  padding-right: 4px;
}

.pdv-label-print-product,
.pdv-label-print-form,
.pdv-label-print-config,
.pdv-label-preview-card {
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: 20px;
  background: rgba(15, 23, 27, 0.82);
  padding: 16px;
}

.pdv-label-print-product {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.pdv-label-print-product div,
.pdv-label-print-config {
  display: grid;
  gap: 6px;
}

.pdv-label-print-product span,
.pdv-label-print-config span,
.pdv-label-print-form label {
  color: rgba(203, 213, 225, 0.74);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.pdv-label-print-product strong,
.pdv-label-print-config strong {
  color: rgba(248, 250, 252, 0.96);
}

.pdv-label-print-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.pdv-label-print-form label {
  display: grid;
  gap: 8px;
  text-transform: none;
  letter-spacing: 0;
}

.pdv-label-print-form input,
.pdv-label-print-form select {
  min-height: 44px;
  border-radius: 14px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  background: rgba(3, 7, 9, 0.88);
  color: rgba(248, 250, 252, 0.96);
  padding: 0 12px;
}

.pdv-label-print-form small {
  color: rgba(203, 213, 225, 0.64);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: none;
}

.pdv-label-preview-sheet {
  width: min(100%, 360px);
  min-height: 170px;
  display: grid;
  align-content: start;
  gap: 8px;
  margin: 10px 0 12px;
  padding: 16px;
  border-radius: 12px;
  color: #111827;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.05) 1px, transparent 1px),
    linear-gradient(180deg, rgba(0, 0, 0, 0.05) 1px, transparent 1px),
    #f8fafc;
  background-size: 18px 18px;
  box-shadow: inset 0 0 0 1px rgba(15, 23, 42, 0.18);
}

.pdv-label-preview-tabs {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px;
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: 999px;
  background: rgba(3, 7, 9, 0.72);
}

.pdv-label-preview-tabs button {
  min-height: 34px;
  border: 0;
  border-radius: 999px;
  padding: 0 12px;
  color: rgba(203, 213, 225, 0.78);
  background: transparent;
  font-weight: 900;
  cursor: pointer;
}

.pdv-label-preview-tabs button.active {
  color: #08110f;
  background: linear-gradient(135deg, #d7b76c, #f4e3aa);
  box-shadow: 0 10px 26px rgba(215, 183, 108, 0.2);
}

.pdv-label-preview-pane {
  display: none;
}

.pdv-label-preview-pane.active {
  display: block;
}

.pdv-label-preview-sheet span {
  display: block;
  font-family: "Courier New", monospace;
  font-weight: 800;
  line-height: 1.25;
}

.pdv-label-preview-sheet .muted {
  color: rgba(51, 65, 85, 0.66);
}

.pdv-label-technical-tag {
  position: relative;
  width: min(100%, 268px);
  aspect-ratio: 40 / 60;
  min-height: 0;
  align-content: stretch;
  gap: 0;
  overflow: hidden;
  padding: 0;
  border-radius: 18px 18px 13px 13px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(245, 242, 235, 0.98)),
    #f8fafc;
  background-size: auto;
}

.pdv-label-technical-tag::before {
  content: "";
  position: absolute;
  top: 18px;
  left: 50%;
  z-index: 2;
  width: 68px;
  height: 10px;
  border: 2px solid rgba(148, 140, 126, 0.35);
  border-radius: 999px;
  transform: translateX(-50%);
}

.technical-tag-body {
  display: grid;
  min-height: 0;
  align-content: start;
  gap: 7px;
  padding: 48px 18px 14px;
  color: #111827;
  text-align: center;
}

.technical-tag-body b {
  font: 900 0.76rem/1 "Courier New", monospace;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.technical-tag-body strong {
  max-height: 2.5em;
  overflow: hidden;
  font: 900 0.82rem/1.2 "Courier New", monospace;
}

.technical-tag-body span,
.technical-tag-body small,
.technical-tag-body em {
  display: block;
  overflow: hidden;
  color: rgba(17, 24, 39, 0.82);
  font: 800 0.68rem/1.1 "Courier New", monospace;
  font-style: normal;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.technical-tag-barcode {
  display: flex;
  justify-content: center;
  gap: 1px;
  height: 34px;
  margin: 3px auto 0;
}

.technical-tag-barcode i {
  display: block;
  height: 100%;
  background: #111827;
}

.technical-tag-serrilhado {
  position: absolute;
  inset: auto 0 0;
  display: grid;
  min-height: 25%;
  align-content: center;
  justify-items: center;
  gap: 3px;
  padding: 14px 14px 12px;
  color: #0f172a;
  text-align: center;
  border-top: 1px dashed rgba(15, 23, 42, 0.3);
  background:
    radial-gradient(circle at 6px 0, transparent 0 5px, rgba(239, 234, 223, 0.98) 5.5px) 0 0 / 18px 12px repeat-x,
    linear-gradient(180deg, rgba(239, 234, 223, 0.98), rgba(247, 244, 236, 0.98));
}

.technical-tag-serrilhado::after {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 9px;
  background: radial-gradient(circle at 9px 0, #fff 0 4px, transparent 4.5px) 0 0 / 18px 9px repeat-x;
}

.technical-tag-serrilhado small {
  z-index: 1;
  color: rgba(15, 23, 42, 0.62);
  font: 900 0.68rem/1 "Courier New", monospace;
  text-decoration: line-through;
}

.technical-tag-serrilhado strong {
  z-index: 1;
  color: #07130f;
  font: 900 1.24rem/1 "Courier New", monospace;
  letter-spacing: -0.08em;
  white-space: nowrap;
}

.technical-tag-serrilhado.is-compare strong {
  font-size: 1.02rem;
}

.pdv-label-command-preview {
  max-height: 180px;
  overflow: auto;
  white-space: pre-wrap;
  border-radius: 14px;
  padding: 12px;
  background: rgba(3, 7, 9, 0.92);
  color: rgba(226, 232, 240, 0.9);
  border: 1px solid rgba(148, 163, 184, 0.14);
}

.pdv-label-print-message {
  display: block;
  margin-top: 10px;
  color: rgba(203, 213, 225, 0.82);
}

.pdv-label-photo-empty {
  display: grid;
  min-height: 220px;
  place-items: center;
  margin: 12px 0;
  padding: 18px;
  border: 1px dashed rgba(148, 163, 184, 0.24);
  border-radius: 18px;
  color: rgba(203, 213, 225, 0.72);
  text-align: center;
  background: rgba(3, 7, 9, 0.54);
}

.pdv-label-photo-mockup {
  position: relative;
  width: min(100%, 620px);
  aspect-ratio: 1147 / 1197;
  margin: 12px auto 0;
  overflow: hidden;
  border-radius: 20px;
  background: #fff;
  box-shadow:
    inset 0 0 0 1px rgba(15, 23, 42, 0.12),
    0 24px 60px rgba(0, 0, 0, 0.28);
}

.pdv-label-photo-mockup img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.pdv-label-photo-fallback {
  display: none;
  position: absolute;
  inset: 24px;
  place-items: center;
  border: 1px dashed rgba(15, 23, 42, 0.2);
  border-radius: 18px;
  color: rgba(15, 23, 42, 0.64);
  font-weight: 800;
  text-align: center;
}

.pdv-label-photo-mockup.is-missing .pdv-label-photo-fallback {
  display: grid;
}

.pdv-label-mockup-slot {
  position: absolute;
  display: grid;
  align-content: stretch;
  gap: 1px;
  padding: 4px;
  color: rgba(15, 23, 42, 0.76);
  text-align: center;
  font-family: "Courier New", monospace;
  line-height: 1;
  background: rgba(255, 255, 255, 0.04);
  mix-blend-mode: multiply;
  opacity: 0.9;
  pointer-events: none;
}

.mockup-label-body {
  display: grid;
  min-height: 0;
  align-content: start;
  gap: 1px;
  padding-bottom: 26%;
}

.pdv-label-mockup-slot strong {
  font-size: clamp(0.42rem, 0.95vw, 0.62rem);
  letter-spacing: 0.08em;
}

.pdv-label-mockup-slot .mockup-product {
  max-height: 2.1em;
  overflow: hidden;
  font-size: clamp(0.36rem, 0.78vw, 0.5rem);
  font-weight: 900;
}

.pdv-label-mockup-slot span,
.pdv-label-mockup-slot small,
.pdv-label-mockup-slot em {
  overflow: hidden;
  font-size: clamp(0.32rem, 0.66vw, 0.43rem);
  font-style: normal;
  font-weight: 800;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.pdv-label-mockup-slot b {
  font-size: clamp(0.44rem, 1vw, 0.66rem);
  letter-spacing: -0.04em;
}

.pdv-label-mockup-slot .mockup-de {
  font-size: clamp(0.28rem, 0.58vw, 0.38rem);
  opacity: 0.72;
  text-decoration: line-through;
}

.mockup-price-stub {
  position: absolute;
  inset: auto 0 0;
  display: grid;
  min-height: 25%;
  align-content: center;
  justify-items: center;
  gap: 1px;
  padding: 2px 3px;
  border-top: 1px dashed rgba(15, 23, 42, 0.26);
}

.mockup-price-stub::before {
  content: "";
  position: absolute;
  top: -2px;
  left: 0;
  width: 100%;
  border-top: 1px dotted rgba(255, 255, 255, 0.56);
}

.mockup-price-stub.is-normal b {
  font-size: clamp(0.4rem, 0.92vw, 0.62rem);
}

.mockup-barcode {
  display: flex;
  align-items: stretch;
  justify-content: center;
  gap: 1px;
  height: 12px;
  margin: 2px auto 0;
}

.mockup-barcode i {
  display: block;
  height: 100%;
  background: rgba(15, 23, 42, 0.88);
}

.pdv-label-mockup-slot.slot-1 {
  left: 38.4%;
  top: 30.8%;
  width: 14.2%;
  height: 16.5%;
  transform: rotate(-11deg) skewX(-5deg) scale(0.98);
}

.pdv-label-mockup-slot.slot-2 {
  left: 58%;
  top: 27.2%;
  width: 14.4%;
  height: 16.6%;
  transform: rotate(5deg) skewX(-2deg) scale(0.96);
}

.pdv-label-mockup-slot.slot-3 {
  left: 50.8%;
  top: 57.4%;
  width: 16%;
  height: 18%;
  transform: rotate(-10deg) skewX(-4deg) scale(0.98);
}

.pdv-label-mockup-slot.slot-4 {
  left: 69.7%;
  top: 54.1%;
  width: 15.5%;
  height: 18.2%;
  transform: rotate(8deg) skewX(2deg) scale(0.96);
}

.pdv-label-print-footer {
  align-items: center;
  padding-top: 12px;
  border-top: 1px solid rgba(148, 163, 184, 0.14);
}

.pdv-products-table {
  width: 100%;
  border-collapse: collapse;
}

.pdv-products-table th,
.pdv-products-table td {
  vertical-align: top;
}

.pdv-products-table th {
  white-space: nowrap;
}

.pdv-products-name-cell,
.pdv-products-price-cell,
.pdv-products-stock-cell {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.pdv-products-name-cell strong,
.pdv-products-price-cell strong,
.pdv-products-stock-cell strong {
  color: rgba(248, 250, 252, 0.96);
}

.pdv-products-name-cell small,
.pdv-products-price-cell small,
.pdv-products-stock-cell small {
  color: rgba(148, 163, 184, 0.82);
  line-height: 1.4;
}

.pdv-products-photo {
  width: 54px;
  height: 54px;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.14);
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.9), rgba(10, 14, 18, 0.94));
  display: flex;
  align-items: center;
  justify-content: center;
}

.pdv-products-photo.is-product-media {
  width: var(--product-media-list-w);
  height: var(--product-media-list-h);
  min-width: var(--product-media-list-w);
  border-radius: 22px;
  flex: 0 0 var(--product-media-list-w);
}

.pdv-products-photo.is-product-media.is-featured {
  width: var(--product-media-list-w);
  height: var(--product-media-list-h);
  flex-basis: var(--product-media-list-w);
}

.pdv-products-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}

.pdv-products-photo.is-product-media .pdv-products-photo-fallback,
.pdv-product-card-media .pdv-products-photo-fallback {
  font-size: 1rem;
}

.pdv-products-photo-fallback {
  color: rgba(226, 232, 240, 0.92);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.pdv-products-identifiers {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 220px;
}

.pdv-products-identifier-chip {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  margin: 0 6px 6px 0;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.72);
  border: 1px solid rgba(148, 163, 184, 0.12);
  color: rgba(226, 232, 240, 0.92);
  font-size: 0.74rem;
  font-weight: 600;
}

.pdv-products-identifier-chip.is-muted {
  color: rgba(148, 163, 184, 0.88);
}

.pdv-products-missing-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.pdv-products-action-row {
  justify-content: flex-end;
  flex-wrap: wrap;
}

.pdv-products-table tr.is-selected {
  background: rgba(29, 78, 216, 0.08);
}

.pdv-products-status-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  background: rgba(15, 23, 42, 0.56);
  color: rgba(226, 232, 240, 0.92);
  font-size: 0.74rem;
  font-weight: 700;
  white-space: nowrap;
}

.pdv-products-status-badge.is-active {
  border-color: rgba(74, 222, 128, 0.22);
  background: rgba(34, 197, 94, 0.12);
  color: rgba(220, 252, 231, 0.96);
}

.pdv-products-status-badge.is-pending_review,
.pdv-products-status-badge.is-pending_migration {
  border-color: rgba(245, 158, 11, 0.24);
  background: rgba(245, 158, 11, 0.12);
  color: rgba(254, 240, 138, 0.98);
}

.pdv-products-status-badge.is-out {
  border-color: rgba(248, 113, 113, 0.2);
  background: rgba(239, 68, 68, 0.1);
  color: rgba(254, 226, 226, 0.96);
}

.pdv-products-status-badge.is-low,
.pdv-products-status-badge.is-reserved {
  border-color: rgba(245, 158, 11, 0.22);
  background: rgba(245, 158, 11, 0.1);
  color: rgba(254, 240, 138, 0.98);
}

.pdv-products-status-badge.is-negative {
  border-color: rgba(248, 113, 113, 0.28);
  background: rgba(239, 68, 68, 0.16);
  color: rgba(254, 226, 226, 0.98);
}

.pdv-products-detail-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.pdv-products-detail-hero {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 14px;
  align-items: center;
}

.pdv-stock-product-cell {
  display: grid;
  grid-template-columns: var(--product-media-stock-w) minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  min-width: 330px;
}

.pdv-stock-product-cell .pdv-products-photo.is-product-media {
  width: var(--product-media-stock-w);
  height: var(--product-media-stock-h);
  min-width: var(--product-media-stock-w);
  flex-basis: var(--product-media-stock-w);
  border-radius: 20px;
}

.pdv-products-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.pdv-products-detail-grid > div {
  padding: 14px;
  border-radius: 16px;
  border: 1px solid rgba(148, 163, 184, 0.1);
  background: rgba(15, 23, 42, 0.5);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.pdv-products-detail-grid strong {
  color: rgba(248, 250, 252, 0.96);
}

.pdv-products-drawer {
  width: min(820px, calc(100vw - 28px));
  max-width: 820px;
}

.pdv-products-drawer.is-import-mode {
  width: min(1080px, calc(100vw - 28px));
  max-width: 1080px;
}

.pdv-products-drawer-body {
  background: linear-gradient(180deg, rgba(8, 12, 15, 0.94), rgba(5, 8, 11, 0.98));
  min-height: 0;
  display: flex;
  flex-direction: column;
}

.pdv-products-drawer-panel {
  border: none;
  background: transparent;
  box-shadow: none;
  padding: 0;
  min-height: 100%;
}

.pdv-products-drawer-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.pdv-products-import-form {
  min-height: 100%;
}

.pdv-products-form-block {
  padding: 18px;
  border-radius: 20px;
  border: 1px solid rgba(148, 163, 184, 0.1);
  background: rgba(10, 14, 18, 0.72);
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.pdv-products-form-head {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.pdv-products-form-head strong {
  color: rgba(248, 250, 252, 0.96);
  font-size: 1rem;
}

.pdv-products-form-head .table-meta {
  color: rgba(148, 163, 184, 0.8);
}

.pdv-products-form-grid {
  gap: 14px;
}

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

.pdv-products-upload-box {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 124px;
  padding: 18px;
  border-radius: 18px;
  border: 1px dashed rgba(96, 165, 250, 0.34);
  background: radial-gradient(circle at top left, rgba(30, 41, 59, 0.64), rgba(9, 14, 18, 0.88));
  color: rgba(226, 232, 240, 0.92);
  cursor: pointer;
}

.pdv-products-upload-box input[type="file"] {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.pdv-products-upload-title {
  font-size: 0.94rem;
  font-weight: 700;
  color: rgba(248, 250, 252, 0.96);
}

.pdv-products-upload-box small {
  color: rgba(148, 163, 184, 0.86);
  line-height: 1.45;
}

.pdv-products-import-steps {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  position: sticky;
  top: 0;
  z-index: 2;
  padding-bottom: 6px;
  background: linear-gradient(180deg, rgba(8, 12, 15, 0.98), rgba(8, 12, 15, 0.82));
}

.pdv-products-step {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.12);
  background: rgba(15, 23, 42, 0.56);
  color: rgba(191, 219, 254, 0.86);
  font-size: 0.76rem;
  font-weight: 700;
}

.pdv-products-step.is-active {
  background: rgba(29, 78, 216, 0.18);
  border-color: rgba(96, 165, 250, 0.38);
  color: rgba(239, 246, 255, 0.96);
}

.pdv-products-mapping-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.pdv-products-mapping-grid > div,
.pdv-products-import-status-grid .mini-card {
  padding: 14px;
  border-radius: 16px;
  border: 1px solid rgba(148, 163, 184, 0.1);
  background: rgba(15, 23, 42, 0.5);
}

.pdv-products-mapping-grid span,
.pdv-products-import-status-grid .mini-card span {
  display: block;
  color: rgba(148, 163, 184, 0.82);
  font-size: 0.72rem;
  margin-bottom: 6px;
}

.pdv-products-mapping-grid strong,
.pdv-products-import-status-grid .mini-card strong {
  color: rgba(248, 250, 252, 0.96);
  font-size: 0.95rem;
}

.pdv-products-import-status-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.pdv-products-import-panel .table-wrap {
  max-height: min(40vh, 420px);
  overflow-y: auto;
}

.pdv-products-import-panel .pdv-products-form-block:last-of-type {
  flex: 1 1 auto;
  min-height: 0;
}

.pdv-products-callout {
  padding: 14px 16px;
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.pdv-products-callout.warning {
  background: rgba(245, 158, 11, 0.08);
  border: 1px solid rgba(245, 158, 11, 0.22);
}

.pdv-products-callout strong {
  color: rgba(255, 237, 213, 0.98);
}

.pdv-products-callout span {
  color: rgba(253, 230, 138, 0.86);
  line-height: 1.45;
}

.pdv-import-action-row {
  position: sticky;
  bottom: 0;
  z-index: 2;
  margin-top: auto;
  padding: 14px 0 2px;
  background: linear-gradient(180deg, rgba(8, 12, 15, 0), rgba(8, 12, 15, 0.94) 28%, rgba(8, 12, 15, 0.98));
}

@media (max-width: 1080px) {
  .pdv-products-summary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .pdv-products-toolbar {
    grid-template-columns: 1fr;
  }

  .pdv-products-mapping-grid,
  .pdv-products-import-status-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .pdv-products-drawer.is-import-mode {
    width: min(960px, calc(100vw - 20px));
    max-width: 960px;
  }
}

@media (max-width: 760px) {
  .pdv-products-toolbar-filters,
  .pdv-products-mapping-grid,
  .pdv-products-import-status-grid,
  .pdv-products-summary-grid {
    grid-template-columns: 1fr;
  }

  .pdv-products-detail-grid {
    grid-template-columns: 1fr;
  }

  .pdv-products-wide-field {
    grid-column: span 1;
  }

  .pdv-products-drawer {
    width: min(100vw, calc(100vw - 12px));
    max-width: 100vw;
  }

  .pdv-products-drawer.is-import-mode {
    width: min(100vw, calc(100vw - 12px));
    max-width: 100vw;
  }
}

.pdv-customers-shell {
  display: grid;
  gap: 18px;
}

.pdv-customers-header,
.pdv-customers-toolbar {
  align-items: end;
}

.pdv-customers-toolbar {
  display: grid;
  gap: 14px;
  grid-template-columns: minmax(0, 1.8fr) minmax(280px, 1fr);
}

.pdv-customers-source-toggle {
  grid-column: 1 / -1;
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  width: fit-content;
  padding: 0.35rem;
  border: 1px solid rgba(45, 212, 191, 0.22);
  border-radius: 999px;
  background: rgba(8, 14, 18, 0.72);
}

.pdv-customers-source-toggle label {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.55rem 0.85rem;
  border-radius: 999px;
  color: rgba(248, 241, 228, 0.68);
  font-weight: 800;
  cursor: pointer;
}

.pdv-customers-source-toggle label:has(input:checked) {
  color: #2dd4bf;
  background: rgba(45, 212, 191, 0.14);
  box-shadow: inset 0 0 0 1px rgba(45, 212, 191, 0.22);
}

.pdv-customers-source-toggle input {
  accent-color: #2dd4bf;
}

.pdv-customers-search-label,
.pdv-customers-toolbar-filters label {
  display: grid;
  gap: 6px;
  font-size: 0.76rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(248, 241, 228, 0.62);
}

.pdv-customers-search-label input,
.pdv-customers-toolbar-filters select,
.pdv-customers-drawer-form input,
.pdv-customers-drawer-form select,
.pdv-customers-drawer-form textarea {
  width: 100%;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.1);
  background: rgba(11, 14, 24, 0.92);
  color: #f8f1e4;
  padding: 13px 14px;
  outline: none;
  transition: border-color 180ms ease, box-shadow 180ms ease;
}

.pdv-customers-search-label input::placeholder,
.pdv-customers-drawer-form input::placeholder,
.pdv-customers-drawer-form textarea::placeholder {
  color: rgba(248, 241, 228, 0.38);
}

.pdv-customers-search-label input:focus,
.pdv-customers-toolbar-filters select:focus,
.pdv-customers-drawer-form input:focus,
.pdv-customers-drawer-form select:focus,
.pdv-customers-drawer-form textarea:focus {
  border-color: rgba(193, 168, 122, 0.6);
  box-shadow: 0 0 0 3px rgba(193, 168, 122, 0.14);
}

.pdv-customers-toolbar-filters {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.pdv-customers-summary-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.pdv-customers-stat-card {
  min-height: 104px;
}

.pdv-customers-stat-card small {
  color: rgba(248, 241, 228, 0.56);
  line-height: 1.45;
}

.pdv-customers-table {
  width: 100%;
  border-collapse: collapse;
}

.pdv-customers-table th,
.pdv-customers-table td {
  padding: 14px 12px;
  vertical-align: top;
}

.pdv-customers-table th {
  white-space: nowrap;
}

.pdv-customers-name-cell,
.pdv-customers-contact-cell,
.pdv-customers-profile-cell,
.pdv-customers-cashback-cell,
.pdv-customers-last-sale-cell {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.pdv-customers-name-cell strong,
.pdv-customers-contact-cell strong,
.pdv-customers-cashback-cell strong,
.pdv-customers-last-sale-cell strong {
  color: #f8f1e4;
}

.pdv-customers-name-cell small,
.pdv-customers-contact-cell small,
.pdv-customers-profile-cell small,
.pdv-customers-cashback-cell small,
.pdv-customers-last-sale-cell small {
  color: rgba(248, 241, 228, 0.62);
  line-height: 1.45;
}

.pdv-customers-inline-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.pdv-customers-action-row {
  justify-content: flex-end;
}

.pdv-customers-drawer {
  width: min(920px, calc(100vw - 36px));
  max-width: calc(100vw - 12px);
}

.pdv-customers-drawer-body {
  display: grid;
  gap: 18px;
}

.pdv-customers-drawer-panel {
  border-radius: 24px;
}

.pdv-customers-drawer-form {
  display: grid;
  gap: 18px;
}

.pdv-customers-form-block {
  display: grid;
  gap: 14px;
  padding: 18px;
  border-radius: 22px;
  border: 1px solid rgba(255,255,255,0.08);
  background: linear-gradient(180deg, rgba(255,255,255,0.035), rgba(255,255,255,0.015));
}

.pdv-customers-form-head {
  display: grid;
  gap: 4px;
}

.pdv-customers-form-head strong {
  color: #f8f1e4;
  font-size: 1rem;
}

.pdv-customers-form-head .table-meta {
  color: rgba(248, 241, 228, 0.62);
}

.pdv-customers-form-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.pdv-customers-wide-field {
  grid-column: 1 / -1;
}

.pdv-customers-drawer-form textarea {
  min-height: 108px;
  resize: vertical;
}

.pdv-customers-commerce-grid,
.pdv-customers-import-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.pdv-customers-commerce-grid .mini-card,
.pdv-customers-import-grid .mini-card {
  padding: 14px;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.03);
  display: grid;
  gap: 4px;
}

.pdv-customers-commerce-grid .mini-card span,
.pdv-customers-import-grid .mini-card span {
  color: rgba(248, 241, 228, 0.58);
  font-size: 0.77rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.pdv-customers-commerce-grid .mini-card strong,
.pdv-customers-import-grid .mini-card strong {
  color: #f8f1e4;
  line-height: 1.4;
}

.pdv-customers-quick-card {
  display: grid;
  gap: 6px;
  padding: 16px;
  border-radius: 18px;
  background: rgba(13, 18, 28, 0.9);
  border: 1px solid rgba(193, 168, 122, 0.22);
}

.pdv-customers-quick-card strong {
  color: #f8f1e4;
}

.pdv-customers-quick-card span {
  color: rgba(248, 241, 228, 0.72);
  line-height: 1.45;
}

.pdv-customers-import-steps {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.pdv-customers-step {
  padding: 12px 14px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.03);
  color: rgba(248, 241, 228, 0.68);
  text-align: center;
  font-size: 0.84rem;
}

.pdv-customers-step.is-active {
  border-color: rgba(193, 168, 122, 0.42);
  background: rgba(193, 168, 122, 0.12);
  color: #f8f1e4;
}

.pdv-customers-callout {
  display: grid;
  gap: 6px;
  padding: 16px 18px;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.03);
}

.pdv-customers-callout strong {
  color: #f8f1e4;
}

.pdv-customers-callout span {
  color: rgba(248, 241, 228, 0.72);
  line-height: 1.5;
}

.pdv-customers-cashback-block {
  display: grid;
  gap: 14px;
}

.pdv-customers-cashback-intro {
  border-color: rgba(193, 168, 122, 0.24);
  background:
    linear-gradient(135deg, rgba(193, 168, 122, 0.14), rgba(255,255,255,0.03)),
    rgba(255,255,255,0.03);
}

.pdv-customers-cashback-summary-grid .mini-card {
  min-height: 108px;
}

.pdv-customers-cashback-ledger-panel {
  display: grid;
  gap: 12px;
  padding: 18px;
  border-radius: 22px;
  border: 1px solid rgba(255,255,255,0.08);
  background: linear-gradient(180deg, rgba(18, 20, 27, 0.94), rgba(11, 12, 17, 0.94));
}

.pdv-customers-cashback-table {
  width: 100%;
  border-collapse: collapse;
}

.pdv-customers-cashback-table th,
.pdv-customers-cashback-table td {
  padding: 12px 10px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  text-align: left;
  vertical-align: top;
}

.pdv-customers-cashback-table th {
  color: rgba(248, 241, 228, 0.62);
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.pdv-customers-cashback-table td {
  color: rgba(248, 241, 228, 0.9);
  font-size: 0.92rem;
}

.pdv-reactivation-panel {
  display: grid;
  gap: 16px;
}

.pdv-reactivation-header {
  align-items: center;
}

.pdv-reactivation-toolbar {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}

.pdv-reactivation-toolbar label {
  display: grid;
  gap: 6px;
}

.pdv-reactivation-summary-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.pdv-reactivation-grid {
  align-items: start;
}

.pdv-reactivation-list-panel,
.pdv-reactivation-preview-panel {
  display: grid;
  gap: 12px;
}

.pdv-reactivation-name,
.pdv-reactivation-segment {
  display: grid;
  gap: 4px;
}

.pdv-reactivation-name small,
.pdv-reactivation-segment small {
  color: rgba(248, 241, 228, 0.66);
}

.pdv-reactivation-preview-box {
  min-height: 168px;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,0.08);
  background: linear-gradient(180deg, rgba(19, 24, 31, 0.92), rgba(12, 14, 19, 0.92));
  padding: 18px;
}

.pdv-reactivation-preview-box p,
.pdv-reactivation-preview-box span {
  margin: 0;
  color: rgba(248, 241, 228, 0.82);
  line-height: 1.7;
}

.pdv-reactivation-badge.high {
  background: rgba(195, 92, 92, 0.18);
  color: #ffb3b3;
  border-color: rgba(195, 92, 92, 0.38);
}

.pdv-reactivation-badge.medium {
  background: rgba(193, 168, 122, 0.18);
  color: #f2d7a6;
  border-color: rgba(193, 168, 122, 0.34);
}

.pdv-reactivation-badge.low {
  background: rgba(96, 148, 126, 0.14);
  color: #bfdccd;
  border-color: rgba(96, 148, 126, 0.28);
}

@media (max-width: 1080px) {
  .pdv-customers-summary-grid,
  .pdv-customers-commerce-grid,
  .pdv-customers-import-grid,
  .pdv-reactivation-summary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .pdv-customers-toolbar {
    grid-template-columns: 1fr;
  }

  .pdv-reactivation-toolbar {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .pdv-route-tabs {
    gap: 12px;
  }

  .pdv-route-group {
    min-width: 100%;
  }

  .pdv-route-group-links {
    flex-wrap: wrap;
  }

  .pdv-customers-toolbar,
  .pdv-customers-toolbar-filters,
  .pdv-customers-summary-grid,
  .pdv-customers-form-grid,
  .pdv-customers-commerce-grid,
  .pdv-customers-import-grid,
  .pdv-customers-import-steps,
  .pdv-reactivation-toolbar,
  .pdv-reactivation-summary-grid {
    grid-template-columns: 1fr;
  }

  .pdv-customers-wide-field {
    grid-column: span 1;
  }

  .pdv-customers-drawer {
    width: min(100vw, calc(100vw - 12px));
    max-width: 100vw;
  }
}

/* ============================================================
   IMPORTAR TINY — CALLOUT INFO + STICKY FOOTER
   ============================================================ */

.pdv-products-callout.info {
  background: rgba(59, 130, 246, 0.08);
  border: 1px solid rgba(96, 165, 250, 0.22);
}

.pdv-products-callout.info strong {
  color: rgba(219, 234, 254, 0.98);
}

.pdv-products-callout.info span {
  color: rgba(191, 219, 254, 0.86);
}

/* O botão de ação do drawer de importação fica grudado
   na parte inferior do scroll para sempre ficar visível. */
.pdv-import-action-row {
  position: sticky;
  bottom: 0;
  z-index: 2;
  /* cobre o conteúdo que rola atrás */
  background: linear-gradient(
    to top,
    rgba(5, 8, 11, 1) 0%,
    rgba(5, 8, 11, 1) 72%,
    rgba(5, 8, 11, 0) 100%
  );
  padding-top: 18px;
  margin-top: 0;
}

.whatsapp-crm-shell {
  display: grid;
  gap: 18px;
}

.aerointel-hero-card,
.aerointel-filters-panel {
  overflow: hidden;
}

.aerointel-head-grid,
.aerointel-metrics-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.aerointel-stat-card,
.aerointel-mini-card {
  display: grid;
  gap: 8px;
}

.aerointel-stat-card small,
.aerointel-mini-card small,
.aerointel-filter-hint span {
  color: var(--muted);
  line-height: 1.45;
}

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

.aerointel-filter-hint {
  display: grid;
  gap: 6px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.04);
}

.aerointel-commercial-grid {
  margin-bottom: 18px;
}

.aerointel-table td,
.aerointel-table th {
  vertical-align: top;
}

.aerointel-view-panel,
.aerointel-live-profile-panel {
  display: grid;
  gap: 18px;
}

.aerointel-view-tabs {
  gap: 10px;
  flex-wrap: wrap;
}

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

.aerointel-highlight-toggle {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.04);
}

.aerointel-highlight-toggle input {
  margin: 0;
}

.aerointel-timeline {
  display: grid;
  gap: 14px;
}

.aerointel-message-card {
  display: grid;
  gap: 12px;
  padding: 18px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
}

.aerointel-message-card.inbound {
  border-color: rgba(52, 211, 153, 0.22);
  background: rgba(16, 185, 129, 0.06);
}

.aerointel-message-card.outbound {
  border-color: rgba(148, 163, 184, 0.22);
  background: rgba(148, 163, 184, 0.05);
}

.aerointel-message-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  align-items: center;
}

.aerointel-message-meta span,
.aerointel-message-meta strong {
  font-size: 0.92rem;
}

.aerointel-message-text {
  white-space: pre-wrap;
  line-height: 1.6;
  font-size: 0.98rem;
}

.aerointel-message-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.aerointel-warning-badge {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(245, 158, 11, 0.28);
  background: rgba(245, 158, 11, 0.12);
  color: #f5d38a;
  font-size: 0.8rem;
  font-weight: 700;
}

.aerointel-signal-highlight {
  padding: 0 2px;
  border-radius: 6px;
  background: rgba(200, 155, 60, 0.24);
  color: inherit;
}

.aerointel-duplicate-card {
  align-content: start;
}

.aerointel-live-profile-panel .filters-grid {
  align-items: end;
}

.aerointel-live-profile-panel .pdv-customers-wide-field .action-row {
  flex-wrap: nowrap;
}

.whatsapp-crm-panel {
  display: grid;
  gap: 16px;
}

.whatsapp-crm-status-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.whatsapp-crm-status-card small {
  color: rgba(248, 241, 228, 0.66);
  line-height: 1.45;
}

.whatsapp-crm-status-card.is-connected {
  border-color: rgba(52, 211, 153, 0.28);
  background: rgba(16, 185, 129, 0.08);
}

.whatsapp-crm-status-card.is-warning {
  border-color: rgba(251, 191, 36, 0.28);
  background: rgba(245, 158, 11, 0.08);
}

.whatsapp-crm-status-card.is-danger {
  border-color: rgba(248, 113, 113, 0.28);
  background: rgba(239, 68, 68, 0.08);
}

.whatsapp-crm-status-card.is-muted {
  border-color: rgba(148, 163, 184, 0.18);
  background: rgba(148, 163, 184, 0.05);
}

.whatsapp-crm-action-row {
  flex-wrap: wrap;
}

.whatsapp-crm-qr-wrap {
  display: grid;
  gap: 12px;
}

.whatsapp-crm-qr-wrap p {
  margin: 0;
  color: rgba(248, 241, 228, 0.72);
}

.whatsapp-crm-qr-image {
  width: min(260px, 100%);
  padding: 12px;
  border-radius: 20px;
  background: #fff;
  justify-self: start;
}

.whatsapp-crm-test-form {
  display: grid;
  gap: 14px;
}

.whatsapp-crm-test-form textarea {
  min-height: 112px;
  resize: vertical;
}

.whatsapp-crm-tabs {
  gap: 10px;
}

.whatsapp-crm-campaign-form textarea,
.whatsapp-crm-campaign-form input,
.whatsapp-crm-campaign-form select {
  width: 100%;
}

.whatsapp-crm-campaign-form textarea {
  min-height: 124px;
  resize: vertical;
}

.whatsapp-crm-campaign-summary {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.whatsapp-crm-composer-grid,
.whatsapp-crm-operation-grid {
  align-items: start;
}

.whatsapp-crm-assistant-grid {
  align-items: start;
}

.whatsapp-crm-assistant-card {
  gap: 12px;
}

.whatsapp-crm-literal-preview {
  white-space: pre-wrap;
}

.whatsapp-crm-media-preview-box {
  display: grid;
  gap: 10px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.03);
}

.whatsapp-crm-media-preview-box img,
.whatsapp-crm-media-preview-box video {
  width: min(320px, 100%);
  max-height: 280px;
  border-radius: 16px;
  border: 1px solid var(--line);
  object-fit: cover;
}

.whatsapp-crm-template-strip {
  display: grid;
  gap: 12px;
}

.whatsapp-crm-template-list,
.whatsapp-crm-mini-list {
  display: grid;
  gap: 10px;
}

.whatsapp-crm-operation-card {
  display: grid;
  gap: 16px;
}

.whatsapp-crm-operation-stats {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.whatsapp-crm-table td,
.whatsapp-crm-table th {
  vertical-align: top;
}

@media (max-width: 1080px) {
  .aerointel-head-grid,
  .aerointel-metrics-grid,
  .whatsapp-crm-status-grid {
    grid-template-columns: 1fr;
  }

  .aerointel-highlight-grid,
  .aerointel-cards-grid,
  .whatsapp-crm-campaign-summary,
  .whatsapp-crm-operation-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .aerointel-highlight-grid,
  .aerointel-cards-grid {
    grid-template-columns: 1fr;
  }

  .aerointel-live-profile-panel .pdv-customers-wide-field .action-row,
  .aerointel-message-meta {
    flex-direction: column;
    align-items: stretch;
  }
}

body.theme-light .pdv-sale-product-zone,
body.theme-light .pdv-sale-cart-zone,
body.theme-light .pdv-sale-customer-zone,
body.theme-light .pdv-sale-checkout-zone,
body.theme-light .pdv-payment-panel-v4,
body.theme-light .pdv-payment-inline-card,
body.theme-light .pdv-sale-discount-inline,
body.theme-light .pdv-payment-success-line,
body.theme-light .pdv-sale-summary-card,
body.theme-light .pdv-sale-cash-card,
body.theme-light .pdv-sale-search-card,
body.theme-light .pdv-sale-customer-result-card,
body.theme-light .pdv-sale-cart-card,
body.theme-light .pdv-sale-payment-card,
body.theme-light .pdv-sale-payment-group,
body.theme-light .pdv-sale-payment-panel,
body.theme-light .pdv-sale-empty-state {
  background:
    linear-gradient(180deg, rgba(255, 252, 247, 0.98), rgba(250, 244, 235, 0.94)),
    radial-gradient(circle at top right, rgba(200, 155, 60, 0.08), transparent 42%);
  border-color: rgba(16, 45, 40, 0.1);
  color: var(--text);
  box-shadow: var(--shadow-soft);
}

body.theme-light .pdv-sale-zone .panel-header h3,
body.theme-light .pdv-sale-search-copy strong,
body.theme-light .pdv-sale-customer-result-copy strong,
body.theme-light .pdv-sale-cart-copy strong,
body.theme-light .pdv-sale-payment-copy strong,
body.theme-light .pdv-sale-summary-card strong,
body.theme-light .pdv-sale-summary-total strong,
body.theme-light .stat-card.pdv-sale-summary-total strong,
body.theme-light .pdv-payment-success-line strong,
body.theme-light .pdv-payment-success-card strong,
body.theme-light .pdv-payment-summary-grid strong,
body.theme-light .pdv-payment-section-head strong,
body.theme-light .pdv-payment-more-methods summary,
body.theme-light .pdv-payment-method-name,
body.theme-light .pdv-sale-cashback-forecast strong,
body.theme-light .pdv-sale-cashback-success strong {
  color: var(--text);
}

body.theme-light .pdv-sale-header .helper-text,
body.theme-light .pdv-sale-search-copy span,
body.theme-light .pdv-sale-customer-result-copy span,
body.theme-light .pdv-sale-cart-copy span,
body.theme-light .pdv-sale-payment-copy span,
body.theme-light .pdv-sale-empty-state span,
body.theme-light .pdv-payment-success-line span,
body.theme-light .pdv-payment-summary-grid span,
body.theme-light .pdv-payment-section-head span,
body.theme-light .pdv-payment-installments-wrap span,
body.theme-light .pdv-credit-installment-toolbar span,
body.theme-light .pdv-credit-installment-row label,
body.theme-light .pdv-sale-cashback-forecast span,
body.theme-light .pdv-sale-cashback-success span,
body.theme-light .pdv-sale-cashback-forecast small {
  color: var(--muted);
}

body.theme-light .pdv-sale-search-label,
body.theme-light .pdv-products-search-label,
body.theme-light .pdv-products-toolbar-filters label,
body.theme-light .pdv-customers-search-label,
body.theme-light .pdv-customers-toolbar-filters label {
  color: var(--muted);
}

body.theme-light .pdv-sale-search-label input,
body.theme-light .pdv-payment-method-input,
body.theme-light .pdv-products-search-label input,
body.theme-light .pdv-products-toolbar-filters select,
body.theme-light .pdv-products-drawer-form input,
body.theme-light .pdv-products-drawer-form select,
body.theme-light .pdv-products-drawer-form textarea,
body.theme-light .pdv-customers-search-label input,
body.theme-light .pdv-customers-toolbar-filters select,
body.theme-light .pdv-customers-drawer-form input,
body.theme-light .pdv-customers-drawer-form select,
body.theme-light .pdv-customers-drawer-form textarea {
  background: rgba(255, 255, 255, 0.94);
  color: var(--text);
  border-color: rgba(16, 45, 40, 0.14);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

body.theme-light .pdv-sale-search-label input::placeholder,
body.theme-light .pdv-products-search-label input::placeholder,
body.theme-light .pdv-products-drawer-form input::placeholder,
body.theme-light .pdv-products-drawer-form textarea::placeholder,
body.theme-light .pdv-customers-search-label input::placeholder,
body.theme-light .pdv-customers-drawer-form input::placeholder,
body.theme-light .pdv-customers-drawer-form textarea::placeholder {
  color: rgba(111, 117, 111, 0.82);
}

body.theme-light .pdv-payment-summary-sticky {
  background: linear-gradient(180deg, rgba(255, 250, 244, 0.98), rgba(247, 241, 232, 0.96));
  border-bottom-color: rgba(16, 45, 40, 0.08);
}

body.theme-light .pdv-payment-method-row {
  background: rgba(16, 45, 40, 0.03);
  border-color: rgba(16, 45, 40, 0.08);
}

body.theme-light .pdv-payment-method-row:hover {
  background: rgba(16, 45, 40, 0.05);
  border-color: rgba(16, 45, 40, 0.12);
}

body.theme-light .pdv-payment-fill-btn {
  border-color: rgba(16, 45, 40, 0.16);
  color: var(--muted);
}

body.theme-light .pdv-payment-inline-pill {
  background: rgba(16, 45, 40, 0.05);
  border-color: rgba(16, 45, 40, 0.1);
  color: var(--text);
}

body.theme-light .pdv-sale-cashback-forecast,
body.theme-light .pdv-sale-cashback-success {
  border-color: rgba(31, 122, 86, 0.14);
  background: rgba(31, 122, 86, 0.06);
}

body.theme-light .pdv-products-search-label input,
body.theme-light .pdv-products-toolbar-filters select,
body.theme-light .pdv-products-drawer-form input,
body.theme-light .pdv-products-drawer-form select,
body.theme-light .pdv-products-drawer-form textarea,
body.theme-light .pdv-products-detail-grid > div,
body.theme-light .pdv-products-form-block,
body.theme-light .pdv-products-mapping-grid > div,
body.theme-light .pdv-products-import-status-grid .mini-card,
body.theme-light .pdv-products-step,
body.theme-light .pdv-products-identifier-chip,
body.theme-light .pdv-products-status-badge,
body.theme-light .pdv-products-photo,
body.theme-light .pdv-products-upload-box {
  background: rgba(255, 255, 255, 0.92);
  color: var(--text);
  border-color: rgba(16, 45, 40, 0.1);
}

body.theme-light .pdv-products-search-label,
body.theme-light .pdv-products-toolbar-filters label,
body.theme-light .pdv-products-stat-card small,
body.theme-light .pdv-products-name-cell small,
body.theme-light .pdv-products-price-cell small,
body.theme-light .pdv-products-stock-cell small,
body.theme-light .pdv-products-form-head .table-meta,
body.theme-light .pdv-products-upload-box small,
body.theme-light .pdv-products-mapping-grid span,
body.theme-light .pdv-products-import-status-grid .mini-card span {
  color: var(--muted);
}

body.theme-light .pdv-products-name-cell strong,
body.theme-light .pdv-products-price-cell strong,
body.theme-light .pdv-products-stock-cell strong,
body.theme-light .pdv-products-form-head strong,
body.theme-light .pdv-products-detail-grid strong,
body.theme-light .pdv-products-upload-title {
  color: var(--text);
}

body.theme-light .pdv-products-photo-fallback,
body.theme-light .pdv-products-identifier-chip,
body.theme-light .pdv-products-status-badge,
body.theme-light .pdv-products-step {
  color: var(--text);
}

body.theme-light .pdv-products-drawer-body,
body.theme-light .pdv-products-import-steps,
body.theme-light .pdv-import-action-row {
  background: linear-gradient(180deg, rgba(250, 244, 235, 0.98), rgba(244, 235, 221, 0.96));
}

body.theme-light .pdv-products-callout strong {
  color: #7c3d12;
}

body.theme-light .pdv-products-callout span {
  color: #9a5b16;
}

body.theme-light .pdv-customers-search-label input,
body.theme-light .pdv-customers-toolbar-filters select,
body.theme-light .pdv-customers-drawer-form input,
body.theme-light .pdv-customers-drawer-form select,
body.theme-light .pdv-customers-drawer-form textarea,
body.theme-light .pdv-customers-form-block,
body.theme-light .pdv-customers-commerce-grid .mini-card,
body.theme-light .pdv-customers-import-grid .mini-card,
body.theme-light .pdv-customers-step,
body.theme-light .pdv-customers-callout {
  background: rgba(255, 255, 255, 0.92);
  color: var(--text);
  border-color: rgba(16, 45, 40, 0.1);
}

body.theme-light .pdv-customers-stat-card small,
body.theme-light .pdv-customers-name-cell small,
body.theme-light .pdv-customers-contact-cell small,
body.theme-light .pdv-customers-profile-cell small,
body.theme-light .pdv-customers-cashback-cell small,
body.theme-light .pdv-customers-last-sale-cell small,
body.theme-light .pdv-customers-form-head .table-meta,
body.theme-light .pdv-customers-commerce-grid .mini-card span,
body.theme-light .pdv-customers-import-grid .mini-card span,
body.theme-light .pdv-customers-quick-card span,
body.theme-light .pdv-customers-callout span {
  color: var(--muted);
}

body.theme-light .pdv-customers-name-cell strong,
body.theme-light .pdv-customers-contact-cell strong,
body.theme-light .pdv-customers-cashback-cell strong,
body.theme-light .pdv-customers-last-sale-cell strong,
body.theme-light .pdv-customers-form-head strong,
body.theme-light .pdv-customers-commerce-grid .mini-card strong,
body.theme-light .pdv-customers-import-grid .mini-card strong,
body.theme-light .pdv-customers-quick-card strong,
body.theme-light .pdv-customers-callout strong {
  color: var(--text);
}

body.theme-light .pdv-customers-quick-card {
  background: rgba(255, 249, 241, 0.94);
  border-color: rgba(200, 155, 60, 0.22);
}

body.theme-light .whatsapp-crm-status-card small,
body.theme-light .whatsapp-crm-qr-wrap p,
body.theme-light .whatsapp-crm-activity-card span,
body.theme-light .whatsapp-crm-activity-card small,
body.theme-light .whatsapp-crm-inline-note {
  color: var(--muted);
}

body.theme-light .whatsapp-crm-media-preview-box,
body.theme-light .whatsapp-crm-operation-card,
body.theme-light .whatsapp-crm-template-list .search-result-card,
body.theme-light .whatsapp-crm-mini-list .search-result-card {
  background: rgba(255, 255, 255, 0.92);
  border-color: rgba(16, 45, 40, 0.1);
  color: var(--text);
}

body.theme-light .whatsapp-crm-status-card.is-muted {
  background: rgba(16, 45, 40, 0.03);
}

body.theme-light .whatsapp-crm-campaign-form textarea,
body.theme-light .whatsapp-crm-campaign-form input,
body.theme-light .whatsapp-crm-campaign-form select,
body.theme-light .whatsapp-crm-test-form textarea,
body.theme-light .whatsapp-crm-test-form input {
  background: rgba(255, 255, 255, 0.94);
  color: var(--text);
  border-color: rgba(16, 45, 40, 0.14);
}

body.theme-light .brand-kicker {
  background: rgba(200, 155, 60, 0.14);
  color: #9a6a18;
}

body.theme-light .eyebrow {
  color: #786d58;
}

.pdv-crud-drawer {
  width: min(860px, calc(100vw - 24px));
}

.pdv-crud-form {
  display: grid;
  gap: 18px;
}

.pdv-product-photo-card {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(280px, 1.2fr);
  gap: 18px;
  align-items: center;
  padding: 18px;
  border: 1px solid rgba(200, 155, 60, 0.22);
  border-radius: 26px;
  background:
    radial-gradient(circle at 10% 10%, rgba(200, 155, 60, 0.16), transparent 34%),
    linear-gradient(135deg, rgba(14, 23, 28, 0.96), rgba(8, 13, 18, 0.98));
}

.pdv-product-photo-copy,
.pdv-product-photo-editor {
  display: grid;
  gap: 10px;
}

.pdv-product-photo-copy strong {
  font-size: 1.12rem;
  color: rgba(248, 250, 252, 0.98);
}

.pdv-product-photo-copy small {
  max-width: 34ch;
  color: rgba(203, 213, 225, 0.82);
  line-height: 1.5;
}

.pdv-product-photo-editor {
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
}

.pdv-product-photo-preview {
  grid-row: span 2;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.24);
}

.pdv-product-photo-file {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 16px;
  border: 1px dashed rgba(148, 163, 184, 0.36);
  border-radius: 18px;
  background: rgba(15, 23, 42, 0.5);
  color: rgba(248, 250, 252, 0.95);
  cursor: pointer;
  font-weight: 700;
}

.pdv-product-photo-file input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.pdv-product-photo-file:has(input:disabled) {
  cursor: not-allowed;
  opacity: 0.58;
}

.pdv-crud-grid {
  align-items: start;
}

.pdv-crud-wide {
  grid-column: 1 / -1;
}

.pdv-crud-inline-panel {
  display: grid;
  gap: 16px;
}

.pdv-chip-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 10px;
}

.pdv-chip-option {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 54px;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.72);
  cursor: pointer;
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.pdv-chip-option input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.pdv-chip-option span {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text);
}

.pdv-chip-option.is-selected,
.pdv-chip-option:has(input:checked) {
  border-color: rgba(200, 155, 60, 0.72);
  background: rgba(200, 155, 60, 0.15);
  transform: translateY(-1px);
}

.pdv-switch-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

@media (max-width: 980px) {
  .pdv-crud-drawer {
    width: 100vw;
    max-width: 100vw;
    border-radius: 0;
  }

  .pdv-product-photo-card,
  .pdv-product-photo-editor {
    grid-template-columns: 1fr;
  }

  .pdv-product-photo-preview {
    grid-row: auto;
  }
}

.pdv-import-shell {
  display: grid;
  gap: 20px;
  --import-bg-app: #0B0F14;
  --import-bg-shell: #0F141B;
  --import-bg-panel: #131A23;
  --import-bg-card: #171F2A;
  --import-border-soft: rgba(255, 255, 255, 0.07);
  --import-border-strong: rgba(255, 255, 255, 0.12);
  --import-divider: rgba(255, 255, 255, 0.06);
  --import-text-main: #F4F7FA;
  --import-text-muted: #AAB4C0;
  --import-text-subtle: #7F8A99;
  --import-accent: #2DD4BF;
  --import-accent-strong: #14B8A6;
  --import-accent-soft: rgba(45, 212, 191, 0.12);
  --import-accent-border: rgba(45, 212, 191, 0.35);
  color: var(--import-text-main);
}

#pdv-imports-content .pdv-front-shell,
#pdv-imports-content .pdv-shell-body,
#pdv-imports-content .pdv-front-content {
  background: var(--import-bg-app);
}

.pdv-import-shell > .panel,
.pdv-import-shell .panel {
  border: 1px solid var(--import-border-soft);
  background:
    radial-gradient(circle at top left, rgba(45, 212, 191, 0.06), transparent 34%),
    linear-gradient(145deg, var(--import-bg-panel), var(--import-bg-shell));
  color: var(--import-text-main);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.24);
}

.pdv-import-shell .panel-header {
  gap: 14px;
  border-bottom: 1px solid var(--import-divider);
  padding-bottom: 12px;
}

.pdv-import-shell .panel-header h3 {
  color: var(--import-text-main);
  font-size: 1.08rem;
  letter-spacing: -0.02em;
}

.crm-client-import-shell {
  display: grid;
  gap: 18px;
  --import-bg-app: #0B0F14;
  --import-bg-shell: #0F141B;
  --import-bg-panel: #131A23;
  --import-bg-card: #171F2A;
  --import-border-soft: rgba(255, 255, 255, 0.07);
  --import-divider: rgba(255, 255, 255, 0.06);
  --import-text-main: #F4F7FA;
  --import-text-muted: #AAB4C0;
  --import-text-subtle: #7F8A99;
  --import-accent: #2DD4BF;
  --import-accent-soft: rgba(45, 212, 191, 0.12);
  color: var(--import-text-main);
}

.crm-client-import-shell .panel,
.crm-client-import-hero {
  border: 1px solid var(--import-border-soft);
  background:
    radial-gradient(circle at 100% 0%, rgba(212, 175, 55, 0.12), transparent 28%),
    radial-gradient(circle at 0% 0%, rgba(45, 212, 191, 0.08), transparent 32%),
    linear-gradient(145deg, var(--import-bg-panel), var(--import-bg-shell));
  color: var(--import-text-main);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.24);
}

.crm-client-import-hero .panel-header {
  border-bottom: 1px solid var(--import-divider);
  padding-bottom: 12px;
}

.crm-client-import-hero .panel-header p {
  max-width: 760px;
  color: var(--import-text-muted);
  line-height: 1.5;
}

.crm-client-import-form {
  display: grid;
  gap: 14px;
  margin-top: 14px;
}

.crm-client-import-kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 12px;
  margin-top: 16px;
}

.crm-client-import-stat strong {
  color: var(--import-text-main);
}

.crm-client-import-toolbar {
  margin: 0 0 12px;
}

.crm-client-import-table-wrap,
.crm-client-import-files {
  max-height: 520px;
}

.crm-client-import-table td small {
  display: block;
  margin-top: 4px;
  color: var(--import-text-subtle);
}

.crm-client-import-files {
  max-height: 420px;
}

.pdv-import-form {
  display: grid;
  grid-template-columns: minmax(260px, 1.35fr) minmax(220px, 0.9fr);
  gap: 16px;
  align-items: end;
}

.pdv-import-form label {
  display: grid;
  gap: 7px;
  color: var(--import-text-muted);
  font-size: 0.76rem;
  font-weight: 800;
}

.pdv-import-form input,
.pdv-import-form select {
  min-height: 46px;
  border: 1px solid var(--import-border-soft);
  border-radius: 14px;
  background: #0B0F14;
  color: var(--import-text-main);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.pdv-import-form input:focus,
.pdv-import-form select:focus {
  border-color: var(--import-accent-border);
  outline: none;
  box-shadow: 0 0 0 3px var(--import-accent-soft);
}

.pdv-import-form input[type="file"]::file-selector-button {
  margin-right: 10px;
  border: 0;
  border-radius: 10px;
  background: var(--import-bg-card);
  color: var(--import-text-main);
  font-weight: 800;
}

.pdv-import-file-picker {
  position: relative;
}

.pdv-import-file-picker input[type="file"] {
  position: absolute;
  inset: 22px 0 0;
  width: 100%;
  height: calc(100% - 22px);
  opacity: 0;
  cursor: pointer;
}

.pdv-import-file-control {
  display: grid;
  gap: 4px;
  min-height: 54px;
  padding: 12px 14px;
  border: 1px dashed rgba(45, 212, 191, 0.3);
  border-radius: 14px;
  background:
    linear-gradient(135deg, rgba(45, 212, 191, 0.08), rgba(20, 184, 166, 0.025)),
    #0B0F14;
  color: var(--import-text-main);
  cursor: pointer;
}

.pdv-import-file-control strong {
  color: var(--import-text-main);
  font-size: 0.92rem;
}

.pdv-import-file-control small {
  color: var(--import-text-subtle);
  font-size: 0.74rem;
  line-height: 1.35;
}

.pdv-import-file-selection {
  display: grid;
  gap: 3px;
  min-height: 46px;
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 12px;
  background: rgba(23, 31, 42, 0.72);
  color: var(--import-text-muted);
}

.pdv-import-file-selection strong {
  color: var(--import-text-muted);
  font-size: 0.84rem;
}

.pdv-import-file-selection small {
  color: var(--import-text-subtle);
  font-size: 0.72rem;
  line-height: 1.3;
}

.pdv-import-file-selection.has-files {
  border-color: rgba(45, 212, 191, 0.35);
  background: rgba(45, 212, 191, 0.1);
}

.pdv-import-file-selection.has-files strong {
  color: var(--import-accent);
}

.pdv-import-file-picker:hover .pdv-import-file-control {
  border-color: var(--import-accent-border);
  background:
    linear-gradient(135deg, rgba(45, 212, 191, 0.14), rgba(20, 184, 166, 0.04)),
    #0B0F14;
}

.pdv-import-form .action-row {
  grid-column: 1 / -1;
}

.pdv-import-shell .primary-button,
.pdv-import-shell .secondary-button {
  min-height: 42px;
  border-radius: 12px;
  font-weight: 850;
}

.pdv-import-shell .primary-button {
  border: 1px solid rgba(45, 212, 191, 0.22);
  background: linear-gradient(135deg, var(--import-accent-strong), var(--import-accent));
  color: #06201D;
}

.pdv-import-shell .secondary-button {
  border: 1px solid var(--import-border-strong);
  background: var(--import-bg-card);
  color: var(--import-text-main);
}

.pdv-import-shell .secondary-button:hover {
  border-color: var(--import-accent-border);
  background: linear-gradient(135deg, var(--import-accent-soft), rgba(23, 31, 42, 0.94));
}

.pdv-import-shell .primary-button:disabled,
.pdv-import-shell .secondary-button:disabled {
  opacity: 0.52;
}

.pdv-import-meta {
  margin-top: 12px;
  color: var(--import-text-muted);
  font-size: 0.92rem;
}

.pdv-import-progress-card {
  margin-top: 14px;
  padding: 14px 16px;
  border: 1px solid rgba(45, 212, 191, 0.28);
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(45, 212, 191, 0.12), rgba(20, 184, 166, 0.04)),
    rgba(15, 20, 27, 0.94);
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.2);
}

.pdv-import-progress-card.is-complete {
  border-color: rgba(52, 211, 153, 0.26);
  background:
    linear-gradient(135deg, rgba(52, 211, 153, 0.1), rgba(45, 212, 191, 0.04)),
    rgba(15, 20, 27, 0.94);
}

.pdv-import-progress-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.pdv-import-progress-head strong {
  display: block;
  color: var(--text);
  font-size: 0.95rem;
}

.pdv-import-progress-head span {
  display: block;
  margin-top: 3px;
  color: var(--text-soft);
  font-size: 0.8rem;
}

.pdv-import-progress-head b {
  color: #2dd4bf;
  font-size: 1.35rem;
  line-height: 1;
}

.pdv-import-progress-track {
  height: 8px;
  margin-top: 12px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
}

.pdv-import-progress-track span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #14b8a6, #2dd4bf);
  box-shadow: 0 0 18px rgba(45, 212, 191, 0.35);
  transition: width 240ms ease;
}

.pdv-import-summary-grid {
  margin-top: 18px;
}

.pdv-uploaded-files-panel {
  border-color: rgba(45, 212, 191, 0.18);
}

.pdv-uploaded-files-panel .panel-header {
  align-items: flex-start;
}

.pdv-uploaded-files-panel .panel-header p {
  margin: 4px 0 0;
  color: var(--text-soft);
  font-size: 0.82rem;
}

.pdv-uploaded-files-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(120px, 1fr));
  gap: 10px;
  margin: 14px 0;
}

.pdv-uploaded-files-stats article {
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 14px;
  background: rgba(15, 20, 27, 0.76);
}

.pdv-uploaded-files-stats span,
.pdv-uploaded-file-row span,
.pdv-uploaded-files-table small {
  color: var(--text-soft);
  font-size: 0.74rem;
}

.pdv-uploaded-files-stats strong {
  display: block;
  margin-top: 3px;
  color: #2DD4BF;
  font-size: 1.2rem;
}

.pdv-uploaded-files-history {
  margin-top: 12px;
}

.pdv-uploaded-files-history h4 {
  margin: 0 0 8px;
  color: var(--text);
  font-size: 0.9rem;
}

.pdv-uploaded-files-list {
  display: grid;
  gap: 8px;
  max-height: 250px;
  overflow: auto;
  padding-right: 4px;
}

.pdv-uploaded-file-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 14px;
  background: rgba(23, 31, 42, 0.72);
}

.pdv-uploaded-file-row strong {
  display: block;
  overflow: hidden;
  color: var(--text);
  font-size: 0.82rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pdv-uploaded-file-meta {
  display: grid;
  justify-items: end;
  gap: 4px;
}

.pdv-uploaded-file-meta small {
  color: var(--text-soft);
  font-size: 0.72rem;
}

.pdv-uploaded-file-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 72px;
  padding: 5px 8px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 999px;
  background: rgba(23, 31, 42, 0.9);
  color: var(--text-soft);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.pdv-uploaded-file-badge.accent {
  border-color: rgba(45, 212, 191, 0.35);
  background: rgba(45, 212, 191, 0.12);
  color: #2DD4BF;
}

.pdv-uploaded-file-badge.success {
  border-color: rgba(52, 211, 153, 0.28);
  background: rgba(52, 211, 153, 0.12);
  color: #34D399;
}

.pdv-uploaded-file-badge.danger {
  border-color: rgba(239, 68, 68, 0.3);
  background: rgba(239, 68, 68, 0.12);
  color: #EF4444;
}

.pdv-uploaded-files-table-wrap {
  margin-top: 14px;
  max-height: 280px;
  overflow: auto;
}

.pdv-uploaded-files-table {
  width: 100%;
  border-collapse: collapse;
}

.pdv-uploaded-files-table th,
.pdv-uploaded-files-table td {
  padding: 10px 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  color: var(--text);
  font-size: 0.8rem;
  vertical-align: top;
}

.pdv-uploaded-files-table th {
  color: var(--text-soft);
  font-size: 0.7rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.pdv-uploaded-files-table strong {
  display: block;
  max-width: 520px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body:is([data-route-section="pdv-imports"], [data-section="pdv-imports"]) .pdv-import-shell,
body:is([data-route-section="pdv-imports"], [data-section="pdv-imports"]) .pdv-import-shell * {
  scrollbar-width: thin;
  scrollbar-color: rgba(170,180,192,0.16) transparent;
}

body:is([data-route-section="pdv-imports"], [data-section="pdv-imports"]) .pdv-import-shell ::-webkit-scrollbar {
  width: 5px;
  height: 5px;
}

body:is([data-route-section="pdv-imports"], [data-section="pdv-imports"]) .pdv-import-shell ::-webkit-scrollbar-track,
body:is([data-route-section="pdv-imports"], [data-section="pdv-imports"]) .pdv-import-shell ::-webkit-scrollbar-corner {
  background: transparent;
}

body:is([data-route-section="pdv-imports"], [data-section="pdv-imports"]) .pdv-import-shell ::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(170,180,192,0.16);
}

body:is([data-route-section="pdv-imports"], [data-section="pdv-imports"]) .pdv-import-shell ::-webkit-scrollbar-thumb:hover {
  background: rgba(45,212,191,0.28);
}

.pdv-import-store-banner {
  position: sticky;
  top: 12px;
  z-index: 3;
  margin-top: 14px;
  padding: 14px 16px;
  border: 1px solid rgba(45, 212, 191, 0.35);
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(45, 212, 191, 0.16), rgba(20, 184, 166, 0.06)),
    rgba(19, 26, 35, 0.94);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.22);
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
}

.pdv-import-store-banner span,
.pdv-import-section-title span,
.pdv-import-preview-toolbar span {
  color: var(--text-soft);
  font-size: 0.78rem;
}

.pdv-import-store-banner strong {
  display: block;
  margin-top: 3px;
  color: #2dd4bf;
  font-size: 1.18rem;
  letter-spacing: 0.03em;
}

.pdv-import-store-banner small {
  max-width: 520px;
  color: var(--text-soft);
  text-align: right;
}

.pdv-import-section-title,
.pdv-import-preview-toolbar {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
  margin-top: 18px;
}

.pdv-import-section-title strong,
.pdv-import-preview-toolbar strong {
  display: block;
  color: var(--text);
  font-size: 0.95rem;
}

.pdv-import-file-table-wrap {
  margin-top: 10px;
  max-height: 260px;
  overflow: auto;
}

.pdv-import-file-table,
.pdv-import-preview-table,
.pdv-uploaded-files-table {
  width: 100%;
  border-collapse: collapse;
  background: rgba(11, 15, 20, 0.5);
  border-radius: 14px;
  overflow: hidden;
}

.pdv-import-file-table th,
.pdv-import-file-table td,
.pdv-import-preview-table th,
.pdv-import-preview-table td,
.pdv-uploaded-files-table th,
.pdv-uploaded-files-table td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--import-divider, rgba(255, 255, 255, 0.06));
  vertical-align: top;
}

.pdv-import-file-table th,
.pdv-import-preview-table th,
.pdv-uploaded-files-table th {
  background: rgba(15, 20, 27, 0.9);
  color: var(--import-text-muted, var(--text-soft));
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.pdv-import-file-table td,
.pdv-import-preview-table td,
.pdv-uploaded-files-table td {
  color: var(--import-text-main, var(--text));
  font-size: 0.82rem;
}

.pdv-import-code-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  min-width: 150px;
  max-width: 240px;
}

.pdv-import-code-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 7px;
  border: 1px solid rgba(45, 212, 191, 0.28);
  border-radius: 999px;
  background: rgba(45, 212, 191, 0.1);
  color: var(--text);
  font-size: 0.72rem;
  line-height: 1;
  white-space: nowrap;
}

.pdv-import-code-chip strong {
  color: #2DD4BF;
  font-size: 0.64rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.pdv-import-preview-toolbar {
  margin-top: 0;
  margin-bottom: 12px;
}

.pdv-import-pagination {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}

.pdv-import-pagination label {
  display: flex;
  gap: 8px;
  align-items: center;
  color: var(--text-soft);
  font-size: 0.78rem;
}

.pdv-import-pagination select {
  min-height: 34px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: #0f141b;
  color: var(--text);
  padding: 0 10px;
}

.pdv-import-brand-card {
  grid-column: span 2;
}

.pdv-import-callout {
  margin-top: 14px;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid rgba(184, 145, 68, 0.24);
  background: rgba(255, 248, 232, 0.04);
  display: grid;
  gap: 6px;
}

.pdv-import-callout strong {
  color: var(--text);
}

.pdv-import-callout span {
  color: var(--text-soft);
}

.pdv-import-callout.warning {
  border-color: rgba(198, 157, 84, 0.35);
  background: rgba(198, 157, 84, 0.12);
}

.pdv-import-callout.success {
  border-color: rgba(69, 159, 104, 0.36);
  background: rgba(38, 99, 68, 0.16);
}

.pdv-import-callout.danger {
  border-color: rgba(204, 96, 96, 0.4);
  background: rgba(125, 39, 39, 0.16);
}

.pdv-import-preview-table td strong,
.pdv-import-preview-table td small {
  display: block;
}

.pdv-import-preview-table .pdv-import-code-chip strong {
  display: inline;
}

.pdv-import-preview-table td small {
  margin-top: 4px;
  color: var(--text-soft);
}

@media (max-width: 980px) {
  .pdv-import-form {
    grid-template-columns: 1fr;
  }

  .pdv-import-brand-card {
    grid-column: auto;
  }

  .pdv-import-store-banner,
  .pdv-import-section-title,
  .pdv-import-preview-toolbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .pdv-import-store-banner small {
    text-align: left;
  }

  .pdv-import-pagination {
    justify-content: flex-start;
  }
}

/* ============================================================
   STAGE 8.15 - P6 HERO COMPACTO EM TELAS OPERACIONAIS DO PDV
   O hero grande (padding 32px + h3 + 3 stat-cards) empurra
   a busca e o carrinho para baixo da dobra. Em venda, caixa,
   estoque, produtos, clientes, reservas e trocas o operador
   precisa do conteudo operacional acima da dobra (1366x768).
   Sidebar continua sendo a navegacao principal; a barra
   interna do PDV fica como sub-navegacao contextual compacta.
   ============================================================ */
body[data-route-section="pdv-sale"] .pdv-hero-card,
body[data-route-section="pdv-cash-register"] .pdv-hero-card,
body[data-route-section="pdv-stock"] .pdv-hero-card,
body[data-route-section="pdv-products"] .pdv-hero-card,
body[data-route-section="pdv-customers"] .pdv-hero-card,
body[data-route-section="pdv-imports"] .pdv-hero-card,
body[data-route-section="pdv-reservations"] .pdv-hero-card,
body[data-route-section="pdv-exchanges"] .pdv-hero-card {
  padding: 12px 22px;
  gap: 8px;
  align-items: center;
  flex-wrap: nowrap;
}

body[data-route-section="pdv-sale"] .pdv-hero-card h3,
body[data-route-section="pdv-cash-register"] .pdv-hero-card h3,
body[data-route-section="pdv-stock"] .pdv-hero-card h3,
body[data-route-section="pdv-products"] .pdv-hero-card h3,
body[data-route-section="pdv-customers"] .pdv-hero-card h3,
body[data-route-section="pdv-imports"] .pdv-hero-card h3,
body[data-route-section="pdv-reservations"] .pdv-hero-card h3,
body[data-route-section="pdv-exchanges"] .pdv-hero-card h3 {
  margin: 2px 0 0;
  font-size: 1.06rem;
  line-height: 1.2;
}

/* Subtitulo e os 3 stat-cards (Loja/Perfil/WhatsApp) sao
   contexto secundario - ocultos no fluxo rapido de loja. */
body[data-route-section="pdv-sale"] .pdv-hero-card .helper-text,
body[data-route-section="pdv-cash-register"] .pdv-hero-card .helper-text,
body[data-route-section="pdv-stock"] .pdv-hero-card .helper-text,
body[data-route-section="pdv-products"] .pdv-hero-card .helper-text,
body[data-route-section="pdv-customers"] .pdv-hero-card .helper-text,
body[data-route-section="pdv-imports"] .pdv-hero-card .helper-text,
body[data-route-section="pdv-reservations"] .pdv-hero-card .helper-text,
body[data-route-section="pdv-exchanges"] .pdv-hero-card .helper-text,
body[data-route-section="pdv-sale"] .pdv-hero-card .pdv-route-summary,
body[data-route-section="pdv-cash-register"] .pdv-hero-card .pdv-route-summary,
body[data-route-section="pdv-stock"] .pdv-hero-card .pdv-route-summary,
body[data-route-section="pdv-products"] .pdv-hero-card .pdv-route-summary,
body[data-route-section="pdv-customers"] .pdv-hero-card .pdv-route-summary,
body[data-route-section="pdv-imports"] .pdv-hero-card .pdv-route-summary,
body[data-route-section="pdv-reservations"] .pdv-hero-card .pdv-route-summary,
body[data-route-section="pdv-exchanges"] .pdv-hero-card .pdv-route-summary {
  display: none;
}

/* A barra interna do PDV vira sub-navegacao discreta:
   sidebar = navegacao principal, tabs = contexto do PDV. */
body[data-route-section^="pdv-"] .pdv-route-shell-compact {
  padding: 6px 14px;
  background: rgba(255, 255, 255, 0.4);
}

body[data-route-section^="pdv-"] .pdv-route-tab {
  font-size: 0.82rem;
  padding: 7px 13px;
}

/* Stage 8.15 - PDV venda acima da dobra
   Prioriza busca de produto, cliente e carrinho no primeiro viewport
   sem alterar a regra operacional da venda. */
body[data-route-section="pdv-sale"] .pdv-sale-top-metrics {
  gap: 12px;
  margin-bottom: 10px;
}

body[data-route-section="pdv-sale"] .pdv-sale-top-metrics .stat-card {
  min-height: 74px;
  padding: 12px 14px;
}

body[data-route-section="pdv-sale"] .pdv-sale-top-metrics .stat-card span {
  font-size: 0.68rem;
}

body[data-route-section="pdv-sale"] .pdv-sale-top-metrics .stat-card strong {
  font-size: clamp(1.15rem, 1.35vw, 1.7rem);
}

body[data-route-section="pdv-sale"] .pdv-sale-layout {
  grid-template-columns: 320px minmax(300px, 1fr) 380px;
  gap: 20px;
}

body[data-route-section="pdv-sale"] .pdv-sale-main {
  display: contents;
}

body[data-route-section="pdv-sale"] .pdv-sale-compact-header {
  grid-column: 1 / -1;
  grid-row: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
  background: rgba(7, 10, 13, 0.6);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  margin-bottom: 8px;
}
body[data-route-section="pdv-sale"] .pdv-sale-header-left {
  display: flex;
  align-items: center;
  gap: 12px;
}
body[data-route-section="pdv-sale"] .pdv-sale-header-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

body[data-route-section="pdv-sale"] .pdv-sale-sidebar-left {
  grid-column: 1;
  grid-row: 2;
  display: flex;
  flex-direction: column;
}

body[data-route-section="pdv-sale"] .pdv-sale-main-center {
  grid-column: 2;
  grid-row: 2;
  display: flex;
  flex-direction: column;
  gap: 20px;
  min-height: 0;
}

body[data-route-section="pdv-sale"] .pdv-sale-sidebar-right {
  grid-column: 3;
  grid-row: 2;
  display: flex;
  flex-direction: column;
}

body[data-route-section="pdv-sale"] .pdv-sale-zone {
  min-height: 0;
  display: flex;
  flex-direction: column;
}
body[data-route-section="pdv-sale"] .pdv-sale-layout {
  height: calc(100vh - 80px); /* Lock height to prevent page scroll */
}
body[data-route-section="pdv-sale"] .pdv-sale-cart-list,
body[data-route-section="pdv-sale"] .pdv-sale-customer-results,
body[data-route-section="pdv-sale"] .pdv-sale-search-results {
  overflow-y: auto;
  flex: 1;
}

body[data-route-section="pdv-sale"] .pdv-sale-zone .panel-header {
  margin-bottom: 10px;
}
.mockup-summary-grid div {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.mockup-summary-grid span {
  font-size: 0.95rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.6);
}
.mockup-summary-grid strong {
  font-size: 1.05rem;
  font-weight: 600;
}
.mockup-summary-grid .total-row strong {
  font-size: 1.4rem;
  color: #fff;
}

body[data-route-section="pdv-sale"] .pdv-sale-product-zone,
body[data-route-section="pdv-sale"] .pdv-sale-customer-zone,
body[data-route-section="pdv-sale"] .pdv-sale-cart-zone,
body[data-route-section="pdv-sale"] .pdv-sale-checkout-zone {
  padding-top: 16px;
}

body[data-route-section="pdv-sale"] .pdv-sale-search-label {
  margin-bottom: 10px;
}

body[data-route-section="pdv-sale"] .pdv-sale-search-label input {
  min-height: 50px;
  padding: 12px 14px;
}

body[data-route-section="pdv-sale"] .pdv-sale-customer-results,
body[data-route-section="pdv-sale"] .pdv-sale-search-results,
body[data-route-section="pdv-sale"] .pdv-sale-cart-list {
  gap: 10px;
}

body[data-route-section="pdv-sale"] .pdv-customer-selection-state {
  color: inherit;
  display: block;
  font-size: inherit;
  font-weight: inherit;
  letter-spacing: normal;
  margin: 0;
  text-transform: none;
  width: 100%;
}

body[data-route-section="pdv-sale"] .pdv-customer-profile.compact {
  display: grid;
  gap: 0;
  overflow: hidden;
  width: 100%;
}

body[data-route-section="pdv-sale"] .pdv-customer-profile.compact .pdv-customer-profile-hero {
  align-items: center;
  display: grid;
  gap: 12px;
  grid-template-columns: 44px minmax(0, 1fr);
  min-height: 74px;
  padding: 14px;
}

body[data-route-section="pdv-sale"] .pdv-customer-profile.compact .pdv-customer-profile-avatar {
  align-items: center;
  display: inline-flex;
  flex: 0 0 auto;
  height: 44px;
  justify-content: center;
  width: 44px;
}

body[data-route-section="pdv-sale"] .pdv-customer-profile.compact .pdv-customer-profile-identity {
  display: grid;
  gap: 4px;
  min-width: 0;
}

body[data-route-section="pdv-sale"] .pdv-customer-profile.compact .pdv-customer-profile-name {
  line-height: 1.15;
  overflow-wrap: anywhere;
}

body[data-route-section="pdv-sale"] .pdv-customer-profile.compact .pdv-customer-profile-meta {
  line-height: 1.28;
}

body[data-route-section="pdv-sale"] .pdv-customer-cashback-stack {
  gap: 8px;
  padding: 12px 14px;
}

body[data-route-section="pdv-sale"] .pdv-customer-cashback-row {
  align-items: center;
  min-height: 48px;
  padding: 9px 10px;
}

body[data-route-section="pdv-sale"] .pdv-customer-cashback-row span {
  align-items: center;
  flex: 1 1 auto;
  line-height: 1.15;
  min-width: 0;
}

body[data-route-section="pdv-sale"] .pdv-customer-cashback-row span em {
  justify-content: center;
  min-height: 25px;
  padding-inline: 8px;
  text-align: center;
}

body[data-route-section="pdv-sale"] .pdv-customer-cashback-row strong {
  margin-left: auto;
  text-align: right;
}

body[data-route-section="pdv-sale"] .pdv-customer-profile.compact .pdv-customer-profile-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

body[data-route-section="pdv-sale"] .pdv-customer-profile.compact .pdv-customer-profile-stat {
  align-content: center;
  display: grid;
  gap: 5px;
  min-height: 70px;
  padding: 12px 14px;
}

body[data-route-section="pdv-sale"] .pdv-customer-profile.compact .pdv-customer-profile-stat span,
body[data-route-section="pdv-sale"] .pdv-customer-profile.compact .pdv-customer-profile-stat strong {
  line-height: 1.15;
}

body[data-route-section="pdv-sale"] .pdv-customer-profile.compact > .pdv-sale-action-chips {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 12px 14px 0;
}

body[data-route-section="pdv-sale"] .pdv-customer-profile.compact .pdv-sale-chip {
  align-items: center;
  display: inline-flex;
  min-height: 28px;
  padding-block: 5px;
}

body[data-route-section="pdv-sale"] .pdv-customer-profile.compact .pdv-sale-customer-card-actions {
  align-items: stretch;
  gap: 8px !important;
  margin-top: 12px !important;
  padding: 0 14px 14px;
}

body[data-route-section="pdv-sale"] .pdv-customer-profile.compact .pdv-sale-customer-card-actions .secondary-button {
  align-items: center;
  display: inline-flex;
  justify-content: center;
  min-height: 38px;
  width: 100%;
}

body[data-route-section="pdv-sale"] .pdv-sale-profile-nudge {
  display: grid;
  gap: 12px;
  margin-top: 12px;
  padding: 14px;
  border: 1px solid rgba(45, 212, 191, 0.18);
  border-radius: 16px;
  background:
    linear-gradient(135deg, rgba(45, 212, 191, 0.10), rgba(15, 23, 42, 0.34)),
    rgba(15, 23, 42, 0.62);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

body[data-route-section="pdv-sale"] .pdv-sale-profile-nudge-copy {
  display: grid;
  gap: 7px;
  min-width: 0;
}

body[data-route-section="pdv-sale"] .pdv-sale-profile-nudge-copy strong {
  display: block;
  color: var(--text);
  font-size: 0.94rem;
  line-height: 1.2;
}

body[data-route-section="pdv-sale"] .pdv-sale-profile-nudge-copy span,
body[data-route-section="pdv-sale"] .pdv-sale-profile-nudge-copy small {
  color: var(--text-soft);
  font-size: 0.78rem;
  line-height: 1.4;
}

body[data-route-section="pdv-sale"] .pdv-sale-profile-missing-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 2px;
}

body[data-route-section="pdv-sale"] .pdv-sale-profile-missing-chips span {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 4px 8px;
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.045);
  color: rgba(226, 232, 240, 0.82);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.03em;
}

body[data-route-section="pdv-sale"] .pdv-sale-profile-nudge-actions {
  align-items: center;
  gap: 8px;
  margin-top: 0;
}

body[data-route-section="pdv-sale"] .pdv-sale-profile-nudge-actions .secondary-button,
body[data-route-section="pdv-sale"] .pdv-sale-profile-nudge-actions .ghost-button {
  min-height: 30px;
  padding: 7px 11px;
  border-radius: 10px;
  font-size: 0.72rem;
}

body[data-route-section="pdv-sale"] .pdv-sale-customer-results > .pdv-sale-empty-state.compact {
  margin-top: 12px;
  padding: 14px;
}

body[data-route-section="pdv-sale"] .pdv-sale-customer-results > .pdv-sale-empty-state.compact strong,
body[data-route-section="pdv-sale"] .pdv-sale-customer-results > .pdv-sale-empty-state.compact span {
  line-height: 1.35;
}

@media (max-width: 1360px) {
  body[data-route-section="pdv-sale"] .pdv-sale-main {
    grid-template-columns: 1fr;
  }
}

/* Stage 8.19 - Descontos supervisionados e TOTP no PDV
   Mantem o fluxo compacto no checkout, com feedback claro de
   politica, excecao e aprovacao sem poluir a frente de caixa. */
.pdv-sale-discount-panel,
.pdv-sale-authorization-box,
.pdv-authorizer-create-card,
.pdv-authorizer-setup-card,
.pdv-authorizer-card {
  border-radius: 18px;
  border: 1px solid rgba(184, 145, 68, 0.18);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.02)),
    rgba(8, 13, 18, 0.88);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.pdv-sale-discount-panel {
  display: grid;
  gap: 14px;
  padding: 16px;
}

.pdv-sale-discount-panel.is-simplified {
  gap: 12px;
  padding: 14px;
}

.pdv-sale-discount-panel.is-simplified .pdv-sale-discount-form {
  gap: 10px;
}

.pdv-sale-discount-panel.is-simplified .pdv-sale-discount-helper {
  padding: 10px 12px;
}

.pdv-sale-discount-auth-compact {
  display: grid;
  gap: 10px;
}

.pdv-sale-discount-auth-compact label {
  display: grid;
  gap: 7px;
  color: var(--text-soft);
  font-size: 0.86rem;
}

.pdv-sale-discount-auth-compact input,
.pdv-sale-discount-auth-compact select {
  min-height: 42px;
}

.pdv-sale-discount-auth-compact .pdv-sale-authorization-actions {
  gap: 8px;
}

.pdv-sale-discount-head strong,
.pdv-sale-authorization-copy strong,
.pdv-authorizer-setup-copy strong,
.pdv-authorizer-card-copy strong {
  display: block;
  color: var(--text);
  font-size: 0.98rem;
}

.pdv-sale-discount-head span,
.pdv-sale-authorization-copy span,
.pdv-authorizer-setup-copy span,
.pdv-authorizer-card-copy span,
.pdv-authorizer-card-copy small {
  display: block;
  color: var(--text-soft);
}

.pdv-sale-discount-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.pdv-sale-discount-grid > div {
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.03);
  padding: 12px 13px;
  display: grid;
  gap: 5px;
}

.pdv-sale-discount-grid span,
.pdv-sale-discount-helper span,
.pdv-sale-discount-helper strong,
.pdv-sale-discount-authorization-flag,
.pdv-authorization-success span,
.pdv-authorizer-setup-meta strong,
.pdv-authorizer-setup-meta span {
  color: var(--text-soft);
}

.pdv-sale-discount-grid strong,
.pdv-authorization-success strong,
.pdv-sale-discount-helper strong,
.pdv-authorizer-setup-meta strong {
  color: var(--text);
}

.pdv-sale-discount-form,
.pdv-sale-authorization-grid,
.pdv-authorizer-create-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
}

.pdv-sale-discount-form label,
.pdv-sale-authorization-grid label,
.pdv-authorizer-create-grid label,
.pdv-authorizer-setup-meta label {
  display: grid;
  gap: 7px;
  color: var(--text-soft);
  font-size: 0.9rem;
}

.pdv-sale-discount-form input,
.pdv-sale-discount-form select,
.pdv-sale-authorization-grid input,
.pdv-sale-authorization-grid select,
.pdv-authorizer-create-grid input,
.pdv-authorizer-create-grid select,
.pdv-authorizer-setup-meta input {
  min-height: 44px;
}

.pdv-sale-discount-actions,
.pdv-sale-authorization-actions,
.pdv-authorizer-create-actions,
.pdv-authorizer-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.pdv-sale-discount-helper,
.pdv-authorization-success,
.pdv-sale-discount-authorization-flag {
  border-radius: 14px;
  padding: 12px 14px;
}

.pdv-sale-discount-helper {
  display: grid;
  gap: 4px;
  border: 1px solid rgba(184, 145, 68, 0.14);
  background: rgba(255, 248, 232, 0.04);
}

.pdv-sale-discount-helper.is-ok {
  border-color: rgba(69, 159, 104, 0.28);
  background: rgba(38, 99, 68, 0.14);
}

.pdv-sale-discount-helper.is-warning,
.pdv-sale-discount-authorization-flag {
  border-color: rgba(198, 157, 84, 0.34);
  background: rgba(198, 157, 84, 0.12);
}

.pdv-sale-authorization-box {
  margin-top: 10px;
  padding: 12px;
  display: grid;
  gap: 9px;
}

.pdv-sale-authorization-reason {
  grid-column: 1 / -1;
}

.pdv-sale-authorization-box .pdv-sale-authorization-copy {
  display: grid;
  gap: 3px;
}

.pdv-sale-authorization-box .pdv-sale-authorization-copy strong {
  font-size: 0.92rem;
}

.pdv-sale-authorization-box .pdv-sale-authorization-copy span {
  font-size: 0.82rem;
}

.pdv-sale-authorization-box .pdv-sale-authorization-grid {
  gap: 8px;
}

.pdv-sale-authorization-box .pdv-sale-authorization-grid label {
  gap: 5px;
  font-size: 0.8rem;
}

.pdv-sale-authorization-box .pdv-sale-authorization-grid input,
.pdv-sale-authorization-box .pdv-sale-authorization-grid select {
  min-height: 38px;
}

.pdv-authorization-success {
  border: 1px solid rgba(69, 159, 104, 0.32);
  background: rgba(38, 99, 68, 0.15);
  display: grid;
  gap: 4px;
}

.pdv-authorization-success-compact {
  margin: 0;
  padding: 10px 12px;
  border-radius: 12px;
}

.pdv-authorizers-panel {
  margin-top: 14px;
}

.pdv-authorizers-head span {
  color: var(--text-soft);
  display: block;
  margin-top: 4px;
}

.pdv-authorizers-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 14px;
}

.pdv-authorizers-summary span,
.pdv-authorizer-instructions,
.pdv-sale-authorization-steps {
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.03);
  padding: 11px 13px;
  color: var(--text-soft);
}

.pdv-authorizers-summary strong,
.pdv-authorizer-instructions strong,
.pdv-sale-authorization-steps strong {
  color: var(--text);
}

.pdv-authorizer-instructions {
  display: grid;
  gap: 5px;
  margin-bottom: 14px;
}

.pdv-sale-authorization-steps {
  display: grid;
  gap: 6px;
}

.pdv-sale-authorization-steps.is-compact {
  border-radius: 12px;
  padding: 8px 10px;
  font-size: 0.82rem;
}

.pdv-authorizers-stack {
  display: grid;
  gap: 14px;
}

.pdv-authorizer-create-card,
.pdv-authorizer-setup-card {
  padding: 16px;
}

.pdv-authorizer-setup-body {
  margin-top: 14px;
  display: grid;
  grid-template-columns: minmax(180px, 220px) minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.pdv-authorizer-setup-body img {
  width: 100%;
  max-width: 220px;
  aspect-ratio: 1;
  object-fit: contain;
  border-radius: 16px;
  background: #fff;
  padding: 10px;
}

.pdv-authorizer-setup-meta {
  display: grid;
  gap: 10px;
}

.pdv-authorizer-setup-account {
  display: grid;
  gap: 4px;
  border-radius: 14px;
  border: 1px dashed rgba(198, 157, 84, 0.26);
  background: rgba(198, 157, 84, 0.08);
  padding: 10px 12px;
}

.pdv-authorizer-step-list {
  margin: 0;
  padding-left: 18px;
  color: var(--text-soft);
  display: grid;
  gap: 6px;
}

.pdv-authorizer-setup-note {
  color: var(--text-soft);
}

.pdv-authorizers-list {
  display: grid;
  gap: 12px;
}

.pdv-authorizer-card {
  padding: 14px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.pdv-authorizer-card-copy {
  display: grid;
  gap: 4px;
}

.pdv-authorizer-status {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 2px 10px;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.pdv-authorizer-status.is-active {
  color: #d2f3dc;
  background: rgba(38, 99, 68, 0.18);
  border-color: rgba(69, 159, 104, 0.34);
}

.pdv-authorizer-status.is-pending {
  color: #ffe3a8;
  background: rgba(198, 157, 84, 0.14);
  border-color: rgba(198, 157, 84, 0.32);
}

.pdv-authorizer-status.is-inactive {
  color: #d9dde7;
  background: rgba(128, 139, 163, 0.15);
  border-color: rgba(128, 139, 163, 0.28);
}

@media (max-width: 1100px) {
  .pdv-sale-discount-grid,
  .pdv-sale-discount-form,
  .pdv-sale-authorization-grid,
  .pdv-authorizer-create-grid,
  .pdv-authorizer-setup-body {
    grid-template-columns: 1fr;
  }

  .pdv-authorizer-card {
    flex-direction: column;
    align-items: stretch;
  }
}
/* Pedidos de venda / PDV */
.pdv-orders-shell {
  display: grid;
  gap: 18px;
}

.pdv-orders-filters {
  display: grid;
  grid-template-columns: minmax(260px, 1.5fr) repeat(4, minmax(140px, 1fr)) auto;
  gap: 12px;
  align-items: end;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 24px;
  background: linear-gradient(145deg, rgba(18, 28, 27, 0.94), rgba(8, 13, 14, 0.94));
}

.pdv-orders-filters label,
.pdv-orders-filters .pdv-orders-filter-actions {
  min-width: 0;
}

.pdv-orders-filters label {
  display: grid;
  gap: 7px;
  color: var(--muted-text);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.pdv-orders-filters input,
.pdv-orders-filters select {
  width: 100%;
  min-height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  background: rgba(2, 7, 8, 0.7);
  color: var(--text-color);
  padding: 0 12px;
}

.pdv-orders-search {
  grid-column: span 2;
}

.pdv-orders-filter-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.pdv-orders-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding-bottom: 4px;
}

.pdv-orders-tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-color);
  padding: 0 14px;
  white-space: nowrap;
  cursor: pointer;
}

.pdv-orders-tab strong {
  display: inline-grid;
  min-width: 28px;
  min-height: 24px;
  place-items: center;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: #d8c16e;
}

.pdv-orders-tab.active {
  border-color: rgba(18, 181, 146, 0.55);
  background: rgba(18, 181, 146, 0.16);
}

.pdv-orders-summary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}

.pdv-orders-summary-grid .stat-card strong {
  white-space: normal;
  overflow: visible;
  text-overflow: clip;
  font-size: clamp(1.25rem, 2vw, 1.85rem);
  line-height: 1.12;
}

.pdv-orders-panel {
  overflow: hidden;
}

.pdv-orders-export-strip {
  display: flex;
  justify-content: flex-end;
  padding: 0 0 12px;
}

.pdv-orders-bulk-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 12px;
  padding: 14px;
  border: 1px solid rgba(18, 181, 146, 0.28);
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(18, 181, 146, 0.16), rgba(216, 171, 75, 0.08)),
    rgba(4, 12, 13, 0.72);
}

.pdv-orders-bulk-toolbar > div:first-child {
  display: grid;
  gap: 4px;
}

.pdv-orders-bulk-toolbar span {
  color: var(--muted-text);
  font-size: 0.84rem;
}

.pdv-orders-bulk-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.pdv-orders-table-wrap {
  overflow-x: auto;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.pdv-orders-table {
  width: 100%;
  min-width: 1120px;
  border-collapse: collapse;
}

.pdv-orders-table th,
.pdv-orders-table td {
  padding: 14px 12px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.pdv-orders-table th {
  color: var(--muted-text);
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  background: rgba(2, 7, 8, 0.52);
}

.pdv-orders-select-col {
  width: 44px;
  text-align: center;
}

.pdv-orders-checkbox {
  display: inline-grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.045);
  cursor: pointer;
}

.pdv-orders-checkbox input {
  width: 18px;
  height: 18px;
  accent-color: #12b592;
}

.pdv-order-row {
  position: relative;
}

.pdv-order-row::before {
  content: "";
  display: block;
  position: absolute;
  inset: 8px auto 8px 0;
  width: 4px;
  border-radius: 999px;
  opacity: 0.85;
}

.pdv-order-row.is-danger::before {
  background: #ff8b62;
}

.pdv-order-row.is-success::before {
  background: #1ed38c;
}

.pdv-order-row.is-neutral::before {
  background: rgba(255, 255, 255, 0.22);
}

.pdv-order-row.has-payment-link {
  background: linear-gradient(90deg, rgba(216, 171, 75, 0.07), transparent 46%);
}

.pdv-order-row.is-selected {
  background:
    linear-gradient(90deg, rgba(18, 181, 146, 0.16), rgba(18, 181, 146, 0.04) 45%, transparent),
    rgba(255, 255, 255, 0.035);
}

.pdv-orders-main-cell,
.pdv-orders-status {
  display: grid;
  gap: 5px;
}

.pdv-orders-main-cell span,
.pdv-orders-status small {
  color: var(--muted-text);
  font-size: 0.82rem;
}

.pdv-status-badge {
  display: inline-flex;
  width: fit-content;
  border-radius: 999px;
  padding: 5px 10px;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.04em;
}

.pdv-status-badge.is-success {
  background: rgba(30, 211, 140, 0.16);
  color: #88f5c1;
}

.pdv-status-badge.is-warning {
  background: rgba(216, 171, 75, 0.16);
  color: #ffd47a;
}

.pdv-status-badge.is-danger {
  background: rgba(255, 91, 91, 0.15);
  color: #ff9b9b;
}

.pdv-status-badge.is-neutral {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-color);
}

.pdv-release-badge,
.pdv-order-mini-badge {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.04em;
}

.pdv-release-badge {
  padding: 6px 10px;
}

.pdv-release-badge.is-danger {
  border: 1px solid rgba(255, 139, 98, 0.42);
  background: rgba(255, 139, 98, 0.15);
  color: #ffd1c2;
}

.pdv-release-badge.is-success {
  border: 1px solid rgba(30, 211, 140, 0.44);
  background: rgba(30, 211, 140, 0.15);
  color: #9af7c9;
}

.pdv-release-badge.is-neutral {
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.06);
  color: var(--muted-text);
}

.pdv-orders-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 4px;
}

.pdv-order-mini-badge {
  padding: 4px 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.06);
  color: var(--muted-text);
}

.pdv-order-mini-badge.is-warning {
  border-color: rgba(216, 171, 75, 0.38);
  background: rgba(216, 171, 75, 0.14);
  color: #ffd47a;
}

.pdv-order-mini-badge.is-cashback {
  border-color: rgba(18, 181, 146, 0.34);
  background: rgba(18, 181, 146, 0.13);
  color: #91f2d5;
}

.pdv-order-mini-badge.is-discount {
  border-color: rgba(255, 198, 87, 0.34);
  background: rgba(255, 198, 87, 0.13);
  color: #ffe0a0;
}

.pdv-order-mini-badge.is-authorization {
  border-color: rgba(132, 178, 255, 0.34);
  background: rgba(132, 178, 255, 0.13);
  color: #bfd4ff;
}

.pdv-orders-actions,
.pdv-orders-drawer-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.pdv-orders-actions {
  align-items: flex-start;
}

.pdv-orders-primary-action {
  box-shadow: 0 10px 26px rgba(18, 181, 146, 0.18);
}

.pdv-orders-pagination {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding-top: 14px;
  color: var(--muted-text);
}

.pdv-orders-drawer {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: grid;
  justify-items: end;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(7px);
}

.pdv-orders-drawer-card {
  width: min(760px, calc(100vw - 24px));
  height: 100%;
  overflow-y: auto;
  display: grid;
  align-content: start;
  gap: 16px;
  padding: 24px;
  border-left: 1px solid rgba(255, 255, 255, 0.1);
  background: linear-gradient(160deg, rgba(17, 25, 26, 0.98), rgba(5, 10, 11, 0.99));
  box-shadow: -24px 0 70px rgba(0, 0, 0, 0.45);
}

.pdv-orders-drawer-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.pdv-orders-operational-summary {
  display: grid;
  gap: 14px;
  padding: 16px;
  border: 1px solid rgba(18, 181, 146, 0.22);
  border-radius: 22px;
  background:
    radial-gradient(circle at top right, rgba(18, 181, 146, 0.15), transparent 36%),
    rgba(255, 255, 255, 0.045);
}

.pdv-orders-operational-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.pdv-orders-operational-head h4,
.pdv-orders-detail-section h4 {
  margin: 0;
}

.pdv-orders-detail-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.pdv-orders-detail-grid article,
.pdv-orders-payment-link-panel,
.pdv-orders-detail-section {
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.04);
  padding: 14px;
}

.pdv-orders-detail-grid article {
  display: grid;
  gap: 6px;
}

.pdv-orders-detail-grid span,
.pdv-orders-detail-grid small {
  color: var(--muted-text);
}

.pdv-orders-payment-link-panel,
.pdv-orders-detail-section {
  display: grid;
  gap: 12px;
}

.pdv-orders-detail-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(120px, 0.6fr) auto;
  gap: 12px;
  align-items: center;
  padding: 10px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.pdv-orders-detail-row:first-of-type {
  border-top: 0;
}

.pdv-orders-detail-row span {
  color: var(--muted-text);
}

.pdv-orders-detail-row em {
  font-style: normal;
  font-weight: 900;
}

/* Pedidos de venda - paleta dark premium grafite + teal (somente cores) */
body[data-route-section="pdv-sales-orders"] {
  --orders-bg-app: #0B0F14;
  --orders-bg-shell: #0F141B;
  --orders-bg-panel: #131A23;
  --orders-bg-card: #171F2A;
  --orders-border-soft: rgba(255, 255, 255, 0.07);
  --orders-border-strong: rgba(255, 255, 255, 0.12);
  --orders-divider: rgba(255, 255, 255, 0.06);
  --orders-text-main: #F4F7FA;
  --orders-text-muted: #AAB4C0;
  --orders-text-subtle: #7F8A99;
  --orders-accent: #2DD4BF;
  --orders-accent-strong: #14B8A6;
  --orders-accent-soft: rgba(45, 212, 191, 0.12);
  --orders-accent-border: rgba(45, 212, 191, 0.35);
  --orders-success: #34D399;
  --orders-success-soft: rgba(52, 211, 153, 0.12);
  --orders-success-border: rgba(52, 211, 153, 0.28);
  --orders-warning: #F59E0B;
  --orders-warning-soft: rgba(245, 158, 11, 0.12);
  --orders-warning-border: rgba(245, 158, 11, 0.35);
  --orders-danger: #EF4444;
  --orders-danger-soft: rgba(239, 68, 68, 0.12);
  --orders-danger-border: rgba(239, 68, 68, 0.3);
  background: var(--orders-bg-app);
  color: var(--orders-text-main);
}

body[data-route-section="pdv-sales-orders"] .content {
  background: var(--orders-bg-app);
}

body[data-route-section="pdv-sales-orders"] .pdv-hero-card,
body[data-route-section="pdv-sales-orders"] .pdv-route-shell-compact,
body[data-route-section="pdv-sales-orders"] .pdv-orders-filters,
body[data-route-section="pdv-sales-orders"] .pdv-orders-panel,
body[data-route-section="pdv-sales-orders"] .pdv-orders-drawer-card {
  background:
    radial-gradient(circle at top left, rgba(45, 212, 191, 0.035), transparent 32%),
    linear-gradient(145deg, var(--orders-bg-shell), var(--orders-bg-panel));
  border-color: var(--orders-border-soft);
  box-shadow: 0 22px 50px rgba(0, 0, 0, 0.28);
}

body[data-route-section="pdv-sales-orders"] .pdv-hero-card h3,
body[data-route-section="pdv-sales-orders"] .pdv-orders-panel h3,
body[data-route-section="pdv-sales-orders"] .pdv-orders-drawer-head h3,
body[data-route-section="pdv-sales-orders"] .pdv-orders-operational-head h4,
body[data-route-section="pdv-sales-orders"] .pdv-orders-detail-section h4,
body[data-route-section="pdv-sales-orders"] .pdv-orders-main-cell strong,
body[data-route-section="pdv-sales-orders"] .pdv-orders-table td strong,
body[data-route-section="pdv-sales-orders"] .pdv-orders-detail-row em {
  color: var(--orders-text-main);
}

body[data-route-section="pdv-sales-orders"] .pdv-hero-card .eyebrow {
  color: var(--orders-accent);
}

body[data-route-section="pdv-sales-orders"] .pdv-hero-card .helper-text,
body[data-route-section="pdv-sales-orders"] .pdv-hero-card .stat-card span,
body[data-route-section="pdv-sales-orders"] .pdv-orders-filters label,
body[data-route-section="pdv-sales-orders"] .pdv-orders-main-cell span,
body[data-route-section="pdv-sales-orders"] .pdv-orders-status small,
body[data-route-section="pdv-sales-orders"] .pdv-orders-table th,
body[data-route-section="pdv-sales-orders"] .pdv-orders-detail-grid span,
body[data-route-section="pdv-sales-orders"] .pdv-orders-detail-grid small,
body[data-route-section="pdv-sales-orders"] .pdv-orders-detail-row span,
body[data-route-section="pdv-sales-orders"] .pdv-orders-pagination,
body[data-route-section="pdv-sales-orders"] .pdv-orders-bulk-toolbar span {
  color: var(--orders-text-muted);
}

body[data-route-section="pdv-sales-orders"] .pdv-route-tab,
body[data-route-section="pdv-sales-orders"] .pdv-orders-tab,
body[data-route-section="pdv-sales-orders"] .pdv-orders-checkbox,
body[data-route-section="pdv-sales-orders"] .pdv-orders-detail-grid article,
body[data-route-section="pdv-sales-orders"] .pdv-orders-payment-link-panel,
body[data-route-section="pdv-sales-orders"] .pdv-orders-detail-section,
body[data-route-section="pdv-sales-orders"] .pdv-orders-summary-grid .stat-card,
body[data-route-section="pdv-sales-orders"] .pdv-hero-card .stat-card {
  background: var(--orders-bg-card);
  border-color: var(--orders-border-soft);
  color: var(--orders-text-muted);
}

body[data-route-section="pdv-sales-orders"] .pdv-route-tab:hover,
body[data-route-section="pdv-sales-orders"] .pdv-route-tab.active,
body[data-route-section="pdv-sales-orders"] .pdv-orders-tab:hover,
body[data-route-section="pdv-sales-orders"] .pdv-orders-tab.active {
  background: var(--orders-accent-soft);
  border-color: var(--orders-accent-border);
  color: var(--orders-accent);
  box-shadow: 0 10px 26px rgba(20, 184, 166, 0.12);
}

body[data-route-section="pdv-sales-orders"] .pdv-orders-tab strong {
  background: rgba(255, 255, 255, 0.06);
  color: var(--orders-text-main);
}

body[data-route-section="pdv-sales-orders"] .pdv-orders-tab.active strong {
  background: var(--orders-accent-soft);
  color: var(--orders-accent);
}

body[data-route-section="pdv-sales-orders"] .pdv-orders-filters input,
body[data-route-section="pdv-sales-orders"] .pdv-orders-filters select {
  background: var(--orders-bg-shell);
  border-color: var(--orders-border-soft);
  color: var(--orders-text-main);
}

body[data-route-section="pdv-sales-orders"] .pdv-orders-filters input::placeholder {
  color: var(--orders-text-subtle);
}

body[data-route-section="pdv-sales-orders"] .pdv-orders-filters input:focus,
body[data-route-section="pdv-sales-orders"] .pdv-orders-filters select:focus {
  border-color: var(--orders-accent-border);
  box-shadow: 0 0 0 3px var(--orders-accent-soft);
  outline: none;
}

body[data-route-section="pdv-sales-orders"] .primary-button {
  background: linear-gradient(135deg, var(--orders-accent-strong), var(--orders-accent));
  border-color: rgba(45, 212, 191, 0.42);
  color: #06211F;
  box-shadow: 0 14px 32px rgba(20, 184, 166, 0.18);
}

body[data-route-section="pdv-sales-orders"] .secondary-button,
body[data-route-section="pdv-sales-orders"] .ghost-button {
  background: var(--orders-bg-card);
  border-color: var(--orders-border-soft);
  color: var(--orders-text-main);
}

body[data-route-section="pdv-sales-orders"] .secondary-button:hover:not(:disabled),
body[data-route-section="pdv-sales-orders"] .ghost-button:hover:not(:disabled) {
  background: var(--orders-bg-panel);
  border-color: var(--orders-border-strong);
}

body[data-route-section="pdv-sales-orders"] .secondary-button:disabled,
body[data-route-section="pdv-sales-orders"] .ghost-button:disabled {
  background: rgba(255, 255, 255, 0.035);
  border-color: var(--orders-divider);
  color: var(--orders-text-subtle);
}

body[data-route-section="pdv-sales-orders"] .pdv-orders-bulk-toolbar {
  background:
    linear-gradient(135deg, var(--orders-accent-soft), rgba(245, 158, 11, 0.035)),
    var(--orders-bg-panel);
  border-color: var(--orders-accent-border);
}

body[data-route-section="pdv-sales-orders"] .pdv-orders-table-wrap {
  background: var(--orders-bg-shell);
  border-color: var(--orders-border-soft);
}

body[data-route-section="pdv-sales-orders"] .pdv-orders-table th {
  background: var(--orders-bg-app);
  border-bottom-color: var(--orders-divider);
}

body[data-route-section="pdv-sales-orders"] .pdv-orders-table td {
  border-bottom-color: var(--orders-divider);
  color: var(--orders-text-muted);
}

body[data-route-section="pdv-sales-orders"] .pdv-order-row:hover,
body[data-route-section="pdv-sales-orders"] .pdv-orders-table tbody tr:hover {
  background: var(--orders-bg-card);
}

body[data-route-section="pdv-sales-orders"] .pdv-order-row.has-payment-link {
  background: linear-gradient(90deg, var(--orders-warning-soft), transparent 46%);
}

body[data-route-section="pdv-sales-orders"] .pdv-order-row.is-selected {
  background:
    linear-gradient(90deg, var(--orders-accent-soft), rgba(45, 212, 191, 0.04) 45%, transparent),
    var(--orders-bg-card);
}

body[data-route-section="pdv-sales-orders"] .pdv-order-row.is-danger::before {
  background: var(--orders-danger);
}

body[data-route-section="pdv-sales-orders"] .pdv-order-row.is-success::before {
  background: var(--orders-success);
}

body[data-route-section="pdv-sales-orders"] .pdv-order-row.is-neutral::before {
  background: var(--orders-border-strong);
}

body[data-route-section="pdv-sales-orders"] .pdv-status-badge.is-success,
body[data-route-section="pdv-sales-orders"] .pdv-release-badge.is-success {
  background: var(--orders-success-soft);
  border-color: var(--orders-success-border);
  color: var(--orders-success);
}

body[data-route-section="pdv-sales-orders"] .pdv-status-badge.is-warning,
body[data-route-section="pdv-sales-orders"] .pdv-order-mini-badge.is-warning {
  background: var(--orders-warning-soft);
  border-color: var(--orders-warning-border);
  color: var(--orders-warning);
}

body[data-route-section="pdv-sales-orders"] .pdv-status-badge.is-danger,
body[data-route-section="pdv-sales-orders"] .pdv-release-badge.is-danger {
  background: var(--orders-danger-soft);
  border-color: var(--orders-danger-border);
  color: var(--orders-danger);
}

body[data-route-section="pdv-sales-orders"] .pdv-status-badge.is-neutral,
body[data-route-section="pdv-sales-orders"] .pdv-release-badge.is-neutral,
body[data-route-section="pdv-sales-orders"] .pdv-order-mini-badge {
  background: rgba(255, 255, 255, 0.055);
  border-color: var(--orders-border-soft);
  color: var(--orders-text-muted);
}

body[data-route-section="pdv-sales-orders"] .pdv-order-mini-badge.is-cashback {
  background: var(--orders-success-soft);
  border-color: var(--orders-success-border);
  color: var(--orders-success);
}

body[data-route-section="pdv-sales-orders"] .pdv-order-mini-badge.is-discount {
  background: var(--orders-warning-soft);
  border-color: var(--orders-warning-border);
  color: var(--orders-warning);
}

body[data-route-section="pdv-sales-orders"] .pdv-order-mini-badge.is-authorization {
  background: var(--orders-accent-soft);
  border-color: var(--orders-accent-border);
  color: var(--orders-accent);
}

body[data-route-section="pdv-sales-orders"] .pdv-orders-checkbox input {
  accent-color: var(--orders-accent);
}

body[data-route-section="pdv-sales-orders"] .pdv-orders-drawer {
  background: rgba(0, 0, 0, 0.58);
}

body[data-route-section="pdv-sales-orders"] .pdv-orders-operational-summary {
  background:
    radial-gradient(circle at top right, rgba(45, 212, 191, 0.12), transparent 36%),
    var(--orders-bg-card);
  border-color: var(--orders-accent-border);
}

body[data-route-section="pdv-sales-orders"] .pdv-orders-detail-row {
  border-top-color: var(--orders-divider);
}

/* Redesign da Testeira de Pedidos de Venda */
body[data-route-section="pdv-sales-orders"] .pdv-hero-card {
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 24px;
  padding: 24px 32px;
  align-items: center;
  min-height: auto;
}

body[data-route-section="pdv-sales-orders"] .pdv-hero-card > div:first-child {
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 100%;
}

body[data-route-section="pdv-sales-orders"] .pdv-hero-card h3 {
  font-size: 1.6rem;
  margin-top: 4px;
  margin-bottom: 6px;
  line-height: 1.2;
}

body[data-route-section="pdv-imports"] .pdv-hero-card {
  border-color: rgba(255, 255, 255, 0.07);
  background:
    radial-gradient(circle at 0% 0%, rgba(45, 212, 191, 0.08), transparent 34%),
    linear-gradient(145deg, #131A23, #0F141B);
}

body[data-route-section="pdv-imports"] .pdv-hero-card .eyebrow {
  margin-bottom: 2px;
  color: #AAB4C0;
  font-size: 0.64rem;
  letter-spacing: 0.18em;
}

body[data-route-section="pdv-sales-orders"] .pdv-hero-card .helper-text {
  font-size: 0.95rem;
  max-width: 90%;
  margin: 0;
}

body[data-route-section="pdv-sales-orders"] .pdv-hero-card .pdv-route-summary {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  width: 100%;
}

body[data-route-section="pdv-sales-orders"] .pdv-hero-card .stat-card {
  padding: 14px 16px;
  gap: 4px;
  justify-content: center;
  align-items: flex-start;
  border-radius: var(--radius-md, 12px);
}

body[data-route-section="pdv-sales-orders"] .pdv-hero-card .stat-card span {
  font-size: 0.7rem;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-bottom: 2px;
}

body[data-route-section="pdv-sales-orders"] .pdv-hero-card .stat-card strong {
  font-size: 0.9rem;
  line-height: 1.2;
}

body[data-route-section="pdv-sales-orders"] .pdv-hero-card .pdv-active-store-select.is-compact {
  min-width: 86px;
  height: 30px;
  font-size: 0.84rem;
}

@media (max-width: 1024px) {
  body[data-route-section="pdv-sales-orders"] .pdv-hero-card {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

/* Clientes - paleta dark premium grafite + teal (somente cores) */
body[data-route-section="pdv-customers"] {
  --customers-bg-app: #0B0F14;
  --customers-bg-shell: #0F141B;
  --customers-bg-panel: #131A23;
  --customers-bg-card: #171F2A;
  --customers-border-soft: rgba(255, 255, 255, 0.07);
  --customers-border-strong: rgba(255, 255, 255, 0.12);
  --customers-divider: rgba(255, 255, 255, 0.06);
  --customers-text-main: #F4F7FA;
  --customers-text-muted: #AAB4C0;
  --customers-text-subtle: #7F8A99;
  --customers-accent: #2DD4BF;
  --customers-accent-strong: #14B8A6;
  --customers-accent-soft: rgba(45, 212, 191, 0.12);
  --customers-accent-border: rgba(45, 212, 191, 0.35);
  --customers-success: #34D399;
  --customers-success-soft: rgba(52, 211, 153, 0.12);
  --customers-success-border: rgba(52, 211, 153, 0.28);
  --customers-warning: #F59E0B;
  --customers-warning-soft: rgba(245, 158, 11, 0.12);
  --customers-warning-border: rgba(245, 158, 11, 0.35);
  --customers-danger: #EF4444;
  --customers-danger-soft: rgba(239, 68, 68, 0.12);
  --customers-danger-border: rgba(239, 68, 68, 0.3);
  background: var(--customers-bg-app);
  color: var(--customers-text-main);
}

body[data-route-section="pdv-customers"] .content {
  background: var(--customers-bg-app);
}

body[data-route-section="pdv-customers"] .pdv-hero-card,
body[data-route-section="pdv-customers"] .pdv-route-shell-compact,
body[data-route-section="pdv-customers"] .panel,
body[data-route-section="pdv-customers"] .pdv-customers-form-block,
body[data-route-section="pdv-customers"] .pdv-customers-cashback-ledger-panel,
body[data-route-section="pdv-customers"] .pdv-reactivation-preview-box {
  background:
    radial-gradient(circle at top left, rgba(45, 212, 191, 0.035), transparent 32%),
    linear-gradient(145deg, var(--customers-bg-shell), var(--customers-bg-panel));
  border-color: var(--customers-border-soft);
  box-shadow: 0 22px 50px rgba(0, 0, 0, 0.28);
}

body[data-route-section="pdv-customers"] .pdv-hero-card h3,
body[data-route-section="pdv-customers"] .panel-header h3,
body[data-route-section="pdv-customers"] .pdv-customers-name-cell strong,
body[data-route-section="pdv-customers"] .pdv-customers-contact-cell strong,
body[data-route-section="pdv-customers"] .pdv-customers-cashback-cell strong,
body[data-route-section="pdv-customers"] .pdv-customers-last-sale-cell strong,
body[data-route-section="pdv-customers"] .pdv-customers-form-head strong,
body[data-route-section="pdv-customers"] .pdv-customers-commerce-grid .mini-card strong,
body[data-route-section="pdv-customers"] .pdv-customers-import-grid .mini-card strong,
body[data-route-section="pdv-customers"] .pdv-customers-quick-card strong,
body[data-route-section="pdv-customers"] .pdv-customers-callout strong,
body[data-route-section="pdv-customers"] .pdv-reactivation-preview-box strong,
body[data-route-section="pdv-customers"] .pdv-customers-table td strong,
body[data-route-section="pdv-customers"] .pdv-customers-cashback-table td strong {
  color: var(--customers-text-main);
}

body[data-route-section="pdv-customers"] .pdv-hero-card .eyebrow {
  color: var(--customers-accent);
}

body[data-route-section="pdv-customers"] .pdv-hero-card .helper-text,
body[data-route-section="pdv-customers"] .pdv-hero-card .stat-card span,
body[data-route-section="pdv-customers"] .pdv-customers-search-label,
body[data-route-section="pdv-customers"] .pdv-customers-toolbar-filters label,
body[data-route-section="pdv-customers"] .pdv-customers-name-cell small,
body[data-route-section="pdv-customers"] .pdv-customers-contact-cell small,
body[data-route-section="pdv-customers"] .pdv-customers-profile-cell small,
body[data-route-section="pdv-customers"] .pdv-customers-cashback-cell small,
body[data-route-section="pdv-customers"] .pdv-customers-last-sale-cell small,
body[data-route-section="pdv-customers"] .pdv-customers-form-head .table-meta,
body[data-route-section="pdv-customers"] .pdv-customers-commerce-grid .mini-card span,
body[data-route-section="pdv-customers"] .pdv-customers-import-grid .mini-card span,
body[data-route-section="pdv-customers"] .pdv-customers-quick-card span,
body[data-route-section="pdv-customers"] .pdv-customers-callout span,
body[data-route-section="pdv-customers"] .pdv-reactivation-name small,
body[data-route-section="pdv-customers"] .pdv-reactivation-segment small,
body[data-route-section="pdv-customers"] .pdv-reactivation-preview-box p,
body[data-route-section="pdv-customers"] .pdv-reactivation-preview-box span,
body[data-route-section="pdv-customers"] .pdv-customers-cashback-table th,
body[data-route-section="pdv-customers"] .pdv-customers-table th {
  color: var(--customers-text-muted);
}

body[data-route-section="pdv-customers"] .pdv-route-tab,
body[data-route-section="pdv-customers"] .stat-card,
body[data-route-section="pdv-customers"] .mini-card,
body[data-route-section="pdv-customers"] .pdv-customers-commerce-grid .mini-card,
body[data-route-section="pdv-customers"] .pdv-customers-import-grid .mini-card,
body[data-route-section="pdv-customers"] .pdv-customers-quick-card,
body[data-route-section="pdv-customers"] .pdv-customers-callout,
body[data-route-section="pdv-customers"] .pdv-customers-step,
body[data-route-section="pdv-customers"] .pdv-reactivation-list-panel,
body[data-route-section="pdv-customers"] .pdv-reactivation-preview-panel {
  background: var(--customers-bg-card);
  border-color: var(--customers-border-soft);
  color: var(--customers-text-muted);
}

body[data-route-section="pdv-customers"] .pdv-route-tab:hover,
body[data-route-section="pdv-customers"] .pdv-route-tab.active,
body[data-route-section="pdv-customers"] .pdv-customers-step.is-active {
  background: var(--customers-accent-soft);
  border-color: var(--customers-accent-border);
  color: var(--customers-accent);
  box-shadow: 0 10px 26px rgba(20, 184, 166, 0.12);
}

body[data-route-section="pdv-customers"] .pdv-customers-search-label input,
body[data-route-section="pdv-customers"] .pdv-customers-toolbar-filters select,
body[data-route-section="pdv-customers"] .pdv-customers-drawer-form input,
body[data-route-section="pdv-customers"] .pdv-customers-drawer-form select,
body[data-route-section="pdv-customers"] .pdv-customers-drawer-form textarea,
body[data-route-section="pdv-customers"] .pdv-reactivation-toolbar input,
body[data-route-section="pdv-customers"] .pdv-reactivation-toolbar select {
  background: var(--customers-bg-shell);
  border-color: var(--customers-border-soft);
  color: var(--customers-text-main);
}

body[data-route-section="pdv-customers"] .pdv-customers-search-label input::placeholder,
body[data-route-section="pdv-customers"] .pdv-customers-drawer-form input::placeholder,
body[data-route-section="pdv-customers"] .pdv-customers-drawer-form textarea::placeholder {
  color: var(--customers-text-subtle);
}

body[data-route-section="pdv-customers"] .pdv-customers-search-label input:focus,
body[data-route-section="pdv-customers"] .pdv-customers-toolbar-filters select:focus,
body[data-route-section="pdv-customers"] .pdv-customers-drawer-form input:focus,
body[data-route-section="pdv-customers"] .pdv-customers-drawer-form select:focus,
body[data-route-section="pdv-customers"] .pdv-customers-drawer-form textarea:focus,
body[data-route-section="pdv-customers"] .pdv-reactivation-toolbar input:focus,
body[data-route-section="pdv-customers"] .pdv-reactivation-toolbar select:focus {
  border-color: var(--customers-accent-border);
  box-shadow: 0 0 0 3px var(--customers-accent-soft);
  outline: none;
}

body[data-route-section="pdv-customers"] .primary-button {
  background: linear-gradient(135deg, var(--customers-accent-strong), var(--customers-accent));
  border-color: rgba(45, 212, 191, 0.42);
  color: #06211F;
  box-shadow: 0 14px 32px rgba(20, 184, 166, 0.18);
}

body[data-route-section="pdv-customers"] .secondary-button,
body[data-route-section="pdv-customers"] .ghost-button {
  background: var(--customers-bg-card);
  border-color: var(--customers-border-soft);
  color: var(--customers-text-main);
}

body[data-route-section="pdv-customers"] .secondary-button:hover:not(:disabled),
body[data-route-section="pdv-customers"] .ghost-button:hover:not(:disabled) {
  background: var(--customers-bg-panel);
  border-color: var(--customers-border-strong);
}

body[data-route-section="pdv-customers"] .secondary-button:disabled,
body[data-route-section="pdv-customers"] .ghost-button:disabled {
  background: rgba(255, 255, 255, 0.035);
  border-color: var(--customers-divider);
  color: var(--customers-text-subtle);
}

body[data-route-section="pdv-customers"] .pdv-customers-table,
body[data-route-section="pdv-customers"] .pdv-customers-cashback-table {
  color: var(--customers-text-muted);
}

body[data-route-section="pdv-customers"] .table-wrap,
body[data-route-section="pdv-customers"] .pdv-customers-cashback-ledger-panel {
  background: var(--customers-bg-shell);
  border-color: var(--customers-border-soft);
}

body[data-route-section="pdv-customers"] .pdv-customers-table th,
body[data-route-section="pdv-customers"] .pdv-customers-cashback-table th {
  background: var(--customers-bg-app);
  border-bottom-color: var(--customers-divider);
}

body[data-route-section="pdv-customers"] .pdv-customers-table td,
body[data-route-section="pdv-customers"] .pdv-customers-cashback-table td {
  border-bottom-color: var(--customers-divider);
  color: var(--customers-text-muted);
}

body[data-route-section="pdv-customers"] .pdv-customers-table tbody tr:hover,
body[data-route-section="pdv-customers"] .pdv-customers-cashback-table tbody tr:hover {
  background: var(--customers-bg-card);
}

body[data-route-section="pdv-customers"] .pdv-customers-cashback-cell strong,
body[data-route-section="pdv-customers"] .pdv-customers-cashback-table td strong,
body[data-route-section="pdv-customers"] .stat-card strong {
  color: var(--customers-text-main);
}

body[data-route-section="pdv-customers"] .badge-success-soft,
body[data-route-section="pdv-customers"] .pill-badge.badge-success-soft,
body[data-route-section="pdv-customers"] .pdv-reactivation-badge.low {
  background: var(--customers-success-soft);
  border-color: var(--customers-success-border);
  color: var(--customers-success);
}

body[data-route-section="pdv-customers"] .badge-warning-soft,
body[data-route-section="pdv-customers"] .pill-badge.badge-warning-soft,
body[data-route-section="pdv-customers"] .pdv-reactivation-badge.medium {
  background: var(--customers-warning-soft);
  border-color: var(--customers-warning-border);
  color: var(--customers-warning);
}

body[data-route-section="pdv-customers"] .badge-danger-soft,
body[data-route-section="pdv-customers"] .pill-badge.badge-danger-soft,
body[data-route-section="pdv-customers"] .pdv-reactivation-badge.high {
  background: var(--customers-danger-soft);
  border-color: var(--customers-danger-border);
  color: var(--customers-danger);
}

body[data-route-section="pdv-customers"] .pdv-customers-cashback-intro {
  background:
    linear-gradient(135deg, var(--customers-accent-soft), rgba(255, 255, 255, 0.03)),
    var(--customers-bg-card);
  border-color: var(--customers-accent-border);
}

body[data-route-section="pdv-customers"] .pdv-reactivation-preview-box {
  border-color: var(--customers-border-soft);
}

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

  .pdv-orders-search {
    grid-column: span 2;
  }

  .pdv-orders-summary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .pdv-orders-filters,
  .pdv-orders-search,
  .pdv-orders-summary-grid,
  .pdv-orders-detail-grid {
    grid-template-columns: 1fr;
  }

  .pdv-orders-search {
    grid-column: auto;
  }

  .pdv-orders-drawer-card {
    width: 100vw;
  }

  .pdv-orders-detail-row {
    grid-template-columns: 1fr;
  }

  .pdv-orders-pagination {
    align-items: stretch;
    flex-direction: column;
  }

  .pdv-orders-export-strip,
  .pdv-orders-bulk-toolbar,
  .pdv-orders-bulk-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .pdv-orders-bulk-actions .secondary-button,
  .pdv-orders-bulk-actions .ghost-button,
  .pdv-orders-export-strip .ghost-button {
    width: 100%;
    justify-content: center;
  }

  .pdv-orders-table-wrap {
    overflow-x: visible;
    border: 0;
  }

  .pdv-orders-table {
    min-width: 0;
  }

  .pdv-orders-table thead {
    display: none;
  }

  .pdv-orders-table,
  .pdv-orders-table tbody,
  .pdv-orders-table tr,
  .pdv-orders-table td {
    display: block;
    width: 100%;
  }

  .pdv-orders-table tr {
    position: relative;
    margin-bottom: 14px;
    padding: 14px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.04);
  }

  .pdv-order-row::before {
    inset: 0 auto 0 0;
    width: 5px;
  }

  .pdv-orders-table td {
    border-bottom: 0;
    padding: 8px 0;
  }

  .pdv-orders-table td::before {
    display: block;
    margin-bottom: 3px;
    color: var(--muted-text);
    font-size: 0.68rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
  }

  .pdv-orders-table td:nth-child(1)::before { content: "Selecionar"; }
  .pdv-orders-table td:nth-child(2)::before { content: "Venda"; }
  .pdv-orders-table td:nth-child(3)::before { content: "Data"; }
  .pdv-orders-table td:nth-child(4)::before { content: "Cliente"; }
  .pdv-orders-table td:nth-child(5)::before { content: "Loja"; }
  .pdv-orders-table td:nth-child(6)::before { content: "Vendedor"; }
  .pdv-orders-table td:nth-child(7)::before { content: "Pagamento"; }
  .pdv-orders-table td:nth-child(8)::before { content: "Total"; }
  .pdv-orders-table td:nth-child(9)::before { content: "Status"; }
  .pdv-orders-table td:nth-child(10)::before { content: "Acoes"; }

  .pdv-orders-actions,
  .pdv-orders-drawer-actions,
  .pdv-orders-operational-head {
    align-items: stretch;
    flex-direction: column;
  }

  .pdv-orders-actions .primary-button,
  .pdv-orders-actions .ghost-button,
  .pdv-orders-drawer-actions .secondary-button,
  .pdv-orders-drawer-actions .ghost-button {
    width: 100%;
    justify-content: center;
  }
}

/* =========================================
   AEROSTORE PREMIUM UI IMPROVEMENTS
   ========================================= */

/* 1. Typography */
:root {
  --font-main: "Outfit", system-ui, -apple-system, sans-serif;
}

/* 2. PDV Separation (Hide CRM elements when PDV is active) */
body[data-section^="pdv-"] .sidebar,
body[data-route-section^="pdv-"] .sidebar,
body[data-section^="pdv-"] .topbar,
body[data-route-section^="pdv-"] .topbar {
  display: none !important;
}

body[data-section^="pdv-"] .content,
body[data-route-section^="pdv-"] .content {
  margin-left: 0 !important;
  width: 100% !important;
  max-width: 100% !important;
  padding: 16px 20px !important;
}

/* 3. Button Micro-interactions */
button {
  transition: transform 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}
button:active {
  transform: scale(0.97);
}
button.primary-button:hover,
button.secondary-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}
body.theme-dark button.primary-button:hover,
body.theme-dark button.secondary-button:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* 4. Table Readability */
.table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 8px; /* Room for scrollbar */
}
/* Prevent wrapping on important table data */
td, th {
  white-space: nowrap;
}
/* Allow wrapping on specific long text columns if needed in future, but default to nowrap */
/* Give table layout some breathing room */
table {
  min-width: max-content;
}

/* 5. Dark Premium Refining */
body.theme-dark .modal-overlay,
body.theme-dark .loading-overlay.blocking {
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
body.theme-dark .empty-state,
body.theme-dark .pdv-report-empty-state {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 16px;
  padding: 32px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

/* =========================================
   AEROSTORE OS: PREMIUM PDV SALE LAYOUT
   ========================================= */

.pdv-sale-premium-layout .pdv-sale-layout {
  display: grid;
}

/* FIX BUSCA PDV: cards reais acima de qualquer skeleton visual */
body[data-route-section="pdv-sale"] .pdv-sale-search-results {
  display: flex !important;
  flex-direction: column !important;
  gap: 14px !important;
  margin-top: 14px !important;
  min-height: 0 !important;
  overflow-y: auto !important;
  padding: 12px 10px 10px 2px;
  scrollbar-color: rgba(148, 163, 184, 0.28) transparent;
  scrollbar-width: thin;
}

body[data-route-section="pdv-sale"] .pdv-sale-search-results::-webkit-scrollbar {
  width: 6px;
}

body[data-route-section="pdv-sale"] .pdv-sale-search-results::-webkit-scrollbar-track {
  background: transparent;
}

body[data-route-section="pdv-sale"] .pdv-sale-search-results::-webkit-scrollbar-thumb {
  background: rgba(148, 163, 184, 0.26);
  border-radius: 999px;
}

body[data-route-section="pdv-sale"] .pdv-sale-search-results::-webkit-scrollbar-thumb:hover {
  background: rgba(148, 163, 184, 0.44);
}

body[data-route-section="pdv-sale"] .pdv-sale-product-results-head {
  align-items: center;
  background: linear-gradient(180deg, rgba(19, 26, 35, 0.96), rgba(19, 26, 35, 0.9));
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 14px;
  display: flex;
  flex: 0 0 auto;
  gap: 10px;
  justify-content: space-between;
  margin: 0 2px 0 0;
  padding: 8px 10px 8px 14px;
  position: relative;
  z-index: 1;
}

body[data-route-section="pdv-sale"] .pdv-sale-product-results-head span {
  color: var(--sale-text-muted, #AAB4C0);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

body[data-route-section="pdv-sale"] .pdv-product-results-close {
  align-items: center;
  background: var(--sale-bg-card, #171F2A);
  border: 1px solid var(--sale-border-strong, rgba(255, 255, 255, 0.12));
  border-radius: 999px;
  color: var(--sale-text-main, #F4F7FA);
  cursor: pointer;
  display: inline-flex;
  font-size: 1rem;
  font-weight: 900;
  height: 28px;
  justify-content: center;
  line-height: 1;
  width: 28px;
}

body[data-route-section="pdv-sale"] .pdv-product-results-close:hover {
  background: var(--sale-accent-soft, rgba(45, 212, 191, 0.12));
  border-color: var(--sale-accent-border, rgba(45, 212, 191, 0.35));
  color: var(--sale-accent, #2DD4BF);
}

body[data-route-section="pdv-sale"] .pdv-sale-search-results .pdv-product-card {
  position: relative;
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) 164px;
  gap: 18px;
  height: auto !important;
  min-height: 138px !important;
  opacity: 1 !important;
  visibility: visible !important;
  padding: 14px 16px 14px 14px;
  border-radius: 20px;
  overflow: visible !important;
  background:
    linear-gradient(135deg, rgba(18, 24, 34, 0.96), rgba(22, 30, 45, 0.92)),
    radial-gradient(circle at 10% 18%, rgba(196, 151, 63, 0.16), transparent 34%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.18);
}

body[data-route-section="pdv-sale"] .pdv-sale-search-results .pdv-product-card-body {
  display: grid !important;
  grid-template-columns: 112px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  opacity: 1 !important;
  visibility: visible !important;
  height: auto !important;
  padding: 0 !important;
}

body[data-route-section="pdv-sale"] .pdv-sale-search-results .pdv-product-card-media,
body[data-route-section="pdv-sale"] .pdv-sale-search-results .pdv-product-card-identity,
body[data-route-section="pdv-sale"] .pdv-sale-search-results .pdv-product-card-action {
  opacity: 1 !important;
  visibility: visible !important;
}

body[data-route-section="pdv-sale"] .pdv-sale-search-results .pdv-product-card-media {
  align-items: center;
  display: flex;
  height: 106px !important;
  justify-content: center;
  min-width: 112px !important;
  width: 112px !important;
  border-radius: 17px;
  background:
    radial-gradient(circle at 30% 20%, rgba(196, 151, 63, 0.22), transparent 45%),
    rgba(255, 255, 255, 0.06);
}

body[data-route-section="pdv-sale"] .pdv-sale-search-results .pdv-product-card-name {
  color: #fff7ec !important;
  font-size: 0.98rem;
  line-height: 1.25;
}

body[data-route-section="pdv-sale"] .pdv-sale-search-results .pdv-product-card-identifiers {
  margin-top: 8px;
}

body[data-route-section="pdv-sale"] .pdv-sale-search-results .pdv-product-card-tags {
  grid-column: 2;
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 12px;
}

body[data-route-section="pdv-sale"] .pdv-sale-search-results .pdv-product-card-tag {
  align-items: center;
  display: inline-flex;
  min-height: 22px;
  padding: 3px 8px;
}

body[data-route-section="pdv-sale"] .pdv-sale-search-results .pdv-product-card-action {
  align-items: flex-end;
  align-self: stretch;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  text-align: right;
}

body[data-route-section="pdv-sale"] .pdv-sale-search-results .pdv-product-card-price {
  color: #fff7ec !important;
  font-size: clamp(1.15rem, 1.3vw, 1.5rem);
  line-height: 1;
}

body[data-route-section="pdv-sale"] .pdv-sale-search-results .pdv-product-card-stock {
  line-height: 1.3;
  margin: 6px 0 10px;
  max-width: 164px;
}

body[data-route-section="pdv-sale"] .pdv-sale-search-results .pdv-product-card-btn {
  min-height: 38px;
  min-width: 118px;
  padding: 9px 14px;
}

@media (max-width: 720px) {
  body[data-route-section="pdv-sale"] .pdv-sale-search-results .pdv-product-card {
    grid-template-columns: 1fr;
    padding: 14px;
  }

  body[data-route-section="pdv-sale"] .pdv-sale-search-results .pdv-product-card-body {
    grid-template-columns: 104px minmax(0, 1fr);
  }

  body[data-route-section="pdv-sale"] .pdv-sale-search-results .pdv-product-card-media {
    width: 104px !important;
    height: 104px !important;
    min-width: 104px !important;
  }

  body[data-route-section="pdv-sale"] .pdv-sale-search-results .pdv-product-card-tags {
    grid-column: 1 / -1;
    margin-top: 0;
  }

  body[data-route-section="pdv-sale"] .pdv-sale-search-results .pdv-product-card-action {
    align-items: stretch;
    text-align: left;
  }

  body[data-route-section="pdv-sale"] .pdv-sale-search-results .pdv-product-card-stock {
    max-width: none;
  }
}

/* =========================================
   SIDEBAR TOGGLE — Minimal ChatGPT-inspired
   ========================================= */

/* Toggle row at top of sidebar */
.sidebar-toggle-row {
  display: flex;
  justify-content: flex-end;
  margin: -8px -4px 0 0;
}

/* Collapse button inside the sidebar */
.sidebar-toggle-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: rgba(255, 255, 255, 0.45);
  cursor: pointer;
  transition:
    color 0.18s ease,
    background 0.18s ease,
    transform 0.18s ease;
  flex-shrink: 0;
}

.sidebar-toggle-btn:hover {
  color: rgba(255, 255, 255, 0.85);
  background: rgba(255, 255, 255, 0.08);
}

.sidebar-toggle-btn:active {
  transform: scale(0.92);
}

.sidebar-toggle-btn:focus-visible {
  outline: 2px solid rgba(210, 165, 84, 0.55);
  outline-offset: 2px;
}

/* Floating expand button (visible only when collapsed) */
.sidebar-expand-btn {
  display: none; /* Hidden by default */
  position: fixed;
  top: 16px;
  left: 16px;
  z-index: 25;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  background: rgba(15, 23, 42, 0.88);
  color: rgba(255, 255, 255, 0.55);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow:
    0 2px 8px rgba(0, 0, 0, 0.2),
    0 0 0 1px rgba(255, 255, 255, 0.04);
  transition:
    color 0.18s ease,
    background 0.18s ease,
    border-color 0.18s ease,
    transform 0.18s ease,
    opacity 0.22s ease;
}

.sidebar-expand-btn:hover {
  color: rgba(255, 255, 255, 0.9);
  background: rgba(22, 34, 52, 0.95);
  border-color: rgba(210, 165, 84, 0.3);
}

.sidebar-expand-btn:active {
  transform: scale(0.92);
}

.sidebar-expand-btn:focus-visible {
  outline: 2px solid rgba(210, 165, 84, 0.55);
  outline-offset: 2px;
}

/* ---- Collapsed state ---- */
body.sidebar-collapsed .sidebar {
  transform: translateX(-100%);
  pointer-events: none;
  opacity: 0;
  transition:
    transform 0.28s cubic-bezier(0.4, 0, 0.2, 1),
    opacity 0.22s ease;
}

body.sidebar-collapsed .content {
  margin-left: 0;
  width: 100%;
  max-width: 100%;
  transition:
    margin-left 0.28s cubic-bezier(0.4, 0, 0.2, 1),
    width 0.28s cubic-bezier(0.4, 0, 0.2, 1);
}

body.sidebar-collapsed .sidebar-expand-btn {
  display: inline-flex;
}

/* Smooth transitions when NOT collapsed (expanding back) */
.sidebar {
  transition:
    transform 0.28s cubic-bezier(0.4, 0, 0.2, 1),
    opacity 0.22s ease;
}

.content {
  transition:
    margin-left 0.28s cubic-bezier(0.4, 0, 0.2, 1),
    width 0.28s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Light theme adjustments for expand button */
body.theme-light .sidebar-expand-btn {
  background: rgba(241, 245, 249, 0.92);
  border-color: rgba(15, 23, 42, 0.1);
  color: rgba(15, 23, 42, 0.5);
  box-shadow:
    0 2px 8px rgba(15, 23, 42, 0.08),
    0 0 0 1px rgba(15, 23, 42, 0.04);
}

body.theme-light .sidebar-expand-btn:hover {
  color: rgba(15, 23, 42, 0.85);
  background: rgba(255, 255, 255, 0.98);
  border-color: rgba(180, 142, 66, 0.35);
}

/* When PDV is active, hide both toggle buttons since sidebar is already hidden */
body[data-section^="pdv-"] .sidebar-toggle-btn,
body[data-route-section^="pdv-"] .sidebar-toggle-btn,
body[data-section^="pdv-"] .sidebar-expand-btn,
body[data-route-section^="pdv-"] .sidebar-expand-btn {
  display: none !important;
}

/* When auth shell is hidden, hide the expand button too */
body.auth-shell-hidden .sidebar-expand-btn,
body[data-auth-shell="guest"] .sidebar-expand-btn,
body[data-auth-shell="checking"] .sidebar-expand-btn {
  display: none !important;
}

/* Override collapsed content in auth-hidden states (login screen etc) */
body.auth-shell-hidden.sidebar-collapsed .content,
body[data-auth-shell="guest"].sidebar-collapsed .content,
body[data-auth-shell="checking"].sidebar-collapsed .content {
  margin-left: 0 !important;
  width: 100% !important;
}

/* Responsive: at ≤920px sidebar is already static, so disable the toggle mechanism */
@media (max-width: 920px) {
  .sidebar-toggle-row {
    display: none;
  }

  .sidebar-expand-btn {
    display: none !important;
  }

  body.sidebar-collapsed .sidebar {
    transform: none;
    pointer-events: auto;
    opacity: 1;
  }

  body.sidebar-collapsed .content {
    margin-left: 0;
    width: 100%;
  }
}

.pdv-orders-cancel-action,
.pdv-orders-drawer-actions .danger-button {
  border-color: rgba(239, 68, 68, 0.34);
  color: #fecaca;
}

.audit-shell {
  display: grid;
  gap: 18px;
}

.audit-toolbar {
  display: grid;
  grid-template-columns: repeat(5, minmax(130px, 1fr)) auto auto;
  gap: 10px;
  align-items: end;
  padding: 14px;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 18px;
  background: #131A23;
}

.audit-toolbar input,
.audit-toolbar select {
  min-height: 42px;
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 12px;
  background: #0B0F14;
  color: #F4F7FA;
  padding: 0 12px;
}

.audit-table-wrap {
  overflow: auto;
  max-height: 680px;
  scrollbar-width: thin;
  scrollbar-color: rgba(170,180,192,0.24) transparent;
}

.audit-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0 8px;
  min-width: 980px;
}

.audit-table th {
  color: #AAB4C0;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  text-align: left;
  padding: 0 10px 4px;
}

.audit-table td {
  background: rgba(255,255,255,0.035);
  border-top: 1px solid rgba(255,255,255,0.07);
  border-bottom: 1px solid rgba(255,255,255,0.07);
  padding: 11px 10px;
  color: #F4F7FA;
  vertical-align: top;
}

.audit-table td:first-child {
  border-left: 1px solid rgba(255,255,255,0.07);
  border-radius: 14px 0 0 14px;
}

.audit-table td:last-child {
  border-right: 1px solid rgba(255,255,255,0.07);
  border-radius: 0 14px 14px 0;
}

.audit-table td span {
  display: block;
  color: #AAB4C0;
  font-size: 0.78rem;
}

.audit-result {
  display: inline-flex !important;
  width: fit-content;
  border-radius: 999px;
  padding: 5px 9px;
  background: rgba(170,180,192,0.12);
  color: #AAB4C0 !important;
}

.audit-result.is-success { background: rgba(52,211,153,0.12); color: #34D399 !important; }
.audit-result.is-blocked { background: rgba(245,158,11,0.14); color: #F59E0B !important; }
.audit-result.is-failed { background: rgba(239,68,68,0.12); color: #EF4444 !important; }

.audit-details summary {
  cursor: pointer;
  color: #2DD4BF;
}

.audit-details pre {
  max-width: 420px;
  max-height: 260px;
  overflow: auto;
  margin: 8px 0 0;
  padding: 10px;
  border-radius: 12px;
  background: #0B0F14;
  color: #AAB4C0;
  font-size: 0.74rem;
  white-space: pre-wrap;
}

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

.pdv-orders-cancel-modal {
  background: rgba(5, 8, 12, 0.76);
  backdrop-filter: blur(10px);
  z-index: 1300;
}

.pdv-orders-cancel-card {
  background: #131A23;
  border: 1px solid rgba(239, 68, 68, 0.26);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.42);
  color: #F4F7FA;
}

.pdv-orders-cancel-summary {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 14px 0;
}

.pdv-orders-cancel-summary article,
.pdv-orders-cancel-warning {
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.035);
  border-radius: 16px;
  padding: 12px;
}

.pdv-orders-cancel-summary span,
.pdv-orders-cancel-warning span {
  display: block;
  color: #AAB4C0;
  font-size: 0.82rem;
}

.pdv-orders-cancel-summary strong,
.pdv-orders-cancel-warning strong {
  display: block;
  color: #F4F7FA;
}

.pdv-orders-cancel-warning {
  border-color: rgba(245,158,11,0.28);
  background: rgba(245,158,11,0.10);
  margin-bottom: 14px;
}

.pdv-orders-cancel-card textarea {
  width: 100%;
  min-height: 112px;
  resize: vertical;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 14px;
  background: #0B0F14;
  color: #F4F7FA;
  padding: 12px;
}

@media (max-width: 640px) {
  .pdv-orders-cancel-summary {
    grid-template-columns: 1fr;
  }
}

/* ============================================================
   STAGE PDV-VENDA TOPBAR REFINEMENT
   Hide redundant hero/tabs on /pdv/venda ONLY and refine
   the compact header into a single premium operational bar.
   No other PDV route is affected.
   ============================================================ */

/* 1. HIDE the hero card entirely on pdv-sale */
body[data-route-section="pdv-sale"] .hero-card.pdv-hero-card {
  display: none !important;
}

/* 2. HIDE the route tabs shell on pdv-sale */
body[data-route-section="pdv-sale"] .panel.pdv-route-shell,
body[data-route-section="pdv-sale"] .panel.pdv-route-shell-compact {
  display: none !important;
}

/* 3. Refined compact header — single premium operational bar */
body[data-route-section="pdv-sale"] .pdv-sale-compact-header {
  grid-column: 1 / -1;
  grid-row: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 0 18px;
  min-height: 52px;
  max-height: 56px;
  background:
    linear-gradient(135deg, rgba(7, 10, 13, 0.72), rgba(12, 18, 24, 0.65)),
    radial-gradient(ellipse at 0% 50%, rgba(196, 151, 63, 0.06), transparent 40%);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 10px;
  margin-bottom: 6px;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

/* Left zone */
body[data-route-section="pdv-sale"] .pdv-sale-header-left {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

body[data-route-section="pdv-sale"] .pdv-sale-header-left .pdv-header-icon {
  height: 20px !important;
  opacity: 0.75;
  flex-shrink: 0;
}

body[data-route-section="pdv-sale"] .pdv-sale-header-left .store-label {
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.65);
  white-space: nowrap;
  letter-spacing: 0.01em;
}

body[data-route-section="pdv-sale"] .pdv-sale-header-left .store-label strong {
  color: rgba(255, 255, 255, 0.95);
  font-weight: 600;
}

/* Center zone (Loja + Vendedor) */
body[data-route-section="pdv-sale"] .pdv-sale-header-center {
  display: flex;
  align-items: center;
  gap: 18px;
  flex: 1;
  justify-content: center;
  min-width: 0;
}

body[data-route-section="pdv-sale"] .pdv-sale-header-center .store-label,
body[data-route-section="pdv-sale"] .pdv-sale-header-center .seller-label {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.48);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

body[data-route-section="pdv-sale"] .pdv-sale-header-center strong {
  color: rgba(255, 255, 255, 0.88);
  font-weight: 600;
}

/* Right zone (action buttons) */
body[data-route-section="pdv-sale"] .pdv-sale-header-right {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

body[data-route-section="pdv-sale"] .pdv-sale-header-right .ghost-button,
body[data-route-section="pdv-sale"] .pdv-sale-header-right .secondary-button {
  padding: 6px 12px;
  font-size: 0.8rem;
  min-height: 32px;
  border-radius: 8px;
}

body[data-route-section="pdv-sale"] .pdv-sale-header-right .primary-button {
  padding: 6px 14px;
  font-size: 0.82rem;
  min-height: 34px;
  border-radius: 8px;
  font-weight: 600;
}

/* 4. Reclaim vertical space — layout height accounts for
   only the compact header + content padding (~80px total) */
body[data-route-section="pdv-sale"] .pdv-sale-layout {
  height: calc(100vh - 80px);
}

/* 5. Responsive: collapse center zone on narrower screens */
@media (max-width: 1280px) {
  body[data-route-section="pdv-sale"] .pdv-sale-header-center {
    gap: 12px;
  }
  body[data-route-section="pdv-sale"] .pdv-sale-header-center .store-label,
  body[data-route-section="pdv-sale"] .pdv-sale-header-center .seller-label {
    font-size: 0.78rem;
  }
}

@media (max-width: 1080px) {
  body[data-route-section="pdv-sale"] .pdv-sale-compact-header {
    flex-wrap: wrap;
    max-height: none;
    padding: 8px 14px;
    gap: 8px;
  }
  body[data-route-section="pdv-sale"] .pdv-sale-header-center {
    order: 3;
    flex-basis: 100%;
    justify-content: flex-start;
    gap: 14px;
    padding-top: 2px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
  }
  body[data-route-section="pdv-sale"] .pdv-sale-header-right {
    flex-wrap: wrap;
  }
}
/* PDV Venda - paleta dark premium grafite + teal (somente cores) */
body[data-route-section="pdv-sale"] {
  --sale-bg-app: #0B0F14;
  --sale-bg-shell: #0F141B;
  --sale-bg-panel: #131A23;
  --sale-bg-card: #171F2A;
  --sale-border-soft: rgba(255, 255, 255, 0.07);
  --sale-border-strong: rgba(255, 255, 255, 0.12);
  --sale-divider: rgba(255, 255, 255, 0.06);
  --sale-text-main: #F4F7FA;
  --sale-text-muted: #AAB4C0;
  --sale-text-subtle: #7F8A99;
  --sale-accent: #2DD4BF;
  --sale-accent-strong: #14B8A6;
  --sale-accent-soft: rgba(45, 212, 191, 0.12);
  --sale-accent-border: rgba(45, 212, 191, 0.35);
  --sale-success: #34D399;
  --sale-success-soft: rgba(52, 211, 153, 0.12);
  --sale-success-border: rgba(52, 211, 153, 0.28);
  --sale-warning: #F59E0B;
  --sale-warning-soft: rgba(245, 158, 11, 0.12);
  --sale-warning-border: rgba(245, 158, 11, 0.35);
  --sale-danger: #EF4444;
  --sale-danger-soft: rgba(239, 68, 68, 0.12);
  --sale-danger-border: rgba(239, 68, 68, 0.3);
  background: var(--sale-bg-app);
  color: var(--sale-text-main);
}

body[data-route-section="pdv-sale"] .content,
body[data-route-section="pdv-sale"] .app-main,
body[data-route-section="pdv-sale"] .pdv-sale-screen,
body[data-route-section="pdv-sale"] .pdv-sale-shell {
  background: var(--sale-bg-app);
  color: var(--sale-text-main);
}

body[data-route-section="pdv-sale"] .content {
  padding-top: 6px !important;
  padding-bottom: 14px !important;
}

body[data-route-section="pdv-sale"] #pdv-sale.page {
  margin-top: 0;
}

body[data-route-section="pdv-sale"] .pdv-sale-shell {
  gap: 8px;
}

body[data-route-section="pdv-sale"] .pdv-sale-compact-header {
  background: linear-gradient(135deg, rgba(15, 20, 27, 0.96), rgba(19, 26, 35, 0.96));
  border-color: var(--sale-border-soft);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.22);
  color: var(--sale-text-main);
  margin-bottom: 0;
}

body[data-route-section="pdv-sale"] .pdv-sale-sidebar-left,
body[data-route-section="pdv-sale"] .pdv-sale-main-center,
body[data-route-section="pdv-sale"] .pdv-sale-sidebar-right {
  grid-row: 1;
}

body[data-route-section="pdv-sale"] .pdv-sale-layout {
  height: calc(100vh - 66px);
}

body[data-route-section="pdv-sale"] .pdv-sale-compact-header::before,
body[data-route-section="pdv-sale"] .pdv-sale-compact-header::after,
body[data-route-section="pdv-sale"] .pdv-sale-zone::before,
body[data-route-section="pdv-sale"] .pdv-sale-product-zone::before,
body[data-route-section="pdv-sale"] .pdv-sale-cart-zone::before,
body[data-route-section="pdv-sale"] .pdv-sale-checkout-zone::before {
  background: radial-gradient(circle, rgba(45, 212, 191, 0.1), transparent 62%);
}

body[data-route-section="pdv-sale"] .pdv-sale-header-title,
body[data-route-section="pdv-sale"] .pdv-sale-header-left strong,
body[data-route-section="pdv-sale"] .pdv-sale-header-center strong {
  color: var(--sale-text-main);
}

body[data-route-section="pdv-sale"] .pdv-sale-header-left span,
body[data-route-section="pdv-sale"] .pdv-sale-header-center span,
body[data-route-section="pdv-sale"] .pdv-sale-header-subtitle,
body[data-route-section="pdv-sale"] .pdv-sale-muted,
body[data-route-section="pdv-sale"] .pdv-sale-note {
  color: var(--sale-text-muted);
}

body[data-route-section="pdv-sale"] .pdv-sale-header-right .secondary-button,
body[data-route-section="pdv-sale"] .pdv-sale-header-right .ghost-button,
body[data-route-section="pdv-sale"] .pdv-sale-button-secondary,
body[data-route-section="pdv-sale"] .pdv-sale-top-action {
  background: var(--sale-bg-card);
  border-color: var(--sale-border-soft);
  color: var(--sale-text-main);
}

body[data-route-section="pdv-sale"] .pdv-sale-header-right .secondary-button:hover,
body[data-route-section="pdv-sale"] .pdv-sale-header-right .ghost-button:hover,
body[data-route-section="pdv-sale"] .pdv-sale-button-secondary:hover,
body[data-route-section="pdv-sale"] .pdv-sale-top-action:hover {
  background: var(--sale-accent-soft);
  border-color: var(--sale-accent-border);
  color: var(--sale-accent);
}

body[data-route-section="pdv-sale"] .pdv-sale-header-right .primary-button,
body[data-route-section="pdv-sale"] .pdv-sale-button-primary,
body[data-route-section="pdv-sale"] .pdv-sale-final-button,
body[data-route-section="pdv-sale"] .pdv-payment-finalize-btn {
  background: linear-gradient(135deg, var(--sale-accent-strong), var(--sale-accent));
  border-color: var(--sale-accent-border);
  color: #06211F;
  box-shadow: 0 16px 30px rgba(20, 184, 166, 0.2);
}

body[data-route-section="pdv-sale"] .pdv-sale-cash-lock {
  align-items: center;
  background: rgba(19, 26, 35, 0.92);
  border: 1px solid var(--sale-border-soft);
  border-radius: 18px;
  color: var(--sale-text-muted);
  display: flex;
  gap: 14px;
  justify-content: space-between;
  margin: 10px 0 12px;
  padding: 12px 16px;
}

body[data-route-section="pdv-sale"] .pdv-sale-cash-lock strong {
  color: var(--sale-text-main);
  display: block;
  font-size: 0.9rem;
}

body[data-route-section="pdv-sale"] .pdv-sale-cash-lock span,
body[data-route-section="pdv-sale"] .pdv-sale-cash-lock small {
  color: var(--sale-text-muted);
  font-size: 0.78rem;
}

body[data-route-section="pdv-sale"] .pdv-sale-cash-lock.is-open {
  background: rgba(52, 211, 153, 0.08);
  border-color: rgba(52, 211, 153, 0.24);
}

body[data-route-section="pdv-sale"] .pdv-sale-cash-lock.is-open strong {
  color: var(--success, #34D399);
}

body[data-route-section="pdv-sale"] .pdv-sale-cash-lock.is-closed,
body[data-route-section="pdv-sale"] .pdv-sale-cash-lock.is-loading {
  background: rgba(245, 158, 11, 0.09);
  border-color: rgba(245, 158, 11, 0.28);
}

body[data-route-section="pdv-sale"] .pdv-sale-cash-lock.is-closed strong,
body[data-route-section="pdv-sale"] .pdv-sale-cash-lock.is-loading strong {
  color: var(--warning, #F59E0B);
}

body[data-route-section="pdv-sale"] .pdv-sale-zone,
body[data-route-section="pdv-sale"] .pdv-sale-product-zone,
body[data-route-section="pdv-sale"] .pdv-sale-cart-zone,
body[data-route-section="pdv-sale"] .pdv-sale-checkout-zone,
body[data-route-section="pdv-sale"] .pdv-sale-payment-panel,
body[data-route-section="pdv-sale"] .pdv-sale-search-card,
body[data-route-section="pdv-sale"] .pdv-sale-cart-card,
body[data-route-section="pdv-sale"] .pdv-sale-summary-card,
body[data-route-section="pdv-sale"] .pdv-sale-cash-card,
body[data-route-section="pdv-sale"] .pdv-sale-discount-panel,
body[data-route-section="pdv-sale"] .pdv-sale-financial-summary,
body[data-route-section="pdv-sale"] .pdv-cashback-checkout-card,
body[data-route-section="pdv-sale"] .pdv-exchange-credit-card {
  background: var(--sale-bg-panel);
  border-color: var(--sale-border-soft);
  color: var(--sale-text-main);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.18);
}

body[data-route-section="pdv-sale"] .pdv-sale-zone h2,
body[data-route-section="pdv-sale"] .pdv-sale-zone h3,
body[data-route-section="pdv-sale"] .pdv-sale-card-title,
body[data-route-section="pdv-sale"] .pdv-sale-section-title,
body[data-route-section="pdv-sale"] .pdv-payment-method-name {
  color: var(--sale-text-main);
}

body[data-route-section="pdv-sale"] .pdv-sale-zone p,
body[data-route-section="pdv-sale"] .pdv-sale-zone small,
body[data-route-section="pdv-sale"] .pdv-sale-card-subtitle,
body[data-route-section="pdv-sale"] .pdv-payment-method-helper,
body[data-route-section="pdv-sale"] .pdv-sale-helper-text {
  color: var(--sale-text-muted);
}

body[data-route-section="pdv-sale"] input,
body[data-route-section="pdv-sale"] select,
body[data-route-section="pdv-sale"] textarea,
body[data-route-section="pdv-sale"] .pdv-sale-search-label input,
body[data-route-section="pdv-sale"] .pdv-sale-customer-search input,
body[data-route-section="pdv-sale"] .pdv-payment-input,
body[data-route-section="pdv-sale"] .pdv-sale-money-input {
  background: var(--sale-bg-shell);
  border-color: var(--sale-border-soft);
  color: var(--sale-text-main);
}

body[data-route-section="pdv-sale"] input::placeholder,
body[data-route-section="pdv-sale"] textarea::placeholder,
body[data-route-section="pdv-sale"] .pdv-sale-search-label input::placeholder,
body[data-route-section="pdv-sale"] .pdv-payment-input::placeholder {
  color: var(--sale-text-subtle);
}

body[data-route-section="pdv-sale"] input:focus,
body[data-route-section="pdv-sale"] select:focus,
body[data-route-section="pdv-sale"] textarea:focus,
body[data-route-section="pdv-sale"] .pdv-sale-search-label input:focus,
body[data-route-section="pdv-sale"] .pdv-payment-input:focus {
  border-color: var(--sale-accent-border);
  box-shadow: 0 0 0 3px var(--sale-accent-soft);
  outline-color: var(--sale-accent);
}

body[data-route-section="pdv-sale"] .pdv-sale-empty-state,
body[data-route-section="pdv-sale"] .pdv-sale-product-empty,
body[data-route-section="pdv-sale"] .pdv-sale-loading-state {
  background: var(--sale-bg-card);
  border-color: var(--sale-border-soft);
  color: var(--sale-text-muted);
}

body[data-route-section="pdv-sale"] .pdv-sale-empty-state strong,
body[data-route-section="pdv-sale"] .pdv-sale-product-empty strong,
body[data-route-section="pdv-sale"] .pdv-sale-loading-state strong {
  color: var(--sale-text-main);
}

body[data-route-section="pdv-sale"] .pdv-product-card,
body[data-route-section="pdv-sale"] .pdv-sale-product-result,
body[data-route-section="pdv-sale"] .pdv-cart-item-card,
body[data-route-section="pdv-sale"] .pdv-payment-method-row,
body[data-route-section="pdv-sale"] .pdv-sale-customer-result-card,
body[data-route-section="pdv-sale"] .pdv-sale-customer-card,
body[data-route-section="pdv-sale"] .pdv-sale-benefit-card {
  background: var(--sale-bg-card);
  border-color: var(--sale-border-soft);
  color: var(--sale-text-main);
}

body[data-route-section="pdv-sale"] .pdv-product-card:hover,
body[data-route-section="pdv-sale"] .pdv-sale-product-result:hover,
body[data-route-section="pdv-sale"] .pdv-cart-item-card:hover,
body[data-route-section="pdv-sale"] .pdv-payment-method-row:hover {
  border-color: var(--sale-accent-border);
  background: linear-gradient(135deg, var(--sale-bg-card), rgba(45, 212, 191, 0.08));
}

body[data-route-section="pdv-sale"] .pdv-product-name,
body[data-route-section="pdv-sale"] .pdv-sale-product-name,
body[data-route-section="pdv-sale"] .pdv-cart-item-name,
body[data-route-section="pdv-sale"] .pdv-sale-customer-name {
  color: var(--sale-text-main);
}

body[data-route-section="pdv-sale"] .pdv-product-meta,
body[data-route-section="pdv-sale"] .pdv-sale-product-meta,
body[data-route-section="pdv-sale"] .pdv-cart-item-variation,
body[data-route-section="pdv-sale"] .pdv-cart-item-unit,
body[data-route-section="pdv-sale"] .pdv-cart-item-note,
body[data-route-section="pdv-sale"] .pdv-sale-customer-meta {
  color: var(--sale-text-muted);
}

body[data-route-section="pdv-sale"] .pdv-product-price,
body[data-route-section="pdv-sale"] .pdv-sale-product-price,
body[data-route-section="pdv-sale"] .pdv-cart-item-total,
body[data-route-section="pdv-sale"] .pdv-sale-money,
body[data-route-section="pdv-sale"] .pdv-sale-positive-value {
  color: var(--sale-success);
}

body[data-route-section="pdv-sale"] .pdv-sale-chip,
body[data-route-section="pdv-sale"] .pdv-sale-origin-badge,
body[data-route-section="pdv-sale"] .pdv-cart-item-logistics span,
body[data-route-section="pdv-sale"] .pdv-product-stock-badge,
body[data-route-section="pdv-sale"] .pdv-sale-badge {
  background: var(--sale-accent-soft);
  border-color: var(--sale-accent-border);
  color: var(--sale-accent);
}

body[data-route-section="pdv-sale"] .pdv-product-stock-badge.is-empty,
body[data-route-section="pdv-sale"] .pdv-sale-badge.is-warning,
body[data-route-section="pdv-sale"] .pdv-payment-alert {
  background: var(--sale-warning-soft);
  border-color: var(--sale-warning-border);
  color: var(--sale-warning);
}

body[data-route-section="pdv-sale"] .pdv-sale-badge.is-danger,
body[data-route-section="pdv-sale"] .pdv-payment-alert.is-danger,
body[data-route-section="pdv-sale"] .pdv-sale-error {
  background: var(--sale-danger-soft);
  border-color: var(--sale-danger-border);
  color: var(--sale-danger);
}

body[data-route-section="pdv-sale"] .pdv-cart-action-btn,
body[data-route-section="pdv-sale"] .pdv-sale-qty-btn,
body[data-route-section="pdv-sale"] .pdv-payment-fill-btn,
body[data-route-section="pdv-sale"] .pdv-sale-mini-btn,
body[data-route-section="pdv-sale"] button.pdv-sale-secondary {
  background: var(--sale-bg-card);
  border-color: var(--sale-border-strong);
  color: var(--sale-text-main);
}

body[data-route-section="pdv-sale"] .pdv-cart-action-btn:hover,
body[data-route-section="pdv-sale"] .pdv-sale-qty-btn:hover,
body[data-route-section="pdv-sale"] .pdv-payment-fill-btn:hover,
body[data-route-section="pdv-sale"] .pdv-sale-mini-btn:hover {
  background: var(--sale-accent-soft);
  border-color: var(--sale-accent-border);
  color: var(--sale-accent);
}

body[data-route-section="pdv-sale"] .pdv-cart-item-discount-line {
  color: var(--sale-success);
  font-size: 0.76rem;
  font-weight: 800;
}

body[data-route-section="pdv-sale"] .pdv-cart-item-net-note {
  color: var(--sale-text-subtle);
  font-size: 0.72rem;
  text-decoration: line-through;
}

body[data-route-section="pdv-sale"] .pdv-cart-item-discount-editor {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(90px, 0.7fr) minmax(140px, 1fr) minmax(180px, 1.4fr) auto;
  gap: 10px;
  align-items: end;
  margin-top: 12px;
  padding: 12px;
  border: 1px solid var(--sale-border-soft);
  border-radius: 16px;
  background: rgba(15, 20, 27, 0.72);
}

body[data-route-section="pdv-sale"] .pdv-cart-item-discount-editor label {
  display: grid;
  gap: 6px;
  color: var(--sale-text-muted);
  font-size: 0.72rem;
  font-weight: 800;
}

body[data-route-section="pdv-sale"] .pdv-cart-item-discount-editor input,
body[data-route-section="pdv-sale"] .pdv-cart-item-discount-editor select {
  min-height: 38px;
}

body[data-route-section="pdv-sale"] .pdv-cart-item-discount-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  justify-content: flex-end;
}

@media (max-width: 980px) {
  body[data-route-section="pdv-sale"] .pdv-cart-item-discount-editor {
    grid-template-columns: 1fr;
  }

  body[data-route-section="pdv-sale"] .pdv-cart-item-discount-actions {
    justify-content: stretch;
  }

  body[data-route-section="pdv-sale"] .pdv-cart-item-discount-actions button {
    flex: 1;
  }
}

body[data-route-section="pdv-sale"] .pdv-cart-action-btn.is-remove:hover,
body[data-route-section="pdv-sale"] .pdv-sale-qty-btn.is-remove:hover,
body[data-route-section="pdv-sale"] .pdv-sale-remove-btn:hover {
  background: var(--sale-danger-soft);
  border-color: var(--sale-danger-border);
  color: var(--sale-danger);
}

body[data-route-section="pdv-sale"] .pdv-payment-method-row.is-launched {
  background: var(--sale-success-soft);
  border-color: var(--sale-success-border);
}

body[data-route-section="pdv-sale"] .pdv-payment-method-row.is-launched .pdv-payment-method-name,
body[data-route-section="pdv-sale"] .pdv-payment-launched-label,
body[data-route-section="pdv-sale"] .pdv-sale-success,
body[data-route-section="pdv-sale"] .pdv-sale-financial-pending.is-balanced,
body[data-route-section="pdv-sale"] .pdv-sale-financial-row.is-credit strong {
  color: var(--sale-success);
}

body[data-route-section="pdv-sale"] .pdv-payment-add-btn,
body[data-route-section="pdv-sale"] .pdv-sale-apply-btn,
body[data-route-section="pdv-sale"] .pdv-cashback-apply-btn,
body[data-route-section="pdv-sale"] .pdv-exchange-credit-apply-btn {
  background: linear-gradient(135deg, var(--sale-accent-strong), var(--sale-accent));
  border-color: var(--sale-accent-border);
  color: #06211F;
  box-shadow: 0 12px 24px rgba(20, 184, 166, 0.2);
}

body[data-route-section="pdv-sale"] .pdv-payment-add-btn:hover,
body[data-route-section="pdv-sale"] .pdv-sale-apply-btn:hover,
body[data-route-section="pdv-sale"] .pdv-cashback-apply-btn:hover,
body[data-route-section="pdv-sale"] .pdv-exchange-credit-apply-btn:hover {
  background: linear-gradient(135deg, #0F766E, var(--sale-accent));
  border-color: rgba(45, 212, 191, 0.5);
}

body[data-route-section="pdv-sale"] .pdv-sale-financial-row {
  border-color: var(--sale-divider);
}

body[data-route-section="pdv-sale"] .pdv-sale-financial-row span,
body[data-route-section="pdv-sale"] .pdv-sale-financial-label {
  color: var(--sale-text-muted);
}

body[data-route-section="pdv-sale"] .pdv-sale-financial-row strong,
body[data-route-section="pdv-sale"] .pdv-sale-financial-value,
body[data-route-section="pdv-sale"] .pdv-sale-financial-total strong {
  color: var(--sale-text-main);
}

body[data-route-section="pdv-sale"] .pdv-sale-financial-row strong {
  transition: color 160ms ease, text-shadow 160ms ease;
}

body[data-route-section="pdv-sale"] .pdv-sale-financial-row.is-subtotal strong,
body[data-route-section="pdv-sale"] .pdv-sale-financial-row.is-net-subtotal strong {
  color: #DCE8F4;
}

body[data-route-section="pdv-sale"] .pdv-sale-financial-row.is-discount strong,
body[data-route-section="pdv-sale"] .pdv-sale-financial-row.is-cashback strong,
body[data-route-section="pdv-sale"] .pdv-sale-financial-row.is-exchange-credit strong {
  color: #6EE7B7;
  text-shadow: 0 0 18px rgba(110, 231, 183, 0.12);
}

body[data-route-section="pdv-sale"] .pdv-sale-financial-row.is-cashback strong {
  color: #5EEAD4;
  text-shadow: 0 0 18px rgba(94, 234, 212, 0.14);
}

body[data-route-section="pdv-sale"] .pdv-sale-financial-row.is-exchange-credit strong {
  color: #A7F3D0;
}

body[data-route-section="pdv-sale"] .pdv-sale-financial-row.is-paid strong {
  color: #93C5FD;
  text-shadow: 0 0 18px rgba(147, 197, 253, 0.12);
}

body[data-route-section="pdv-sale"] .pdv-sale-financial-total strong {
  color: #FFFFFF;
  text-shadow: 0 0 24px rgba(45, 212, 191, 0.18);
}

body[data-route-section="pdv-sale"] .pdv-sale-financial-pending:not(.is-balanced),
body[data-route-section="pdv-sale"] .pdv-sale-remaining-value {
  color: var(--sale-warning);
}

body[data-route-section="pdv-sale"] .pdv-sale-financial-projected,
body[data-route-section="pdv-sale"] .pdv-sale-projected-cashback {
  color: var(--sale-accent);
}

body[data-route-section="pdv-sale"] .pdv-sale-divider,
body[data-route-section="pdv-sale"] hr {
  border-color: var(--sale-divider);
}

body[data-route-section="pdv-sale"] .pdv-sale-discount-panel summary,
body[data-route-section="pdv-sale"] .pdv-cashback-checkout-header,
body[data-route-section="pdv-sale"] .pdv-exchange-credit-header {
  color: var(--sale-text-main);
}

body[data-route-section="pdv-sale"] .pdv-sale-discount-panel[open],
body[data-route-section="pdv-sale"] .pdv-cashback-checkout-card.has-applied,
body[data-route-section="pdv-sale"] .pdv-exchange-credit-card.has-applied {
  border-color: var(--sale-success-border);
  background: linear-gradient(135deg, var(--sale-bg-panel), rgba(52, 211, 153, 0.08));
}

body[data-route-section="pdv-sale"] .pdv-checkout-steps {
  display: grid;
  gap: 10px;
}

body[data-route-section="pdv-sale"] .pdv-checkout-step {
  background: rgba(15, 20, 27, 0.74);
  border: 1px solid var(--sale-border-soft, rgba(255, 255, 255, 0.07));
  border-radius: 18px;
  overflow: hidden;
}

body[data-route-section="pdv-sale"] .pdv-checkout-step.is-open {
  background: rgba(19, 26, 35, 0.92);
  border-color: var(--sale-accent-border, rgba(45, 212, 191, 0.35));
}

body[data-route-section="pdv-sale"] .pdv-checkout-step-header {
  align-items: center;
  background: transparent;
  border: 0;
  color: var(--sale-text-main, #F4F7FA);
  cursor: pointer;
  display: grid;
  gap: 10px;
  grid-template-columns: minmax(0, 1fr) auto auto;
  padding: 14px;
  text-align: left;
  width: 100%;
}

body[data-route-section="pdv-sale"] .pdv-checkout-step-copy {
  display: grid;
  gap: 2px;
  min-width: 0;
}

body[data-route-section="pdv-sale"] .pdv-checkout-step-copy strong {
  color: var(--sale-text-main);
  font-size: 0.98rem;
}

body[data-route-section="pdv-sale"] .pdv-checkout-step-copy small {
  color: var(--sale-text-muted, #AAB4C0);
  font-size: 0.78rem;
  line-height: 1.3;
}

body[data-route-section="pdv-sale"] .pdv-checkout-step-status {
  align-items: center;
  border-radius: 999px;
  display: inline-flex;
  font-size: 0.72rem;
  font-weight: 900;
  justify-content: center;
  min-height: 24px;
  padding: 4px 9px;
  white-space: nowrap;
}

body[data-route-section="pdv-sale"] .pdv-checkout-step-status.is-done {
  background: var(--sale-success-soft, rgba(52, 211, 153, 0.12));
  border: 1px solid var(--sale-success-border, rgba(52, 211, 153, 0.28));
  color: var(--sale-success, #34D399);
}

body[data-route-section="pdv-sale"] .pdv-checkout-step-status.is-pending {
  background: var(--sale-warning-soft, rgba(245, 158, 11, 0.12));
  border: 1px solid var(--sale-warning-border, rgba(245, 158, 11, 0.35));
  color: var(--sale-warning, #F59E0B);
}

body[data-route-section="pdv-sale"] .pdv-checkout-step-status.is-danger {
  background: var(--sale-danger-soft, rgba(239, 68, 68, 0.12));
  border: 1px solid var(--sale-danger-border, rgba(239, 68, 68, 0.3));
  color: var(--sale-danger, #EF4444);
}

body[data-route-section="pdv-sale"] .pdv-checkout-step-status.is-neutral,
body[data-route-section="pdv-sale"] .pdv-checkout-step-status.is-muted {
  background: rgba(148, 163, 184, 0.1);
  border: 1px solid rgba(148, 163, 184, 0.18);
  color: var(--sale-text-muted, #AAB4C0);
}

body[data-route-section="pdv-sale"] .pdv-checkout-step-chevron {
  color: var(--sale-text-subtle, #7F8A99);
  font-size: 0.95rem;
}

body[data-route-section="pdv-sale"] .pdv-checkout-step-body {
  border-top: 1px solid var(--sale-divider, rgba(255, 255, 255, 0.06));
  display: grid;
  gap: 12px;
  padding: 14px;
}

body[data-route-section="pdv-sale"] .pdv-checkout-step-body.is-collapsed {
  display: none;
}

body[data-route-section="pdv-sale"] .pdv-checkout-step-body .pdv-sale-discount-panel,
body[data-route-section="pdv-sale"] .pdv-checkout-step-body .pdv-cashback-checkout-card {
  border-radius: 16px;
  padding: 14px;
}

body[data-route-section="pdv-sale"] .pdv-checkout-step-body .pdv-payment-panel-v4 {
  background: transparent;
  border: 0;
  display: grid;
  gap: 12px;
  padding: 0;
}

body[data-route-section="pdv-sale"] .pdv-checkout-step-body .pdv-payment-scroller-v4 {
  max-height: 360px;
  overflow-y: auto;
  padding-right: 4px;
}

body[data-route-section="pdv-sale"] .pdv-checkout-step-body .pdv-payment-launched-panel {
  background: rgba(11, 15, 20, 0.58);
  border: 1px solid var(--sale-border-soft, rgba(255, 255, 255, 0.07));
  border-radius: 16px;
}

@media (max-width: 720px) {
  body[data-route-section="pdv-sale"] .pdv-checkout-step-header {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  body[data-route-section="pdv-sale"] .pdv-checkout-step-chevron {
    display: none;
  }
}

body[data-route-section="pdv-sale"] *::-webkit-scrollbar-track {
  background: var(--sale-bg-shell);
}

body[data-route-section="pdv-sale"] *::-webkit-scrollbar-thumb {
  background: var(--sale-border-strong);
}

body[data-route-section="pdv-sale"] *::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.18);
}

.pdv-exchanges-shell {
  display: grid;
  gap: 18px;
}

.pdv-exchanges-hero,
.pdv-exchange-panel {
  border: 1px solid rgba(255, 255, 255, 0.09);
  background: linear-gradient(145deg, rgba(15, 23, 42, 0.94), rgba(8, 13, 22, 0.96));
  border-radius: 22px;
  box-shadow: 0 22px 50px rgba(0, 0, 0, 0.24);
}

.pdv-exchanges-hero {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 26px;
}

.pdv-exchanges-hero span,
.pdv-exchange-panel-head span {
  color: #9fb7cf;
  display: block;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.pdv-exchanges-hero h2 {
  color: #fff;
  font-size: clamp(1.7rem, 4vw, 3rem);
  line-height: 0.95;
  margin: 8px 0 10px;
}

.pdv-exchanges-hero p,
.pdv-exchange-panel small,
.pdv-exchange-panel span,
.pdv-exchange-summary-card p {
  color: rgba(232, 238, 247, 0.68);
}

.pdv-exchanges-hero > strong {
  align-self: start;
  background: rgba(44, 211, 162, 0.14);
  border: 1px solid rgba(44, 211, 162, 0.28);
  border-radius: 999px;
  color: #a8f3d4;
  padding: 8px 12px;
}

.pdv-exchange-layout {
  display: grid;
  grid-template-columns: minmax(240px, 0.9fr) minmax(360px, 1.55fr) minmax(260px, 0.95fr);
  gap: 16px;
}

.pdv-exchange-panel {
  padding: 18px;
  min-width: 0;
}

.pdv-exchange-panel-head {
  margin-bottom: 14px;
}

.pdv-exchange-panel-head strong {
  color: #fff;
  display: block;
  font-size: 1.2rem;
  margin-top: 3px;
}

.pdv-exchange-search {
  display: grid;
  gap: 8px;
  grid-template-columns: minmax(0, 1fr) auto;
  margin-bottom: 14px;
}

.pdv-exchange-search input,
.pdv-exchange-form-grid select,
.pdv-exchange-form-grid textarea,
.pdv-exchange-summary-card input,
.pdv-exchange-summary-card select {
  background: rgba(4, 10, 16, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 13px;
  color: #fff;
  min-width: 0;
  padding: 12px 13px;
  width: 100%;
}

.pdv-exchange-origin-list,
.pdv-exchange-items,
.pdv-exchange-products {
  display: grid;
  gap: 10px;
}

.pdv-exchange-origin-card,
.pdv-exchange-item-card,
.pdv-exchange-product-card,
.pdv-exchange-selected-sale,
.pdv-exchange-summary-card,
.pdv-exchange-receipt {
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 18px;
}

.pdv-exchange-origin-card,
.pdv-exchange-item-card {
  color: inherit;
  cursor: pointer;
  display: grid;
  gap: 5px;
  padding: 14px;
  text-align: left;
  width: 100%;
}

.pdv-exchange-origin-card:hover,
.pdv-exchange-item-card:hover,
.pdv-exchange-item-card.active,
.pdv-exchange-product-card.active {
  border-color: rgba(44, 211, 162, 0.45);
  background: rgba(44, 211, 162, 0.08);
}

.pdv-exchange-origin-card strong,
.pdv-exchange-item-card strong,
.pdv-exchange-product-card strong,
.pdv-exchange-summary-card strong,
.pdv-exchange-receipt strong {
  color: #fff;
}

.pdv-exchange-origin-card em,
.pdv-exchange-item-card em {
  color: #a8f3d4;
  font-style: normal;
  font-weight: 800;
}

.pdv-exchange-item-card {
  align-items: center;
  grid-template-columns: minmax(0, 1fr) auto;
}

.pdv-exchange-item-card.is-blocked,
.pdv-exchange-item-card:disabled {
  cursor: not-allowed;
  opacity: 0.72;
}

.pdv-exchange-item-warning {
  color: #ffd37a;
  font-weight: 800;
}

.pdv-exchange-form-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 16px 0 20px;
}

.pdv-exchange-form-grid label,
.pdv-exchange-summary-card label {
  color: rgba(232, 238, 247, 0.78);
  display: grid;
  font-size: 0.82rem;
  font-weight: 800;
  gap: 7px;
}

.pdv-exchange-wide {
  grid-column: 1 / -1;
}

.pdv-exchange-product-card {
  align-items: center;
  display: grid;
  gap: 14px;
  grid-template-columns: 84px minmax(0, 1fr) minmax(140px, auto);
  padding: 12px;
}

.pdv-exchange-mini-cart {
  background: rgba(44, 211, 162, 0.07);
  border: 1px solid rgba(44, 211, 162, 0.22);
  border-radius: 18px;
  display: grid;
  gap: 10px;
  margin: 0 0 14px;
  padding: 12px;
}

.pdv-exchange-customer-panel {
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  display: grid;
  gap: 10px;
  margin: 16px 0;
  padding: 14px;
}

.pdv-exchange-panel-head.compact {
  margin-bottom: 4px;
}

.pdv-exchange-customer-results {
  display: grid;
  gap: 8px;
}

.pdv-exchange-customer-result {
  background: rgba(4, 10, 16, 0.52);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 13px;
  color: inherit;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  padding: 10px;
  text-align: left;
}

.pdv-exchange-customer-result:hover {
  border-color: rgba(44, 211, 162, 0.42);
}

.pdv-exchange-quick-customer {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(3, minmax(0, 1fr)) auto;
}

.pdv-exchange-quick-customer label {
  color: rgba(232, 238, 247, 0.76);
  display: grid;
  font-size: 0.78rem;
  font-weight: 800;
  gap: 5px;
}

.pdv-exchange-quick-customer input {
  background: rgba(4, 10, 16, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 12px;
  color: #fff;
  min-width: 0;
  padding: 10px;
}

.pdv-exchange-mini-cart.empty {
  background: rgba(255, 255, 255, 0.035);
  border-color: rgba(255, 255, 255, 0.08);
}

.pdv-exchange-mini-cart-head,
.pdv-exchange-cart-line,
.pdv-exchange-cart-line-actions {
  align-items: center;
  display: flex;
  gap: 10px;
}

.pdv-exchange-mini-cart-head,
.pdv-exchange-cart-line {
  justify-content: space-between;
}

.pdv-exchange-cart-line {
  background: rgba(4, 10, 16, 0.42);
  border-radius: 14px;
  padding: 10px;
}

.pdv-exchange-cart-line-actions {
  flex-wrap: wrap;
  justify-content: flex-end;
}

.ghost-button.tiny {
  border-radius: 9px;
  font-size: 0.72rem;
  min-height: 28px;
  padding: 5px 8px;
}

.ghost-button.tiny.danger {
  color: #ffb1b1;
}

.pdv-exchange-product-thumb {
  align-items: center;
  background: rgba(15, 23, 42, 0.92);
  border-radius: 16px;
  display: flex;
  height: 84px;
  justify-content: center;
  overflow: hidden;
  width: 84px;
}

.pdv-exchange-product-thumb img {
  height: 100%;
  object-fit: cover;
  object-position: center top;
  width: 100%;
}

.pdv-exchange-product-side {
  display: grid;
  gap: 7px;
  justify-items: end;
}

.pdv-exchange-summary-card,
.pdv-exchange-receipt {
  display: grid;
  gap: 12px;
  padding: 16px;
}

.exchange-receipt-print {
  display: none;
}

.pdv-exchange-summary-card > div,
.pdv-exchange-receipt > div {
  align-items: center;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  justify-content: space-between;
  padding-top: 10px;
}

.pdv-exchange-summary-card .is-warning strong {
  color: #ffd37a;
}

.pdv-exchange-summary-card .is-balanced strong,
.pdv-exchange-product-side .is-balanced {
  color: #a8f3d4;
}

.pdv-exchange-product-side .is-danger {
  color: #ff9c9c;
}

/* PDV Trocas - paleta dark premium grafite + teal (somente cores) */
body[data-route-section="pdv-exchanges"] {
  --exchange-bg-app: #0B0F14;
  --exchange-bg-shell: #0F141B;
  --exchange-bg-panel: #131A23;
  --exchange-bg-card: #171F2A;
  --exchange-border-soft: rgba(255, 255, 255, 0.07);
  --exchange-border-strong: rgba(255, 255, 255, 0.12);
  --exchange-divider: rgba(255, 255, 255, 0.06);
  --exchange-text-main: #F4F7FA;
  --exchange-text-muted: #AAB4C0;
  --exchange-text-subtle: #7F8A99;
  --exchange-accent: #2DD4BF;
  --exchange-accent-strong: #14B8A6;
  --exchange-accent-soft: rgba(45, 212, 191, 0.12);
  --exchange-accent-border: rgba(45, 212, 191, 0.35);
  --exchange-success: #34D399;
  --exchange-success-soft: rgba(52, 211, 153, 0.12);
  --exchange-warning: #F59E0B;
  --exchange-warning-soft: rgba(245, 158, 11, 0.12);
  --exchange-warning-border: rgba(245, 158, 11, 0.35);
  --exchange-danger: #EF4444;
  --exchange-danger-soft: rgba(239, 68, 68, 0.12);
  background: var(--exchange-bg-app);
}

body[data-route-section="pdv-exchanges"] .content {
  background: var(--exchange-bg-app);
}

body[data-route-section="pdv-exchanges"] .pdv-hero-card,
body[data-route-section="pdv-exchanges"] .pdv-route-shell-compact,
body[data-route-section="pdv-exchanges"] .pdv-exchanges-hero,
body[data-route-section="pdv-exchanges"] .pdv-exchange-panel {
  background:
    radial-gradient(circle at top left, rgba(45, 212, 191, 0.035), transparent 32%),
    linear-gradient(145deg, var(--exchange-bg-shell), var(--exchange-bg-panel));
  border-color: var(--exchange-border-soft);
  box-shadow: 0 22px 50px rgba(0, 0, 0, 0.28);
}

body[data-route-section="pdv-exchanges"] .pdv-hero-card h3,
body[data-route-section="pdv-exchanges"] .pdv-exchanges-hero h2,
body[data-route-section="pdv-exchanges"] .pdv-exchange-panel-head strong,
body[data-route-section="pdv-exchanges"] .pdv-exchange-origin-card strong,
body[data-route-section="pdv-exchanges"] .pdv-exchange-item-card strong,
body[data-route-section="pdv-exchanges"] .pdv-exchange-product-card strong,
body[data-route-section="pdv-exchanges"] .pdv-exchange-summary-card strong,
body[data-route-section="pdv-exchanges"] .pdv-exchange-receipt strong {
  color: var(--exchange-text-main);
}

body[data-route-section="pdv-exchanges"] .pdv-hero-card .eyebrow,
body[data-route-section="pdv-exchanges"] .pdv-exchanges-hero span,
body[data-route-section="pdv-exchanges"] .pdv-exchange-panel-head span {
  color: var(--exchange-accent);
}

body[data-route-section="pdv-exchanges"] .pdv-exchanges-hero p,
body[data-route-section="pdv-exchanges"] .pdv-exchange-panel small,
body[data-route-section="pdv-exchanges"] .pdv-exchange-panel span,
body[data-route-section="pdv-exchanges"] .pdv-exchange-summary-card p,
body[data-route-section="pdv-exchanges"] .pdv-exchange-receipt p {
  color: var(--exchange-text-muted);
}

body[data-route-section="pdv-exchanges"] .pdv-route-tab {
  background: var(--exchange-bg-card);
  border-color: var(--exchange-border-soft);
  color: var(--exchange-text-muted);
}

body[data-route-section="pdv-exchanges"] .pdv-route-tab:hover,
body[data-route-section="pdv-exchanges"] .pdv-route-tab.active {
  background: var(--exchange-accent-soft);
  border-color: var(--exchange-accent-border);
  color: var(--exchange-text-main);
  box-shadow: 0 10px 26px rgba(20, 184, 166, 0.12);
}

body[data-route-section="pdv-exchanges"] .pdv-route-tab.active {
  color: var(--exchange-accent);
}

body[data-route-section="pdv-exchanges"] .pdv-exchanges-hero > strong {
  background: var(--exchange-accent-soft);
  border-color: var(--exchange-accent-border);
  color: var(--exchange-accent);
}

body[data-route-section="pdv-exchanges"] .pdv-exchange-search input,
body[data-route-section="pdv-exchanges"] .pdv-exchange-form-grid select,
body[data-route-section="pdv-exchanges"] .pdv-exchange-form-grid textarea,
body[data-route-section="pdv-exchanges"] .pdv-exchange-summary-card input,
body[data-route-section="pdv-exchanges"] .pdv-exchange-summary-card select,
body[data-route-section="pdv-exchanges"] .pdv-exchange-quick-customer input {
  background: var(--exchange-bg-app);
  border-color: var(--exchange-border-soft);
  color: var(--exchange-text-main);
}

body[data-route-section="pdv-exchanges"] .pdv-exchange-search input::placeholder,
body[data-route-section="pdv-exchanges"] .pdv-exchange-form-grid textarea::placeholder,
body[data-route-section="pdv-exchanges"] .pdv-exchange-summary-card input::placeholder,
body[data-route-section="pdv-exchanges"] .pdv-exchange-quick-customer input::placeholder {
  color: var(--exchange-text-subtle);
}

body[data-route-section="pdv-exchanges"] .pdv-exchange-search input:focus,
body[data-route-section="pdv-exchanges"] .pdv-exchange-form-grid select:focus,
body[data-route-section="pdv-exchanges"] .pdv-exchange-form-grid textarea:focus,
body[data-route-section="pdv-exchanges"] .pdv-exchange-summary-card input:focus,
body[data-route-section="pdv-exchanges"] .pdv-exchange-summary-card select:focus,
body[data-route-section="pdv-exchanges"] .pdv-exchange-quick-customer input:focus {
  border-color: var(--exchange-accent-border);
  box-shadow: 0 0 0 3px var(--exchange-accent-soft);
  outline: none;
}

body[data-route-section="pdv-exchanges"] .pdv-exchange-origin-card,
body[data-route-section="pdv-exchanges"] .pdv-exchange-item-card,
body[data-route-section="pdv-exchanges"] .pdv-exchange-product-card,
body[data-route-section="pdv-exchanges"] .pdv-exchange-selected-sale,
body[data-route-section="pdv-exchanges"] .pdv-exchange-summary-card,
body[data-route-section="pdv-exchanges"] .pdv-exchange-receipt,
body[data-route-section="pdv-exchanges"] .pdv-exchange-customer-panel,
body[data-route-section="pdv-exchanges"] .pdv-exchange-customer-result,
body[data-route-section="pdv-exchanges"] .pdv-exchange-mini-cart.empty,
body[data-route-section="pdv-exchanges"] .pdv-exchange-cart-line {
  background: var(--exchange-bg-card);
  border-color: var(--exchange-border-soft);
}

body[data-route-section="pdv-exchanges"] .pdv-exchange-origin-card:hover,
body[data-route-section="pdv-exchanges"] .pdv-exchange-item-card:hover,
body[data-route-section="pdv-exchanges"] .pdv-exchange-customer-result:hover,
body[data-route-section="pdv-exchanges"] .pdv-exchange-item-card.active,
body[data-route-section="pdv-exchanges"] .pdv-exchange-product-card.active,
body[data-route-section="pdv-exchanges"] .pdv-exchange-selected-sale {
  background: var(--exchange-accent-soft);
  border-color: var(--exchange-accent-border);
}

body[data-route-section="pdv-exchanges"] .pdv-exchange-origin-card.has-exchange-history {
  background: linear-gradient(135deg, var(--exchange-warning-soft), rgba(245, 158, 11, 0.05));
  border-color: var(--exchange-warning-border);
}

body[data-route-section="pdv-exchanges"] .pdv-exchange-origin-card.has-exchange-history:hover {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.18), rgba(245, 158, 11, 0.08));
  border-color: rgba(245, 158, 11, 0.55);
}

body[data-route-section="pdv-exchanges"] .pdv-exchange-origin-card.has-exchange-history em {
  color: var(--exchange-warning);
}

body[data-route-section="pdv-exchanges"] .pdv-exchange-origin-alert {
  color: var(--exchange-warning);
  font-weight: 800;
}

body[data-route-section="pdv-exchanges"] .pdv-exchange-mini-cart {
  background: var(--exchange-accent-soft);
  border-color: var(--exchange-accent-border);
}

body[data-route-section="pdv-exchanges"] .pdv-exchange-form-grid label,
body[data-route-section="pdv-exchanges"] .pdv-exchange-summary-card label,
body[data-route-section="pdv-exchanges"] .pdv-exchange-quick-customer label {
  color: var(--exchange-text-muted);
}

body[data-route-section="pdv-exchanges"] .pdv-exchange-product-thumb {
  background: var(--exchange-bg-shell);
  color: var(--exchange-text-muted);
}

body[data-route-section="pdv-exchanges"] .pdv-exchange-summary-card > div,
body[data-route-section="pdv-exchanges"] .pdv-exchange-receipt > div {
  border-top-color: var(--exchange-divider);
}

body[data-route-section="pdv-exchanges"] .pdv-exchange-origin-card em,
body[data-route-section="pdv-exchanges"] .pdv-exchange-item-card em,
body[data-route-section="pdv-exchanges"] .pdv-exchange-summary-card .is-balanced strong,
body[data-route-section="pdv-exchanges"] .pdv-exchange-product-side .is-balanced {
  color: var(--exchange-success);
}

body[data-route-section="pdv-exchanges"] .pdv-exchange-origin-card.has-exchange-history,
body[data-route-section="pdv-exchanges"] .pdv-exchange-origin-card.has-exchange-history:hover {
  background:
    linear-gradient(135deg, rgba(245, 158, 11, 0.18), rgba(245, 158, 11, 0.07)),
    var(--exchange-bg-card);
  border-color: var(--exchange-warning-border);
  box-shadow: inset 4px 0 0 var(--exchange-warning), 0 18px 36px rgba(0, 0, 0, 0.2);
}

body[data-route-section="pdv-exchanges"] .pdv-exchange-origin-card.has-exchange-history em,
body[data-route-section="pdv-exchanges"] .pdv-exchange-origin-card.has-exchange-history .pdv-exchange-origin-alert {
  color: var(--exchange-warning);
}

body[data-route-section="pdv-exchanges"] .pdv-exchange-summary-card .is-warning strong {
  color: var(--exchange-warning);
}

body[data-route-section="pdv-exchanges"] .pdv-exchange-item-card.is-blocked,
body[data-route-section="pdv-exchanges"] .pdv-exchange-item-card:disabled {
  background: var(--exchange-warning-soft);
  border-color: var(--exchange-warning-border);
}

body[data-route-section="pdv-exchanges"] .pdv-exchange-item-warning {
  color: var(--exchange-warning);
}

body[data-route-section="pdv-exchanges"] .pdv-exchange-product-side .is-danger,
body[data-route-section="pdv-exchanges"] .ghost-button.tiny.danger {
  color: var(--exchange-danger);
}

body[data-route-section="pdv-exchanges"] .pdv-payment-alert.warning {
  background: var(--exchange-warning-soft);
  border-color: var(--exchange-warning-border);
  color: var(--exchange-text-muted);
}

body[data-route-section="pdv-exchanges"] .pdv-payment-alert.warning strong {
  color: var(--exchange-warning);
}

body[data-route-section="pdv-exchanges"] .primary-button {
  background: linear-gradient(135deg, var(--exchange-accent-strong), var(--exchange-accent));
  border-color: rgba(45, 212, 191, 0.42);
  color: #06211F;
  box-shadow: 0 14px 32px rgba(20, 184, 166, 0.18);
}

body[data-route-section="pdv-exchanges"] .primary-button:hover:not(:disabled) {
  box-shadow: 0 18px 38px rgba(20, 184, 166, 0.24);
}

body[data-route-section="pdv-exchanges"] .secondary-button,
body[data-route-section="pdv-exchanges"] .ghost-button {
  background: var(--exchange-bg-card);
  border-color: var(--exchange-border-soft);
  color: var(--exchange-text-main);
}

body[data-route-section="pdv-exchanges"] .secondary-button:hover:not(:disabled),
body[data-route-section="pdv-exchanges"] .ghost-button:hover:not(:disabled) {
  background: var(--exchange-bg-panel);
  border-color: var(--exchange-border-strong);
}

@media print {
  @page {
    margin: 8mm;
    size: auto;
  }

  body.is-printing-exchange-receipt {
    background: #fff !important;
  }

  body.is-printing-exchange-receipt * {
    box-shadow: none !important;
    text-shadow: none !important;
    visibility: hidden !important;
  }

  body.is-printing-exchange-receipt .exchange-receipt-print,
  body.is-printing-exchange-receipt .exchange-receipt-print * {
    visibility: visible !important;
  }

  body.is-printing-exchange-receipt .exchange-receipt-print {
    background: #fff !important;
    color: #111 !important;
    display: block !important;
    font-family: "Times New Roman", Georgia, serif !important;
    left: 50% !important;
    line-height: 1.28 !important;
    margin: 0 !important;
    max-width: 92mm !important;
    padding: 0 !important;
    position: absolute !important;
    top: 0 !important;
    transform: translateX(-50%) !important;
    width: 80mm !important;
  }

  body.is-printing-exchange-receipt .exchange-receipt-print header {
    border-bottom: 2px solid #111 !important;
    display: grid !important;
    gap: 3px !important;
    margin-bottom: 8px !important;
    padding-bottom: 7px !important;
    text-align: center !important;
  }

  body.is-printing-exchange-receipt .exchange-receipt-print header strong {
    color: #111 !important;
    font-size: 18px !important;
    letter-spacing: 0.16em !important;
  }

  body.is-printing-exchange-receipt .exchange-receipt-print header span,
  body.is-printing-exchange-receipt .exchange-receipt-print footer {
    color: #333 !important;
    font-size: 10px !important;
    text-transform: uppercase !important;
  }

  body.is-printing-exchange-receipt .exchange-receipt-print-block,
  body.is-printing-exchange-receipt .exchange-receipt-policy,
  body.is-printing-exchange-receipt .exchange-receipt-print-total {
    border-bottom: 1px dashed #999 !important;
    margin: 0 0 8px !important;
    padding: 0 0 8px !important;
    page-break-inside: avoid !important;
  }

  body.is-printing-exchange-receipt .exchange-receipt-print-block h3 {
    color: #111 !important;
    font-size: 11px !important;
    letter-spacing: 0.08em !important;
    margin: 0 0 5px !important;
    text-transform: uppercase !important;
  }

  body.is-printing-exchange-receipt .exchange-receipt-print-block div {
    align-items: baseline !important;
    border: 0 !important;
    color: #111 !important;
    display: flex !important;
    font-size: 11px !important;
    justify-content: space-between !important;
    gap: 8px !important;
    padding: 2px 0 !important;
  }

  body.is-printing-exchange-receipt .exchange-receipt-print-block span,
  body.is-printing-exchange-receipt .exchange-receipt-muted,
  body.is-printing-exchange-receipt .exchange-receipt-policy p {
    color: #444 !important;
    font-size: 10px !important;
    margin: 0 !important;
  }

  body.is-printing-exchange-receipt .exchange-receipt-print-block strong,
  body.is-printing-exchange-receipt .exchange-receipt-product {
    color: #111 !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    margin: 0 0 3px !important;
    text-align: right !important;
  }

  body.is-printing-exchange-receipt .exchange-receipt-product {
    text-align: left !important;
  }

  body.is-printing-exchange-receipt .exchange-receipt-print-total {
    align-items: center !important;
    display: flex !important;
    justify-content: space-between !important;
  }

  body.is-printing-exchange-receipt .exchange-receipt-print-total span {
    color: #111 !important;
    font-size: 12px !important;
    font-weight: 700 !important;
  }

  body.is-printing-exchange-receipt .exchange-receipt-print-total strong {
    color: #111 !important;
    font-size: 18px !important;
  }

  body.is-printing-exchange-receipt .exchange-receipt-policy {
    display: grid !important;
    gap: 5px !important;
  }

  body.is-printing-exchange-receipt .exchange-receipt-print footer {
    display: block !important;
    padding-top: 4px !important;
    text-align: center !important;
  }
}

@media (max-width: 1100px) {
  .pdv-exchange-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  .pdv-exchanges-hero,
  .pdv-exchange-product-card,
  .pdv-exchange-search,
  .pdv-exchange-quick-customer,
  .pdv-exchange-form-grid {
    grid-template-columns: 1fr;
  }

  .pdv-exchanges-hero {
    display: grid;
  }

  .pdv-exchange-product-side {
    justify-items: stretch;
  }
}

/* =========================================
   AEROSTORE OS: SURGICAL PDV SALE SEARCH RESULTS SYMMETRY FIX
   ========================================= */

/* --- 1. CABEÇALHO DA LISTA (SEARCH HEADER & FORM) --- */
body[data-route-section="pdv-sale"] .pdv-sale-search-form {
  margin-bottom: 0 !important;
}
body[data-route-section="pdv-sale"] .pdv-sale-search-form input {
  border-radius: 12px !important;
  background: rgba(0, 0, 0, 0.25) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  height: 52px !important;
  font-size: 1.05rem !important;
  box-shadow: inset 0 2px 8px rgba(0,0,0,0.1) !important;
}
body[data-route-section="pdv-sale"] .pdv-sale-search-form input:focus {
  border-color: rgba(255, 255, 255, 0.2) !important;
  background: rgba(0, 0, 0, 0.4) !important;
}

body[data-route-section="pdv-sale"] .pdv-sale-product-results-head {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  padding: 6px 14px !important;
  margin-top: 16px !important;
  margin-bottom: 12px !important;
  background: rgba(255, 255, 255, 0.02) !important;
  border: 1px solid rgba(255, 255, 255, 0.05) !important;
  border-radius: 12px !important;
  color: rgba(255,255,255,0.6) !important;
  font-weight: 700 !important;
  font-size: 0.8rem !important;
  text-transform: uppercase !important;
  letter-spacing: 0.08em !important;
}

body[data-route-section="pdv-sale"] .pdv-product-results-close {
  background: rgba(255, 255, 255, 0.05) !important;
  border: 1px solid rgba(255, 255, 255, 0.05) !important;
  border-radius: 50% !important;
  width: 28px !important;
  height: 28px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  color: #fff !important;
  cursor: pointer !important;
  font-size: 1.1rem !important;
  line-height: 1 !important;
  transition: all 0.2s ease !important;
}
body[data-route-section="pdv-sale"] .pdv-product-results-close:hover {
  background: rgba(255, 255, 255, 0.15) !important;
  transform: scale(1.05) !important;
}

body[data-route-section="pdv-sale"] .pdv-sale-product-load-more {
  align-items: center;
  background: rgba(19, 26, 35, 0.82);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: space-between;
  margin-top: 10px;
  padding: 10px 12px;
}

body[data-route-section="pdv-sale"] .pdv-sale-product-load-more small {
  color: #7F8A99;
  font-size: 0.78rem;
  font-weight: 700;
}

/* --- 2. CONTAINER GERAL DOS RESULTADOS E SCROLLBAR MINIMALISTA --- */
body[data-route-section="pdv-sale"] .pdv-sale-search-results {
  gap: 12px !important;
  margin-top: 0 !important;
  padding-right: 8px !important; /* Respiro para a scrollbar */
}

body[data-route-section="pdv-sale"] .pdv-sale-search-results::-webkit-scrollbar {
  width: 6px !important;
}
body[data-route-section="pdv-sale"] .pdv-sale-search-results::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.1) !important;
  border-radius: 10px !important;
}
body[data-route-section="pdv-sale"] .pdv-sale-search-results::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.15) !important;
  border-radius: 10px !important;
}
body[data-route-section="pdv-sale"] .pdv-sale-search-results::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.25) !important;
}

/* --- 3. ALINHAMENTO DO CARD DE RESULTADO --- */
body[data-route-section="pdv-sale"] .pdv-sale-search-results .pdv-product-card {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) minmax(190px, 220px) !important;
  align-items: center !important;
  gap: 18px !important;
  min-height: auto !important;
  height: auto !important;
  padding: 16px !important;
  border-radius: 16px !important;
  background: linear-gradient(135deg, rgba(26, 32, 44, 0.9), rgba(18, 24, 34, 0.95)) !important;
  border: 1px solid rgba(255, 255, 255, 0.05) !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;
  overflow: hidden !important;
  transition: transform 0.2s ease, border-color 0.2s !important;
}
body[data-route-section="pdv-sale"] .pdv-sale-search-results .pdv-product-card:hover {
  transform: translateY(-2px) !important;
  border-color: rgba(255, 255, 255, 0.12) !important;
}

/* --- 4. ZONAS DO CARD: ESQUERDA (THUMBNAIL) & CENTRO (INFO) --- */
body[data-route-section="pdv-sale"] .pdv-sale-search-results .pdv-product-card-body {
  display: grid !important;
  grid-template-columns: 64px minmax(0, 1fr) !important;
  align-items: center !important;
  gap: 16px !important;
  min-width: 0 !important; /* Fundamental para text ellipsis interno */
  padding: 0 !important;
}

body[data-route-section="pdv-sale"] .pdv-sale-search-results .pdv-product-card-media {
  width: 64px !important;
  height: 64px !important;
  min-width: 64px !important;
  border-radius: 10px !important;
  background: rgba(0, 0, 0, 0.25) !important;
  border: 1px solid rgba(255, 255, 255, 0.04) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex-shrink: 0 !important;
  box-shadow: inset 0 2px 8px rgba(0,0,0,0.2) !important;
}

body[data-route-section="pdv-sale"] .pdv-sale-search-results .pdv-product-card-identity {
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
  gap: 4px !important;
  min-width: 0 !important;
  flex: 1 !important;
}

body[data-route-section="pdv-sale"] .pdv-sale-search-results .pdv-product-card-name {
  font-size: 1.05rem !important;
  font-weight: 700 !important;
  color: #fff !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  line-height: 1.2 !important;
}

body[data-route-section="pdv-sale"] .pdv-sale-search-results .pdv-product-card-identifiers {
  font-size: 0.8rem !important;
  color: rgba(255, 255, 255, 0.4) !important;
  margin-top: 2px !important;
}

body[data-route-section="pdv-sale"] .pdv-sale-search-results .pdv-product-card-tags {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 6px !important;
  margin-top: 4px !important;
}

body[data-route-section="pdv-sale"] .pdv-sale-search-results .pdv-product-card-tag {
  background: rgba(255, 255, 255, 0.06) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  color: rgba(255, 255, 255, 0.7) !important;
  padding: 3px 8px !important;
  border-radius: 6px !important;
  font-size: 0.65rem !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.05em !important;
}

/* --- 5. ZONAS DO CARD: DIREITA (PREÇO, ESTOQUE E BOTÃO) --- */
body[data-route-section="pdv-sale"] .pdv-sale-search-results .pdv-product-card-action {
  display: grid !important;
  align-items: flex-end !important;
  justify-content: center !important;
  gap: 7px !important;
  width: auto !important;
  min-width: 0 !important;
  max-width: 220px !important;
  text-align: right !important;
}

body[data-route-section="pdv-sale"] .pdv-sale-search-results .pdv-product-card-price {
  font-size: 1.25rem !important;
  font-weight: 800 !important;
  color: #fff !important;
  line-height: 1 !important;
}

body[data-route-section="pdv-sale"] .pdv-sale-search-results .pdv-product-card-stock {
  font-size: 0.75rem !important;
  display: grid !important;
  align-items: flex-end !important;
  line-height: 1.3 !important;
  max-width: 100% !important;
  min-width: 0 !important;
  gap: 3px !important;
}

body[data-route-section="pdv-sale"] .pdv-sale-search-results .pdv-product-card-stock strong {
  display: block !important;
  font-weight: 700 !important;
  font-size: 0.8rem !important;
  line-height: 1.2 !important;
  max-width: 100% !important;
  overflow-wrap: anywhere !important;
}

body[data-route-section="pdv-sale"] .pdv-sale-search-results .pdv-product-card-stock span {
  color: rgba(255, 255, 255, 0.4) !important;
  white-space: normal !important;
  overflow: visible !important;
  text-overflow: clip !important;
  max-width: 100% !important;
  font-size: 0.7rem !important;
  line-height: 1.25 !important;
  overflow-wrap: anywhere !important;
}

body[data-route-section="pdv-sale"] .pdv-sale-search-results .pdv-product-card-btn {
  padding: 8px 12px !important;
  font-size: 0.76rem !important;
  font-weight: 700 !important;
  border-radius: 8px !important;
  min-height: 34px !important;
  margin-top: 2px !important;
  width: 100% !important; /* Força o botão a ocupar o bloco da direita uniformemente */
  max-width: 100% !important;
  text-align: center !important;
  white-space: normal !important;
  line-height: 1.15 !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;
}

@media (max-width: 720px) {
  body[data-route-section="pdv-sale"] .pdv-sale-search-results .pdv-product-card {
    grid-template-columns: 1fr !important;
  }

  body[data-route-section="pdv-sale"] .pdv-sale-search-results .pdv-product-card-body {
    grid-template-columns: 58px minmax(0, 1fr) !important;
  }

  body[data-route-section="pdv-sale"] .pdv-sale-search-results .pdv-product-card-media {
    width: 58px !important;
    height: 58px !important;
    min-width: 58px !important;
  }

  body[data-route-section="pdv-sale"] .pdv-sale-search-results .pdv-product-card-action {
    align-items: stretch !important;
    max-width: none !important;
    text-align: left !important;
  }

  body[data-route-section="pdv-sale"] .pdv-sale-search-results .pdv-product-card-stock {
    align-items: flex-start !important;
    text-align: left !important;
  }
}

/* =========================================
   AEROSTORE OS: SURGICAL PDV PAYMENT BLOCK SYMMETRY FIX
   ========================================= */

/* OBJETIVO 1 — BARRA DE ROLAGEM MINIMALISTA */
body[data-route-section="pdv-sale"] .pdv-payment-scroller-v4 {
  scrollbar-width: thin !important;
  scrollbar-color: rgba(170,180,192,0.28) transparent !important;
  padding-right: 8px !important;
}
body[data-route-section="pdv-sale"] .pdv-payment-scroller-v4::-webkit-scrollbar {
  width: 6px !important;
}
body[data-route-section="pdv-sale"] .pdv-payment-scroller-v4::-webkit-scrollbar-track {
  background: transparent !important;
}
body[data-route-section="pdv-sale"] .pdv-payment-scroller-v4::-webkit-scrollbar-thumb {
  background: rgba(170,180,192,0.22) !important;
  border-radius: 999px !important;
}
body[data-route-section="pdv-sale"] .pdv-payment-scroller-v4::-webkit-scrollbar-thumb:hover {
  background: rgba(45,212,191,0.38) !important;
}

/* OBJETIVO 2 — COMPACTAR OS CARDS INDIVIDUAIS */
body[data-route-section="pdv-sale"] .pdv-payment-method-row {
  min-height: unset !important;
  padding: 14px 16px !important;
  gap: 10px !important;
}
body[data-route-section="pdv-sale"] .pdv-payment-method-row-main {
  gap: 10px !important;
}
body[data-route-section="pdv-sale"] .pdv-payment-method-name {
  font-size: 0.95rem !important;
  line-height: 1.2 !important;
}
body[data-route-section="pdv-sale"] .pdv-payment-method-input {
  min-height: 42px !important;
  height: 42px !important;
}
body[data-route-section="pdv-sale"] .pdv-payment-card-foot {
  margin-top: 8px !important;
}
body[data-route-section="pdv-sale"] .pdv-payment-card-foot button {
  min-height: 36px !important;
}

/* OBJETIVO 3 — REDUZIR O CARD DE AVISO PELA METADE */
body[data-route-section="pdv-sale"] .pdv-payment-launched-panel .pdv-sale-empty-state.compact {
  padding: 12px 14px !important;
  min-height: unset !important;
  gap: 4px !important;
}
body[data-route-section="pdv-sale"] .pdv-payment-launched-panel .pdv-sale-empty-state.compact strong {
  font-size: 0.95rem !important;
  line-height: 1.2 !important;
}
body[data-route-section="pdv-sale"] .pdv-payment-launched-panel .pdv-sale-empty-state.compact span {
  font-size: 0.82rem !important;
  line-height: 1.35 !important;
  margin: 0 !important;
}

/* =========================================
   AEROSTORE OS: SURGICAL PDV CUSTOMER CARD DARK PREMIUM FIX
   ========================================= */

/* 1. CARD PRINCIPAL */
body[data-route-section="pdv-sale"] .pdv-customer-profile.compact {
  background: #171F2A !important;
  border: 1px solid rgba(255,255,255,0.07) !important;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15) !important;
}

/* 2. AVATAR CIRCULAR */
body[data-route-section="pdv-sale"] .pdv-customer-profile-avatar {
  background: rgba(45,212,191,0.16) !important;
  border: 1px solid rgba(45,212,191,0.35) !important;
  color: #F4F7FA !important;
}

/* 3. BLOCO OPERACIONAL & 4. BADGE USÁVEL NA VENDA & 5. VALOR DISPONÍVEL */
body[data-route-section="pdv-sale"] .pdv-customer-cashback-row.positive {
  background: rgba(45,212,191,0.08) !important;
  border: 1px solid rgba(45,212,191,0.22) !important;
}
body[data-route-section="pdv-sale"] .pdv-customer-cashback-row.positive span {
  color: #AAB4C0 !important;
}
body[data-route-section="pdv-sale"] .pdv-customer-cashback-row.positive em {
  background: rgba(52,211,153,0.12) !important;
  border: 1px solid rgba(52,211,153,0.28) !important;
  color: #34D399 !important;
}
body[data-route-section="pdv-sale"] .pdv-customer-cashback-row.positive strong {
  color: #34D399 !important;
}

/* 6. CARD PENDENTE */
body[data-route-section="pdv-sale"] .pdv-customer-cashback-row {
  background: rgba(255,255,255,0.04) !important;
  border: 1px solid rgba(255,255,255,0.07) !important;
}
body[data-route-section="pdv-sale"] .pdv-customer-cashback-row span {
  color: #AAB4C0 !important;
}
body[data-route-section="pdv-sale"] .pdv-customer-cashback-row strong {
  color: #F4F7FA !important;
}

/* 7. CARD PREVISTO NESTA VENDA */
body[data-route-section="pdv-sale"] .pdv-customer-cashback-row.used {
  background: rgba(45,212,191,0.08) !important;
  border: 1px solid rgba(45,212,191,0.22) !important;
}
body[data-route-section="pdv-sale"] .pdv-customer-cashback-row.used span {
  color: #AAB4C0 !important;
}
body[data-route-section="pdv-sale"] .pdv-customer-cashback-row.used strong {
  color: #2DD4BF !important;
}

/* 8. ÁREA DE TICKET MÉDIO E ÚLTIMA COMPRA */
body[data-route-section="pdv-sale"] .pdv-customer-profile-stats {
  background: #131A23 !important;
  border: 1px solid rgba(255,255,255,0.07) !important;
}
body[data-route-section="pdv-sale"] .pdv-customer-profile-stat {
  border-right: 1px solid rgba(255,255,255,0.06) !important;
}
body[data-route-section="pdv-sale"] .pdv-customer-profile-stat:last-child {
  border-right: none !important;
}
body[data-route-section="pdv-sale"] .pdv-customer-profile-stat span {
  color: #7F8A99 !important;
}
body[data-route-section="pdv-sale"] .pdv-customer-profile-stat strong {
  color: #F4F7FA !important;
}

/* 9. TAGS/CATEGORIAS DO CLIENTE */
body[data-route-section="pdv-sale"] .pdv-sale-action-chips .pdv-sale-chip {
  background: rgba(45,212,191,0.12) !important;
  border: 1px solid rgba(45,212,191,0.35) !important;
  color: #2DD4BF !important;
}

/* 10. BOTÕES WHATSAPP E TROCAR CLIENTE */
body[data-route-section="pdv-sale"] .pdv-sale-customer-card-actions .secondary-button {
  background: #171F2A !important;
  border: 1px solid rgba(255,255,255,0.12) !important;
  color: #F4F7FA !important;
}
body[data-route-section="pdv-sale"] .pdv-sale-customer-card-actions .secondary-button:hover {
  background: rgba(45,212,191,0.10) !important;
  border-color: rgba(45,212,191,0.28) !important;
}

/* 11. INPUT BUSQUE POR NOME, TELEFONE OU CPF */
body[data-route-section="pdv-sale"] .pdv-sale-customer-search-form input {
  background: #0F141B !important;
  border: 1px solid rgba(255,255,255,0.07) !important;
  color: #F4F7FA !important;
}
body[data-route-section="pdv-sale"] .pdv-sale-customer-search-form input::placeholder {
  color: #7F8A99 !important;
}
body[data-route-section="pdv-sale"] .pdv-sale-customer-search-form input:focus {
  border-color: rgba(45,212,191,0.35) !important;
}

/* 12. CARD AUXILIAR CLIENTE SELECIONADO (Compactar) */
body[data-route-section="pdv-sale"] .pdv-sale-customer-results .pdv-sale-empty-state.compact {
  min-height: unset !important;
  padding: 12px 14px !important;
  gap: 4px !important;
  background: #171F2A !important;
  border: 1px solid rgba(255,255,255,0.07) !important;
}
body[data-route-section="pdv-sale"] .pdv-sale-customer-results .pdv-sale-empty-state.compact strong {
  font-size: 0.95rem !important;
  line-height: 1.2 !important;
  margin: 0 !important;
  color: #F4F7FA !important;
}
body[data-route-section="pdv-sale"] .pdv-sale-customer-results .pdv-sale-empty-state.compact span {
  font-size: 0.82rem !important;
  line-height: 1.35 !important;
  margin: 0 !important;
  color: #AAB4C0 !important;
}

/* =========================================
   AEROSTORE OS: SURGICAL PDV STOCK DARK PREMIUM FIX
   ========================================= */

/* 1. CONTAINER GERAL */
body[data-route-section="pdv-stock"] {
  background-color: #0B0F14 !important;
  background-image: none !important;
}

/* 2. TOPBAR */
body[data-route-section="pdv-stock"] .pdv-header {
  background: #0F141B !important;
  border-bottom: 1px solid rgba(255,255,255,0.07) !important;
}

/* 3. HEADER / HERO DA PÁGINA */
body[data-route-section="pdv-stock"] .pdv-hero-card,
body[data-route-section="pdv-stock"] .pdv-products-header {
  background: #131A23 !important;
  border: 1px solid rgba(255,255,255,0.07) !important;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15) !important;
  border-radius: 16px !important;
}
body[data-route-section="pdv-stock"] .pdv-hero-card h3,
body[data-route-section="pdv-stock"] .pdv-products-header h3 {
  color: #F4F7FA !important;
}
body[data-route-section="pdv-stock"] .pdv-hero-card .helper-text,
body[data-route-section="pdv-stock"] .pdv-products-header .table-meta {
  color: #AAB4C0 !important;
}
body[data-route-section="pdv-stock"] .pdv-hero-card .eyebrow {
  color: #2DD4BF !important;
}

/* 4. MENU / ROTAS OPERACIONAIS */
body[data-route-section="pdv-stock"] .pdv-route-shell {
  background: #131A23 !important;
  border: 1px solid rgba(255,255,255,0.07) !important;
  border-radius: 16px !important;
}
body[data-route-section="pdv-stock"] .pdv-route-tab.active {
  background: rgba(45,212,191,0.12) !important;
  border: 1px solid rgba(45,212,191,0.35) !important;
  color: #2DD4BF !important;
  border-radius: 999px !important;
}
body[data-route-section="pdv-stock"] .pdv-route-tab:not(.active) {
  background: #171F2A !important;
  border: 1px solid rgba(255,255,255,0.07) !important;
  color: #AAB4C0 !important;
  border-radius: 999px !important;
}

/* 5. CARDS PRINCIPAIS */
body[data-route-section="pdv-stock"] .panel,
body[data-route-section="pdv-stock"] .pdv-products-shell,
body[data-route-section="pdv-stock"] .pdv-stock-card {
  background: #131A23 !important;
  border: 1px solid rgba(255,255,255,0.07) !important;
  border-radius: 16px !important;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15) !important;
}

/* 6. KPIs / INDICADORES DE ESTOQUE */
body[data-route-section="pdv-stock"] .pdv-products-stat-card,
body[data-route-section="pdv-stock"] .stat-card {
  background: #171F2A !important;
  border: 1px solid rgba(255,255,255,0.07) !important;
  border-radius: 12px !important;
}
body[data-route-section="pdv-stock"] .pdv-products-stat-card span,
body[data-route-section="pdv-stock"] .stat-card span {
  color: #7F8A99 !important;
}
body[data-route-section="pdv-stock"] .pdv-products-stat-card strong,
body[data-route-section="pdv-stock"] .stat-card strong {
  color: #F4F7FA !important;
}
body[data-route-section="pdv-stock"] .pdv-products-stat-card small,
body[data-route-section="pdv-stock"] .stat-card small {
  color: #AAB4C0 !important;
}
body[data-route-section="pdv-stock"] .pdv-products-callout.warning {
  background: rgba(245,158,11,0.12) !important;
  border: 1px solid rgba(245,158,11,0.35) !important;
  border-radius: 12px !important;
}
body[data-route-section="pdv-stock"] .pdv-products-callout.warning strong {
  color: #F59E0B !important;
}
body[data-route-section="pdv-stock"] .pdv-products-callout.warning span {
  color: #F4F7FA !important;
}

/* 7. INPUTS / FILTROS / SELECTS */
body[data-route-section="pdv-stock"] .pdv-products-toolbar {
  background: #171F2A !important;
  border: 1px solid rgba(255,255,255,0.07) !important;
  border-radius: 12px !important;
  padding: 16px !important;
}
body[data-route-section="pdv-stock"] .pdv-products-toolbar label {
  color: #AAB4C0 !important;
}
body[data-route-section="pdv-stock"] .pdv-products-toolbar input,
body[data-route-section="pdv-stock"] .pdv-products-toolbar select {
  background: #0F141B !important;
  border: 1px solid rgba(255,255,255,0.07) !important;
  color: #F4F7FA !important;
  border-radius: 8px !important;
}
body[data-route-section="pdv-stock"] .pdv-products-toolbar input::placeholder {
  color: #7F8A99 !important;
}
body[data-route-section="pdv-stock"] .pdv-products-toolbar input:focus,
body[data-route-section="pdv-stock"] .pdv-products-toolbar select:focus {
  border-color: rgba(45,212,191,0.35) !important;
}

/* 8. BOTÕES */
body[data-route-section="pdv-stock"] .primary-button {
  background: #2DD4BF !important;
  color: #0B0F14 !important;
  border: none !important;
  border-radius: 999px !important;
}
body[data-route-section="pdv-stock"] .primary-button:hover {
  background: #14B8A6 !important;
}
body[data-route-section="pdv-stock"] .secondary-button {
  background: #171F2A !important;
  border: 1px solid rgba(255,255,255,0.12) !important;
  color: #F4F7FA !important;
  border-radius: 999px !important;
}
body[data-route-section="pdv-stock"] .secondary-button:hover {
  background: rgba(45,212,191,0.10) !important;
  border-color: rgba(45,212,191,0.28) !important;
}
body[data-route-section="pdv-stock"] .ghost-button {
  color: #AAB4C0 !important;
  background: transparent !important;
  border: 1px solid transparent !important;
  border-radius: 999px !important;
}
body[data-route-section="pdv-stock"] .ghost-button:hover {
  color: #F4F7FA !important;
  background: rgba(255,255,255,0.05) !important;
}

/* 9. TABELAS / LISTAS */
body[data-route-section="pdv-stock"] .pdv-products-table {
  background: transparent !important;
  min-width: 980px;
}
body[data-route-section="pdv-stock"] .pdv-stock-results-panel {
  overflow: hidden;
  display: grid;
  gap: 12px;
}
body[data-route-section="pdv-stock"] .pdv-stock-results-toolbar {
  align-items: center;
  background: #131A23;
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 16px;
  display: flex;
  gap: 12px;
  justify-content: space-between;
  padding: 10px 12px;
}
body[data-route-section="pdv-stock"] .pdv-stock-results-count {
  align-items: baseline;
  color: #AAB4C0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
body[data-route-section="pdv-stock"] .pdv-stock-results-count strong {
  color: #F4F7FA;
}
body[data-route-section="pdv-stock"] .pdv-stock-results-count small,
body[data-route-section="pdv-stock"] .pdv-stock-page-indicator {
  color: #7F8A99;
  font-size: 0.78rem;
}
body[data-route-section="pdv-stock"] .pdv-stock-results-controls {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}
body[data-route-section="pdv-stock"] .pdv-stock-results-controls label {
  align-items: center;
  color: #7F8A99;
  display: inline-flex;
  gap: 8px;
  font-size: 0.78rem;
}
body[data-route-section="pdv-stock"] .pdv-stock-results-controls select {
  background: #0F141B;
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 999px;
  color: #F4F7FA;
  min-height: 34px;
  padding: 0 12px;
}
body[data-route-section="pdv-products"] .pdv-products-pagination-row,
body[data-route-section="pdv-stock"] .pdv-stock-pagination-row {
  align-items: center;
  background: #131A23;
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 16px;
  color: #AAB4C0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: space-between;
  padding: 10px 12px;
}
body[data-route-section="pdv-products"] .pdv-products-pagination-row label,
body[data-route-section="pdv-stock"] .pdv-stock-pagination-row label {
  align-items: center;
  color: #7F8A99;
  display: inline-flex;
  gap: 8px;
  font-size: 0.78rem;
}
body[data-route-section="pdv-products"] .pdv-products-pagination-row select,
body[data-route-section="pdv-stock"] .pdv-stock-pagination-row select {
  background: #0F141B;
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 999px;
  color: #F4F7FA;
  min-height: 34px;
  padding: 0 12px;
}
body[data-route-section="pdv-stock"] .pdv-stock-results-scroll {
  max-height: min(720px, calc(100vh - 320px));
  overflow: auto;
  padding-right: 4px;
  scrollbar-color: rgba(170,180,192,0.24) transparent;
  scrollbar-width: thin;
}
body[data-route-section="pdv-stock"] .pdv-products-table thead th {
  background: #0F141B !important;
  color: #AAB4C0 !important;
  border-bottom: 1px solid rgba(255,255,255,0.07) !important;
  position: sticky;
  top: 0;
  z-index: 2;
}
body[data-route-section="pdv-stock"] .pdv-products-table th,
body[data-route-section="pdv-stock"] .pdv-products-table td {
  padding: 12px 14px !important;
  vertical-align: middle !important;
}
body[data-route-section="pdv-stock"] .pdv-products-table tbody tr {
  background: #131A23 !important;
  border-bottom: 1px solid rgba(255,255,255,0.06) !important;
  min-height: 82px;
}
body[data-route-section="pdv-stock"] .pdv-products-table tbody tr:hover {
  background: #171F2A !important;
}
body[data-route-section="pdv-stock"] .pdv-products-table tbody tr.is-selected {
  background: rgba(45,212,191,0.08) !important;
  border-left: 3px solid #2DD4BF !important;
}
body[data-route-section="pdv-stock"] .pdv-products-name-cell strong {
  color: #F4F7FA !important;
}
body[data-route-section="pdv-stock"] .pdv-products-name-cell small {
  color: #7F8A99 !important;
}
body[data-route-section="pdv-stock"] .pdv-products-stock-cell strong {
  color: #F4F7FA !important;
}
body[data-route-section="pdv-stock"] .pdv-products-stock-cell small {
  color: #AAB4C0 !important;
}
body[data-route-section="pdv-stock"] .pdv-products-price-cell strong {
  color: #F4F7FA !important;
}
body[data-route-section="pdv-stock"] .pdv-products-price-cell small {
  color: #7F8A99 !important;
}
body[data-route-section="pdv-stock"] .pdv-stock-product-cell {
  gap: 12px !important;
  grid-template-columns: 64px minmax(0, 1fr) !important;
  min-width: 280px !important;
}
body[data-route-section="pdv-stock"] .pdv-stock-product-cell .pdv-products-photo.is-product-media {
  border-radius: 14px !important;
  height: 72px !important;
  min-width: 64px !important;
  width: 64px !important;
}
body[data-route-section="pdv-stock"] .pdv-products-identifiers {
  gap: 6px !important;
  min-width: 180px !important;
}
body[data-route-section="pdv-stock"] .pdv-products-action-row {
  justify-content: flex-end !important;
}
body[data-route-section="pdv-stock"] .empty-state.compact {
  background: #171F2A !important;
  border: 1px solid rgba(255,255,255,0.07) !important;
  border-radius: 12px !important;
}
body[data-route-section="pdv-stock"] .empty-state.compact strong {
  color: #F4F7FA !important;
}
body[data-route-section="pdv-stock"] .empty-state.compact span {
  color: #AAB4C0 !important;
}

/* 10. BADGES / CHIPS / STATUS */
body[data-route-section="pdv-stock"] .pdv-products-status-badge {
  background: #171F2A !important;
  border: 1px solid rgba(255,255,255,0.07) !important;
  color: #AAB4C0 !important;
  border-radius: 999px !important;
}
body[data-route-section="pdv-stock"] .pdv-products-status-badge.is-active,
body[data-route-section="pdv-stock"] .pdv-products-status-badge.is-available {
  background: rgba(52,211,153,0.12) !important;
  border: 1px solid rgba(52,211,153,0.28) !important;
  color: #34D399 !important;
}
body[data-route-section="pdv-stock"] .pdv-products-status-badge.is-low {
  background: rgba(245,158,11,0.12) !important;
  border: 1px solid rgba(245,158,11,0.35) !important;
  color: #F59E0B !important;
}
body[data-route-section="pdv-stock"] .pdv-products-status-badge.is-out,
body[data-route-section="pdv-stock"] .pdv-products-status-badge.is-negative {
  background: rgba(239,68,68,0.12) !important;
  border: 1px solid rgba(239,68,68,0.30) !important;
  color: #EF4444 !important;
}
body[data-route-section="pdv-stock"] .pdv-sale-chip,
body[data-route-section="pdv-stock"] .pdv-products-identifiers span {
  background: rgba(45,212,191,0.12) !important;
  border: 1px solid rgba(45,212,191,0.35) !important;
  color: #2DD4BF !important;
  border-radius: 999px !important;
}

/* 11. SCROLLBARS */
body[data-route-section="pdv-stock"] ::-webkit-scrollbar {
  width: 6px !important;
  height: 6px !important;
}
body[data-route-section="pdv-stock"] ::-webkit-scrollbar-track {
  background: transparent !important;
}
body[data-route-section="pdv-stock"] ::-webkit-scrollbar-thumb {
  background: rgba(170,180,192,0.22) !important;
  border-radius: 999px !important;
}
body[data-route-section="pdv-stock"] ::-webkit-scrollbar-thumb:hover {
  background: rgba(45,212,191,0.38) !important;
}
body[data-route-section="pdv-stock"] .pdv-stock-results-scroll::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
body[data-route-section="pdv-stock"] .pdv-stock-results-scroll::-webkit-scrollbar-track,
body[data-route-section="pdv-stock"] .pdv-stock-results-scroll::-webkit-scrollbar-corner {
  background: transparent;
}
body[data-route-section="pdv-stock"] .pdv-stock-results-scroll::-webkit-scrollbar-thumb {
  background: rgba(170,180,192,0.22);
  border-radius: 999px;
}
body[data-route-section="pdv-stock"] .pdv-stock-results-scroll::-webkit-scrollbar-thumb:hover {
  background: rgba(45,212,191,0.38);
}

@media (max-width: 920px) {
  body[data-route-section="pdv-stock"] .pdv-stock-results-toolbar {
    align-items: flex-start;
    flex-direction: column;
  }
  body[data-route-section="pdv-stock"] .pdv-stock-results-controls {
    justify-content: flex-start;
  }
  body[data-route-section="pdv-stock"] .pdv-stock-results-scroll {
    max-height: min(620px, calc(100vh - 260px));
  }
}

/* =========================================
   GLOBAL SIDEBAR - AEROSTORE OS
   ========================================= */

:root {
  --aero-sidebar-open: 274px;
  --aero-sidebar-closed: 72px;
}

body[data-auth-shell="authenticated"] .sidebar {
  width: var(--aero-sidebar-open) !important;
  display: flex !important;
  position: fixed;
  inset: 0 auto 0 0;
  padding: 18px 16px;
  gap: 14px;
  overflow-x: hidden;
  overflow-y: auto;
  background:
    radial-gradient(circle at 16% 0%, rgba(45,212,191,0.14), transparent 34%),
    linear-gradient(180deg, #0F141B 0%, #0B0F14 100%) !important;
  border-right: 1px solid rgba(255,255,255,0.07) !important;
  box-shadow: 18px 0 44px rgba(0,0,0,0.24);
  color: #F4F7FA;
  transform: none !important;
  opacity: 1 !important;
  pointer-events: auto !important;
  z-index: 80;
  scrollbar-width: thin;
  scrollbar-color: rgba(170,180,192,0.16) transparent;
}

body[data-auth-shell="authenticated"] .sidebar::-webkit-scrollbar {
  width: 5px;
  height: 5px;
}

body[data-auth-shell="authenticated"] .sidebar::-webkit-scrollbar-track,
body[data-auth-shell="authenticated"] .sidebar::-webkit-scrollbar-corner {
  background: transparent;
}

body[data-auth-shell="authenticated"] .sidebar::-webkit-scrollbar-thumb {
  background: rgba(170,180,192,0.16);
  border-radius: 999px;
}

body[data-auth-shell="authenticated"] .sidebar::-webkit-scrollbar-thumb:hover {
  background: rgba(45,212,191,0.28);
}

body[data-auth-shell="authenticated"] .content {
  margin-left: var(--aero-sidebar-open) !important;
  width: calc(100% - var(--aero-sidebar-open)) !important;
  max-width: calc(100vw - var(--aero-sidebar-open)) !important;
}

body[data-auth-shell="authenticated"].sidebar-collapsed .sidebar {
  width: var(--aero-sidebar-closed) !important;
  padding: 14px 10px;
}

body[data-auth-shell="authenticated"].sidebar-collapsed .content {
  margin-left: var(--aero-sidebar-closed) !important;
  width: calc(100% - var(--aero-sidebar-closed)) !important;
  max-width: calc(100vw - var(--aero-sidebar-closed)) !important;
}

body[data-auth-shell="authenticated"] .sidebar-toggle-row {
  display: flex !important;
  justify-content: flex-end;
  margin: 0;
}

body[data-auth-shell="authenticated"] .sidebar-toggle-btn,
body[data-auth-shell="authenticated"][data-route-section^="pdv-"] .sidebar-toggle-btn,
body[data-auth-shell="authenticated"][data-section^="pdv-"] .sidebar-toggle-btn {
  display: inline-flex !important;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 12px;
  background: #131A23;
  color: #AAB4C0;
}

body[data-auth-shell="authenticated"] .sidebar-toggle-btn:hover {
  color: #2DD4BF;
  border-color: rgba(45,212,191,0.35);
  background: rgba(45,212,191,0.12);
}

body[data-auth-shell="authenticated"] .sidebar-expand-btn {
  display: none !important;
}

body[data-auth-shell="authenticated"] .brand {
  display: grid;
  gap: 8px;
  place-items: center;
  padding: 14px;
  border-radius: 18px;
  background: #131A23;
  border: 1px solid rgba(255,255,255,0.07);
  box-shadow: none;
}

body[data-auth-shell="authenticated"] .sidebar-logo {
  display: block;
  max-width: 168px;
  max-height: 56px;
  object-fit: contain;
  margin: 0 auto;
}

body[data-auth-shell="authenticated"] #sidebar-brand h1 {
  display: none !important;
}

body[data-auth-shell="authenticated"] #sidebar-brand p {
  display: none !important;
}

body[data-auth-shell="authenticated"] .brand h1 {
  margin: 0;
  color: #F4F7FA;
  font-size: 1.14rem;
  letter-spacing: 0.02em;
}

body[data-auth-shell="authenticated"] .brand p {
  margin: 0;
  max-width: none;
  color: #AAB4C0;
  font-size: 0.78rem;
  line-height: 1.4;
}

body[data-auth-shell="authenticated"] .menu {
  display: grid;
  gap: 10px;
  padding: 2px 0;
}

body[data-auth-shell="authenticated"] .menu-group {
  display: grid;
  gap: 6px;
  padding: 10px;
  border-radius: 18px;
  background: rgba(255,255,255,0.025) !important;
  border: 1px solid rgba(255,255,255,0.06) !important;
}

body[data-auth-shell="authenticated"] .menu-group-title {
  padding: 0 4px 4px;
  color: #7F8A99;
  font-size: 0.64rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

body[data-auth-shell="authenticated"] .menu-link {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 42px;
  padding: 9px 10px;
  border-radius: 14px;
  border: 1px solid transparent;
  background: transparent;
  color: #AAB4C0;
  font-size: 0.9rem;
  font-weight: 750;
  text-align: left;
  transform: none !important;
}

body[data-auth-shell="authenticated"] .menu-link:hover {
  background: rgba(45,212,191,0.12) !important;
  border-color: rgba(45,212,191,0.24) !important;
  color: #F4F7FA;
}

body[data-auth-shell="authenticated"] .menu-link.active {
  background: rgba(45,212,191,0.12) !important;
  border-color: rgba(45,212,191,0.35) !important;
  color: #2DD4BF !important;
  box-shadow: inset 3px 0 0 rgba(45,212,191,0.72);
}

.menu-link-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
  border-radius: 10px;
  background: #171F2A;
  border: 1px solid rgba(255,255,255,0.07);
  color: #2DD4BF;
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.02em;
}

.menu-link-text {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

body[data-auth-shell="authenticated"] .sidebar-footer {
  display: grid;
  gap: 10px;
  margin-top: auto;
  padding: 12px 0 0;
  border-top: 1px solid rgba(255,255,255,0.07);
}

body[data-auth-shell="authenticated"] .sidebar-footer > span {
  display: none;
}

.sidebar-user-card {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  padding: 10px;
  border-radius: 16px;
  background: #131A23;
  border: 1px solid rgba(255,255,255,0.07);
}

.sidebar-user-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  border-radius: 12px;
  background: rgba(45,212,191,0.12);
  border: 1px solid rgba(45,212,191,0.35);
  color: #2DD4BF;
  font-size: 0.78rem;
  font-weight: 900;
}

.sidebar-user-copy {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.sidebar-user-copy strong,
.sidebar-user-copy span,
.sidebar-user-copy small {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sidebar-user-copy strong {
  color: #F4F7FA;
  font-size: 0.84rem;
}

.sidebar-user-copy span,
.sidebar-user-copy small {
  color: #AAB4C0;
  font-size: 0.72rem;
}

.sidebar-user-copy small:has(.pdv-active-store-select),
.sidebar-user-store-switcher {
  display: grid;
  gap: 6px;
  overflow: visible;
  white-space: normal;
}

.sidebar-store-label {
  color: rgba(170, 180, 192, 0.9);
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.sidebar-logout-button {
  min-height: 42px;
  width: 100%;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.12);
  background: #171F2A;
  color: #F4F7FA;
  font-weight: 800;
  cursor: pointer;
}

.sidebar-logout-button:hover {
  border-color: rgba(45,212,191,0.35);
  background: rgba(45,212,191,0.12);
  color: #2DD4BF;
}

body[data-auth-shell="authenticated"].sidebar-collapsed .brand {
  padding: 10px 6px;
  justify-items: center;
}

body[data-auth-shell="authenticated"].sidebar-collapsed .sidebar-logo {
  max-width: 34px;
  max-height: 34px;
}

body[data-auth-shell="authenticated"].sidebar-collapsed .brand h1,
body[data-auth-shell="authenticated"].sidebar-collapsed .brand p,
body[data-auth-shell="authenticated"].sidebar-collapsed .menu-group-title,
body[data-auth-shell="authenticated"].sidebar-collapsed .menu-link-text,
body[data-auth-shell="authenticated"].sidebar-collapsed .sidebar-user-copy {
  display: none !important;
}

body[data-auth-shell="authenticated"].sidebar-collapsed .menu-group {
  padding: 8px 4px;
  justify-items: center;
}

body[data-auth-shell="authenticated"].sidebar-collapsed .menu-link {
  width: 44px;
  justify-content: center;
  padding: 7px;
}

body[data-auth-shell="authenticated"].sidebar-collapsed .menu-link-icon {
  width: 30px;
  height: 30px;
  flex-basis: 30px;
}

body[data-auth-shell="authenticated"].sidebar-collapsed .sidebar-user-card {
  justify-content: center;
  padding: 8px 4px;
}

body[data-auth-shell="authenticated"].sidebar-collapsed .sidebar-logout-button {
  min-height: 38px;
  padding: 0;
  font-size: 0;
}

body[data-auth-shell="authenticated"].sidebar-collapsed .sidebar-logout-button::before {
  content: "SA";
  font-size: 0.72rem;
  letter-spacing: 0.05em;
}

@media (max-width: 920px) {
  body[data-auth-shell="authenticated"] .sidebar,
  body[data-auth-shell="authenticated"].sidebar-collapsed .sidebar {
    width: var(--aero-sidebar-closed) !important;
    padding: 12px 8px;
  }

  body[data-auth-shell="authenticated"] .content,
  body[data-auth-shell="authenticated"].sidebar-collapsed .content {
    margin-left: var(--aero-sidebar-closed) !important;
    width: calc(100% - var(--aero-sidebar-closed)) !important;
    max-width: calc(100vw - var(--aero-sidebar-closed)) !important;
  }

  body[data-auth-shell="authenticated"] .brand h1,
  body[data-auth-shell="authenticated"] .brand p,
  body[data-auth-shell="authenticated"] .menu-group-title,
  body[data-auth-shell="authenticated"] .menu-link-text,
  body[data-auth-shell="authenticated"] .sidebar-user-copy {
    display: none !important;
  }
}

/* AEROSTORE OS - Caixa dark premium visual standardization.
   Scoped to /pdv/caixa to avoid changing cashier rules or shared PDV logic. */
body[data-route-section="pdv-cash-register"] {
  --cash-bg-app: #0B0F14;
  --cash-bg-shell: #0F141B;
  --cash-bg-panel: #131A23;
  --cash-bg-card: #171F2A;
  --cash-border-soft: rgba(255,255,255,0.07);
  --cash-border-strong: rgba(255,255,255,0.12);
  --cash-divider: rgba(255,255,255,0.06);
  --cash-text-main: #F4F7FA;
  --cash-text-muted: #AAB4C0;
  --cash-text-subtle: #7F8A99;
  --cash-accent: #2DD4BF;
  --cash-accent-strong: #14B8A6;
  --cash-accent-soft: rgba(45,212,191,0.12);
  --cash-accent-border: rgba(45,212,191,0.35);
  --cash-success: #34D399;
  --cash-success-soft: rgba(52,211,153,0.12);
  --cash-success-border: rgba(52,211,153,0.28);
  --cash-warning: #F59E0B;
  --cash-warning-soft: rgba(245,158,11,0.12);
  --cash-warning-border: rgba(245,158,11,0.35);
  --cash-danger: #EF4444;
  --cash-danger-soft: rgba(239,68,68,0.12);
  --cash-danger-border: rgba(239,68,68,0.30);
  background: var(--cash-bg-app) !important;
  color: var(--cash-text-main);
}

body[data-route-section="pdv-cash-register"] .content,
body[data-route-section="pdv-cash-register"] .pdv-front-shell,
body[data-route-section="pdv-cash-register"] .pdv-route-shell,
body[data-route-section="pdv-cash-register"] .pdv-official-shell,
body[data-route-section="pdv-cash-register"] .pdv-cash-shell {
  background:
    radial-gradient(circle at 16% 4%, rgba(45,212,191,0.07), transparent 28%),
    linear-gradient(180deg, var(--cash-bg-app) 0%, #090D12 100%) !important;
  color: var(--cash-text-main);
}

body[data-route-section="pdv-cash-register"] .pdv-route-shell-compact,
body[data-route-section="pdv-cash-register"] .pdv-hero-card,
body[data-route-section="pdv-cash-register"] .panel,
body[data-route-section="pdv-cash-register"] .stat-card,
body[data-route-section="pdv-cash-register"] .pdv-cash-table-panel,
body[data-route-section="pdv-cash-register"] .pdv-cash-detail-panel,
body[data-route-section="pdv-cash-register"] .pdv-cash-pending-panel,
body[data-route-section="pdv-cash-register"] .pdv-authorizers-panel {
  background: linear-gradient(145deg, rgba(19,26,35,0.98), rgba(15,20,27,0.96)) !important;
  border: 1px solid var(--cash-border-soft) !important;
  box-shadow: 0 22px 62px rgba(0,0,0,0.24) !important;
  color: var(--cash-text-main) !important;
}

body[data-route-section="pdv-cash-register"] .pdv-hero-card {
  border-radius: 20px;
}

body[data-route-section="pdv-cash-register"] .pdv-hero-card .eyebrow,
body[data-route-section="pdv-cash-register"] .panel-header .eyebrow {
  color: var(--cash-accent) !important;
}

body[data-route-section="pdv-cash-register"] .pdv-hero-card h3,
body[data-route-section="pdv-cash-register"] .panel h3,
body[data-route-section="pdv-cash-register"] .panel-header h3,
body[data-route-section="pdv-cash-register"] .pdv-cash-detail-head strong,
body[data-route-section="pdv-cash-register"] .pdv-cash-detail-payments strong,
body[data-route-section="pdv-cash-register"] .pdv-register-label-cell strong {
  color: var(--cash-text-main) !important;
}

body[data-route-section="pdv-cash-register"] .helper-text,
body[data-route-section="pdv-cash-register"] .panel-header p,
body[data-route-section="pdv-cash-register"] .stat-card span,
body[data-route-section="pdv-cash-register"] .stat-card small,
body[data-route-section="pdv-cash-register"] .pdv-register-highlight-card span,
body[data-route-section="pdv-cash-register"] .pdv-register-inline-warning span,
body[data-route-section="pdv-cash-register"] .pdv-register-meta,
body[data-route-section="pdv-cash-register"] .pdv-cash-detail-head span,
body[data-route-section="pdv-cash-register"] .pdv-cash-detail-payments span,
body[data-route-section="pdv-cash-register"] .pdv-register-label-cell span,
body[data-route-section="pdv-cash-register"] .empty-state span {
  color: var(--cash-text-muted) !important;
}

body[data-route-section="pdv-cash-register"] .stat-card {
  border-radius: 18px !important;
}

body[data-route-section="pdv-cash-register"] .stat-card strong {
  color: var(--cash-text-main) !important;
}

body[data-route-section="pdv-cash-register"] .pdv-cash-summary-grid .stat-card:last-child strong,
body[data-route-section="pdv-cash-register"] .pdv-cash-detail-grid strong,
body[data-route-section="pdv-cash-register"] .pdv-cash-table td strong {
  color: var(--cash-success) !important;
}

body[data-route-section="pdv-cash-register"] .pdv-register-highlight-card,
body[data-route-section="pdv-cash-register"] .pdv-cash-detail-card,
body[data-route-section="pdv-cash-register"] .pdv-cash-detail-grid div,
body[data-route-section="pdv-cash-register"] .empty-state,
body[data-route-section="pdv-cash-register"] .pdv-authorizer-card,
body[data-route-section="pdv-cash-register"] .pdv-authorizer-create-card,
body[data-route-section="pdv-cash-register"] .pdv-authorizer-setup-card,
body[data-route-section="pdv-cash-register"] .pdv-authorizer-instructions,
body[data-route-section="pdv-cash-register"] .pdv-authorizers-summary span {
  background: var(--cash-bg-card) !important;
  border: 1px solid var(--cash-border-soft) !important;
  box-shadow: none !important;
  color: var(--cash-text-main) !important;
}

body[data-route-section="pdv-cash-register"] .pdv-cash-detail-grid span {
  color: var(--cash-text-subtle) !important;
}

body[data-route-section="pdv-cash-register"] input,
body[data-route-section="pdv-cash-register"] select,
body[data-route-section="pdv-cash-register"] textarea {
  background: var(--cash-bg-shell) !important;
  border: 1px solid var(--cash-border-soft) !important;
  color: var(--cash-text-main) !important;
  box-shadow: none !important;
}

body[data-route-section="pdv-cash-register"] input::placeholder,
body[data-route-section="pdv-cash-register"] textarea::placeholder {
  color: var(--cash-text-subtle) !important;
}

body[data-route-section="pdv-cash-register"] input:focus,
body[data-route-section="pdv-cash-register"] select:focus,
body[data-route-section="pdv-cash-register"] textarea:focus {
  border-color: var(--cash-accent-border) !important;
  outline: 2px solid rgba(45,212,191,0.16) !important;
}

body[data-route-section="pdv-cash-register"] .primary-button {
  background: linear-gradient(135deg, var(--cash-accent-strong), var(--cash-accent)) !important;
  border-color: var(--cash-accent-border) !important;
  color: #061014 !important;
  box-shadow: 0 14px 34px rgba(20,184,166,0.18) !important;
}

body[data-route-section="pdv-cash-register"] .primary-button:hover {
  filter: brightness(1.04);
  transform: translateY(-1px);
}

body[data-route-section="pdv-cash-register"] .secondary-button,
body[data-route-section="pdv-cash-register"] .ghost-button {
  background: var(--cash-bg-card) !important;
  border: 1px solid var(--cash-border-strong) !important;
  color: var(--cash-text-main) !important;
  box-shadow: none !important;
}

body[data-route-section="pdv-cash-register"] .secondary-button:hover,
body[data-route-section="pdv-cash-register"] .ghost-button:hover {
  background: var(--cash-accent-soft) !important;
  border-color: var(--cash-accent-border) !important;
  color: var(--cash-accent) !important;
}

body[data-route-section="pdv-cash-register"] .pdv-register-status-badge,
body[data-route-section="pdv-cash-register"] .pdv-register-highlight-badge {
  background: var(--cash-bg-card) !important;
  border: 1px solid var(--cash-border-soft) !important;
  color: var(--cash-text-muted) !important;
}

body[data-route-section="pdv-cash-register"] .pdv-register-status-badge.current,
body[data-route-section="pdv-cash-register"] .pdv-register-highlight-badge.current {
  background: var(--cash-accent-soft) !important;
  border-color: var(--cash-accent-border) !important;
  color: var(--cash-accent) !important;
}

body[data-route-section="pdv-cash-register"] .pdv-register-status-badge.open,
body[data-route-section="pdv-cash-register"] .pdv-register-highlight-badge.open {
  background: var(--cash-success-soft) !important;
  border-color: var(--cash-success-border) !important;
  color: var(--cash-success) !important;
}

body[data-route-section="pdv-cash-register"] .pdv-register-status-badge.reopened,
body[data-route-section="pdv-cash-register"] .pdv-register-highlight-badge.reopened {
  background: var(--cash-accent-soft) !important;
  border-color: var(--cash-accent-border) !important;
  color: var(--cash-accent) !important;
}

body[data-route-section="pdv-cash-register"] .pdv-register-status-badge.closed,
body[data-route-section="pdv-cash-register"] .pdv-register-highlight-badge.closed {
  background: rgba(170,180,192,0.10) !important;
  border-color: var(--cash-border-strong) !important;
  color: var(--cash-text-muted) !important;
}

body[data-route-section="pdv-cash-register"] .pdv-register-inline-warning {
  background: var(--cash-bg-card) !important;
  border: 1px solid var(--cash-border-soft) !important;
  color: var(--cash-text-main) !important;
}

body[data-route-section="pdv-cash-register"] .pdv-register-inline-warning.info {
  background: var(--cash-accent-soft) !important;
  border-color: var(--cash-accent-border) !important;
}

body[data-route-section="pdv-cash-register"] .pdv-register-inline-warning.info strong {
  color: var(--cash-accent) !important;
}

body[data-route-section="pdv-cash-register"] .pdv-register-inline-warning.warning,
body[data-route-section="pdv-cash-register"] .pdv-payment-alert.warning {
  background: var(--cash-warning-soft) !important;
  border-color: var(--cash-warning-border) !important;
}

body[data-route-section="pdv-cash-register"] .pdv-register-inline-warning.warning strong,
body[data-route-section="pdv-cash-register"] .pdv-payment-alert.warning {
  color: var(--cash-warning) !important;
}

body[data-route-section="pdv-cash-register"] .pdv-cash-pending-count {
  background: var(--cash-warning-soft) !important;
  border-color: var(--cash-warning-border) !important;
  color: var(--cash-warning) !important;
}

body[data-route-section="pdv-cash-register"] .table-wrap,
body[data-route-section="pdv-cash-register"] .table-scroll {
  background: var(--cash-bg-panel) !important;
  border: 1px solid var(--cash-border-soft) !important;
  border-radius: 18px;
  scrollbar-width: thin;
  scrollbar-color: rgba(170,180,192,0.22) transparent;
}

body[data-route-section="pdv-cash-register"] .table-wrap::-webkit-scrollbar,
body[data-route-section="pdv-cash-register"] .table-scroll::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

body[data-route-section="pdv-cash-register"] .table-wrap::-webkit-scrollbar-track,
body[data-route-section="pdv-cash-register"] .table-scroll::-webkit-scrollbar-track,
body[data-route-section="pdv-cash-register"] .table-wrap::-webkit-scrollbar-corner,
body[data-route-section="pdv-cash-register"] .table-scroll::-webkit-scrollbar-corner {
  background: transparent;
}

body[data-route-section="pdv-cash-register"] .table-wrap::-webkit-scrollbar-thumb,
body[data-route-section="pdv-cash-register"] .table-scroll::-webkit-scrollbar-thumb {
  background: rgba(170,180,192,0.22);
  border-radius: 999px;
}

body[data-route-section="pdv-cash-register"] .table-wrap::-webkit-scrollbar-thumb:hover,
body[data-route-section="pdv-cash-register"] .table-scroll::-webkit-scrollbar-thumb:hover {
  background: rgba(45,212,191,0.38);
}

body[data-route-section="pdv-cash-register"] .pdv-cash-table {
  color: var(--cash-text-muted);
}

body[data-route-section="pdv-cash-register"] .pdv-cash-table th {
  background: var(--cash-bg-shell) !important;
  border-bottom: 1px solid var(--cash-divider) !important;
  color: var(--cash-text-subtle) !important;
}

body[data-route-section="pdv-cash-register"] .pdv-cash-table td {
  background: rgba(23,31,42,0.56) !important;
  border-bottom: 1px solid var(--cash-divider) !important;
  color: var(--cash-text-muted) !important;
}

body[data-route-section="pdv-cash-register"] .pdv-cash-table tbody tr:hover td {
  background: var(--cash-bg-card) !important;
  color: var(--cash-text-main) !important;
}

body[data-route-section="pdv-cash-register"] .pdv-cash-table tbody tr.is-selected td {
  background: rgba(45,212,191,0.10) !important;
  border-color: rgba(45,212,191,0.20) !important;
}

body[data-route-section="pdv-cash-register"] .pdv-cash-table tbody tr.is-highlighted td {
  border-top: 1px solid var(--cash-success-border) !important;
  border-bottom: 1px solid var(--cash-success-border) !important;
}

body[data-route-section="pdv-cash-register"] .pdv-payment-link-tone-success,
body[data-route-section="pdv-cash-register"] .is-balanced {
  color: var(--cash-success) !important;
}

body[data-route-section="pdv-cash-register"] .pdv-payment-link-tone-warning {
  color: var(--cash-warning) !important;
}

body[data-route-section="pdv-cash-register"] .pdv-payment-link-tone-danger,
body[data-route-section="pdv-cash-register"] .is-danger,
body[data-route-section="pdv-cash-register"] .danger {
  color: var(--cash-danger) !important;
}

body[data-route-section="pdv-cash-register"] .pdv-route-tab.active,
body[data-route-section="pdv-cash-register"] .menu-link.active {
  background: var(--cash-accent-soft) !important;
  border-color: var(--cash-accent-border) !important;
  color: var(--cash-accent) !important;
}

/* AEROSTORE OS - Produtos top area compaction.
   Visual-only overrides scoped to /pdv/produtos. */
body[data-route-section="pdv-products"] {
  --products-bg-app: #0B0F14;
  --products-bg-shell: #0F141B;
  --products-bg-panel: #131A23;
  --products-bg-card: #171F2A;
  --products-border-soft: rgba(255,255,255,0.07);
  --products-border-strong: rgba(255,255,255,0.12);
  --products-divider: rgba(255,255,255,0.06);
  --products-text-main: #F4F7FA;
  --products-text-muted: #AAB4C0;
  --products-text-subtle: #7F8A99;
  --products-accent: #2DD4BF;
  --products-accent-strong: #14B8A6;
  --products-accent-soft: rgba(45,212,191,0.12);
  --products-accent-border: rgba(45,212,191,0.35);
  --products-success: #34D399;
  --products-success-soft: rgba(52,211,153,0.12);
  --products-warning: #F59E0B;
  --products-warning-soft: rgba(245,158,11,0.12);
  --products-danger: #EF4444;
  --products-danger-soft: rgba(239,68,68,0.12);
  background: var(--products-bg-app) !important;
  color: var(--products-text-main);
}

body[data-route-section="pdv-products"] .content,
body[data-route-section="pdv-products"] .pdv-front-shell,
body[data-route-section="pdv-products"] .pdv-route-shell,
body[data-route-section="pdv-products"] .pdv-official-shell,
body[data-route-section="pdv-products"] .pdv-products-shell {
  background:
    radial-gradient(circle at 12% 5%, rgba(45,212,191,0.07), transparent 26%),
    linear-gradient(180deg, var(--products-bg-app), #090D12) !important;
  color: var(--products-text-main);
}

body[data-route-section="pdv-products"] .pdv-hero-card {
  min-height: 0 !important;
  padding: 14px 22px !important;
  border-radius: 20px !important;
  background: linear-gradient(145deg, rgba(19,26,35,0.98), rgba(15,20,27,0.96)) !important;
  border: 1px solid var(--products-border-soft) !important;
  box-shadow: 0 22px 62px rgba(0,0,0,0.24) !important;
}

body[data-route-section="pdv-products"] .pdv-hero-card .eyebrow {
  color: var(--products-accent) !important;
}

body[data-route-section="pdv-products"] .pdv-hero-card h3 {
  color: var(--products-text-main) !important;
}

body[data-route-section="pdv-products"] .pdv-route-shell-compact {
  background: var(--products-bg-shell) !important;
  border: 1px solid var(--products-border-soft) !important;
  border-radius: 18px !important;
  box-shadow: none !important;
}

body[data-route-section="pdv-products"] .pdv-route-tab.active,
body[data-route-section="pdv-products"] .menu-link.active {
  background: var(--products-accent-soft) !important;
  border-color: var(--products-accent-border) !important;
  color: var(--products-accent) !important;
  box-shadow: inset 0 0 0 1px rgba(45,212,191,0.12) !important;
}

body[data-route-section="pdv-products"] .pdv-products-shell {
  display: grid;
  gap: 14px;
  padding-top: 2px;
}

body[data-route-section="pdv-products"] .pdv-products-header {
  align-items: center !important;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin: 0;
  padding: 16px 18px;
  border-radius: 20px;
  background: linear-gradient(145deg, rgba(19,26,35,0.96), rgba(15,20,27,0.94));
  border: 1px solid var(--products-border-soft);
  box-shadow: 0 18px 48px rgba(0,0,0,0.22);
}

body[data-route-section="pdv-products"] .pdv-products-header h3 {
  margin: 0;
  color: var(--products-text-main) !important;
  font-size: clamp(1.16rem, 1.7vw, 1.5rem);
  line-height: 1.15;
}

body[data-route-section="pdv-products"] .pdv-products-header .table-meta {
  display: block;
  margin-top: 5px;
  color: var(--products-text-muted) !important;
  font-size: 0.84rem;
}

body[data-route-section="pdv-products"] .pdv-products-header .primary-button {
  min-height: 42px;
  padding: 0 18px;
  border-radius: 13px;
  background: linear-gradient(135deg, var(--products-accent-strong), var(--products-accent)) !important;
  border: 1px solid var(--products-accent-border) !important;
  color: #061014 !important;
  box-shadow: 0 14px 34px rgba(20,184,166,0.18) !important;
}

body[data-route-section="pdv-products"] .pdv-products-header .primary-button:hover {
  filter: brightness(1.05);
  transform: translateY(-1px);
}

body[data-route-section="pdv-products"] .pdv-products-toolbar {
  display: grid;
  grid-template-columns: minmax(340px, 0.95fr) minmax(420px, 1.05fr);
  gap: 16px;
  align-items: start !important;
  margin: 0 0 4px;
  padding: 16px;
  border-radius: 20px;
  background: linear-gradient(145deg, rgba(19,26,35,0.96), rgba(15,20,27,0.94));
  border: 1px solid var(--products-border-soft);
  box-shadow: 0 18px 48px rgba(0,0,0,0.20);
}

body[data-route-section="pdv-products"] .pdv-products-search-label {
  min-height: 100%;
  justify-content: flex-start;
  padding: 14px;
  border-radius: 17px;
  background: var(--products-bg-card);
  border: 1px solid var(--products-border-soft);
}

body[data-route-section="pdv-products"] .pdv-products-toolbar-filters {
  display: grid;
  grid-template-columns: repeat(4, minmax(130px, 1fr));
  gap: 10px;
  align-items: end;
}

body[data-route-section="pdv-products"] .pdv-products-toolbar-filters .pdv-products-action-row {
  grid-column: span 2;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  align-self: end;
}

body[data-route-section="pdv-products"] .pdv-products-search-label,
body[data-route-section="pdv-products"] .pdv-products-toolbar-filters label {
  color: var(--products-text-muted) !important;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.01em;
}

body[data-route-section="pdv-products"] .pdv-products-search-label input,
body[data-route-section="pdv-products"] .pdv-products-toolbar-filters select,
body[data-route-section="pdv-products"] .pdv-products-drawer-form input,
body[data-route-section="pdv-products"] .pdv-products-drawer-form select,
body[data-route-section="pdv-products"] .pdv-products-drawer-form textarea {
  min-height: 44px;
  border-radius: 13px;
  background: var(--products-bg-shell) !important;
  border: 1px solid var(--products-border-soft) !important;
  color: var(--products-text-main) !important;
  box-shadow: none !important;
}

body[data-route-section="pdv-products"] .pdv-products-search-label input::placeholder,
body[data-route-section="pdv-products"] .pdv-products-drawer-form input::placeholder,
body[data-route-section="pdv-products"] .pdv-products-drawer-form textarea::placeholder {
  color: var(--products-text-subtle) !important;
}

body[data-route-section="pdv-products"] .pdv-products-search-label input:focus,
body[data-route-section="pdv-products"] .pdv-products-toolbar-filters select:focus,
body[data-route-section="pdv-products"] .pdv-products-drawer-form input:focus,
body[data-route-section="pdv-products"] .pdv-products-drawer-form select:focus,
body[data-route-section="pdv-products"] .pdv-products-drawer-form textarea:focus {
  border-color: var(--products-accent-border) !important;
  outline: 2px solid rgba(45,212,191,0.16) !important;
}

body[data-route-section="pdv-products"] .pdv-products-action-row .secondary-button {
  background: var(--products-accent-soft) !important;
  border: 1px solid var(--products-accent-border) !important;
  color: var(--products-accent) !important;
  box-shadow: none !important;
}

body[data-route-section="pdv-products"] .pdv-products-action-row .ghost-button {
  background: var(--products-bg-card) !important;
  border: 1px solid var(--products-border-strong) !important;
  color: var(--products-text-main) !important;
  box-shadow: none !important;
}

body[data-route-section="pdv-products"] .pdv-products-action-row .secondary-button:hover,
body[data-route-section="pdv-products"] .pdv-products-action-row .ghost-button:hover {
  background: rgba(45,212,191,0.16) !important;
  border-color: var(--products-accent-border) !important;
  color: var(--products-accent) !important;
}

body[data-route-section="pdv-products"] .pdv-products-summary-grid {
  margin: 0 0 4px;
  gap: 10px;
}

body[data-route-section="pdv-products"] .pdv-products-stat-card,
body[data-route-section="pdv-products"] .panel,
body[data-route-section="pdv-products"] .pdv-products-detail-card {
  background: linear-gradient(145deg, rgba(19,26,35,0.98), rgba(15,20,27,0.96)) !important;
  border: 1px solid var(--products-border-soft) !important;
  color: var(--products-text-main) !important;
  box-shadow: 0 18px 48px rgba(0,0,0,0.18) !important;
}

body[data-route-section="pdv-products"] .pdv-products-stat-card {
  min-height: 92px;
}

body[data-route-section="pdv-products"] .pdv-products-stat-card span,
body[data-route-section="pdv-products"] .pdv-products-stat-card small,
body[data-route-section="pdv-products"] .pdv-products-name-cell small,
body[data-route-section="pdv-products"] .pdv-products-price-cell small,
body[data-route-section="pdv-products"] .pdv-products-stock-cell small {
  color: var(--products-text-muted) !important;
}

body[data-route-section="pdv-products"] .pdv-products-stat-card strong,
body[data-route-section="pdv-products"] .pdv-products-name-cell strong,
body[data-route-section="pdv-products"] .pdv-products-price-cell strong,
body[data-route-section="pdv-products"] .pdv-products-stock-cell strong {
  color: var(--products-text-main) !important;
}

body[data-route-section="pdv-products"] .pdv-products-table th {
  background: var(--products-bg-shell) !important;
  color: var(--products-text-subtle) !important;
  border-bottom: 1px solid var(--products-divider) !important;
}

body[data-route-section="pdv-products"] .pdv-products-table td {
  border-bottom: 1px solid var(--products-divider) !important;
  color: var(--products-text-muted) !important;
}

body[data-route-section="pdv-products"] .pdv-products-table tbody tr:hover td {
  background: var(--products-bg-card) !important;
}

body[data-route-section="pdv-products"] .split-grid {
  grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.65fr);
  align-items: start;
}

body[data-route-section="pdv-products"] .pdv-products-list-panel {
  overflow: hidden;
  padding: 14px !important;
}

body[data-route-section="pdv-products"] .pdv-products-card-list {
  display: grid;
  gap: 12px;
  min-width: 0;
}

body[data-route-section="pdv-products"] .pdv-products-result-card {
  display: grid;
  grid-template-columns: var(--product-media-list-w) minmax(0, 1fr);
  grid-template-areas:
    "photo main"
    "photo meta";
  gap: 10px 16px;
  min-width: 0;
  padding: 14px;
  border: 1px solid var(--products-divider);
  border-radius: 22px;
  background:
    radial-gradient(circle at 96% 12%, rgba(45,212,191,0.08), transparent 34%),
    rgba(17,24,34,0.78);
  transition: border-color 0.16s ease, background 0.16s ease, transform 0.16s ease;
}

body[data-route-section="pdv-products"] .pdv-products-result-card:hover,
body[data-route-section="pdv-products"] .pdv-products-result-card.is-selected {
  border-color: rgba(45,212,191,0.22);
  background:
    radial-gradient(circle at 96% 12%, rgba(45,212,191,0.11), transparent 34%),
    rgba(22,31,44,0.88);
}

body[data-route-section="pdv-products"] .pdv-products-result-photo {
  grid-area: photo;
  min-width: 0;
}

body[data-route-section="pdv-products"] .pdv-products-result-main {
  grid-area: main;
  display: grid;
  align-content: start;
  gap: 6px;
  min-width: 0;
}

body[data-route-section="pdv-products"] .pdv-products-result-main strong {
  color: var(--products-text-main);
  font-size: 0.98rem;
  line-height: 1.28;
  overflow-wrap: anywhere;
}

body[data-route-section="pdv-products"] .pdv-products-result-main small {
  color: var(--products-text-muted);
  font-size: 0.78rem;
  line-height: 1.35;
}

body[data-route-section="pdv-products"] .pdv-products-result-main .pdv-customers-inline-badges {
  gap: 5px;
}

body[data-route-section="pdv-products"] .pdv-products-result-main .pdv-customers-inline-badges span {
  max-width: 180px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body[data-route-section="pdv-products"] .pdv-products-result-meta {
  grid-area: meta;
  display: grid;
  gap: 10px;
  min-width: 0;
}

body[data-route-section="pdv-products"] .pdv-products-result-topline {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 8px 10px;
  min-width: 0;
}

body[data-route-section="pdv-products"] .pdv-products-result-topline .pdv-products-price-cell {
  min-width: 116px;
}

body[data-route-section="pdv-products"] .pdv-products-result-topline .pdv-products-stock-cell {
  min-width: 72px;
}

body[data-route-section="pdv-products"] .pdv-products-result-card .pdv-products-identifiers {
  display: flex;
  flex-flow: row wrap;
  gap: 6px;
  min-width: 0;
}

body[data-route-section="pdv-products"] .pdv-products-result-card .pdv-products-identifier-chip {
  margin: 0;
  max-width: 190px;
  min-height: 28px;
  padding: 5px 9px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body[data-route-section="pdv-products"] .pdv-products-result-card .pdv-products-identifiers > small {
  flex-basis: 100%;
  color: var(--products-text-muted);
  font-size: 0.76rem;
  letter-spacing: 0.01em;
}

body[data-route-section="pdv-products"] .pdv-products-result-card .pdv-products-action-row {
  justify-content: flex-start;
  gap: 7px;
}

body[data-route-section="pdv-products"] .pdv-products-result-card .pdv-products-action-row button {
  min-height: 34px;
  padding: 0 12px;
}

body[data-route-section="pdv-products"] .pdv-products-status-badge {
  background: var(--products-bg-card) !important;
  border: 1px solid var(--products-border-soft) !important;
  color: var(--products-text-muted) !important;
}

body[data-route-section="pdv-products"] .pdv-products-status-badge.is-active,
body[data-route-section="pdv-products"] .pdv-products-status-badge.is-ativo,
body[data-route-section="pdv-products"] .pdv-products-status-badge.is-available {
  background: var(--products-success-soft) !important;
  border-color: rgba(52,211,153,0.28) !important;
  color: var(--products-success) !important;
}

body[data-route-section="pdv-products"] .pdv-products-status-badge.is-pending_review,
body[data-route-section="pdv-products"] .pdv-products-status-badge.is-pending_migration,
body[data-route-section="pdv-products"] .pdv-products-status-badge.is-low,
body[data-route-section="pdv-products"] .pdv-products-status-badge.is-reserved {
  background: var(--products-warning-soft) !important;
  border-color: rgba(245,158,11,0.35) !important;
  color: var(--products-warning) !important;
}

body[data-route-section="pdv-products"] .pdv-products-status-badge.is-out,
body[data-route-section="pdv-products"] .pdv-products-status-badge.is-negative {
  background: var(--products-danger-soft) !important;
  border-color: rgba(239,68,68,0.30) !important;
  color: var(--products-danger) !important;
}

@media (max-width: 1180px) {
  body[data-route-section="pdv-products"] .split-grid {
    grid-template-columns: 1fr;
  }

  body[data-route-section="pdv-products"] .pdv-products-toolbar {
    grid-template-columns: 1fr;
  }

  body[data-route-section="pdv-products"] .pdv-products-toolbar-filters {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  body[data-route-section="pdv-products"] .pdv-products-header {
    align-items: stretch !important;
    flex-direction: column;
  }

  body[data-route-section="pdv-products"] .pdv-products-toolbar-filters,
  body[data-route-section="pdv-products"] .pdv-products-toolbar-filters .pdv-products-action-row {
    grid-template-columns: 1fr;
  }

  body[data-route-section="pdv-products"] .pdv-products-toolbar-filters .pdv-products-action-row {
    grid-column: auto;
  }

  body[data-route-section="pdv-products"] .pdv-products-result-card {
    grid-template-columns: var(--product-media-mobile) minmax(0, 1fr);
  }
}

/* ============================================================
   WHATSAPP CRM - DARK PREMIUM AEROSTORE
   Visual-only layer scoped to the official WhatsApp CRM route.
   ============================================================ */

body:is([data-route-section="whatsapp-crm"], [data-section="whatsapp-crm"]) {
  --wa-bg-app: #0B0F14;
  --wa-bg-shell: #0F141B;
  --wa-bg-panel: #131A23;
  --wa-bg-card: #171F2A;
  --wa-border-soft: rgba(255,255,255,0.07);
  --wa-border-strong: rgba(255,255,255,0.12);
  --wa-divider: rgba(255,255,255,0.06);
  --wa-text-main: #F4F7FA;
  --wa-text-muted: #AAB4C0;
  --wa-text-subtle: #7F8A99;
  --wa-accent: #2DD4BF;
  --wa-accent-strong: #14B8A6;
  --wa-accent-soft: rgba(45,212,191,0.12);
  --wa-accent-border: rgba(45,212,191,0.35);
  --wa-success: #34D399;
  --wa-success-soft: rgba(52,211,153,0.12);
  --wa-success-border: rgba(52,211,153,0.28);
  --wa-warning: #F59E0B;
  --wa-warning-soft: rgba(245,158,11,0.12);
  --wa-warning-border: rgba(245,158,11,0.35);
  --wa-danger: #EF4444;
  --wa-danger-soft: rgba(239,68,68,0.12);
  --wa-danger-border: rgba(239,68,68,0.30);
  background:
    radial-gradient(circle at top right, rgba(45,212,191,0.08), transparent 34%),
    var(--wa-bg-app) !important;
  color: var(--wa-text-main);
}

body:is([data-route-section="whatsapp-crm"], [data-section="whatsapp-crm"]) .content {
  background:
    radial-gradient(circle at 12% 0%, rgba(45,212,191,0.07), transparent 28%),
    linear-gradient(180deg, rgba(15,20,27,0.98), var(--wa-bg-app)) !important;
}

body:is([data-route-section="whatsapp-crm"], [data-section="whatsapp-crm"]) #whatsapp-crm {
  display: grid;
  gap: 16px;
}

body:is([data-route-section="whatsapp-crm"], [data-section="whatsapp-crm"]) .whatsapp-crm-shell {
  gap: 16px;
}

body:is([data-route-section="whatsapp-crm"], [data-section="whatsapp-crm"]) #whatsapp-crm .hero-card,
body:is([data-route-section="whatsapp-crm"], [data-section="whatsapp-crm"]) #whatsapp-crm .panel,
body:is([data-route-section="whatsapp-crm"], [data-section="whatsapp-crm"]) #whatsapp-crm .stat-card,
body:is([data-route-section="whatsapp-crm"], [data-section="whatsapp-crm"]) #whatsapp-crm .message-preview,
body:is([data-route-section="whatsapp-crm"], [data-section="whatsapp-crm"]) #whatsapp-crm .search-result-card,
body:is([data-route-section="whatsapp-crm"], [data-section="whatsapp-crm"]) #whatsapp-crm .empty-state,
body:is([data-route-section="whatsapp-crm"], [data-section="whatsapp-crm"]) #whatsapp-crm .pdv-customers-callout {
  background: linear-gradient(145deg, rgba(19,26,35,0.98), rgba(15,20,27,0.96)) !important;
  border: 1px solid var(--wa-border-soft) !important;
  color: var(--wa-text-main) !important;
  box-shadow: 0 18px 48px rgba(0,0,0,0.20) !important;
}

body:is([data-route-section="whatsapp-crm"], [data-section="whatsapp-crm"]) #whatsapp-crm .hero-card {
  min-height: auto !important;
  padding: 22px 24px !important;
  align-items: center;
  gap: 18px;
  overflow: hidden;
}

body:is([data-route-section="whatsapp-crm"], [data-section="whatsapp-crm"]) #whatsapp-crm .hero-card::before {
  background:
    radial-gradient(circle at 86% 12%, rgba(45,212,191,0.16), transparent 34%),
    linear-gradient(90deg, rgba(45,212,191,0.08), transparent 42%) !important;
  opacity: 0.85;
}

body:is([data-route-section="whatsapp-crm"], [data-section="whatsapp-crm"]) #whatsapp-crm .hero-card .eyebrow,
body:is([data-route-section="whatsapp-crm"], [data-section="whatsapp-crm"]) #whatsapp-crm .panel-header .eyebrow {
  color: var(--wa-accent) !important;
  letter-spacing: 0.14em;
}

body:is([data-route-section="whatsapp-crm"], [data-section="whatsapp-crm"]) #whatsapp-crm .hero-card h3,
body:is([data-route-section="whatsapp-crm"], [data-section="whatsapp-crm"]) #whatsapp-crm .panel-header h3,
body:is([data-route-section="whatsapp-crm"], [data-section="whatsapp-crm"]) #whatsapp-crm .panel h3,
body:is([data-route-section="whatsapp-crm"], [data-section="whatsapp-crm"]) #whatsapp-crm .stat-card strong {
  color: var(--wa-text-main) !important;
}

body:is([data-route-section="whatsapp-crm"], [data-section="whatsapp-crm"]) #whatsapp-crm .helper-text,
body:is([data-route-section="whatsapp-crm"], [data-section="whatsapp-crm"]) #whatsapp-crm .table-meta,
body:is([data-route-section="whatsapp-crm"], [data-section="whatsapp-crm"]) #whatsapp-crm .stat-card span,
body:is([data-route-section="whatsapp-crm"], [data-section="whatsapp-crm"]) #whatsapp-crm .stat-card small,
body:is([data-route-section="whatsapp-crm"], [data-section="whatsapp-crm"]) #whatsapp-crm .panel p,
body:is([data-route-section="whatsapp-crm"], [data-section="whatsapp-crm"]) #whatsapp-crm .empty-state span,
body:is([data-route-section="whatsapp-crm"], [data-section="whatsapp-crm"]) #whatsapp-crm .pdv-customers-callout span,
body:is([data-route-section="whatsapp-crm"], [data-section="whatsapp-crm"]) #whatsapp-crm .settings-list span {
  color: var(--wa-text-muted) !important;
}

body:is([data-route-section="whatsapp-crm"], [data-section="whatsapp-crm"]) #whatsapp-crm .pdv-route-summary {
  gap: 10px;
}

body:is([data-route-section="whatsapp-crm"], [data-section="whatsapp-crm"]) #whatsapp-crm .pdv-route-summary .stat-card,
body:is([data-route-section="whatsapp-crm"], [data-section="whatsapp-crm"]) #whatsapp-crm .whatsapp-crm-status-card {
  min-height: 96px;
  padding: 14px 16px;
  border-radius: 18px;
}

body:is([data-route-section="whatsapp-crm"], [data-section="whatsapp-crm"]) #whatsapp-crm .pdv-route-tabs {
  padding: 8px;
  gap: 8px;
  border-radius: 18px;
  background: rgba(15,20,27,0.88) !important;
  border: 1px solid var(--wa-border-soft) !important;
}

body:is([data-route-section="whatsapp-crm"], [data-section="whatsapp-crm"]) #whatsapp-crm .pdv-route-tab {
  background: var(--wa-bg-card) !important;
  border: 1px solid var(--wa-border-soft) !important;
  color: var(--wa-text-muted) !important;
  box-shadow: none !important;
}

body:is([data-route-section="whatsapp-crm"], [data-section="whatsapp-crm"]) #whatsapp-crm .pdv-route-tab:hover,
body:is([data-route-section="whatsapp-crm"], [data-section="whatsapp-crm"]) #whatsapp-crm .pdv-route-tab.active {
  background: var(--wa-accent-soft) !important;
  border-color: var(--wa-accent-border) !important;
  color: var(--wa-accent) !important;
}

body:is([data-route-section="whatsapp-crm"], [data-section="whatsapp-crm"]) #whatsapp-crm .panel {
  padding: 18px !important;
  border-radius: 22px !important;
}

body:is([data-route-section="whatsapp-crm"], [data-section="whatsapp-crm"]) #whatsapp-crm .panel-header {
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 4px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--wa-divider);
}

body:is([data-route-section="whatsapp-crm"], [data-section="whatsapp-crm"]) #whatsapp-crm .split-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  align-items: start;
}

body:is([data-route-section="whatsapp-crm"], [data-section="whatsapp-crm"]) #whatsapp-crm .stats-grid,
body:is([data-route-section="whatsapp-crm"], [data-section="whatsapp-crm"]) #whatsapp-crm .cards-grid,
body:is([data-route-section="whatsapp-crm"], [data-section="whatsapp-crm"]) #whatsapp-crm .filters-grid,
body:is([data-route-section="whatsapp-crm"], [data-section="whatsapp-crm"]) #whatsapp-crm .form-grid {
  gap: 12px;
}

body:is([data-route-section="whatsapp-crm"], [data-section="whatsapp-crm"]) #whatsapp-crm .whatsapp-crm-status-grid,
body:is([data-route-section="whatsapp-crm"], [data-section="whatsapp-crm"]) #whatsapp-crm .whatsapp-crm-campaign-summary,
body:is([data-route-section="whatsapp-crm"], [data-section="whatsapp-crm"]) #whatsapp-crm .whatsapp-crm-operation-stats {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

body:is([data-route-section="whatsapp-crm"], [data-section="whatsapp-crm"]) #whatsapp-crm .whatsapp-crm-status-card.is-connected,
body:is([data-route-section="whatsapp-crm"], [data-section="whatsapp-crm"]) #whatsapp-crm .status-banner.success {
  background: var(--wa-success-soft) !important;
  border-color: var(--wa-success-border) !important;
  color: var(--wa-success) !important;
}

body:is([data-route-section="whatsapp-crm"], [data-section="whatsapp-crm"]) #whatsapp-crm .whatsapp-crm-status-card.is-warning,
body:is([data-route-section="whatsapp-crm"], [data-section="whatsapp-crm"]) #whatsapp-crm .status-banner.warning {
  background: var(--wa-warning-soft) !important;
  border-color: var(--wa-warning-border) !important;
  color: var(--wa-warning) !important;
}

body:is([data-route-section="whatsapp-crm"], [data-section="whatsapp-crm"]) #whatsapp-crm .whatsapp-crm-status-card.is-danger,
body:is([data-route-section="whatsapp-crm"], [data-section="whatsapp-crm"]) #whatsapp-crm .status-banner.error {
  background: var(--wa-danger-soft) !important;
  border-color: var(--wa-danger-border) !important;
  color: var(--wa-danger) !important;
}

body:is([data-route-section="whatsapp-crm"], [data-section="whatsapp-crm"]) #whatsapp-crm .whatsapp-crm-status-card.is-muted {
  background: rgba(170,180,192,0.06) !important;
  border-color: var(--wa-border-soft) !important;
}

body:is([data-route-section="whatsapp-crm"], [data-section="whatsapp-crm"]) #whatsapp-crm input,
body:is([data-route-section="whatsapp-crm"], [data-section="whatsapp-crm"]) #whatsapp-crm select,
body:is([data-route-section="whatsapp-crm"], [data-section="whatsapp-crm"]) #whatsapp-crm textarea {
  min-height: 44px;
  border-radius: 13px !important;
  background: var(--wa-bg-shell) !important;
  border: 1px solid var(--wa-border-soft) !important;
  color: var(--wa-text-main) !important;
  box-shadow: none !important;
}

body:is([data-route-section="whatsapp-crm"], [data-section="whatsapp-crm"]) #whatsapp-crm textarea {
  line-height: 1.55;
}

body:is([data-route-section="whatsapp-crm"], [data-section="whatsapp-crm"]) #whatsapp-crm input::placeholder,
body:is([data-route-section="whatsapp-crm"], [data-section="whatsapp-crm"]) #whatsapp-crm textarea::placeholder {
  color: var(--wa-text-subtle) !important;
}

body:is([data-route-section="whatsapp-crm"], [data-section="whatsapp-crm"]) #whatsapp-crm input:focus,
body:is([data-route-section="whatsapp-crm"], [data-section="whatsapp-crm"]) #whatsapp-crm select:focus,
body:is([data-route-section="whatsapp-crm"], [data-section="whatsapp-crm"]) #whatsapp-crm textarea:focus {
  border-color: var(--wa-accent-border) !important;
  outline: 2px solid rgba(45,212,191,0.16) !important;
}

body:is([data-route-section="whatsapp-crm"], [data-section="whatsapp-crm"]) #whatsapp-crm label {
  color: var(--wa-text-muted) !important;
}

body:is([data-route-section="whatsapp-crm"], [data-section="whatsapp-crm"]) #whatsapp-crm .primary-button {
  background: linear-gradient(135deg, var(--wa-accent), var(--wa-accent-strong)) !important;
  border: 1px solid var(--wa-accent-border) !important;
  color: #06221f !important;
  box-shadow: 0 16px 34px rgba(20,184,166,0.22) !important;
}

body:is([data-route-section="whatsapp-crm"], [data-section="whatsapp-crm"]) #whatsapp-crm .secondary-button,
body:is([data-route-section="whatsapp-crm"], [data-section="whatsapp-crm"]) #whatsapp-crm .ghost-button {
  background: var(--wa-bg-card) !important;
  border: 1px solid var(--wa-border-strong) !important;
  color: var(--wa-text-main) !important;
  box-shadow: none !important;
}

body:is([data-route-section="whatsapp-crm"], [data-section="whatsapp-crm"]) #whatsapp-crm .secondary-button:hover,
body:is([data-route-section="whatsapp-crm"], [data-section="whatsapp-crm"]) #whatsapp-crm .ghost-button:hover {
  background: var(--wa-accent-soft) !important;
  border-color: var(--wa-accent-border) !important;
  color: var(--wa-accent) !important;
}

body:is([data-route-section="whatsapp-crm"], [data-section="whatsapp-crm"]) #whatsapp-crm .danger-button {
  background: var(--wa-danger-soft) !important;
  border: 1px solid var(--wa-danger-border) !important;
  color: var(--wa-danger) !important;
  box-shadow: none !important;
}

body:is([data-route-section="whatsapp-crm"], [data-section="whatsapp-crm"]) #whatsapp-crm .action-row {
  gap: 10px;
}

body:is([data-route-section="whatsapp-crm"], [data-section="whatsapp-crm"]) #whatsapp-crm .whatsapp-crm-qr-wrap,
body:is([data-route-section="whatsapp-crm"], [data-section="whatsapp-crm"]) #whatsapp-crm .whatsapp-crm-media-preview-box,
body:is([data-route-section="whatsapp-crm"], [data-section="whatsapp-crm"]) #whatsapp-crm .whatsapp-crm-operation-card {
  border-radius: 18px;
  background: var(--wa-bg-card) !important;
  border: 1px solid var(--wa-border-soft) !important;
  padding: 14px;
}

body:is([data-route-section="whatsapp-crm"], [data-section="whatsapp-crm"]) #whatsapp-crm .whatsapp-crm-qr-image {
  justify-self: center;
  width: min(230px, 100%);
  border-radius: 18px;
  box-shadow: 0 18px 42px rgba(0,0,0,0.24);
}

body:is([data-route-section="whatsapp-crm"], [data-section="whatsapp-crm"]) #whatsapp-crm .message-preview,
body:is([data-route-section="whatsapp-crm"], [data-section="whatsapp-crm"]) #whatsapp-crm .whatsapp-crm-literal-preview {
  color: var(--wa-text-main) !important;
  line-height: 1.6;
}

body:is([data-route-section="whatsapp-crm"], [data-section="whatsapp-crm"]) #whatsapp-crm .whatsapp-crm-template-list,
body:is([data-route-section="whatsapp-crm"], [data-section="whatsapp-crm"]) #whatsapp-crm .whatsapp-crm-mini-list,
body:is([data-route-section="whatsapp-crm"], [data-section="whatsapp-crm"]) #whatsapp-crm .table-wrap,
body:is([data-route-section="whatsapp-crm"], [data-section="whatsapp-crm"]) #whatsapp-crm .scroll-panel {
  scrollbar-width: thin;
  scrollbar-color: rgba(170,180,192,0.22) transparent;
}

body:is([data-route-section="whatsapp-crm"], [data-section="whatsapp-crm"]) #whatsapp-crm .whatsapp-crm-template-list::-webkit-scrollbar,
body:is([data-route-section="whatsapp-crm"], [data-section="whatsapp-crm"]) #whatsapp-crm .whatsapp-crm-mini-list::-webkit-scrollbar,
body:is([data-route-section="whatsapp-crm"], [data-section="whatsapp-crm"]) #whatsapp-crm .table-wrap::-webkit-scrollbar,
body:is([data-route-section="whatsapp-crm"], [data-section="whatsapp-crm"]) #whatsapp-crm .scroll-panel::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

body:is([data-route-section="whatsapp-crm"], [data-section="whatsapp-crm"]) #whatsapp-crm .whatsapp-crm-template-list::-webkit-scrollbar-track,
body:is([data-route-section="whatsapp-crm"], [data-section="whatsapp-crm"]) #whatsapp-crm .whatsapp-crm-mini-list::-webkit-scrollbar-track,
body:is([data-route-section="whatsapp-crm"], [data-section="whatsapp-crm"]) #whatsapp-crm .table-wrap::-webkit-scrollbar-track,
body:is([data-route-section="whatsapp-crm"], [data-section="whatsapp-crm"]) #whatsapp-crm .scroll-panel::-webkit-scrollbar-track,
body:is([data-route-section="whatsapp-crm"], [data-section="whatsapp-crm"]) #whatsapp-crm .table-wrap::-webkit-scrollbar-corner {
  background: transparent;
}

body:is([data-route-section="whatsapp-crm"], [data-section="whatsapp-crm"]) #whatsapp-crm .whatsapp-crm-template-list::-webkit-scrollbar-thumb,
body:is([data-route-section="whatsapp-crm"], [data-section="whatsapp-crm"]) #whatsapp-crm .whatsapp-crm-mini-list::-webkit-scrollbar-thumb,
body:is([data-route-section="whatsapp-crm"], [data-section="whatsapp-crm"]) #whatsapp-crm .table-wrap::-webkit-scrollbar-thumb,
body:is([data-route-section="whatsapp-crm"], [data-section="whatsapp-crm"]) #whatsapp-crm .scroll-panel::-webkit-scrollbar-thumb {
  background: rgba(170,180,192,0.22);
  border-radius: 999px;
}

body:is([data-route-section="whatsapp-crm"], [data-section="whatsapp-crm"]) #whatsapp-crm .whatsapp-crm-template-list::-webkit-scrollbar-thumb:hover,
body:is([data-route-section="whatsapp-crm"], [data-section="whatsapp-crm"]) #whatsapp-crm .whatsapp-crm-mini-list::-webkit-scrollbar-thumb:hover,
body:is([data-route-section="whatsapp-crm"], [data-section="whatsapp-crm"]) #whatsapp-crm .table-wrap::-webkit-scrollbar-thumb:hover,
body:is([data-route-section="whatsapp-crm"], [data-section="whatsapp-crm"]) #whatsapp-crm .scroll-panel::-webkit-scrollbar-thumb:hover {
  background: rgba(45,212,191,0.38);
}

body:is([data-route-section="whatsapp-crm"], [data-section="whatsapp-crm"]) #whatsapp-crm .table-wrap {
  border-radius: 18px;
  background: var(--wa-bg-panel) !important;
  border: 1px solid var(--wa-border-soft) !important;
  overflow: auto;
}

body:is([data-route-section="whatsapp-crm"], [data-section="whatsapp-crm"]) #whatsapp-crm table th {
  background: var(--wa-bg-shell) !important;
  color: var(--wa-text-subtle) !important;
  border-bottom: 1px solid var(--wa-divider) !important;
}

body:is([data-route-section="whatsapp-crm"], [data-section="whatsapp-crm"]) #whatsapp-crm table td {
  color: var(--wa-text-muted) !important;
  border-bottom: 1px solid var(--wa-divider) !important;
}

body:is([data-route-section="whatsapp-crm"], [data-section="whatsapp-crm"]) #whatsapp-crm table tbody tr:hover td {
  background: var(--wa-bg-card) !important;
}

body:is([data-route-section="whatsapp-crm"], [data-section="whatsapp-crm"]) #whatsapp-crm .tag,
body:is([data-route-section="whatsapp-crm"], [data-section="whatsapp-crm"]) #whatsapp-crm .status-pill,
body:is([data-route-section="whatsapp-crm"], [data-section="whatsapp-crm"]) #whatsapp-crm .badge {
  background: var(--wa-bg-card) !important;
  border: 1px solid var(--wa-border-soft) !important;
  color: var(--wa-text-muted) !important;
}

@media (max-width: 1180px) {
  body:is([data-route-section="whatsapp-crm"], [data-section="whatsapp-crm"]) #whatsapp-crm .split-grid,
  body:is([data-route-section="whatsapp-crm"], [data-section="whatsapp-crm"]) #whatsapp-crm .whatsapp-crm-status-grid,
  body:is([data-route-section="whatsapp-crm"], [data-section="whatsapp-crm"]) #whatsapp-crm .whatsapp-crm-campaign-summary,
  body:is([data-route-section="whatsapp-crm"], [data-section="whatsapp-crm"]) #whatsapp-crm .whatsapp-crm-operation-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  body:is([data-route-section="whatsapp-crm"], [data-section="whatsapp-crm"]) #whatsapp-crm .hero-card {
    grid-template-columns: 1fr;
    padding: 18px !important;
  }

  body:is([data-route-section="whatsapp-crm"], [data-section="whatsapp-crm"]) #whatsapp-crm .split-grid,
  body:is([data-route-section="whatsapp-crm"], [data-section="whatsapp-crm"]) #whatsapp-crm .stats-grid,
  body:is([data-route-section="whatsapp-crm"], [data-section="whatsapp-crm"]) #whatsapp-crm .cards-grid,
  body:is([data-route-section="whatsapp-crm"], [data-section="whatsapp-crm"]) #whatsapp-crm .filters-grid,
  body:is([data-route-section="whatsapp-crm"], [data-section="whatsapp-crm"]) #whatsapp-crm .form-grid,
  body:is([data-route-section="whatsapp-crm"], [data-section="whatsapp-crm"]) #whatsapp-crm .whatsapp-crm-status-grid,
  body:is([data-route-section="whatsapp-crm"], [data-section="whatsapp-crm"]) #whatsapp-crm .whatsapp-crm-campaign-summary,
  body:is([data-route-section="whatsapp-crm"], [data-section="whatsapp-crm"]) #whatsapp-crm .whatsapp-crm-operation-stats {
    grid-template-columns: 1fr;
  }

  body:is([data-route-section="whatsapp-crm"], [data-section="whatsapp-crm"]) #whatsapp-crm .action-row {
    align-items: stretch;
    flex-direction: column;
  }
}

/* ============================================================
   PDV CAIXA - VISUAL REFINEMENT
   Compact, operational polish only. No cashier behavior changes.
   ============================================================ */

body[data-route-section="pdv-cash-register"] .pdv-front-shell,
body[data-route-section="pdv-cash-register"] .pdv-cash-shell {
  gap: 14px !important;
}

body[data-route-section="pdv-cash-register"] .pdv-hero-card {
  min-height: auto !important;
  padding: 18px 20px !important;
  border-radius: 18px !important;
  align-items: center;
}

body[data-route-section="pdv-cash-register"] .pdv-hero-card h3 {
  max-width: 760px;
  font-size: clamp(1.42rem, 1.9vw, 1.82rem) !important;
  line-height: 1.08 !important;
}

body[data-route-section="pdv-cash-register"] .pdv-hero-card .helper-text {
  max-width: 720px;
  font-size: 0.88rem !important;
  line-height: 1.45 !important;
}

body[data-route-section="pdv-cash-register"] .pdv-route-summary {
  gap: 10px !important;
}

body[data-route-section="pdv-cash-register"] .pdv-route-shell-compact {
  padding: 8px !important;
  border-radius: 16px !important;
}

body[data-route-section="pdv-cash-register"] .pdv-route-tabs {
  gap: 8px !important;
}

body[data-route-section="pdv-cash-register"] .pdv-route-tab {
  min-height: 34px !important;
  padding: 8px 12px !important;
  border-radius: 12px !important;
  font-size: 0.78rem !important;
}

body[data-route-section="pdv-cash-register"] .panel,
body[data-route-section="pdv-cash-register"] .pdv-cash-table-panel,
body[data-route-section="pdv-cash-register"] .pdv-cash-detail-panel,
body[data-route-section="pdv-cash-register"] .pdv-cash-pending-panel,
body[data-route-section="pdv-cash-register"] .pdv-authorizers-panel {
  padding: 16px !important;
  border-radius: 18px !important;
  box-shadow: 0 14px 38px rgba(0,0,0,0.18) !important;
}

body[data-route-section="pdv-cash-register"] .panel-header {
  gap: 8px !important;
  margin-bottom: 8px !important;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--cash-divider);
}

body[data-route-section="pdv-cash-register"] .panel-header h3,
body[data-route-section="pdv-cash-register"] .panel h3 {
  font-size: 0.98rem !important;
  line-height: 1.2 !important;
  letter-spacing: -0.01em;
}

body[data-route-section="pdv-cash-register"] .panel-header span,
body[data-route-section="pdv-cash-register"] .panel-header p {
  font-size: 0.8rem !important;
  line-height: 1.4 !important;
}

body[data-route-section="pdv-cash-register"] .pdv-cash-summary-grid,
body[data-route-section="pdv-cash-register"] .pdv-cash-kpi-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 10px !important;
}

body[data-route-section="pdv-cash-register"] .stat-card {
  min-height: 78px !important;
  padding: 12px 14px !important;
  border-radius: 16px !important;
  align-content: center;
  gap: 6px !important;
}

body[data-route-section="pdv-cash-register"] .stat-card span,
body[data-route-section="pdv-cash-register"] .stat-card small {
  font-size: 0.72rem !important;
  line-height: 1.25 !important;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

body[data-route-section="pdv-cash-register"] .stat-card strong {
  font-size: clamp(1.08rem, 1.35vw, 1.42rem) !important;
  line-height: 1.12 !important;
  overflow-wrap: anywhere;
}

body[data-route-section="pdv-cash-register"] .pdv-cash-summary-grid .stat-card:first-child strong,
body[data-route-section="pdv-cash-register"] .pdv-cash-kpi-grid .stat-card:last-child strong {
  font-size: clamp(0.92rem, 1.1vw, 1.08rem) !important;
}

body[data-route-section="pdv-cash-register"] .split-grid {
  grid-template-columns: minmax(0, 1.05fr) minmax(360px, 0.95fr) !important;
  gap: 14px !important;
  align-items: start !important;
}

body[data-route-section="pdv-cash-register"] .pdv-register-highlight-list,
body[data-route-section="pdv-cash-register"] .pdv-authorizers-stack,
body[data-route-section="pdv-cash-register"] .pdv-authorizers-list {
  display: grid;
  gap: 10px !important;
}

body[data-route-section="pdv-cash-register"] .pdv-register-highlight-card,
body[data-route-section="pdv-cash-register"] .pdv-register-inline-warning,
body[data-route-section="pdv-cash-register"] .pdv-cash-detail-card,
body[data-route-section="pdv-cash-register"] .pdv-cash-detail-grid div,
body[data-route-section="pdv-cash-register"] .empty-state,
body[data-route-section="pdv-cash-register"] .pdv-authorizer-card,
body[data-route-section="pdv-cash-register"] .pdv-authorizer-create-card,
body[data-route-section="pdv-cash-register"] .pdv-authorizer-setup-card,
body[data-route-section="pdv-cash-register"] .pdv-authorizer-instructions {
  padding: 12px 14px !important;
  border-radius: 15px !important;
}

body[data-route-section="pdv-cash-register"] .pdv-register-highlight-card strong,
body[data-route-section="pdv-cash-register"] .pdv-register-inline-warning strong,
body[data-route-section="pdv-cash-register"] .pdv-cash-detail-head strong,
body[data-route-section="pdv-cash-register"] .pdv-cash-detail-payments strong {
  font-size: 0.92rem !important;
  line-height: 1.25 !important;
}

body[data-route-section="pdv-cash-register"] .pdv-register-highlight-card span,
body[data-route-section="pdv-cash-register"] .pdv-register-inline-warning span,
body[data-route-section="pdv-cash-register"] .pdv-cash-detail-head span,
body[data-route-section="pdv-cash-register"] .pdv-cash-detail-payments span {
  font-size: 0.78rem !important;
  line-height: 1.42 !important;
}

body[data-route-section="pdv-cash-register"] .pdv-register-status-badge,
body[data-route-section="pdv-cash-register"] .pdv-register-highlight-badge,
body[data-route-section="pdv-cash-register"] .pdv-cash-pending-count {
  min-height: 24px !important;
  padding: 5px 9px !important;
  border-radius: 999px !important;
  font-size: 0.68rem !important;
  line-height: 1 !important;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

body[data-route-section="pdv-cash-register"] .pdv-cash-detail-card {
  gap: 12px !important;
}

body[data-route-section="pdv-cash-register"] .pdv-cash-detail-head {
  align-items: center !important;
}

body[data-route-section="pdv-cash-register"] .pdv-cash-detail-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 9px !important;
}

body[data-route-section="pdv-cash-register"] .pdv-cash-detail-grid div {
  gap: 3px !important;
}

body[data-route-section="pdv-cash-register"] .pdv-cash-detail-grid span {
  font-size: 0.68rem !important;
  letter-spacing: 0.06em !important;
}

body[data-route-section="pdv-cash-register"] .pdv-cash-detail-grid strong {
  font-size: 0.88rem !important;
  line-height: 1.25 !important;
  overflow-wrap: anywhere;
}

body[data-route-section="pdv-cash-register"] .pdv-cash-detail-actions,
body[data-route-section="pdv-cash-register"] .pdv-cash-pending-actions,
body[data-route-section="pdv-cash-register"] .pdv-authorizer-card-actions,
body[data-route-section="pdv-cash-register"] .action-row {
  gap: 7px !important;
}

body[data-route-section="pdv-cash-register"] .primary-button,
body[data-route-section="pdv-cash-register"] .secondary-button,
body[data-route-section="pdv-cash-register"] .ghost-button,
body[data-route-section="pdv-cash-register"] .danger-button {
  min-height: 38px !important;
  padding: 9px 13px !important;
  border-radius: 12px !important;
  font-size: 0.78rem !important;
  line-height: 1.1 !important;
}

body[data-route-section="pdv-cash-register"] .ghost-button.small,
body[data-route-section="pdv-cash-register"] .secondary-button.small,
body[data-route-section="pdv-cash-register"] .primary-button.small,
body[data-route-section="pdv-cash-register"] .danger-button.small {
  min-height: 30px !important;
  padding: 7px 10px !important;
  border-radius: 10px !important;
  font-size: 0.7rem !important;
}

body[data-route-section="pdv-cash-register"] input,
body[data-route-section="pdv-cash-register"] select,
body[data-route-section="pdv-cash-register"] textarea {
  min-height: 40px !important;
  border-radius: 12px !important;
  font-size: 0.86rem !important;
}

body[data-route-section="pdv-cash-register"] .table-wrap,
body[data-route-section="pdv-cash-register"] .table-scroll {
  border-radius: 16px !important;
  max-height: 430px;
}

body[data-route-section="pdv-cash-register"] .pdv-cash-table {
  min-width: 880px;
  border-spacing: 0;
}

body[data-route-section="pdv-cash-register"] .pdv-cash-table th,
body[data-route-section="pdv-cash-register"] .pdv-cash-table td {
  padding: 9px 10px !important;
  font-size: 0.78rem !important;
  line-height: 1.35 !important;
  vertical-align: middle !important;
}

body[data-route-section="pdv-cash-register"] .pdv-cash-table th {
  font-size: 0.68rem !important;
  letter-spacing: 0.06em !important;
  text-transform: uppercase;
}

body[data-route-section="pdv-cash-register"] .pdv-cash-table td strong {
  font-size: 0.84rem !important;
}

body[data-route-section="pdv-cash-register"] .pdv-register-label-cell {
  gap: 2px !important;
}

body[data-route-section="pdv-cash-register"] .pdv-register-label-cell strong {
  font-size: 0.82rem !important;
  overflow-wrap: anywhere;
}

body[data-route-section="pdv-cash-register"] .pdv-register-label-cell span {
  font-size: 0.68rem !important;
  overflow-wrap: anywhere;
}

body[data-route-section="pdv-cash-register"] .pdv-authorizers-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px !important;
}

body[data-route-section="pdv-cash-register"] .pdv-authorizers-summary span {
  min-height: 52px;
  align-content: center;
  padding: 10px 12px !important;
  font-size: 0.76rem !important;
}

body[data-route-section="pdv-cash-register"] .pdv-authorizers-summary strong {
  font-size: 1.08rem !important;
}

body[data-route-section="pdv-cash-register"] .pdv-authorizer-card {
  align-items: center;
  grid-template-columns: minmax(0, 1fr) auto;
}

body[data-route-section="pdv-cash-register"] .pdv-authorizer-card-copy {
  gap: 3px !important;
}

body[data-route-section="pdv-cash-register"] .pdv-authorizer-card-copy strong {
  font-size: 0.9rem !important;
}

body[data-route-section="pdv-cash-register"] .pdv-authorizer-card-copy span,
body[data-route-section="pdv-cash-register"] .pdv-authorizer-card-copy small,
body[data-route-section="pdv-cash-register"] .empty-state span {
  font-size: 0.76rem !important;
  line-height: 1.35 !important;
}

body[data-route-section="pdv-cash-register"] .empty-state.compact {
  min-height: auto !important;
  padding: 14px !important;
}

body[data-route-section="pdv-cash-register"] .empty-state strong {
  font-size: 0.92rem !important;
}

@media (max-width: 1180px) {
  body[data-route-section="pdv-cash-register"] .pdv-cash-summary-grid,
  body[data-route-section="pdv-cash-register"] .pdv-cash-kpi-grid,
  body[data-route-section="pdv-cash-register"] .pdv-authorizers-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  body[data-route-section="pdv-cash-register"] .split-grid {
    grid-template-columns: 1fr !important;
  }
}

@media (max-width: 720px) {
  body[data-route-section="pdv-cash-register"] .pdv-hero-card {
    padding: 16px !important;
  }

  body[data-route-section="pdv-cash-register"] .pdv-cash-summary-grid,
  body[data-route-section="pdv-cash-register"] .pdv-cash-kpi-grid,
  body[data-route-section="pdv-cash-register"] .pdv-cash-detail-grid,
  body[data-route-section="pdv-cash-register"] .pdv-authorizers-summary {
    grid-template-columns: 1fr !important;
  }

  body[data-route-section="pdv-cash-register"] .pdv-authorizer-card {
    grid-template-columns: 1fr;
  }

  body[data-route-section="pdv-cash-register"] .pdv-cash-detail-actions,
  body[data-route-section="pdv-cash-register"] .pdv-cash-pending-actions,
  body[data-route-section="pdv-cash-register"] .pdv-authorizer-card-actions {
    align-items: stretch;
    flex-direction: column;
  }
}

/* ============================================================
   WHATSAPP CRM - VISUAL REFINEMENT
   Compact operational polish only. No WhatsApp behavior changes.
   ============================================================ */

body:is([data-route-section="whatsapp-crm"], [data-section="whatsapp-crm"]) #whatsapp-crm,
body:is([data-route-section="whatsapp-crm"], [data-section="whatsapp-crm"]) .whatsapp-crm-shell {
  gap: 14px !important;
}

body:is([data-route-section="whatsapp-crm"], [data-section="whatsapp-crm"]) #whatsapp-crm .hero-card {
  min-height: auto !important;
  padding: 18px 20px !important;
  border-radius: 18px !important;
  align-items: center;
}

body:is([data-route-section="whatsapp-crm"], [data-section="whatsapp-crm"]) #whatsapp-crm .hero-card h3 {
  max-width: 780px;
  font-size: clamp(1.42rem, 1.9vw, 1.82rem) !important;
  line-height: 1.08 !important;
}

body:is([data-route-section="whatsapp-crm"], [data-section="whatsapp-crm"]) #whatsapp-crm .hero-card .helper-text {
  max-width: 740px;
  font-size: 0.88rem !important;
  line-height: 1.45 !important;
}

body:is([data-route-section="whatsapp-crm"], [data-section="whatsapp-crm"]) #whatsapp-crm .pdv-route-summary {
  gap: 10px !important;
}

body:is([data-route-section="whatsapp-crm"], [data-section="whatsapp-crm"]) #whatsapp-crm .pdv-route-summary .stat-card {
  min-height: 76px !important;
}

body:is([data-route-section="whatsapp-crm"], [data-section="whatsapp-crm"]) #whatsapp-crm .pdv-route-tabs {
  padding: 8px !important;
  border-radius: 16px !important;
}

body:is([data-route-section="whatsapp-crm"], [data-section="whatsapp-crm"]) #whatsapp-crm .pdv-route-tab {
  min-height: 34px !important;
  padding: 8px 12px !important;
  border-radius: 12px !important;
  font-size: 0.78rem !important;
}

body:is([data-route-section="whatsapp-crm"], [data-section="whatsapp-crm"]) #whatsapp-crm .panel,
body:is([data-route-section="whatsapp-crm"], [data-section="whatsapp-crm"]) #whatsapp-crm .whatsapp-crm-panel {
  padding: 16px !important;
  border-radius: 18px !important;
  box-shadow: 0 14px 38px rgba(0,0,0,0.18) !important;
}

body:is([data-route-section="whatsapp-crm"], [data-section="whatsapp-crm"]) #whatsapp-crm .panel-header {
  gap: 8px !important;
  margin-bottom: 8px !important;
  padding-bottom: 8px !important;
  border-bottom: 1px solid var(--wa-divider);
}

body:is([data-route-section="whatsapp-crm"], [data-section="whatsapp-crm"]) #whatsapp-crm .panel-header h3,
body:is([data-route-section="whatsapp-crm"], [data-section="whatsapp-crm"]) #whatsapp-crm .panel h3 {
  font-size: 0.98rem !important;
  line-height: 1.2 !important;
  letter-spacing: -0.01em;
}

body:is([data-route-section="whatsapp-crm"], [data-section="whatsapp-crm"]) #whatsapp-crm .panel-header span,
body:is([data-route-section="whatsapp-crm"], [data-section="whatsapp-crm"]) #whatsapp-crm .panel-header p,
body:is([data-route-section="whatsapp-crm"], [data-section="whatsapp-crm"]) #whatsapp-crm .table-meta {
  font-size: 0.8rem !important;
  line-height: 1.4 !important;
}

body:is([data-route-section="whatsapp-crm"], [data-section="whatsapp-crm"]) #whatsapp-crm .split-grid,
body:is([data-route-section="whatsapp-crm"], [data-section="whatsapp-crm"]) #whatsapp-crm .whatsapp-crm-composer-grid,
body:is([data-route-section="whatsapp-crm"], [data-section="whatsapp-crm"]) #whatsapp-crm .whatsapp-crm-operation-grid,
body:is([data-route-section="whatsapp-crm"], [data-section="whatsapp-crm"]) #whatsapp-crm .whatsapp-crm-assistant-grid {
  grid-template-columns: minmax(0, 1.05fr) minmax(360px, 0.95fr) !important;
  gap: 14px !important;
  align-items: start !important;
}

body:is([data-route-section="whatsapp-crm"], [data-section="whatsapp-crm"]) #whatsapp-crm .stats-grid,
body:is([data-route-section="whatsapp-crm"], [data-section="whatsapp-crm"]) #whatsapp-crm .cards-grid,
body:is([data-route-section="whatsapp-crm"], [data-section="whatsapp-crm"]) #whatsapp-crm .filters-grid,
body:is([data-route-section="whatsapp-crm"], [data-section="whatsapp-crm"]) #whatsapp-crm .form-grid {
  gap: 10px !important;
}

body:is([data-route-section="whatsapp-crm"], [data-section="whatsapp-crm"]) #whatsapp-crm .whatsapp-crm-status-grid,
body:is([data-route-section="whatsapp-crm"], [data-section="whatsapp-crm"]) #whatsapp-crm .whatsapp-crm-campaign-summary,
body:is([data-route-section="whatsapp-crm"], [data-section="whatsapp-crm"]) #whatsapp-crm .whatsapp-crm-operation-stats {
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 10px !important;
}

body:is([data-route-section="whatsapp-crm"], [data-section="whatsapp-crm"]) #whatsapp-crm .stat-card,
body:is([data-route-section="whatsapp-crm"], [data-section="whatsapp-crm"]) #whatsapp-crm .whatsapp-crm-status-card {
  min-height: 78px !important;
  padding: 12px 14px !important;
  border-radius: 16px !important;
  align-content: center;
  gap: 6px !important;
}

body:is([data-route-section="whatsapp-crm"], [data-section="whatsapp-crm"]) #whatsapp-crm .stat-card span,
body:is([data-route-section="whatsapp-crm"], [data-section="whatsapp-crm"]) #whatsapp-crm .stat-card small,
body:is([data-route-section="whatsapp-crm"], [data-section="whatsapp-crm"]) #whatsapp-crm .whatsapp-crm-status-card small {
  font-size: 0.72rem !important;
  line-height: 1.28 !important;
  letter-spacing: 0.04em;
}

body:is([data-route-section="whatsapp-crm"], [data-section="whatsapp-crm"]) #whatsapp-crm .stat-card span {
  text-transform: uppercase;
}

body:is([data-route-section="whatsapp-crm"], [data-section="whatsapp-crm"]) #whatsapp-crm .stat-card strong,
body:is([data-route-section="whatsapp-crm"], [data-section="whatsapp-crm"]) #whatsapp-crm .whatsapp-crm-status-card strong {
  font-size: clamp(1.06rem, 1.35vw, 1.42rem) !important;
  line-height: 1.12 !important;
  overflow-wrap: anywhere;
}

body:is([data-route-section="whatsapp-crm"], [data-section="whatsapp-crm"]) #whatsapp-crm .pdv-route-summary .stat-card strong {
  font-size: clamp(0.92rem, 1.1vw, 1.08rem) !important;
}

body:is([data-route-section="whatsapp-crm"], [data-section="whatsapp-crm"]) #whatsapp-crm .whatsapp-crm-qr-wrap,
body:is([data-route-section="whatsapp-crm"], [data-section="whatsapp-crm"]) #whatsapp-crm .whatsapp-crm-media-preview-box,
body:is([data-route-section="whatsapp-crm"], [data-section="whatsapp-crm"]) #whatsapp-crm .whatsapp-crm-operation-card,
body:is([data-route-section="whatsapp-crm"], [data-section="whatsapp-crm"]) #whatsapp-crm .message-preview,
body:is([data-route-section="whatsapp-crm"], [data-section="whatsapp-crm"]) #whatsapp-crm .search-result-card,
body:is([data-route-section="whatsapp-crm"], [data-section="whatsapp-crm"]) #whatsapp-crm .empty-state,
body:is([data-route-section="whatsapp-crm"], [data-section="whatsapp-crm"]) #whatsapp-crm .pdv-customers-callout {
  padding: 12px 14px !important;
  border-radius: 15px !important;
}

body:is([data-route-section="whatsapp-crm"], [data-section="whatsapp-crm"]) #whatsapp-crm .empty-state.compact {
  min-height: auto !important;
  padding: 14px !important;
}

body:is([data-route-section="whatsapp-crm"], [data-section="whatsapp-crm"]) #whatsapp-crm .empty-state strong,
body:is([data-route-section="whatsapp-crm"], [data-section="whatsapp-crm"]) #whatsapp-crm .pdv-customers-callout strong,
body:is([data-route-section="whatsapp-crm"], [data-section="whatsapp-crm"]) #whatsapp-crm .search-result-card strong {
  font-size: 0.9rem !important;
  line-height: 1.25 !important;
}

body:is([data-route-section="whatsapp-crm"], [data-section="whatsapp-crm"]) #whatsapp-crm .empty-state span,
body:is([data-route-section="whatsapp-crm"], [data-section="whatsapp-crm"]) #whatsapp-crm .pdv-customers-callout span,
body:is([data-route-section="whatsapp-crm"], [data-section="whatsapp-crm"]) #whatsapp-crm .search-result-card span,
body:is([data-route-section="whatsapp-crm"], [data-section="whatsapp-crm"]) #whatsapp-crm .search-result-card small {
  font-size: 0.76rem !important;
  line-height: 1.38 !important;
}

body:is([data-route-section="whatsapp-crm"], [data-section="whatsapp-crm"]) #whatsapp-crm .whatsapp-crm-test-form,
body:is([data-route-section="whatsapp-crm"], [data-section="whatsapp-crm"]) #whatsapp-crm .whatsapp-crm-campaign-form,
body:is([data-route-section="whatsapp-crm"], [data-section="whatsapp-crm"]) #whatsapp-crm .whatsapp-crm-template-strip,
body:is([data-route-section="whatsapp-crm"], [data-section="whatsapp-crm"]) #whatsapp-crm .whatsapp-crm-template-list,
body:is([data-route-section="whatsapp-crm"], [data-section="whatsapp-crm"]) #whatsapp-crm .whatsapp-crm-mini-list {
  gap: 10px !important;
}

body:is([data-route-section="whatsapp-crm"], [data-section="whatsapp-crm"]) #whatsapp-crm label {
  gap: 6px !important;
  font-size: 0.76rem !important;
  line-height: 1.25 !important;
}

body:is([data-route-section="whatsapp-crm"], [data-section="whatsapp-crm"]) #whatsapp-crm input,
body:is([data-route-section="whatsapp-crm"], [data-section="whatsapp-crm"]) #whatsapp-crm select,
body:is([data-route-section="whatsapp-crm"], [data-section="whatsapp-crm"]) #whatsapp-crm textarea {
  min-height: 40px !important;
  border-radius: 12px !important;
  font-size: 0.86rem !important;
}

body:is([data-route-section="whatsapp-crm"], [data-section="whatsapp-crm"]) #whatsapp-crm textarea,
body:is([data-route-section="whatsapp-crm"], [data-section="whatsapp-crm"]) #whatsapp-crm .whatsapp-crm-campaign-form textarea {
  min-height: 104px !important;
}

body:is([data-route-section="whatsapp-crm"], [data-section="whatsapp-crm"]) #whatsapp-crm .whatsapp-crm-test-form textarea {
  min-height: 92px !important;
}

body:is([data-route-section="whatsapp-crm"], [data-section="whatsapp-crm"]) #whatsapp-crm .message-preview,
body:is([data-route-section="whatsapp-crm"], [data-section="whatsapp-crm"]) #whatsapp-crm .whatsapp-crm-literal-preview {
  font-size: 0.84rem !important;
  line-height: 1.55 !important;
  max-height: 220px;
  overflow: auto;
}

body:is([data-route-section="whatsapp-crm"], [data-section="whatsapp-crm"]) #whatsapp-crm .whatsapp-crm-media-preview-box img,
body:is([data-route-section="whatsapp-crm"], [data-section="whatsapp-crm"]) #whatsapp-crm .whatsapp-crm-media-preview-box video {
  width: min(260px, 100%) !important;
  max-height: 210px !important;
}

body:is([data-route-section="whatsapp-crm"], [data-section="whatsapp-crm"]) #whatsapp-crm .whatsapp-crm-qr-image {
  width: min(210px, 100%) !important;
  padding: 10px !important;
}

body:is([data-route-section="whatsapp-crm"], [data-section="whatsapp-crm"]) #whatsapp-crm .primary-button,
body:is([data-route-section="whatsapp-crm"], [data-section="whatsapp-crm"]) #whatsapp-crm .secondary-button,
body:is([data-route-section="whatsapp-crm"], [data-section="whatsapp-crm"]) #whatsapp-crm .ghost-button,
body:is([data-route-section="whatsapp-crm"], [data-section="whatsapp-crm"]) #whatsapp-crm .danger-button {
  min-height: 38px !important;
  padding: 9px 13px !important;
  border-radius: 12px !important;
  font-size: 0.78rem !important;
  line-height: 1.1 !important;
}

body:is([data-route-section="whatsapp-crm"], [data-section="whatsapp-crm"]) #whatsapp-crm .primary-button.small,
body:is([data-route-section="whatsapp-crm"], [data-section="whatsapp-crm"]) #whatsapp-crm .secondary-button.small,
body:is([data-route-section="whatsapp-crm"], [data-section="whatsapp-crm"]) #whatsapp-crm .ghost-button.small,
body:is([data-route-section="whatsapp-crm"], [data-section="whatsapp-crm"]) #whatsapp-crm .danger-button.small {
  min-height: 30px !important;
  padding: 7px 10px !important;
  border-radius: 10px !important;
  font-size: 0.7rem !important;
}

body:is([data-route-section="whatsapp-crm"], [data-section="whatsapp-crm"]) #whatsapp-crm .action-row,
body:is([data-route-section="whatsapp-crm"], [data-section="whatsapp-crm"]) #whatsapp-crm .whatsapp-crm-action-row {
  gap: 7px !important;
}

body:is([data-route-section="whatsapp-crm"], [data-section="whatsapp-crm"]) #whatsapp-crm .table-wrap,
body:is([data-route-section="whatsapp-crm"], [data-section="whatsapp-crm"]) #whatsapp-crm .scroll-panel,
body:is([data-route-section="whatsapp-crm"], [data-section="whatsapp-crm"]) #whatsapp-crm .whatsapp-crm-template-list,
body:is([data-route-section="whatsapp-crm"], [data-section="whatsapp-crm"]) #whatsapp-crm .whatsapp-crm-mini-list {
  border-radius: 16px !important;
  max-height: 430px;
  overflow: auto;
}

body:is([data-route-section="whatsapp-crm"], [data-section="whatsapp-crm"]) #whatsapp-crm .whatsapp-crm-template-list,
body:is([data-route-section="whatsapp-crm"], [data-section="whatsapp-crm"]) #whatsapp-crm .whatsapp-crm-mini-list {
  max-height: 360px;
}

body:is([data-route-section="whatsapp-crm"], [data-section="whatsapp-crm"]) #whatsapp-crm .whatsapp-crm-table {
  min-width: 860px;
  border-spacing: 0;
}

body:is([data-route-section="whatsapp-crm"], [data-section="whatsapp-crm"]) #whatsapp-crm .whatsapp-crm-table th,
body:is([data-route-section="whatsapp-crm"], [data-section="whatsapp-crm"]) #whatsapp-crm .whatsapp-crm-table td {
  padding: 9px 10px !important;
  font-size: 0.78rem !important;
  line-height: 1.35 !important;
  vertical-align: middle !important;
}

body:is([data-route-section="whatsapp-crm"], [data-section="whatsapp-crm"]) #whatsapp-crm .whatsapp-crm-table th {
  font-size: 0.68rem !important;
  letter-spacing: 0.06em !important;
  text-transform: uppercase;
}

body:is([data-route-section="whatsapp-crm"], [data-section="whatsapp-crm"]) #whatsapp-crm .tag,
body:is([data-route-section="whatsapp-crm"], [data-section="whatsapp-crm"]) #whatsapp-crm .status-pill,
body:is([data-route-section="whatsapp-crm"], [data-section="whatsapp-crm"]) #whatsapp-crm .badge,
body:is([data-route-section="whatsapp-crm"], [data-section="whatsapp-crm"]) #whatsapp-crm .status-banner {
  min-height: 24px !important;
  padding: 5px 9px !important;
  border-radius: 999px !important;
  font-size: 0.68rem !important;
  line-height: 1 !important;
  letter-spacing: 0.04em;
}

@media (max-width: 1180px) {
  body:is([data-route-section="whatsapp-crm"], [data-section="whatsapp-crm"]) #whatsapp-crm .split-grid,
  body:is([data-route-section="whatsapp-crm"], [data-section="whatsapp-crm"]) #whatsapp-crm .whatsapp-crm-composer-grid,
  body:is([data-route-section="whatsapp-crm"], [data-section="whatsapp-crm"]) #whatsapp-crm .whatsapp-crm-operation-grid,
  body:is([data-route-section="whatsapp-crm"], [data-section="whatsapp-crm"]) #whatsapp-crm .whatsapp-crm-assistant-grid,
  body:is([data-route-section="whatsapp-crm"], [data-section="whatsapp-crm"]) #whatsapp-crm .whatsapp-crm-status-grid,
  body:is([data-route-section="whatsapp-crm"], [data-section="whatsapp-crm"]) #whatsapp-crm .whatsapp-crm-campaign-summary,
  body:is([data-route-section="whatsapp-crm"], [data-section="whatsapp-crm"]) #whatsapp-crm .whatsapp-crm-operation-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 760px) {
  body:is([data-route-section="whatsapp-crm"], [data-section="whatsapp-crm"]) #whatsapp-crm .hero-card {
    padding: 16px !important;
  }

  body:is([data-route-section="whatsapp-crm"], [data-section="whatsapp-crm"]) #whatsapp-crm .split-grid,
  body:is([data-route-section="whatsapp-crm"], [data-section="whatsapp-crm"]) #whatsapp-crm .stats-grid,
  body:is([data-route-section="whatsapp-crm"], [data-section="whatsapp-crm"]) #whatsapp-crm .cards-grid,
  body:is([data-route-section="whatsapp-crm"], [data-section="whatsapp-crm"]) #whatsapp-crm .filters-grid,
  body:is([data-route-section="whatsapp-crm"], [data-section="whatsapp-crm"]) #whatsapp-crm .form-grid,
  body:is([data-route-section="whatsapp-crm"], [data-section="whatsapp-crm"]) #whatsapp-crm .whatsapp-crm-composer-grid,
  body:is([data-route-section="whatsapp-crm"], [data-section="whatsapp-crm"]) #whatsapp-crm .whatsapp-crm-operation-grid,
  body:is([data-route-section="whatsapp-crm"], [data-section="whatsapp-crm"]) #whatsapp-crm .whatsapp-crm-assistant-grid,
  body:is([data-route-section="whatsapp-crm"], [data-section="whatsapp-crm"]) #whatsapp-crm .whatsapp-crm-status-grid,
  body:is([data-route-section="whatsapp-crm"], [data-section="whatsapp-crm"]) #whatsapp-crm .whatsapp-crm-campaign-summary,
  body:is([data-route-section="whatsapp-crm"], [data-section="whatsapp-crm"]) #whatsapp-crm .whatsapp-crm-operation-stats {
    grid-template-columns: 1fr !important;
  }

  body:is([data-route-section="whatsapp-crm"], [data-section="whatsapp-crm"]) #whatsapp-crm .action-row,
  body:is([data-route-section="whatsapp-crm"], [data-section="whatsapp-crm"]) #whatsapp-crm .whatsapp-crm-action-row {
    align-items: stretch;
    flex-direction: column;
  }
}

/* AEROINTEL visual refinement - dark premium AEROSTORE */
body:is([data-route-section="aerointel"], [data-section="aerointel"]) {
  --aerointel-bg-app: #0B0F14;
  --aerointel-bg-shell: #0F141B;
  --aerointel-bg-panel: #131A23;
  --aerointel-bg-card: #171F2A;
  --aerointel-border-soft: rgba(255,255,255,0.07);
  --aerointel-border-strong: rgba(255,255,255,0.12);
  --aerointel-divider: rgba(255,255,255,0.06);
  --aerointel-text-main: #F4F7FA;
  --aerointel-text-muted: #AAB4C0;
  --aerointel-text-subtle: #7F8A99;
  --aerointel-accent: #2DD4BF;
  --aerointel-accent-strong: #14B8A6;
  --aerointel-accent-soft: rgba(45,212,191,0.12);
  --aerointel-accent-border: rgba(45,212,191,0.35);
  --aerointel-success: #34D399;
  --aerointel-success-soft: rgba(52,211,153,0.12);
  --aerointel-warning: #F59E0B;
  --aerointel-warning-soft: rgba(245,158,11,0.12);
  --aerointel-danger: #EF4444;
  --aerointel-danger-soft: rgba(239,68,68,0.12);
  background:
    radial-gradient(circle at 12% 8%, rgba(45,212,191,0.08), transparent 30%),
    linear-gradient(145deg, #0B0F14 0%, #0F141B 48%, #0B0F14 100%);
}

body:is([data-route-section="aerointel"], [data-section="aerointel"]) #aerointel,
body:is([data-route-section="aerointel"], [data-section="aerointel"]) #aerointel-content {
  color: var(--aerointel-text-main);
}

body:is([data-route-section="aerointel"], [data-section="aerointel"]) #aerointel-content,
body:is([data-route-section="aerointel"], [data-section="aerointel"]) #aerointel .aerointel-view-panel,
body:is([data-route-section="aerointel"], [data-section="aerointel"]) #aerointel .aerointel-live-profile-panel {
  display: grid;
  gap: 14px;
}

body:is([data-route-section="aerointel"], [data-section="aerointel"]) #aerointel .hero-card,
body:is([data-route-section="aerointel"], [data-section="aerointel"]) #aerointel .aerointel-hero-card {
  min-height: 0 !important;
  padding: 18px 20px !important;
  border: 1px solid var(--aerointel-border-soft) !important;
  border-radius: 20px !important;
  background:
    linear-gradient(135deg, rgba(45,212,191,0.10), transparent 35%),
    linear-gradient(155deg, rgba(19,26,35,0.96), rgba(15,20,27,0.98)) !important;
  box-shadow: 0 18px 48px rgba(0,0,0,0.30) !important;
}

body:is([data-route-section="aerointel"], [data-section="aerointel"]) #aerointel .hero-card h3,
body:is([data-route-section="aerointel"], [data-section="aerointel"]) #aerointel .aerointel-hero-card h3 {
  max-width: 760px;
  color: var(--aerointel-text-main) !important;
  font-size: clamp(1.42rem, 2vw, 1.82rem) !important;
  letter-spacing: -0.035em;
  line-height: 1.06;
}

body:is([data-route-section="aerointel"], [data-section="aerointel"]) #aerointel .hero-card p,
body:is([data-route-section="aerointel"], [data-section="aerointel"]) #aerointel .aerointel-hero-card span {
  max-width: 760px;
  color: var(--aerointel-text-muted) !important;
  font-size: 0.88rem !important;
  line-height: 1.45;
}

body:is([data-route-section="aerointel"], [data-section="aerointel"]) #aerointel .eyebrow {
  color: var(--aerointel-accent) !important;
  font-size: 0.68rem !important;
  letter-spacing: 0.18em !important;
}

body:is([data-route-section="aerointel"], [data-section="aerointel"]) #aerointel .panel,
body:is([data-route-section="aerointel"], [data-section="aerointel"]) #aerointel .aerointel-filters-panel,
body:is([data-route-section="aerointel"], [data-section="aerointel"]) #aerointel .aerointel-view-panel,
body:is([data-route-section="aerointel"], [data-section="aerointel"]) #aerointel .aerointel-live-profile-panel,
body:is([data-route-section="aerointel"], [data-section="aerointel"]) #aerointel .aerointel-mini-card,
body:is([data-route-section="aerointel"], [data-section="aerointel"]) #aerointel .aerointel-filter-hint,
body:is([data-route-section="aerointel"], [data-section="aerointel"]) #aerointel .aerointel-highlight-toggle,
body:is([data-route-section="aerointel"], [data-section="aerointel"]) #aerointel .aerointel-message-card,
body:is([data-route-section="aerointel"], [data-section="aerointel"]) #aerointel .empty-state,
body:is([data-route-section="aerointel"], [data-section="aerointel"]) #aerointel .table-wrap {
  border: 1px solid var(--aerointel-border-soft) !important;
  background: linear-gradient(180deg, rgba(23,31,42,0.96), rgba(19,26,35,0.98)) !important;
  box-shadow: 0 14px 34px rgba(0,0,0,0.20) !important;
}

body:is([data-route-section="aerointel"], [data-section="aerointel"]) #aerointel .panel,
body:is([data-route-section="aerointel"], [data-section="aerointel"]) #aerointel .aerointel-filters-panel,
body:is([data-route-section="aerointel"], [data-section="aerointel"]) #aerointel .aerointel-view-panel,
body:is([data-route-section="aerointel"], [data-section="aerointel"]) #aerointel .aerointel-live-profile-panel {
  padding: 14px !important;
  border-radius: 18px !important;
}

body:is([data-route-section="aerointel"], [data-section="aerointel"]) #aerointel .panel-header {
  gap: 10px !important;
  margin-bottom: 10px !important;
  padding-bottom: 10px !important;
  border-bottom: 1px solid var(--aerointel-divider);
}

body:is([data-route-section="aerointel"], [data-section="aerointel"]) #aerointel .panel-header h3,
body:is([data-route-section="aerointel"], [data-section="aerointel"]) #aerointel .panel h3 {
  color: var(--aerointel-text-main) !important;
  font-size: 0.98rem !important;
  line-height: 1.2 !important;
  letter-spacing: -0.01em;
}

body:is([data-route-section="aerointel"], [data-section="aerointel"]) #aerointel .panel-header span,
body:is([data-route-section="aerointel"], [data-section="aerointel"]) #aerointel .panel-header p,
body:is([data-route-section="aerointel"], [data-section="aerointel"]) #aerointel .table-meta,
body:is([data-route-section="aerointel"], [data-section="aerointel"]) #aerointel .aerointel-filter-hint span,
body:is([data-route-section="aerointel"], [data-section="aerointel"]) #aerointel .aerointel-mini-card small {
  color: var(--aerointel-text-muted) !important;
  font-size: 0.78rem !important;
  line-height: 1.4 !important;
}

body:is([data-route-section="aerointel"], [data-section="aerointel"]) #aerointel .aerointel-head-grid,
body:is([data-route-section="aerointel"], [data-section="aerointel"]) #aerointel .aerointel-metrics-grid,
body:is([data-route-section="aerointel"], [data-section="aerointel"]) #aerointel .aerointel-highlight-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 10px !important;
}

body:is([data-route-section="aerointel"], [data-section="aerointel"]) #aerointel .split-grid,
body:is([data-route-section="aerointel"], [data-section="aerointel"]) #aerointel .aerointel-commercial-grid {
  grid-template-columns: minmax(0, 1.05fr) minmax(360px, 0.95fr) !important;
  gap: 14px !important;
  align-items: start !important;
}

body:is([data-route-section="aerointel"], [data-section="aerointel"]) #aerointel .stats-grid,
body:is([data-route-section="aerointel"], [data-section="aerointel"]) #aerointel .cards-grid,
body:is([data-route-section="aerointel"], [data-section="aerointel"]) #aerointel .filters-grid {
  gap: 10px !important;
}

body:is([data-route-section="aerointel"], [data-section="aerointel"]) #aerointel .aerointel-cards-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
}

body:is([data-route-section="aerointel"], [data-section="aerointel"]) #aerointel .stat-card,
body:is([data-route-section="aerointel"], [data-section="aerointel"]) #aerointel .aerointel-stat-card,
body:is([data-route-section="aerointel"], [data-section="aerointel"]) #aerointel .aerointel-mini-card {
  min-height: 78px !important;
  padding: 12px 14px !important;
  border-radius: 16px !important;
  border-color: var(--aerointel-border-soft) !important;
  background: linear-gradient(180deg, rgba(23,31,42,0.94), rgba(19,26,35,0.98)) !important;
  gap: 6px !important;
}

body:is([data-route-section="aerointel"], [data-section="aerointel"]) #aerointel .stat-card span,
body:is([data-route-section="aerointel"], [data-section="aerointel"]) #aerointel .aerointel-stat-card span {
  color: var(--aerointel-text-subtle) !important;
  font-size: 0.7rem !important;
  letter-spacing: 0.07em !important;
  line-height: 1.25 !important;
  text-transform: uppercase;
}

body:is([data-route-section="aerointel"], [data-section="aerointel"]) #aerointel .stat-card strong,
body:is([data-route-section="aerointel"], [data-section="aerointel"]) #aerointel .aerointel-stat-card strong,
body:is([data-route-section="aerointel"], [data-section="aerointel"]) #aerointel .aerointel-mini-card strong {
  color: var(--aerointel-text-main) !important;
  font-size: clamp(1.06rem, 1.35vw, 1.42rem) !important;
  line-height: 1.12 !important;
  overflow-wrap: anywhere;
}

body:is([data-route-section="aerointel"], [data-section="aerointel"]) #aerointel label {
  gap: 6px !important;
  color: var(--aerointel-text-muted) !important;
  font-size: 0.76rem !important;
  line-height: 1.25 !important;
}

body:is([data-route-section="aerointel"], [data-section="aerointel"]) #aerointel input,
body:is([data-route-section="aerointel"], [data-section="aerointel"]) #aerointel select,
body:is([data-route-section="aerointel"], [data-section="aerointel"]) #aerointel textarea {
  min-height: 40px !important;
  border: 1px solid var(--aerointel-border-soft) !important;
  border-radius: 12px !important;
  background: var(--aerointel-bg-shell) !important;
  color: var(--aerointel-text-main) !important;
  font-size: 0.86rem !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.03) !important;
}

body:is([data-route-section="aerointel"], [data-section="aerointel"]) #aerointel input::placeholder,
body:is([data-route-section="aerointel"], [data-section="aerointel"]) #aerointel textarea::placeholder {
  color: var(--aerointel-text-subtle) !important;
}

body:is([data-route-section="aerointel"], [data-section="aerointel"]) #aerointel input:focus,
body:is([data-route-section="aerointel"], [data-section="aerointel"]) #aerointel select:focus,
body:is([data-route-section="aerointel"], [data-section="aerointel"]) #aerointel textarea:focus {
  border-color: var(--aerointel-accent-border) !important;
  box-shadow: 0 0 0 3px var(--aerointel-accent-soft) !important;
}

body:is([data-route-section="aerointel"], [data-section="aerointel"]) #aerointel .primary-button,
body:is([data-route-section="aerointel"], [data-section="aerointel"]) #aerointel .secondary-button,
body:is([data-route-section="aerointel"], [data-section="aerointel"]) #aerointel .ghost-button,
body:is([data-route-section="aerointel"], [data-section="aerointel"]) #aerointel .danger-button {
  min-height: 38px !important;
  padding: 9px 13px !important;
  border-radius: 12px !important;
  font-size: 0.78rem !important;
  line-height: 1.1 !important;
}

body:is([data-route-section="aerointel"], [data-section="aerointel"]) #aerointel .primary-button {
  border-color: rgba(45,212,191,0.44) !important;
  background: linear-gradient(135deg, var(--aerointel-accent), var(--aerointel-accent-strong)) !important;
  color: #06201D !important;
  box-shadow: 0 12px 28px rgba(20,184,166,0.20) !important;
}

body:is([data-route-section="aerointel"], [data-section="aerointel"]) #aerointel .secondary-button,
body:is([data-route-section="aerointel"], [data-section="aerointel"]) #aerointel .ghost-button {
  border-color: var(--aerointel-border-strong) !important;
  background: rgba(23,31,42,0.86) !important;
  color: var(--aerointel-text-main) !important;
}

body:is([data-route-section="aerointel"], [data-section="aerointel"]) #aerointel .secondary-button:hover,
body:is([data-route-section="aerointel"], [data-section="aerointel"]) #aerointel .ghost-button:hover {
  border-color: var(--aerointel-accent-border) !important;
  background: var(--aerointel-accent-soft) !important;
  color: var(--aerointel-accent) !important;
}

body:is([data-route-section="aerointel"], [data-section="aerointel"]) #aerointel .pdv-route-tabs,
body:is([data-route-section="aerointel"], [data-section="aerointel"]) #aerointel .aerointel-view-tabs {
  gap: 8px !important;
  padding: 5px !important;
  border: 1px solid var(--aerointel-border-soft);
  border-radius: 14px;
  background: rgba(15,20,27,0.72);
}

body:is([data-route-section="aerointel"], [data-section="aerointel"]) #aerointel .pdv-route-tab {
  min-height: 34px !important;
  padding: 8px 12px !important;
  border-radius: 11px !important;
  color: var(--aerointel-text-muted) !important;
}

body:is([data-route-section="aerointel"], [data-section="aerointel"]) #aerointel .pdv-route-tab.active {
  border-color: var(--aerointel-accent-border) !important;
  background: var(--aerointel-accent-soft) !important;
  color: var(--aerointel-accent) !important;
}

body:is([data-route-section="aerointel"], [data-section="aerointel"]) #aerointel .aerointel-filter-hint,
body:is([data-route-section="aerointel"], [data-section="aerointel"]) #aerointel .aerointel-highlight-toggle,
body:is([data-route-section="aerointel"], [data-section="aerointel"]) #aerointel .empty-state {
  padding: 12px 14px !important;
  border-radius: 15px !important;
}

body:is([data-route-section="aerointel"], [data-section="aerointel"]) #aerointel .table-wrap,
body:is([data-route-section="aerointel"], [data-section="aerointel"]) #aerointel .scroll-panel,
body:is([data-route-section="aerointel"], [data-section="aerointel"]) #aerointel .aerointel-timeline {
  max-height: 430px;
  overflow: auto;
  border-radius: 16px !important;
  scrollbar-width: thin;
  scrollbar-color: rgba(170,180,192,0.24) transparent;
}

body:is([data-route-section="aerointel"], [data-section="aerointel"]) #aerointel .aerointel-timeline {
  display: grid;
  gap: 10px !important;
  padding-right: 4px;
}

body:is([data-route-section="aerointel"], [data-section="aerointel"]) #aerointel .table-wrap::-webkit-scrollbar,
body:is([data-route-section="aerointel"], [data-section="aerointel"]) #aerointel .scroll-panel::-webkit-scrollbar,
body:is([data-route-section="aerointel"], [data-section="aerointel"]) #aerointel .aerointel-timeline::-webkit-scrollbar,
body:is([data-route-section="aerointel"], [data-section="aerointel"]) #aerointel .aerointel-message-text::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

body:is([data-route-section="aerointel"], [data-section="aerointel"]) #aerointel .table-wrap::-webkit-scrollbar-track,
body:is([data-route-section="aerointel"], [data-section="aerointel"]) #aerointel .scroll-panel::-webkit-scrollbar-track,
body:is([data-route-section="aerointel"], [data-section="aerointel"]) #aerointel .aerointel-timeline::-webkit-scrollbar-track,
body:is([data-route-section="aerointel"], [data-section="aerointel"]) #aerointel .aerointel-message-text::-webkit-scrollbar-track {
  background: transparent;
}

body:is([data-route-section="aerointel"], [data-section="aerointel"]) #aerointel .table-wrap::-webkit-scrollbar-thumb,
body:is([data-route-section="aerointel"], [data-section="aerointel"]) #aerointel .scroll-panel::-webkit-scrollbar-thumb,
body:is([data-route-section="aerointel"], [data-section="aerointel"]) #aerointel .aerointel-timeline::-webkit-scrollbar-thumb,
body:is([data-route-section="aerointel"], [data-section="aerointel"]) #aerointel .aerointel-message-text::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(170,180,192,0.22);
}

body:is([data-route-section="aerointel"], [data-section="aerointel"]) #aerointel .table-wrap::-webkit-scrollbar-thumb:hover,
body:is([data-route-section="aerointel"], [data-section="aerointel"]) #aerointel .scroll-panel::-webkit-scrollbar-thumb:hover,
body:is([data-route-section="aerointel"], [data-section="aerointel"]) #aerointel .aerointel-timeline::-webkit-scrollbar-thumb:hover,
body:is([data-route-section="aerointel"], [data-section="aerointel"]) #aerointel .aerointel-message-text::-webkit-scrollbar-thumb:hover {
  background: rgba(45,212,191,0.38);
}

body:is([data-route-section="aerointel"], [data-section="aerointel"]) #aerointel .aerointel-table {
  min-width: 860px;
  border-spacing: 0;
}

body:is([data-route-section="aerointel"], [data-section="aerointel"]) #aerointel .aerointel-table th,
body:is([data-route-section="aerointel"], [data-section="aerointel"]) #aerointel .aerointel-table td {
  padding: 9px 10px !important;
  border-bottom: 1px solid var(--aerointel-divider) !important;
  color: var(--aerointel-text-muted) !important;
  font-size: 0.78rem !important;
  line-height: 1.35 !important;
  vertical-align: middle !important;
}

body:is([data-route-section="aerointel"], [data-section="aerointel"]) #aerointel .aerointel-table th {
  color: var(--aerointel-text-subtle) !important;
  font-size: 0.68rem !important;
  letter-spacing: 0.06em !important;
  text-transform: uppercase;
  background: rgba(15,20,27,0.72);
}

body:is([data-route-section="aerointel"], [data-section="aerointel"]) #aerointel .aerointel-table strong {
  color: var(--aerointel-text-main);
}

body:is([data-route-section="aerointel"], [data-section="aerointel"]) #aerointel .aerointel-message-card {
  padding: 12px 14px !important;
  border-radius: 15px !important;
}

body:is([data-route-section="aerointel"], [data-section="aerointel"]) #aerointel .aerointel-message-card.inbound {
  border-color: var(--aerointel-accent-border) !important;
  background: linear-gradient(180deg, rgba(45,212,191,0.13), rgba(19,26,35,0.96)) !important;
}

body:is([data-route-section="aerointel"], [data-section="aerointel"]) #aerointel .aerointel-message-card.outbound {
  border-color: var(--aerointel-border-soft) !important;
  background: linear-gradient(180deg, rgba(23,31,42,0.98), rgba(15,20,27,0.98)) !important;
}

body:is([data-route-section="aerointel"], [data-section="aerointel"]) #aerointel .aerointel-message-meta {
  gap: 8px !important;
  color: var(--aerointel-text-subtle);
  font-size: 0.72rem !important;
}

body:is([data-route-section="aerointel"], [data-section="aerointel"]) #aerointel .aerointel-message-text {
  max-height: 220px;
  overflow: auto;
  color: var(--aerointel-text-main);
  font-size: 0.84rem !important;
  line-height: 1.55 !important;
  scrollbar-width: thin;
  scrollbar-color: rgba(170,180,192,0.24) transparent;
}

body:is([data-route-section="aerointel"], [data-section="aerointel"]) #aerointel .aerointel-signal-highlight {
  border-radius: 5px;
  background: rgba(45,212,191,0.18) !important;
  color: var(--aerointel-accent) !important;
}

body:is([data-route-section="aerointel"], [data-section="aerointel"]) #aerointel .aerointel-warning-badge,
body:is([data-route-section="aerointel"], [data-section="aerointel"]) #aerointel .tag,
body:is([data-route-section="aerointel"], [data-section="aerointel"]) #aerointel .badge,
body:is([data-route-section="aerointel"], [data-section="aerointel"]) #aerointel .status-pill,
body:is([data-route-section="aerointel"], [data-section="aerointel"]) #aerointel .status-banner {
  min-height: 24px !important;
  padding: 5px 9px !important;
  border-radius: 999px !important;
  font-size: 0.68rem !important;
  line-height: 1 !important;
  letter-spacing: 0.04em;
}

body:is([data-route-section="aerointel"], [data-section="aerointel"]) #aerointel .aerointel-warning-badge {
  border: 1px solid rgba(245,158,11,0.35) !important;
  background: var(--aerointel-warning-soft) !important;
  color: var(--aerointel-warning) !important;
}

body:is([data-route-section="aerointel"], [data-section="aerointel"]) #aerointel .status-banner {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  border: 1px solid var(--aerointel-accent-border) !important;
  background: var(--aerointel-accent-soft) !important;
  color: var(--aerointel-accent) !important;
}

body:is([data-route-section="aerointel"], [data-section="aerointel"]) #aerointel .status-banner.error {
  border-color: rgba(239,68,68,0.30) !important;
  background: var(--aerointel-danger-soft) !important;
  color: var(--aerointel-danger) !important;
}

body:is([data-route-section="aerointel"], [data-section="aerointel"]) #aerointel .status-banner.success {
  border-color: rgba(52,211,153,0.28) !important;
  background: var(--aerointel-success-soft) !important;
  color: var(--aerointel-success) !important;
}

@media (max-width: 1180px) {
  body:is([data-route-section="aerointel"], [data-section="aerointel"]) #aerointel .split-grid,
  body:is([data-route-section="aerointel"], [data-section="aerointel"]) #aerointel .aerointel-commercial-grid,
  body:is([data-route-section="aerointel"], [data-section="aerointel"]) #aerointel .aerointel-head-grid,
  body:is([data-route-section="aerointel"], [data-section="aerointel"]) #aerointel .aerointel-metrics-grid,
  body:is([data-route-section="aerointel"], [data-section="aerointel"]) #aerointel .aerointel-highlight-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 760px) {
  body:is([data-route-section="aerointel"], [data-section="aerointel"]) #aerointel .hero-card {
    padding: 16px !important;
  }

  body:is([data-route-section="aerointel"], [data-section="aerointel"]) #aerointel .split-grid,
  body:is([data-route-section="aerointel"], [data-section="aerointel"]) #aerointel .stats-grid,
  body:is([data-route-section="aerointel"], [data-section="aerointel"]) #aerointel .cards-grid,
  body:is([data-route-section="aerointel"], [data-section="aerointel"]) #aerointel .filters-grid,
  body:is([data-route-section="aerointel"], [data-section="aerointel"]) #aerointel .aerointel-head-grid,
  body:is([data-route-section="aerointel"], [data-section="aerointel"]) #aerointel .aerointel-metrics-grid,
  body:is([data-route-section="aerointel"], [data-section="aerointel"]) #aerointel .aerointel-highlight-grid,
  body:is([data-route-section="aerointel"], [data-section="aerointel"]) #aerointel .aerointel-cards-grid,
  body:is([data-route-section="aerointel"], [data-section="aerointel"]) #aerointel .aerointel-commercial-grid {
    grid-template-columns: 1fr !important;
  }

  body:is([data-route-section="aerointel"], [data-section="aerointel"]) #aerointel .action-row,
  body:is([data-route-section="aerointel"], [data-section="aerointel"]) #aerointel .panel-header {
    align-items: stretch;
    flex-direction: column;
  }
}

/* Users and permissions - compact dark premium AEROSTORE */
body:is([data-route-section="users-admin"], [data-section="users-admin"]) {
  --users-bg-app: #0B0F14;
  --users-bg-shell: #0F141B;
  --users-bg-panel: #131A23;
  --users-bg-card: #171F2A;
  --users-border-soft: rgba(255,255,255,0.07);
  --users-border-strong: rgba(255,255,255,0.12);
  --users-divider: rgba(255,255,255,0.06);
  --users-text-main: #F4F7FA;
  --users-text-muted: #AAB4C0;
  --users-text-subtle: #7F8A99;
  --users-accent: #2DD4BF;
  --users-accent-strong: #14B8A6;
  --users-accent-soft: rgba(45,212,191,0.12);
  --users-accent-border: rgba(45,212,191,0.35);
  --users-success: #34D399;
  --users-success-soft: rgba(52,211,153,0.12);
  --users-warning: #F59E0B;
  --users-warning-soft: rgba(245,158,11,0.12);
  --users-danger: #EF4444;
  --users-danger-soft: rgba(239,68,68,0.12);
  background:
    radial-gradient(circle at 12% 10%, rgba(45,212,191,0.08), transparent 30%),
    linear-gradient(145deg, #0B0F14 0%, #0F141B 52%, #0B0F14 100%);
}

body:is([data-route-section="users-admin"], [data-section="users-admin"]) #users-admin,
body:is([data-route-section="users-admin"], [data-section="users-admin"]) #users-admin-content {
  color: var(--users-text-main);
}

body:is([data-route-section="users-admin"], [data-section="users-admin"]) .users-admin-shell {
  gap: 14px !important;
}

body:is([data-route-section="users-admin"], [data-section="users-admin"]) .users-admin-hero,
body:is([data-route-section="users-admin"], [data-section="users-admin"]) .users-admin-card {
  border: 1px solid var(--users-border-soft) !important;
  background:
    linear-gradient(135deg, rgba(45,212,191,0.07), transparent 32%),
    linear-gradient(180deg, rgba(23,31,42,0.96), rgba(19,26,35,0.98)) !important;
  box-shadow: 0 16px 42px rgba(0,0,0,0.26) !important;
}

body:is([data-route-section="users-admin"], [data-section="users-admin"]) .users-admin-hero {
  min-height: 0 !important;
  padding: 18px 20px !important;
  border-radius: 20px !important;
}

body:is([data-route-section="users-admin"], [data-section="users-admin"]) .users-admin-hero h3 {
  color: var(--users-text-main) !important;
  font-size: clamp(1.48rem, 2vw, 1.9rem) !important;
  letter-spacing: -0.035em;
  line-height: 1.05;
}

body:is([data-route-section="users-admin"], [data-section="users-admin"]) .users-admin-hero p:not(.eyebrow) {
  max-width: 720px;
  color: var(--users-text-muted) !important;
  font-size: 0.88rem !important;
  line-height: 1.45;
}

body:is([data-route-section="users-admin"], [data-section="users-admin"]) .users-admin-hero .eyebrow,
body:is([data-route-section="users-admin"], [data-section="users-admin"]) .users-admin-editor-head .eyebrow {
  color: var(--users-accent) !important;
  font-size: 0.68rem !important;
  letter-spacing: 0.18em !important;
}

body:is([data-route-section="users-admin"], [data-section="users-admin"]) .users-admin-kpis {
  gap: 8px !important;
}

body:is([data-route-section="users-admin"], [data-section="users-admin"]) .users-admin-kpis span,
body:is([data-route-section="users-admin"], [data-section="users-admin"]) .users-admin-status {
  min-height: 28px !important;
  padding: 6px 10px !important;
  border-color: var(--users-accent-border) !important;
  background: var(--users-accent-soft) !important;
  color: var(--users-accent) !important;
  font-size: 0.7rem !important;
  line-height: 1 !important;
}

body:is([data-route-section="users-admin"], [data-section="users-admin"]) .users-admin-kpis strong {
  color: var(--users-text-main);
  font-size: 0.9rem;
}

body:is([data-route-section="users-admin"], [data-section="users-admin"]) .users-admin-status {
  border-color: rgba(52,211,153,0.28) !important;
  background: var(--users-success-soft) !important;
  color: var(--users-success) !important;
  letter-spacing: 0.06em;
}

body:is([data-route-section="users-admin"], [data-section="users-admin"]) .users-admin-status.inativo {
  border-color: rgba(239,68,68,0.30) !important;
  background: var(--users-danger-soft) !important;
  color: #FCA5A5 !important;
}

body:is([data-route-section="users-admin"], [data-section="users-admin"]) .users-admin-toolbar {
  gap: 9px !important;
  grid-template-columns: minmax(260px, 1fr) minmax(150px, 180px) minmax(130px, 160px) auto auto !important;
  padding: 10px !important;
  border: 1px solid var(--users-border-soft);
  border-radius: 18px;
  background: rgba(19,26,35,0.82);
  box-shadow: 0 12px 30px rgba(0,0,0,0.18);
}

body:is([data-route-section="users-admin"], [data-section="users-admin"]) .users-admin-toolbar input,
body:is([data-route-section="users-admin"], [data-section="users-admin"]) .users-admin-toolbar select,
body:is([data-route-section="users-admin"], [data-section="users-admin"]) .users-admin-form-grid input,
body:is([data-route-section="users-admin"], [data-section="users-admin"]) .users-admin-form-grid select {
  min-height: 40px !important;
  border: 1px solid var(--users-border-soft) !important;
  border-radius: 12px !important;
  background: var(--users-bg-shell) !important;
  color: var(--users-text-main) !important;
  font-size: 0.84rem !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.03) !important;
}

body:is([data-route-section="users-admin"], [data-section="users-admin"]) .users-admin-toolbar input::placeholder,
body:is([data-route-section="users-admin"], [data-section="users-admin"]) .users-admin-form-grid input::placeholder {
  color: var(--users-text-subtle);
}

body:is([data-route-section="users-admin"], [data-section="users-admin"]) .users-admin-toolbar input:focus,
body:is([data-route-section="users-admin"], [data-section="users-admin"]) .users-admin-toolbar select:focus,
body:is([data-route-section="users-admin"], [data-section="users-admin"]) .users-admin-form-grid input:focus,
body:is([data-route-section="users-admin"], [data-section="users-admin"]) .users-admin-form-grid select:focus {
  border-color: var(--users-accent-border) !important;
  box-shadow: 0 0 0 3px var(--users-accent-soft) !important;
}

body:is([data-route-section="users-admin"], [data-section="users-admin"]) .users-admin-toolbar .primary-button,
body:is([data-route-section="users-admin"], [data-section="users-admin"]) .users-admin-actions .primary-button {
  border-color: rgba(45,212,191,0.44) !important;
  background: linear-gradient(135deg, var(--users-accent), var(--users-accent-strong)) !important;
  color: #06201D !important;
  box-shadow: 0 12px 26px rgba(20,184,166,0.20) !important;
}

body:is([data-route-section="users-admin"], [data-section="users-admin"]) .users-admin-toolbar .primary-button,
body:is([data-route-section="users-admin"], [data-section="users-admin"]) .users-admin-toolbar .secondary-button,
body:is([data-route-section="users-admin"], [data-section="users-admin"]) .users-admin-actions .primary-button,
body:is([data-route-section="users-admin"], [data-section="users-admin"]) .users-admin-actions .secondary-button,
body:is([data-route-section="users-admin"], [data-section="users-admin"]) .users-admin-actions .danger-button {
  min-height: 38px !important;
  padding: 9px 13px !important;
  border-radius: 12px !important;
  font-size: 0.78rem !important;
  line-height: 1.1 !important;
}

body:is([data-route-section="users-admin"], [data-section="users-admin"]) .users-admin-toolbar .secondary-button,
body:is([data-route-section="users-admin"], [data-section="users-admin"]) .users-admin-actions .secondary-button {
  border-color: var(--users-border-strong) !important;
  background: rgba(23,31,42,0.88) !important;
  color: var(--users-text-main) !important;
}

body:is([data-route-section="users-admin"], [data-section="users-admin"]) .users-admin-actions .danger-button {
  border-color: rgba(239,68,68,0.30) !important;
  background: var(--users-danger-soft) !important;
  color: #FCA5A5 !important;
}

body:is([data-route-section="users-admin"], [data-section="users-admin"]) .users-admin-grid {
  gap: 14px !important;
  grid-template-columns: minmax(300px, 0.82fr) minmax(520px, 1.28fr) !important;
  align-items: start;
}

body:is([data-route-section="users-admin"], [data-section="users-admin"]) .users-admin-card {
  padding: 14px !important;
  border-radius: 18px !important;
}

body:is([data-route-section="users-admin"], [data-section="users-admin"]) .users-admin-list-head,
body:is([data-route-section="users-admin"], [data-section="users-admin"]) .users-admin-editor-head,
body:is([data-route-section="users-admin"], [data-section="users-admin"]) .users-admin-actions {
  gap: 10px !important;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--users-divider);
}

body:is([data-route-section="users-admin"], [data-section="users-admin"]) .users-admin-list-head strong,
body:is([data-route-section="users-admin"], [data-section="users-admin"]) .users-admin-editor-head h3,
body:is([data-route-section="users-admin"], [data-section="users-admin"]) .users-admin-section h4,
body:is([data-route-section="users-admin"], [data-section="users-admin"]) .users-admin-permission-group h4 {
  color: var(--users-text-main) !important;
  font-size: 0.98rem !important;
  line-height: 1.2 !important;
  letter-spacing: -0.01em;
}

body:is([data-route-section="users-admin"], [data-section="users-admin"]) .users-admin-list-head small,
body:is([data-route-section="users-admin"], [data-section="users-admin"]) .users-admin-row small,
body:is([data-route-section="users-admin"], [data-section="users-admin"]) .users-admin-row-meta small,
body:is([data-route-section="users-admin"], [data-section="users-admin"]) .users-admin-form-grid label small {
  color: var(--users-text-muted) !important;
  font-size: 0.74rem !important;
  line-height: 1.35 !important;
}

body:is([data-route-section="users-admin"], [data-section="users-admin"]) .users-admin-rows {
  gap: 8px !important;
  max-height: 620px !important;
  margin-top: 10px !important;
  padding-right: 5px !important;
}

body:is([data-route-section="users-admin"], [data-section="users-admin"]) .users-admin-rows::-webkit-scrollbar,
body:is([data-route-section="users-admin"], [data-section="users-admin"]) .users-admin-permissions-section::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

body:is([data-route-section="users-admin"], [data-section="users-admin"]) .users-admin-rows::-webkit-scrollbar-track,
body:is([data-route-section="users-admin"], [data-section="users-admin"]) .users-admin-permissions-section::-webkit-scrollbar-track,
body:is([data-route-section="users-admin"], [data-section="users-admin"]) .users-admin-rows::-webkit-scrollbar-corner,
body:is([data-route-section="users-admin"], [data-section="users-admin"]) .users-admin-permissions-section::-webkit-scrollbar-corner {
  background: transparent;
}

body:is([data-route-section="users-admin"], [data-section="users-admin"]) .users-admin-rows::-webkit-scrollbar-thumb,
body:is([data-route-section="users-admin"], [data-section="users-admin"]) .users-admin-permissions-section::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(170,180,192,0.22);
}

body:is([data-route-section="users-admin"], [data-section="users-admin"]) .users-admin-rows::-webkit-scrollbar-thumb:hover,
body:is([data-route-section="users-admin"], [data-section="users-admin"]) .users-admin-permissions-section::-webkit-scrollbar-thumb:hover {
  background: rgba(45,212,191,0.38);
}

body:is([data-route-section="users-admin"], [data-section="users-admin"]) .users-admin-row {
  min-height: 70px !important;
  padding: 11px 12px !important;
  border-color: var(--users-border-soft) !important;
  border-radius: 14px !important;
  background: rgba(23,31,42,0.72) !important;
  gap: 10px !important;
  grid-template-columns: minmax(0, 1fr) minmax(110px, auto) auto !important;
}

body:is([data-route-section="users-admin"], [data-section="users-admin"]) .users-admin-row:hover,
body:is([data-route-section="users-admin"], [data-section="users-admin"]) .users-admin-row.active {
  border-color: var(--users-accent-border) !important;
  background: linear-gradient(135deg, rgba(45,212,191,0.12), rgba(23,31,42,0.86)) !important;
  box-shadow: inset 0 0 0 1px rgba(45,212,191,0.14) !important;
}

body:is([data-route-section="users-admin"], [data-section="users-admin"]) .users-admin-row strong {
  color: var(--users-text-main);
  font-size: 0.88rem;
  line-height: 1.2;
}

body:is([data-route-section="users-admin"], [data-section="users-admin"]) .users-admin-row-meta em {
  color: var(--users-text-main);
  font-size: 0.78rem;
  font-style: normal;
  font-weight: 800;
}

body:is([data-route-section="users-admin"], [data-section="users-admin"]) .users-admin-editor form {
  display: grid;
  gap: 12px;
}

body:is([data-route-section="users-admin"], [data-section="users-admin"]) .users-admin-form-grid {
  gap: 10px !important;
  margin-top: 0 !important;
}

body:is([data-route-section="users-admin"], [data-section="users-admin"]) .users-admin-form-grid label,
body:is([data-route-section="users-admin"], [data-section="users-admin"]) .users-admin-section {
  gap: 6px !important;
  color: var(--users-text-muted) !important;
  font-size: 0.76rem !important;
  line-height: 1.25 !important;
}

body:is([data-route-section="users-admin"], [data-section="users-admin"]) .users-admin-section {
  margin-top: 0 !important;
  padding: 12px !important;
  border-color: var(--users-border-soft) !important;
  border-radius: 16px !important;
  background: rgba(15,20,27,0.58) !important;
}

body:is([data-route-section="users-admin"], [data-section="users-admin"]) .users-admin-data-section h4,
body:is([data-route-section="users-admin"], [data-section="users-admin"]) .users-admin-permissions-section > h4 {
  padding-bottom: 8px;
  border-bottom: 1px solid var(--users-divider);
}

body:is([data-route-section="users-admin"], [data-section="users-admin"]) .users-admin-check-grid {
  gap: 8px !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
}

body:is([data-route-section="users-admin"], [data-section="users-admin"]) .users-admin-permissions {
  gap: 7px !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
}

body:is([data-route-section="users-admin"], [data-section="users-admin"]) .users-admin-permissions-section {
  max-height: 540px;
  overflow: auto;
  padding-right: 10px !important;
  scrollbar-width: thin;
  scrollbar-color: rgba(170,180,192,0.24) transparent;
}

body:is([data-route-section="users-admin"], [data-section="users-admin"]) .users-admin-permission-group {
  gap: 8px !important;
  padding: 10px 0 !important;
  border-bottom: 1px solid var(--users-divider);
}

body:is([data-route-section="users-admin"], [data-section="users-admin"]) .users-admin-permission-group:last-child {
  border-bottom: 0;
}

body:is([data-route-section="users-admin"], [data-section="users-admin"]) .users-admin-permission-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

body:is([data-route-section="users-admin"], [data-section="users-admin"]) .users-admin-permission-head span {
  flex: 0 0 auto;
  min-height: 24px;
  padding: 5px 9px;
  border: 1px solid var(--users-border-soft);
  border-radius: 999px;
  background: rgba(23,31,42,0.74);
  color: var(--users-text-muted);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

body:is([data-route-section="users-admin"], [data-section="users-admin"]) .users-admin-check {
  min-height: 36px !important;
  padding: 8px 10px !important;
  border-color: var(--users-border-soft) !important;
  border-radius: 12px !important;
  background: rgba(23,31,42,0.70) !important;
  color: var(--users-text-main) !important;
  font-size: 0.78rem !important;
  line-height: 1.25 !important;
  transition: border-color 160ms ease, background 160ms ease, color 160ms ease, transform 160ms ease;
}

body:is([data-route-section="users-admin"], [data-section="users-admin"]) .users-admin-check:hover,
body:is([data-route-section="users-admin"], [data-section="users-admin"]) .users-admin-check:has(input:checked) {
  border-color: var(--users-accent-border) !important;
  background: var(--users-accent-soft) !important;
}

body:is([data-route-section="users-admin"], [data-section="users-admin"]) .users-admin-check input[type="checkbox"] {
  position: relative;
  flex: 0 0 auto;
  width: 17px !important;
  height: 17px !important;
  margin: 0;
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 5px;
  appearance: none;
  background: var(--users-bg-shell);
  display: grid;
  place-items: center;
}

body:is([data-route-section="users-admin"], [data-section="users-admin"]) .users-admin-check input[type="checkbox"]::after {
  width: 8px;
  height: 5px;
  border-bottom: 2px solid #06201D;
  border-left: 2px solid #06201D;
  content: "";
  opacity: 0;
  transform: rotate(-45deg) translate(1px, -1px);
}

body:is([data-route-section="users-admin"], [data-section="users-admin"]) .users-admin-check input[type="checkbox"]:checked {
  border-color: var(--users-accent);
  background: var(--users-accent);
}

body:is([data-route-section="users-admin"], [data-section="users-admin"]) .users-admin-check input[type="checkbox"]:checked::after {
  opacity: 1;
}

body:is([data-route-section="users-admin"], [data-section="users-admin"]) .users-admin-check span {
  min-width: 0;
  overflow-wrap: anywhere;
}

body:is([data-route-section="users-admin"], [data-section="users-admin"]) .users-admin-actions {
  margin-top: 0 !important;
  padding-top: 12px;
  padding-bottom: 0;
  border-top: 1px solid var(--users-divider);
  border-bottom: 0;
}

body:is([data-route-section="users-admin"], [data-section="users-admin"]) .users-admin-alert,
body:is([data-route-section="users-admin"], [data-section="users-admin"]) .users-admin-empty {
  padding: 12px 14px !important;
  border-color: rgba(245,158,11,0.35) !important;
  border-radius: 14px !important;
  background: var(--users-warning-soft) !important;
  color: var(--users-warning) !important;
  font-size: 0.82rem;
}

@media (max-width: 1180px) {
  body:is([data-route-section="users-admin"], [data-section="users-admin"]) .users-admin-grid,
  body:is([data-route-section="users-admin"], [data-section="users-admin"]) .users-admin-toolbar {
    grid-template-columns: 1fr !important;
  }

  body:is([data-route-section="users-admin"], [data-section="users-admin"]) .users-admin-check-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 760px) {
  body:is([data-route-section="users-admin"], [data-section="users-admin"]) .users-admin-hero,
  body:is([data-route-section="users-admin"], [data-section="users-admin"]) .users-admin-list-head,
  body:is([data-route-section="users-admin"], [data-section="users-admin"]) .users-admin-editor-head,
  body:is([data-route-section="users-admin"], [data-section="users-admin"]) .users-admin-actions,
  body:is([data-route-section="users-admin"], [data-section="users-admin"]) .users-admin-permission-head {
    align-items: stretch;
    flex-direction: column;
  }

  body:is([data-route-section="users-admin"], [data-section="users-admin"]) .users-admin-form-grid,
  body:is([data-route-section="users-admin"], [data-section="users-admin"]) .users-admin-check-grid,
  body:is([data-route-section="users-admin"], [data-section="users-admin"]) .users-admin-permissions {
    grid-template-columns: 1fr !important;
  }

  body:is([data-route-section="users-admin"], [data-section="users-admin"]) .users-admin-row {
    grid-template-columns: 1fr !important;
  }

  body:is([data-route-section="users-admin"], [data-section="users-admin"]) .users-admin-row-meta {
    justify-items: start;
  }
}

/* PDV Reports / Cockpit - executive dark premium AEROSTORE */
body:is([data-route-section="pdv-reports"], [data-section="pdv-reports"]) {
  --reports-bg-app: #0B0F14;
  --reports-bg-shell: #0F141B;
  --reports-bg-panel: #131A23;
  --reports-bg-card: #171F2A;
  --reports-border-soft: rgba(255,255,255,0.07);
  --reports-border-strong: rgba(255,255,255,0.12);
  --reports-divider: rgba(255,255,255,0.06);
  --reports-text-main: #F4F7FA;
  --reports-text-muted: #AAB4C0;
  --reports-text-subtle: #7F8A99;
  --reports-accent: #2DD4BF;
  --reports-accent-strong: #14B8A6;
  --reports-accent-soft: rgba(45,212,191,0.12);
  --reports-accent-border: rgba(45,212,191,0.35);
  --reports-success: #34D399;
  --reports-success-soft: rgba(52,211,153,0.12);
  --reports-warning: #F59E0B;
  --reports-warning-soft: rgba(245,158,11,0.12);
  --reports-danger: #EF4444;
  --reports-danger-soft: rgba(239,68,68,0.12);
  background:
    radial-gradient(circle at 16% 8%, rgba(45,212,191,0.08), transparent 30%),
    linear-gradient(145deg, #0B0F14 0%, #0F141B 48%, #0B0F14 100%);
}

body:is([data-route-section="pdv-reports"], [data-section="pdv-reports"]) #pdv-reports,
body:is([data-route-section="pdv-reports"], [data-section="pdv-reports"]) #pdv-reports-content,
body:is([data-route-section="pdv-reports"], [data-section="pdv-reports"]) #pdv-reports .pdv-front-shell,
body:is([data-route-section="pdv-reports"], [data-section="pdv-reports"]) #pdv-reports .pdv-reports-shell {
  color: var(--reports-text-main);
}

body:is([data-route-section="pdv-reports"], [data-section="pdv-reports"]) #pdv-reports .pdv-reports-shell,
body:is([data-route-section="pdv-reports"], [data-section="pdv-reports"]) #pdv-reports .pdv-cockpit-shell {
  gap: 14px !important;
}

body:is([data-route-section="pdv-reports"], [data-section="pdv-reports"]) #pdv-reports .hero-card,
body:is([data-route-section="pdv-reports"], [data-section="pdv-reports"]) #pdv-reports .pdv-front-hero,
body:is([data-route-section="pdv-reports"], [data-section="pdv-reports"]) #pdv-reports .pdv-route-hero {
  min-height: 0 !important;
  padding: 18px 20px !important;
  border: 1px solid var(--reports-border-soft) !important;
  border-radius: 20px !important;
  background:
    linear-gradient(135deg, rgba(45,212,191,0.10), transparent 34%),
    linear-gradient(155deg, rgba(19,26,35,0.96), rgba(15,20,27,0.98)) !important;
  box-shadow: 0 18px 48px rgba(0,0,0,0.30) !important;
}

body:is([data-route-section="pdv-reports"], [data-section="pdv-reports"]) #pdv-reports .hero-card h2,
body:is([data-route-section="pdv-reports"], [data-section="pdv-reports"]) #pdv-reports .hero-card h3,
body:is([data-route-section="pdv-reports"], [data-section="pdv-reports"]) #pdv-reports .pdv-front-hero h2,
body:is([data-route-section="pdv-reports"], [data-section="pdv-reports"]) #pdv-reports .pdv-route-hero h2 {
  color: var(--reports-text-main) !important;
  font-size: clamp(1.5rem, 2.1vw, 1.95rem) !important;
  letter-spacing: -0.04em;
  line-height: 1.06;
}

body:is([data-route-section="pdv-reports"], [data-section="pdv-reports"]) #pdv-reports .hero-card p,
body:is([data-route-section="pdv-reports"], [data-section="pdv-reports"]) #pdv-reports .pdv-front-hero p,
body:is([data-route-section="pdv-reports"], [data-section="pdv-reports"]) #pdv-reports .pdv-route-hero p {
  max-width: 780px;
  color: var(--reports-text-muted) !important;
  font-size: 0.88rem !important;
  line-height: 1.45;
}

body:is([data-route-section="pdv-reports"], [data-section="pdv-reports"]) #pdv-reports .eyebrow {
  color: var(--reports-accent) !important;
  font-size: 0.68rem !important;
  letter-spacing: 0.18em !important;
}

body:is([data-route-section="pdv-reports"], [data-section="pdv-reports"]) #pdv-reports .panel,
body:is([data-route-section="pdv-reports"], [data-section="pdv-reports"]) #pdv-reports .pdv-report-section,
body:is([data-route-section="pdv-reports"], [data-section="pdv-reports"]) #pdv-reports .pdv-cockpit-filter-panel,
body:is([data-route-section="pdv-reports"], [data-section="pdv-reports"]) #pdv-reports .pdv-cockpit-intro-panel,
body:is([data-route-section="pdv-reports"], [data-section="pdv-reports"]) #pdv-reports .pdv-cockpit-side-panel,
body:is([data-route-section="pdv-reports"], [data-section="pdv-reports"]) #pdv-reports .pdv-cockpit-decision-card,
body:is([data-route-section="pdv-reports"], [data-section="pdv-reports"]) #pdv-reports .pdv-cockpit-trend-panel,
body:is([data-route-section="pdv-reports"], [data-section="pdv-reports"]) #pdv-reports .pdv-cockpit-mini-panel {
  border: 1px solid var(--reports-border-soft) !important;
  border-radius: 18px !important;
  background:
    linear-gradient(180deg, rgba(23,31,42,0.96), rgba(19,26,35,0.98)) !important;
  box-shadow: 0 15px 38px rgba(0,0,0,0.24) !important;
}

body:is([data-route-section="pdv-reports"], [data-section="pdv-reports"]) #pdv-reports .panel,
body:is([data-route-section="pdv-reports"], [data-section="pdv-reports"]) #pdv-reports .pdv-report-section,
body:is([data-route-section="pdv-reports"], [data-section="pdv-reports"]) #pdv-reports .pdv-cockpit-filter-panel,
body:is([data-route-section="pdv-reports"], [data-section="pdv-reports"]) #pdv-reports .pdv-cockpit-intro-panel,
body:is([data-route-section="pdv-reports"], [data-section="pdv-reports"]) #pdv-reports .pdv-cockpit-side-panel,
body:is([data-route-section="pdv-reports"], [data-section="pdv-reports"]) #pdv-reports .pdv-cockpit-decision-card,
body:is([data-route-section="pdv-reports"], [data-section="pdv-reports"]) #pdv-reports .pdv-cockpit-trend-panel {
  padding: 14px !important;
}

body:is([data-route-section="pdv-reports"], [data-section="pdv-reports"]) #pdv-reports .panel-header {
  gap: 10px !important;
  margin-bottom: 10px !important;
  padding-bottom: 10px !important;
  border-bottom: 1px solid var(--reports-divider);
}

body:is([data-route-section="pdv-reports"], [data-section="pdv-reports"]) #pdv-reports .panel-header h3,
body:is([data-route-section="pdv-reports"], [data-section="pdv-reports"]) #pdv-reports .panel h3 {
  color: var(--reports-text-main) !important;
  font-size: 0.98rem !important;
  line-height: 1.2 !important;
  letter-spacing: -0.01em;
}

body:is([data-route-section="pdv-reports"], [data-section="pdv-reports"]) #pdv-reports .panel-header span,
body:is([data-route-section="pdv-reports"], [data-section="pdv-reports"]) #pdv-reports .panel-header p,
body:is([data-route-section="pdv-reports"], [data-section="pdv-reports"]) #pdv-reports .helper-text,
body:is([data-route-section="pdv-reports"], [data-section="pdv-reports"]) #pdv-reports .table-meta {
  color: var(--reports-text-muted) !important;
  font-size: 0.78rem !important;
  line-height: 1.4 !important;
}

body:is([data-route-section="pdv-reports"], [data-section="pdv-reports"]) #pdv-reports .pdv-cockpit-route-switch {
  width: fit-content;
  gap: 7px !important;
  padding: 5px !important;
  border: 1px solid var(--reports-border-soft);
  border-radius: 14px;
  background: rgba(15,20,27,0.72);
}

body:is([data-route-section="pdv-reports"], [data-section="pdv-reports"]) #pdv-reports .pdv-cockpit-route-switch .ghost-button,
body:is([data-route-section="pdv-reports"], [data-section="pdv-reports"]) #pdv-reports .pdv-cockpit-margin-tabs .ghost-button {
  min-height: 34px !important;
  padding: 8px 12px !important;
  border-radius: 11px !important;
  border-color: transparent !important;
  background: transparent !important;
  color: var(--reports-text-muted) !important;
}

body:is([data-route-section="pdv-reports"], [data-section="pdv-reports"]) #pdv-reports .pdv-cockpit-route-switch .ghost-button.active,
body:is([data-route-section="pdv-reports"], [data-section="pdv-reports"]) #pdv-reports .pdv-cockpit-margin-tabs .ghost-button.active {
  border-color: var(--reports-accent-border) !important;
  background: var(--reports-accent-soft) !important;
  color: var(--reports-accent) !important;
}

body:is([data-route-section="pdv-reports"], [data-section="pdv-reports"]) #pdv-reports .pdv-cockpit-filter-grid {
  grid-template-columns: repeat(6, minmax(0, 1fr)) !important;
  gap: 10px !important;
  margin-top: 10px !important;
}

body:is([data-route-section="pdv-reports"], [data-section="pdv-reports"]) #pdv-reports .pdv-cockpit-custom-dates {
  gap: 10px !important;
  margin-top: 10px !important;
}

body:is([data-route-section="pdv-reports"], [data-section="pdv-reports"]) #pdv-reports label,
body:is([data-route-section="pdv-reports"], [data-section="pdv-reports"]) #pdv-reports .pdv-cockpit-filter-grid label,
body:is([data-route-section="pdv-reports"], [data-section="pdv-reports"]) #pdv-reports .pdv-cockpit-custom-dates label,
body:is([data-route-section="pdv-reports"], [data-section="pdv-reports"]) #pdv-reports .pdv-cockpit-curve-toolbar label {
  gap: 6px !important;
  color: var(--reports-text-muted) !important;
  font-size: 0.76rem !important;
  line-height: 1.25 !important;
}

body:is([data-route-section="pdv-reports"], [data-section="pdv-reports"]) #pdv-reports input,
body:is([data-route-section="pdv-reports"], [data-section="pdv-reports"]) #pdv-reports select {
  min-height: 40px !important;
  border: 1px solid var(--reports-border-soft) !important;
  border-radius: 12px !important;
  background: var(--reports-bg-shell) !important;
  color: var(--reports-text-main) !important;
  font-size: 0.84rem !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.03) !important;
}

body:is([data-route-section="pdv-reports"], [data-section="pdv-reports"]) #pdv-reports input::placeholder {
  color: var(--reports-text-subtle) !important;
}

body:is([data-route-section="pdv-reports"], [data-section="pdv-reports"]) #pdv-reports input:focus,
body:is([data-route-section="pdv-reports"], [data-section="pdv-reports"]) #pdv-reports select:focus {
  border-color: var(--reports-accent-border) !important;
  box-shadow: 0 0 0 3px var(--reports-accent-soft) !important;
}

body:is([data-route-section="pdv-reports"], [data-section="pdv-reports"]) #pdv-reports .primary-button,
body:is([data-route-section="pdv-reports"], [data-section="pdv-reports"]) #pdv-reports .secondary-button,
body:is([data-route-section="pdv-reports"], [data-section="pdv-reports"]) #pdv-reports .ghost-button,
body:is([data-route-section="pdv-reports"], [data-section="pdv-reports"]) #pdv-reports .danger-button {
  min-height: 38px !important;
  padding: 9px 13px !important;
  border-radius: 12px !important;
  font-size: 0.78rem !important;
  line-height: 1.1 !important;
}

body:is([data-route-section="pdv-reports"], [data-section="pdv-reports"]) #pdv-reports .primary-button {
  border-color: rgba(45,212,191,0.44) !important;
  background: linear-gradient(135deg, var(--reports-accent), var(--reports-accent-strong)) !important;
  color: #06201D !important;
  box-shadow: 0 12px 28px rgba(20,184,166,0.20) !important;
}

body:is([data-route-section="pdv-reports"], [data-section="pdv-reports"]) #pdv-reports .secondary-button,
body:is([data-route-section="pdv-reports"], [data-section="pdv-reports"]) #pdv-reports .ghost-button {
  border-color: var(--reports-border-strong) !important;
  background: rgba(23,31,42,0.86) !important;
  color: var(--reports-text-main) !important;
}

body:is([data-route-section="pdv-reports"], [data-section="pdv-reports"]) #pdv-reports .pdv-report-kpi-grid,
body:is([data-route-section="pdv-reports"], [data-section="pdv-reports"]) #pdv-reports .pdv-report-mini-kpi-grid,
body:is([data-route-section="pdv-reports"], [data-section="pdv-reports"]) #pdv-reports .pdv-cockpit-summary-grid,
body:is([data-route-section="pdv-reports"], [data-section="pdv-reports"]) #pdv-reports .pdv-cockpit-highlight-grid {
  gap: 10px !important;
}

body:is([data-route-section="pdv-reports"], [data-section="pdv-reports"]) #pdv-reports .pdv-report-kpi-card,
body:is([data-route-section="pdv-reports"], [data-section="pdv-reports"]) #pdv-reports .pdv-cockpit-stat-card,
body:is([data-route-section="pdv-reports"], [data-section="pdv-reports"]) #pdv-reports .pdv-cockpit-highlight-card,
body:is([data-route-section="pdv-reports"], [data-section="pdv-reports"]) #pdv-reports .pdv-report-finance-group,
body:is([data-route-section="pdv-reports"], [data-section="pdv-reports"]) #pdv-reports .pdv-report-callout-card,
body:is([data-route-section="pdv-reports"], [data-section="pdv-reports"]) #pdv-reports .pdv-cockpit-decision-item,
body:is([data-route-section="pdv-reports"], [data-section="pdv-reports"]) #pdv-reports .pdv-cockpit-trend-item {
  border: 1px solid var(--reports-border-soft) !important;
  background: linear-gradient(180deg, rgba(23,31,42,0.94), rgba(15,20,27,0.96)) !important;
  box-shadow: none !important;
}

body:is([data-route-section="pdv-reports"], [data-section="pdv-reports"]) #pdv-reports .pdv-report-kpi-card,
body:is([data-route-section="pdv-reports"], [data-section="pdv-reports"]) #pdv-reports .pdv-cockpit-stat-card {
  min-height: 92px !important;
  padding: 12px 14px !important;
  border-radius: 16px !important;
  gap: 7px !important;
}

body:is([data-route-section="pdv-reports"], [data-section="pdv-reports"]) #pdv-reports .pdv-report-kpi-card.compact {
  min-height: 82px !important;
}

body:is([data-route-section="pdv-reports"], [data-section="pdv-reports"]) #pdv-reports .pdv-report-kpi-card span,
body:is([data-route-section="pdv-reports"], [data-section="pdv-reports"]) #pdv-reports .pdv-cockpit-stat-card span,
body:is([data-route-section="pdv-reports"], [data-section="pdv-reports"]) #pdv-reports .pdv-cockpit-stat-meta small {
  color: var(--reports-text-subtle) !important;
  font-size: 0.7rem !important;
  letter-spacing: 0.07em !important;
  line-height: 1.25 !important;
  text-transform: uppercase;
}

body:is([data-route-section="pdv-reports"], [data-section="pdv-reports"]) #pdv-reports .pdv-report-kpi-card strong,
body:is([data-route-section="pdv-reports"], [data-section="pdv-reports"]) #pdv-reports .pdv-cockpit-stat-card strong,
body:is([data-route-section="pdv-reports"], [data-section="pdv-reports"]) #pdv-reports .pdv-cockpit-highlight-card strong {
  color: var(--reports-text-main) !important;
  font-size: clamp(1.06rem, 1.35vw, 1.48rem) !important;
  line-height: 1.1 !important;
  letter-spacing: -0.035em;
  white-space: normal !important;
  overflow-wrap: anywhere;
}

body:is([data-route-section="pdv-reports"], [data-section="pdv-reports"]) #pdv-reports .pdv-report-kpi-card:hover,
body:is([data-route-section="pdv-reports"], [data-section="pdv-reports"]) #pdv-reports .pdv-cockpit-decision-item:hover,
body:is([data-route-section="pdv-reports"], [data-section="pdv-reports"]) #pdv-reports .pdv-cockpit-trend-item:hover {
  transform: translateY(-1px);
  border-color: rgba(45,212,191,0.22) !important;
  background: linear-gradient(180deg, rgba(45,212,191,0.09), rgba(23,31,42,0.94)) !important;
}

body:is([data-route-section="pdv-reports"], [data-section="pdv-reports"]) #pdv-reports .pdv-cockpit-priority-grid,
body:is([data-route-section="pdv-reports"], [data-section="pdv-reports"]) #pdv-reports .pdv-cockpit-main-grid,
body:is([data-route-section="pdv-reports"], [data-section="pdv-reports"]) #pdv-reports .pdv-report-feature-grid,
body:is([data-route-section="pdv-reports"], [data-section="pdv-reports"]) #pdv-reports .pdv-report-table-grid,
body:is([data-route-section="pdv-reports"], [data-section="pdv-reports"]) #pdv-reports .pdv-report-finance-grid {
  gap: 14px !important;
  align-items: start !important;
}

body:is([data-route-section="pdv-reports"], [data-section="pdv-reports"]) #pdv-reports .pdv-cockpit-side-stack,
body:is([data-route-section="pdv-reports"], [data-section="pdv-reports"]) #pdv-reports .pdv-report-finance-groups,
body:is([data-route-section="pdv-reports"], [data-section="pdv-reports"]) #pdv-reports .pdv-cockpit-decision-list,
body:is([data-route-section="pdv-reports"], [data-section="pdv-reports"]) #pdv-reports .pdv-cockpit-trend-list {
  gap: 10px !important;
}

body:is([data-route-section="pdv-reports"], [data-section="pdv-reports"]) #pdv-reports .pdv-cockpit-decision-grid,
body:is([data-route-section="pdv-reports"], [data-section="pdv-reports"]) #pdv-reports .pdv-cockpit-trends-grid {
  gap: 10px !important;
}

body:is([data-route-section="pdv-reports"], [data-section="pdv-reports"]) #pdv-reports .pdv-cockpit-decision-item,
body:is([data-route-section="pdv-reports"], [data-section="pdv-reports"]) #pdv-reports .pdv-cockpit-trend-item,
body:is([data-route-section="pdv-reports"], [data-section="pdv-reports"]) #pdv-reports .pdv-cockpit-highlight-card,
body:is([data-route-section="pdv-reports"], [data-section="pdv-reports"]) #pdv-reports .pdv-report-callout-card {
  min-height: auto !important;
  padding: 12px !important;
  border-radius: 15px !important;
}

body:is([data-route-section="pdv-reports"], [data-section="pdv-reports"]) #pdv-reports .pdv-cockpit-decision-item p {
  color: var(--reports-text-muted) !important;
  font-size: 0.84rem !important;
  line-height: 1.45 !important;
}

body:is([data-route-section="pdv-reports"], [data-section="pdv-reports"]) #pdv-reports .pdv-cockpit-decision-head span,
body:is([data-route-section="pdv-reports"], [data-section="pdv-reports"]) #pdv-reports .pdv-cockpit-trend-head span,
body:is([data-route-section="pdv-reports"], [data-section="pdv-reports"]) #pdv-reports .pdv-cockpit-decision-item small,
body:is([data-route-section="pdv-reports"], [data-section="pdv-reports"]) #pdv-reports .pdv-cockpit-trend-item small,
body:is([data-route-section="pdv-reports"], [data-section="pdv-reports"]) #pdv-reports .pdv-cockpit-inline-warning {
  color: var(--reports-text-muted) !important;
  font-size: 0.76rem !important;
  line-height: 1.38 !important;
}

body:is([data-route-section="pdv-reports"], [data-section="pdv-reports"]) #pdv-reports .pdv-report-table-wrap,
body:is([data-route-section="pdv-reports"], [data-section="pdv-reports"]) #pdv-reports .pdv-cockpit-curve-wrap,
body:is([data-route-section="pdv-reports"], [data-section="pdv-reports"]) #pdv-reports .pdv-cockpit-margin-wrap {
  max-height: 500px !important;
  overflow: auto !important;
  border: 1px solid var(--reports-border-soft) !important;
  border-radius: 16px !important;
  background: rgba(15,20,27,0.76) !important;
  scrollbar-width: thin;
  scrollbar-color: rgba(170,180,192,0.24) transparent;
}

body:is([data-route-section="pdv-reports"], [data-section="pdv-reports"]) #pdv-reports .pdv-report-sales-wrap {
  max-height: 460px !important;
}

body:is([data-route-section="pdv-reports"], [data-section="pdv-reports"]) #pdv-reports .pdv-report-table-wrap::-webkit-scrollbar,
body:is([data-route-section="pdv-reports"], [data-section="pdv-reports"]) #pdv-reports .pdv-cockpit-curve-wrap::-webkit-scrollbar,
body:is([data-route-section="pdv-reports"], [data-section="pdv-reports"]) #pdv-reports .pdv-cockpit-margin-wrap::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

body:is([data-route-section="pdv-reports"], [data-section="pdv-reports"]) #pdv-reports .pdv-report-table-wrap::-webkit-scrollbar-track,
body:is([data-route-section="pdv-reports"], [data-section="pdv-reports"]) #pdv-reports .pdv-cockpit-curve-wrap::-webkit-scrollbar-track,
body:is([data-route-section="pdv-reports"], [data-section="pdv-reports"]) #pdv-reports .pdv-cockpit-margin-wrap::-webkit-scrollbar-track {
  background: transparent;
}

body:is([data-route-section="pdv-reports"], [data-section="pdv-reports"]) #pdv-reports .pdv-report-table-wrap::-webkit-scrollbar-thumb,
body:is([data-route-section="pdv-reports"], [data-section="pdv-reports"]) #pdv-reports .pdv-cockpit-curve-wrap::-webkit-scrollbar-thumb,
body:is([data-route-section="pdv-reports"], [data-section="pdv-reports"]) #pdv-reports .pdv-cockpit-margin-wrap::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(170,180,192,0.22);
}

body:is([data-route-section="pdv-reports"], [data-section="pdv-reports"]) #pdv-reports .pdv-report-table-wrap::-webkit-scrollbar-thumb:hover,
body:is([data-route-section="pdv-reports"], [data-section="pdv-reports"]) #pdv-reports .pdv-cockpit-curve-wrap::-webkit-scrollbar-thumb:hover,
body:is([data-route-section="pdv-reports"], [data-section="pdv-reports"]) #pdv-reports .pdv-cockpit-margin-wrap::-webkit-scrollbar-thumb:hover {
  background: rgba(45,212,191,0.38);
}

body:is([data-route-section="pdv-reports"], [data-section="pdv-reports"]) #pdv-reports .pdv-report-table,
body:is([data-route-section="pdv-reports"], [data-section="pdv-reports"]) #pdv-reports .pdv-cockpit-table {
  min-width: 860px;
  border-spacing: 0;
}

body:is([data-route-section="pdv-reports"], [data-section="pdv-reports"]) #pdv-reports .pdv-report-table th,
body:is([data-route-section="pdv-reports"], [data-section="pdv-reports"]) #pdv-reports .pdv-report-table td,
body:is([data-route-section="pdv-reports"], [data-section="pdv-reports"]) #pdv-reports .pdv-cockpit-table th,
body:is([data-route-section="pdv-reports"], [data-section="pdv-reports"]) #pdv-reports .pdv-cockpit-table td {
  padding: 9px 10px !important;
  border-bottom: 1px solid var(--reports-divider) !important;
  color: var(--reports-text-muted) !important;
  font-size: 0.78rem !important;
  line-height: 1.35 !important;
  vertical-align: middle !important;
}

body:is([data-route-section="pdv-reports"], [data-section="pdv-reports"]) #pdv-reports .pdv-report-table th,
body:is([data-route-section="pdv-reports"], [data-section="pdv-reports"]) #pdv-reports .pdv-cockpit-table th {
  position: sticky;
  top: 0;
  z-index: 1;
  color: var(--reports-text-subtle) !important;
  font-size: 0.68rem !important;
  letter-spacing: 0.06em !important;
  text-transform: uppercase;
  background: rgba(15,20,27,0.96) !important;
}

body:is([data-route-section="pdv-reports"], [data-section="pdv-reports"]) #pdv-reports .pdv-report-table tbody tr:nth-child(odd),
body:is([data-route-section="pdv-reports"], [data-section="pdv-reports"]) #pdv-reports .pdv-cockpit-table tbody tr:nth-child(odd) {
  background: rgba(255,255,255,0.015) !important;
}

body:is([data-route-section="pdv-reports"], [data-section="pdv-reports"]) #pdv-reports .pdv-report-table tbody tr:hover,
body:is([data-route-section="pdv-reports"], [data-section="pdv-reports"]) #pdv-reports .pdv-cockpit-table tbody tr:hover {
  background: rgba(45,212,191,0.06) !important;
}

body:is([data-route-section="pdv-reports"], [data-section="pdv-reports"]) #pdv-reports .pdv-report-table strong,
body:is([data-route-section="pdv-reports"], [data-section="pdv-reports"]) #pdv-reports .pdv-cockpit-table strong {
  color: var(--reports-text-main);
}

body:is([data-route-section="pdv-reports"], [data-section="pdv-reports"]) #pdv-reports .pdv-report-badge {
  min-height: 24px !important;
  padding: 5px 9px !important;
  border-radius: 999px !important;
  border-color: var(--reports-accent-border) !important;
  background: var(--reports-accent-soft) !important;
  color: var(--reports-accent) !important;
  font-size: 0.68rem !important;
  line-height: 1 !important;
  letter-spacing: 0.04em;
}

body:is([data-route-section="pdv-reports"], [data-section="pdv-reports"]) #pdv-reports .pdv-report-badge.success {
  border-color: rgba(52,211,153,0.28) !important;
  background: var(--reports-success-soft) !important;
  color: var(--reports-success) !important;
}

body:is([data-route-section="pdv-reports"], [data-section="pdv-reports"]) #pdv-reports .pdv-report-badge.warning {
  border-color: rgba(245,158,11,0.35) !important;
  background: var(--reports-warning-soft) !important;
  color: var(--reports-warning) !important;
}

body:is([data-route-section="pdv-reports"], [data-section="pdv-reports"]) #pdv-reports .pdv-report-badge.danger,
body:is([data-route-section="pdv-reports"], [data-section="pdv-reports"]) #pdv-reports .pdv-report-badge.high,
body:is([data-route-section="pdv-reports"], [data-section="pdv-reports"]) #pdv-reports .pdv-report-badge.critical {
  border-color: rgba(239,68,68,0.30) !important;
  background: var(--reports-danger-soft) !important;
  color: var(--reports-danger) !important;
}

body:is([data-route-section="pdv-reports"], [data-section="pdv-reports"]) #pdv-reports .pdv-report-badge.info,
body:is([data-route-section="pdv-reports"], [data-section="pdv-reports"]) #pdv-reports .pdv-report-badge.low,
body:is([data-route-section="pdv-reports"], [data-section="pdv-reports"]) #pdv-reports .pdv-report-badge.muted {
  border-color: var(--reports-border-soft) !important;
  background: rgba(23,31,42,0.86) !important;
  color: var(--reports-text-muted) !important;
}

body:is([data-route-section="pdv-reports"], [data-section="pdv-reports"]) #pdv-reports .pdv-report-empty-state {
  padding: 14px !important;
  border: 1px dashed var(--reports-border-strong) !important;
  border-radius: 15px !important;
  background: rgba(15,20,27,0.58) !important;
  color: var(--reports-text-muted) !important;
}

body:is([data-route-section="pdv-reports"], [data-section="pdv-reports"]) #pdv-reports .pdv-report-empty-state.compact {
  padding: 12px !important;
}

body:is([data-route-section="pdv-reports"], [data-section="pdv-reports"]) #pdv-reports .pdv-report-empty-state strong {
  color: var(--reports-text-main) !important;
  font-size: 0.9rem !important;
}

body:is([data-route-section="pdv-reports"], [data-section="pdv-reports"]) #pdv-reports .pdv-report-empty-state span {
  color: var(--reports-text-muted) !important;
  font-size: 0.78rem !important;
  line-height: 1.4 !important;
}

body:is([data-route-section="pdv-reports"], [data-section="pdv-reports"]) #pdv-reports .pdv-cockpit-inline-warning,
body:is([data-route-section="pdv-reports"], [data-section="pdv-reports"]) #pdv-reports .pdv-cockpit-warning-list li {
  border-color: rgba(245,158,11,0.35) !important;
  background: var(--reports-warning-soft) !important;
  color: var(--reports-warning) !important;
}

/* AEROSTORE OS - Reports executive density pass */
body:is([data-route-section="pdv-reports"], [data-section="pdv-reports"]) #pdv-reports {
  --reports-gap-tight: 9px;
  --reports-gap: 12px;
}

body:is([data-route-section="pdv-reports"], [data-section="pdv-reports"]) #pdv-reports .pdv-route-shell,
body:is([data-route-section="pdv-reports"], [data-section="pdv-reports"]) #pdv-reports .pdv-front-shell,
body:is([data-route-section="pdv-reports"], [data-section="pdv-reports"]) #pdv-reports .pdv-reports-shell,
body:is([data-route-section="pdv-reports"], [data-section="pdv-reports"]) #pdv-reports .pdv-cockpit-shell {
  gap: var(--reports-gap) !important;
}

body:is([data-route-section="pdv-reports"], [data-section="pdv-reports"]) #pdv-reports .hero-card,
body:is([data-route-section="pdv-reports"], [data-section="pdv-reports"]) #pdv-reports .pdv-hero-card,
body:is([data-route-section="pdv-reports"], [data-section="pdv-reports"]) #pdv-reports .pdv-front-hero,
body:is([data-route-section="pdv-reports"], [data-section="pdv-reports"]) #pdv-reports .pdv-route-hero {
  min-height: 92px !important;
  padding: 14px 18px !important;
  border-radius: 18px !important;
}

body:is([data-route-section="pdv-reports"], [data-section="pdv-reports"]) #pdv-reports .hero-card h2,
body:is([data-route-section="pdv-reports"], [data-section="pdv-reports"]) #pdv-reports .hero-card h3,
body:is([data-route-section="pdv-reports"], [data-section="pdv-reports"]) #pdv-reports .pdv-front-hero h2,
body:is([data-route-section="pdv-reports"], [data-section="pdv-reports"]) #pdv-reports .pdv-route-hero h2 {
  margin: 3px 0 !important;
  font-size: clamp(1.18rem, 1.65vw, 1.52rem) !important;
}

body:is([data-route-section="pdv-reports"], [data-section="pdv-reports"]) #pdv-reports .hero-card p,
body:is([data-route-section="pdv-reports"], [data-section="pdv-reports"]) #pdv-reports .pdv-front-hero p,
body:is([data-route-section="pdv-reports"], [data-section="pdv-reports"]) #pdv-reports .pdv-route-hero p {
  margin: 4px 0 0 !important;
  max-width: 680px !important;
  font-size: 0.8rem !important;
  line-height: 1.32 !important;
}

body:is([data-route-section="pdv-reports"], [data-section="pdv-reports"]) #pdv-reports .eyebrow {
  font-size: 0.62rem !important;
  letter-spacing: 0.16em !important;
}

body:is([data-route-section="pdv-reports"], [data-section="pdv-reports"]) #pdv-reports .pdv-route-tabs,
body:is([data-route-section="pdv-reports"], [data-section="pdv-reports"]) #pdv-reports .pdv-route-shell-compact {
  gap: 7px !important;
  padding: 7px !important;
  border-radius: 16px !important;
}

body:is([data-route-section="pdv-reports"], [data-section="pdv-reports"]) #pdv-reports .pdv-route-tab {
  min-height: 32px !important;
  padding: 7px 11px !important;
  font-size: 0.76rem !important;
  border-radius: 12px !important;
}

body:is([data-route-section="pdv-reports"], [data-section="pdv-reports"]) #pdv-reports .panel,
body:is([data-route-section="pdv-reports"], [data-section="pdv-reports"]) #pdv-reports .pdv-report-section,
body:is([data-route-section="pdv-reports"], [data-section="pdv-reports"]) #pdv-reports .pdv-cockpit-filter-panel,
body:is([data-route-section="pdv-reports"], [data-section="pdv-reports"]) #pdv-reports .pdv-cockpit-intro-panel,
body:is([data-route-section="pdv-reports"], [data-section="pdv-reports"]) #pdv-reports .pdv-cockpit-side-panel,
body:is([data-route-section="pdv-reports"], [data-section="pdv-reports"]) #pdv-reports .pdv-cockpit-decision-card,
body:is([data-route-section="pdv-reports"], [data-section="pdv-reports"]) #pdv-reports .pdv-cockpit-trend-panel {
  padding: 11px !important;
  border-radius: 16px !important;
}

body:is([data-route-section="pdv-reports"], [data-section="pdv-reports"]) #pdv-reports .panel-header {
  gap: 8px !important;
  margin-bottom: 8px !important;
  padding-bottom: 8px !important;
}

body:is([data-route-section="pdv-reports"], [data-section="pdv-reports"]) #pdv-reports .panel-header h3,
body:is([data-route-section="pdv-reports"], [data-section="pdv-reports"]) #pdv-reports .panel h3 {
  font-size: 0.88rem !important;
}

body:is([data-route-section="pdv-reports"], [data-section="pdv-reports"]) #pdv-reports .panel-header span,
body:is([data-route-section="pdv-reports"], [data-section="pdv-reports"]) #pdv-reports .panel-header p,
body:is([data-route-section="pdv-reports"], [data-section="pdv-reports"]) #pdv-reports .helper-text,
body:is([data-route-section="pdv-reports"], [data-section="pdv-reports"]) #pdv-reports .table-meta {
  font-size: 0.72rem !important;
  line-height: 1.3 !important;
}

body:is([data-route-section="pdv-reports"], [data-section="pdv-reports"]) #pdv-reports .pdv-cockpit-filter-panel {
  padding: 10px !important;
}

body:is([data-route-section="pdv-reports"], [data-section="pdv-reports"]) #pdv-reports .pdv-cockpit-filter-grid {
  grid-template-columns: repeat(6, minmax(120px, 1fr)) !important;
  gap: 8px !important;
  margin-top: 8px !important;
}

body:is([data-route-section="pdv-reports"], [data-section="pdv-reports"]) #pdv-reports .pdv-cockpit-filter-actions,
body:is([data-route-section="pdv-reports"], [data-section="pdv-reports"]) #pdv-reports .pdv-cockpit-route-switch,
body:is([data-route-section="pdv-reports"], [data-section="pdv-reports"]) #pdv-reports .pdv-cockpit-curve-toolbar,
body:is([data-route-section="pdv-reports"], [data-section="pdv-reports"]) #pdv-reports .pdv-cockpit-margin-tabs {
  gap: 6px !important;
}

body:is([data-route-section="pdv-reports"], [data-section="pdv-reports"]) #pdv-reports label,
body:is([data-route-section="pdv-reports"], [data-section="pdv-reports"]) #pdv-reports .pdv-cockpit-filter-grid label,
body:is([data-route-section="pdv-reports"], [data-section="pdv-reports"]) #pdv-reports .pdv-cockpit-custom-dates label,
body:is([data-route-section="pdv-reports"], [data-section="pdv-reports"]) #pdv-reports .pdv-cockpit-curve-toolbar label {
  gap: 4px !important;
  font-size: 0.7rem !important;
}

body:is([data-route-section="pdv-reports"], [data-section="pdv-reports"]) #pdv-reports input,
body:is([data-route-section="pdv-reports"], [data-section="pdv-reports"]) #pdv-reports select {
  min-height: 34px !important;
  padding: 7px 10px !important;
  border-radius: 10px !important;
  font-size: 0.78rem !important;
}

body:is([data-route-section="pdv-reports"], [data-section="pdv-reports"]) #pdv-reports .primary-button,
body:is([data-route-section="pdv-reports"], [data-section="pdv-reports"]) #pdv-reports .secondary-button,
body:is([data-route-section="pdv-reports"], [data-section="pdv-reports"]) #pdv-reports .ghost-button,
body:is([data-route-section="pdv-reports"], [data-section="pdv-reports"]) #pdv-reports .danger-button {
  min-height: 32px !important;
  padding: 7px 11px !important;
  border-radius: 10px !important;
  font-size: 0.72rem !important;
}

body:is([data-route-section="pdv-reports"], [data-section="pdv-reports"]) #pdv-reports .pdv-report-kpi-grid,
body:is([data-route-section="pdv-reports"], [data-section="pdv-reports"]) #pdv-reports .pdv-report-mini-kpi-grid,
body:is([data-route-section="pdv-reports"], [data-section="pdv-reports"]) #pdv-reports .pdv-cockpit-summary-grid,
body:is([data-route-section="pdv-reports"], [data-section="pdv-reports"]) #pdv-reports .pdv-cockpit-highlight-grid {
  gap: 8px !important;
}

body:is([data-route-section="pdv-reports"], [data-section="pdv-reports"]) #pdv-reports .pdv-report-kpi-card,
body:is([data-route-section="pdv-reports"], [data-section="pdv-reports"]) #pdv-reports .pdv-cockpit-stat-card {
  min-height: 70px !important;
  padding: 9px 10px !important;
  border-radius: 13px !important;
  gap: 4px !important;
}

body:is([data-route-section="pdv-reports"], [data-section="pdv-reports"]) #pdv-reports .pdv-report-kpi-card.compact {
  min-height: 64px !important;
}

body:is([data-route-section="pdv-reports"], [data-section="pdv-reports"]) #pdv-reports .pdv-report-kpi-card span,
body:is([data-route-section="pdv-reports"], [data-section="pdv-reports"]) #pdv-reports .pdv-cockpit-stat-card span,
body:is([data-route-section="pdv-reports"], [data-section="pdv-reports"]) #pdv-reports .pdv-cockpit-stat-meta small {
  font-size: 0.62rem !important;
  letter-spacing: 0.06em !important;
}

body:is([data-route-section="pdv-reports"], [data-section="pdv-reports"]) #pdv-reports .pdv-report-kpi-card strong,
body:is([data-route-section="pdv-reports"], [data-section="pdv-reports"]) #pdv-reports .pdv-cockpit-stat-card strong,
body:is([data-route-section="pdv-reports"], [data-section="pdv-reports"]) #pdv-reports .pdv-cockpit-highlight-card strong {
  font-size: clamp(0.98rem, 1.12vw, 1.24rem) !important;
  line-height: 1.05 !important;
}

body:is([data-route-section="pdv-reports"], [data-section="pdv-reports"]) #pdv-reports .pdv-cockpit-priority-grid,
body:is([data-route-section="pdv-reports"], [data-section="pdv-reports"]) #pdv-reports .pdv-cockpit-main-grid,
body:is([data-route-section="pdv-reports"], [data-section="pdv-reports"]) #pdv-reports .pdv-report-feature-grid,
body:is([data-route-section="pdv-reports"], [data-section="pdv-reports"]) #pdv-reports .pdv-report-table-grid,
body:is([data-route-section="pdv-reports"], [data-section="pdv-reports"]) #pdv-reports .pdv-report-finance-grid {
  gap: 10px !important;
}

body:is([data-route-section="pdv-reports"], [data-section="pdv-reports"]) #pdv-reports .pdv-cockpit-side-stack,
body:is([data-route-section="pdv-reports"], [data-section="pdv-reports"]) #pdv-reports .pdv-report-finance-groups,
body:is([data-route-section="pdv-reports"], [data-section="pdv-reports"]) #pdv-reports .pdv-cockpit-decision-list,
body:is([data-route-section="pdv-reports"], [data-section="pdv-reports"]) #pdv-reports .pdv-cockpit-trend-list,
body:is([data-route-section="pdv-reports"], [data-section="pdv-reports"]) #pdv-reports .pdv-cockpit-decision-grid,
body:is([data-route-section="pdv-reports"], [data-section="pdv-reports"]) #pdv-reports .pdv-cockpit-trends-grid {
  gap: 8px !important;
}

body:is([data-route-section="pdv-reports"], [data-section="pdv-reports"]) #pdv-reports .pdv-cockpit-decision-item,
body:is([data-route-section="pdv-reports"], [data-section="pdv-reports"]) #pdv-reports .pdv-cockpit-trend-item,
body:is([data-route-section="pdv-reports"], [data-section="pdv-reports"]) #pdv-reports .pdv-cockpit-highlight-card,
body:is([data-route-section="pdv-reports"], [data-section="pdv-reports"]) #pdv-reports .pdv-report-callout-card {
  padding: 9px 10px !important;
  border-radius: 13px !important;
}

body:is([data-route-section="pdv-reports"], [data-section="pdv-reports"]) #pdv-reports .pdv-cockpit-decision-item p {
  margin: 5px 0 !important;
  font-size: 0.78rem !important;
  line-height: 1.35 !important;
}

body:is([data-route-section="pdv-reports"], [data-section="pdv-reports"]) #pdv-reports .pdv-cockpit-decision-head,
body:is([data-route-section="pdv-reports"], [data-section="pdv-reports"]) #pdv-reports .pdv-cockpit-trend-head,
body:is([data-route-section="pdv-reports"], [data-section="pdv-reports"]) #pdv-reports .pdv-cockpit-decision-foot,
body:is([data-route-section="pdv-reports"], [data-section="pdv-reports"]) #pdv-reports .pdv-cockpit-curve-toolbar {
  gap: 7px !important;
}

body:is([data-route-section="pdv-reports"], [data-section="pdv-reports"]) #pdv-reports .pdv-report-table-wrap,
body:is([data-route-section="pdv-reports"], [data-section="pdv-reports"]) #pdv-reports .pdv-cockpit-curve-wrap,
body:is([data-route-section="pdv-reports"], [data-section="pdv-reports"]) #pdv-reports .pdv-cockpit-margin-wrap {
  max-height: min(420px, calc(100vh - 270px)) !important;
  border-radius: 13px !important;
}

body:is([data-route-section="pdv-reports"], [data-section="pdv-reports"]) #pdv-reports .pdv-report-table,
body:is([data-route-section="pdv-reports"], [data-section="pdv-reports"]) #pdv-reports .pdv-cockpit-table {
  min-width: 760px !important;
}

body:is([data-route-section="pdv-reports"], [data-section="pdv-reports"]) #pdv-reports .pdv-report-table th,
body:is([data-route-section="pdv-reports"], [data-section="pdv-reports"]) #pdv-reports .pdv-report-table td,
body:is([data-route-section="pdv-reports"], [data-section="pdv-reports"]) #pdv-reports .pdv-cockpit-table th,
body:is([data-route-section="pdv-reports"], [data-section="pdv-reports"]) #pdv-reports .pdv-cockpit-table td {
  padding: 7px 8px !important;
  font-size: 0.72rem !important;
  line-height: 1.25 !important;
}

body:is([data-route-section="pdv-reports"], [data-section="pdv-reports"]) #pdv-reports .pdv-report-badge {
  min-height: 21px !important;
  padding: 4px 7px !important;
  font-size: 0.62rem !important;
}

body:is([data-route-section="pdv-reports"], [data-section="pdv-reports"]) #pdv-reports .pdv-report-empty-state {
  padding: 10px !important;
  border-radius: 13px !important;
}

body:is([data-route-section="pdv-reports"], [data-section="pdv-reports"]) #pdv-reports .pdv-report-empty-state strong {
  font-size: 0.82rem !important;
}

body:is([data-route-section="pdv-reports"], [data-section="pdv-reports"]) #pdv-reports .pdv-report-empty-state span {
  font-size: 0.72rem !important;
  line-height: 1.32 !important;
}

@media (max-width: 1480px) {
  body:is([data-route-section="pdv-reports"], [data-section="pdv-reports"]) #pdv-reports .pdv-cockpit-filter-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 1180px) {
  body:is([data-route-section="pdv-reports"], [data-section="pdv-reports"]) #pdv-reports .pdv-cockpit-priority-grid,
  body:is([data-route-section="pdv-reports"], [data-section="pdv-reports"]) #pdv-reports .pdv-cockpit-main-grid,
  body:is([data-route-section="pdv-reports"], [data-section="pdv-reports"]) #pdv-reports .pdv-cockpit-intro-grid,
  body:is([data-route-section="pdv-reports"], [data-section="pdv-reports"]) #pdv-reports .pdv-report-feature-grid,
  body:is([data-route-section="pdv-reports"], [data-section="pdv-reports"]) #pdv-reports .pdv-report-table-grid,
  body:is([data-route-section="pdv-reports"], [data-section="pdv-reports"]) #pdv-reports .pdv-report-finance-grid {
    grid-template-columns: 1fr !important;
  }

  body:is([data-route-section="pdv-reports"], [data-section="pdv-reports"]) #pdv-reports .pdv-cockpit-filter-grid,
  body:is([data-route-section="pdv-reports"], [data-section="pdv-reports"]) #pdv-reports .pdv-cockpit-highlight-grid,
  body:is([data-route-section="pdv-reports"], [data-section="pdv-reports"]) #pdv-reports .pdv-cockpit-trends-grid,
  body:is([data-route-section="pdv-reports"], [data-section="pdv-reports"]) #pdv-reports .pdv-cockpit-decision-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 760px) {
  body:is([data-route-section="pdv-reports"], [data-section="pdv-reports"]) #pdv-reports .hero-card {
    padding: 16px !important;
  }

  body:is([data-route-section="pdv-reports"], [data-section="pdv-reports"]) #pdv-reports .pdv-cockpit-filter-grid,
  body:is([data-route-section="pdv-reports"], [data-section="pdv-reports"]) #pdv-reports .pdv-cockpit-custom-dates,
  body:is([data-route-section="pdv-reports"], [data-section="pdv-reports"]) #pdv-reports .pdv-cockpit-highlight-grid,
  body:is([data-route-section="pdv-reports"], [data-section="pdv-reports"]) #pdv-reports .pdv-cockpit-trends-grid,
  body:is([data-route-section="pdv-reports"], [data-section="pdv-reports"]) #pdv-reports .pdv-cockpit-decision-grid {
    grid-template-columns: 1fr !important;
  }

  body:is([data-route-section="pdv-reports"], [data-section="pdv-reports"]) #pdv-reports .pdv-cockpit-filter-actions,
  body:is([data-route-section="pdv-reports"], [data-section="pdv-reports"]) #pdv-reports .pdv-cockpit-route-switch,
  body:is([data-route-section="pdv-reports"], [data-section="pdv-reports"]) #pdv-reports .pdv-cockpit-curve-toolbar,
  body:is([data-route-section="pdv-reports"], [data-section="pdv-reports"]) #pdv-reports .panel-header {
    align-items: stretch;
    flex-direction: column;
  }
}

html body[data-auth-shell="authenticated"] #login-overlay.login-overlay,
html body[data-auth-shell="authenticated"] .login-overlay#login-overlay {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
  z-index: -1 !important;
}

/* =========================================
   AEROSTORE OS: SURGICAL PDV STOCK LIST ALIGNMENT FIX
   ========================================= */

/* REQUISITO 1 - Grid fixo e simétrico */
body[data-route-section="pdv-stock"] .pdv-products-table {
  table-layout: fixed !important;
  width: 100% !important;
  min-width: 900px !important;
}

body[data-route-section="pdv-stock"] .pdv-products-table th:nth-child(1),
body[data-route-section="pdv-stock"] .pdv-products-table td:nth-child(1) {
  width: 32% !important;
}

body[data-route-section="pdv-stock"] .pdv-products-table th:nth-child(2),
body[data-route-section="pdv-stock"] .pdv-products-table td:nth-child(2) {
  width: 25% !important;
}

body[data-route-section="pdv-stock"] .pdv-products-table th:nth-child(3),
body[data-route-section="pdv-stock"] .pdv-products-table td:nth-child(3) {
  width: 12% !important;
}

body[data-route-section="pdv-stock"] .pdv-products-table th:nth-child(4),
body[data-route-section="pdv-stock"] .pdv-products-table td:nth-child(4) {
  width: 12% !important;
}

body[data-route-section="pdv-stock"] .pdv-products-table th:nth-child(5),
body[data-route-section="pdv-stock"] .pdv-products-table td:nth-child(5) {
  width: 12% !important;
}

body[data-route-section="pdv-stock"] .pdv-products-table th:nth-child(6),
body[data-route-section="pdv-stock"] .pdv-products-table td:nth-child(6) {
  width: 7% !important;
}

/* REQUISITO 2 - Produto não invadindo */
body[data-route-section="pdv-stock"] .pdv-stock-product-cell {
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  max-width: 100% !important;
  overflow: hidden !important;
}

body[data-route-section="pdv-stock"] .pdv-products-name-cell {
  display: flex !important;
  flex-direction: column !important;
  gap: 4px !important;
  min-width: 0 !important;
  overflow: hidden !important;
}

body[data-route-section="pdv-stock"] .pdv-products-name-cell strong {
  display: -webkit-box !important;
  -webkit-line-clamp: 2 !important;
  -webkit-box-orient: vertical !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: normal !important;
  word-break: break-word !important;
  line-height: 1.3 !important;
}

/* REQUISITO 3 - Identificadores compactos e limitados */
body[data-route-section="pdv-stock"] .pdv-products-identifiers {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 4px 6px !important;
  max-width: 100% !important;
  overflow: hidden !important;
}

body[data-route-section="pdv-stock"] .pdv-products-identifiers span {
  font-size: 0.72rem !important;
  padding: 3px 8px !important;
  line-height: 1.2 !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  max-width: 100% !important;
  display: inline-block !important;
  border-radius: 6px !important;
}

/* REQUISITO 4 - Saldo e status alinhados */
body[data-route-section="pdv-stock"] .pdv-products-stock-cell {
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-start !important;
  gap: 4px !important;
}

/* REQUISITO 6 - Scroll Horizontal Discreto */
body[data-route-section="pdv-stock"] .table-wrap {
  overflow-x: auto !important;
}

/* =========================================
   AEROSTORE OS: PDV Stock Premium Card List
   Remove a planilha espremida e preserva leitura operacional.
   ========================================= */
body[data-route-section="pdv-stock"] .split-grid {
  grid-template-columns: minmax(0, 1.08fr) minmax(360px, 0.92fr) !important;
  align-items: start !important;
  gap: 14px !important;
}

body[data-route-section="pdv-stock"] .pdv-stock-results-panel {
  min-width: 0 !important;
  padding: 14px !important;
}

body[data-route-section="pdv-stock"] .pdv-stock-results-scroll {
  max-height: min(700px, calc(100vh - 330px)) !important;
  overflow-x: hidden !important;
  overflow-y: auto !important;
  padding: 2px 8px 2px 0 !important;
}

body[data-route-section="pdv-stock"] .pdv-stock-card-list {
  display: grid;
  gap: 10px;
  min-width: 0;
}

body[data-route-section="pdv-stock"] .pdv-stock-result-card {
  display: grid;
  grid-template-columns: 78px minmax(0, 1fr) minmax(116px, 0.32fr);
  gap: 12px;
  align-items: center;
  min-width: 0;
  padding: 12px;
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 18px;
  background:
    radial-gradient(circle at 98% 8%, rgba(45,212,191,0.08), transparent 28%),
    linear-gradient(135deg, rgba(19,26,35,0.98), rgba(13,18,25,0.94));
  transition: border-color 0.16s ease, background 0.16s ease, transform 0.16s ease;
}

body[data-route-section="pdv-stock"] .pdv-stock-result-card:hover,
body[data-route-section="pdv-stock"] .pdv-stock-result-card.is-selected {
  border-color: rgba(45,212,191,0.28);
  background:
    radial-gradient(circle at 98% 8%, rgba(45,212,191,0.12), transparent 30%),
    linear-gradient(135deg, rgba(22,31,42,0.98), rgba(14,21,30,0.96));
}

body[data-route-section="pdv-stock"] .pdv-stock-result-media {
  min-width: 0;
}

body[data-route-section="pdv-stock"] .pdv-stock-result-media .pdv-products-photo.is-product-media {
  width: 72px !important;
  height: 72px !important;
  min-width: 72px !important;
  border-radius: 16px !important;
}

body[data-route-section="pdv-stock"] .pdv-stock-result-main {
  display: grid;
  align-content: center;
  gap: 5px;
  min-width: 0;
}

body[data-route-section="pdv-stock"] .pdv-stock-result-main > strong {
  display: -webkit-box;
  color: #F4F7FA;
  font-size: 0.9rem;
  line-height: 1.24;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

body[data-route-section="pdv-stock"] .pdv-stock-result-main > small {
  color: #AAB4C0;
  font-size: 0.75rem;
  line-height: 1.25;
}

body[data-route-section="pdv-stock"] .pdv-stock-result-context {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 8px;
  color: #7F8A99;
  font-size: 0.72rem;
  min-width: 0;
}

body[data-route-section="pdv-stock"] .pdv-stock-result-context span {
  min-width: 0;
  max-width: 180px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body[data-route-section="pdv-stock"] .pdv-stock-result-card .pdv-products-identifiers {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 4px !important;
  min-width: 0 !important;
  max-height: 54px;
  overflow: hidden !important;
}

body[data-route-section="pdv-stock"] .pdv-stock-result-card .pdv-products-identifiers span,
body[data-route-section="pdv-stock"] .pdv-stock-result-card .pdv-products-identifier-chip {
  max-width: 150px !important;
  min-height: 22px !important;
  padding: 3px 7px !important;
  border-radius: 999px !important;
  font-size: 0.68rem !important;
  line-height: 1.15 !important;
}

body[data-route-section="pdv-stock"] .pdv-stock-result-side {
  display: grid;
  justify-items: end;
  align-content: center;
  gap: 8px;
  min-width: 0;
  text-align: right;
}

body[data-route-section="pdv-stock"] .pdv-stock-result-qty strong {
  display: block;
  color: #F4F7FA;
  font-size: 1rem;
  line-height: 1;
}

body[data-route-section="pdv-stock"] .pdv-stock-result-qty small {
  display: block;
  color: #AAB4C0;
  font-size: 0.72rem;
  line-height: 1.25;
}

body[data-route-section="pdv-stock"] .pdv-stock-result-side .pdv-products-status-badge {
  max-width: 126px;
  min-height: 26px;
  padding: 0 9px;
  font-size: 0.68rem;
  line-height: 1.15;
  white-space: normal;
}

body[data-route-section="pdv-stock"] .pdv-stock-result-side .secondary-button.small {
  min-height: 30px;
  padding: 0 12px;
  font-size: 0.74rem;
}

body[data-route-section="pdv-stock"] .pdv-products-callout.warning {
  display: grid !important;
  gap: 6px !important;
  padding: 12px 14px !important;
  overflow: hidden !important;
}

body[data-route-section="pdv-stock"] .pdv-products-callout.warning span {
  display: -webkit-box !important;
  -webkit-line-clamp: 2 !important;
  -webkit-box-orient: vertical !important;
  overflow: hidden !important;
  line-height: 1.4 !important;
}

body[data-route-section="pdv-stock"] .split-grid > .panel:last-child {
  min-width: 0 !important;
  overflow: hidden !important;
}

body[data-route-section="pdv-stock"] .split-grid > .panel:last-child .pdv-products-detail-card {
  box-shadow: none !important;
}

@media (max-width: 1180px) {
  body[data-route-section="pdv-stock"] .split-grid {
    grid-template-columns: 1fr !important;
  }
}

@media (max-width: 760px) {
  body[data-route-section="pdv-stock"] .pdv-stock-result-card {
    grid-template-columns: 72px minmax(0, 1fr);
  }

  body[data-route-section="pdv-stock"] .pdv-stock-result-side {
    grid-column: 1 / -1;
    grid-template-columns: repeat(3, minmax(0, auto));
    justify-content: start;
    justify-items: start;
    text-align: left;
  }
}

/* =========================================
   AEROSTORE OS - PDV Venda Product Results
   Mantem os cards completos apos "Carregar mais".
   ========================================= */
body[data-route-section="pdv-sale"] .pdv-sale-search-results {
  display: grid !important;
  grid-template-columns: 1fr !important;
  align-items: stretch !important;
  gap: 18px !important;
  overflow-x: hidden !important;
  padding-right: 8px !important;
}

body[data-route-section="pdv-sale"] .pdv-product-search-loading,
body[data-route-section="pdv-sale"] .pdv-product-empty-state {
  align-items: center;
  background: linear-gradient(135deg, rgba(18, 24, 34, 0.96), rgba(22, 30, 45, 0.9));
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  color: var(--sale-text-muted, #AAB4C0);
  display: flex;
  gap: 12px;
  padding: 16px;
}

body[data-route-section="pdv-sale"] .pdv-product-search-loading strong,
body[data-route-section="pdv-sale"] .pdv-product-empty-state strong {
  color: var(--sale-text-main, #F4F7FA);
  display: block;
}

body[data-route-section="pdv-sale"] .pdv-product-search-loading span:not(.pdv-product-search-spinner),
body[data-route-section="pdv-sale"] .pdv-product-empty-state span {
  display: block;
  font-size: 0.78rem;
  line-height: 1.35;
}

body[data-route-section="pdv-sale"] .pdv-product-search-spinner {
  animation: pdv-product-search-spin 0.8s linear infinite;
  border: 2px solid rgba(255, 255, 255, 0.12);
  border-top-color: var(--sale-accent, #2DD4BF);
  border-radius: 999px;
  flex: 0 0 auto;
  height: 18px;
  width: 18px;
}

body[data-route-section="pdv-sale"] .pdv-product-empty-state.is-error {
  border-color: rgba(245, 158, 11, 0.26);
}

body[data-route-section="pdv-sale"] .pdv-customer-profile-activation {
  display: grid;
  gap: 8px;
  padding: 14px;
  border: 1px solid rgba(27, 214, 191, 0.24);
  border-radius: 18px;
  background:
    radial-gradient(circle at 100% 0%, rgba(27, 214, 191, 0.12), transparent 34%),
    rgba(12, 24, 34, 0.72);
  color: var(--sale-text-main, #F4F7FA);
}

body[data-route-section="pdv-sale"] .pdv-customer-profile-activation span {
  color: var(--sale-text-muted, #AAB4C0);
  font-size: 0.82rem;
  line-height: 1.35;
}

body[data-route-section="pdv-sale"] .pdv-product-search-skeleton {
  align-items: center;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 18px;
  display: grid;
  gap: 14px;
  grid-template-columns: 82px minmax(0, 1fr) 160px;
  padding: 14px;
}

body[data-route-section="pdv-sale"] .pdv-product-search-skeleton span,
body[data-route-section="pdv-sale"] .pdv-product-search-skeleton b,
body[data-route-section="pdv-sale"] .pdv-product-search-skeleton i,
body[data-route-section="pdv-sale"] .pdv-product-search-skeleton em,
body[data-route-section="pdv-sale"] .pdv-product-search-skeleton small {
  animation: pdv-product-search-pulse 1.15s ease-in-out infinite;
  background: linear-gradient(90deg, rgba(255,255,255,0.06), rgba(255,255,255,0.12), rgba(255,255,255,0.06));
  border-radius: 999px;
  display: block;
}

body[data-route-section="pdv-sale"] .pdv-product-search-skeleton > span {
  border-radius: 14px;
  height: 76px;
}

body[data-route-section="pdv-sale"] .pdv-product-search-skeleton div {
  display: grid;
  gap: 8px;
}

body[data-route-section="pdv-sale"] .pdv-product-search-skeleton b { height: 14px; width: 75%; }
body[data-route-section="pdv-sale"] .pdv-product-search-skeleton i { height: 10px; width: 42%; }
body[data-route-section="pdv-sale"] .pdv-product-search-skeleton em { height: 18px; width: 55%; }
body[data-route-section="pdv-sale"] .pdv-product-search-skeleton small { height: 34px; width: 100%; }

@keyframes pdv-product-search-spin {
  to { transform: rotate(360deg); }
}

@keyframes pdv-product-search-pulse {
  0%, 100% { opacity: 0.55; }
  50% { opacity: 1; }
}

body[data-route-section="pdv-sale"] .pdv-sale-search-results .pdv-product-card {
  display: grid !important;
  grid-template-columns: 104px minmax(0, 1fr) minmax(210px, 236px) !important;
  align-items: center !important;
  gap: 18px 18px !important;
  min-height: 158px !important;
  width: 100% !important;
  max-width: 100% !important;
  padding: 18px !important;
  overflow: hidden !important;
  border-radius: 20px !important;
}

body[data-route-section="pdv-sale"] .pdv-sale-search-results .pdv-product-card-body {
  display: contents !important;
}

body[data-route-section="pdv-sale"] .pdv-sale-search-results .pdv-product-card-media {
  grid-column: 1 !important;
  width: 104px !important;
  min-width: 104px !important;
  height: 104px !important;
  border-radius: 16px !important;
  overflow: hidden !important;
}

body[data-route-section="pdv-sale"] .pdv-sale-search-results .pdv-product-card-media img,
body[data-route-section="pdv-sale"] .pdv-sale-search-results .pdv-product-card-media .pdv-products-photo-fallback {
  width: 100% !important;
  height: 100% !important;
}

body[data-route-section="pdv-sale"] .pdv-sale-search-results .pdv-product-card-identity {
  grid-column: 2 !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
  gap: 7px !important;
  min-width: 0 !important;
  overflow: visible !important;
}

body[data-route-section="pdv-sale"] .pdv-sale-search-results .pdv-product-card-name {
  display: -webkit-box !important;
  -webkit-box-orient: vertical !important;
  -webkit-line-clamp: 2 !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: normal !important;
  word-break: normal !important;
  overflow-wrap: anywhere !important;
  font-size: clamp(0.9rem, 1.08vw, 1rem) !important;
  line-height: 1.28 !important;
}

body[data-route-section="pdv-sale"] .pdv-sale-search-results .pdv-product-card-identifiers,
body[data-route-section="pdv-sale"] .pdv-sale-search-results .pdv-product-card-tags {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 5px !important;
  min-width: 0 !important;
  max-width: 100% !important;
  overflow: visible !important;
}

body[data-route-section="pdv-sale"] .pdv-sale-search-results .pdv-product-card-sku {
  font-size: 0.66rem !important;
  line-height: 1.25 !important;
  opacity: 0.72 !important;
  max-width: 100% !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

body[data-route-section="pdv-sale"] .pdv-sale-search-results .pdv-product-card-tag {
  max-width: 150px !important;
  min-height: 20px !important;
  padding: 2px 7px !important;
  border-radius: 7px !important;
  font-size: 0.58rem !important;
  line-height: 1.15 !important;
  letter-spacing: 0.045em !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

body[data-route-section="pdv-sale"] .pdv-sale-search-results .pdv-product-card-action {
  grid-column: 3 !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-end !important;
  justify-content: center !important;
  gap: 8px !important;
  min-width: 210px !important;
  max-width: 236px !important;
  width: 100% !important;
  text-align: right !important;
  padding: 3px 0 !important;
}

body[data-route-section="pdv-sale"] .pdv-sale-search-results .pdv-product-card-price {
  font-size: clamp(1.08rem, 1.25vw, 1.34rem) !important;
  white-space: nowrap !important;
  line-height: 1 !important;
}

body[data-route-section="pdv-sale"] .pdv-sale-search-results .pdv-product-card-stock {
  display: grid !important;
  gap: 4px !important;
  max-width: 100% !important;
  text-align: right !important;
}

body[data-route-section="pdv-sale"] .pdv-sale-search-results .pdv-product-card-stock strong,
body[data-route-section="pdv-sale"] .pdv-sale-search-results .pdv-product-card-stock span {
  display: block !important;
  max-width: 100% !important;
  white-space: normal !important;
  overflow-wrap: anywhere !important;
  text-overflow: clip !important;
}

body[data-route-section="pdv-sale"] .pdv-sale-search-results .pdv-product-card-stock strong {
  font-size: 0.72rem !important;
  line-height: 1.18 !important;
}

body[data-route-section="pdv-sale"] .pdv-sale-search-results .pdv-product-card-stock span {
  font-size: 0.66rem !important;
  line-height: 1.22 !important;
}

body[data-route-section="pdv-sale"] .pdv-sale-search-results .pdv-product-card-btn {
  align-self: flex-end !important;
  width: 90% !important;
  min-width: 168px !important;
  max-width: 212px !important;
  min-height: 36px !important;
  padding: 8px 12px !important;
  font-size: 0.7rem !important;
  white-space: normal !important;
  line-height: 1.14 !important;
}

@media (max-width: 760px) {
  body[data-route-section="pdv-sale"] .pdv-sale-search-results .pdv-product-card {
    grid-template-columns: 82px minmax(0, 1fr) !important;
    min-height: 0 !important;
  }

  body[data-route-section="pdv-sale"] .pdv-sale-search-results .pdv-product-card-body {
    display: contents !important;
  }

  body[data-route-section="pdv-sale"] .pdv-sale-search-results .pdv-product-card-media {
    grid-column: 1 !important;
    width: 82px !important;
    min-width: 82px !important;
    height: 82px !important;
  }

  body[data-route-section="pdv-sale"] .pdv-sale-search-results .pdv-product-card-identity {
    grid-column: 2 !important;
  }

  body[data-route-section="pdv-sale"] .pdv-sale-search-results .pdv-product-card-action {
    grid-column: 1 / -1 !important;
    align-items: stretch !important;
    max-width: none !important;
    min-width: 0 !important;
    text-align: left !important;
  }

  body[data-route-section="pdv-sale"] .pdv-sale-search-results .pdv-product-card-stock {
    text-align: left !important;
  }

  body[data-route-section="pdv-sale"] .pdv-sale-search-results .pdv-product-card-btn {
    align-self: stretch !important;
    width: 100% !important;
    max-width: none !important;
    min-width: 0 !important;
  }
}
