﻿@import url("https://fonts.googleapis.com/css2?family=IBM+Plex+Sans:wght@400;500&family=Rubik:wght@400;500&display=swap");

:root {
  --bg: #f4fbff;
  --panel: #ffffff;
  --text: #0f2742;
  --muted: #52708f;
  --line: #d8edf9;
  --brand: #0058be;
  --brand-2: #2170e4;
  --accent: #eaf8ff;
  --danger: #ef476f;
  --pink: #ed3f8f;
  --yellow: #f5c84c;
  --purple: #9a72df;
  --green: #3CB86C;
  --green-soft: rgba(60, 184, 108, 0.14);
  --green-faint: rgba(60, 184, 108, 0.07);
  --green-dark: #2A8C52;
  --orange: #f59b6b;
  --shadow: 0 16px 34px rgba(14, 116, 144, 0.09);
  --surface-page: #f7f8fb;
  --surface-card: rgba(255, 255, 255, 0.92);
  --surface-muted: #f9fafb;
  --grid-border: rgba(15, 23, 42, 0.08);
  --grid-line: rgba(15, 23, 42, 0.065);
  --grid-text: #111827;
  --grid-muted: #6b7280;
  --grid-accent: #6d5dfc;
  --grid-accent-soft: rgba(109, 93, 252, 0.1);
  --grid-radius: 8px;
  --grid-shadow: 0 20px 55px rgba(15, 23, 42, 0.08);
  --font-text: "Rubik", "Assistant", "Segoe UI", "Noto Sans Hebrew", Arial, sans-serif;
  --font-number: "IBM Plex Sans", "Rubik", "Segoe UI", Arial, sans-serif;
  --radius-card: 8px;
  --radius-button: 8px;
  --radius-control: 8px;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

/* REMIT final visual lock: latest prompt, placed last to defeat legacy layers. */
:root {
  --remit-primary-dark: #0f1e2d;
  --remit-sidebar-hover: #1a3040;
  --remit-sidebar-width: 220px;
  --remit-active-green: #3CB86C;
  --remit-green: #3CB86C;
  --remit-green-soft: rgba(60, 184, 108, 0.14);
  --remit-green-faint: rgba(60, 184, 108, 0.07);
  --remit-green-dark: #2A8C52;
  --remit-bg: #f5f6f8;
  --remit-card: #ffffff;
  --remit-border: #e8eaed;
  --remit-text: #374151;
  --remit-muted: #9ca3af;
}

html,
body,
#app {
  direction: rtl !important;
}

body:has(.enterprise-sidebar),
body:has(.enterprise-sidebar) * {
  font-weight: 400 !important;
}

body:has(.enterprise-sidebar) .enterprise-sidebar.app-sidebar {
  width: 220px !important;
  height: 100vh !important;
  display: flex !important;
  flex-direction: column !important;
  padding: 0 !important;
  gap: 0 !important;
  background: #0f1e2d !important;
  border-left: 0.5px solid #1e3248 !important;
  box-shadow: none !important;
}

body:has(.enterprise-sidebar) .enterprise-sidebar-section {
  display: block !important;
  margin: 0 !important;
  padding: 0 0 8px !important;
  border: 0 !important;
}

body:has(.enterprise-sidebar) .enterprise-sidebar-section + .enterprise-sidebar-section {
  border-top: 0.5px solid #1e3248 !important;
  padding-top: 8px !important;
}

body:has(.enterprise-sidebar) .enterprise-sidebar-section-title {
  padding: 12px 10px 4px !important;
  color: #3a6a58 !important;
  font-size: 10px !important;
  line-height: 14px !important;
  letter-spacing: 0.8px !important;
  text-transform: uppercase !important;
}

body:has(.enterprise-sidebar) .modal-backdrop {
  right: 236px !important;
}

body:has(.enterprise-sidebar) .topbar,
body:has(.enterprise-sidebar) .management-dashboard-head {
  margin: -20px -24px 18px !important;
  padding: 12px 24px !important;
  min-height: 56px !important;
  background: #ffffff !important;
  border-bottom: 0.5px solid #e8eaed !important;
}

body:has(.enterprise-sidebar) .topbar h1,
body:has(.enterprise-sidebar) .management-dashboard-head h2,
body:has(.enterprise-sidebar) .page-title {
  color: #111827 !important;
  font-size: 17px !important;
  line-height: 24px !important;
}

body:has(.enterprise-sidebar) .topbar p,
body:has(.enterprise-sidebar) .management-dashboard-head p,
body:has(.enterprise-sidebar) .page-meta {
  color: #9ca3af !important;
  font-size: 12px !important;
}

body:has(.enterprise-sidebar) .panel,
body:has(.enterprise-sidebar) .subpanel,
body:has(.enterprise-sidebar) .data-grid-panel,
body:has(.enterprise-sidebar) .donor-detail-card,
body:has(.enterprise-sidebar) .management-card,
body:has(.enterprise-sidebar) .customization-editor,
body:has(.enterprise-sidebar) .customization-preview,
body:has(.enterprise-sidebar) .integration-card,
body:has(.enterprise-sidebar) .widgets .panel,
body:has(.enterprise-sidebar) .shell-kpi-card {
  background: #ffffff !important;
  border: 0.5px solid #e8eaed !important;
  border-radius: 10px !important;
  box-shadow: none !important;
}

body:has(.enterprise-sidebar) .shell-kpi-icon {
  width: 30px !important;
  height: 30px !important;
  border-radius: 7px !important;
  margin-bottom: 8px !important;
}

body:has(.enterprise-sidebar) .shell-kpi-card span:not(.shell-kpi-icon),
body:has(.enterprise-sidebar) .kpi-label {
  color: #9ca3af !important;
  font-size: 11px !important;
}

body:has(.enterprise-sidebar) .shell-kpi-card strong,
body:has(.enterprise-sidebar) .kpi-value {
  color: #111827 !important;
  font-size: 20px !important;
  line-height: 26px !important;
}

body:has(.enterprise-sidebar) .shell-kpi-card em,
body:has(.enterprise-sidebar) .kpi-trend {
  color: #2A8C52 !important;
  font-size: 11px !important;
}

body:has(.enterprise-sidebar) thead th {
  padding: 9px 14px !important;
  background: #f9fafb !important;
  border-bottom: 0.5px solid #e8eaed !important;
  color: #9ca3af !important;
  font-size: 11px !important;
  letter-spacing: 0.3px !important;
}

body:has(.enterprise-sidebar) tbody td {
  padding: 10px 14px !important;
  border-bottom: 0.5px solid #f3f4f6 !important;
  color: #374151 !important;
  font-size: 12px !important;
}

body:has(.enterprise-sidebar) tbody tr:hover td {
  background: #f9fafb !important;
}

body:has(.enterprise-sidebar) .status-badge:not(.custom-color),
body:has(.enterprise-sidebar) .badge:not(.custom-color) {
  display: inline-flex !important;
  align-items: center !important;
  gap: 3px !important;
  min-height: 22px !important;
  padding: 2px 8px !important;
  border: 0 !important;
  border-radius: 20px !important;
  font-size: 11px !important;
}

body:has(.enterprise-sidebar) .status-badge:not(.custom-color)::before,
body:has(.enterprise-sidebar) .badge:not(.custom-color)::before {
  content: "" !important;
  width: 5px !important;
  height: 5px !important;
  border-radius: 50% !important;
  background: currentColor !important;
}

body:has(.enterprise-sidebar) .status-badge.success:not(.custom-color),
body:has(.enterprise-sidebar) .status-badge.ok:not(.custom-color),
body:has(.enterprise-sidebar) .badge.ok:not(.custom-color) {
  background: rgba(60, 184, 108, 0.14) !important;
  color: #2A8C52 !important;
}

body:has(.enterprise-sidebar) .status-badge.warning:not(.custom-color) {
  background: #FAEEDA !important;
  color: #854F0B !important;
}

body:has(.enterprise-sidebar) .status-badge.neutral:not(.custom-color),
body:has(.enterprise-sidebar) .status-badge.danger:not(.custom-color) {
  background: #f3f4f6 !important;
  color: #6b7280 !important;
}

body:has(.enterprise-sidebar) .status-badge.custom-color {
  background: color-mix(in srgb, var(--status-color) 18%, white) !important;
  border-color: color-mix(in srgb, var(--status-color) 42%, white) !important;
  color: var(--status-color) !important;
}

body:has(.enterprise-sidebar) button,
body:has(.enterprise-sidebar) .btn-primary,
body:has(.enterprise-sidebar) .primary,
body:has(.enterprise-sidebar) button.primary {
  border-radius: 8px !important;
  padding: 7px 14px !important;
  font-size: 12px !important;
}

body:has(.enterprise-sidebar) button.ghost,
body:has(.enterprise-sidebar) .btn-secondary,
body:has(.enterprise-sidebar) .secondary,
body:has(.enterprise-sidebar) button.secondary {
  border: 0.5px solid #d1d5db !important;
  background: #ffffff !important;
  color: #6b7280 !important;
}

/* Field Settings table absolute final lock - keep at EOF. */
body:has(.enterprise-sidebar) .modal-panel:has(.classic-table-settings) {
  overflow: visible !important;
}

body:has(.enterprise-sidebar) .modal-panel:has(.classic-table-settings) .modal-body,
body:has(.enterprise-sidebar) .modal-panel:has(.classic-table-settings) .modal-content {
  overflow: visible !important;
  min-height: 0 !important;
}

body:has(.enterprise-sidebar) .modal-panel:has(.classic-table-settings) .modal-footer {
  display: flex !important;
  position: sticky !important;
  bottom: 0 !important;
  z-index: 30 !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 8px !important;
  padding: 12px 16px !important;
  border-top: 0.5px solid #e8eaed !important;
  background: #ffffff !important;
}

body:has(.enterprise-sidebar) .classic-table-settings {
  display: flex !important;
  flex-direction: column !important;
  max-width: 100% !important;
  min-height: 0 !important;
  overflow: visible !important;
}

body:has(.enterprise-sidebar) .classic-table-settings .table-settings-compact-head {
  display: grid !important;
  grid-template-columns: minmax(220px, 1fr) auto auto !important;
  gap: 8px !important;
  align-items: center !important;
  padding: 12px 14px !important;
  border: 0.5px solid #e8eaed !important;
  border-bottom: 0 !important;
  border-radius: 10px 10px 0 0 !important;
  background: #ffffff !important;
}

body:has(.enterprise-sidebar) .classic-table-settings .table-settings-compact-head > span {
  grid-column: 1 / 2 !important;
  color: #9ca3af !important;
  font-size: 12px !important;
}

body:has(.enterprise-sidebar) .classic-table-settings .table-settings-save-btn,
body:has(.enterprise-sidebar) .classic-table-settings .table-settings-close-btn {
  justify-self: end !important;
}

body:has(.enterprise-sidebar) .classic-table-settings .table-settings-sticky-head {
  min-width: 1180px !important;
  border: 0.5px solid #e8eaed !important;
  border-bottom: 0 !important;
  border-radius: 0 !important;
  background: #f9fafb !important;
  color: #9ca3af !important;
  box-shadow: none !important;
  overflow: visible !important;
}

body:has(.enterprise-sidebar) .classic-table-settings .table-settings-sticky-head span {
  white-space: nowrap !important;
  border-inline-start: 0.5px solid #e8eaed !important;
  color: #9ca3af !important;
  font-size: 11px !important;
}

body:has(.enterprise-sidebar) .classic-table-settings .table-settings-scroll {
  width: 100% !important;
  max-width: 100% !important;
  height: min(66vh, 680px) !important;
  max-height: min(66vh, 680px) !important;
  overflow-x: auto !important;
  overflow-y: auto !important;
  border: 0.5px solid #e8eaed !important;
  border-radius: 0 0 10px 10px !important;
  background: #ffffff !important;
}

body:has(.enterprise-sidebar) .classic-table-settings .table-settings-matrix {
  min-width: 1180px !important;
  width: max-content !important;
  border-collapse: separate !important;
  border-spacing: 0 !important;
}

body:has(.enterprise-sidebar) .classic-table-settings .table-settings-matrix th {
  white-space: nowrap !important;
}

body:has(.enterprise-sidebar) .classic-table-settings .table-settings-matrix tr {
  min-width: 1180px !important;
  border-bottom: 0.5px solid #f3f4f6 !important;
}

body:has(.enterprise-sidebar) .classic-table-settings .table-settings-matrix tbody tr:nth-child(odd) td {
  background: #ffffff !important;
}

body:has(.enterprise-sidebar) .classic-table-settings .table-settings-matrix tbody tr:nth-child(even) td {
  background: #f9fafb !important;
}

body:has(.enterprise-sidebar) .classic-table-settings .table-settings-matrix tbody tr:hover td {
  background: rgba(60, 184, 108, 0.08) !important;
}

body:has(.enterprise-sidebar) .classic-table-settings .table-settings-matrix td {
  border-bottom: 0.5px solid #f3f4f6 !important;
}

body:has(.enterprise-sidebar) .classic-table-settings input[type="checkbox"] {
  appearance: none !important;
  -webkit-appearance: none !important;
  width: 16px !important;
  height: 16px !important;
  min-width: 16px !important;
  min-height: 16px !important;
  margin: 0 !important;
  border: 0.5px solid #d1d5db !important;
  border-radius: 4px !important;
  background: #ffffff !important;
  background-color: #ffffff !important;
  box-shadow: none !important;
  cursor: pointer !important;
}

body:has(.enterprise-sidebar) .classic-table-settings input[type="checkbox"]:checked {
  border-color: #3CB86C !important;
  background-color: #3CB86C !important;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 16 16' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M4 8.2 6.7 11 12 5' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-position: center !important;
  background-size: 12px 12px !important;
}

body:has(.enterprise-sidebar) .classic-table-settings .table-settings-empty-choice {
  min-height: 34px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  color: #9ca3af !important;
  font-size: 12px !important;
  text-align: center !important;
}

body:has(.enterprise-sidebar) .classic-table-settings .choice-color-settings {
  position: static !important;
  display: grid !important;
  gap: 8px !important;
}

body:has(.enterprise-sidebar) .classic-table-settings .choice-color-grid {
  position: static !important;
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 6px !important;
  max-width: 360px !important;
  padding: 8px !important;
  border: 0.5px solid #e8eaed !important;
  border-radius: 10px !important;
  background: #ffffff !important;
  box-shadow: none !important;
}

body:has(.enterprise-sidebar) .classic-table-settings .choice-color-grid[hidden] {
  display: none !important;
}

body:has(.enterprise-sidebar) .classic-table-settings .choice-color-grid label {
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  padding: 4px 6px !important;
  border: 0.5px solid #e8eaed !important;
  border-radius: 999px !important;
  background: #f9fafb !important;
}

body:has(.enterprise-sidebar) .classic-table-settings .choice-color-grid select {
  position: static !important;
  width: auto !important;
  min-width: 72px !important;
  height: 28px !important;
  padding: 2px 8px !important;
  border: 0.5px solid #d1d5db !important;
  border-radius: 999px !important;
  background: #ffffff !important;
  color: #374151 !important;
  font-size: 12px !important;
}

/* Field Settings table final fixes. */
body:has(.enterprise-sidebar) .modal-panel:has(.classic-table-settings) {
  overflow: visible !important;
}

body:has(.enterprise-sidebar) .modal-panel:has(.classic-table-settings) .modal-body,
body:has(.enterprise-sidebar) .modal-panel:has(.classic-table-settings) .modal-content {
  overflow: visible !important;
  min-height: 0 !important;
}

body:has(.enterprise-sidebar) .modal-panel:has(.classic-table-settings) .modal-footer {
  display: flex !important;
  position: sticky !important;
  bottom: 0 !important;
  z-index: 30 !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 8px !important;
  padding: 12px 16px !important;
  border-top: 0.5px solid #e8eaed !important;
  background: #ffffff !important;
}

body:has(.enterprise-sidebar) .classic-table-settings {
  display: flex !important;
  flex-direction: column !important;
  max-width: 100% !important;
  min-height: 0 !important;
  overflow: visible !important;
}

body:has(.enterprise-sidebar) .classic-table-settings .table-settings-compact-head {
  display: grid !important;
  grid-template-columns: minmax(220px, 1fr) auto auto !important;
  gap: 8px !important;
  align-items: center !important;
  padding: 12px 14px !important;
  border: 0.5px solid #e8eaed !important;
  border-bottom: 0 !important;
  border-radius: 10px 10px 0 0 !important;
  background: #ffffff !important;
}

body:has(.enterprise-sidebar) .classic-table-settings .table-settings-compact-head > span {
  grid-column: 1 / 2 !important;
  color: #9ca3af !important;
  font-size: 12px !important;
}

body:has(.enterprise-sidebar) .classic-table-settings .table-settings-save-btn,
body:has(.enterprise-sidebar) .classic-table-settings .table-settings-close-btn {
  justify-self: end !important;
}

body:has(.enterprise-sidebar) .classic-table-settings .table-settings-sticky-head {
  min-width: 1180px !important;
  border: 0.5px solid #e8eaed !important;
  border-bottom: 0 !important;
  border-radius: 0 !important;
  background: #f9fafb !important;
  color: #9ca3af !important;
  box-shadow: none !important;
  overflow: visible !important;
}

body:has(.enterprise-sidebar) .classic-table-settings .table-settings-sticky-head span {
  white-space: nowrap !important;
  border-inline-start: 0.5px solid #e8eaed !important;
  color: #9ca3af !important;
  font-size: 11px !important;
}

body:has(.enterprise-sidebar) .classic-table-settings .table-settings-scroll {
  width: 100% !important;
  max-width: 100% !important;
  height: min(66vh, 680px) !important;
  max-height: min(66vh, 680px) !important;
  overflow-x: auto !important;
  overflow-y: auto !important;
  border: 0.5px solid #e8eaed !important;
  border-radius: 0 0 10px 10px !important;
  background: #ffffff !important;
}

body:has(.enterprise-sidebar) .classic-table-settings .table-settings-matrix {
  min-width: 1180px !important;
  width: max-content !important;
  border-collapse: separate !important;
  border-spacing: 0 !important;
}

body:has(.enterprise-sidebar) .classic-table-settings .table-settings-matrix th {
  white-space: nowrap !important;
}

body:has(.enterprise-sidebar) .classic-table-settings .table-settings-matrix tr {
  min-width: 1180px !important;
  border-bottom: 0.5px solid #f3f4f6 !important;
}

body:has(.enterprise-sidebar) .classic-table-settings .table-settings-matrix tbody tr:nth-child(odd) td {
  background: #ffffff !important;
}

body:has(.enterprise-sidebar) .classic-table-settings .table-settings-matrix tbody tr:nth-child(even) td {
  background: #f9fafb !important;
}

body:has(.enterprise-sidebar) .classic-table-settings .table-settings-matrix tbody tr:hover td {
  background: rgba(60, 184, 108, 0.08) !important;
}

body:has(.enterprise-sidebar) .classic-table-settings .table-settings-matrix td {
  border-bottom: 0.5px solid #f3f4f6 !important;
}

body:has(.enterprise-sidebar) .classic-table-settings input[type="checkbox"] {
  appearance: none !important;
  -webkit-appearance: none !important;
  width: 16px !important;
  height: 16px !important;
  min-width: 16px !important;
  min-height: 16px !important;
  margin: 0 !important;
  border: 0.5px solid #d1d5db !important;
  border-radius: 4px !important;
  background: #ffffff !important;
  background-color: #ffffff !important;
  box-shadow: none !important;
  cursor: pointer !important;
}

body:has(.enterprise-sidebar) .classic-table-settings input[type="checkbox"]:checked {
  border-color: #3CB86C !important;
  background-color: #3CB86C !important;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 16 16' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M4 8.2 6.7 11 12 5' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-position: center !important;
  background-size: 12px 12px !important;
}

body:has(.enterprise-sidebar) .classic-table-settings .table-settings-empty-choice {
  min-height: 34px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  color: #9ca3af !important;
  font-size: 12px !important;
  text-align: center !important;
}

body:has(.enterprise-sidebar) .classic-table-settings .choice-color-settings {
  position: static !important;
  display: grid !important;
  gap: 8px !important;
}

body:has(.enterprise-sidebar) .classic-table-settings .choice-color-grid {
  position: static !important;
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 6px !important;
  max-width: 360px !important;
  padding: 8px !important;
  border: 0.5px solid #e8eaed !important;
  border-radius: 10px !important;
  background: #ffffff !important;
  box-shadow: none !important;
}

body:has(.enterprise-sidebar) .classic-table-settings .choice-color-grid[hidden] {
  display: none !important;
}

body:has(.enterprise-sidebar) .classic-table-settings .choice-color-grid label {
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  padding: 4px 6px !important;
  border: 0.5px solid #e8eaed !important;
  border-radius: 999px !important;
  background: #f9fafb !important;
}

body:has(.enterprise-sidebar) .classic-table-settings .choice-color-grid select {
  position: static !important;
  width: auto !important;
  min-width: 72px !important;
  height: 28px !important;
  padding: 2px 8px !important;
  border: 0.5px solid #d1d5db !important;
  border-radius: 999px !important;
  background: #ffffff !important;
  color: #374151 !important;
  font-size: 12px !important;
}

@media (max-width: 760px) {
  :root {
    --remit-sidebar-width: 82px;
  }

  body:has(.enterprise-sidebar) .main {
    margin-right: 82px !important;
  }
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-text);
  font-size: 14px;
  line-height: 1.45;
  direction: rtl;
}

.login-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
  background: #f4fbff;
}

.login-panel {
  width: min(420px, 100%);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  padding: 28px;
}

.login-panel h1 {
  margin: 18px 0 8px;
}

.login-brand {
  justify-content: flex-start;
}

.stack-form,
.tenant-form {
  display: grid;
  gap: 14px;
}

.stack-form label,
.tenant-form label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-weight: 500;
}

.form-error {
  margin: 12px 0;
  padding: 10px 12px;
  border: 1px solid rgba(239, 71, 111, 0.35);
  border-radius: 8px;
  background: rgba(239, 71, 111, 0.08);
  color: #b4234b;
}

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

.super-admin-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 24px;
  margin-bottom: 16px;
  background: #ffffff;
  border: 1px solid #d8edf9;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.super-admin-hero span {
  color: var(--brand);
  font-weight: 500;
}

.super-admin-hero h2 {
  margin: 4px 0;
  font-size: 28px;
}

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

.super-admin-panel table small {
  display: block;
  color: var(--muted);
}

.tenant-form h3 {
  margin: 8px 0 0;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}

.feature-toggles {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.feature-toggles label {
  display: inline-flex;
  grid-template-columns: auto;
  align-items: center;
  gap: 7px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--text);
  background: #f8fcff;
}

.feature-toggles input {
  width: auto;
}

.customization-page {
  display: grid;
  gap: 18px;
}

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

.customization-hero h2 {
  margin: 0 0 6px;
}

.settings-tabs {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  width: fit-content;
}

.settings-tabs button {
  min-height: 34px;
  border: 0;
  background: transparent;
  color: var(--muted);
}

.settings-tabs button.active {
  background: var(--brand);
  color: #fff;
}

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

.customization-editor,
.customization-preview {
  padding: 18px;
}

.workflow-scheduling-box {
  display: grid;
  gap: 12px;
  margin: 12px 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fcff;
}

.workflow-conditions {
  display: grid;
  gap: 8px;
}

.workflow-receipt-settings {
  display: grid;
  gap: 8px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}

.workflow-condition-row {
  display: grid;
  grid-template-columns: minmax(150px, 1.2fr) minmax(120px, 0.8fr) minmax(160px, 1fr) 34px;
  gap: 8px;
  align-items: center;
}

.readonly-soft input {
  color: var(--muted);
  background: #eef5fb;
}

.field-visibility-eye,
button[onclick*="openFieldVisibilityEditor"] {
  display: none !important;
}

.visibility-rule-hidden,
[data-visibility-hidden="true"] {
  display: none !important;
}

.merge-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 14px 0;
}

.merge-toolbar button {
  direction: ltr;
  min-height: 30px;
}

.rich-editor {
  min-height: 220px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--text);
  outline: none;
  overflow: auto;
}

.rich-editor:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.12);
}

.message-editor {
  min-height: 150px;
}

.document-preview {
  min-height: 220px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  color: var(--text);
}

.compact-preview {
  min-height: 130px;
}

.html-code-field {
  display: grid;
  gap: 8px;
  margin-top: 12px;
  color: var(--muted);
  font-weight: 500;
}

.html-code-field textarea {
  direction: ltr;
  text-align: left;
  font-family: Consolas, "Courier New", monospace;
  min-height: 180px;
  resize: vertical;
}

.provider-grid {
  display: grid;
  gap: 12px;
}

.integration-console {
  display: grid;
  gap: 14px;
}

.integration-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 14px;
  align-items: start;
}

.integration-card {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.primary-integration-card {
  min-height: 100%;
}

.secondary-integration-card {
  background: #f8fcff;
}

.mailhook-grid {
  display: grid;
  gap: 12px;
}

.mailhook-card {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fcff;
}

.mailhook-card h4 {
  margin: 0;
  font-size: 16px;
}

.mailhook-notice {
  display: grid;
  gap: 4px;
  padding: 10px 12px;
  border: 1px solid #f4c7a1;
  border-radius: 8px;
  background: #fff8f1;
  color: #704214;
  line-height: 1.55;
}

.mailhook-notice strong {
  color: #8a3d00;
}

.mailhook-connect {
  display: grid;
  gap: 8px;
  padding: 10px 12px;
  border: 1px solid #c6dafc;
  border-radius: 8px;
  background: #f7fbff;
}

.mailhook-connect span {
  color: var(--muted);
  line-height: 1.55;
}

.mailhook-technical-url {
  color: var(--muted);
}

.mailhook-technical-url summary {
  cursor: pointer;
  font-weight: 500;
  color: var(--text);
}

.integration-help-panel {
  align-self: start;
}

.integration-status-list {
  display: grid;
  gap: 10px;
}

.integration-status-list span {
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fcff;
  color: var(--text);
  font-weight: 500;
}

.email-account-box {
  display: grid;
  gap: 12px;
}

.google-email-connect {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px;
  border: 1px solid #d7e6f7;
  border-radius: 10px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
}

.google-email-connect > div {
  display: grid;
  gap: 4px;
}

.google-email-connect strong {
  color: #162b45;
  font-size: 15px;
}

.google-email-connect span {
  color: #5e7897;
  font-size: 13px;
  font-weight: 500;
  overflow-wrap: anywhere;
}

.email-advanced-settings {
  border: 1px solid #e2ebf6;
  border-radius: 10px;
  background: #ffffff;
}

.email-advanced-settings summary {
  cursor: pointer;
  padding: 12px 14px;
  color: #314766;
  font-weight: 500;
}

.email-advanced-settings .form-grid {
  padding: 0 14px 14px;
}

.soft-divider {
  width: 100%;
  border: 0;
  border-top: 1px solid var(--line);
  margin: 16px 0;
}

.workflow-list {
  display: grid;
  gap: 8px;
  margin: 12px 0 18px;
}

.workflow-pill {
  width: 100%;
  display: grid;
  grid-template-columns: minmax(120px, 1fr) minmax(160px, 1.4fr) auto;
  gap: 10px;
  align-items: center;
  justify-content: stretch;
  text-align: right;
  background: #f8fcff;
  color: var(--text);
  border: 1px solid var(--line);
  padding: 10px 12px;
}

.workflow-pill.active {
  border-color: var(--brand);
  background: #eaf8ff;
}

.workflow-pill span {
  color: var(--muted);
}

.workflow-pill em {
  font-style: normal;
  color: var(--danger);
}

.workflow-pill em.ok {
  color: #3CB86C;
}

.reminder-shell {
  position: relative;
  display: inline-flex;
  align-items: center;
  z-index: 90;
}

.header-user-tools {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.header-reminder-shell {
  order: -1;
}

.reminder-bell {
  position: relative;
  min-height: 34px;
  border-color: #cfe3f5;
  background: #ffffff;
  color: var(--text);
  font-weight: 500;
  gap: 6px;
}

.bell-mark {
  font-size: 16px;
  line-height: 1;
}

.reminder-bell.has-due {
  border-color: rgba(239, 71, 111, 0.4);
  color: #b4234b;
  background: #fff5f7;
}

.reminder-bell strong {
  position: absolute;
  top: -7px;
  left: -7px;
  min-width: 19px;
  height: 19px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: var(--danger);
  color: #fff;
  font-size: 11px;
}

.reminder-bell strong.quiet {
  background: rgba(60, 184, 108, 0.14);
  color: #2A8C52;
}

.operator-reminder-shell {
  z-index: 4600;
}

.operator-reminder-shell .reminder-bell {
  min-height: 42px;
  padding: 0 14px;
  border-color: rgba(255, 255, 255, 0.32);
  background: rgba(255, 255, 255, 0.14);
  color: #ffffff;
  box-shadow: none;
}

.operator-reminder-shell .reminder-bell:hover,
.operator-reminder-shell .reminder-bell:focus-visible {
  background: rgba(255, 255, 255, 0.22);
}

.operator-reminder-shell .reminder-bell.has-due {
  border-color: rgba(255, 209, 102, 0.7);
  background: rgba(255, 245, 210, 0.2);
  color: #ffffff;
}

.operator-reminder-shell .reminder-bell strong.quiet {
  background: rgba(255, 255, 255, 0.9);
  color: #2A8C52;
}

.reminder-popover {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  width: min(420px, calc(100vw - 32px));
  z-index: 120;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--text);
  box-shadow: 0 22px 55px rgba(15, 39, 66, 0.18);
}

.reminder-popover header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.reminder-group {
  display: grid;
  gap: 8px;
  margin-top: 10px;
}

.reminder-group h3 {
  margin: 0;
  font-size: 14px;
}

.reminder-row {
  display: grid;
  gap: 10px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fcff;
}

.reminder-row.due {
  border-color: rgba(239, 71, 111, 0.25);
  background: #fff8fa;
}

.reminder-side-notice {
  position: fixed;
  top: max(104px, calc(var(--header-offset, 0px) + 18px));
  right: 22px;
  z-index: 7000;
  width: min(460px, calc(100vw - 36px));
  max-height: calc(100vh - 126px);
  pointer-events: none;
}

.reminder-shell > .reminder-side-notice {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  right: auto;
  width: min(460px, calc(100vw - 24px));
  max-height: calc(100vh - 120px);
}

.operator-reminder-shell > .reminder-side-notice {
  top: calc(100% + 12px);
  left: 0;
  right: auto;
}

.reminder-side-card {
  pointer-events: auto;
  border: 1px solid rgba(60, 184, 108, 0.24);
  border-radius: 8px;
  background: #ffffff;
  color: var(--text);
  box-shadow: 0 24px 70px rgba(15, 39, 66, 0.22);
  overflow: hidden;
}

.reminder-side-notice.is-due .reminder-side-card {
  border-color: rgba(239, 71, 111, 0.34);
  box-shadow: 0 24px 80px rgba(180, 35, 75, 0.22);
}

.reminder-side-card header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 18px;
  background: linear-gradient(135deg, rgba(60, 184, 108, 0.12), rgba(60, 184, 108, 0.08));
  border-bottom: 1px solid rgba(60, 184, 108, 0.14);
}

.reminder-side-card .eyebrow {
  display: block;
  margin-bottom: 4px;
  color: #2A8C52;
  font-size: 12px;
  font-weight: 700;
}

.reminder-side-card h3 {
  margin: 0;
  font-size: 19px;
  color: #16313f;
}

.reminder-side-list {
  display: grid;
  gap: 10px;
  padding: 14px;
  max-height: calc(100vh - 245px);
  overflow: auto;
}

.reminder-side-section {
  display: grid;
  gap: 8px;
}

.reminder-side-section h4 {
  margin: 0;
  color: #243b53;
  font-size: 14px;
}

.reminder-side-row {
  display: grid;
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fcff;
}

.reminder-side-row strong,
.reminder-side-row span {
  display: block;
}

.reminder-side-row span {
  margin-top: 3px;
  color: var(--muted);
  font-size: 13px;
}

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

.reminder-side-actions button {
  min-height: 34px;
}

.reminder-more {
  margin: 0;
  text-align: center;
}

.reminder-row span {
  display: block;
  margin-top: 3px;
  color: var(--muted);
}

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

.toggle-line {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.toggle-line input {
  width: auto;
}

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

button,
.dial {
  border: 0;
  border-radius: 8px;
  background: var(--brand);
  color: white;
  padding: 4px 9px;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  font-weight: 500;
  width: fit-content;
}

button:hover,
.dial:hover {
  filter: brightness(0.96);
}

.ghost {
  background: #f8fcff;
  color: #0f2742;
  border: 1px solid var(--line);
}

.danger-btn {
  color: var(--danger);
}

.table-link {
  min-height: auto;
  padding: 0;
  background: transparent;
  color: var(--brand);
  text-decoration: underline;
  text-underline-offset: 3px;
  box-shadow: none;
}

.table-link:hover {
  filter: none;
  color: #3e64ca;
}

.icon-link,
.file-import-btn {
  width: 32px;
  min-width: 32px;
  min-height: 32px;
  padding: 0;
  border-radius: 8px;
  text-decoration: none;
}

.primary {
  background: #0ea5e9;
  color: white;
  font-weight: 500;
}

#app {
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr);
  min-height: 100vh;
}

.app-header {
  background: #ffffff;
  color: #111827;
  padding: 6px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  position: sticky;
  top: 0;
  z-index: 40;
  border-bottom: 1px solid #e5e7eb;
  box-shadow: 0 8px 20px rgba(15, 39, 66, 0.05);
}

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

.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: #e0f2fe;
  color: #075985;
  font-weight: 500;
  font-size: 12px;
}

.brand small {
  color: #6b7280;
  display: block;
  margin-top: 1px;
}

nav {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  flex: 1;
}

.system-nav {
  position: sticky;
  top: 47px;
  z-index: 35;
  display: grid;
  gap: 1px;
  padding: 6px 28px 8px;
  background: #f3f4f6;
  border-bottom: 1px solid #e5e7eb;
  overflow: visible;
}

.nav-primary,
.nav-secondary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  overflow-x: auto;
  scrollbar-width: thin;
}

.nav-primary {
  min-height: 34px;
  padding-top: 0;
}

.nav-secondary {
  min-height: 32px;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.nav-category,
.nav-item {
  position: relative;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #102a43;
  white-space: nowrap;
  width: auto;
  min-height: 30px;
  padding: 5px 16px;
  font-size: 13.5px;
  font-weight: 500;
  transition: color 0.18s ease, background 0.18s ease;
}

.nav-category:hover,
.nav-item:hover {
  background: rgba(16, 42, 67, 0.08);
  color: #0b1f33;
  filter: none;
}

.nav-category.active {
  background: #dbeafe;
  color: #0b1f33;
  box-shadow: none;
}

.nav-item {
  color: #243b53;
  font-weight: 500;
  font-size: 12.8px;
}

.nav-item.active {
  background: #dbeafe;
  color: #0b1f33;
  font-weight: 500;
}

.nav-category.active::after,
.nav-item.active::after {
  content: none;
}

.app-header .user-picker {
  margin-top: 0;
  min-width: 230px;
}

.app-header .brand {
  min-width: 190px;
}

.sidebar nav {
  display: grid;
  gap: 8px;
}

nav button,
.queue button {
  width: 100%;
  justify-content: flex-start;
  background: transparent;
  color: inherit;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

nav button.active,
.queue button.active {
  background: var(--accent);
  color: var(--text);
}

.system-nav button {
  width: auto;
  justify-content: center;
  border: 0;
}

.system-nav .nav-category.active {
  background: #dbeafe;
  color: #0b1f33;
}

.system-nav .nav-item.active {
  background: #dbeafe;
  color: #0b1f33;
}

.user-picker {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #4b5563;
  font-size: 12.5px;
  font-weight: 500;
}

.user-picker select {
  width: 100%;
  min-height: 32px;
  padding-block: 5px;
}

.main {
  padding: 28px 32px;
  overflow-x: hidden;
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  margin-bottom: 36px;
  padding-bottom: 26px;
  border-bottom: 1px solid var(--line);
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 8px;
  font-size: 28px;
  font-weight: 500;
  color: #0f2742;
}

h2 {
  font-size: 21px;
  font-weight: 500;
  color: #0f2742;
  margin-bottom: 16px;
}

h3 {
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 12px;
}

.topbar p,
.muted {
  color: var(--muted);
}

.topbar .actions .primary,
.section-head .primary,
.topbar button:not(.ghost),
.section-head button.primary {
  min-height: 32px;
  border-radius: 8px;
  padding: 5px 12px;
  background: #0ea5e9;
  color: #fff;
  font-size: 13px;
  font-weight: 500;
  box-shadow: none;
}

.field-message {
  margin: -4px 0 4px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.bonus-rule-form {
  align-items: end;
  margin-bottom: 18px;
}

.percent-input::placeholder {
  color: #a7b0aa;
}

.percent-input {
  max-width: 130px;
}

.section-head .muted {
  max-width: 560px;
}

.badge {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  border-radius: 999px;
  padding: 5px 13px;
  font-size: 13.5px;
  font-weight: 500;
  border: 0;
  color: #334155;
  background: rgba(51, 65, 85, 0.1);
}

.table-settings-inline {
  display: none;
}

.badge.ok {
  color: #2A8C52;
  background: rgba(60, 184, 108, 0.14);
}

.badge.danger {
  color: #be123c;
  background: rgba(190, 18, 60, 0.1);
}

.profile-lines {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.profile-lines span {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfdff;
  padding: 7px 10px;
  color: var(--muted);
}

.date-picker-field {
  position: relative;
}

.date-picker-field > input[readonly] {
  cursor: pointer;
  background: #fff !important;
}

.table-inline-input {
  min-width: 140px;
}

.row-actions {
  width: 1%;
  white-space: nowrap;
}

.multi-select {
  position: relative;
}

.multi-select-trigger {
  width: 100%;
  min-height: 36px;
  justify-content: flex-start;
  background: #fff;
  color: var(--text);
  border: 1.5px solid #7f8da3;
}

.multi-select-menu {
  display: none;
  position: absolute;
  z-index: 70;
  inset-inline: 0;
  top: calc(100% + 6px);
  max-height: 260px;
  overflow: auto;
  padding: 8px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 16px 34px rgba(37, 48, 74, 0.16);
}

.multi-select.open .multi-select-menu {
  display: grid;
  gap: 6px;
}

.multi-select-head,
.multi-select-actions,
.picker-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.multi-select-head {
  position: sticky;
  top: -8px;
  z-index: 1;
  margin: -8px -8px 4px;
  padding: 8px;
  background: #fff;
  border-bottom: 1px solid var(--line);
}

.multi-select-head strong {
  color: var(--text);
  font-size: 14px;
}

.multi-select-actions {
  position: sticky;
  bottom: -8px;
  margin: 4px -8px -8px;
  padding: 8px;
  background: #fff;
  border-top: 1px solid var(--line);
}

.multi-select-actions button,
.picker-actions button {
  min-height: 34px !important;
  height: 34px !important;
  border-radius: 9px !important;
  padding-inline: 14px !important;
}

.multi-select-option {
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  padding: 8px;
  border-radius: 8px;
}

.multi-select-option:hover {
  background: #f3f7ff;
}

.multi-select-option input {
  width: auto;
  min-height: auto;
}

.date-calendar {
  position: absolute;
  z-index: 20;
  top: calc(100% + 8px);
  right: 0;
  width: min(420px, 86vw);
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  padding: 12px;
}

.calendar-header {
  display: grid;
  grid-template-columns: 40px 1fr 40px;
  gap: 8px;
  align-items: center;
  text-align: center;
  margin-bottom: 10px;
}

.calendar-header button {
  min-height: 36px;
  padding: 0;
}

.hebrew-calendar-header {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  text-align: right;
}

.hebrew-calendar-header label {
  display: grid;
  gap: 4px;
  font-size: 12px;
  color: var(--muted);
}

.hebrew-calendar-header select {
  min-height: 36px;
  width: 100%;
  border: 1.5px solid #7f8da3;
  border-radius: 8px;
  padding: 6px 8px;
  background: #fff;
  color: var(--text);
}

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

.calendar-weekdays {
  color: var(--muted);
  font-size: 13px;
  text-align: center;
  margin-bottom: 4px;
}

.calendar-day {
  min-height: 58px;
  display: grid;
  gap: 2px;
  align-content: center;
  background: #fbfdff;
  color: var(--text);
  border: 1px solid var(--line);
  padding: 5px;
  text-align: center;
}

.calendar-day strong {
  font-size: 16px;
}

.calendar-day span {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.2;
}

.calendar-day.outside {
  opacity: 0.42;
}

.calendar-day.today {
  border-color: var(--brand-2);
}

.calendar-day.selected {
  background: var(--accent);
  border-color: var(--brand);
}

.calendar-day:disabled {
  cursor: not-allowed;
  opacity: 0.28;
  filter: grayscale(1);
}

.calendar-blank {
  min-height: 58px;
  background: transparent;
  border-color: transparent;
}

.picker-actions {
  justify-content: flex-start;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}

.actions,
.inline-form {
  display: flex;
  gap: 10px;
  flex-wrap: nowrap;
  align-items: center;
  overflow-x: auto;
  max-width: 100%;
}

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

.danger-btn {
  color: var(--danger);
  border-color: #ffd3df;
}

.icon-btn {
  width: 30px;
  padding: 0;
  font-size: 14px;
}

.small-icon-btn,
.compact-add-btn {
  width: 28px;
  min-width: 28px;
  min-height: 28px;
  font-size: 13px;
  line-height: 1;
}

.compact-add-btn {
  width: auto;
  min-width: 0;
  min-height: 30px;
  padding: 5px 10px;
  border-radius: 8px;
  background: #0ea5e9;
  color: #fff;
  font-size: 0;
}

.compact-add-btn::after {
  content: attr(title);
  font-size: 13px;
  font-weight: 500;
}

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

.section-head h2 {
  margin-bottom: 0;
}

.section-head .actions select,
.section-head .actions .date-picker-field {
  width: 180px;
}

.section-head .actions {
  align-items: center;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.stats {
  display: grid;
  grid-template-columns: repeat(5, minmax(140px, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}

.stats article,
.panel,
.donor-hero {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow);
}

.stats article {
  padding: 14px;
  position: relative;
  overflow: hidden;
}

.stats article::before {
  content: "";
  position: absolute;
  inset-block: 0;
  inset-inline-start: 0;
  width: 4px;
  background: var(--brand-2);
}

.stats article:nth-child(2)::before { background: var(--yellow); }
.stats article:nth-child(3)::before { background: var(--pink); }
.stats article:nth-child(4)::before { background: var(--purple); }
.stats article:nth-child(5)::before { background: var(--green); }
.stats article:nth-child(6)::before { background: var(--orange); }

.stats span {
  display: block;
  color: var(--muted);
  margin-bottom: 8px;
}

.stats strong {
  font-size: 20px;
}

.compact-stats {
  margin: 12px 0;
}

.compact-stats article {
  padding: 12px;
}

.compact-stats strong {
  font-size: 18px;
}

.grid {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(320px, 0.7fr);
  gap: 22px;
  margin-bottom: 24px;
}

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

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

.donors-view {
  grid-template-columns: 1fr;
}

.panel {
  padding: 0;
  min-width: 0;
  overflow: hidden;
}

.panel > :not(table):not(.table-search-row):not(.table-filter-panel) {
  margin-inline: 24px;
}

.panel > .section-head,
.panel > h2,
.panel > h3 {
  margin-top: 22px;
}

.panel > table {
  margin-top: 0;
}

.panel > .table-search-row + table,
.panel > .table-filter-panel + table {
  border-top: 1px solid var(--line);
}

.row-actions .ghost,
td .icon-link {
  background: transparent;
  border: 0;
  color: #0284c7;
}

table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  overflow: hidden;
  background: #ffffff;
}

th,
td {
  text-align: right;
  padding: 17px 22px;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
}

th {
  color: #456987;
  font-weight: 500;
  background: #f6fbff;
  font-size: 14px;
  border-bottom: 1px solid #cbe8f7;
}

td {
  font-size: 14px;
  color: #18324d;
  background: #ffffff;
}

tbody tr:nth-child(even) td {
  background: #f8fcff;
}

tbody tr:last-child td {
  border-bottom: 0;
}

td a,
td .table-link {
  color: #0f2742;
  font-weight: 500;
  text-decoration: none;
}

td strong,
td:nth-child(2) {
  font-weight: 500;
}

.table-search-row {
  display: flex;
  gap: 6px;
  justify-content: flex-start;
  align-items: center;
  flex-wrap: nowrap;
  margin: 0 24px 10px;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.table-search-row input {
  width: min(260px, 100%);
  min-height: 32px;
  border-radius: 8px;
  background: #fff !important;
  border-color: #d8edf9;
  color: #0f2742;
}

.widget-table-tools {
  margin: 0 0 6px;
}

.widget-table-tools .small-icon-btn {
  width: 24px;
  min-width: 24px;
  min-height: 24px;
  padding: 0;
  font-size: 12px;
}

.table-filter-panel {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 12px;
  padding: 16px 22px;
  margin: -10px 24px 22px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #ffffff;
}

.table-filter-toggle.has-active-filter {
  color: #fff;
  border-color: #0ea5e9;
  background: #0ea5e9;
  box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.14);
}

.table-filter-toggle.open {
  color: #0284c7;
  border-color: #0ea5e9;
}

.json-box {
  margin: 0;
  padding: 12px;
  max-height: 280px;
  overflow: auto;
  direction: ltr;
  text-align: left;
  white-space: pre-wrap;
  background: #f7f9fd;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--text);
}

.error-text {
  color: var(--danger);
  background: #fff1f5;
  border: 1px solid #ffd0dc;
  border-radius: 8px;
  padding: 10px;
}

.readonly-fields input {
  background: #fff !important;
  color: var(--text);
}

.send-gift-btn {
  min-height: 38px;
  padding: 8px 14px;
  background: linear-gradient(135deg, var(--brand-2), var(--brand));
  color: #fff;
  box-shadow: 0 8px 18px rgba(67, 199, 214, 0.22);
  white-space: nowrap;
}

.send-gift-btn:hover {
  filter: brightness(1.04);
  transform: translateY(-1px);
}

.incentive-game-panel {
  display: grid;
  justify-items: center;
  gap: 16px;
}

.wheel {
  width: min(320px, 70vw);
  aspect-ratio: 1;
  border-radius: 50%;
  border: 10px solid #ffffff;
  color: #ffffff;
  background:
    conic-gradient(#143a73 0 12.5%, #38bdf8 0 25%, #f59e0b 0 37.5%, #2A8C52 0 50%, #be123c 0 62.5%, #5d82e6 0 75%, #3CB86C 0 87.5%, #9333ea 0 100%);
  box-shadow: 0 18px 50px rgba(20, 58, 115, 0.22);
  display: grid;
  place-items: center;
  font-size: 30px;
  font-weight: 500;
}

.wheel:hover {
  transform: rotate(12deg) scale(1.02);
}

.wheel-stage {
  position: relative;
  width: min(340px, 74vw);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
}

.wheel-stage .wheel {
  width: 100%;
}

.wheel-stage.is-spinning .wheel {
  animation: wheel-spin 12s cubic-bezier(0.12, 0.74, 0.18, 1);
}

.wheel-values {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.wheel-value {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 54px;
  transform: translate(-50%, -50%) rotate(var(--angle)) translateY(-118px) rotate(calc(-1 * var(--angle)));
  pointer-events: auto;
}

.wheel-value input {
  min-height: 24px;
  padding: 2px 4px;
  text-align: center;
  border-color: rgba(255, 255, 255, 0.85);
  background: rgba(255, 255, 255, 0.86) !important;
  font-size: 12px;
  font-weight: 500;
}

.wheel-pointer {
  position: absolute;
  top: -6px;
  width: 0;
  height: 0;
  border-inline: 12px solid transparent;
  border-top: 22px solid #0b1f33;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.22));
}

.wheel-result {
  position: absolute;
  inset: auto auto 12px auto;
  min-width: 150px;
  padding: 10px 18px;
  border-radius: 8px;
  text-align: center;
  background: #ffffff;
  color: #0b1f33;
  font-size: 28px;
  font-weight: 500;
  box-shadow: 0 18px 40px rgba(15, 39, 66, 0.22);
}

.fireworks {
  position: absolute;
  inset: -18px;
  pointer-events: none;
}

.fireworks i {
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #f59e0b;
  animation: firework-pop 1.2s ease-out both;
}

.fireworks i:nth-child(1) { top: 8%; left: 50%; background: #0ea5e9; }
.fireworks i:nth-child(2) { top: 22%; left: 12%; background: #ef476f; animation-delay: 0.08s; }
.fireworks i:nth-child(3) { top: 28%; right: 10%; background: #3CB86C; animation-delay: 0.16s; }
.fireworks i:nth-child(4) { bottom: 18%; left: 18%; background: #f59e0b; animation-delay: 0.24s; }
.fireworks i:nth-child(5) { bottom: 12%; right: 22%; background: #9333ea; animation-delay: 0.32s; }
.fireworks i:nth-child(6) { top: 52%; right: 2%; background: #38bdf8; animation-delay: 0.4s; }

.wheel-values-panel {
  display: none;
}

@keyframes wheel-spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(1440deg); }
}

@keyframes firework-pop {
  0% { transform: scale(0.2); opacity: 0; box-shadow: 0 0 0 0 currentColor; }
  45% { opacity: 1; }
  100% { transform: scale(1.4); opacity: 0; box-shadow: 0 0 0 18px transparent; }
}

body {
  background: #fbf8f2;
}

.main {
  background: #fbf8f2;
}

.panel {
  background: #ffffff;
  border: 1px solid #eadfcb;
  border-radius: 12px;
  box-shadow: 0 10px 28px rgba(94, 70, 38, 0.08);
}

.panel > .section-head,
.panel > h2,
.panel > h3 {
  margin-top: 18px;
}

table {
  background: #fffdfa;
  border-collapse: separate;
  border-spacing: 0;
}

th,
td {
  padding: 14px 18px;
  border-bottom: 1px solid #eadfcb;
}

th {
  background: #fbf8f2;
  color: #6a543a;
  font-size: 13px;
  font-weight: 500;
  border-bottom: 1px solid #ddcfb9;
}

td {
  background: #fffdfa;
  color: #2f241b;
  font-size: 14px;
}

tbody tr:nth-child(even) td {
  background: #fffdfa;
}

tbody tr:hover td {
  background: #fbf4e8;
}

td .badge,
.badge.ok {
  color: #2A8C52;
  background: rgba(60, 184, 108, 0.14);
  border-radius: 999px;
  padding: 4px 12px;
}

.table-search-row {
  margin: 0 18px 18px;
  padding: 18px 22px;
  gap: 14px;
  justify-content: flex-start;
  background: #ffffff;
  border: 1px solid #eadfcb;
  border-radius: 12px;
  box-shadow: 0 10px 24px rgba(94, 70, 38, 0.07);
}

.table-search-row input,
.table-search-row select {
  width: auto;
  min-width: 150px;
  min-height: 40px;
  border: 1px solid #eadfcb;
  background: #fffdfa !important;
  color: #2f241b;
}

.table-search-row input[type="search"] {
  min-width: 260px;
  margin-inline-start: auto;
}

.table-clear-btn {
  min-height: 40px;
  padding: 6px 18px;
  border: 1px solid #eadfcb;
  background: #fffdfa;
  color: #5f4b2a;
}

.table-result-count {
  color: #7b6a55;
  font-size: 13px;
  white-space: nowrap;
}

.widget-table-tools {
  padding: 0;
  margin: 0 0 6px;
  border: 0;
  box-shadow: none;
  background: transparent;
}

.dashboard-pro {
  display: grid;
  gap: 28px;
}

.view-dashboard > .topbar {
  display: none;
}

.dashboard-greeting {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid #eadfcb;
}

.dashboard-greeting h1 {
  margin-bottom: 8px;
  color: #321d12;
  font-size: 34px;
}

.dashboard-greeting p {
  color: #6f6256;
  font-size: 18px;
  margin-bottom: 8px;
}

.dashboard-greeting span {
  display: inline-flex;
  padding: 4px 12px;
  border-radius: 999px;
  background: #f0eadc;
  color: #7b643a;
}

.dashboard-user-chip {
  min-width: 190px;
  padding: 14px 18px;
  border-radius: 9px;
  background: #ffffff;
  box-shadow: 0 8px 22px rgba(94, 70, 38, 0.08);
}

.dashboard-user-chip small {
  display: block;
  color: #7b6a55;
}

.dashboard-kpis {
  display: grid;
  grid-template-columns: repeat(4, minmax(180px, 1fr));
  gap: 26px;
}

.dashboard-kpis article,
.dashboard-chart-card {
  position: relative;
  min-height: 172px;
  padding: 28px;
  background: #ffffff;
  border: 1px solid #eadfcb;
  border-radius: 12px;
  box-shadow: 0 10px 28px rgba(94, 70, 38, 0.08);
  overflow: hidden;
}

.dashboard-kpis article::after {
  content: "";
  position: absolute;
  inset-block: 0;
  inset-inline-end: 0;
  width: 5px;
  background: #b88708;
}

.dashboard-kpis article:nth-child(2)::after { background: #2A8C52; }
.dashboard-kpis article:nth-child(3)::after { background: #0b6db7; }
.dashboard-kpis article:nth-child(4)::after { background: #5b3a2e; }

.dashboard-kpis i {
  display: inline-grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 11px;
  margin-bottom: 20px;
  background: #efe6c9;
  font-style: normal;
  font-size: 24px;
}

.dashboard-kpis span,
.dashboard-kpis em {
  display: block;
  color: #6f6256;
  font-style: normal;
}

.dashboard-kpis strong {
  display: block;
  margin: 8px 0;
  color: #321d12;
  font-size: 32px;
}

.dashboard-analytics {
  display: grid;
  grid-template-columns: minmax(320px, 0.8fr) minmax(0, 1.6fr);
  gap: 26px;
}

.dashboard-chart-card h2 {
  color: #321d12;
}

.donut-chart {
  width: min(280px, 70vw);
  aspect-ratio: 1;
  margin: 18px auto;
  border-radius: 50%;
  background: conic-gradient(#bf8b06 0 28%, #d8b63a 0 52%, #9c7613 0 72%, #eadb9f 0 88%, #5b3a2e 0 100%);
  position: relative;
}

.donut-chart::after {
  content: "";
  position: absolute;
  inset: 28%;
  border-radius: 50%;
  background: #ffffff;
}

.chart-legend {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
  color: #6f6256;
}

.bar-chart {
  display: grid;
  gap: 12px;
  margin-top: 24px;
}

.bar-row {
  display: grid;
  grid-template-columns: minmax(160px, 220px) minmax(0, 1fr);
  gap: 16px;
  align-items: center;
}

.bar-row strong {
  position: relative;
  min-height: 24px;
  padding-inline-start: 8px;
  color: #7a5604;
  font-size: 12px;
}

.bar-row strong::before {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  top: 2px;
  width: var(--bar);
  max-width: 100%;
  height: 20px;
  border-radius: 4px;
  background: #bf8b06;
  z-index: 0;
}

.bar-row strong {
  isolation: isolate;
}

.bar-row strong::after {
  content: attr(style);
  display: none;
}

.dashboard-table-panel {
  margin-top: 8px;
}

.incentive-wheel-page {
  display: grid;
  place-items: center;
}

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

.dashboard-controlbar h2 {
  margin: 0;
}

.dashboard-controlbar label {
  max-width: 210px;
  margin: 0;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: minmax(360px, 1.15fr) minmax(320px, 0.85fr) minmax(320px, 1fr);
  gap: 12px;
  align-items: stretch;
}

.dashboard-grid .panel,
.dashboard-grid .dashboard-chart-card {
  min-height: 0;
  padding: 16px;
  border: 1px solid #dbe4ef;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 4px 14px rgba(31, 42, 68, 0.05);
}

.dashboard-wide-card {
  grid-column: span 2;
}

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

.metric-tile {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  min-height: 58px;
  padding: 8px;
  border: 1px solid #e6edf5;
  border-radius: 6px;
  background: #fbfdff;
}

.metric-tile i {
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 999px;
  color: #ffffff;
  font-style: normal;
  font-weight: 500;
  background: #ef476f;
}

.metric-tile span {
  color: #42526b;
  font-size: 12px;
  font-weight: 500;
}

.metric-tile.tone-1 i { background: #22b8cf; }
.metric-tile.tone-2 i { background: #f6c343; color: #3b2f00; }
.metric-tile.tone-3 i { background: #8b5cf6; }
.metric-tile.tone-4 i { background: #3CB86C; }
.metric-tile.tone-5 i { background: #fb923c; }
.metric-tile.tone-6 i { background: #38bdf8; color: #07364a; }

.manager-bar-chart {
  display: grid;
  gap: 9px;
}

.manager-bar-row {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  font-size: 12px;
  color: #42526b;
}

.manager-bar-row strong {
  position: relative;
  min-height: 24px;
  padding-inline-start: 8px;
  color: #111827;
  z-index: 0;
}

.manager-bar-row strong::before {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  top: 3px;
  width: var(--bar);
  height: 18px;
  border-radius: 4px;
  background: var(--tone);
  opacity: 0.88;
  z-index: -1;
}

.cashflow-cards {
  display: grid;
  gap: 10px;
}

.cashflow-cards span {
  display: grid;
  gap: 2px;
  padding: 11px 12px;
  border: 1px solid #e6edf5;
  border-radius: 6px;
  background: #fbfdff;
}

.cashflow-cards strong {
  color: #143a73;
  font-size: 22px;
}

.cashflow-cards em {
  color: #64748b;
  font-style: normal;
  font-size: 12px;
}

.month-compare-chart {
  display: grid;
  grid-template-columns: repeat(6, minmax(64px, 1fr));
  align-items: end;
  gap: 12px;
  min-height: 210px;
  padding-top: 12px;
}

.month-column {
  display: grid;
  grid-template-rows: 150px auto auto;
  align-items: end;
  justify-items: center;
  gap: 5px;
  color: #42526b;
  font-size: 12px;
}

.month-column b {
  display: block;
  width: 34px;
  border-radius: 6px 6px 0 0;
  background: var(--tone);
}

.month-column strong {
  color: #334155;
  font-size: 11px;
}

.manager-donut {
  background: conic-gradient(var(--segments)) !important;
}

.chart-legend b {
  display: inline-block;
  width: 9px;
  height: 9px;
  margin-inline-end: 5px;
  border-radius: 999px;
}

.dashboard-approval-card table,
.dashboard-table-panel table {
  font-size: 12px;
}

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

  .dashboard-wide-card {
    grid-column: auto;
  }
}

.incentive-wheel-page .incentive-game-panel {
  width: min(620px, 100%);
  display: grid;
  justify-items: center;
  padding: 28px;
}

.incentive-games-arena {
  display: grid;
  grid-template-columns: minmax(420px, 1.08fr) minmax(360px, 0.92fr);
  gap: 16px;
  align-items: stretch;
}

.million-race-card,
.prize-wheel-card {
  min-height: 620px;
  border: 1px solid #dbe4ef;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 8px 24px rgba(31, 42, 68, 0.08);
  overflow: hidden;
}

.incentive-game-head {
  display: grid;
  grid-template-columns: 40px 1fr auto;
  align-items: center;
  gap: 10px;
  min-height: 58px;
  padding: 10px 18px;
  border-bottom: 1px solid #edf2f7;
}

.incentive-game-head h2 {
  margin: 0;
  text-align: center;
  font-size: 18px;
}

.million-race-card {
  display: grid;
  grid-template-rows: auto auto 1fr auto;
  background: #101d27;
  color: #e8f2fa;
}

.million-race-card .incentive-game-head {
  border-bottom-color: rgba(255, 255, 255, 0.08);
}

.million-race-card .muted {
  color: #b6c5d1;
}

.race-progress-row {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  margin: 12px;
  padding: 10px 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  background: #172836;
}

.race-key {
  font-size: 20px;
}

.race-progress {
  display: block;
  height: 16px;
  border-radius: 999px;
  background: #243748;
  overflow: hidden;
}

.race-progress i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #ffe15a, #ff9f38, #ef4444);
}

.race-status {
  padding: 5px 10px;
  border-radius: 6px;
  background: #ef4444;
  color: #ffffff;
  font-size: 12px;
  font-weight: 700;
}

.race-lanes {
  display: grid;
  align-content: start;
  gap: 8px;
  padding: 0 14px;
}

.race-lane {
  position: relative;
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) 110px;
  align-items: center;
  min-height: 52px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 999px;
  background: #172b3a;
  overflow: hidden;
}

.race-lane::before {
  content: "";
  position: absolute;
  inset-inline-start: 38px;
  inset-block: 0;
  width: 2px;
  background: rgba(255, 255, 255, 0.16);
}

.race-add {
  position: relative;
  z-index: 2;
  width: 28px;
  height: 28px;
  margin-inline: 6px;
  border-radius: 999px;
  background: #3CB86C;
  color: #ffffff;
  font-weight: 800;
}

.race-runner {
  position: absolute;
  z-index: 1;
  top: 50%;
  transform: translateY(-50%);
  font-size: 20px;
}

.race-lane strong {
  grid-column: 3;
  position: relative;
  z-index: 2;
  padding-inline: 12px;
  text-align: center;
  color: #ffffff;
  font-size: 13px;
}

.race-empty {
  padding: 22px;
  text-align: center;
  color: #b6c5d1;
}

.race-prize-editor {
  width: min(310px, calc(100% - 28px));
  margin: 16px 14px;
  padding: 10px;
  border: 2px solid #f2cf33;
  border-radius: 8px;
  background: rgba(18, 44, 58, 0.95);
}

.race-prize-editor strong {
  display: block;
  margin-bottom: 6px;
  color: #f7d948;
  font-size: 13px;
}

.race-prize-editor textarea {
  min-height: 72px;
  resize: none;
  background: #ffffff !important;
  color: #102a43;
}

.race-prize-editor .primary {
  width: 100%;
  margin-top: 8px;
}

.prize-wheel-card {
  display: grid;
  justify-items: center;
  align-content: start;
  gap: 18px;
  padding-bottom: 28px;
}

.prize-wheel-card .incentive-game-head {
  width: 100%;
}

.prize-wheel-wrap {
  position: relative;
  display: grid;
  place-items: center;
  width: min(430px, 78vw);
  aspect-ratio: 1;
  margin-top: 40px;
}

html body .prize-wheel {
  position: relative;
  width: 100%;
  min-width: 0 !important;
  height: auto !important;
  min-height: 0 !important;
  aspect-ratio: 1;
  border: 9px solid #26323a;
  border-radius: 50%;
  background: conic-gradient(var(--wheel-gradient)) !important;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.18);
  display: block !important;
  overflow: hidden;
  padding: 0 !important;
  cursor: pointer;
  transform: rotate(var(--wheel-rotation, 0deg));
  transition: transform var(--wheel-spin-duration, 6200ms) cubic-bezier(0.08, 0.82, 0.16, 1);
  will-change: transform;
}

html body .prize-wheel::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, transparent calc(50% - 1px), rgba(255, 255, 255, 0.35) calc(50% - 1px) calc(50% + 1px), transparent calc(50% + 1px)),
    linear-gradient(30deg, transparent calc(50% - 1px), rgba(255, 255, 255, 0.26) calc(50% - 1px) calc(50% + 1px), transparent calc(50% + 1px)),
    linear-gradient(150deg, transparent calc(50% - 1px), rgba(255, 255, 255, 0.26) calc(50% - 1px) calc(50% + 1px), transparent calc(50% + 1px));
}

html body .prize-wheel i {
  position: absolute;
  inset: 50% auto auto 50%;
  width: 18px;
  height: 18px;
  border: 4px solid #ffffff;
  border-radius: 999px;
  background: #dff7ff;
  transform: translate(-50%, -50%);
}

html body .prize-wheel-wrap.is-spinning .prize-wheel,
html body .prize-wheel-wrap.is-spinning .prize-wheel-editors {
  transition-duration: var(--wheel-spin-duration, 6200ms);
}

.prize-wheel-pointer {
  position: absolute;
  z-index: 4;
  top: -6px;
  width: 0;
  height: 0;
  border-inline: 18px solid transparent;
  border-top: 42px solid #ef1026;
  filter: drop-shadow(0 2px 2px rgba(0, 0, 0, 0.22));
}

.prize-wheel-label {
  position: absolute;
  inset: 50% auto auto 50%;
  z-index: 2;
  width: 74px;
  color: #ffffff;
  font-size: 20px;
  font-weight: 800;
  text-align: center;
  transform: translate(-50%, -50%) rotate(var(--angle)) translateY(-145px) rotate(calc(-1 * var(--angle)));
}

.prize-wheel-editor {
  color: #ffffff;
  text-shadow: 0 2px 7px rgba(15, 23, 42, 0.55), 0 0 2px #ffffff;
}

.prize-wheel-label.is-winner {
  color: #102a43;
  text-shadow: 0 0 8px #fff2a8, 0 0 18px rgba(255, 214, 90, 0.95);
  animation: wheel-winner-pulse 1100ms ease-in-out infinite;
}

.prize-wheel-editors {
  position: absolute;
  inset: 0;
  z-index: 5;
  pointer-events: none;
  transform: rotate(var(--wheel-rotation, 0deg));
  transition: transform var(--wheel-spin-duration, 6200ms) cubic-bezier(0.08, 0.82, 0.16, 1);
  will-change: transform;
}

.prize-wheel-editor {
  position: absolute;
  inset: 50% auto auto 50%;
  width: 76px;
  height: 34px;
  display: grid;
  place-items: center;
  pointer-events: auto;
  transform: translate(-50%, -50%) rotate(var(--angle)) translateY(-145px) rotate(calc(-1 * var(--angle)));
}

.prize-wheel-editor input {
  width: 82px;
  min-width: 0;
  height: 38px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: inherit;
  font-size: 20px;
  font-weight: 800;
  text-align: center;
  box-shadow: none;
  outline: 0;
  padding: 0;
}

.prize-wheel-editor.is-winner input {
  color: #102a43;
  text-shadow: 0 0 8px #fff2a8, 0 0 18px rgba(255, 214, 90, 0.95);
  background: rgba(255, 247, 194, 0.16);
  border-radius: 999px;
  box-shadow: 0 0 24px rgba(255, 214, 90, 0.75);
  animation: wheel-winner-glow 1100ms ease-in-out infinite;
}

.prize-wheel-wrap.is-spinning .prize-wheel-editor {
  pointer-events: none;
}

html body .wheel-bonus-button {
  min-width: min(310px, 78vw);
  min-height: 54px;
  border-radius: 999px;
  background: #34c76f !important;
  color: #ffffff !important;
  box-shadow: inset 0 -5px 0 rgba(0, 0, 0, 0.12), 0 8px 18px rgba(52, 199, 111, 0.26);
  font-size: 22px;
  font-weight: 800;
}

.wheel-last-result {
  color: #102a43;
  font-size: 16px;
}

.wheel-confetti {
  position: absolute;
  inset: -40px;
  pointer-events: none;
}

.wheel-confetti i {
  position: absolute;
  width: 7px;
  height: 13px;
  border-radius: 3px;
  background: #3CB86C;
  transform: rotate(18deg);
  opacity: 0.8;
  animation: wheel-firework-pop 950ms ease-out infinite alternate;
}

.wheel-confetti i:nth-child(1) { top: 8%; left: 8%; background: #ef4b80; }
.wheel-confetti i:nth-child(2) { top: 18%; right: 8%; background: #ffd65a; transform: rotate(74deg); }
.wheel-confetti i:nth-child(3) { top: 36%; left: 3%; background: #3CB86C; transform: rotate(104deg); }
.wheel-confetti i:nth-child(4) { top: 42%; right: 2%; background: #9352e8; transform: rotate(22deg); }
.wheel-confetti i:nth-child(5) { bottom: 28%; left: 11%; background: #34c76f; transform: rotate(122deg); }
.wheel-confetti i:nth-child(6) { bottom: 24%; right: 12%; background: #fb9a3e; transform: rotate(46deg); }
.wheel-confetti i:nth-child(7) { top: 4%; left: 48%; background: #34c76f; transform: rotate(98deg); }
.wheel-confetti i:nth-child(8) { bottom: 6%; right: 44%; background: #ef4b80; transform: rotate(8deg); }
.wheel-confetti i:nth-child(9) { top: 0; right: 50%; background: #ffd65a; transform: rotate(138deg); }
.wheel-confetti i:nth-child(10) { bottom: 1%; left: 50%; background: #3CB86C; transform: rotate(58deg); }
.wheel-confetti i:nth-child(11) { top: 58%; left: -1%; background: #34c76f; transform: rotate(28deg); }
.wheel-confetti i:nth-child(12) { top: 60%; right: -1%; background: #ef4b80; transform: rotate(118deg); }

.wheel-values-form {
  display: grid;
  gap: 10px;
  width: min(430px, 78vw);
}

.wheel-values-form label {
  display: grid;
  gap: 6px;
  color: #334155;
  font-weight: 700;
}

.wheel-values-form textarea {
  min-height: 78px;
  resize: vertical;
}

@keyframes wheel-winner-pulse {
  0%, 100% { transform: translate(-50%, -50%) rotate(var(--angle)) translateY(-145px) rotate(calc(-1 * var(--angle))) scale(1); }
  50% { transform: translate(-50%, -50%) rotate(var(--angle)) translateY(-145px) rotate(calc(-1 * var(--angle))) scale(1.08); }
}

@keyframes wheel-winner-glow {
  0%, 100% { box-shadow: 0 0 0 5px rgba(255, 214, 90, 0.25), 0 0 20px rgba(255, 214, 90, 0.65); }
  50% { box-shadow: 0 0 0 8px rgba(255, 214, 90, 0.38), 0 0 36px rgba(255, 214, 90, 0.95); }
}

@keyframes wheel-firework-pop {
  from { opacity: 0.35; translate: 0 0; scale: 0.85; }
  to { opacity: 1; translate: 0 -8px; scale: 1.18; }
}

@media (max-width: 980px) {
  .incentive-games-arena {
    grid-template-columns: 1fr;
  }

  .million-race-card,
  .prize-wheel-card {
    min-height: auto;
  }
}

.data-grid-panel {
  background: var(--surface-card);
  border: 1px solid var(--grid-border);
  border-radius: var(--grid-radius);
  box-shadow: var(--grid-shadow);
  backdrop-filter: blur(18px);
}

.data-grid-panel .table-search-row {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 14px 16px;
  border: 0;
  border-bottom: 1px solid var(--grid-border);
  border-radius: var(--grid-radius) var(--grid-radius) 0 0;
  background: linear-gradient(180deg, rgba(255,255,255,0.92), rgba(249,250,251,0.84));
  box-shadow: none;
}

.view-chips {
  display: inline-flex;
  gap: 4px;
  padding: 3px;
  border: 1px solid var(--grid-border);
  border-radius: 999px;
  background: #fff;
}

.view-chips button {
  min-height: 28px;
  padding: 4px 10px;
  border-radius: 999px;
  background: transparent;
  color: var(--grid-muted);
  font-size: 12px;
}

.view-chips button.active {
  background: var(--grid-accent-soft);
  color: var(--grid-accent);
}

.data-grid-panel .table-search-row input,
.data-grid-panel .table-search-row select {
  min-height: 34px;
  border: 1px solid var(--grid-border);
  border-radius: 10px;
  background: #fff !important;
  color: var(--grid-text);
  box-shadow: 0 1px 0 rgba(15, 23, 42, 0.02);
  transition: border-color 0.16s var(--ease-out), box-shadow 0.16s var(--ease-out), background 0.16s var(--ease-out);
}

.data-grid-panel .table-search-row input:focus,
.data-grid-panel .table-search-row select:focus {
  outline: 0;
  border-color: rgba(109, 93, 252, 0.45);
  box-shadow: 0 0 0 4px rgba(109, 93, 252, 0.11);
}

.data-grid-panel .table-search-row input[type="search"] {
  min-width: min(330px, 34vw);
  margin-inline-start: auto;
}

.data-grid-panel .icon-btn,
.data-grid-panel .table-clear-btn,
.column-menu-trigger {
  min-height: 34px;
  border: 1px solid var(--grid-border);
  border-radius: 10px;
  background: #fff;
  color: var(--grid-text);
  transition: transform 0.14s var(--ease-out), background 0.14s var(--ease-out), border-color 0.14s var(--ease-out);
}

.data-grid-panel .icon-btn:hover,
.data-grid-panel .table-clear-btn:hover,
.column-menu-trigger:hover {
  transform: translateY(-1px);
  border-color: rgba(109, 93, 252, 0.24);
  background: #fafaff;
}

.column-menu {
  position: absolute;
  z-index: 20;
  inset-inline-start: 16px;
  top: calc(100% - 4px);
  min-width: 220px;
  display: grid;
  gap: 6px;
  padding: 10px;
  border: 1px solid var(--grid-border);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 24px 70px rgba(15, 23, 42, 0.16);
  backdrop-filter: blur(16px);
}

.column-menu[hidden] {
  display: none;
}

.column-menu label {
  display: flex;
  grid-template-columns: none;
  align-items: center;
  gap: 8px;
  padding: 7px 8px;
  border-radius: 8px;
  color: var(--grid-text);
}

.column-menu label:hover {
  background: var(--surface-muted);
}

.column-menu input {
  width: auto;
  min-height: auto;
}

.data-grid {
  table-layout: fixed;
  border-collapse: separate;
  border-spacing: 0;
  background: #fff;
}

.data-grid thead {
  position: sticky;
  top: 0;
  z-index: 5;
}

.data-grid th {
  position: sticky;
  top: 0;
  height: 44px;
  padding: 0 16px;
  background: #f1f8ed;
  color: #3CB86C;
  border-bottom: 1px solid #3CB86C;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0;
  white-space: nowrap;
  backdrop-filter: blur(14px);
}

.data-grid th.sortable-column {
  cursor: pointer;
  user-select: none;
}

.data-grid th.sortable-column::after {
  content: "ג†•";
  margin-inline-start: 6px;
  color: #3CB86C;
  font-size: 11px;
  transition: transform 0.18s var(--ease-out), color 0.18s var(--ease-out);
}

.data-grid th[data-sort-direction="asc"]::after {
  content: "ג†‘";
  color: #3CB86C;
}

.data-grid th[data-sort-direction="desc"]::after {
  content: "ג†“";
  color: #3CB86C;
}

.column-resizer {
  display: block;
  position: absolute;
  top: 0;
  bottom: 0;
  inset-inline-end: -9px;
  width: 18px;
  border-radius: 0;
  background: transparent;
  border: 0;
  color: transparent;
  cursor: col-resize;
  transform: none;
  z-index: 4;
  touch-action: none;
  box-shadow: none;
}

.column-resizer::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  inset-inline-end: 8px;
  width: 1px;
  border-radius: 0;
  background: #cbded5;
}

.data-grid th:hover .column-resizer::before,
.column-resizer:hover::before,
.data-grid th.resizing-column .column-resizer::before,
body.column-resize-active .column-resizer::before {
  background: #073746;
}

.data-grid th.resizing-column .column-resizer,
body.column-resize-active .column-resizer {
  background: rgba(7, 55, 70, 0.08);
}

body.column-resize-active,
body.column-resize-active * {
  cursor: col-resize !important;
  user-select: none !important;
}

.data-grid th.drag-over {
  box-shadow: inset 3px 0 0 var(--grid-accent);
}

.data-grid td {
  height: 56px;
  padding: 0 16px;
  border-bottom: 1px solid var(--grid-line);
  background: #fff;
  color: var(--grid-text);
  font-size: 13.5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: background 0.14s var(--ease-out), color 0.14s var(--ease-out);
}

.data-grid tbody tr:nth-child(even) td {
  background: rgba(249, 250, 251, 0.42);
}

.data-grid tbody tr:hover td {
  background: rgba(109, 93, 252, 0.055) !important;
}

.data-grid tbody tr.selected td,
.data-grid tbody tr:focus td {
  background: rgba(109, 93, 252, 0.09) !important;
  box-shadow: inset 0 1px 0 rgba(109, 93, 252, 0.1), inset 0 -1px 0 rgba(109, 93, 252, 0.1);
}

.data-grid th:first-child,
.data-grid td:first-child {
  position: sticky;
  inset-inline-start: 0;
  z-index: 4;
}

.data-grid th:first-child {
  z-index: 6;
}

.data-grid td:first-child {
  font-weight: 500;
}

.data-grid td:has(input),
.data-grid td:has(select),
.data-grid td.row-actions {
  overflow: visible;
}

.data-grid td:nth-child(n+3):has(> :not(button)) {
  font-variant-numeric: tabular-nums;
}

.data-grid .row-actions {
  width: 1%;
}

.data-grid .row-actions button,
.data-grid td .icon-link {
  opacity: 0.72;
  transition: opacity 0.14s var(--ease-out), transform 0.14s var(--ease-out);
}

.data-grid tr:hover .row-actions button,
.data-grid tr:hover td .icon-link {
  opacity: 1;
}

.subpanel,
.payment-section,
.receipt-section,
.widgets .panel {
  background: #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 14px;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.045);
}

.widgets .panel {
  padding: 14px;
  overflow: hidden;
}

.widgets .panel .table-search-row {
  margin-bottom: 8px;
}

[data-payment-location][hidden] {
  display: none !important;
}

[data-payment-amount-diff][hidden] {
  display: none !important;
}

.data-grid tbody:empty::after {
  content: "׳׳™׳ ׳ ׳×׳•׳ ׳™׳ ׳׳”׳¦׳’׳”";
  display: block;
  padding: 38px;
  color: var(--grid-muted);
}

@media (prefers-color-scheme: dark) {
  :root {
    --surface-page: #0b1020;
    --surface-card: rgba(17, 24, 39, 0.88);
    --surface-muted: #111827;
    --grid-border: rgba(255, 255, 255, 0.1);
    --grid-line: rgba(255, 255, 255, 0.07);
    --grid-text: #f9fafb;
    --grid-muted: #9ca3af;
    --grid-accent-soft: rgba(139, 125, 255, 0.16);
  }

  body,
  .main {
    background: var(--surface-page);
    color: var(--grid-text);
  }

  .data-grid-panel,
  .dashboard-kpis article,
  .dashboard-chart-card,
  .subpanel,
  .payment-section,
  .receipt-section,
  .widgets .panel {
    background: var(--surface-card);
    border-color: var(--grid-border);
  }

  .data-grid,
  .data-grid td,
  .data-grid th,
  .data-grid-panel .table-search-row,
  .data-grid-panel .table-search-row input,
  .data-grid-panel .table-search-row select,
  .column-menu {
    background: rgba(17, 24, 39, 0.94) !important;
    color: var(--grid-text);
  }
}

tr.selected,
tbody tr:hover {
  background: transparent;
}

tbody tr:hover td {
  background: #eaf8ff;
}

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

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

.donor-entry-form {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

.donor-form-section {
  margin-top: 0;
}

.donor-form-section h3 {
  margin-bottom: 12px;
}

.donor-form-grid {
  grid-template-columns: repeat(4, minmax(180px, 1fr));
}

.donor-card-summary {
  align-self: start;
}

.donor-memorials-section {
  border: 1px solid #dfe8f5;
  border-radius: 18px;
  padding: 18px 18px 16px;
  background: #ffffff;
  box-shadow: 0 18px 44px rgba(15, 39, 66, 0.06);
}

.donor-memorial-list {
  display: grid;
  gap: 10px;
}

.donor-memorial-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(150px, 1fr)) auto;
  gap: 10px;
  align-items: end;
  padding: 10px;
  border: 1px solid #d8edf9;
  border-radius: 8px;
  background: #fff;
}

.memorial-remove-btn {
  min-width: 74px;
  margin-bottom: 18px;
}

.donor-detail-screen {
  grid-template-columns: 1fr !important;
  width: 100%;
  gap: 18px;
}

.donor-detail-form {
  grid-column: 1 / -1 !important;
  display: grid;
  width: 100%;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 20px;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.donor-detail-live-header {
  display: grid;
  grid-column: 1 / -1;
  gap: 4px;
  padding: 18px 20px;
  border: 1px solid #d8e8f7;
  border-radius: 18px;
  background: linear-gradient(135deg, #ffffff 0%, #f4fbff 100%);
  box-shadow: 0 18px 44px rgba(15, 39, 66, 0.06);
}

.donor-detail-live-header span {
  color: #6b7a90;
  font-size: 12px;
  font-weight: 500;
}

.donor-detail-live-header strong {
  color: #102a43;
  font-size: 24px;
  font-weight: 500;
  line-height: 1.2;
}

.donor-detail-live-header em {
  color: #52708f;
  font-size: 13px;
  font-style: normal;
  font-weight: 500;
}

.donor-detail-card {
  position: relative;
  grid-column: span 6;
  width: 100%;
  overflow: visible;
  padding: 20px;
  border: 1px solid #dfe8f5;
  border-radius: 14px;
  background: #ffffff;
  box-shadow: 0 12px 28px rgba(15, 39, 66, 0.045);
}

.donor-detail-card-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.donor-detail-full,
.donor-memorials-section,
.linked-journals-panel,
.donor-detail-save-btn {
  grid-column: 1 / -1;
}

.donor-detail-section-address {
  grid-column: span 6;
}

.donor-detail-section-address .donor-detail-card-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.donor-detail-section-address label:has([name="street"]) {
  grid-column: span 2;
}

.donor-detail-section-address label:has([name="zip"]) {
  grid-column: span 2;
}

.donor-memorial-row {
  grid-template-columns: repeat(4, minmax(150px, 1fr));
}

.donor-detail-form .widget-head,
.donor-memorials-section .section-head {
  margin: 0 0 14px;
  padding: 0;
}

.donor-detail-form .widget-head h3,
.donor-memorials-section h3 {
  margin: 0;
  color: #0f3f4a;
  font-size: 16px;
  line-height: 22px;
  font-weight: 600;
}

.donor-detail-save-btn {
  width: 100%;
  min-height: 52px;
  margin-top: 2px;
}

.required-field-label input,
.required-field-label select,
.required-field-label textarea {
  border-color: #9cc8e8;
}

.linked-journal-picker {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto;
  gap: 10px;
  align-items: end;
  margin: 0 0 12px;
  padding: 12px;
  border: 1px solid #dfe8f5;
  border-radius: 12px;
  background: #f8fcff;
}

.linked-journals-panel {
  margin: 0;
}

.linked-journal-picker[hidden] {
  display: none !important;
}

.linked-journal-picker button {
  min-height: 48px;
}

.import-mapping-panel {
  display: grid;
  gap: 12px;
}

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

.import-field-map {
  display: grid;
  gap: 8px;
}

.import-help-text {
  margin: 0;
  line-height: 1.6;
}

.import-map-row {
  align-items: center;
  display: grid;
  gap: 10px;
  grid-template-columns: minmax(150px, 0.85fr) minmax(220px, 1.15fr);
  padding: 0;
}

.import-map-field {
  color: var(--text);
  font-size: 13px;
  font-weight: 700;
}

.import-map-row select {
  min-height: 38px;
}

.import-map-row .managed-select,
.import-mapping-panel .managed-select {
  display: none !important;
}

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

.import-advanced-toggle {
  align-items: center;
  display: flex;
  flex-direction: row;
  gap: 8px;
  justify-content: flex-start;
  padding: 0;
}

.import-advanced-toggle input {
  margin: 0;
}

@media (max-width: 720px) {
  .import-map-row {
    grid-template-columns: 1fr;
  }
}

.donor-detail-screen .donor-widgets {
  grid-column: 1 / -1 !important;
  grid-row: auto !important;
  width: 100%;
}

.donor-detail-screen .donor-widgets .widget-card {
  width: 100%;
}

label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 12.5px;
}

.field-hint {
  color: #5d7085;
  font-size: 11.5px;
  line-height: 1.35;
}

.address-autocomplete-label {
  position: relative;
  overflow: visible;
  z-index: 100;
}

.address-suggestion-menu {
  background: #ffffff;
  border: 1px solid #cfe7f4;
  border-radius: 8px;
  box-shadow: 0 14px 32px rgba(15, 39, 66, 0.16);
  display: grid;
  gap: 2px;
  inset-inline-start: 0;
  left: 0;
  max-height: 250px;
  overflow-y: auto;
  padding: 5px;
  position: absolute;
  right: 0;
  top: calc(100% + 4px);
  width: 100%;
  z-index: 10000;
}

.address-suggestion-menu[hidden] {
  display: none;
}

.address-suggestion-menu button {
  background: transparent;
  border-radius: 6px;
  color: #0f2742;
  justify-content: flex-start;
  min-height: 32px;
  padding: 7px 9px;
  text-align: start;
  width: 100%;
}

.address-suggestion-menu button:hover,
.address-suggestion-menu button:focus-visible {
  background: #edf8fc;
  filter: none;
}

.address-suggestion-status {
  color: #5d7085;
  font-size: 13px;
  font-weight: 700;
  padding: 10px 12px;
  text-align: start;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid #d8edf9;
  border-radius: 8px;
  padding: 10px 13px;
  background: #fff !important;
  color: #0f2742;
  min-height: 40px;
}

input.invalid,
select.invalid,
textarea.invalid {
  border-color: var(--danger);
  box-shadow: 0 0 0 3px rgba(239, 71, 111, 0.14);
  background: #fff7fb;
}

.tone-field {
  border-width: 1px;
  font-weight: 500;
}

.tone-field[data-tone="׳₪׳¢׳™׳׳”"],
.tone-field[data-tone="׳”׳•׳¨׳׳× ׳§׳‘׳¢"] {
  background: #e7f9fb;
  border-color: var(--brand-2);
  color: #1593a5;
}

.tone-field[data-tone="׳׳•׳§׳₪׳׳×"] {
  background: #f2efff;
  border-color: var(--purple);
  color: #6845ad;
}

.tone-field[data-tone="׳¡׳™׳¨׳•׳‘"],
.tone-field[data-tone="׳‘׳•׳˜׳׳”"] {
  background: #fff0f5;
  border-color: var(--danger);
  color: #c72d5b;
}

.tone-field[data-tone="׳”׳¡׳×׳™׳™׳׳”"],
.tone-field[data-tone="׳—׳“ ׳₪׳¢׳׳™"] {
  background: #fff8dc;
  border-color: var(--yellow);
  color: #8a6814;
}

.highlight-field {
  border-width: 1px;
  font-weight: 500;
}

.highlight-date {
  background: #eef4ff;
  border-color: var(--brand);
  color: #3e64ca;
}

.highlight-payment {
  background: #f2efff;
  border-color: var(--purple);
  color: #6845ad;
}

textarea {
  resize: vertical;
}

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

.operator-layout {
  display: grid;
  grid-template-columns: 340px minmax(0, 1fr);
  gap: 18px;
}

.queue {
  align-self: start;
  position: sticky;
  top: 18px;
}

.queue button {
  color: var(--text);
  border-color: var(--line);
  display: grid;
  gap: 4px;
  text-align: right;
  margin-bottom: 8px;
}

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

.operator-tabs {
  display: grid;
  gap: 8px;
  margin: 12px 0 14px;
}

.operator-tabs button {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  min-height: 44px;
  padding: 8px 10px;
  border-radius: 12px;
  background: #f8fbff;
}

.operator-tabs button.active {
  background: #dbeafe;
  border-color: #bfdbfe;
  color: #0f2d58;
}

.operator-tabs button span,
.operator-page-meta span {
  color: var(--text);
  font-weight: 500;
}

.operator-tabs button strong {
  min-width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: #ffffff;
  color: #175cd3;
  font-size: 12px;
}

.operator-page-meta,
.operator-pager {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 12px;
}

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

.operator-record-list button {
  padding: 10px;
  border-radius: 12px;
  background: #ffffff;
}

.operator-record-list button.active {
  background: #eef6ff;
  border-color: #bfdbfe;
}

.operator-record-list button small {
  color: var(--muted);
}

.operator-table-pager {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 14px 0 4px;
  color: var(--muted);
  font-size: 13px;
}

.operator-nav-primary {
  width: 100%;
}

.operator-nav-primary .nav-category {
  min-width: 190px;
}

.compact-empty,
.operator-empty-state {
  padding: 18px;
  color: var(--muted);
}

.donor-hero {
  grid-column: 1 / -1;
  padding: 20px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  margin-bottom: 18px;
  border-right: 4px solid var(--brand);
}

.donor-hero h2 {
  font-size: 20px;
  margin-bottom: 8px;
}

.donor-hero p,
.donor-hero small {
  color: var(--muted);
}

.donation-snapshot {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.donation-snapshot span {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 7px 10px;
  color: var(--muted);
}

.donation-snapshot strong {
  display: block;
  color: var(--text);
  font-size: 12px;
  margin-bottom: 2px;
}

.call-screen {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 38vw);
  gap: 18px;
  align-items: start;
}

.record-form {
  grid-column: 1;
}

.heat-field input[type="range"] {
  width: 100%;
  accent-color: #143a73;
  background: linear-gradient(90deg, #d7193f, #f59e0b, #38bdf8, #143a73);
  border-radius: 999px;
  height: 10px;
  appearance: none;
}

.heat-field input[type="range"]::-webkit-slider-runnable-track {
  height: 10px;
  border-radius: 999px;
  background: linear-gradient(90deg, #d7193f, #f59e0b, #38bdf8, #143a73);
}

.heat-field input[type="range"]::-webkit-slider-thumb {
  appearance: none;
  width: 18px;
  height: 18px;
  margin-top: -4px;
  border: 2px solid white;
  border-radius: 50%;
  background: #0f172a;
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.28);
}

.heat-field > span {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--muted);
  font-size: 12px;
}

.heat-field > span strong {
  color: #0f2742;
  font-size: 13px;
}

.donation-fields {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  padding: 14px;
  background: #fbfdff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.subpanel,
.payment-section,
.receipt-section {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fcff;
  padding: 14px;
  margin-top: 4px;
}

.payment-section,
.receipt-section {
  margin-top: 14px;
}

.subpanel[hidden],
.payment-section[hidden],
[data-standing-order-only][hidden],
[data-recurring-date-field][hidden],
[data-immediate-charge][hidden],
[data-next-charge-row][hidden],
[data-show-for-commitment-status][hidden],
[data-journal-donation-only][hidden],
[data-immediate-reason][hidden],
[data-receipt-send][hidden],
[data-receipt-email][hidden],
[data-receipt-mail][hidden] {
  display: none !important;
}

.receipt-section {
  background: #f8fbff;
  border-color: #d9e7fb;
}

.checkbox-line {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  color: var(--text);
}

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

.widgets {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  margin-top: 0;
  grid-column: 2;
  grid-row: 2;
}

.widgets .panel {
  box-shadow: none;
  overflow-x: auto;
}

.widget-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
  direction: rtl;
}

.widget-head h3 {
  margin: 0;
  order: 1;
}

.widget-plus-btn {
  order: 2;
  width: 28px !important;
  height: 28px !important;
  min-height: 28px !important;
  padding: 0 !important;
  border-radius: 50% !important;
  display: inline-grid !important;
  place-items: center !important;
  font-size: 18px !important;
  font-weight: 500 !important;
  line-height: 1 !important;
}

.linked-journals {
  margin-top: 14px;
  max-width: 520px;
}

.linked-journals select {
  min-height: 92px;
}

.widget-table {
  font-size: 13px;
}

.widget-table th,
.widget-table td {
  padding: 8px 6px;
}

.widgets p,
.timeline p {
  border-bottom: 1px solid var(--line);
  padding-bottom: 10px;
  color: var(--muted);
}

.journal {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  margin-bottom: 12px;
  display: grid;
  gap: 10px;
}

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

.filter-summary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 8px;
}

.filter-summary span {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px 10px;
  background: #fbfdff;
}

.filter-summary strong {
  display: block;
  color: var(--text);
  font-size: 0.82rem;
  margin-bottom: 2px;
}

.employee-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(520px, 1fr));
  gap: 18px;
  margin: 18px 0;
}

.employee-card {
  align-self: start;
}

.file-hint {
  margin: -6px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.empty {
  background: #fbfdff;
  border: 1px dashed var(--line);
  border-radius: 8px;
  padding: 34px;
  color: var(--muted);
  text-align: center;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 50;
  background: rgba(37, 48, 74, 0.42);
  padding: 28px;
  display: grid;
  place-items: center;
}

.modal-backdrop-nested {
  z-index: 2147483000 !important;
  background: rgba(37, 48, 74, 0.28) !important;
}

.modal-panel.modal-nested {
  width: min(560px, calc(100vw - 32px)) !important;
}

.modal-panel {
  width: min(760px, calc(100vw - 32px));
  max-height: calc(100vh - 44px);
  overflow: hidden;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 24px 72px rgba(57, 79, 130, 0.22);
}

.modal-panel.modal-compact {
  width: min(440px, calc(100vw - 32px));
}

.modal-panel.modal-medium {
  width: min(720px, calc(100vw - 32px));
}

.modal-panel.modal-wide {
  width: min(1280px, calc(100vw - 32px));
}

.modal-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  background: white;
  border-bottom: 1px solid var(--line);
}

.modal-head h2 {
  margin: 0;
}

.modal-body {
  overflow: auto;
  padding: 14px;
}

.modal-body .call-screen,
.modal-body .detail-grid {
  max-width: none;
}

.detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(320px, 0.5fr);
  gap: 18px;
}

@media (max-width: 1100px) {
  .app-header {
    position: static;
    flex-wrap: wrap;
    align-items: stretch;
  }

  .system-nav {
    position: sticky;
    top: 0;
    padding-inline: 16px;
  }

  .app-header .brand,
  .app-header .user-picker {
    min-width: 0;
    width: 100%;
  }

  .stats,
  .grid,
  .grid.two,
  .employee-grid,
  .operator-layout,
  .call-screen,
  .widgets {
    grid-template-columns: 1fr;
  }

  .widgets,
  .record-form,
  .donor-hero {
    grid-column: auto;
    grid-row: auto;
  }

  .donation-fields {
    grid-template-columns: 1fr;
  }

  .topbar,
  .donor-hero {
    align-items: stretch;
    flex-direction: column;
  }

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

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

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

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

@media (max-width: 680px) {
  .main,
  .app-header {
    padding: 16px;
  }

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

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

  .donor-detail-form {
    grid-template-columns: 1fr;
  }

  .donor-detail-card-grid {
    grid-template-columns: 1fr;
  }

  .linked-journal-picker {
    grid-template-columns: 1fr;
  }

  .donor-memorial-row {
    grid-template-columns: 1fr;
  }

  .memorial-remove-btn {
    width: 100%;
  }

  table {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
  }
}

/* Final SaaS grid and surface overrides */
.subpanel,
.payment-section,
.receipt-section,
.widgets .panel {
  background: #ffffff !important;
  border: 1px solid rgba(15, 23, 42, 0.08) !important;
  border-radius: 14px !important;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.045) !important;
}

.widgets .panel {
  padding: 14px !important;
  overflow: hidden !important;
}

.data-grid-panel .data-grid tbody tr:hover td {
  background: rgba(109, 93, 252, 0.055) !important;
}

.data-grid-panel .data-grid tbody tr.selected td,
.data-grid-panel .data-grid tbody tr:focus td {
  background: rgba(109, 93, 252, 0.09) !important;
}

/* Premium CRM redesign layer */
:root {
  --crm-bg: #f6f7fb;
  --crm-ink: #111827;
  --crm-muted: #6b7280;
  --crm-indigo: #5b5cf6;
  --crm-indigo-2: #7c3aed;
  --crm-success: #3CB86C;
  --crm-warning: #d97706;
  --crm-danger: #e11d48;
  --crm-cyan: #0891b2;
  --crm-card: rgba(255,255,255,0.88);
  --crm-border: rgba(17,24,39,0.08);
  --crm-shadow: 0 24px 70px rgba(17,24,39,0.11);
}

body,
.main {
  background:
    radial-gradient(circle at 18% 12%, rgba(91, 92, 246, 0.12), transparent 28vw),
    radial-gradient(circle at 82% 18%, rgba(8, 145, 178, 0.10), transparent 24vw),
    linear-gradient(180deg, #fafbff 0%, var(--crm-bg) 42%, #f8fafc 100%) !important;
  color: var(--crm-ink);
}

.app-header,
.system-nav {
  background: rgba(255,255,255,0.78) !important;
  backdrop-filter: blur(22px);
  border-color: var(--crm-border) !important;
}

.page-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 22px;
  margin-bottom: 28px;
  padding: 28px;
  border: 1px solid rgba(255,255,255,0.72);
  border-radius: 28px;
  background:
    linear-gradient(135deg, rgba(255,255,255,0.94), rgba(255,255,255,0.72)),
    linear-gradient(135deg, rgba(91,92,246,0.16), rgba(8,145,178,0.08));
  box-shadow: var(--crm-shadow);
  overflow: hidden;
}

.page-hero::before {
  content: "";
  position: absolute;
  inset-inline-end: -70px;
  top: -120px;
  width: 360px;
  height: 360px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(91,92,246,0.22), rgba(8,145,178,0.12));
  filter: blur(10px);
}

.hero-copy,
.hero-actions,
.hero-kpis {
  position: relative;
  z-index: 1;
}

.hero-eyebrow {
  display: inline-flex;
  margin-bottom: 8px;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(91,92,246,0.1);
  color: var(--crm-indigo);
  font-size: 12px;
  font-weight: 500;
}

.page-hero h1 {
  margin: 0 0 8px;
  color: #0f172a;
  font-size: 38px;
  line-height: 1.05;
  font-weight: 500;
}

.page-hero p {
  max-width: 720px;
  margin: 0;
  color: var(--crm-muted);
  font-size: 16px;
}

.hero-actions {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.hero-actions button,
button.primary,
.primary {
  min-height: 38px;
  padding: 8px 15px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--crm-indigo), var(--crm-indigo-2));
  box-shadow: 0 12px 30px rgba(91, 92, 246, 0.24);
  font-weight: 500;
}

.hero-actions .ghost,
.ghost {
  border: 1px solid var(--crm-border);
  background: rgba(255,255,255,0.82);
  color: var(--crm-ink);
}

.hero-kpis {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(5, minmax(150px, 1fr));
  gap: 14px;
  margin-top: 8px;
}

.hero-kpi {
  padding: 16px;
  border: 1px solid var(--crm-border);
  border-radius: 18px;
  background: rgba(255,255,255,0.8);
  box-shadow: 0 12px 34px rgba(17,24,39,0.07);
}

.hero-kpi div {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--crm-muted);
  font-size: 12px;
  font-weight: 500;
}

.hero-kpi i {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 10px;
  color: #fff;
  background: var(--crm-indigo);
  font-style: normal;
}

.hero-kpi strong {
  display: block;
  margin: 12px 0 10px;
  color: var(--crm-ink);
  font-size: 24px;
  font-weight: 500;
}

.hero-kpi em {
  display: block;
  height: 6px;
  border-radius: 999px;
  background: rgba(17,24,39,0.07);
  overflow: hidden;
}

.hero-kpi em b {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--crm-indigo);
}

.tone-success i, .tone-success em b { background: var(--crm-success); }
.tone-warning i, .tone-warning em b { background: var(--crm-warning); }
.tone-cyan i, .tone-cyan em b { background: var(--crm-cyan); }
.tone-rose i, .tone-rose em b { background: var(--crm-danger); }

.view-dashboard > .topbar {
  display: grid !important;
}

.data-grid-panel {
  border-radius: 22px !important;
  background: rgba(255,255,255,0.86) !important;
  box-shadow: 0 24px 70px rgba(17,24,39,0.10) !important;
  border: 1px solid rgba(255,255,255,0.76) !important;
  overflow: hidden;
}

.data-grid-panel .table-search-row {
  min-height: 76px;
  padding: 18px 20px !important;
  background: linear-gradient(180deg, rgba(255,255,255,0.94), rgba(248,250,252,0.86)) !important;
}

.data-grid th {
  height: 52px !important;
  padding-inline: 20px !important;
  background: rgba(248,250,252,0.92) !important;
  color: #64748b !important;
  text-transform: none;
  font-size: 12px !important;
}

.data-grid td {
  height: 72px !important;
  padding-inline: 20px !important;
  color: #111827 !important;
  font-size: 14px !important;
}

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

.avatar {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(91,92,246,0.16), rgba(8,145,178,0.14));
  color: var(--crm-indigo);
  font-size: 12px;
  font-weight: 500;
}

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

.entity-copy strong,
.entity-copy small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
}

.entity-copy strong {
  color: #0f172a;
  font-size: 14px;
}

.entity-copy small {
  color: #94a3b8;
  font-size: 11px;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 500;
}

.status-badge.success {
  color: #3CB86C;
  background: #eef7e9;
}

.status-badge.warning {
  color: #b54708;
  background: #fef0c7;
}

.status-badge.danger {
  color: #c01048;
  background: #ffe4e8;
}

.status-badge.info {
  color: #175cd3;
  background: #dbeafe;
}

.status-badge.purple {
  color: #6941c6;
  background: #ebe9fe;
}

.status-badge.neutral {
  color: #475467;
  background: #eef2f6;
}

.numeric-cell {
  color: #2A8C52 !important;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}

.actions-dots {
  width: 32px;
  min-width: 32px;
  height: 32px;
  border-radius: 10px;
  font-size: 18px;
}

input,
select,
textarea {
  border-radius: 12px !important;
  border-color: rgba(17,24,39,0.12) !important;
  min-height: 44px;
  transition: box-shadow .16s var(--ease-out), border-color .16s var(--ease-out), transform .16s var(--ease-out);
}

input:focus,
select:focus,
textarea:focus {
  outline: 0;
  border-color: rgba(91,92,246,0.55) !important;
  box-shadow: 0 0 0 4px rgba(91,92,246,0.13);
}

.modal-backdrop {
  background: rgba(15,23,42,0.48) !important;
  backdrop-filter: blur(10px);
}

.modal-panel {
  border-radius: 26px !important;
  background: #f8fafc !important;
  border: 1px solid rgba(255,255,255,0.72) !important;
  box-shadow: 0 40px 120px rgba(15,23,42,0.34) !important;
}

.modal-head {
  position: sticky;
  top: 0;
  z-index: 5;
  padding: 18px 22px !important;
  background: rgba(255,255,255,0.86) !important;
  backdrop-filter: blur(18px);
}

.modal-head span {
  color: var(--crm-indigo);
  font-size: 12px;
  font-weight: 500;
}

.modal-head h2 {
  margin: 2px 0 0 !important;
  font-size: 22px;
  color: #0f172a;
}

.modal-body {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 18px;
  padding: 18px !important;
}

.modal-panel.modal-compact .modal-body,
.modal-panel.modal-medium .modal-body {
  grid-template-columns: 1fr;
}

.modal-summary {
  position: sticky;
  top: 86px;
  align-self: start;
  display: grid;
  gap: 10px;
  min-height: 220px;
  padding: 18px;
  border-radius: 20px;
  background: linear-gradient(160deg, #111827, #312e81);
  color: #fff;
  box-shadow: 0 22px 60px rgba(49,46,129,0.28);
}

.modal-summary strong {
  font-size: 18px;
}

.modal-summary span,
.modal-summary em {
  color: rgba(255,255,255,0.74);
  font-style: normal;
}

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

.modal-content .subpanel,
.modal-content .payment-section,
.modal-content .receipt-section,
.donor-hero {
  padding: 20px !important;
  border-radius: 20px !important;
  background: #fff !important;
  border: 1px solid rgba(17,24,39,0.08) !important;
  box-shadow: 0 16px 48px rgba(17,24,39,0.07) !important;
}

.subpanel h3,
.payment-section h3,
.receipt-section h3 {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #0f172a;
  font-size: 15px;
  font-weight: 500;
}

.subpanel h3::before,
.payment-section h3::before,
.receipt-section h3::before {
  content: "";
  width: 8px;
  height: 24px;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--crm-indigo), var(--crm-cyan));
}

.heat-field input[type="range"] {
  height: 12px;
  background: linear-gradient(90deg, var(--crm-danger), var(--crm-warning), var(--crm-cyan), var(--crm-indigo)) !important;
}

@media (max-width: 1100px) {
  .page-hero,
  .modal-body {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 720px) {
  .hero-kpis {
    grid-template-columns: 1fr;
  }

  .page-hero h1 {
    font-size: 30px;
  }
}

/* Quiet luxury SaaS reset */
:root {
  --quiet-bg: #fbfbfc;
  --quiet-surface: #ffffff;
  --quiet-surface-2: #f6f7f9;
  --quiet-text: #111114;
  --quiet-muted: #71717a;
  --quiet-line: rgba(17, 17, 20, 0.08);
  --quiet-accent: #4f46e5;
  --quiet-shadow: 0 1px 2px rgba(17, 17, 20, 0.04), 0 12px 32px rgba(17, 17, 20, 0.06);
}

body,
.main {
  background: var(--quiet-bg) !important;
  color: var(--quiet-text) !important;
}

.app-header {
  min-height: 48px;
  padding: 8px 32px !important;
  background: rgba(251, 251, 252, 0.86) !important;
  border-bottom: 0 !important;
  box-shadow: none !important;
}

.brand {
  gap: 9px;
}

.brand-mark {
  width: 28px !important;
  height: 28px !important;
  border-radius: 8px !important;
  background: #111114 !important;
  color: #fff !important;
  font-size: 11px !important;
}

.brand strong {
  font-size: 13px;
  letter-spacing: 0;
}

.brand small {
  margin-top: 0 !important;
  color: var(--quiet-muted) !important;
  font-size: 11px;
}

.user-picker {
  color: var(--quiet-muted) !important;
  font-size: 11px !important;
}

.user-picker select {
  min-height: 30px !important;
  border: 0 !important;
  background: transparent !important;
  color: var(--quiet-text);
  padding: 2px 4px !important;
}

.system-nav {
  top: 48px !important;
  padding: 0 32px 10px !important;
  gap: 0 !important;
  background: rgba(251, 251, 252, 0.86) !important;
  border-bottom: 1px solid var(--quiet-line) !important;
  box-shadow: none !important;
  backdrop-filter: blur(18px);
}

.nav-primary,
.nav-secondary {
  justify-content: flex-start !important;
  gap: 24px !important;
  min-height: 34px !important;
}

.nav-category,
.nav-item {
  min-height: 30px !important;
  padding: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  color: var(--quiet-muted) !important;
  font-size: 13px !important;
  font-weight: 560 !important;
  letter-spacing: 0 !important;
}

.nav-category:hover,
.nav-item:hover {
  background: transparent !important;
  color: var(--quiet-text) !important;
}

.nav-category.active,
.nav-item.active,
.system-nav .nav-category.active,
.system-nav .nav-item.active {
  position: relative;
  background: transparent !important;
  color: var(--quiet-text) !important;
  font-weight: 500 !important;
}

.nav-category.active::after,
.nav-item.active::after {
  content: "" !important;
  position: absolute;
  inset-inline: 0;
  bottom: -8px;
  height: 1px;
  border-radius: 999px;
  background: var(--quiet-accent);
}

.main {
  padding: 34px 40px !important;
}

.page-hero.quiet-hero {
  display: flex !important;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin: 0 0 22px !important;
  padding: 0 0 22px !important;
  border: 0 !important;
  border-bottom: 1px solid var(--quiet-line) !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  overflow: visible !important;
}

.page-hero.quiet-hero::before {
  content: none !important;
}

.quiet-hero .hero-copy h1 {
  margin: 0 0 6px !important;
  color: var(--quiet-text) !important;
  font-size: 28px !important;
  line-height: 1.15 !important;
  font-weight: 500 !important;
  letter-spacing: -0.01em;
}

.quiet-hero .hero-copy p {
  margin: 0 !important;
  color: var(--quiet-muted) !important;
  font-size: 13px !important;
}

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

button,
.dial,
.primary,
button.primary,
.ghost {
  min-height: 32px !important;
  padding: 6px 11px !important;
  border-radius: 8px !important;
  box-shadow: none !important;
  font-size: 13px !important;
  font-weight: 570 !important;
  transition: background .14s ease, color .14s ease, border-color .14s ease, transform .14s ease;
}

.primary,
button.primary {
  background: #111114 !important;
  color: #fff !important;
}

.ghost {
  background: transparent !important;
  color: var(--quiet-text) !important;
  border: 1px solid var(--quiet-line) !important;
}

button:hover,
.dial:hover {
  filter: none !important;
  transform: translateY(-1px);
}

.panel,
.data-grid-panel,
.dashboard-kpis article,
.dashboard-chart-card {
  border: 1px solid var(--quiet-line) !important;
  border-radius: 14px !important;
  background: var(--quiet-surface) !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
}

.quiet-dashboard-table {
  min-height: 58vh;
}

.data-grid-panel .table-search-row {
  min-height: 58px !important;
  padding: 12px 14px !important;
  border-bottom: 1px solid var(--quiet-line) !important;
  background: var(--quiet-surface) !important;
  border-radius: 14px 14px 0 0 !important;
}

.view-chips {
  gap: 2px !important;
  padding: 2px !important;
  border-color: var(--quiet-line) !important;
  background: var(--quiet-surface-2) !important;
}

.view-chips button {
  min-height: 26px !important;
  padding: 3px 9px !important;
  color: var(--quiet-muted) !important;
  font-size: 12px !important;
}

.view-chips button.active {
  background: var(--quiet-surface) !important;
  color: var(--quiet-text) !important;
  box-shadow: 0 1px 2px rgba(17,17,20,0.06) !important;
}

.data-grid-panel .table-search-row input,
.data-grid-panel .table-search-row select {
  min-height: 32px !important;
  border-radius: 8px !important;
  border-color: var(--quiet-line) !important;
  background: var(--quiet-surface) !important;
  color: var(--quiet-text) !important;
}

.data-grid-panel .table-search-row input[type="search"] {
  min-width: 260px !important;
}

.data-grid {
  background: var(--quiet-surface) !important;
}

.data-grid th {
  height: 42px !important;
  padding-inline: 18px !important;
  background: rgba(251,251,252,0.92) !important;
  color: var(--quiet-muted) !important;
  border-bottom: 1px solid var(--quiet-line) !important;
  font-size: 11px !important;
  font-weight: 500 !important;
}

.data-grid td {
  height: 62px !important;
  padding-inline: 18px !important;
  border-bottom: 1px solid rgba(17,17,20,0.055) !important;
  color: var(--quiet-text) !important;
  background: var(--quiet-surface) !important;
}

.data-grid tbody tr:nth-child(even) td {
  background: #fcfcfd !important;
}

.data-grid-panel .data-grid tbody tr:hover td {
  background: #f7f7fb !important;
}

.data-grid-panel .data-grid tbody tr.selected td,
.data-grid-panel .data-grid tbody tr:focus td {
  background: #f4f4ff !important;
}

.avatar {
  width: 30px !important;
  height: 30px !important;
  flex-basis: 30px !important;
  border-radius: 9px !important;
  background: #f1f2f6 !important;
  color: var(--quiet-text) !important;
  font-size: 11px !important;
}

.entity-copy strong {
  font-size: 13.5px !important;
  font-weight: 500 !important;
}

.entity-copy small {
  display: none !important;
}

.status-badge {
  min-height: 24px !important;
  padding: 3px 8px !important;
  font-size: 11.5px !important;
  border-radius: 999px !important;
}

.numeric-cell {
  color: var(--quiet-text) !important;
  font-weight: 500 !important;
}

.column-menu {
  border-color: var(--quiet-line) !important;
  border-radius: 12px !important;
  box-shadow: var(--quiet-shadow) !important;
}

.modal-panel {
  border-radius: 18px !important;
  background: var(--quiet-surface) !important;
  box-shadow: 0 24px 80px rgba(17,17,20,0.22) !important;
}

.modal-head {
  padding: 16px 18px !important;
  background: rgba(255,255,255,0.9) !important;
  border-bottom: 1px solid var(--quiet-line) !important;
}

.modal-head span {
  display: none !important;
}

.modal-head h2 {
  font-size: 18px !important;
  font-weight: 500 !important;
  letter-spacing: -0.01em;
}

.modal-body {
  gap: 16px !important;
  padding: 16px !important;
}

.modal-summary {
  min-height: 0 !important;
  padding: 16px !important;
  border: 1px solid var(--quiet-line);
  border-radius: 14px !important;
  background: #111114 !important;
  box-shadow: none !important;
}

.modal-content .subpanel,
.modal-content .payment-section,
.modal-content .receipt-section,
.donor-hero,
.subpanel,
.payment-section,
.receipt-section,
.widgets .panel {
  border: 1px solid var(--quiet-line) !important;
  border-radius: 14px !important;
  background: var(--quiet-surface) !important;
  box-shadow: none !important;
}

.subpanel h3::before,
.payment-section h3::before,
.receipt-section h3::before {
  width: 3px !important;
  height: 16px !important;
  background: var(--quiet-accent) !important;
}

input,
select,
textarea {
  border-radius: 9px !important;
  background: #fff !important;
}

/* Ultra-minimal product UI pass: compact, sharp, quiet */
:root {
  --ui-bg: #fafafa;
  --ui-surface: #ffffff;
  --ui-surface-subtle: #f5f5f5;
  --ui-text: #27272a;
  --ui-text-strong: #18181b;
  --ui-muted: #71717a;
  --ui-faint: #a1a1aa;
  --ui-line: rgba(39, 39, 42, 0.075);
  --ui-line-soft: rgba(39, 39, 42, 0.045);
  --ui-accent: #4f46e5;
  --ui-radius: 8px;
}

html {
  -webkit-font-smoothing: antialiased;
  text-rendering: geometricPrecision;
}

body,
.main {
  background: var(--ui-bg) !important;
  color: var(--ui-text) !important;
  font-size: 13px !important;
  line-height: 1.42 !important;
}

#app {
  grid-template-rows: auto auto minmax(0, 1fr);
}

.app-header {
  min-height: 38px !important;
  padding: 5px 28px !important;
  background: rgba(250, 250, 250, 0.88) !important;
  border: 0 !important;
}

.brand {
  gap: 7px !important;
}

.brand-mark {
  width: 22px !important;
  height: 22px !important;
  border-radius: 6px !important;
  font-size: 10px !important;
}

.brand strong {
  font-size: 12px !important;
  font-weight: 500 !important;
}

.brand small {
  display: none !important;
}

.app-header .user-picker {
  min-width: 0 !important;
}

.user-picker {
  gap: 6px !important;
  font-size: 11px !important;
  font-weight: 500 !important;
}

.user-picker select {
  min-height: 24px !important;
  max-width: 190px;
  font-size: 12px !important;
  color: var(--ui-muted) !important;
}

.system-nav {
  top: 38px !important;
  padding: 0 28px 6px !important;
  background: rgba(250, 250, 250, 0.88) !important;
  border-bottom: 1px solid var(--ui-line-soft) !important;
}

.nav-primary,
.nav-secondary {
  min-height: 26px !important;
  gap: 18px !important;
}

.nav-category,
.nav-item {
  min-height: 24px !important;
  padding: 0 !important;
  font-size: 12px !important;
  font-weight: 500 !important;
  color: var(--ui-muted) !important;
}

.nav-category.active,
.nav-item.active,
.system-nav .nav-category.active,
.system-nav .nav-item.active {
  color: var(--ui-text-strong) !important;
  font-weight: 580 !important;
}

.nav-category.active::after,
.nav-item.active::after {
  bottom: -5px !important;
  height: 1px !important;
  background: var(--ui-text-strong) !important;
}

.main {
  padding: 26px 32px !important;
}

.page-hero.quiet-hero {
  margin-bottom: 18px !important;
  padding-bottom: 14px !important;
  border-bottom-color: var(--ui-line-soft) !important;
}

.quiet-hero .hero-copy h1 {
  margin-bottom: 4px !important;
  font-size: 21px !important;
  line-height: 1.2 !important;
  font-weight: 500 !important;
  color: var(--ui-text-strong) !important;
}

.quiet-hero .hero-copy p {
  font-size: 12px !important;
  color: var(--ui-muted) !important;
}

.quiet-hero .hero-actions {
  gap: 6px !important;
}

button,
.dial,
.primary,
button.primary,
.ghost {
  min-height: 28px !important;
  padding: 4px 9px !important;
  border-radius: 6px !important;
  font-size: 12px !important;
  font-weight: 520 !important;
  letter-spacing: 0 !important;
}

.primary,
button.primary {
  background: var(--ui-text-strong) !important;
}

.ghost,
.table-clear-btn,
.column-menu-trigger {
  border-color: var(--ui-line) !important;
}

button:hover,
.dial:hover {
  transform: none !important;
  background-color: var(--ui-surface-subtle) !important;
}

.primary:hover,
button.primary:hover {
  background: #27272a !important;
}

.panel,
.data-grid-panel,
.dashboard-kpis article,
.dashboard-chart-card,
.modal-content .subpanel,
.modal-content .payment-section,
.modal-content .receipt-section,
.donor-hero,
.subpanel,
.payment-section,
.receipt-section,
.widgets .panel {
  border: 0 !important;
  border-radius: 10px !important;
  background: var(--ui-surface) !important;
  box-shadow: none !important;
}

.data-grid-panel {
  border: 1px solid var(--ui-line-soft) !important;
}

.panel > .section-head,
.panel > h2,
.panel > h3 {
  margin-top: 14px !important;
}

h1 {
  font-size: 21px !important;
  font-weight: 500 !important;
}

h2 {
  font-size: 15px !important;
  font-weight: 500 !important;
  color: var(--ui-text-strong) !important;
}

h3,
label {
  font-size: 12px !important;
  font-weight: 520 !important;
}

.muted,
.topbar p {
  color: var(--ui-muted) !important;
}

.data-grid-panel .table-search-row {
  min-height: 44px !important;
  padding: 8px 10px !important;
  gap: 6px !important;
  border-bottom: 1px solid var(--ui-line-soft) !important;
  background: var(--ui-surface) !important;
}

.view-chips {
  display: none !important;
}

.data-grid-panel .table-search-row input,
.data-grid-panel .table-search-row select {
  min-height: 28px !important;
  min-width: 118px !important;
  padding: 3px 8px !important;
  border-radius: 6px !important;
  border-color: transparent !important;
  background: var(--ui-surface-subtle) !important;
  font-size: 12px !important;
  color: var(--ui-text) !important;
}

.data-grid-panel .table-search-row input[type="search"] {
  min-width: 220px !important;
  margin-inline-start: auto !important;
}

.data-grid-panel .table-search-row input:focus,
.data-grid-panel .table-search-row select:focus {
  box-shadow: 0 0 0 2px rgba(79, 70, 229, 0.12) !important;
  border-color: rgba(79, 70, 229, 0.22) !important;
  background: #fff !important;
}

.data-grid {
  table-layout: fixed !important;
}

.data-grid th {
  height: 34px !important;
  padding-inline: 12px !important;
  background: #fbfbfb !important;
  color: var(--ui-muted) !important;
  border-bottom: 1px solid var(--ui-line-soft) !important;
  font-size: 11px !important;
  font-weight: 560 !important;
}

.data-grid th.sortable-column::after {
  margin-inline-start: 4px !important;
  font-size: 9px !important;
  opacity: 0.42;
}

.data-grid td {
  height: 44px !important;
  padding-inline: 12px !important;
  border-bottom: 1px solid var(--ui-line-soft) !important;
  color: var(--ui-text) !important;
  font-size: 12.5px !important;
}

.data-grid tbody tr:nth-child(even) td {
  background: #fdfdfd !important;
}

.data-grid-panel .data-grid tbody tr:hover td {
  background: #f6f6f7 !important;
}

.data-grid-panel .data-grid tbody tr.selected td,
.data-grid-panel .data-grid tbody tr:focus td {
  background: #f4f4f8 !important;
}

.entity-cell {
  gap: 8px !important;
}

.avatar {
  width: 24px !important;
  height: 24px !important;
  flex-basis: 24px !important;
  border-radius: 6px !important;
  font-size: 10px !important;
  background: #f0f0f1 !important;
  color: #52525b !important;
}

.entity-copy strong {
  font-size: 12.5px !important;
  font-weight: 560 !important;
}

.status-badge {
  min-height: 20px !important;
  padding: 2px 8px !important;
  border: 1px solid transparent !important;
  font-size: 10.5px !important;
  font-weight: 500 !important;
  line-height: 1.35 !important;
}

.status-badge.success {
  color: #3CB86C !important;
  background: #eef7e9 !important;
  border-color: #3CB86C !important;
}

.status-badge.warning {
  color: #b54708 !important;
  background: #fef0c7 !important;
  border-color: #fedf89 !important;
}

.status-badge.danger {
  color: #c01048 !important;
  background: #ffe4e8 !important;
  border-color: #fecdd6 !important;
}

.status-badge.info {
  color: #175cd3 !important;
  background: #dbeafe !important;
  border-color: #bfdbfe !important;
}

.status-badge.purple {
  color: #6941c6 !important;
  background: #ebe9fe !important;
  border-color: #d9d6fe !important;
}

.status-badge.neutral {
  color: #475467 !important;
  background: #eef2f6 !important;
  border-color: #dde3ea !important;
}

.actions-dots,
.icon-btn,
.small-icon-btn {
  width: 24px !important;
  min-width: 24px !important;
  min-height: 24px !important;
  height: 24px !important;
  border-radius: 6px !important;
  font-size: 12px !important;
}

input,
select,
textarea {
  min-height: 32px !important;
  padding: 6px 9px !important;
  border-radius: 7px !important;
  border-color: var(--ui-line) !important;
  font-size: 12.5px !important;
}

.form-grid,
.donor-entry-form {
  gap: 10px !important;
}

.subpanel,
.payment-section,
.receipt-section {
  padding: 12px !important;
  margin-top: 6px !important;
}

.subpanel h3,
.payment-section h3,
.receipt-section h3 {
  margin-bottom: 10px !important;
  font-size: 12.5px !important;
  font-weight: 500 !important;
}

.subpanel h3::before,
.payment-section h3::before,
.receipt-section h3::before {
  display: none !important;
}

.modal-backdrop {
  background: rgba(24, 24, 27, 0.34) !important;
  backdrop-filter: blur(6px) !important;
}

.modal-panel {
  border-radius: 12px !important;
  box-shadow: 0 18px 54px rgba(24, 24, 27, 0.18) !important;
}

.modal-head {
  padding: 12px 14px !important;
}

.modal-head h2 {
  font-size: 15px !important;
  font-weight: 500 !important;
}

.modal-body {
  gap: 12px !important;
  padding: 12px !important;
}

.modal-summary {
  display: none !important;
}

.modal-body {
  grid-template-columns: 1fr !important;
}

.column-menu {
  border: 1px solid var(--ui-line) !important;
  box-shadow: 0 12px 32px rgba(24, 24, 27, 0.10) !important;
}

@media (max-width: 760px) {
  .main {
    padding: 20px !important;
  }

  .page-hero.quiet-hero {
    align-items: flex-start;
    flex-direction: column;
  }

  .data-grid-panel .table-search-row {
    align-items: stretch;
    flex-wrap: wrap;
  }
}

/* REMIT B2B SaaS overhaul: compact premium system, RTL-safe, logic-neutral. */
:root {
  --remit-primary-dark: #0f1e2d;
  --remit-sidebar-hover: #1a3040;
  --remit-active-green: #3CB86C;
  --remit-sidebar-text: #3CB86C;
  --remit-section-label: #3a6a58;
  --remit-bg: #f5f6f8;
  --remit-card: #ffffff;
  --remit-border: #e8eaed;
  --remit-soft-border: #f3f4f6;
  --remit-text: #374151;
  --remit-strong: #111827;
  --remit-muted: #9ca3af;
  --remit-positive: #3CB86C;
  --remit-sidebar-width: 280px;
}

html,
body,
#app {
  direction: rtl !important;
}

body:has(.enterprise-sidebar) {
  background: var(--remit-bg) !important;
  color: var(--remit-text) !important;
  font-weight: 400 !important;
}

body:has(.enterprise-sidebar) * {
  letter-spacing: 0 !important;
}

body:has(.enterprise-sidebar) .enterprise-sidebar.app-sidebar {
  width: var(--remit-sidebar-width) !important;
  padding: 28px 16px 18px !important;
  gap: 20px !important;
  background: #0f1e2d !important;
  border-left: 0.5px solid #1e3248 !important;
  box-shadow: none !important;
}

body:has(.enterprise-sidebar) .enterprise-sidebar-section {
  gap: 5px !important;
  padding-bottom: 12px !important;
  border-bottom: 0.5px solid #1e3248 !important;
}

body:has(.enterprise-sidebar) .enterprise-sidebar-section:last-child {
  border-bottom: 0 !important;
}

body:has(.enterprise-sidebar) .enterprise-sidebar-section-title {
  padding: 0 10px 4px !important;
  color: #3a6a58 !important;
  font-size: 10px !important;
  line-height: 14px !important;
  font-weight: 500 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.8px !important;
}

body:has(.enterprise-sidebar) .topbar,
body:has(.enterprise-sidebar) .management-dashboard-head {
  margin: -24px -28px 22px !important;
  padding: 18px 28px !important;
  min-height: 64px !important;
  background: #ffffff !important;
  border-bottom: 0.5px solid #e8eaed !important;
}

body:has(.enterprise-sidebar) .topbar h1,
body:has(.enterprise-sidebar) .management-dashboard-head h2 {
  color: #111827 !important;
  font-size: 17px !important;
  line-height: 24px !important;
  font-weight: 500 !important;
}

body:has(.enterprise-sidebar) .topbar p,
body:has(.enterprise-sidebar) .management-dashboard-head p,
body:has(.enterprise-sidebar) .muted {
  color: #9ca3af !important;
  font-size: 12px !important;
  font-weight: 400 !important;
}

body:has(.enterprise-sidebar) .panel,
body:has(.enterprise-sidebar) .subpanel,
body:has(.enterprise-sidebar) .data-grid-panel,
body:has(.enterprise-sidebar) .donor-detail-card,
body:has(.enterprise-sidebar) .management-card,
body:has(.enterprise-sidebar) .customization-editor,
body:has(.enterprise-sidebar) .customization-preview,
body:has(.enterprise-sidebar) .integration-card,
body:has(.enterprise-sidebar) .widgets .panel,
body:has(.enterprise-sidebar) .shell-kpi-card {
  background: #ffffff !important;
  border: 0.5px solid #e8eaed !important;
  border-radius: 10px !important;
  box-shadow: none !important;
}

body:has(.enterprise-sidebar) .shell-kpi-grid,
body:has(.enterprise-sidebar) .management-kpis,
body:has(.enterprise-sidebar) .stats {
  gap: 14px !important;
  margin-bottom: 18px !important;
}

body:has(.enterprise-sidebar) .shell-kpi-card {
  min-height: 142px !important;
  padding: 18px !important;
  align-content: start !important;
  gap: 8px !important;
}

body:has(.enterprise-sidebar) .shell-kpi-icon {
  width: 30px !important;
  height: 30px !important;
  border-radius: 7px !important;
}

body:has(.enterprise-sidebar) .shell-kpi-card[data-kpi-tone="donors"] .shell-kpi-icon {
  background: #EEEDFE !important;
  color: #534AB7 !important;
}

body:has(.enterprise-sidebar) .shell-kpi-card[data-kpi-tone="donations"] .shell-kpi-icon {
  background: rgba(60, 184, 108, 0.14) !important;
  color: #2A8C52 !important;
}

body:has(.enterprise-sidebar) .shell-kpi-card[data-kpi-tone="records"] .shell-kpi-icon {
  background: #E6F1FB !important;
  color: #185FA5 !important;
}

body:has(.enterprise-sidebar) .shell-kpi-card[data-kpi-tone="commitments"] .shell-kpi-icon {
  background: #FAEEDA !important;
  color: #854F0B !important;
}

body:has(.enterprise-sidebar) .shell-kpi-card span:not(.shell-kpi-icon) {
  color: #9ca3af !important;
  font-size: 11px !important;
  font-weight: 400 !important;
  letter-spacing: 0.3px !important;
}

body:has(.enterprise-sidebar) .shell-kpi-card strong {
  color: #111827 !important;
  font-size: 22px !important;
  line-height: 28px !important;
  font-weight: 500 !important;
}

body:has(.enterprise-sidebar) .shell-kpi-card em {
  color: #2A8C52 !important;
  font-size: 11px !important;
  font-style: normal !important;
  font-weight: 400 !important;
}

body:has(.enterprise-sidebar) button,
body:has(.enterprise-sidebar) .dial,
body:has(.enterprise-sidebar) .primary,
body:has(.enterprise-sidebar) button.primary {
  min-height: 32px !important;
  padding: 6px 14px !important;
  border-radius: 8px !important;
  border: 0 !important;
  background: #3CB86C !important;
  color: #ffffff !important;
  font-size: 12px !important;
  font-weight: 500 !important;
  gap: 7px !important;
  box-shadow: none !important;
}

body:has(.enterprise-sidebar) button.ghost,
body:has(.enterprise-sidebar) .secondary,
body:has(.enterprise-sidebar) button.secondary,
body:has(.enterprise-sidebar) .table-filter-drawer-toggle,
body:has(.enterprise-sidebar) .icon-btn,
body:has(.enterprise-sidebar) .table-clear-btn,
body:has(.enterprise-sidebar) .column-menu-trigger {
  border: 0.5px solid #d1d5db !important;
  background: #ffffff !important;
  color: #6b7280 !important;
}

body:has(.enterprise-sidebar) .enterprise-sidebar button,
body:has(.enterprise-sidebar) .enterprise-sidebar button.ghost,
body:has(.enterprise-sidebar) .enterprise-sidebar .icon-btn {
  border-color: transparent !important;
}

body:has(.enterprise-sidebar) .table-search-row,
body:has(.enterprise-sidebar) .data-grid-panel .table-search-row {
  min-height: 58px !important;
  padding: 12px 16px !important;
  border-bottom: 0.5px solid #e8eaed !important;
}

body:has(.enterprise-sidebar) .table-toolbar-title,
body:has(.enterprise-sidebar) .section-head h2,
body:has(.enterprise-sidebar) .section-head h3 {
  color: #111827 !important;
  font-size: 17px !important;
  font-weight: 500 !important;
}

body:has(.enterprise-sidebar) table {
  font-size: 12px !important;
  color: #374151 !important;
}

body:has(.enterprise-sidebar) thead th {
  height: 42px !important;
  padding: 10px 14px !important;
  background: #f1f8ed !important;
  border-bottom: 1px solid #3CB86C !important;
  color: #3CB86C !important;
  font-size: 11px !important;
  font-weight: 500 !important;
}

body:has(.enterprise-sidebar) tbody td {
  min-height: 48px !important;
  padding: 12px 14px !important;
  border-bottom: 0.5px solid #f3f4f6 !important;
  color: #374151 !important;
  font-size: 12px !important;
  font-weight: 400 !important;
}

body:has(.enterprise-sidebar) tbody tr:hover td {
  background: #f9fafb !important;
}

body:has(.enterprise-sidebar) td:first-child,
body:has(.enterprise-sidebar) td:nth-child(2) {
  font-variant-numeric: tabular-nums !important;
}

body:has(.enterprise-sidebar) td:nth-child(2):not(:has(.remit-entity-cell)) {
  color: #9ca3af !important;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace !important;
  font-size: 11px !important;
}

.remit-entity-cell {
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
}

.remit-avatar {
  display: none !important;
}

.employee-entity-table .avatar {
  width: 26px !important;
  height: 26px !important;
  display: inline-grid !important;
  place-items: center !important;
  border-radius: 50% !important;
  font-size: 10px !important;
  font-weight: 500 !important;
}

body:has(.enterprise-sidebar) .data-grid:not(.employee-entity-table) .avatar,
body:has(.enterprise-sidebar) table:not(.employee-entity-table) .avatar {
  display: none !important;
}

.remit-entity-cell[data-avatar-tone="blue"] .remit-avatar {
  background: #E6F1FB !important;
  color: #185FA5 !important;
}

.remit-entity-cell[data-avatar-tone="teal"] .remit-avatar {
  background: rgba(60, 184, 108, 0.14) !important;
  color: #2A8C52 !important;
}

.remit-entity-cell[data-avatar-tone="purple"] .remit-avatar {
  background: #EEEDFE !important;
  color: #534AB7 !important;
}

.remit-entity-cell[data-avatar-tone="amber"] .remit-avatar {
  background: #FAEEDA !important;
  color: #854F0B !important;
}

body:has(.enterprise-sidebar) .status-badge:not(.custom-color),
body:has(.enterprise-sidebar) .badge:not(.custom-color) {
  min-height: 24px !important;
  padding: 3px 9px !important;
  border-radius: 999px !important;
  border: 0 !important;
  background: #f3f4f6 !important;
  color: #6b7280 !important;
  font-size: 11px !important;
  font-weight: 500 !important;
}

body:has(.enterprise-sidebar) .status-badge.success:not(.custom-color),
body:has(.enterprise-sidebar) .status-badge.ok:not(.custom-color),
body:has(.enterprise-sidebar) .badge.ok:not(.custom-color) {
  background: rgba(60, 184, 108, 0.14) !important;
  color: #2A8C52 !important;
}

body:has(.enterprise-sidebar) .status-badge.warning:not(.custom-color) {
  background: #FAEEDA !important;
  color: #854F0B !important;
}

body:has(.enterprise-sidebar) .status-badge.neutral:not(.custom-color) {
  background: #f3f4f6 !important;
  color: #6b7280 !important;
}

body:has(.enterprise-sidebar) .status-badge.success:not(.custom-color)::before,
body:has(.enterprise-sidebar) .status-badge.warning:not(.custom-color)::before,
body:has(.enterprise-sidebar) .status-badge.neutral:not(.custom-color)::before {
  content: "" !important;
  width: 5px !important;
  height: 5px !important;
  display: inline-block !important;
  margin-inline-end: 6px !important;
  border-radius: 999px !important;
  background: currentColor !important;
}

body:has(.enterprise-sidebar) .status-badge.custom-color {
  background: color-mix(in srgb, var(--status-color) 18%, white) !important;
  border-color: color-mix(in srgb, var(--status-color) 42%, white) !important;
  color: var(--status-color) !important;
}

body:has(.enterprise-sidebar) .row-actions {
  white-space: nowrap !important;
}

body:has(.enterprise-sidebar) .row-actions button,
body:has(.enterprise-sidebar) .data-grid .row-actions button,
body:has(.enterprise-sidebar) .records-like-table .row-actions button {
  width: 26px !important;
  height: 26px !important;
  min-height: 26px !important;
  padding: 0 !important;
  border: 0.5px solid #e8eaed !important;
  border-radius: 8px !important;
  background: #ffffff !important;
  color: #6b7280 !important;
  opacity: 0 !important;
}

body:has(.enterprise-sidebar) tr:hover .row-actions button,
body:has(.enterprise-sidebar) .row-actions button:focus-visible {
  opacity: 1 !important;
}

.remit-table-footer,
body:has(.enterprise-sidebar) .widget-page-footer {
  min-height: 46px !important;
  padding: 10px 14px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 10px !important;
  border-top: 0.5px solid #e8eaed !important;
  background: #ffffff !important;
}

.remit-table-footer .table-result-count,
body:has(.enterprise-sidebar) .widget-page-footer .table-result-count {
  color: #6b7280 !important;
  font-size: 12px !important;
  font-weight: 400 !important;
}

.remit-page-buttons {
  display: inline-flex !important;
  gap: 6px !important;
}

.remit-page-buttons button,
body:has(.enterprise-sidebar) .widget-page-footer button {
  width: 28px !important;
  height: 28px !important;
  min-height: 28px !important;
  padding: 0 !important;
  border: 0.5px solid #e8eaed !important;
  border-radius: 8px !important;
  background: #ffffff !important;
  color: #374151 !important;
}

.remit-page-buttons button.current {
  border-color: #3CB86C !important;
  background: #3CB86C !important;
  color: #ffffff !important;
}

/* Requested top navigation: wide cyan tab bar */
.app-header {
  position: fixed !important;
  top: 0 !important;
  inset-inline: 0 !important;
  z-index: 60 !important;
  height: 32px !important;
  min-height: 32px !important;
  padding: 0 28px !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  pointer-events: none;
}

.app-header .brand {
  display: none !important;
}

.app-header .user-picker {
  position: fixed !important;
  left: 18px !important;
  right: auto !important;
  top: 13px !important;
  z-index: 1000 !important;
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  height: 38px !important;
  min-width: 280px !important;
  padding: 5px 10px !important;
  border: 1px solid rgba(255, 255, 255, 0.34) !important;
  border-radius: 12px !important;
  background: rgba(255, 255, 255, 0.18) !important;
  color: #ffffff !important;
  box-shadow: none !important;
  pointer-events: auto !important;
  opacity: 1 !important;
  visibility: visible !important;
}

.app-header .user-picker select {
  height: 28px !important;
  min-height: 28px !important;
  max-width: 220px !important;
  padding: 0 8px !important;
  border: 1px solid rgba(255, 255, 255, 0.46) !important;
  border-radius: 8px !important;
  background: rgba(255, 255, 255, 0.96) !important;
  color: #1f2a44 !important;
  font-size: 13px !important;
  font-weight: 500 !important;
}

.app-header .user-picker select option {
  color: #111827;
}

.system-nav {
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  width: 100% !important;
  z-index: 55 !important;
  display: block !important;
  position: fixed !important;
  gap: 0 !important;
  min-height: 64px !important;
  height: 64px !important;
  padding: 0 28px !important;
  background: #5d8cf3 !important;
  border: 0 !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  overflow: visible !important;
}

.nav-primary,
.nav-secondary {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 12px !important;
  min-height: 0 !important;
  overflow: visible !important;
  padding-inline-start: 0 !important;
  padding-inline-end: 260px !important;
  position: absolute !important;
  right: 28px !important;
  left: 210px !important;
  z-index: 2 !important;
  opacity: 1 !important;
  visibility: visible !important;
}

.nav-primary {
  height: 34px !important;
  top: 0 !important;
}

.nav-secondary {
  height: 30px !important;
  top: 34px !important;
}

.nav-category,
.nav-item,
.system-nav button {
  width: auto !important;
  min-height: 0 !important;
  height: 24px !important;
  padding: 0 10px !important;
  border: 0 !important;
  border-radius: 4px !important;
  background: transparent !important;
  color: #ffffff !important;
  font-size: 14px !important;
  font-weight: 500 !important;
  line-height: 24px !important;
  box-shadow: none !important;
  cursor: pointer;
  display: inline-flex !important;
  align-items: center !important;
  opacity: 1 !important;
  visibility: visible !important;
}

.nav-category {
  color: #ffffff !important;
  font-size: 14.5px !important;
  font-weight: 500 !important;
  opacity: 1 !important;
  display: inline-flex !important;
  visibility: visible !important;
}

.nav-item {
  height: 22px !important;
  padding: 0 9px !important;
  color: rgba(255, 255, 255, 0.76) !important;
  font-size: 13px !important;
  font-weight: 580 !important;
  line-height: 22px !important;
}

.nav-category:hover,
.nav-category:focus-visible,
.nav-category.active,
.system-nav .nav-category.active {
  background: rgba(23, 78, 170, 0.42) !important;
  color: #fff !important;
  font-weight: 500 !important;
}

.nav-item:hover,
.nav-item:focus-visible,
.nav-item.active,
.system-nav .nav-item.active {
  background: rgba(255, 255, 255, 0.13) !important;
  color: #fff !important;
}

.nav-category.active::after,
.nav-item.active::after {
  content: none !important;
}

.main {
  padding-top: 138px !important;
}

/* Exact 2026 top-menu behavior */
.system-nav {
  position: fixed !important;
  inset: 0 0 auto 0 !important;
  width: 100% !important;
  background: #5d8cf3 !important;
  min-height: 96px !important;
  padding: 10px 24px 16px 28px !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: flex-start !important;
  gap: 0 !important;
  z-index: 1000 !important;
  direction: rtl !important;
  overflow: visible !important;
}

.nav-menu-shell {
  position: relative !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 0 !important;
  min-height: 70px !important;
  width: 100% !important;
  padding: 0 !important;
  direction: rtl !important;
}

.nav-primary,
.nav-secondary {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  flex-wrap: wrap !important;
  gap: 12px !important;
  direction: rtl !important;
  width: 100% !important;
}

.nav-primary {
  min-height: 24px !important;
}

.nav-secondary {
  position: absolute !important;
  top: 48px !important;
  right: 0 !important;
  left: 0 !important;
  opacity: 1 !important;
  visibility: visible !important;
  transform: none !important;
  background: transparent !important;
  box-shadow: none !important;
  padding: 0 !important;
  margin-top: 0 !important;
  filter: none !important;
}

.nav-category {
  position: relative !important;
  display: inline-flex !important;
  align-items: center !important;
  margin: 0 !important;
  padding: 0 0 4px !important;
  height: auto !important;
  min-height: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  color: #ffffff !important;
  font-size: 16px !important;
  font-weight: 500 !important;
  line-height: 1.35 !important;
  opacity: 1 !important;
  visibility: visible !important;
  filter: none !important;
  text-shadow: none !important;
}

.nav-category::after {
  content: "" !important;
  position: absolute !important;
  right: 0 !important;
  left: 0 !important;
  bottom: 0 !important;
  height: 2px !important;
  border-radius: 999px !important;
  background: #ffffff !important;
  transform: scaleX(0) !important;
  transform-origin: center !important;
  transition: transform 0.3s ease !important;
}

.nav-category:hover,
.nav-category:focus-visible,
.nav-category.active,
.system-nav .nav-category.active {
  background: transparent !important;
  color: #ffffff !important;
  font-weight: 500 !important;
  opacity: 1 !important;
  filter: none !important;
}

.nav-category:hover::after,
.nav-category:focus-visible::after,
.nav-category.active::after {
  transform: scaleX(1) !important;
}

.nav-item {
  display: inline-flex !important;
  align-items: center !important;
  height: 28px !important;
  min-height: 28px !important;
  margin: 0 !important;
  padding: 0 10px !important;
  border-radius: 7px !important;
  background: transparent !important;
  color: #ffffff !important;
  font-size: 13px !important;
  font-weight: 500 !important;
  line-height: 28px !important;
  opacity: 1 !important;
  visibility: visible !important;
  filter: none !important;
}

.nav-secondary .nav-item:first-child {
  padding-right: 0 !important;
}

.nav-item:hover,
.nav-item:focus-visible,
.nav-item.active,
.system-nav .nav-item.active {
  background: rgba(255, 255, 255, 0.14) !important;
  color: #ffffff !important;
}

.nav-item::after {
  content: none !important;
}

/* Unified table toolbar requested for every data table */
.data-grid-panel > h2,
.data-grid-panel > h3,
.data-grid-panel > .section-head,
.data-grid-panel > p.muted,
.data-grid-panel > .toolbar,
.data-grid-panel > .actions {
  display: none !important;
}

.data-grid-panel {
  background: #ffffff !important;
  border: 1px solid rgba(93, 140, 243, 0.18) !important;
  border-radius: 12px !important;
  box-shadow: 0 8px 24px rgba(37, 99, 235, 0.08) !important;
}

.data-grid-panel .table-search-row {
  display: flex !important;
  flex-direction: column !important;
  align-items: stretch !important;
  justify-content: flex-start !important;
  gap: 8px !important;
  min-height: 58px !important;
  padding: 10px 18px 9px !important;
  border-bottom: 0 !important;
  border-radius: 12px 12px 0 0 !important;
  background: linear-gradient(180deg, rgba(246, 249, 255, 0.98), rgba(255, 255, 255, 0.96)) !important;
}

.table-toolbar-meta {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 16px !important;
  width: 100% !important;
  direction: rtl !important;
}

.table-free-search {
  width: min(320px, 34vw) !important;
  min-width: 220px !important;
  margin-inline-start: 0 !important;
  margin-inline-end: 4px !important;
}

.table-toolbar-meta .table-result-count {
  margin-inline-start: auto !important;
  color: #6b7280 !important;
  font-size: 12.5px !important;
  white-space: nowrap !important;
}

.table-toolbar-title {
  color: var(--ui-text-strong, #111827) !important;
  font-size: 13px !important;
  font-weight: 500 !important;
  line-height: 1.3 !important;
}

.table-filter-controls {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  flex-wrap: wrap !important;
  gap: 8px !important;
  width: 100% !important;
  direction: rtl !important;
}

.data-grid-panel .table-search-row input,
.data-grid-panel .table-search-row select,
.data-grid-panel .table-clear-btn {
  min-height: 30px !important;
  height: 30px !important;
  min-width: 128px !important;
  padding: 0 10px !important;
  border: 1px solid rgba(93, 140, 243, 0.18) !important;
  border-radius: 7px !important;
  background: #ffffff !important;
  color: var(--ui-text, #1f2937) !important;
  font-size: 12.5px !important;
  font-weight: 500 !important;
  box-shadow: none !important;
}

.data-grid-panel .table-search-row input[type="search"] {
  min-width: min(300px, 100%) !important;
  margin-inline-start: 0 !important;
}

.data-grid-panel .table-clear-btn {
  min-width: 104px !important;
  background: #ffffff !important;
  cursor: pointer !important;
}

.data-grid-panel .table-filter-settings {
  position: relative !important;
  width: 30px !important;
  min-width: 30px !important;
  height: 30px !important;
  min-height: 30px !important;
  border: 1px solid rgba(93, 140, 243, 0.22) !important;
  border-radius: 7px !important;
  background: #ffffff !important;
  color: #3f6fd8 !important;
}

.filter-field-menu {
  position: absolute !important;
  z-index: 30 !important;
  top: 44px !important;
  inset-inline-start: 18px !important;
  min-width: 190px !important;
  display: grid !important;
  gap: 6px !important;
  padding: 10px !important;
  border: 1px solid rgba(93, 140, 243, 0.18) !important;
  border-radius: 9px !important;
  background: #ffffff !important;
  box-shadow: 0 16px 36px rgba(37, 99, 235, 0.14) !important;
}

.filter-field-menu[hidden] {
  display: none !important;
}

.filter-field-menu label {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  padding: 5px 6px !important;
  border-radius: 6px !important;
  color: var(--ui-text, #1f2937) !important;
  font-size: 12px !important;
}

.filter-field-menu label:hover {
  background: rgba(93, 140, 243, 0.08) !important;
}

.filter-field-menu input {
  width: auto !important;
  min-width: 0 !important;
  height: auto !important;
  min-height: 0 !important;
}

.data-grid-panel .table-result-count {
  margin-inline-start: auto !important;
  color: var(--ui-muted, #64748b) !important;
  font-size: 12px !important;
  font-weight: 500 !important;
  line-height: 1.3 !important;
  text-align: left !important;
  white-space: nowrap !important;
}

.data-grid th.sortable-column::after {
  content: none !important;
}

/* Final form polish: larger readable fields with a subtle modern glow. */
label {
  gap: 8px !important;
  color: #435b78 !important;
  font-size: 13.8px !important;
  font-weight: 500 !important;
}

input,
select,
textarea {
  min-height: 40px !important;
  padding: 8px 12px !important;
  border: 1px solid rgba(56, 189, 248, 0.34) !important;
  border-radius: 10px !important;
  background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%) !important;
  color: #0f2742 !important;
  font-size: 13.6px !important;
  font-weight: 560 !important;
  box-shadow:
    0 0 0 1px rgba(14, 165, 233, 0.07),
    0 8px 22px rgba(14, 116, 144, 0.07) !important;
}

textarea {
  min-height: 86px !important;
  line-height: 1.55 !important;
}

input:focus,
select:focus,
textarea:focus {
  outline: 0 !important;
  border-color: rgba(14, 165, 233, 0.72) !important;
  box-shadow:
    0 0 0 4px rgba(56, 189, 248, 0.18),
    0 10px 28px rgba(14, 116, 144, 0.12) !important;
}

.table-search-row input,
.table-search-row select,
.data-grid-panel .table-search-row input,
.data-grid-panel .table-search-row select {
  min-height: 32px !important;
  height: 32px !important;
  font-size: 13.5px !important;
}

.donor-hero h2 {
  font-size: 26px !important;
  line-height: 1.16 !important;
  font-weight: 500 !important;
}

.donor-hero p {
  font-size: 15.5px !important;
  line-height: 1.55 !important;
}

.donor-hero small {
  font-size: 13.5px !important;
  line-height: 1.5 !important;
}

.status-control,
.tone-field {
  width: fit-content !important;
  min-width: 118px !important;
  height: 52px !important;
  min-height: 52px !important;
  padding-block: 0 !important;
  padding-inline: 20px !important;
  border-radius: 999px !important;
  border: 1px solid rgba(148, 163, 184, 0.24) !important;
  font-size: 13px !important;
  font-weight: 500 !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.74), 0 8px 18px rgba(15, 39, 66, 0.06) !important;
}

.status-control[data-tone="׳₪׳¢׳™׳"],
.status-control[data-tone="׳₪׳¢׳™׳׳”"],
.status-control[data-tone="׳×׳¨׳•׳׳”"],
.status-control[data-tone="׳›׳"],
.tone-field[data-tone="׳₪׳¢׳™׳׳”"],
.tone-field[data-tone="׳”׳•׳¨׳׳× ׳§׳‘׳¢"] {
  color: #3CB86C !important;
  background: #eef7e9 !important;
  border-color: #3CB86C !important;
}

.status-control[data-tone="׳׳׳×׳™׳ ׳׳₪׳¨׳˜׳™ ׳׳©׳¨׳׳™"],
.status-control[data-tone="׳׳׳×׳™׳ ׳׳×׳©׳׳•׳ ׳¨׳׳©׳•׳"],
.status-control[data-tone="׳׳׳×׳™׳ ׳׳׳™׳©׳•׳¨ ׳׳ ׳”׳"],
.status-control[data-tone="׳׳׳×׳™׳ ׳׳׳©׳׳•׳—"],
.status-control[data-tone="׳׳•׳§׳₪׳׳×"],
.status-control[data-tone="׳“׳—׳™׳™׳” ׳׳׳•׳¢׳“ ׳׳—׳¨"],
.status-control[data-tone="׳“׳—׳™׳” ׳׳׳•׳¢׳“ ׳׳—׳¨"],
.status-control[data-tone="׳׳™׳ ׳׳¢׳ ׳”"],
.status-control[data-tone="׳”׳•׳¨׳׳× ׳§׳‘׳¢"],
.tone-field[data-tone="׳׳•׳§׳₪׳׳×"] {
  color: #b54708 !important;
  background: #fef0c7 !important;
  border-color: #fedf89 !important;
}

.status-control[data-tone="׳¡׳™׳¨׳•׳‘"],
.status-control[data-tone="׳‘׳•׳˜׳׳”"],
.status-control[data-tone="׳—׳–׳¨"],
.status-control[data-tone="׳׳"],
.status-control[data-tone="׳׳ ׳₪׳¢׳™׳"],
.status-control[data-tone="׳׳ ׳׳¢׳•׳ ׳™׳™׳"],
.tone-field[data-tone="׳¡׳™׳¨׳•׳‘"],
.tone-field[data-tone="׳‘׳•׳˜׳׳”"] {
  color: #c01048 !important;
  background: #ffe4e8 !important;
  border-color: #fecdd6 !important;
}

.status-control[data-tone="׳”׳¡׳×׳™׳™׳׳”"],
.status-control[data-tone="׳ ׳©׳׳—"],
.status-control[data-tone="׳—׳“ ׳₪׳¢׳׳™"],
.tone-field[data-tone="׳”׳¡׳×׳™׳™׳׳”"],
.tone-field[data-tone="׳—׳“ ׳₪׳¢׳׳™"] {
  color: #175cd3 !important;
  background: #dbeafe !important;
  border-color: #bfdbfe !important;
}

.badge,
.status-badge {
  min-height: 24px !important;
  padding: 4px 10px !important;
  border: 1px solid transparent !important;
  border-radius: 999px !important;
  font-size: 12px !important;
  font-weight: 500 !important;
  line-height: 1.35 !important;
}

.badge.ok,
.status-badge.success {
  color: #3CB86C !important;
  background: #eef7e9 !important;
  border-color: #3CB86C !important;
}

.badge.danger,
.status-badge.danger {
  color: #c01048 !important;
  background: #ffe4e8 !important;
  border-color: #fecdd6 !important;
}

.status-badge.warning {
  color: #b54708 !important;
  background: #fef0c7 !important;
  border-color: #fedf89 !important;
}

.status-badge.info {
  color: #175cd3 !important;
  background: #dbeafe !important;
  border-color: #bfdbfe !important;
}

.status-badge.neutral {
  color: #475467 !important;
  background: #eef2f6 !important;
  border-color: #dde3ea !important;
}

.heat-field {
  border-color: transparent !important;
  box-shadow: none !important;
}

.heat-field input[type="range"] {
  min-height: 18px !important;
  height: 18px !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 999px !important;
  background: transparent !important;
  box-shadow: none !important;
  accent-color: #f59e0b !important;
}

.heat-field input[type="range"]:focus {
  border: 0 !important;
  box-shadow: none !important;
}

.heat-field input[type="range"]::-webkit-slider-runnable-track {
  height: 10px !important;
  border: 0 !important;
  border-radius: 999px !important;
  background: linear-gradient(90deg, #ef476f 0%, #f5c84c 34%, #3CB86C 66%, #38bdf8 100%) !important;
}

.heat-field input[type="range"]::-webkit-slider-thumb {
  appearance: none !important;
  width: 20px !important;
  height: 20px !important;
  margin-top: -5px !important;
  border: 3px solid #ffffff !important;
  border-radius: 50% !important;
  background: #0f2742 !important;
  box-shadow: 0 3px 10px rgba(15, 39, 66, 0.26) !important;
}

.heat-field input[type="range"]::-moz-range-track {
  height: 10px !important;
  border: 0 !important;
  border-radius: 999px !important;
  background: linear-gradient(90deg, #ef476f 0%, #f5c84c 34%, #3CB86C 66%, #38bdf8 100%) !important;
}

.widget-head {
  margin-bottom: 4px !important;
}

.widget-toolbar-add {
  margin-inline-start: auto !important;
  color: #175cd3 !important;
  background: #eff6ff !important;
  border-color: #bfdbfe !important;
  font-size: 12px !important;
  font-weight: 500 !important;
  white-space: nowrap !important;
}

.widget-page-controls,
.widget-page-footer {
  display: flex !important;
  align-items: center !important;
  flex-wrap: wrap !important;
  gap: 6px !important;
}

.widget-page-controls {
  margin-inline-start: auto !important;
}

.widget-page-footer {
  justify-content: flex-start !important;
  margin-top: 7px !important;
  padding: 0 4px !important;
  color: #7b8798 !important;
  font-size: 11px !important;
}

.widget-page-footer label {
  display: inline-flex !important;
  align-items: center !important;
  gap: 5px !important;
  margin: 0 !important;
  color: #7b8798 !important;
  font-size: 11px !important;
  font-weight: 500 !important;
}

.widget-page-controls select,
.widget-page-footer select,
.widget-page-footer input {
  width: auto !important;
  min-width: 54px !important;
  height: 24px !important;
  min-height: 24px !important;
  padding: 0 6px !important;
  border-color: #e3e9f3 !important;
  border-radius: 6px !important;
  color: #667085 !important;
  font-size: 11px !important;
  font-weight: 500 !important;
  box-shadow: none !important;
}

.widget-page-info {
  color: #7b8798 !important;
  font-size: 11px !important;
  font-weight: 500 !important;
  white-space: nowrap !important;
}

.widget-page-footer .table-result-count {
  color: #7b8798 !important;
  font-size: 11px !important;
  font-weight: 500 !important;
}

.widget-page-footer button {
  width: 22px !important;
  min-width: 22px !important;
  height: 22px !important;
  min-height: 22px !important;
  border-radius: 6px !important;
  color: #667085 !important;
  background: transparent !important;
  border-color: #e3e9f3 !important;
  font-size: 13px !important;
}

.widget-page-controls button:disabled,
.widget-page-footer button:disabled {
  opacity: 0.42 !important;
  cursor: default !important;
}

.widgets .table-toolbar-meta {
  justify-content: flex-start !important;
}

.widget-table-tools .table-toolbar-meta {
  justify-content: space-between !important;
}

.widgets .table-result-count {
  margin-inline-start: 0 !important;
}

.widget-table-tools .table-result-count {
  margin-inline-start: 0 !important;
}

.widget-table td,
.widget-table th {
  white-space: normal !important;
  overflow: visible !important;
  text-overflow: clip !important;
}

.widget-table .entity-cell {
  display: contents !important;
}

.widget-table .avatar,
.widget-table .entity-copy small {
  display: none !important;
}

.widget-table .entity-copy,
.widget-table .entity-copy strong {
  display: inline !important;
  white-space: normal !important;
  overflow: visible !important;
  text-overflow: clip !important;
}

.widget-prayer-table th:first-child,
.widget-prayer-table td:first-child {
  width: 34px !important;
  padding-inline: 4px 2px !important;
}

.widget-prayer-table .prayer-name-cell {
  min-width: 170px !important;
  padding-inline-start: 4px !important;
  padding-inline-end: 2px !important;
  white-space: normal !important;
  overflow: visible !important;
  text-overflow: clip !important;
  font-size: 13.5px !important;
  font-weight: 500 !important;
  line-height: 1.35 !important;
}

.widget-prayer-table .entity-cell,
.widget-prayer-table .avatar {
  display: none !important;
}

.heat-field input[type="range"]::-moz-range-thumb {
  width: 16px !important;
  height: 16px !important;
  border: 3px solid #ffffff !important;
  border-radius: 50% !important;
  background: #0f2742 !important;
  box-shadow: 0 3px 10px rgba(15, 39, 66, 0.26) !important;
}

/* Quiet product polish: reduce visual noise without changing layout. */
.status-pill,
.status-control,
.tone-field,
.badge,
.status-badge,
.chip {
  height: 38px !important;
  min-height: 38px !important;
  padding-block: 0 !important;
  padding-inline: 16px !important;
  border-radius: 999px !important;
  font-size: 14px !important;
  font-weight: 500 !important;
  box-shadow: none !important;
}

label,
.form-label {
  color: #42526b !important;
  font-size: 15px !important;
  font-weight: 500 !important;
  margin-bottom: 6px !important;
}

input,
select,
textarea {
  border: 1px solid #d9e2f2 !important;
  box-shadow: none !important;
}

input:focus,
select:focus,
textarea:focus {
  border-color: rgba(14, 165, 233, 0.72) !important;
  box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.12) !important;
}

th,
.data-grid th,
.widget-table th {
  background: #f7f9fc !important;
  font-weight: 500 !important;
}

table tr,
.data-grid tbody tr,
.widget-table tbody tr {
  transition: background 0.15s ease !important;
}

table tr:hover,
table tr:hover td,
.data-grid-panel .data-grid tbody tr:hover td,
.widget-table tbody tr:hover,
.widget-table tbody tr:hover td {
  background: #fafcff !important;
}

.widget-table .widget-empty-row td {
  height: 54px !important;
  color: #94a3b8 !important;
  font-weight: 500 !important;
  text-align: center !important;
}

/* Tighten form rhythm next to dense data tables. */
.form-group,
.form-grid label,
.donor-entry-form label,
.record-form label {
  margin-bottom: 18px !important;
}

label,
.form-label {
  margin-bottom: 4px !important;
}

input,
select {
  height: 48px !important;
  min-height: 48px !important;
}

textarea {
  min-height: 82px !important;
}

.form-grid,
.donor-entry-form,
.donor-form-grid {
  row-gap: 8px !important;
}

.status-control,
.tone-field {
  height: 48px !important;
  min-height: 48px !important;
}

/* Compact widget table title area. */
.widget-table-tools {
  min-height: 0 !important;
  padding: 0 4px 2px !important;
  margin: 0 0 2px !important;
  border: 0 !important;
  background: transparent !important;
}

.widget-table-tools .table-toolbar-meta {
  min-height: 32px !important;
  display: flex !important;
  direction: rtl !important;
  justify-content: space-between !important;
  align-items: center !important;
  gap: 8px !important;
  padding: 0 !important;
}

.widget-table-tools .table-toolbar-title {
  order: 1 !important;
  flex: 1 1 auto !important;
  margin: 0 !important;
  direction: rtl !important;
  color: #42526b !important;
  font-size: 12.5px !important;
  font-weight: 500 !important;
  line-height: 1.2 !important;
  text-align: right !important;
}

.widget-table-tools .widget-toolbar-add {
  order: 2 !important;
  flex: 0 0 auto !important;
  margin: 0 !important;
  width: auto !important;
  min-width: 82px !important;
  height: 30px !important;
  min-height: 30px !important;
  padding: 0 10px !important;
  border-radius: 8px !important;
}

.widget-table-tools + .data-grid {
  margin-top: 0 !important;
}

/* Gentle compact mode for forms only. */
.form-group {
  margin-bottom: 14px !important;
}

.form-label,
label {
  margin-bottom: 4px !important;
  font-size: 14px !important;
}

input,
select,
textarea,
.form-control {
  height: 42px !important;
  min-height: 42px !important;
  padding-inline: 14px !important;
  border-radius: 10px !important;
  font-size: 15px !important;
}

textarea {
  min-height: 96px !important;
  padding-top: 12px !important;
}

.status-pill,
.badge,
.chip,
.status-badge {
  height: 34px !important;
  min-height: 34px !important;
  padding-inline: 14px !important;
  font-size: 13px !important;
  border-radius: 999px !important;
}

.status-pill {
  font-weight: 500 !important;
  opacity: 0.92 !important;
}

.status-pill,
.badge,
.chip,
select.status-pill,
.status-control,
.tone-field,
.status-badge {
  width: fit-content !important;
  max-width: 100% !important;
  height: 30px !important;
  min-height: 30px !important;
  padding-block: 0 !important;
  padding-inline: 12px !important;
  border-radius: 10px !important;
  font-size: 13px !important;
  font-weight: 500 !important;
  line-height: 1 !important;
}

.status-pill,
.badge,
.chip,
select.status-pill,
.status-control,
.tone-field,
.status-badge {
  height: 36px !important;
  min-height: 36px !important;
  padding-inline: 16px !important;
  border-radius: 14px !important;
  font-size: 14px !important;
  line-height: 1.2 !important;
  display: inline-flex !important;
  align-items: center !important;
}

select.status-pill,
select.status-control,
select.tone-field,
form select.status-pill,
form select.status-control,
form select.tone-field {
  width: auto !important;
  min-width: 0 !important;
}

.status-pill,
.badge,
.chip,
select.status-pill,
.status-control,
.tone-field,
.status-badge {
  height: 42px !important;
  min-height: 42px !important;
  padding-inline: 16px !important;
  align-items: center !important;
}

.modal-close-btn {
  width: 38px !important;
  height: 38px !important;
  min-height: 38px !important;
  padding: 0 !important;
  border-radius: 10px !important;
  font-size: 22px !important;
  line-height: 1 !important;
}

.modal-footer {
  display: flex !important;
  justify-content: flex-start !important;
  gap: 10px !important;
  padding: 12px 20px 16px !important;
  border-top: 1px solid #e6eef8 !important;
  background: #ffffff !important;
}

.modal-footer button {
  height: 38px !important;
  min-height: 38px !important;
  border-radius: 10px !important;
  padding-inline: 18px !important;
  border: 1px solid #d9e2f2 !important;
  color: #42526b !important;
  background: #fcfdff !important;
}

.modal-footer .primary {
  color: #ffffff !important;
  background: #2563eb !important;
  border-color: #2563eb !important;
}

.modal-panel {
  position: relative !important;
}

.modal-unsaved-confirm {
  position: absolute !important;
  inset: 0 !important;
  z-index: 80 !important;
  display: grid !important;
  place-items: center !important;
  padding: 24px !important;
  background: rgba(31, 42, 68, 0.24) !important;
  backdrop-filter: blur(3px) !important;
}

.modal-unsaved-card {
  width: min(460px, 100%) !important;
  padding: 22px !important;
  border: 1px solid #e6eef8 !important;
  border-radius: 16px !important;
  background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%) !important;
  box-shadow: 0 18px 46px rgba(31, 42, 68, 0.16) !important;
  direction: rtl !important;
}

.modal-unsaved-kicker {
  display: inline-flex !important;
  align-items: center !important;
  height: 28px !important;
  margin-bottom: 10px !important;
  padding-inline: 10px !important;
  border: 1px solid #d9e2f2 !important;
  border-radius: 999px !important;
  background: #f7f9fc !important;
  color: #42526b !important;
  font-size: 12px !important;
  font-weight: 500 !important;
}

.modal-unsaved-card strong {
  display: block !important;
  margin-bottom: 7px !important;
  color: #1f2a44 !important;
  font-size: 17px !important;
  font-weight: 500 !important;
}

.modal-unsaved-card p {
  margin: 0 0 18px !important;
  color: #42526b !important;
  font-size: 14px !important;
  line-height: 1.55 !important;
}

.modal-unsaved-actions {
  display: flex !important;
  justify-content: flex-start !important;
  gap: 10px !important;
}

.modal-unsaved-actions button {
  height: 38px !important;
  min-height: 38px !important;
  border-radius: 10px !important;
  padding-inline: 18px !important;
}

.modal-unsaved-actions .primary {
  color: #ffffff !important;
  background: #2563eb !important;
  border-color: #2563eb !important;
}

.modal-unsaved-actions .ghost {
  border: 1px solid #d9e2f2 !important;
  background: #ffffff !important;
  color: #42526b !important;
}

.modal-content form:not(.inline-form) > button.primary:last-child,
.modal-content form:not(.inline-form) > button.primary.wide:last-child,
.modal-content form:not(.inline-form) > .wide.primary:last-child {
  display: none !important;
}

.journal-table td,
.journal-table th {
  vertical-align: middle !important;
}

.journal {
  overflow: hidden !important;
  border: 1px solid #e6eef8 !important;
  border-radius: 14px !important;
  background: #ffffff !important;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.05) !important;
}

.modal-panel:has(.journal-detail-card) {
  width: min(1180px, calc(100vw - 48px)) !important;
  min-height: min(760px, calc(100vh - 48px)) !important;
}

.modal-panel:has(.journal-detail-card) .modal-body {
  grid-template-columns: 1fr !important;
  min-height: 620px !important;
}

.modal-panel:has(.journal-detail-card) .modal-summary {
  display: none !important;
}

.modal-panel:has(.journal-detail-card) .modal-content,
.journal-detail-card {
  min-height: 600px !important;
}

.journal > .section-head {
  margin: 0 !important;
  padding: 14px 18px !important;
  border-bottom: 1px solid #e6eef8 !important;
  background: #ffffff !important;
}

.journal-settings-panel {
  overflow: visible !important;
}

.journal-settings-form {
  overflow: visible !important;
}

.modal-content form:not(.inline-form) > .journal-form-actions:last-child {
  display: flex !important;
}

.journal-form-actions {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.86), #ffffff 35%);
  bottom: 0;
  justify-content: flex-start;
  padding: 14px 0 2px;
  position: sticky;
  z-index: 12;
}

.journal-form-actions .primary {
  min-height: 40px;
  padding-inline: 22px;
}

.journal-settings-form [data-journal-field-block][hidden],
[data-journal-field-block][hidden] {
  display: none !important;
}

.journal-later-policy {
  align-items: stretch !important;
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 12px !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 12px !important;
  padding: 14px 16px !important;
}

.journal-later-policy .checkbox-row {
  align-items: flex-start !important;
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 8px !important;
  margin: 0 !important;
}

.journal-later-policy .checkbox-row small {
  color: #64748b !important;
  display: block !important;
  flex-basis: 100% !important;
  font-size: 12px !important;
  line-height: 1.45 !important;
  margin-inline-start: 26px !important;
}

.journal-later-policy-options {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 10px !important;
  padding-inline-start: 26px !important;
}

.journal-later-policy-options label {
  align-items: center !important;
  background: #f8fafc !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 999px !important;
  color: #1f2a44 !important;
  display: inline-flex !important;
  font-weight: 600 !important;
  gap: 8px !important;
  min-height: 36px !important;
  padding: 7px 12px !important;
}

.modal-panel.journal-date-expanded-modal,
.modal-panel:has([data-journal-field-block="statusDateRange"]:not([hidden])),
.modal-panel:has([data-journal-field-block="lastValueDateRange"]:not([hidden])),
.modal-panel:has([data-journal-field-block="callResultDateRange"]:not([hidden])) {
  width: min(1180px, calc(100vw - 40px)) !important;
  min-height: min(760px, calc(100vh - 40px)) !important;
}

.modal-panel.journal-date-expanded-modal .modal-body,
.modal-panel:has([data-journal-field-block="statusDateRange"]:not([hidden])) .modal-body,
.modal-panel:has([data-journal-field-block="lastValueDateRange"]:not([hidden])) .modal-body,
.modal-panel:has([data-journal-field-block="callResultDateRange"]:not([hidden])) .modal-body {
  grid-template-columns: 1fr !important;
  overflow: auto !important;
}

.modal-panel.journal-date-expanded-modal .modal-summary,
.modal-panel:has([data-journal-field-block="statusDateRange"]:not([hidden])) .modal-summary,
.modal-panel:has([data-journal-field-block="lastValueDateRange"]:not([hidden])) .modal-summary,
.modal-panel:has([data-journal-field-block="callResultDateRange"]:not([hidden])) .modal-summary {
  display: none !important;
}

.modal-panel.journal-date-expanded-modal .modal-content,
.modal-panel:has([data-journal-field-block="statusDateRange"]:not([hidden])) .modal-content,
.modal-panel:has([data-journal-field-block="lastValueDateRange"]:not([hidden])) .modal-content,
.modal-panel:has([data-journal-field-block="callResultDateRange"]:not([hidden])) .modal-content {
  min-height: 620px !important;
  overflow: visible !important;
}

.modal-panel.journal-date-expanded-modal .date-calendar,
.modal-panel:has([data-journal-field-block="statusDateRange"]:not([hidden])) .date-calendar,
.modal-panel:has([data-journal-field-block="lastValueDateRange"]:not([hidden])) .date-calendar,
.modal-panel:has([data-journal-field-block="callResultDateRange"]:not([hidden])) .date-calendar {
  z-index: 90 !important;
}

.journal-settings-head {
  grid-column: 1 / -1 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 12px !important;
  margin-bottom: 2px !important;
}

.journal-settings-head h3 {
  margin: 0 !important;
  color: #1f2a44 !important;
  font-size: 16px !important;
}

.journal-field-picker {
  position: relative !important;
  z-index: 25 !important;
}

.journal-add-field-btn {
  height: 36px !important;
  min-height: 36px !important;
  padding-inline: 14px !important;
  border-radius: 10px !important;
  border: 1px solid #d9e2f2 !important;
  color: #42526b !important;
  background: #fcfdff !important;
  font-size: 13px !important;
  font-weight: 500 !important;
}

.journal-field-picker-menu {
  position: absolute !important;
  top: calc(100% + 8px) !important;
  left: 0 !important;
  width: min(320px, calc(100vw - 64px)) !important;
  max-height: 340px !important;
  overflow: auto !important;
  display: none !important;
  padding: 10px !important;
  border: 1px solid #e6eef8 !important;
  border-radius: 14px !important;
  background: #ffffff !important;
  box-shadow: 0 18px 42px rgba(15, 23, 42, 0.12) !important;
}

.journal-field-picker.open .journal-field-picker-menu {
  display: block !important;
}

.week-tabs {
  height: 48px !important;
  display: flex !important;
  direction: rtl !important;
  align-items: stretch !important;
  overflow: hidden !important;
  background: #0ea5e9 !important;
  border-radius: 14px 14px 0 0 !important;
}

.journal > .section-head + .week-tabs {
  border-radius: 0 !important;
}

.week-tab {
  min-height: 48px !important;
  height: 48px !important;
  padding: 0 22px !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  color: #ffffff !important;
  font-size: 14px !important;
  font-weight: 500 !important;
  box-shadow: none !important;
}

.week-tab:hover,
.week-tab:focus-visible {
  background: rgba(255, 255, 255, 0.12) !important;
  filter: none !important;
}

.week-tab.active {
  background: rgba(255, 255, 255, 0.18) !important;
  font-weight: 500 !important;
}

.week-tab-content {
  padding: 16px !important;
  background: #ffffff !important;
}

.incentives-table td,
.incentives-table th {
  vertical-align: middle !important;
}

.incentive-detail-row > td {
  padding: 0 !important;
  background: #fbfdff !important;
}

.incentive-detail-table {
  padding: 12px 16px 16px !important;
  border-top: 1px solid #e7edf7 !important;
}

.compact-section-head {
  min-height: 0 !important;
  margin-bottom: 8px !important;
  padding: 0 !important;
}

.compact-section-head h3 {
  margin: 0 !important;
  font-size: 15px !important;
  color: #42526b !important;
}

.gift-tracking-table {
  table-layout: auto !important;
}

/* Incentives table: match the clean records-table product style. */
.data-grid-panel:has(.incentives-table) {
  direction: rtl !important;
  background: #ffffff !important;
  border: 1px solid #e6eef8 !important;
  border-radius: 14px !important;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.05) !important;
  overflow: hidden !important;
}

.data-grid-panel:has(.incentives-table) > .table-search-row {
  gap: 0 !important;
  min-height: 0 !important;
  padding: 0 !important;
  border-bottom: 1px solid #e6eef8 !important;
  border-radius: 16px 16px 0 0 !important;
  background: #ffffff !important;
}

.data-grid-panel:has(.incentives-table) .table-toolbar-meta {
  display: flex !important;
  direction: rtl !important;
  align-items: center !important;
  justify-content: space-between !important;
  min-height: 46px !important;
  padding: 0 16px !important;
  border-bottom: 1px solid #f0f4fa !important;
  background: #ffffff !important;
}

.data-grid-panel:has(.incentives-table) .table-toolbar-title {
  color: #42526b !important;
  font-size: 15px !important;
  font-weight: 500 !important;
  line-height: 1.2 !important;
  text-align: right !important;
}

.data-grid-panel:has(.incentives-table) .table-result-count {
  margin-inline-start: 0 !important;
  color: #64748b !important;
  font-size: 12px !important;
  font-weight: 500 !important;
  text-align: left !important;
  white-space: nowrap !important;
}

.data-grid-panel:has(.incentives-table) .table-filter-controls {
  display: flex !important;
  direction: rtl !important;
  gap: 8px !important;
  align-items: center !important;
  justify-content: flex-start !important;
  flex-wrap: wrap !important;
  padding: 10px 16px !important;
  background: #fbfdff !important;
}

.data-grid-panel:has(.incentives-table) .table-filter-controls input,
.data-grid-panel:has(.incentives-table) .table-filter-controls select,
.data-grid-panel:has(.incentives-table) .table-filter-controls button {
  height: 34px !important;
  min-height: 34px !important;
  border-radius: 9px !important;
  border: 1px solid #d9e2f2 !important;
  background: #fcfdff !important;
  color: #42526b !important;
  font-size: 13px !important;
  font-weight: 500 !important;
  padding-inline: 10px !important;
  box-shadow: none !important;
}

.data-grid-panel:has(.incentives-table) .table-filter-controls input[type="search"] {
  min-width: min(260px, 100%) !important;
}

.data-grid-panel:has(.incentives-table) .table-filter-settings {
  width: 34px !important;
  min-width: 34px !important;
  padding: 0 !important;
}

.data-grid-panel:has(.incentives-table) .filter-field-menu {
  border: 1px solid #e6eef8 !important;
  border-radius: 12px !important;
  box-shadow: 0 18px 38px rgba(37, 99, 235, 0.11) !important;
}

.incentives-table {
  width: 100% !important;
  border-collapse: collapse !important;
  direction: rtl !important;
  border-spacing: 0 !important;
  margin: 0 !important;
  background: #ffffff !important;
}

.incentives-table thead,
.incentives-table th {
  background: #f7f9fc !important;
}

.incentives-table th {
  height: 38px !important;
  color: #42526b !important;
  font-weight: 500 !important;
  font-size: 13px !important;
  border-bottom: 1px solid #edf2f7 !important;
  padding: 0 12px !important;
  text-align: right !important;
}

.incentives-table tbody tr:not(.incentive-detail-row) {
  height: 46px !important;
  border-bottom: 1px solid #f1f5f9 !important;
  transition: background 0.15s ease !important;
}

.incentives-table tbody tr:not(.incentive-detail-row):hover,
.incentives-table tbody tr:not(.incentive-detail-row):hover td {
  background: #fafcff !important;
}

.incentives-table td {
  height: 46px !important;
  padding: 0 12px !important;
  color: #1f2a44 !important;
  font-size: 13.5px !important;
  border-bottom: 1px solid #f1f5f9 !important;
  background: #ffffff !important;
}

.incentives-table .status-badge,
.incentives-table .badge,
.incentive-detail-table .status-badge,
.incentive-detail-table .badge {
  height: 28px !important;
  min-height: 28px !important;
  padding-inline: 11px !important;
  border-radius: 999px !important;
  font-size: 12.5px !important;
  font-weight: 500 !important;
  line-height: 1.1 !important;
}

.incentives-table .row-actions {
  gap: 6px !important;
  justify-content: center !important;
  min-width: 108px !important;
}

.incentives-table .row-actions button,
.incentives-table .icon-btn,
.incentive-detail-table button.icon-btn {
  width: 28px !important;
  min-width: 28px !important;
  height: 28px !important;
  min-height: 28px !important;
  padding: 0 !important;
  border-radius: 8px !important;
  border: 1px solid #d9e2f2 !important;
  background: #ffffff !important;
  color: #42526b !important;
  box-shadow: none !important;
}

.incentives-table .incentive-expand-btn {
  font-size: 18px !important;
  font-weight: 500 !important;
  line-height: 1 !important;
}

.incentives-table .danger-icon-btn {
  color: #b42318 !important;
  border-color: #fecaca !important;
  background: #fff7f7 !important;
}

.incentive-detail-row > td {
  height: auto !important;
  padding: 0 !important;
  background: #eaf4ff !important;
  border-top: 1px solid #c7defa !important;
  border-bottom: 1px solid #c7defa !important;
  width: 100% !important;
}

.incentive-detail-table {
  margin: 0 !important;
  padding: 10px 16px 12px !important;
  background: #eaf4ff !important;
  border-top: 1px solid #d8e9ff !important;
}

.incentive-detail-table .compact-section-head {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 12px !important;
  margin: 0 0 8px !important;
  padding: 0 !important;
}

.incentive-detail-table .compact-section-head h3 {
  color: #42526b !important;
  font-size: 13.5px !important;
  font-weight: 500 !important;
}

.incentive-detail-table .compact-section-head button {
  height: 30px !important;
  min-height: 30px !important;
  border: 1px solid #d9e2f2 !important;
  border-radius: 9px !important;
  background: #ffffff !important;
  color: #42526b !important;
  font-size: 12.5px !important;
  padding-inline: 10px !important;
  box-shadow: none !important;
}

.incentive-detail-table table {
  width: 100% !important;
  overflow: hidden !important;
  border: 1px solid #c7defa !important;
  border-radius: 10px !important;
  background: #ffffff !important;
}

.incentive-detail-table .incentive-pill-select {
  width: fit-content !important;
  min-width: 126px !important;
  height: 32px !important;
  min-height: 32px !important;
  padding: 0 14px !important;
  border-radius: 999px !important;
  font-size: 12.5px !important;
  font-weight: 500 !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.75), 0 7px 18px rgba(30, 64, 175, 0.08) !important;
}

.incentive-detail-table .incentive-pill-select[data-tone="׳׳©׳¨׳׳™"],
.incentive-detail-table .incentive-pill-select[data-tone="׳©׳•׳׳"] {
  color: #175cd3 !important;
  background: #dbeafe !important;
  border-color: #93c5fd !important;
}

.incentive-detail-table .incentive-pill-select[data-tone="׳×׳׳•׳©"] {
  color: #7c3aed !important;
  background: #ede9fe !important;
  border-color: #c4b5fd !important;
}

.incentive-detail-table .incentive-pill-select[data-tone="׳׳‘׳—׳™׳¨׳”"],
.incentive-detail-table .incentive-pill-select[data-tone="׳׳׳×׳™׳ ׳׳×׳©׳׳•׳"] {
  color: #b54708 !important;
  background: #fef0c7 !important;
  border-color: #fedf89 !important;
}

.table-filter-field.date-picker-field {
  position: relative !important;
}

.table-filter-field.date-picker-field .date-calendar {
  inset-inline-start: auto !important;
  inset-inline-end: 0 !important;
  top: calc(100% + 6px) !important;
  width: min(340px, calc(100vw - 36px)) !important;
  z-index: 220 !important;
}

.incentive-detail-table th {
  height: 34px !important;
  padding: 0 10px !important;
  font-size: 12.5px !important;
}

.incentive-detail-table td {
  height: 40px !important;
  padding: 0 10px !important;
  font-size: 13px !important;
}

/* Global table filter drawer and compact table badges. */
.table-filter-drawer-toggle {
  position: relative !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  height: 34px !important;
  min-height: 34px !important;
  padding-inline: 12px !important;
  border: 1px solid #d9e2f2 !important;
  border-radius: 10px !important;
  background: #fcfdff !important;
  color: #42526b !important;
  font-size: 13px !important;
  font-weight: 500 !important;
  box-shadow: none !important;
}

.table-toolbar-add-new {
  height: 34px !important;
  min-height: 34px !important;
  padding-inline: 14px !important;
  border-radius: 10px !important;
  font-size: 13px !important;
  font-weight: 500 !important;
}

.table-filter-drawer-toggle::before {
  content: "ג•";
  font-size: 14px;
  line-height: 1;
}

.table-filter-drawer-toggle.has-active-filters {
  border-color: #9db8e8 !important;
  background: #f7f9fc !important;
}

.table-filter-drawer-toggle.has-active-filters::after {
  content: attr(data-active-filters);
  display: inline-grid;
  place-items: center;
  min-width: 18px;
  height: 18px;
  padding-inline: 5px;
  border-radius: 999px;
  background: #42526b;
  color: #ffffff;
  font-size: 11px;
  font-weight: 500;
}

.table-filter-active-dot {
  display: none !important;
}

.table-filter-drawer {
  position: fixed !important;
  z-index: 45 !important;
  top: 96px !important;
  bottom: 24px !important;
  left: 24px !important;
  right: auto !important;
  width: min(340px, calc(100vw - 40px)) !important;
  padding: 0 !important;
  border: 1px solid #e6eef8 !important;
  border-radius: 14px !important;
  background: #ffffff !important;
  box-shadow: 0 18px 42px rgba(15, 23, 42, 0.12) !important;
  overflow: auto !important;
}

.table-search-row {
  position: relative !important;
}

.table-filter-drawer[hidden] {
  display: none !important;
}

.table-filter-drawer-head {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 10px !important;
  padding: 12px 14px !important;
  border-bottom: 1px solid #edf2f7 !important;
  background: #ffffff !important;
}

.table-filter-drawer-head strong {
  color: #42526b !important;
  font-size: 14px !important;
  font-weight: 500 !important;
}

.table-filter-drawer .table-filter-controls,
.data-grid-panel .table-filter-drawer .table-filter-controls,
.data-grid-panel:has(.incentives-table) .table-filter-drawer .table-filter-controls {
  display: grid !important;
  grid-template-columns: 1fr !important;
  gap: 10px !important;
  padding: 14px !important;
  background: #ffffff !important;
}

.table-filter-field {
  display: grid !important;
  gap: 5px !important;
  width: 100% !important;
  color: #42526b !important;
  font-size: 12.5px !important;
  font-weight: 500 !important;
}

.table-filter-field span {
  line-height: 1.2 !important;
}

.table-filter-field-range {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important;
}

.table-filter-field-range span,
.table-filter-field-range .date-calendar {
  grid-column: 1 / -1 !important;
}

.table-filter-drawer .table-filter-controls input,
.table-filter-drawer .table-filter-controls select,
.table-filter-drawer .table-filter-controls button,
.data-grid-panel .table-filter-drawer .table-filter-controls input,
.data-grid-panel .table-filter-drawer .table-filter-controls select,
.data-grid-panel .table-filter-drawer .table-filter-controls button {
  width: 100% !important;
  min-width: 0 !important;
  height: 38px !important;
  min-height: 38px !important;
  border-radius: 10px !important;
  border: 1px solid #d9e2f2 !important;
  background: #fcfdff !important;
  color: #42526b !important;
  font-size: 13px !important;
  box-shadow: none !important;
}

.table-filter-drawer .table-clear-btn {
  background: #f7f9fc !important;
  font-weight: 500 !important;
}

.table-filter-drawer .table-filter-settings {
  display: none !important;
}

.table-filter-drawer .filter-field-menu {
  top: auto !important;
  inset-inline-start: 14px !important;
  inset-block-end: 12px !important;
}

.data-grid td .status-badge,
.data-grid td .badge,
.widget-table td .status-badge,
.widget-table td .badge {
  width: fit-content !important;
  max-width: 100% !important;
  height: 26px !important;
  min-height: 26px !important;
  padding-inline: 10px !important;
  border-radius: 999px !important;
  font-size: 12px !important;
  font-weight: 500 !important;
  line-height: 1 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  vertical-align: middle !important;
}

.journal-analytics-grid {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)) !important;
  gap: 14px !important;
  margin: 14px 0 !important;
}

.journal-chart-card {
  padding: 14px !important;
  border: 1px solid #e6eef8 !important;
  border-radius: 12px !important;
  background: #fbfdff !important;
}

.journal-chart-card h4 {
  margin: 0 0 10px !important;
  color: #42526b !important;
  font-size: 14px !important;
}

.gift-tracking-table .gift-return-reason {
  min-width: 280px !important;
  width: 30ch !important;
}

.gift-tracking-table .gift-return-reason .inline-form {
  display: grid !important;
  grid-template-columns: minmax(190px, 1fr) auto !important;
  align-items: center !important;
  gap: 8px !important;
  min-width: 260px !important;
}

.gift-tracking-table .gift-return-reason input[name="returnReason"] {
  width: 100% !important;
  min-width: 190px !important;
}

/* CRM design system refinement: unified buttons and data-table cards. */
.main button:not(.nav-category):not(.nav-item):not(.week-tab):not(.calendar-day),
.modal-panel button:not(.week-tab):not(.calendar-day),
.table-filter-drawer button,
.btn {
  height: 38px !important;
  min-height: 38px !important;
  padding-inline: 16px !important;
  border: 1px solid transparent !important;
  border-radius: 999px !important;
  font-size: 14px !important;
  font-weight: 500 !important;
  line-height: 1 !important;
  transition: all 0.15s ease !important;
}

.primary,
button.primary,
.btn-primary,
.modal-footer .primary,
.modal-unsaved-actions .primary {
  color: #ffffff !important;
  background: #5d8cf3 !important;
  border-color: #5d8cf3 !important;
  box-shadow: 0 4px 12px rgba(93, 140, 243, 0.22) !important;
}

.primary:hover,
button.primary:hover,
.btn-primary:hover,
.modal-footer .primary:hover,
.modal-unsaved-actions .primary:hover {
  background: #4f7ee8 !important;
  border-color: #4f7ee8 !important;
}

.ghost,
button.ghost,
.btn-secondary,
.modal-footer .ghost,
.modal-unsaved-actions .ghost {
  color: #42526b !important;
  background: #ffffff !important;
  border-color: #d9e2f2 !important;
  box-shadow: none !important;
}

.ghost:hover,
button.ghost:hover,
.btn-secondary:hover,
.modal-footer .ghost:hover,
.modal-unsaved-actions .ghost:hover {
  background: #f8fbff !important;
}

.btn-success,
button.success,
.success-btn {
  color: #047857 !important;
  background: #dcfce7 !important;
  border-color: #bbf7d0 !important;
  box-shadow: none !important;
}

.btn-danger,
.danger-btn,
button.danger,
button[aria-label*="׳׳—׳™׳§׳”"],
button[title*="׳׳—׳™׳§׳”"] {
  color: #b91c1c !important;
  background: #fee2e2 !important;
  border-color: #fecaca !important;
  box-shadow: none !important;
}

.data-grid-panel,
.panel:has(> .table-search-row + table) {
  overflow: hidden !important;
  border: 1px solid #e6eef8 !important;
  border-radius: 18px !important;
  background: #ffffff !important;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.06) !important;
}

.data-grid-panel .table-search-row,
.panel > .table-search-row {
  min-height: 54px !important;
  padding: 10px 18px !important;
  border-bottom: 1px solid #edf2f7 !important;
  border-radius: 18px 18px 0 0 !important;
  background: #ffffff !important;
}

.table-toolbar-meta {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 12px !important;
  min-height: 38px !important;
  direction: rtl !important;
}

.table-toolbar-title {
  color: #0f172a !important;
  font-size: 14px !important;
  font-weight: 500 !important;
  white-space: nowrap !important;
}

.table-free-search {
  width: min(340px, 36vw) !important;
  min-width: 220px !important;
  height: 38px !important;
  min-height: 38px !important;
  border: 1px solid #d9e2f2 !important;
  border-radius: 999px !important;
  background: #fcfdff !important;
  font-size: 14px !important;
}

.table-toolbar-meta .table-result-count {
  margin-inline-start: auto !important;
  color: #64748b !important;
  font-size: 12.5px !important;
  font-weight: 500 !important;
  white-space: nowrap !important;
}

.table-filter-drawer-toggle,
.table-toolbar-add-new,
.table-filter-settings {
  height: 38px !important;
  min-height: 38px !important;
  border-radius: 999px !important;
}

.table-toolbar-add-new {
  border-radius: 10px !important;
}

.data-grid,
.records-like-table,
.journal-records-table {
  width: 100% !important;
  border-collapse: collapse !important;
  direction: rtl !important;
  background: #ffffff !important;
}

.data-grid thead,
.records-like-table thead,
.journal-records-table thead,
.data-grid th,
.records-like-table th,
.journal-records-table th {
  background: #f7f9fc !important;
  color: #42526b !important;
}

.data-grid th,
.records-like-table th,
.journal-records-table th {
  height: 42px !important;
  padding: 0 14px !important;
  border-bottom: 1px solid #e6eef8 !important;
  font-size: 13.5px !important;
  font-weight: 500 !important;
}

.data-grid tbody tr,
.records-like-table tbody tr,
.journal-records-table tbody tr {
  height: 54px !important;
  background: #ffffff !important;
  transition: background 0.15s ease !important;
}

.data-grid td,
.records-like-table td,
.journal-records-table td {
  height: 54px !important;
  padding: 0 14px !important;
  border-bottom: 1px solid #edf2f7 !important;
  background: transparent !important;
  color: #526173 !important;
  font-size: 14px !important;
}

.data-grid tbody tr:hover,
.data-grid tbody tr:hover td,
.records-like-table tbody tr:hover,
.records-like-table tbody tr:hover td,
.journal-records-table tbody tr:hover,
.journal-records-table tbody tr:hover td {
  background: #fafcff !important;
}

.data-grid tbody tr.selected,
.data-grid tbody tr.selected td,
.data-grid tbody tr:focus td,
.records-like-table tbody tr.selected,
.records-like-table tbody tr.selected td,
.journal-records-table tbody tr.selected,
.journal-records-table tbody tr.selected td {
  background: #f8fbff !important;
}

.row-actions,
.data-grid .row-actions,
.records-like-table .row-actions {
  display: table-cell !important;
  width: 44px !important;
  min-width: 44px !important;
  max-width: 44px !important;
  text-align: center !important;
  white-space: nowrap !important;
}

.row-actions .icon-btn,
.row-actions button,
.data-grid .row-actions button,
.data-grid td .icon-link,
.records-like-table .row-actions button,
.journal-records-table .icon-link,
.small-icon-btn,
.icon-btn {
  width: 32px !important;
  min-width: 32px !important;
  height: 32px !important;
  min-height: 32px !important;
  padding: 0 !important;
  border: 1px solid #e6eef8 !important;
  border-radius: 8px !important;
  background: #ffffff !important;
  color: #42526b !important;
  box-shadow: none !important;
}

.row-actions button[title*="׳”׳§׳¦׳"],
.row-actions button[title*="׳”׳§׳¦׳׳•׳×"],
.journal-table .row-actions button:not(.icon-btn) {
  width: auto !important;
  min-width: 0 !important;
  height: 28px !important;
  min-height: 28px !important;
  padding-inline: 10px !important;
  border-radius: 999px !important;
  background: #f1f5f9 !important;
  color: #42526b !important;
  border-color: #e6eef8 !important;
  font-size: 12.5px !important;
  font-weight: 500 !important;
}

.data-grid td:nth-child(n+4),
.journal-table td:nth-child(n+4),
.records-like-table td:nth-child(n+4) {
  color: #334155 !important;
  font-weight: 500 !important;
}

.data-grid td,
.records-like-table td,
.journal-records-table td,
.variable-bonus-table td,
.bonus-rules-table td,
.incentives-table td,
.incentive-achievement-table td {
  color: #526173 !important;
}

.data-grid td strong,
.records-like-table td strong,
.journal-records-table td strong,
.variable-bonus-table td strong,
.bonus-rules-table td strong,
.incentives-table td strong,
.incentive-achievement-table td strong {
  color: #334155 !important;
}

.data-grid td:empty,
.records-like-table td:empty,
.journal-records-table td:empty {
  color: #94a3b8 !important;
  font-weight: 500 !important;
}

.journal-records-table .status-badge.warning,
.journal-records-table .badge.warning,
.journal-records-table .status-badge,
.journal-records-table .badge {
  height: 28px !important;
  min-height: 28px !important;
  padding-inline: 10px !important;
  border: 0 !important;
  border-radius: 999px !important;
  background: #f1f5f9 !important;
  color: #42526b !important;
  font-size: 12.5px !important;
  font-weight: 500 !important;
  box-shadow: none !important;
}

.week-tab {
  border-radius: 0 !important;
  box-shadow: none !important;
}

.allocation-form,
.journal-detail-card .allocation-form {
  border: 1px solid #e6eef8 !important;
  border-radius: 14px !important;
  background: #fbfdff !important;
  box-shadow: none !important;
}

.journal-detail-card .allocation-form + .muted,
.journal-detail-card .allocation-form ~ table {
  background: #ffffff !important;
}

.journal-detail-card .allocation-form ~ table,
.journal-detail-card .week-tab-content table,
.variable-bonus-table,
.bonus-rules-table,
.incentive-achievement-table,
.incentives-table {
  overflow: hidden !important;
  border: 1px solid #e6eef8 !important;
  border-radius: 18px !important;
  background: #ffffff !important;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.06) !important;
}

.journal-detail-card .week-tab-content table thead,
.journal-detail-card .week-tab-content table th,
.variable-bonus-table thead,
.variable-bonus-table th,
.bonus-rules-table thead,
.bonus-rules-table th,
.incentive-achievement-table thead,
.incentive-achievement-table th,
.incentives-table thead,
.incentives-table th {
  background: #f7f9fc !important;
  color: #42526b !important;
}

.journal-detail-card .week-tab-content table td,
.journal-detail-card .week-tab-content table th,
.variable-bonus-table td,
.variable-bonus-table th,
.bonus-rules-table td,
.bonus-rules-table th,
.incentive-achievement-table td,
.incentive-achievement-table th,
.incentives-table td,
.incentives-table th {
  border-bottom: 1px solid #edf2f7 !important;
}

.journal-detail-card .week-tab-content table tbody tr:hover td,
.variable-bonus-table tbody tr:hover td,
.bonus-rules-table tbody tr:hover td,
.incentive-achievement-table tbody tr:hover td,
.incentives-table tbody tr:not(.incentive-detail-row):hover td {
  background: #fafcff !important;
}

.incentive-detail-row > td,
.incentive-detail-table {
  background: #eaf4ff !important;
}

.journal-detail-card .week-tab-content,
.journal-detail-card .week-tab-content .subpanel,
.journal-detail-card .week-tab-content table,
.journal-detail-card .week-tab-content td {
  background-color: #ffffff !important;
}

.journal-detail-card .week-tab-content .status-badge.warning,
.journal-detail-card .week-tab-content .badge.warning {
  background: #f1f5f9 !important;
  color: #42526b !important;
  border-color: #e6eef8 !important;
}

/* Final table and alert unification. */
.data-grid-panel,
.panel:has(> table),
.panel:has(> .table-search-row + table) {
  overflow: hidden !important;
  border: 1px solid #e6eef8 !important;
  border-radius: 18px !important;
  background: #ffffff !important;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.06) !important;
}

.panel table,
.data-grid,
.records-like-table,
.widget-table,
.incentives-table,
.variable-bonus-table,
.bonus-rules-table,
.incentive-achievement-table {
  width: 100% !important;
  border-collapse: collapse !important;
  direction: rtl !important;
  background: #ffffff !important;
}

.panel table thead,
.panel table th,
.data-grid th,
.records-like-table th,
.widget-table th {
  height: 42px !important;
  padding: 0 14px !important;
  border-bottom: 1px solid #e6eef8 !important;
  background: #f7f9fc !important;
  color: #42526b !important;
  font-size: 13.5px !important;
  font-weight: 500 !important;
}

.panel table tbody tr,
.data-grid tbody tr,
.records-like-table tbody tr,
.widget-table tbody tr {
  height: 54px !important;
  transition: background 0.15s ease !important;
}

.panel table td,
.data-grid td,
.records-like-table td,
.widget-table td {
  height: 54px !important;
  padding: 0 14px !important;
  border-bottom: 1px solid #edf2f7 !important;
  background: transparent !important;
  color: #526173 !important;
  font-size: 14px !important;
  font-weight: 500 !important;
}

.panel table tbody tr:hover,
.panel table tbody tr:hover td,
.data-grid tbody tr:hover,
.data-grid tbody tr:hover td,
.records-like-table tbody tr:hover,
.records-like-table tbody tr:hover td,
.widget-table tbody tr:hover,
.widget-table tbody tr:hover td {
  background: #fafcff !important;
}

.panel table tbody tr.selected,
.panel table tbody tr.selected td,
.data-grid tbody tr.selected,
.data-grid tbody tr.selected td,
.records-like-table tbody tr.selected,
.records-like-table tbody tr.selected td {
  background: #f8fbff !important;
}

.journal-table tbody tr.journal-complete-row,
.journal-table tbody tr.journal-complete-row td {
  background: #fff1f2 !important;
  color: #7f1d1d !important;
}

.journal-table tbody tr.journal-complete-row:hover,
.journal-table tbody tr.journal-complete-row:hover td {
  background: #ffe4e6 !important;
}

.system-alert-backdrop {
  position: fixed !important;
  inset: 0 !important;
  z-index: 2147483647 !important;
  display: grid !important;
  place-items: center !important;
  padding: 24px !important;
  background: rgba(31, 42, 68, 0.24) !important;
  backdrop-filter: blur(3px) !important;
}

.system-alert-card {
  width: min(460px, 100%) !important;
  padding: 22px !important;
  border: 1px solid #e6eef8 !important;
  border-radius: 16px !important;
  background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%) !important;
  box-shadow: 0 18px 46px rgba(31, 42, 68, 0.16) !important;
  direction: rtl !important;
}

.system-alert-kicker {
  display: inline-flex !important;
  align-items: center !important;
  height: 28px !important;
  margin-bottom: 10px !important;
  padding-inline: 10px !important;
  border: 1px solid #d9e2f2 !important;
  border-radius: 999px !important;
  background: #f7f9fc !important;
  color: #42526b !important;
  font-size: 12px !important;
  font-weight: 500 !important;
}

.system-alert-card strong {
  display: block !important;
  color: #1f2a44 !important;
  font-size: 16px !important;
  font-weight: 500 !important;
  line-height: 1.6 !important;
}

.system-alert-actions {
  display: flex !important;
  justify-content: flex-start !important;
  margin-top: 18px !important;
}

.system-alert-actions button {
  height: 38px !important;
  min-height: 38px !important;
  padding-inline: 18px !important;
  border-radius: 999px !important;
}

.managed-native-select {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  min-height: 1px !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

.managed-select {
  position: relative !important;
  width: 100% !important;
}

.managed-select-button {
  width: 100% !important;
  height: 42px !important;
  min-height: 42px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 10px !important;
  padding-inline: 14px !important;
  border: 1px solid #d9e2f2 !important;
  border-radius: 10px !important;
  background: #fcfdff !important;
  color: #42526b !important;
  font-size: 15px !important;
  font-weight: 500 !important;
  text-align: right !important;
}

.managed-select-button span {
  display: inline-flex !important;
  align-items: center !important;
  min-width: 0 !important;
}

.managed-select-button .status-badge {
  margin: 0 !important;
}

.choice-select,
.choice-select .managed-select-button,
.readonly-choice-display,
.call-result-select,
.call-result-select .managed-select-button {
  width: 100% !important;
  height: 44px !important;
  min-height: 44px !important;
  border-radius: 12px !important;
  background: #fcfdff !important;
  border: 1px solid #d9e2f2 !important;
  box-shadow: none !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  padding-inline: 10px !important;
}

.choice-select .managed-select-button span,
.readonly-choice-display span,
.call-result-select .managed-select-button span {
  display: inline-flex !important;
  align-items: center !important;
  flex: 1 1 auto !important;
  min-width: 0 !important;
  overflow: hidden !important;
  text-align: right !important;
}

.choice-select-value,
.call-result-select-value {
  display: inline-flex !important;
  align-items: center !important;
  min-width: 0 !important;
}

.record-meta-line {
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: center !important;
  gap: 8px 12px !important;
}

.record-meta-line > span {
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
}

.donor-card-link {
  white-space: nowrap !important;
}

.record-charge-summary {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 10px !important;
  margin-top: 10px !important;
}

.record-charge-summary > span {
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  min-height: 34px !important;
  padding: 6px 10px !important;
  border: 1px solid #dce8f6 !important;
  border-radius: 8px !important;
  background: #f8fbff !important;
  color: #18324d !important;
  font-weight: 500 !important;
}

.record-charge-summary strong {
  color: #60758d !important;
  font-size: 12px !important;
  font-weight: 500 !important;
}

.record-charge-summary em {
  color: #18324d !important;
  font-style: normal !important;
}

.record-bonus-snapshot {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 8px !important;
  margin-top: 10px !important;
}

.record-bonus-snapshot > span {
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  min-height: 32px !important;
  padding: 4px 10px !important;
  border: 1px solid #d9e2f2 !important;
  border-radius: 999px !important;
  background: #f8fbff !important;
  color: #334155 !important;
  font-size: 12px !important;
}

.record-bonus-snapshot strong {
  color: #64748b !important;
  font-weight: 500 !important;
}

.choice-select-value .status-badge,
.choice-select-value .status-pill,
.choice-select-value .chip,
.choice-select-value .badge,
.readonly-choice-display .status-badge,
.readonly-choice-display .status-pill,
.readonly-choice-display .chip,
.readonly-choice-display .badge,
.call-result-select-value .status-badge,
.call-result-select-value .status-pill,
.call-result-select-value .chip,
.call-result-select-value .badge {
  height: 32px !important;
  min-height: 32px !important;
  padding-inline: 14px !important;
  border-radius: 999px !important;
  font-size: 13px !important;
  font-weight: 500 !important;
  box-shadow: none !important;
}

.choice-dropdown,
.call-result-dropdown {
  inset-inline: 0 !important;
  width: 100% !important;
  min-width: 100% !important;
  max-height: min(320px, 55vh) !important;
  overflow-y: auto !important;
  margin-top: 6px !important;
  border-radius: 14px !important;
  background: #ffffff !important;
  border: 1px solid #e6eef8 !important;
  box-shadow: 0 14px 36px rgba(15, 23, 42, 0.14) !important;
  padding: 10px !important;
}

.choice-dropdown .managed-option-list,
.call-result-dropdown .managed-option-list {
  gap: 8px !important;
  padding: 0 !important;
}

.choice-dropdown .managed-option-value,
.call-result-dropdown .managed-option-value {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 100% !important;
  min-height: 38px !important;
  padding: 0 !important;
  border-radius: 999px !important;
  background: transparent !important;
}

.choice-dropdown .status-badge,
.choice-dropdown .status-pill,
.choice-dropdown .chip,
.choice-dropdown .badge,
.call-result-dropdown .status-badge,
.call-result-dropdown .status-pill,
.call-result-dropdown .chip,
.call-result-dropdown .badge {
  width: fit-content !important;
  min-width: 120px !important;
  height: 32px !important;
  min-height: 32px !important;
  justify-content: center !important;
  box-shadow: none !important;
}

.managed-select-button b {
  color: #5d8cf3 !important;
  font-size: 15px !important;
  line-height: 1 !important;
}

.managed-select-menu {
  position: absolute !important;
  inset-inline: 0 !important;
  top: calc(100% + 6px) !important;
  z-index: 140 !important;
  display: none !important;
  max-height: 280px !important;
  overflow: auto !important;
  border: 1px solid #d9e2f2 !important;
  border-radius: 14px !important;
  background: #ffffff !important;
  box-shadow: 0 14px 34px rgba(31, 42, 68, 0.14) !important;
  direction: rtl !important;
}

.managed-select.open .managed-select-menu {
  display: block !important;
}

.modal-panel:has(.record-create-form) {
  width: min(980px, calc(100vw - 32px)) !important;
}

.modal-panel:has(.call-screen),
.modal-panel:has(.record-form) {
  overflow: visible !important;
}

.modal-panel:has(.call-screen) .modal-body,
.modal-panel:has(.call-screen) .modal-content,
.modal-panel:has(.call-screen) .call-screen,
.modal-panel:has(.call-screen) .record-form,
.modal-panel:has(.record-form) .modal-body,
.modal-panel:has(.record-form) .modal-content {
  overflow: visible !important;
}

.modal-panel:has(.record-create-form) .modal-body,
.modal-panel:has(.record-create-form) .modal-content,
.modal-panel:has(.record-create-form) .record-create-panel {
  overflow: visible !important;
}

.record-create-form {
  grid-template-columns: repeat(2, minmax(220px, 1fr));
  overflow: visible !important;
}

.donor-picker {
  position: relative;
  width: 100%;
}

.donor-picker-trigger {
  width: 100%;
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-inline: 14px;
  border: 1px solid #d9e2f2;
  border-radius: 10px;
  background: #fcfdff;
  color: #42526b;
  font-weight: 500;
  text-align: right;
}

.donor-picker-trigger span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.donor-picker-menu {
  position: absolute;
  inset-inline: 0;
  top: calc(100% + 6px);
  z-index: 180;
  padding: 10px;
  border: 1px solid #d9e2f2;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 18px 42px rgba(31, 42, 68, 0.18);
}

.donor-picker-menu.floating-picker-menu {
  position: fixed !important;
  inset-inline: auto !important;
  z-index: 10000 !important;
  overflow: hidden !important;
}

.cardcom-frame-backdrop {
  position: fixed;
  inset: 0;
  z-index: 11000;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(37, 48, 74, 0.48);
}

.cardcom-frame-panel {
  width: min(860px, calc(100vw - 32px));
  height: min(780px, calc(100vh - 32px));
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr) auto;
  overflow: hidden;
  border: 1px solid #d8edf9;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 28px 84px rgba(31, 42, 68, 0.28);
}

.cardcom-frame-panel header,
.cardcom-frame-panel footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 14px;
  background: #f8fcff;
  border-bottom: 1px solid #d8edf9;
}

.cardcom-frame-panel footer {
  border-top: 1px solid #d8edf9;
  border-bottom: 0;
}

.cardcom-frame-panel header div {
  display: grid;
  gap: 2px;
}

.cardcom-frame-panel header strong {
  font-size: 17px;
}

.cardcom-frame-panel header span,
.cardcom-frame-panel footer span {
  color: var(--muted);
}

.cardcom-frame-hint {
  padding: 8px 14px;
  background: #fff8e6;
  color: #6d4b00;
  border-bottom: 1px solid #f3df9b;
  font-weight: 500;
}

.cardcom-frame-panel iframe {
  width: 100%;
  height: 100%;
  border: 0;
  background: #ffffff;
}

.donor-picker-search {
  width: 100%;
  margin-bottom: 8px;
}

.donor-picker-list {
  display: grid;
  gap: 6px;
  max-height: 310px;
  overflow: auto;
}

.donor-picker-option {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr) minmax(90px, auto);
  gap: 10px;
  align-items: center;
  min-height: 42px;
  padding: 8px 10px;
  border: 1px solid #edf2fa;
  border-radius: 9px;
  background: #fbfdff;
  color: var(--text);
  text-align: right;
}

.donor-picker-option:hover {
  background: #eef5ff;
  border-color: #cfe0fb;
}

.donor-picker-option span,
.donor-picker-option small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.donor-picker-option small,
.donor-picker-empty {
  color: var(--muted);
}

.donor-picker-empty {
  padding: 12px;
  text-align: center;
}

#floating-choice-menu,
#choice-bubble-dialog {
  display: block !important;
  overflow: auto !important;
  border: 1px solid #d9e2f2 !important;
  border-radius: 14px !important;
  background: #ffffff !important;
  box-shadow: 0 22px 54px rgba(31, 42, 68, 0.22) !important;
  direction: rtl !important;
  visibility: visible !important;
  opacity: 1 !important;
}

#floating-choice-menu[hidden],
#choice-bubble-dialog[hidden] {
  display: none !important;
}

.floating-choice-head {
  position: sticky !important;
  top: 0 !important;
  z-index: 1 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 8px !important;
  padding: 8px 10px !important;
  border-bottom: 1px solid #edf2f7 !important;
  background: #ffffff !important;
}

.floating-choice-body {
  display: grid !important;
  gap: 4px !important;
  padding: 6px !important;
}

#floating-choice-menu.inline-choice-menu,
#choice-bubble-dialog.inline-choice-menu {
  padding: 0 !important;
}

#floating-choice-menu.inline-choice-menu .inline-choice-option,
#floating-choice-menu.inline-choice-menu .managed-option-add,
#choice-bubble-dialog.inline-choice-menu .inline-choice-option,
#choice-bubble-dialog.inline-choice-menu .managed-option-add {
  width: 100% !important;
}

#floating-choice-menu .inline-choice-option,
#choice-bubble-dialog .inline-choice-option {
  min-height: 24px !important;
  padding: 2px 6px !important;
  border-radius: 999px !important;
  font-size: 12px !important;
  line-height: 1.2 !important;
}

#floating-choice-menu .status-badge,
#choice-bubble-dialog .status-badge {
  min-height: 20px !important;
  padding: 2px 8px !important;
  font-size: 12px !important;
}

.table-bubble-native-select {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  min-height: 1px !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

.table-managed-hidden {
  display: none !important;
}

.table-bubble-picker {
  width: 100% !important;
  min-width: 118px !important;
}

.table-bubble-picker .table-bubble-menu {
  display: flex !important;
  flex-direction: column !important;
  gap: 8px !important;
}

.table-bubble-picker .table-bubble-menu[hidden] {
  display: none !important;
}

.table-bubble-current {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 8px !important;
  width: 100% !important;
  min-height: 34px !important;
  padding: 4px 8px !important;
  border: 1px solid #d9e2f2 !important;
  border-radius: 999px !important;
  background: #ffffff !important;
  color: #42526b !important;
  box-shadow: 0 4px 12px rgba(31, 42, 68, 0.08) !important;
}

.table-bubble-current b {
  color: #5d8cf3 !important;
}

.table-bubble-picker.disabled .table-bubble-current {
  opacity: 0.55 !important;
  cursor: not-allowed !important;
}

#floating-choice-menu.table-bubble-menu,
#choice-bubble-dialog.table-bubble-menu {
  display: grid !important;
  gap: 6px !important;
  padding: 0 !important;
}

.table-bubble-option,
.table-bubble-option-row {
  width: 100% !important;
}

.table-bubble-option {
  display: flex !important;
  justify-content: flex-start !important;
  min-height: 24px !important;
  padding: 2px 6px !important;
  border: 0 !important;
  border-radius: 999px !important;
  background: #f7f9fc !important;
  color: #42526b !important;
  font-size: 12px !important;
  line-height: 1.2 !important;
}

.table-bubble-option:hover,
.table-bubble-option.selected,
.table-bubble-option-row.selected .table-bubble-option {
  background: #eef4ff !important;
}

.table-bubble-option-row {
  display: grid !important;
  grid-template-columns: minmax(72px, 1fr) 20px 20px !important;
  gap: 3px !important;
  align-items: center !important;
}

.table-bubble-add {
  margin-top: 4px !important;
}

.managed-option-list {
  padding: 8px !important;
  display: grid !important;
  gap: 6px !important;
}

.managed-option-row {
  display: grid !important;
  grid-template-columns: 1fr 12px 12px !important;
  gap: 2px !important;
  align-items: center !important;
  min-height: 32px !important;
}

.managed-option-value {
  height: 36px !important;
  padding-inline: 10px !important;
  border: 0 !important;
  border-radius: 9px !important;
  background: transparent !important;
  color: #42526b !important;
  font-size: 14px !important;
  font-weight: 500 !important;
  text-align: right !important;
}

.managed-option-value .status-badge {
  margin: 0 !important;
}

.managed-option-value:hover {
  background: #f7f9fc !important;
}

.managed-option-action {
  width: 12px !important;
  height: 12px !important;
  min-height: 12px !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  color: #5d8cf3 !important;
  font-size: 9px !important;
  font-weight: 500 !important;
  line-height: 1 !important;
  box-shadow: none !important;
}

.managed-option-action.danger {
  color: #b91c1c !important;
}

.managed-option-add {
  position: sticky !important;
  bottom: 0 !important;
  width: 100% !important;
  height: 42px !important;
  min-height: 42px !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: #5d8cf3 !important;
  color: #ffffff !important;
  font-size: 14px !important;
  font-weight: 500 !important;
}

.inline-choice-managed-row {
  display: grid !important;
  grid-template-columns: minmax(90px, 1fr) 30px 30px !important;
  align-items: center !important;
  gap: 4px !important;
}

.inline-choice-managed-row .inline-choice-option {
  justify-content: flex-start !important;
  width: 100% !important;
}

.inline-choice-add {
  margin-top: 6px !important;
}

.bonus-group-actions {
  position: relative !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
}

.bonus-toolbar {
  flex-wrap: wrap !important;
}

.bonus-view-switch {
  display: inline-flex !important;
  align-items: center !important;
  gap: 3px !important;
  padding: 3px !important;
  border: 1px solid #d9e2f2 !important;
  border-radius: 10px !important;
  background: #f7f9fc !important;
}

.bonus-view-switch button {
  min-height: 34px !important;
  padding: 0 14px !important;
  border: 0 !important;
  border-radius: 8px !important;
  background: transparent !important;
  color: #42526b !important;
  font-weight: 500 !important;
}

.bonus-view-switch button.active {
  background: #2563eb !important;
  color: #ffffff !important;
  box-shadow: 0 8px 20px rgba(37, 99, 235, 0.18) !important;
}

.commitment-section-head {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 12px !important;
  margin-bottom: 12px !important;
}

.commitment-section-head h3 {
  margin: 0 !important;
}

.test-charge-btn {
  min-height: 36px !important;
  padding-inline: 16px !important;
  white-space: nowrap !important;
}

.test-charge-btn:disabled {
  opacity: 0.5 !important;
  cursor: not-allowed !important;
}

.bonus-group-menu {
  position: absolute !important;
  top: calc(100% + 8px) !important;
  right: 0 !important;
  left: auto !important;
  z-index: 1000 !important;
  pointer-events: auto !important;
  min-width: 190px !important;
  padding: 10px !important;
  border: 1px solid #e6eef8 !important;
  border-radius: 10px !important;
  background: #ffffff !important;
  box-shadow: 0 14px 34px rgba(31, 42, 68, 0.14) !important;
}

.bonus-group-choice {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 8px !important;
  width: 100% !important;
  min-height: 32px !important;
  margin: 0 !important;
  padding: 4px 6px !important;
  border: 0 !important;
  border-radius: 8px !important;
  background: transparent !important;
  color: #42526b !important;
  font-size: 13px !important;
  font-weight: 500 !important;
  text-align: right !important;
}

.bonus-group-choice:hover,
.bonus-group-choice.active {
  background: #f3f7ff !important;
}

.bonus-group-choice span {
  color: inherit !important;
}

.bonus-group-choice input {
  width: 16px !important;
  height: 16px !important;
  margin: 0 !important;
  accent-color: #2563eb !important;
}

.bonus-group-row td {
  background: #f8fbff !important;
}

.bonus-group-detail-row > td {
  padding: 0 !important;
  background: #eef6ff !important;
}

.bonus-group-detail {
  padding: 10px !important;
  background: #eef6ff !important;
}

.bonus-group-detail table {
  margin: 0 !important;
  border: 1px solid #d9e9ff !important;
  background: #ffffff !important;
}

.data-grid-panel.bonus-panel > .section-head {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 12px !important;
  margin-bottom: 10px !important;
}

.data-grid-panel.bonus-panel > .section-head h2 {
  display: block !important;
  margin: 0 !important;
}

.table-settings-scroll {
  max-height: min(62vh, 620px) !important;
  overflow: auto !important;
  border: 1px solid #e6eef8 !important;
  border-radius: 10px !important;
}

.table-settings-matrix {
  min-width: 860px !important;
  margin: 0 !important;
}

.table-settings-matrix th,
.table-settings-matrix td {
  vertical-align: top !important;
}

.table-settings-matrix th {
  position: sticky !important;
  top: 0 !important;
  z-index: 1 !important;
  background: #f7f9fc !important;
}

.table-settings-matrix td:first-child {
  min-width: 104px !important;
}

.table-settings-matrix td:nth-child(2) {
  min-width: 150px !important;
}

.column-order-cell {
  display: flex !important;
  align-items: center !important;
  gap: 4px !important;
  white-space: nowrap !important;
}

.role-checks {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 6px !important;
  min-width: 210px !important;
}

.role-check {
  display: inline-flex !important;
  align-items: center !important;
  gap: 5px !important;
  min-height: 28px !important;
  margin: 0 !important;
  padding: 4px 8px !important;
  border: 1px solid #d9e2f2 !important;
  border-radius: 8px !important;
  background: #ffffff !important;
  color: #42526b !important;
  font-size: 12px !important;
  font-weight: 500 !important;
  white-space: nowrap !important;
}

.role-check input,
.table-settings-matrix input[type="checkbox"] {
  width: 15px !important;
  height: 15px !important;
  min-height: 15px !important;
  margin: 0 !important;
  padding: 0 !important;
}

.choice-color-settings {
  display: grid !important;
  gap: 8px !important;
  min-width: 190px !important;
}

.choice-color-grid {
  display: grid !important;
  gap: 6px !important;
}

.choice-color-grid[hidden] {
  display: none !important;
}

.choice-color-grid label {
  display: grid !important;
  grid-template-columns: minmax(86px, 1fr) 82px !important;
  align-items: center !important;
  gap: 6px !important;
  margin: 0 !important;
}

.choice-color-grid select {
  display: block !important;
  position: relative !important;
  z-index: 2 !important;
  pointer-events: auto !important;
  opacity: 1 !important;
  width: 82px !important;
  min-height: 30px !important;
  height: 30px !important;
  padding-inline: 8px !important;
  border-radius: 8px !important;
  font-size: 12px !important;
}

.record-form.open-call-result [data-heat-field],
.record-form.open-call-result [data-call-summary-field] {
  display: none !important;
}

.inline-table-cell {
  cursor: text !important;
  outline: 1px dashed transparent !important;
  outline-offset: -4px !important;
}

.inline-table-cell:hover,
.inline-table-cell:focus {
  background: #f7fbff !important;
  outline-color: #9dbcf8 !important;
}

.inline-choice-picker {
  position: relative !important;
  display: inline-flex !important;
  width: fit-content !important;
}

.inline-choice-current,
.inline-choice-option {
  width: fit-content !important;
  height: auto !important;
  min-height: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

.inline-choice-current .status-badge,
.inline-choice-option .status-badge {
  margin: 0 !important;
}

.inline-choice-menu {
  position: absolute !important;
  z-index: 5000 !important;
  top: calc(100% + 6px) !important;
  inset-inline-start: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 6px !important;
  min-width: max-content !important;
  padding: 8px !important;
  border: 1px solid #d9e2f2 !important;
  border-radius: 12px !important;
  background: #ffffff !important;
  box-shadow: 0 16px 34px rgba(31, 42, 68, 0.16) !important;
}

.inline-choice-menu[hidden] {
  display: none !important;
}

.table-call-result-cell {
  position: relative !important;
  overflow: visible !important;
  display: inline-flex !important;
  justify-content: center !important;
  width: 100% !important;
}

.table-call-result-popover {
  position: absolute !important;
  top: calc(100% + 6px) !important;
  right: 0 !important;
  left: auto !important;
  min-width: 220px !important;
  width: max-content !important;
  max-height: min(320px, 55vh) !important;
  overflow-y: auto !important;
  max-width: 280px !important;
  background: #ffffff !important;
  border: 1px solid #e6eef8 !important;
  border-radius: 14px !important;
  box-shadow: 0 14px 36px rgba(15, 23, 42, 0.14) !important;
  padding: 10px !important;
  z-index: 9999 !important;
}

.table-call-result-popover-option {
  width: 100% !important;
  height: 38px !important;
  min-height: 38px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  margin-bottom: 8px !important;
}

.table-call-result-popover .table-bubble-option,
.table-call-result-popover .table-bubble-option-row {
  width: 100% !important;
}

.table-call-result-popover .table-bubble-option {
  height: 38px !important;
  min-height: 38px !important;
  border-radius: 999px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  margin: 0 !important;
  background: #f7f9fc !important;
}

.table-call-result-popover-option:last-child {
  margin-bottom: 0 !important;
}

.data-grid-panel:has(.table-call-result-cell),
.panel:has(.table-call-result-cell),
.data-grid:has(.table-call-result-cell),
.records-like-table:has(.table-call-result-cell),
table:has(.table-call-result-cell),
tbody:has(.table-call-result-cell),
tr:has(.table-call-result-cell),
td:has(.table-call-result-cell) {
  overflow: visible !important;
}

.form-field .select-display,
.form-field select,
.form-control,
label .managed-select,
label .managed-select-button,
label select {
  width: 100% !important;
}

.widget-add-panel,
.dashboard-metric-board,
.dashboard-chart-card,
.bonus-panel {
  border: 1px solid #e4e7f2 !important;
  border-radius: 14px !important;
  background: #ffffff !important;
  box-shadow: 0 10px 28px rgba(74, 85, 120, 0.08) !important;
}

.widget-head,
.widget-add-panel .widget-head,
.panel > .section-head {
  border-bottom-color: #edf0f8;
}

.widget-head h3,
.widget-add-panel h3,
.panel h2,
.panel h3 {
  color: #1f2440;
  font-weight: 500;
}

.widgets .panel > h3,
.widgets .widget-head h3,
.widgets .table-toolbar-title {
  text-align: right;
  font-size: 1.25rem;
  line-height: 1.25;
  margin-inline-start: auto;
}

.widget-table,
.records-like-table,
.bonus-rules-table {
  border-collapse: separate !important;
  border-spacing: 0 !important;
  color: #2d334a;
}

.widget-table th,
.records-like-table th,
.bonus-rules-table th {
  color: #8185aa !important;
  font-weight: 500 !important;
  background: #ffffff !important;
  border-bottom: 1px solid #edf0f8 !important;
}

.widget-table td,
.records-like-table td,
.bonus-rules-table td {
  border-bottom: 1px solid #f0f2f8 !important;
  background: #ffffff;
}

.widget-table tr:last-child td,
.records-like-table tr:last-child td,
.bonus-rules-table tr:last-child td {
  border-bottom: 0 !important;
}

.widget-table .row-actions,
.records-like-table .row-actions {
  color: #7f83a8;
}

.table-io-actions {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.table-io-btn {
  min-height: 30px;
  padding: 5px 10px;
  border-color: #dfe4f2;
  color: #5e6387;
  background: #fff;
  font-weight: 500;
  white-space: nowrap;
}

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

.report-fields,
.report-conditions {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px;
}

.report-fields {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(104px, 1fr));
  gap: 5px 8px;
  align-items: start;
  max-height: min(34vh, 260px);
  overflow: auto;
}

.report-fields legend,
.report-conditions legend {
  font-size: 12px;
  font-weight: 500;
}

.report-fields label {
  min-height: 28px;
  display: flex;
  align-items: center;
  gap: 5px;
  margin: 0;
  font-size: 11px;
  line-height: 1.2;
}

.report-fields input[type="checkbox"] {
  width: 14px;
  height: 14px;
  flex: 0 0 auto;
}

.report-field-actions {
  grid-column: 1 / -1;
  display: flex;
  gap: 6px;
  margin-bottom: 2px;
}

.report-field-actions button {
  min-height: 26px;
  padding: 4px 8px;
  font-size: 11px;
}

.report-condition-row {
  display: grid;
  grid-template-columns: minmax(130px, 1fr) minmax(120px, 1fr) minmax(150px, 1.2fr) auto;
  gap: 8px;
  align-items: center;
  margin-bottom: 8px;
}

.institution-code-box,
.institution-code-list {
  display: grid;
  gap: 10px;
}

.institution-code-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  align-items: center;
}

/* Final header override: keep the user switcher visible on top of the blue navbar. */
.app-header {
  z-index: 3000 !important;
  position: fixed !important;
  inset: auto !important;
  top: 0 !important;
  left: 0 !important;
  width: 0 !important;
  min-width: 0 !important;
  height: 0 !important;
  min-height: 0 !important;
  padding: 0 !important;
  overflow: visible !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  pointer-events: none !important;
}

.system-nav {
  z-index: 1000 !important;
}

.app-header .user-picker {
  position: fixed !important;
  top: 13px !important;
  left: 18px !important;
  right: auto !important;
  z-index: 3100 !important;
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  width: auto !important;
  min-width: 292px !important;
  height: 38px !important;
  padding: 5px 10px !important;
  border: 1px solid #d9e2f2 !important;
  border-radius: 12px !important;
  background: #ffffff !important;
  color: #42526b !important;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.16) !important;
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
}

.app-header .header-user-tools {
  position: fixed !important;
  top: 13px !important;
  left: 18px !important;
  z-index: 3100 !important;
  display: inline-flex !important;
  flex-direction: row !important;
  align-items: center !important;
  gap: 8px !important;
  pointer-events: auto !important;
}

.app-header .header-reminder-shell {
  order: 0 !important;
}

.app-header .header-reminder-shell .reminder-bell {
  height: 38px !important;
  min-height: 38px !important;
  border-radius: 12px !important;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.16) !important;
}

.app-header .header-reminder-shell .reminder-popover {
  left: auto !important;
  right: 0 !important;
}

.app-header .header-user-tools .user-picker {
  position: static !important;
  top: auto !important;
  left: auto !important;
  right: auto !important;
}

.app-header .user-picker select {
  display: block !important;
  height: 28px !important;
  min-height: 28px !important;
  width: 220px !important;
  max-width: 220px !important;
  font-size: 13px !important;
  border: 1px solid #d9e2f2 !important;
  border-radius: 8px !important;
  background: #fcfdff !important;
  color: #1f2a44 !important;
  opacity: 1 !important;
  visibility: visible !important;
}

/* Navigation as full tabs: final override. */
.system-nav {
  position: fixed !important;
  top: 0 !important;
  inset-inline: 0 !important;
  z-index: 900 !important;
  min-height: 108px !important;
  padding: 14px 24px 10px 330px !important;
  background: #4f7fe8 !important;
  border-bottom: 1px solid #3769d4 !important;
  box-shadow: 0 8px 18px rgba(31, 42, 68, 0.12) !important;
  overflow: visible !important;
}

.nav-menu-shell {
  display: grid !important;
  grid-template-rows: auto auto !important;
  gap: 12px !important;
  width: 100% !important;
  max-width: none !important;
  min-height: 0 !important;
  padding: 0 !important;
}

.nav-primary,
.nav-secondary {
  position: static !important;
  display: flex !important;
  align-items: stretch !important;
  justify-content: flex-start !important;
  flex-wrap: nowrap !important;
  gap: 10px !important;
  width: 100% !important;
  min-height: 0 !important;
  overflow-x: auto !important;
  overflow-y: visible !important;
  scrollbar-width: thin !important;
}

.nav-primary,
.nav-secondary,
.operator-nav-primary {
  scrollbar-width: none !important;
}

.nav-primary::-webkit-scrollbar,
.nav-secondary::-webkit-scrollbar,
.operator-nav-primary::-webkit-scrollbar {
  display: none !important;
}

.nav-category,
.nav-item,
.system-nav button {
  flex: 0 0 auto !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: auto !important;
  max-width: none !important;
  min-width: max-content !important;
  margin: 0 !important;
  white-space: nowrap !important;
  text-overflow: clip !important;
  overflow: visible !important;
  letter-spacing: 0 !important;
}

.nav-category {
  height: 46px !important;
  min-height: 46px !important;
  padding: 0 24px !important;
  border: 1px solid rgba(255, 255, 255, 0.24) !important;
  border-bottom: 0 !important;
  border-radius: 10px 10px 0 0 !important;
  background: rgba(255, 255, 255, 0.12) !important;
  color: #ffffff !important;
  font-size: 17px !important;
  font-weight: 500 !important;
  line-height: 1 !important;
}

.nav-category:hover,
.nav-category:focus-visible,
.nav-category.active,
.system-nav .nav-category.active {
  background: #ffffff !important;
  color: #175cd3 !important;
  border-color: #ffffff !important;
  box-shadow: 0 -1px 0 #ffffff inset !important;
}

.nav-category::after,
.nav-item::after {
  content: none !important;
}

.nav-secondary {
  padding-bottom: 10px !important;
}

.nav-item {
  height: 34px !important;
  min-height: 34px !important;
  padding: 0 17px !important;
  border: 1px solid rgba(255, 255, 255, 0.18) !important;
  border-radius: 999px !important;
  background: rgba(255, 255, 255, 0.1) !important;
  color: #eff6ff !important;
  font-size: 14.5px !important;
  font-weight: 500 !important;
  line-height: 1 !important;
}

.nav-item:hover,
.nav-item:focus-visible,
.nav-item.active,
.system-nav .nav-item.active {
  background: #dbeafe !important;
  color: #143a73 !important;
  border-color: #dbeafe !important;
}

.operator-system-nav {
  min-height: auto !important;
  padding: 8px 16px 0 !important;
}

.operator-system-nav .nav-menu-shell {
  grid-template-rows: auto !important;
  min-height: auto !important;
}

.operator-logout-btn {
  order: -1 !important;
  pointer-events: auto !important;
  border: 1px solid rgba(255,255,255,0.55) !important;
  background: rgba(255,255,255,0.14) !important;
  color: #fff !important;
  font-weight: 700 !important;
  cursor: pointer !important;
  flex: 0 0 auto !important;
}

.operator-logout-btn:hover,
.operator-logout-btn:focus-visible {
  background: rgba(255,255,255,0.24) !important;
}

.operator-nav-primary {
  justify-content: center !important;
  gap: 8px !important;
  padding-bottom: 0 !important;
  overflow-x: auto !important;
}

.operator-nav-primary .nav-category {
  min-width: 140px !important;
  max-width: 230px !important;
  height: 38px !important;
  min-height: 38px !important;
  padding-inline: 14px !important;
  border-radius: 10px 10px 0 0 !important;
  font-size: 14px !important;
  font-weight: 500 !important;
  line-height: 1.1 !important;
  white-space: normal !important;
  text-align: center !important;
  overflow: hidden !important;
}

.modal-panel .modal-body > form,
.modal-panel .modal-body > section,
.call-screen,
.detail-grid,
.donor-entry-form,
.record-create-form {
  margin-top: 10px !important;
}

.readonly-detail-table {
  table-layout: fixed;
  border-top: 1px solid var(--line);
}

.readonly-detail-table th,
.readonly-detail-table td {
  padding: 14px 18px;
  white-space: normal;
}

.readonly-detail-table th[scope="row"] {
  width: 34%;
  color: #52708f;
  font-weight: 500;
  background: #f8fcff;
  border-left: 1px solid var(--line);
}

.readonly-detail-table td {
  color: #18324d;
  font-weight: 500;
  background: #ffffff;
}

.readonly-detail-table tbody tr:hover th,
.readonly-detail-table tbody tr:hover td {
  background: inherit;
}

th.sortable-column {
  cursor: pointer !important;
  position: relative !important;
  padding-inline-end: 30px !important;
  user-select: none !important;
}

th.sortable-column::after {
  content: "ג†•" !important;
  position: absolute !important;
  inset-inline-end: 10px !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  color: #7b8aa0 !important;
  font-size: 12px !important;
  opacity: 0.9 !important;
}

th.sortable-column[data-sort-direction="asc"]::after {
  content: "ג†‘" !important;
  color: #175cd3 !important;
}

th.sortable-column[data-sort-direction="desc"]::after {
  content: "ג†“" !important;
  color: #175cd3 !important;
}

th.sortable-column.drag-over {
  outline: 2px solid #5d8cf3 !important;
  outline-offset: -2px !important;
}

.column-order-editor {
  display: grid !important;
  gap: 10px !important;
  padding: 12px !important;
  margin-bottom: 14px !important;
  border: 1px solid #e6eef8 !important;
  border-radius: 10px !important;
  background: #f8fbff !important;
}

.column-order-list {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 8px !important;
}

[data-column-order-item].dragging {
  opacity: 0.55 !important;
}

.column-order-item {
  display: inline-grid !important;
  grid-template-columns: 18px minmax(70px, auto) 26px 26px !important;
  align-items: center !important;
  gap: 4px !important;
  min-height: 34px !important;
  padding: 4px 8px !important;
  border: 1px solid #d9e6f7 !important;
  border-radius: 8px !important;
  background: #ffffff !important;
  color: #1f2a44 !important;
}

.column-order-item.dragging {
  opacity: 0.55 !important;
}

.column-drag-handle {
  color: #5d8cf3 !important;
  cursor: grab !important;
}

.modal-backdrop {
  align-items: center !important;
  overflow: hidden !important;
}

.modal-panel,
.modal-panel:has(.call-screen),
.modal-panel:has(.record-form) {
  max-height: calc(100vh - 48px) !important;
  overflow: hidden !important;
  display: grid !important;
  grid-template-rows: auto minmax(0, 1fr) auto !important;
}

.modal-panel .modal-body,
.modal-panel:has(.call-screen) .modal-body,
.modal-panel:has(.record-form) .modal-body {
  min-height: 0 !important;
  overflow: auto !important;
  overscroll-behavior: contain !important;
}

.modal-panel:has(.call-screen) .modal-content,
.modal-panel:has(.record-form) .modal-content {
  min-height: 0 !important;
  overflow: visible !important;
}

.modal-panel:has(.call-screen) .call-screen {
  min-height: 0 !important;
  align-items: start !important;
}

.modal-panel:has(.transaction-detail-layout) {
  width: min(1180px, calc(100vw - 32px)) !important;
}

.modal-panel:has(.donor-detail-screen) {
  width: min(1380px, calc(100vw - 32px)) !important;
}

.modal-panel:has(.donor-detail-screen) .modal-body {
  grid-template-columns: 1fr !important;
}

.modal-panel:has(.donor-detail-screen) .modal-summary {
  display: none !important;
}

.modal-panel:has(.donor-detail-screen) .modal-content,
.modal-panel:has(.donor-detail-screen) .donor-detail-screen,
.modal-panel:has(.donor-detail-screen) .donor-detail-form,
.modal-panel:has(.donor-detail-screen) .donor-widgets {
  width: 100% !important;
  max-width: none !important;
}

.modal-panel:has(.transaction-detail-layout) .modal-body {
  grid-template-columns: minmax(0, 1fr) !important;
}

.modal-panel:has(.transaction-detail-layout) .modal-summary {
  display: none !important;
}

.modal-panel:has(.transaction-detail-layout) .modal-content {
  min-width: 0 !important;
  overflow: visible !important;
  container-type: inline-size;
}

.transaction-detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 340px);
  gap: 16px;
  align-items: start;
  margin-top: 10px;
  min-width: 0;
}

.transaction-detail-card,
.transaction-side-card {
  min-width: 0;
  border: 1px solid #dce8f6 !important;
  border-radius: 14px !important;
  background: #ffffff !important;
  box-shadow: 0 14px 38px rgba(31, 42, 68, 0.07) !important;
}

.transaction-detail-card {
  display: grid;
  gap: 16px;
  padding: 18px !important;
  grid-row: span 2;
}

.transaction-detail-card .section-head {
  padding-bottom: 10px;
  border-bottom: 1px solid #e7eef8;
}

.transaction-summary-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.transaction-summary-row > div,
.transaction-readonly-field,
.transaction-link-list > div {
  min-width: 0;
  display: grid;
  align-content: center;
  gap: 6px;
  min-height: 72px;
  padding: 12px 14px;
  border: 1px solid #d7e6f7;
  border-radius: 10px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
}

.transaction-summary-row span,
.transaction-readonly-field span,
.transaction-link-list span {
  color: #5e7897;
  font-size: 12px;
  font-weight: 500;
}

.transaction-summary-row strong,
.transaction-readonly-field strong,
.transaction-link-list strong {
  min-width: 0;
  color: #162b45;
  font-size: 15px;
  font-weight: 500;
  overflow-wrap: anywhere;
}

.transaction-form-section {
  display: grid;
  gap: 10px;
}

.transaction-form-section h4 {
  margin: 0;
  color: #1f3552;
  font-size: 13px;
  font-weight: 500;
}

.transaction-readonly-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

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

.transaction-readonly-field a {
  width: max-content;
  max-width: 100%;
  color: #2563eb;
  text-decoration: none;
}

.transaction-readonly-field a:hover {
  text-decoration: underline;
}

.transaction-refusal-note {
  padding: 14px;
  border: 1px solid #ffd6d6;
  border-radius: 10px;
  background: #fff8f8;
}

.transaction-refusal-note p {
  margin: 0;
  color: #6b1f1f;
  font-weight: 500;
}

.transaction-refusal-note span {
  color: #9a3412;
  font-size: 12px;
  font-weight: 500;
}

.transaction-side-card {
  display: grid;
  gap: 12px;
  padding: 18px !important;
}

.transaction-side-card h3 {
  margin: 0;
  color: #1f3552;
  font-size: 14px;
  font-weight: 500;
}

.transaction-side-card p {
  margin: 0;
  color: #2a3b52;
}

.transaction-side-card .form-grid.compact {
  grid-template-columns: 1fr;
  gap: 10px;
}

.transaction-link-list {
  display: grid;
  gap: 10px;
}

.transaction-side-card button.primary {
  justify-self: start;
  width: auto;
  max-width: 100%;
  white-space: normal;
}

@media (max-width: 980px) {
  .transaction-detail-layout {
    grid-template-columns: 1fr;
  }

  .transaction-detail-card {
    grid-row: auto;
  }
}

@media (max-width: 640px) {
  .transaction-summary-row,
  .transaction-readonly-grid {
    grid-template-columns: 1fr;
  }
}

@container (max-width: 860px) {
  .transaction-detail-layout {
    grid-template-columns: 1fr;
  }

  .transaction-detail-card {
    grid-row: auto;
  }
}

/* Donor record widgets: restore the compact card layout used in the local build. */
.donor-widgets,
.widgets.donor-widgets {
  display: grid !important;
  grid-template-columns: 1fr !important;
  gap: 18px !important;
  align-content: start !important;
  margin-top: 0 !important;
}

.donor-widgets .widget-card,
.widgets .widget-card {
  position: relative !important;
  overflow: hidden !important;
  padding: 18px 18px 16px !important;
  border: 1px solid #dfe8f5 !important;
  border-radius: 18px !important;
  background: #ffffff !important;
  box-shadow: 0 18px 44px rgba(15, 39, 66, 0.06) !important;
}

.donor-widgets .widget-card > h3 {
  display: none !important;
}

.donor-widgets .widget-head {
  display: grid !important;
  grid-template-columns: auto 1fr !important;
  direction: ltr !important;
  align-items: center !important;
  justify-content: stretch !important;
  gap: 12px !important;
  width: 100% !important;
  min-height: 36px !important;
  margin: 0 0 8px !important;
  padding: 0 !important;
}

.donor-widgets .widget-head h3 {
  grid-column: 2 !important;
  justify-self: end !important;
  margin: 0 !important;
  direction: rtl !important;
  color: #1f3554 !important;
  font-size: 15px !important;
  font-weight: 500 !important;
  line-height: 1.2 !important;
  text-align: right !important;
}

.donor-widgets .widget-head-actions {
  grid-column: 1 !important;
  justify-self: start !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  direction: rtl !important;
}

.widget-column-btn {
  width: 30px !important;
  min-width: 30px !important;
  height: 30px !important;
  min-height: 30px !important;
  padding: 0 !important;
  border-radius: 10px !important;
  border-color: #e8eef7 !important;
  background: #ffffff !important;
  color: #6b7a90 !important;
  font-size: 12px !important;
  font-weight: 500 !important;
  box-shadow: 0 8px 18px rgba(31, 53, 84, 0.04) !important;
  white-space: nowrap !important;
}

.widget-column-btn span {
  display: inline-block !important;
  letter-spacing: 1px !important;
  transform: rotate(90deg) !important;
}

.widget-column-list {
  display: grid !important;
  gap: 8px !important;
}

.widget-column-row {
  display: grid !important;
  grid-template-columns: 20px minmax(0, 1fr) 28px 28px !important;
  align-items: center !important;
  gap: 8px !important;
  min-height: 38px !important;
  margin: 0 !important;
  padding: 6px 8px !important;
  border: 1px solid #e8eef7 !important;
  border-radius: 10px !important;
  background: #fbfdff !important;
  cursor: grab !important;
}

.widget-column-row span {
  color: #1f3554 !important;
  font-size: 13px !important;
  font-weight: 500 !important;
}

.widget-column-form {
  display: grid !important;
  gap: 14px !important;
}

.widget-column-form-head {
  display: grid !important;
  gap: 4px !important;
  padding: 2px 2px 4px !important;
}

.widget-column-form-head strong {
  color: #172033 !important;
  font-size: 15px !important;
  font-weight: 600 !important;
}

.widget-column-form-head span {
  color: #7b8798 !important;
  font-size: 12px !important;
}

.widget-column-form-actions {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 8px !important;
  padding-top: 8px !important;
  border-top: 1px solid #edf2f8 !important;
}

.widget-column-form-actions button {
  min-height: 34px !important;
  padding: 7px 14px !important;
  border-radius: 9px !important;
  font-size: 13px !important;
}

.modal-panel:has(.widget-column-form) .modal-footer {
  display: none !important;
}

.donor-widgets .widget-table-tools {
  display: none !important;
  min-height: 38px !important;
  margin: 0 0 8px !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

.donor-widgets .widget-table-tools .table-toolbar-meta {
  display: flex !important;
  flex-direction: row !important;
  direction: rtl !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 12px !important;
  min-height: 36px !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
}

.donor-widgets .widget-table-tools .table-toolbar-title {
  margin: 0 !important;
  flex: 1 1 auto !important;
  color: #1f3554 !important;
  font-size: 15px !important;
  font-weight: 500 !important;
  line-height: 1.2 !important;
  text-align: right !important;
}

.donor-widgets .table-filter-settings {
  flex: 0 0 auto !important;
  width: 24px !important;
  min-width: 24px !important;
  height: 24px !important;
  min-height: 24px !important;
  padding: 0 !important;
  border-radius: 8px !important;
  background: transparent !important;
  border: 0 !important;
  color: #7b8798 !important;
  box-shadow: none !important;
  font-size: 14px !important;
  font-weight: 500 !important;
}

.widget-column-btn,
.widgets .widget-column-btn,
.widget-table-tools .widget-column-btn {
  width: 24px !important;
  min-width: 24px !important;
  max-width: 24px !important;
  height: 24px !important;
  min-height: 24px !important;
  max-height: 24px !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 8px !important;
  background: transparent !important;
  color: #7b8798 !important;
  box-shadow: none !important;
}

.widget-column-btn:hover,
.widgets .widget-column-btn:hover,
.widget-table-tools .widget-column-btn:hover {
  background: #f3f6fa !important;
  color: #2f3b4d !important;
  transform: none !important;
}

.widget-column-btn svg,
.widgets .widget-column-btn svg,
.widget-table-tools .widget-column-btn svg {
  width: 16px !important;
  height: 16px !important;
}

.donor-widgets .widget-toolbar-add {
  grid-column: 1 !important;
  justify-self: start !important;
  width: auto !important;
  min-width: 82px !important;
  height: 30px !important;
  min-height: 30px !important;
  padding: 0 10px !important;
  border-radius: 10px !important;
  box-shadow: 0 8px 18px rgba(31, 53, 84, 0.06) !important;
  font-size: 12px !important;
  font-weight: 500 !important;
  margin: 0 !important;
  white-space: nowrap !important;
  color: #ffffff !important;
  background: #38a8e8 !important;
  border-color: #38a8e8 !important;
}

.donor-widgets .widget-table,
.donor-widgets .data-grid {
  width: 100% !important;
  margin: 0 !important;
  border-collapse: collapse !important;
  border-spacing: 0 !important;
  background: #ffffff !important;
  table-layout: fixed !important;
}

.donor-widgets .widget-table th,
.donor-widgets .data-grid th {
  height: 52px !important;
  padding: 0 14px !important;
  border-bottom: 1px solid #edf2f8 !important;
  background: #f7f9fc !important;
  color: #334762 !important;
  font-size: 14px !important;
  font-weight: 500 !important;
  text-align: right !important;
  white-space: nowrap !important;
}

.donor-widgets .widget-table td,
.donor-widgets .data-grid td {
  height: 52px !important;
  padding: 0 14px !important;
  border-bottom: 1px solid #eef3f9 !important;
  background: #ffffff !important;
  color: #526173 !important;
  font-size: 13px !important;
  font-weight: 500 !important;
  text-align: right !important;
}

.donor-widgets .widget-table tr:last-child td,
.donor-widgets .data-grid tr:last-child td {
  border-bottom: 0 !important;
}

.donor-widgets .widget-empty-row td {
  height: 66px !important;
  color: #9aa8bd !important;
  font-size: 15px !important;
  font-weight: 500 !important;
  text-align: center !important;
}

.donor-widgets .widget-page-footer {
  display: flex !important;
  flex-direction: row-reverse !important;
  align-items: center !important;
  justify-content: flex-start !important;
  flex-wrap: wrap !important;
  gap: 10px !important;
  min-height: 32px !important;
  margin-top: 12px !important;
  padding: 0 2px !important;
  color: #7b8798 !important;
  font-size: 12px !important;
  font-weight: 500 !important;
}

.donor-widgets .widget-page-footer label {
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  margin: 0 !important;
  color: #7b8798 !important;
  font-size: 12px !important;
  font-weight: 500 !important;
  white-space: nowrap !important;
}

.donor-widgets .widget-page-footer select,
.donor-widgets .widget-page-footer input {
  width: 58px !important;
  min-width: 58px !important;
  height: 28px !important;
  min-height: 28px !important;
  padding: 0 8px !important;
  border: 1px solid #dfe8f5 !important;
  border-radius: 8px !important;
  background: #f8fbff !important;
  color: #667085 !important;
  font-size: 12px !important;
  box-shadow: none !important;
}

.donor-widgets .widget-page-info,
.donor-widgets .widget-page-footer .table-result-count {
  color: #7b8798 !important;
  font-size: 12px !important;
  font-weight: 500 !important;
  white-space: nowrap !important;
}

.donor-widgets .widget-page-footer button {
  width: 28px !important;
  min-width: 28px !important;
  height: 28px !important;
  min-height: 28px !important;
  padding: 0 !important;
  border-radius: 8px !important;
  border: 1px solid #dfe8f5 !important;
  background: #ffffff !important;
  color: #667085 !important;
  font-size: 17px !important;
  line-height: 1 !important;
  box-shadow: none !important;
}

.donor-widgets .widget-page-footer button:disabled {
  opacity: 0.42 !important;
  cursor: default !important;
}

/* Pro-Ledger Admin design system theme */
:root {
  --bg: #f9f9ff;
  --panel: #ffffff;
  --text: #191b23;
  --muted: #424754;
  --line: #c2c6d6;
  --brand: #0058be;
  --brand-2: #2170e4;
  --accent: #d8e2ff;
  --danger: #ba1a1a;
  --yellow: #f59e0b;
  --purple: #595c5e;
  --green: #16834a;
  --orange: #c56a00;
  --shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  --surface-page: #f9f9ff;
  --surface-card: #ffffff;
  --surface-muted: #f2f3fd;
  --surface-container: #ecedf7;
  --surface-container-high: #e6e7f2;
  --grid-border: #c2c6d6;
  --grid-line: rgba(66, 71, 84, 0.14);
  --grid-text: #191b23;
  --grid-muted: #424754;
  --grid-accent: #0058be;
  --grid-accent-soft: rgba(0, 88, 190, 0.1);
  --grid-radius: 8px;
  --grid-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  --font-text: "Rubik", "Assistant", "Segoe UI", "Noto Sans Hebrew", Arial, sans-serif;
  --font-number: "IBM Plex Sans", "Rubik", "Segoe UI", Arial, sans-serif;
  --radius-card: 8px;
  --radius-button: 8px;
  --radius-control: 8px;
}

body {
  background: #f9f9ff !important;
  color: #191b23 !important;
  font-family: var(--font-text) !important;
  font-size: 14px !important;
  line-height: 1.45 !important;
  letter-spacing: 0 !important;
}

.login-page,
.system-nav,
.main {
  background: #f9f9ff !important;
}

.app-header,
.settings-tabs,
.panel,
.stats article,
.metric-tile,
.login-panel,
.super-admin-hero,
.customization-editor,
.customization-preview,
.integration-card,
.email-advanced-settings,
.reminder-popover,
.modal-panel,
.modal-content {
  background: #ffffff !important;
  border-color: #c2c6d6 !important;
  border-radius: var(--radius-card) !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05) !important;
}

.workflow-scheduling-box,
.mailhook-card,
.mailhook-connect,
.feature-toggles label,
.integration-status-list span,
.table-filter-drawer,
.table-search-row,
.readonly-soft input {
  background: #f2f3fd !important;
  border-color: #c2c6d6 !important;
}

h1,
h2,
h3,
.topbar h1,
.section-head h2,
.section-head h3,
.table-toolbar-title {
  color: #191b23 !important;
  font-family: var(--font-text) !important;
  font-weight: 500 !important;
  letter-spacing: 0 !important;
}

h1,
.topbar h1 {
  font-size: 32px !important;
  line-height: 40px !important;
}

h2,
.section-head h2 {
  font-size: 24px !important;
  line-height: 32px !important;
}

h3,
.section-head h3 {
  font-size: 20px !important;
  line-height: 28px !important;
}

p,
label,
.muted,
.table-result-count,
.workflow-pill span,
.user-picker,
.card small {
  color: #424754 !important;
  letter-spacing: 0 !important;
}

.primary,
button.primary,
button:not(.ghost):not(.icon-btn):not(.table-link):not(.calendar-day):not(.managed-select-button):not(.table-bubble-current) {
  background: #0058be !important;
  border-color: #0058be !important;
  color: #ffffff !important;
  border-radius: var(--radius-button) !important;
  font-weight: 500 !important;
  box-shadow: none !important;
}

.primary:hover,
button.primary:hover {
  background: #004395 !important;
  border-color: #004395 !important;
  filter: none !important;
}

.ghost,
button.ghost,
.table-clear-btn,
.table-filter-settings,
.table-filter-drawer-toggle {
  background: #f2f3fd !important;
  border: 1px solid #c2c6d6 !important;
  color: #0058be !important;
  border-radius: var(--radius-button) !important;
  box-shadow: none !important;
}

.ghost:hover,
button.ghost:hover,
.table-clear-btn:hover,
.table-filter-settings:hover,
.table-filter-drawer-toggle:hover {
  background: #d8e2ff !important;
  border-color: #0058be !important;
  filter: none !important;
}

input,
select,
textarea,
.managed-select-button,
.rich-editor,
.document-preview {
  background: #ffffff !important;
  border: 1px solid #c2c6d6 !important;
  border-radius: var(--radius-control) !important;
  color: #191b23 !important;
  box-shadow: none !important;
}

input:focus,
select:focus,
textarea:focus,
.rich-editor:focus,
.managed-select.open .managed-select-button {
  border-color: #0058be !important;
  box-shadow: 0 0 0 2px rgba(0, 88, 190, 0.18) !important;
  outline: none !important;
}

table,
.data-grid,
.widget-table,
.records-like-table,
.journal-records-table,
.incentives-table,
.variable-bonus-table,
.bonus-rules-table,
.incentive-achievement-table {
  background: #ffffff !important;
  border-color: #c2c6d6 !important;
  border-radius: 8px !important;
  border-collapse: separate !important;
  border-spacing: 0 !important;
  overflow: hidden !important;
  box-shadow: none !important;
}

th,
.panel table thead,
.data-grid thead,
.widget-table thead,
.records-like-table thead,
.journal-records-table thead,
.incentives-table thead,
.variable-bonus-table thead,
.bonus-rules-table thead,
.incentive-achievement-table thead,
.gift-tracking-table thead,
.readonly-detail-table thead,
.data-grid th,
.widget-table th,
.records-like-table th,
.journal-records-table th,
.incentives-table th,
.variable-bonus-table th,
.bonus-rules-table th,
.incentive-achievement-table th,
.gift-tracking-table th,
.readonly-detail-table th,
.panel table th {
  background: #0058be !important;
  color: #ffffff !important;
  font-weight: 500 !important;
  padding: 12px 16px !important;
  text-align: right !important;
  border-bottom-color: #0058be !important;
  border-inline-start: 1px solid rgba(255, 255, 255, 0.26) !important;
}

td,
.data-grid td,
.widget-table td,
.records-like-table td,
.panel table td {
  color: #191b23 !important;
  padding: 12px 16px !important;
  border-bottom-color: rgba(66, 71, 84, 0.08) !important;
}

tbody tr:nth-child(even) td,
.panel table tbody tr:nth-child(even) td,
.records-like-table tbody tr:nth-child(even) td,
.journal-records-table tbody tr:nth-child(even) td,
.incentives-table tbody tr:nth-child(even) td,
.variable-bonus-table tbody tr:nth-child(even) td,
.bonus-rules-table tbody tr:nth-child(even) td,
.incentive-achievement-table tbody tr:nth-child(even) td,
.gift-tracking-table tbody tr:nth-child(even) td,
.readonly-detail-table tbody tr:nth-child(even) td,
.widget-table tbody tr:nth-child(even) td,
.data-grid tbody tr:nth-child(even) td {
  background: #f8fafc !important;
}

tbody tr:nth-child(odd) td,
.panel table tbody tr:nth-child(odd) td,
.records-like-table tbody tr:nth-child(odd) td,
.journal-records-table tbody tr:nth-child(odd) td,
.incentives-table tbody tr:nth-child(odd) td,
.variable-bonus-table tbody tr:nth-child(odd) td,
.bonus-rules-table tbody tr:nth-child(odd) td,
.incentive-achievement-table tbody tr:nth-child(odd) td,
.gift-tracking-table tbody tr:nth-child(odd) td,
.readonly-detail-table tbody tr:nth-child(odd) td,
.widget-table tbody tr:nth-child(odd) td,
.data-grid tbody tr:nth-child(odd) td {
  background: #ffffff !important;
}

tbody tr:hover td,
.panel table tbody tr:hover td,
.records-like-table tbody tr:hover td,
.journal-records-table tbody tr:hover td,
.incentives-table tbody tr:hover td,
.variable-bonus-table tbody tr:hover td,
.bonus-rules-table tbody tr:hover td,
.incentive-achievement-table tbody tr:hover td,
.gift-tracking-table tbody tr:hover td,
.readonly-detail-table tbody tr:hover td,
.widget-table tbody tr:hover td,
.data-grid tbody tr:hover td {
  background: #eef6ff !important;
}

th:first-child,
.panel table th:first-child {
  border-inline-start: 0 !important;
}

.badge,
.status-badge,
.status-pill,
.status-control {
  border-radius: 9999px !important;
  font-weight: 500 !important;
}

.status-badge.custom-color {
  background: color-mix(in srgb, var(--status-color) 18%, white) !important;
  border-color: color-mix(in srgb, var(--status-color) 42%, white) !important;
  color: var(--status-color) !important;
}

.badge.ok,
.status-badge.success,
.status-control[data-tone="׳₪׳¢׳™׳"],
.status-control[data-tone="׳₪׳¢׳™׳׳”"],
.status-control[data-tone="׳×׳¨׳•׳׳”"],
.status-control[data-tone="׳›׳"],
.status-control[data-tone="׳ ׳©׳׳—"] {
  background: #dff5e8 !important;
  color: #0f6b3a !important;
  border-color: #9fd8b8 !important;
}

.status-badge.warning,
.status-control[data-tone="׳׳׳×׳™׳ ׳׳×׳©׳׳•׳ ׳¨׳׳©׳•׳"],
.status-control[data-tone="׳׳׳×׳™׳ ׳׳׳™׳©׳•׳¨ ׳׳ ׳”׳"],
.status-control[data-tone="׳׳•׳›׳ ׳׳׳©׳׳•׳—"],
.status-control[data-tone="׳׳׳×׳™׳ ׳׳׳©׳׳•׳—"],
.status-control[data-tone="׳׳•׳§׳₪׳׳×"] {
  background: #fff2d9 !important;
  color: #8a4f00 !important;
  border-color: #f2c47d !important;
}

.badge.danger,
.status-badge.danger,
.status-control[data-tone="׳¡׳™׳¨׳•׳‘"],
.status-control[data-tone="׳‘׳•׳˜׳׳”"],
.status-control[data-tone="׳—׳–׳¨"],
.status-control[data-tone="׳׳"],
.status-control[data-tone="׳׳ ׳₪׳¢׳™׳"],
.danger-btn {
  background: #ffdad6 !important;
  color: #93000a !important;
  border-color: #ffb4ab !important;
}

.nav-category.active,
.nav-item.active,
.settings-tabs button.active,
.workflow-pill.active {
  background: #d8e2ff !important;
  color: #001a42 !important;
  border-color: #0058be !important;
}

.brand-mark,
.metric-tile i,
.stats article::before {
  background: #0058be !important;
  color: #ffffff !important;
}

button,
.button,
.primary,
.ghost,
.dial,
.icon-btn {
  border-radius: var(--radius-button) !important;
}

.panel,
.card,
.widget-card,
.metric-tile,
.stats article,
.modal-panel,
.modal-content,
.subpanel,
.donor-hero,
.donor-detail-card,
.donor-memorials-section,
.integration-card,
.customization-editor,
.customization-preview,
.login-panel,
.super-admin-hero {
  border-radius: var(--radius-card) !important;
}

input,
select,
textarea,
.managed-select-button,
.readonly-choice-display,
.call-result-select .managed-select-button,
.choice-select .managed-select-button {
  border-radius: var(--radius-control) !important;
}

input[type="number"],
input[inputmode="numeric"],
.metric-tile strong,
.stats strong,
.dashboard-kpis strong,
.hero-kpis strong,
.table-result-count,
.record-charge-summary em,
.donation-snapshot strong,
.money,
.amount,
td:nth-child(n+4) {
  font-family: var(--font-number) !important;
  font-variant-numeric: tabular-nums;
}

.modal-panel:has(.table-settings-screen) {
  width: min(1180px, calc(100vw - 32px)) !important;
  background: #f9f9ff !important;
}

.modal-panel:has(.table-settings-screen) .modal-head,
.modal-panel:has(.table-settings-screen) .modal-footer,
.modal-panel:has(.table-settings-screen) .modal-summary {
  display: none !important;
}

.modal-panel:has(.table-settings-screen) .modal-body {
  display: block !important;
  padding: 0 !important;
  background: #f9f9ff !important;
}

.modal-panel:has(.table-settings-screen) .modal-content {
  padding: 0 !important;
  background: #f9f9ff !important;
}

.table-settings-screen {
  direction: rtl !important;
  display: grid !important;
  gap: 18px !important;
  padding: 22px !important;
  min-height: min(760px, calc(100vh - 72px)) !important;
  color: #191b23 !important;
  font-family: var(--font-text) !important;
}

.table-settings-hero {
  display: flex !important;
  align-items: flex-start !important;
  justify-content: space-between !important;
  gap: 16px !important;
  padding-block-end: 4px !important;
}

.table-settings-hero h2 {
  margin: 0 !important;
  color: #191b23 !important;
  font-size: 28px !important;
  line-height: 1.25 !important;
  font-weight: 500 !important;
}

.table-settings-hero p {
  margin: 8px 0 0 !important;
  color: #424754 !important;
  font-size: 14px !important;
}

.table-settings-actions {
  display: flex !important;
  flex-direction: row-reverse !important;
  gap: 10px !important;
  align-items: center !important;
  flex: 0 0 auto !important;
}

.table-settings-actions button {
  min-width: 118px !important;
}

.table-settings-grid {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.85fr) !important;
  gap: 18px !important;
  align-items: stretch !important;
}

.table-settings-card {
  background: #ffffff !important;
  border: 1px solid #dfe3ee !important;
  border-radius: 8px !important;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.08) !important;
  padding: 18px !important;
}

.table-settings-card-head {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  margin-bottom: 16px !important;
}

.table-settings-card-head span {
  display: inline-grid !important;
  place-items: center !important;
  width: 34px !important;
  height: 34px !important;
  border-radius: 8px !important;
  background: rgba(0, 88, 190, 0.1) !important;
  color: #0058be !important;
  font-size: 17px !important;
  font-weight: 500 !important;
}

.table-settings-card-head h3 {
  margin: 0 !important;
  color: #191b23 !important;
  font-size: 18px !important;
  line-height: 1.3 !important;
  font-weight: 500 !important;
}

.table-settings-checkbox-grid {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 10px 12px !important;
}

.table-settings-check-row {
  display: grid !important;
  grid-template-columns: auto minmax(0, 1fr) auto !important;
  align-items: center !important;
  gap: 10px !important;
  min-height: 42px !important;
  margin: 0 !important;
  padding: 9px 10px !important;
  border: 1px solid #e5e8f1 !important;
  border-radius: 8px !important;
  background: #ffffff !important;
  color: #191b23 !important;
  cursor: grab !important;
}

.table-settings-check-row input[type="checkbox"] {
  width: 16px !important;
  height: 16px !important;
  min-height: 16px !important;
  accent-color: #0058be !important;
}

.table-settings-check-row span {
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
  font-weight: 500 !important;
}

.table-settings-check-row em,
.status-drag-handle {
  color: #8a93a5 !important;
  font-style: normal !important;
  letter-spacing: -2px !important;
  cursor: grab !important;
}

.table-settings-info {
  margin: 16px 0 0 !important;
  padding: 12px 14px !important;
  border: 1px solid rgba(0, 88, 190, 0.16) !important;
  border-radius: 8px !important;
  background: rgba(0, 88, 190, 0.06) !important;
  color: #424754 !important;
  font-size: 13px !important;
}

.status-color-list {
  display: grid !important;
  gap: 10px !important;
}

.status-color-list[hidden] {
  display: none !important;
}

.table-status-master-toggle {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 12px !important;
  min-height: 44px !important;
  margin: 0 0 14px !important;
  padding: 10px 12px !important;
  border: 1px solid #dfe3ee !important;
  border-radius: 8px !important;
  background: #f8fafc !important;
  color: #191b23 !important;
  font-weight: 500 !important;
}

.table-status-master-toggle input {
  width: 18px !important;
  height: 18px !important;
  min-height: 18px !important;
  accent-color: #0058be !important;
}

.status-color-row {
  display: grid !important;
  grid-template-columns: auto 18px 32px 76px minmax(0, 1fr) !important;
  align-items: center !important;
  gap: 10px !important;
  min-height: 48px !important;
  padding: 9px 10px !important;
  border: 1px solid #e5e8f1 !important;
  border-radius: 8px !important;
  background: #ffffff !important;
}

.status-color-preview {
  width: 16px !important;
  height: 16px !important;
  border-radius: 50% !important;
  border: 2px solid #ffffff !important;
  box-shadow: 0 0 0 1px #cbd5e1 !important;
}

.status-color-input {
  width: 28px !important;
  height: 28px !important;
  min-height: 28px !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
}

.status-color-hex {
  color: #424754 !important;
  font-family: var(--font-number) !important;
  font-size: 12px !important;
  direction: ltr !important;
}

.status-color-row strong {
  min-width: 0 !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

.table-settings-add-status {
  width: 100% !important;
  min-height: 42px !important;
  margin-top: 14px !important;
  border: 1px dashed #0058be !important;
  background: #ffffff !important;
  color: #0058be !important;
  font-weight: 500 !important;
}

.table-settings-preview {
  overflow: hidden !important;
}

.table-settings-preview table {
  width: 100% !important;
  margin: 0 !important;
  border: 1px solid #e0e5ef !important;
}

.table-settings-preview th {
  background: #0058be !important;
  color: #ffffff !important;
}

.table-settings-preview tbody tr:nth-child(even) td {
  background: #f8fafc !important;
}

@media (max-width: 960px) {
  .table-settings-hero,
  .table-settings-actions {
    flex-direction: column !important;
    align-items: stretch !important;
  }

  .table-settings-grid,
  .table-settings-checkbox-grid {
    grid-template-columns: 1fr !important;
  }
}

.management-dashboard {
  direction: rtl !important;
  display: grid !important;
  gap: 18px !important;
  font-family: var(--font-text) !important;
}

.view-dashboard > .topbar {
  display: none !important;
}

.management-dashboard-head {
  display: flex !important;
  align-items: flex-start !important;
  justify-content: space-between !important;
  gap: 16px !important;
  padding: 4px 2px 6px !important;
}

.management-dashboard-head h2 {
  margin: 0 !important;
  color: #191b23 !important;
  font-size: 30px !important;
  line-height: 1.2 !important;
  font-weight: 500 !important;
}

.management-dashboard-head p {
  margin: 8px 0 0 !important;
  color: #424754 !important;
}

.management-dashboard-head > span {
  color: #0058be !important;
  font-family: var(--font-number) !important;
  font-weight: 500 !important;
}

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

.management-kpi,
.management-card {
  background: #ffffff !important;
  border: 1px solid #dfe3ee !important;
  border-radius: 8px !important;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.08) !important;
}

.management-kpi {
  display: grid !important;
  gap: 8px !important;
  min-height: 134px !important;
  padding: 18px !important;
  position: relative !important;
  overflow: hidden !important;
}

.management-kpi::before {
  content: "" !important;
  position: absolute !important;
  inset-block: 0 !important;
  inset-inline-start: 0 !important;
  width: 4px !important;
  background: #0058be !important;
}

.management-kpi span {
  color: #424754 !important;
  font-size: 13px !important;
  font-weight: 500 !important;
}

.management-kpi strong {
  color: #191b23 !important;
  font-family: var(--font-number) !important;
  font-size: 28px !important;
  line-height: 1.1 !important;
  font-weight: 500 !important;
  direction: ltr !important;
  text-align: right !important;
}

.management-kpi em {
  color: #6b7280 !important;
  font-size: 12px !important;
  font-style: normal !important;
}

.management-kpi.primary-kpi {
  background: #0058be !important;
  color: #ffffff !important;
  border-color: #0058be !important;
}

.management-kpi.primary-kpi::before {
  background: rgba(255, 255, 255, 0.72) !important;
}

.management-kpi.primary-kpi span,
.management-kpi.primary-kpi strong,
.management-kpi.primary-kpi em {
  color: #ffffff !important;
}

.target-progress {
  width: 100% !important;
  height: 9px !important;
  border-radius: 999px !important;
  background: #e8eef8 !important;
  overflow: hidden !important;
  align-self: end !important;
}

.target-progress b {
  display: block !important;
  height: 100% !important;
  border-radius: inherit !important;
  background: #0058be !important;
}

.management-charts {
  display: grid !important;
  grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.65fr) !important;
  gap: 18px !important;
}

.management-card {
  padding: 18px !important;
  min-width: 0 !important;
}

.management-card-head {
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  gap: 12px !important;
  margin-bottom: 14px !important;
}

.management-card-head h3 {
  margin: 0 !important;
  color: #191b23 !important;
  font-size: 18px !important;
  line-height: 1.3 !important;
  font-weight: 500 !important;
}

.management-card-head span {
  color: #0058be !important;
  font-size: 12px !important;
  font-weight: 500 !important;
}

.donation-line-chart {
  width: 100% !important;
  min-height: 220px !important;
  display: block !important;
  overflow: visible !important;
}

.chart-grid-line {
  fill: none !important;
  stroke: #e7ebf3 !important;
  stroke-width: 1 !important;
}

.chart-area {
  fill: rgba(0, 88, 190, 0.08) !important;
  stroke: none !important;
}

.chart-line {
  fill: none !important;
  stroke: #0058be !important;
  stroke-width: 5 !important;
  stroke-linecap: round !important;
  stroke-linejoin: round !important;
}

.outcomes-layout {
  display: grid !important;
  justify-items: center !important;
  gap: 18px !important;
}

.outcomes-pie {
  width: 190px !important;
  aspect-ratio: 1 !important;
  border-radius: 50% !important;
  background: conic-gradient(var(--segments)) !important;
  position: relative !important;
}

.outcomes-pie::after {
  content: "" !important;
  position: absolute !important;
  inset: 42px !important;
  border-radius: 50% !important;
  background: #ffffff !important;
  box-shadow: inset 0 0 0 1px #eef2f7 !important;
}

.outcomes-legend {
  display: grid !important;
  gap: 8px !important;
  width: 100% !important;
}

.outcomes-legend span {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 8px !important;
  color: #424754 !important;
  font-size: 13px !important;
}

.outcomes-legend b {
  width: 10px !important;
  height: 10px !important;
  border-radius: 50% !important;
  margin-inline-end: 4px !important;
}

.outcomes-legend strong {
  margin-inline-start: auto !important;
  color: #191b23 !important;
  font-family: var(--font-number) !important;
}

.recent-donations-card table {
  margin: 0 !important;
  border: 1px solid #e0e5ef !important;
}

.recent-donations-card th {
  background: #0058be !important;
  color: #ffffff !important;
}

.recent-donations-card td:nth-child(2),
.recent-donations-card td:nth-child(3) {
  font-family: var(--font-number) !important;
}

@media (max-width: 1180px) {
  .management-kpis {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  .management-charts {
    grid-template-columns: 1fr !important;
  }
}

@media (max-width: 720px) {
  .management-dashboard-head,
  .management-kpis {
    grid-template-columns: 1fr !important;
  }

  .management-dashboard-head {
    display: grid !important;
  }
}

/* Premium enterprise navigation shell */
:root {
  --enterprise-sidebar: 292px;
  --enterprise-header: 72px;
  --enterprise-blue: #0058be;
  --enterprise-bg: #f8fafc;
  --enterprise-line: #e2e8f0;
}

body {
  background: var(--enterprise-bg) !important;
}

.enterprise-sidebar {
  position: fixed !important;
  inset-block: 0 !important;
  right: 0 !important;
  left: auto !important;
  z-index: 2400 !important;
  width: var(--enterprise-sidebar) !important;
  padding: 24px 18px 18px !important;
  display: grid !important;
  grid-template-rows: auto 1fr auto !important;
  gap: 28px !important;
  background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%) !important;
  border-left: 1px solid var(--enterprise-line) !important;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.08), -10px 0 30px rgba(15, 23, 42, 0.04) !important;
}

.enterprise-brand {
  display: grid !important;
  justify-items: center !important;
  gap: 5px !important;
  padding: 4px 8px 12px !important;
  border-bottom: 1px solid #eef2f7 !important;
  text-align: center !important;
}

.remit-monogram {
  position: relative !important;
  width: 72px !important;
  height: 56px !important;
  margin-bottom: 2px !important;
  display: grid !important;
  place-items: center !important;
  font-family: Rubik, Arial, sans-serif !important;
  filter: drop-shadow(0 10px 14px rgba(42, 127, 130, 0.18)) !important;
}

.remit-monogram span,
.remit-monogram b {
  position: absolute !important;
  font-size: 48px !important;
  line-height: 1 !important;
  font-weight: 500 !important;
  letter-spacing: 0 !important;
}

.remit-monogram span {
  color: #2a7f82 !important;
  transform: translateX(7px) skew(-6deg) !important;
  text-shadow: 2px 3px 0 rgba(12, 74, 78, 0.14) !important;
}

.remit-monogram b {
  color: #3CB86C !important;
  transform: translateX(-7px) skew(-7deg) !important;
  mix-blend-mode: multiply !important;
  text-shadow: 2px 3px 0 rgba(63, 98, 18, 0.14) !important;
}

.enterprise-brand strong {
  color: #2b313b !important;
  font-size: 28px !important;
  line-height: 1 !important;
  font-weight: 500 !important;
  letter-spacing: 0 !important;
}

.enterprise-brand small {
  color: #64748b !important;
  font-size: 13px !important;
  line-height: 1.35 !important;
  font-weight: 500 !important;
}

.enterprise-nav-list {
  display: grid !important;
  align-content: start !important;
  gap: 16px !important;
}

.enterprise-nav-item,
.enterprise-logout {
  min-height: 48px !important;
  border-radius: 8px !important;
  letter-spacing: 0 !important;
  transition: background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease !important;
}

.enterprise-nav-item {
  width: 100% !important;
  display: grid !important;
  grid-template-columns: 24px minmax(0, 1fr) !important;
  align-items: center !important;
  justify-content: start !important;
  gap: 13px !important;
  padding: 12px 14px !important;
  border: 1px solid transparent !important;
  background: transparent !important;
  color: #475569 !important;
  font-size: 15px !important;
  font-weight: 500 !important;
  text-align: right !important;
  box-shadow: none !important;
}

.enterprise-nav-item svg {
  width: 24px !important;
  height: 24px !important;
  color: currentColor !important;
}

.enterprise-nav-item:hover,
.enterprise-nav-item:focus-visible {
  background: #f1f5f9 !important;
  color: #0f172a !important;
  border-color: #e2e8f0 !important;
  transform: translateX(-2px) !important;
}

.enterprise-nav-item.active {
  background: #eaf2ff !important;
  color: var(--enterprise-blue) !important;
  border-color: rgba(0, 88, 190, 0.16) !important;
  box-shadow: inset -4px 0 0 var(--enterprise-blue), 0 10px 22px rgba(0, 88, 190, 0.08) !important;
  font-weight: 500 !important;
}

.enterprise-sidebar-footer {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) 48px !important;
  gap: 10px !important;
  padding-top: 18px !important;
  border-top: 1px solid #eef2f7 !important;
}

.enterprise-sidebar-footer .compact {
  min-height: 44px !important;
}

.enterprise-sidebar-footer .icon-only {
  grid-template-columns: 1fr !important;
  place-items: center !important;
  padding: 0 !important;
}

.enterprise-sidebar-footer .icon-only span {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
}

.enterprise-logout {
  grid-column: 1 / -1 !important;
  width: 100% !important;
  min-height: 42px !important;
  border: 1px solid #dbe3ee !important;
  background: #ffffff !important;
  color: #334155 !important;
  font-size: 14px !important;
  font-weight: 500 !important;
  box-shadow: none !important;
}

.enterprise-logout:hover,
.enterprise-logout:focus-visible {
  background: #f8fafc !important;
  color: #0f172a !important;
  border-color: #cbd5e1 !important;
}

.enterprise-header.app-header {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  z-index: 2300 !important;
  width: auto !important;
  min-width: 0 !important;
  height: var(--enterprise-header) !important;
  min-height: var(--enterprise-header) !important;
  padding: 12px 24px !important;
  display: grid !important;
  grid-template-columns: minmax(180px, 1fr) minmax(320px, 520px) minmax(360px, auto) !important;
  align-items: center !important;
  gap: 20px !important;
  background: rgba(255, 255, 255, 0.92) !important;
  border-bottom: 1px solid var(--enterprise-line) !important;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04) !important;
  backdrop-filter: blur(16px) !important;
  overflow: visible !important;
  pointer-events: auto !important;
}

body:has(.enterprise-sidebar) .enterprise-header.app-header {
  right: var(--enterprise-sidebar) !important;
  left: 0 !important;
}

.enterprise-breadcrumbs {
  color: #64748b !important;
  font-size: 13px !important;
  font-weight: 500 !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

.enterprise-search {
  height: 42px !important;
  display: grid !important;
  grid-template-columns: auto minmax(0, 1fr) !important;
  align-items: center !important;
  gap: 10px !important;
  padding: 0 12px !important;
  border: 1px solid #dbe3ee !important;
  border-radius: 8px !important;
  background: #f8fafc !important;
  color: #64748b !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8) !important;
}

.enterprise-search span {
  order: 2 !important;
  min-width: 42px !important;
  padding: 3px 8px !important;
  border: 1px solid #d3dce9 !important;
  border-radius: 6px !important;
  background: #ffffff !important;
  color: #64748b !important;
  font-size: 12px !important;
  font-weight: 500 !important;
  text-align: center !important;
}

.enterprise-search input {
  width: 100% !important;
  height: 38px !important;
  min-height: 38px !important;
  padding: 0 !important;
  border: 0 !important;
  outline: 0 !important;
  background: transparent !important;
  color: #0f172a !important;
  font-size: 14px !important;
  font-weight: 500 !important;
}

.enterprise-bell span,


.enterprise-avatar {
  width: 40px !important;
  height: 40px !important;
  display: grid !important;
  place-items: center !important;
  border-radius: 50% !important;
  background: linear-gradient(135deg, #0058be, #2a7f82) !important;
  color: #ffffff !important;
  font-size: 17px !important;
  font-weight: 500 !important;
}

.enterprise-user-text {
  display: grid !important;
  gap: 2px !important;
  min-width: 118px !important;
}

.enterprise-user-text strong {
  color: #0f172a !important;
  font-size: 14px !important;
  line-height: 1.2 !important;
  font-weight: 500 !important;
  white-space: nowrap !important;
}

.enterprise-user-text small {
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  color: #64748b !important;
  font-size: 12px !important;
  line-height: 1.1 !important;
  font-weight: 500 !important;
}

.enterprise-user-text i {
  width: 8px !important;
  height: 8px !important;
  border-radius: 999px !important;
  background: #3CB86C !important;
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.12) !important;
}



.enterprise-role {
  display: inline-flex !important;
  align-items: center !important;
  padding: 0 12px !important;
}

body:has(.enterprise-sidebar) .main {
  margin-right: var(--enterprise-sidebar) !important;
  margin-left: 0 !important;
  padding: calc(var(--enterprise-header) + 24px) 28px 44px !important;
  background: var(--enterprise-bg) !important;
}

body:has(.enterprise-sidebar) .main > .topbar {
  min-height: 74px !important;
  margin: 0 0 22px !important;
  padding: 0 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 18px !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}

body:has(.enterprise-sidebar) .main > .topbar h1 {
  margin: 0 !important;
  color: #0f172a !important;
  font-size: 28px !important;
  line-height: 1.2 !important;
  font-weight: 500 !important;
}

body:has(.enterprise-sidebar) .main > .topbar p {
  margin: 5px 0 0 !important;
  color: #64748b !important;
  font-size: 13px !important;
  font-weight: 500 !important;
}

body:has(.enterprise-sidebar) .topbar .actions {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  flex-wrap: wrap !important;
}

body:has(.enterprise-sidebar) .system-nav:not(.operator-system-nav) {
  display: none !important;
}

@media (max-width: 1120px) {
  .enterprise-header.app-header {
    grid-template-columns: minmax(150px, 1fr) minmax(220px, 360px) auto !important;
  }
}

@media (max-width: 820px) {
  .enterprise-sidebar {
    position: sticky !important;
    top: 0 !important;
    right: auto !important;
    left: auto !important;
    width: 100% !important;
    min-height: auto !important;
    padding: 12px !important;
    grid-template-rows: auto auto !important;
    gap: 12px !important;
    border-left: 0 !important;
    border-bottom: 1px solid var(--enterprise-line) !important;
  }

  .enterprise-brand {
    grid-template-columns: auto auto 1fr !important;
    justify-items: start !important;
    text-align: right !important;
    padding: 0 4px 10px !important;
  }

  .remit-monogram {
    width: 44px !important;
    height: 34px !important;
  }

  .remit-monogram span,
  .remit-monogram b {
    font-size: 31px !important;
  }

  .enterprise-brand small {
    grid-column: 2 / -1 !important;
  }

  .enterprise-nav-list {
    display: flex !important;
    gap: 8px !important;
    overflow-x: auto !important;
    padding-bottom: 2px !important;
  }

  .enterprise-nav-item {
    min-width: max-content !important;
  }

  .enterprise-sidebar-footer {
    display: none !important;
  }

  body:has(.enterprise-sidebar) .enterprise-header.app-header {
    position: sticky !important;
    right: auto !important;
    height: auto !important;
    min-height: 64px !important;
    grid-template-columns: 1fr auto !important;
    padding: 10px 14px !important;
  }

  .enterprise-search {
    display: none !important;
  }

  .enterprise-user-text,
  .enterprise-breadcrumbs {
    display: none !important;
  }

  body:has(.enterprise-sidebar) .main {
    margin-right: 0 !important;
    margin-left: 0 !important;
    padding: 18px 14px 32px !important;
  }
}

/* Clean Apple-style enterprise top navigation */
:root {
  --clean-nav-height: 76px;
  --clean-page-max: 1440px;
}

.enterprise-sidebar {
  display: none !important;
}

.enterprise-header.app-header {
  position: fixed !important;
  inset: 0 0 auto 0 !important;
  z-index: 2400 !important;
  width: 100% !important;
  height: var(--clean-nav-height) !important;
  min-height: var(--clean-nav-height) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 0 32px !important;
  background: rgba(255, 255, 255, 0.94) !important;
  border-bottom: 1px solid rgba(226, 232, 240, 0.9) !important;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04) !important;
  backdrop-filter: blur(18px) !important;
  pointer-events: auto !important;
}

body:has(.enterprise-header) .enterprise-header.app-header {
  right: 0 !important;
  left: 0 !important;
}

.enterprise-header .enterprise-brand {
  position: absolute !important;
  left: 32px !important;
  right: auto !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 10px !important;
  padding: 0 !important;
  border: 0 !important;
  text-align: left !important;
}

.enterprise-header .remit-monogram {
  width: 38px !important;
  height: 30px !important;
  margin: 0 !important;
  filter: none !important;
}

.enterprise-header .remit-monogram span,
.enterprise-header .remit-monogram b {
  font-size: 28px !important;
}

.enterprise-header .remit-monogram span {
  transform: translateX(4px) skew(-6deg) !important;
}

.enterprise-header .remit-monogram b {
  transform: translateX(-4px) skew(-7deg) !important;
}

.enterprise-header .enterprise-brand strong {
  color: #1f2937 !important;
  font-size: 20px !important;
  font-weight: 500 !important;
  letter-spacing: 0 !important;
}

.enterprise-header .enterprise-brand small {
  display: none !important;
}

.enterprise-top-nav {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 34px !important;
  height: 100% !important;
}

.enterprise-top-link {
  position: relative !important;
  min-height: 100% !important;
  padding: 0 2px !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  color: #475569 !important;
  font-size: 15px !important;
  font-weight: 500 !important;
  line-height: var(--clean-nav-height) !important;
  letter-spacing: 0 !important;
  box-shadow: none !important;
}

.enterprise-top-link::after {
  content: "" !important;
  position: absolute !important;
  right: 0 !important;
  left: 0 !important;
  bottom: 0 !important;
  height: 2px !important;
  border-radius: 999px !important;
  background: #0058be !important;
  opacity: 0 !important;
  transform: scaleX(0.4) !important;
  transition: opacity 0.18s ease, transform 0.18s ease !important;
}

.enterprise-top-link:hover,
.enterprise-top-link:focus-visible,
.enterprise-top-link.active {
  color: #0f172a !important;
  background: transparent !important;
}

.enterprise-top-link.active::after {
  opacity: 1 !important;
  transform: scaleX(1) !important;
}

.enterprise-avatar {
  width: 38px !important;
  height: 38px !important;
  border-radius: 50% !important;
  background: #0058be !important;
  color: #ffffff !important;
  font-size: 15px !important;
  font-weight: 500 !important;
  box-shadow: 0 8px 18px rgba(0, 88, 190, 0.16) !important;
}

body:has(.enterprise-header) .main {
  max-width: var(--clean-page-max) !important;
  margin: 0 auto !important;
  padding: calc(var(--clean-nav-height) + 32px) 32px 48px !important;
  background: #f8fafc !important;
}

body:has(.enterprise-header) .main > .topbar {
  max-width: var(--clean-page-max) !important;
  margin: 0 0 32px !important;
  padding: 0 !important;
  min-height: auto !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}

.management-dashboard {
  max-width: var(--clean-page-max) !important;
  margin: 0 auto !important;
  gap: 32px !important;
}

.management-dashboard-head {
  align-items: flex-end !important;
  padding: 8px 0 0 !important;
  margin: 0 !important;
}

.management-dashboard-head h2 {
  color: #0f172a !important;
  font-size: 34px !important;
  line-height: 1.15 !important;
  font-weight: 500 !important;
}

.management-dashboard-head p {
  margin-top: 10px !important;
  color: #64748b !important;
  font-size: 15px !important;
}

.management-dashboard-head > span {
  color: #64748b !important;
  font-size: 13px !important;
  font-weight: 500 !important;
}

.management-kpis {
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 24px !important;
}

.management-kpi,
.management-card {
  border: 1px solid rgba(226, 232, 240, 0.92) !important;
  border-radius: 14px !important;
  background: #ffffff !important;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.045) !important;
}

.management-kpi {
  min-height: 168px !important;
  padding: 24px !important;
  overflow: hidden !important;
}

.management-kpi::before {
  content: none !important;
}

.management-kpi span {
  color: #64748b !important;
  font-size: 13px !important;
  font-weight: 500 !important;
}

.management-kpi strong {
  color: #0f172a !important;
  font-size: 34px !important;
  line-height: 1.05 !important;
  font-weight: 500 !important;
}

.management-kpi em {
  color: #94a3b8 !important;
  font-size: 12px !important;
  font-weight: 550 !important;
}

.management-kpi.primary-kpi {
  background: #ffffff !important;
  border-color: rgba(0, 88, 190, 0.18) !important;
}

.management-kpi.primary-kpi span,
.management-kpi.primary-kpi strong,
.management-kpi.primary-kpi em {
  color: inherit !important;
}

.management-kpi.primary-kpi strong {
  color: #0058be !important;
}

.kpi-sparkline {
  width: 92px !important;
  height: 42px !important;
  align-self: end !important;
  margin-top: 4px !important;
  overflow: visible !important;
}

.kpi-sparkline polyline {
  fill: none !important;
  stroke: #0058be !important;
  stroke-width: 2.4 !important;
  stroke-linecap: round !important;
  stroke-linejoin: round !important;
  opacity: 0.72 !important;
}

.management-charts {
  grid-template-columns: minmax(0, 1.45fr) minmax(320px, 0.75fr) !important;
  gap: 24px !important;
}

.management-card {
  padding: 28px !important;
}

.management-card-head {
  margin-bottom: 22px !important;
}

.management-card-head h3 {
  color: #0f172a !important;
  font-size: 18px !important;
  font-weight: 500 !important;
}

.management-card-head span {
  color: #64748b !important;
  font-size: 12px !important;
  font-weight: 500 !important;
}

.donation-line-chart {
  min-height: 250px !important;
}

.chart-grid-line {
  display: none !important;
}

.chart-area {
  fill: rgba(0, 88, 190, 0.055) !important;
}

.chart-line {
  stroke: #0058be !important;
  stroke-width: 4 !important;
}

.outcomes-pie {
  width: 210px !important;
  box-shadow: inset 0 0 0 1px rgba(226, 232, 240, 0.8) !important;
}

.outcomes-pie::after {
  inset: 58px !important;
}

.outcomes-legend {
  gap: 12px !important;
}

.recent-donations-card {
  display: none !important;
}

@media (max-width: 980px) {
  .enterprise-top-nav {
    gap: 18px !important;
  }

  .enterprise-header .enterprise-brand strong {
    display: none !important;
  }

  .management-kpis,
  .management-charts {
    grid-template-columns: 1fr 1fr !important;
  }
}

@media (max-width: 720px) {
  .enterprise-header.app-header {
    padding: 0 16px !important;
  }

  .enterprise-header .enterprise-brand {
    left: 16px !important;
  }

  .enterprise-top-nav {
    max-width: calc(100vw - 150px) !important;
    justify-content: flex-start !important;
    overflow-x: auto !important;
    scrollbar-width: none !important;
  }

  body:has(.enterprise-header) .main {
    padding: calc(var(--clean-nav-height) + 24px) 18px 36px !important;
  }

  .management-dashboard-head,
  .management-kpis,
  .management-charts {
    grid-template-columns: 1fr !important;
  }
}

/* Premium dropdown enterprise top navigation */
:root {
  --premium-nav-height: 82px;
  --premium-blue: #0058be;
  --premium-bg: #f8fafc;
  --premium-line: #e2e8f0;
}

.premium-dropdown-header.enterprise-header.app-header {
  height: var(--premium-nav-height) !important;
  min-height: var(--premium-nav-height) !important;
  padding: 0 28px !important;
  display: grid !important;
  grid-template-columns: minmax(250px, 0.8fr) minmax(520px, 1.6fr) minmax(250px, 0.8fr) !important;
  align-items: center !important;
  justify-content: normal !important;
  gap: 24px !important;
  background: rgba(255, 255, 255, 0.96) !important;
  border-bottom: 1px solid var(--premium-line) !important;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.045) !important;
}

.premium-dropdown-header .enterprise-brand {
  position: static !important;
  transform: none !important;
  justify-self: end !important;
  display: grid !important;
  grid-template-columns: auto auto !important;
  grid-template-rows: auto auto !important;
  align-items: center !important;
  justify-content: end !important;
  column-gap: 10px !important;
  row-gap: 1px !important;
  padding: 0 !important;
  border: 0 !important;
  text-align: right !important;
}

.premium-dropdown-header .remit-monogram {
  grid-row: 1 / 3 !important;
  grid-column: 1 !important;
  width: 52px !important;
  height: 42px !important;
  margin: 0 !important;
  filter: drop-shadow(0 8px 12px rgba(42, 127, 130, 0.14)) !important;
}

.premium-dropdown-header .remit-monogram span,
.premium-dropdown-header .remit-monogram b {
  font-size: 38px !important;
  font-weight: 500 !important;
}

.premium-dropdown-header .remit-monogram span {
  color: #2a7f82 !important;
  transform: translateX(6px) skew(-6deg) !important;
  text-shadow: 2px 2px 0 rgba(12, 74, 78, 0.12) !important;
}

.premium-dropdown-header .remit-monogram b {
  color: #3CB86C !important;
  transform: translateX(-5px) skew(-7deg) !important;
  text-shadow: 2px 2px 0 rgba(63, 98, 18, 0.12) !important;
}

.premium-dropdown-header .enterprise-brand strong {
  grid-column: 2 !important;
  display: block !important;
  color: #252b36 !important;
  font-size: 20px !important;
  line-height: 1 !important;
  font-weight: 500 !important;
  letter-spacing: 0 !important;
}

.premium-dropdown-header .enterprise-brand small {
  grid-column: 2 !important;
  display: block !important;
  color: #64748b !important;
  font-size: 11.5px !important;
  line-height: 1.25 !important;
  font-weight: 500 !important;
  white-space: nowrap !important;
}

.premium-dropdown-header .enterprise-top-nav {
  justify-self: center !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 6px !important;
  height: 100% !important;
  overflow: visible !important;
}

.enterprise-nav-group {
  position: relative !important;
  height: 100% !important;
  display: flex !important;
  align-items: center !important;
}

.premium-dropdown-header .enterprise-top-link {
  min-height: var(--premium-nav-height) !important;
  height: var(--premium-nav-height) !important;
  padding: 0 14px !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  color: #475569 !important;
  font-size: 14.5px !important;
  font-weight: 500 !important;
  line-height: var(--premium-nav-height) !important;
  white-space: nowrap !important;
  box-shadow: none !important;
}

.premium-dropdown-header .enterprise-top-link span {
  color: #94a3b8 !important;
  font-size: 13px !important;
}

.premium-dropdown-header .enterprise-top-link::after,
.enterprise-nav-group::after {
  content: "" !important;
  position: absolute !important;
  right: 14px !important;
  left: 14px !important;
  bottom: 0 !important;
  height: 2px !important;
  border-radius: 999px !important;
  background: var(--premium-blue) !important;
  opacity: 0 !important;
  transform: scaleX(0.45) !important;
  transition: opacity 0.16s ease, transform 0.16s ease !important;
}

.premium-dropdown-header > .enterprise-top-nav > .enterprise-top-link.active::after,
.enterprise-nav-group.active::after {
  opacity: 1 !important;
  transform: scaleX(1) !important;
}

.enterprise-nav-group .enterprise-top-link::after {
  content: none !important;
}

.premium-dropdown-header .enterprise-top-link:hover,
.premium-dropdown-header .enterprise-top-link:focus-visible,
.enterprise-nav-group:hover .enterprise-top-link,
.enterprise-nav-group:focus-within .enterprise-top-link {
  color: #0f172a !important;
  background: transparent !important;
}

.enterprise-dropdown {
  position: absolute !important;
  top: calc(100% - 8px) !important;
  right: 0 !important;
  z-index: 2600 !important;
  min-width: 220px !important;
  padding: 8px !important;
  display: grid !important;
  gap: 4px !important;
  border: 1px solid var(--premium-line) !important;
  border-radius: 10px !important;
  background: #ffffff !important;
  box-shadow: 0 18px 44px rgba(15, 23, 42, 0.13) !important;
  opacity: 0 !important;
  visibility: hidden !important;
  transform: translateY(8px) !important;
  transition: opacity 0.14s ease, transform 0.14s ease, visibility 0.14s ease !important;
}

.enterprise-nav-group:hover .enterprise-dropdown,
.enterprise-nav-group:focus-within .enterprise-dropdown {
  opacity: 1 !important;
  visibility: visible !important;
  transform: translateY(0) !important;
}

.enterprise-dropdown button {
  width: 100% !important;
  min-height: 38px !important;
  padding: 9px 12px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  border: 0 !important;
  border-radius: 7px !important;
  background: transparent !important;
  color: #334155 !important;
  font-size: 14px !important;
  font-weight: 500 !important;
  text-align: right !important;
  box-shadow: none !important;
}

.enterprise-dropdown button:hover,
.enterprise-dropdown button:focus-visible,
.enterprise-dropdown button.active {
  background: #f1f6ff !important;
  color: var(--premium-blue) !important;
}



.enterprise-slim-search {
  width: 168px !important;
  height: 38px !important;
  display: grid !important;
  grid-template-columns: 18px minmax(0, 1fr) !important;
  align-items: center !important;
  gap: 8px !important;
  padding: 0 11px !important;
  border: 1px solid var(--premium-line) !important;
  border-radius: 8px !important;
  background: #f8fafc !important;
  color: #64748b !important;
}

.enterprise-slim-search svg {
  width: 17px !important;
  height: 17px !important;
}

.enterprise-slim-search input {
  width: 100% !important;
  height: 34px !important;
  min-height: 34px !important;
  padding: 0 !important;
  border: 0 !important;
  outline: 0 !important;
  background: transparent !important;
  color: #0f172a !important;
  font-size: 13.5px !important;
  font-weight: 500 !important;
}

.premium-dropdown-header .enterprise-avatar {
  background: #0058be !important;
}

body:has(.premium-dropdown-header) .main {
  max-width: var(--clean-page-max) !important;
  padding-top: calc(var(--premium-nav-height) + 32px) !important;
}

@media (max-width: 1180px) {
  .premium-dropdown-header.enterprise-header.app-header {
    grid-template-columns: auto minmax(360px, 1fr) auto !important;
    gap: 14px !important;
  }

  .enterprise-slim-search,
  .premium-dropdown-header .enterprise-user-select {
    display: none !important;
  }

  .premium-dropdown-header .enterprise-top-link {
    padding-inline: 9px !important;
    font-size: 13.5px !important;
  }
}

/* Final minimal high-end enterprise navigation */
.premium-minimal-header.enterprise-header.app-header {
  height: 78px !important;
  min-height: 78px !important;
  display: flex !important;
  justify-content: center !important;
  grid-template-columns: minmax(220px, 0.72fr) minmax(520px, 1.8fr) minmax(260px, 0.72fr) !important;
  padding: 0 32px !important;
  background: #ffffff !important;
  border-bottom: 1px solid #e2e8f0 !important;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.035) !important;
}

.premium-minimal-header .enterprise-brand {
  position: absolute !important;
  right: 32px !important;
  left: auto !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  appearance: none !important;
  min-height: 0 !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  cursor: pointer !important;
}

.premium-minimal-header .enterprise-brand:hover {
  background: transparent !important;
}

.premium-minimal-header .enterprise-top-nav {
  justify-self: auto !important;
  margin-inline-start: 180px !important;
  margin-inline-end: 240px !important;
  transform: translateX(-54px) !important;
  gap: 8px !important;
}

.premium-minimal-header .enterprise-top-link {
  height: 78px !important;
  min-height: 78px !important;
  padding: 0 13px !important;
  color: #334155 !important;
  font-size: 16px !important;
  font-weight: 500 !important;
  line-height: 78px !important;
}

.premium-minimal-header .enterprise-top-link:hover,
.premium-minimal-header .enterprise-top-link:focus-visible,
.premium-minimal-header .enterprise-nav-group:hover .enterprise-top-link,
.premium-minimal-header .enterprise-nav-group:focus-within .enterprise-top-link {
  color: #0058be !important;
}

.premium-minimal-header .enterprise-nav-group.active .enterprise-top-link {
  color: #0f172a !important;
}

.premium-minimal-header .enterprise-nav-group::after {
  right: 13px !important;
  left: 13px !important;
}

.premium-minimal-header .enterprise-dropdown {
  top: calc(100% - 6px) !important;
  min-width: 235px !important;
  padding: 10px !important;
  border-radius: 8px !important;
  box-shadow: 0 16px 38px rgba(15, 23, 42, 0.12) !important;
}

.premium-minimal-header .enterprise-dropdown button {
  min-height: 40px !important;
  color: #334155 !important;
  font-size: 14.5px !important;
  font-weight: 500 !important;
}

.premium-minimal-header .enterprise-dropdown button:hover,
.premium-minimal-header .enterprise-dropdown button.active {
  background: #f1f6ff !important;
  color: #0058be !important;
}





.enterprise-user-dropdown {
  position: absolute !important;
  top: calc(100% + 8px) !important;
  left: 0 !important;
  z-index: 2700 !important;
  width: 220px !important;
  padding: 8px !important;
  display: grid !important;
  gap: 4px !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 8px !important;
  background: #ffffff !important;
  box-shadow: 0 16px 38px rgba(15, 23, 42, 0.12) !important;
  opacity: 0 !important;
  visibility: hidden !important;
  transform: translateY(6px) !important;
  transition: opacity 0.14s ease, transform 0.14s ease, visibility 0.14s ease !important;
}

.enterprise-user-dropdown span {
  font-size: 13.5px !important;
  font-weight: 500 !important;
}

.enterprise-user-dropdown small {
  color: #64748b !important;
  font-size: 11px !important;
  font-weight: 500 !important;
}

body:has(.premium-minimal-header) .main {
  padding-top: 110px !important;
}

@media (max-width: 1180px) {
  .premium-minimal-header.enterprise-header.app-header {
    grid-template-columns: auto minmax(420px, 1fr) auto !important;
    padding-inline: 22px !important;
  }

  .premium-minimal-header .enterprise-brand {
    right: 22px !important;
  }

  .premium-minimal-header .enterprise-top-nav {
    margin-inline-start: 150px !important;
    margin-inline-end: 210px !important;
    transform: translateX(-36px) !important;
  }

  .premium-minimal-header .enterprise-brand small {
    display: none !important;
  }

  .premium-minimal-header .enterprise-top-link {
    padding-inline: 9px !important;
    font-size: 14px !important;
  }
}

/* Final blue two-line navigation and classic table settings */
:root {
  --remit-system-blue: #5684e8;
}

.premium-minimal-header.enterprise-header.app-header {
  height: 96px !important;
  min-height: 96px !important;
  display: grid !important;
  grid-template-columns: auto minmax(0, 1fr) auto !important;
  grid-template-rows: 52px 44px !important;
  align-items: stretch !important;
  gap: 0 22px !important;
  padding: 0 28px !important;
  background: var(--remit-system-blue) !important;
  border: 0 !important;
  box-shadow: 0 1px 0 rgba(15, 23, 42, 0.08) !important;
}

.premium-minimal-header .enterprise-brand {
  position: static !important;
  grid-column: 1 !important;
  grid-row: 1 / 3 !important;
  align-self: center !important;
  transform: none !important;
  width: auto !important;
  display: grid !important;
  grid-template-columns: auto auto !important;
  grid-template-rows: auto auto !important;
  column-gap: 8px !important;
  background: transparent !important;
  color: #ffffff !important;
}

.premium-minimal-header .remit-monogram {
  width: 40px !important;
  height: 32px !important;
  filter: none !important;
}

.premium-minimal-header .remit-monogram span,
.premium-minimal-header .remit-monogram b {
  font-size: 30px !important;
  text-shadow: none !important;
}

.premium-minimal-header .enterprise-brand strong,
.premium-minimal-header .enterprise-brand small {
  color: #ffffff !important;
}

.premium-minimal-header .enterprise-brand strong {
  font-size: 18px !important;
}

.premium-minimal-header .enterprise-brand small {
  display: block !important;
  font-size: 10.5px !important;
  opacity: 0.86 !important;
}

.premium-minimal-header .enterprise-nav-stack {
  grid-column: 2 !important;
  grid-row: 1 / 3 !important;
  min-width: 0 !important;
  display: grid !important;
  grid-template-rows: 52px 44px !important;
}

.premium-minimal-header .enterprise-top-nav,
.premium-minimal-header .enterprise-sub-nav {
  margin: 0 !important;
  transform: none !important;
  justify-self: start !important;
  justify-content: flex-start !important;
  width: 100% !important;
  display: flex !important;
  align-items: center !important;
  gap: 6px !important;
  overflow-x: auto !important;
  overflow-y: visible !important;
  scrollbar-width: none !important;
}

.premium-minimal-header .enterprise-sub-nav {
  border-top: 1px solid rgba(255, 255, 255, 0.16) !important;
  gap: 8px !important;
}

.premium-minimal-header .enterprise-top-link,
.premium-minimal-header .enterprise-sub-link {
  height: auto !important;
  min-height: 30px !important;
  line-height: 1.2 !important;
  padding: 6px 10px !important;
  border: 0 !important;
  border-radius: 7px !important;
  background: transparent !important;
  color: rgba(255, 255, 255, 0.82) !important;
  font-size: 13px !important;
  font-weight: 500 !important;
  letter-spacing: 0 !important;
  box-shadow: none !important;
  white-space: nowrap !important;
}

.premium-minimal-header .enterprise-top-link::after,
.premium-minimal-header .enterprise-nav-group::after {
  content: none !important;
}

.premium-minimal-header .enterprise-top-link:hover,
.premium-minimal-header .enterprise-top-link.selected,
.premium-minimal-header .enterprise-top-link.active,
.premium-minimal-header .enterprise-sub-link:hover,
.premium-minimal-header .enterprise-sub-link.active {
  background: rgba(255, 255, 255, 0.16) !important;
  color: #ffffff !important;
}

.premium-minimal-header .enterprise-sub-link.active {
  box-shadow: inset 0 -2px 0 #ffffff !important;
  font-weight: 500 !important;
}

.enterprise-dropdown {
  display: none !important;
}

/* Nav tabs correction: two real rows, flat bordered tabs */
.premium-minimal-header.enterprise-header.app-header {
  height: 78px !important;
  min-height: 78px !important;
  grid-template-columns: minmax(250px, auto) minmax(0, 1fr) minmax(250px, auto) !important;
  grid-template-rows: 39px 39px !important;
  align-items: stretch !important;
  column-gap: 20px !important;
  row-gap: 0 !important;
  padding: 0 20px !important;
  background: #5684e8 !important;
}

.premium-minimal-header .enterprise-brand {
  grid-column: 1 !important;
  grid-row: 1 !important;
  align-self: center !important;
}



.premium-minimal-header .enterprise-nav-stack {
  grid-column: 2 / 4 !important;
  grid-row: 1 / 3 !important;
  height: 78px !important;
  display: grid !important;
  grid-template-rows: 39px 39px !important;
  align-items: stretch !important;
}

.premium-minimal-header .enterprise-top-nav,
.premium-minimal-header .enterprise-sub-nav {
  width: 100% !important;
  min-width: 0 !important;
  height: 39px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 10px !important;
  border: 0 !important;
  overflow-x: auto !important;
  overflow-y: hidden !important;
}

.premium-minimal-header .enterprise-sub-nav {
  padding-top: 1px !important;
}

.premium-minimal-header .enterprise-nav-group {
  height: 39px !important;
  display: flex !important;
  align-items: center !important;
}

.premium-minimal-header .enterprise-top-link,
.premium-minimal-header .enterprise-sub-link {
  min-height: 25px !important;
  height: 25px !important;
  padding: 3px 9px !important;
  border: 1px solid rgba(255, 255, 255, 0.26) !important;
  border-radius: 3px !important;
  background: transparent !important;
  color: rgba(255, 255, 255, 0.92) !important;
  font-size: 12.5px !important;
  font-weight: 500 !important;
  line-height: 17px !important;
  box-shadow: none !important;
}

.premium-minimal-header .enterprise-top-link:hover,
.premium-minimal-header .enterprise-top-link:focus-visible,
.premium-minimal-header .enterprise-sub-link:hover,
.premium-minimal-header .enterprise-sub-link:focus-visible {
  border-color: rgba(255, 255, 255, 0.72) !important;
  background: rgba(255, 255, 255, 0.16) !important;
  color: #ffffff !important;
}

.premium-minimal-header .enterprise-nav-group.selected .enterprise-top-link,
.premium-minimal-header .enterprise-nav-group.active .enterprise-top-link,
.premium-minimal-header .enterprise-sub-link.active {
  border-color: rgba(255, 255, 255, 0.9) !important;
  background: rgba(255, 255, 255, 0.92) !important;
  color: #2f63c8 !important;
}

.premium-minimal-header .enterprise-sub-link.active {
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.22) !important;
}

body:has(.premium-minimal-header) .main {
  padding-top: 108px !important;
}

/* Final navigation layout: real two-row rail, user switch on the left */
.enterprise-two-row-header.premium-minimal-header.enterprise-header.app-header {
  direction: ltr !important;
  height: 78px !important;
  min-height: 78px !important;
  display: grid !important;
  grid-template-columns: minmax(260px, auto) minmax(0, 1fr) minmax(160px, auto) !important;
  grid-template-rows: 39px 39px !important;
  align-items: stretch !important;
  gap: 0 18px !important;
  padding: 0 18px !important;
  background: #5684e8 !important;
  border: 0 !important;
  overflow: visible !important;
}



.enterprise-two-row-header.premium-minimal-header .enterprise-brand {
  grid-column: 3 !important;
  grid-row: 1 !important;
  align-self: center !important;
  justify-self: end !important;
  position: static !important;
  transform: none !important;
}

.enterprise-two-row-header.premium-minimal-header .enterprise-nav-rail {
  grid-column: 2 !important;
  grid-row: 1 / 3 !important;
  justify-self: end !important;
  width: max-content !important;
  max-width: 100% !important;
  min-width: 0 !important;
  height: 78px !important;
  display: grid !important;
  grid-template-rows: 39px 39px !important;
  align-items: stretch !important;
}

.enterprise-two-row-header.premium-minimal-header .enterprise-nav-rail > .enterprise-top-nav,
.enterprise-two-row-header.premium-minimal-header .enterprise-nav-rail > .enterprise-sub-nav {
  width: 100% !important;
  min-width: 0 !important;
  height: 39px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 14px !important;
  padding: 0 !important;
  margin: 0 !important;
  transform: none !important;
  border: 0 !important;
  overflow: hidden !important;
}

.enterprise-two-row-header.premium-minimal-header .enterprise-nav-rail > .enterprise-top-nav {
  grid-row: 1 !important;
}

.enterprise-two-row-header.premium-minimal-header .enterprise-nav-rail > .enterprise-sub-nav {
  grid-row: 2 !important;
}

.enterprise-two-row-header.premium-minimal-header .enterprise-nav-group {
  height: 39px !important;
  display: flex !important;
  align-items: center !important;
  padding: 0 !important;
}

body .enterprise-two-row-header.premium-minimal-header.enterprise-header.app-header .enterprise-nav-rail button.enterprise-top-link,
body .enterprise-two-row-header.premium-minimal-header.enterprise-header.app-header .enterprise-nav-rail button.enterprise-sub-link {
  height: 26px !important;
  min-height: 26px !important;
  padding: 4px 11px !important;
  border: 1px solid transparent !important;
  border-radius: 4px !important;
  background: transparent !important;
  color: rgba(255, 255, 255, 0.92) !important;
  font-size: 13px !important;
  font-weight: 500 !important;
  line-height: 16px !important;
  box-shadow: none !important;
}

body .enterprise-two-row-header.premium-minimal-header.enterprise-header.app-header .enterprise-nav-rail button.enterprise-top-link:hover,
body .enterprise-two-row-header.premium-minimal-header.enterprise-header.app-header .enterprise-nav-rail button.enterprise-top-link:focus-visible,
body .enterprise-two-row-header.premium-minimal-header.enterprise-header.app-header .enterprise-nav-rail button.enterprise-sub-link:hover,
body .enterprise-two-row-header.premium-minimal-header.enterprise-header.app-header .enterprise-nav-rail button.enterprise-sub-link:focus-visible {
  border-color: rgba(255, 255, 255, 0.42) !important;
  background: rgba(255, 255, 255, 0.16) !important;
  color: #ffffff !important;
}

body .enterprise-two-row-header.premium-minimal-header.enterprise-header.app-header .enterprise-nav-rail .enterprise-nav-group.selected > button.enterprise-top-link,
body .enterprise-two-row-header.premium-minimal-header.enterprise-header.app-header .enterprise-nav-rail button.enterprise-sub-link.active {
  border-color: rgba(255, 255, 255, 0.72) !important;
  background: rgba(255, 255, 255, 0.9) !important;
  color: #2f63c8 !important;
}

body .enterprise-two-row-header.premium-minimal-header.enterprise-header.app-header .enterprise-nav-rail .enterprise-nav-group.active:not(.selected) > button.enterprise-top-link {
  border-color: transparent !important;
  background: transparent !important;
  color: rgba(255, 255, 255, 0.92) !important;
}

body:has(.enterprise-two-row-header) .main {
  padding-top: 108px !important;
}

/* Real navigation rail: hover-driven two rows aligned under the categories */
.enterprise-two-row-header.premium-minimal-header.enterprise-header.app-header {
  height: 78px !important;
  min-height: 78px !important;
  display: grid !important;
  grid-template-columns: minmax(280px, auto) minmax(0, 1fr) minmax(170px, auto) !important;
  grid-template-rows: 39px 39px !important;
  align-items: stretch !important;
  gap: 0 18px !important;
  padding: 0 18px !important;
  background: #5684e8 !important;
  border: 0 !important;
  overflow: visible !important;
}



.enterprise-two-row-header.premium-minimal-header .enterprise-brand {
  grid-column: 3 !important;
  grid-row: 1 !important;
  align-self: center !important;
  justify-self: end !important;
}

.enterprise-two-row-header.premium-minimal-header .enterprise-nav-rail {
  grid-column: 2 !important;
  grid-row: 1 / 3 !important;
  justify-self: end !important;
  width: max-content !important;
  max-width: 100% !important;
  min-width: 0 !important;
  height: 78px !important;
  display: grid !important;
  grid-template-rows: 39px 39px !important;
  align-items: stretch !important;
}

.enterprise-two-row-header.premium-minimal-header .enterprise-nav-rail > .enterprise-top-nav,
.enterprise-two-row-header.premium-minimal-header .enterprise-nav-rail > .enterprise-sub-nav {
  width: 100% !important;
  height: 39px !important;
  min-width: 0 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 14px !important;
  padding: 0 !important;
  margin: 0 !important;
  transform: none !important;
  border: 0 !important;
  overflow: hidden !important;
}

.enterprise-two-row-header.premium-minimal-header .enterprise-nav-group {
  height: 39px !important;
  display: flex !important;
  align-items: center !important;
  padding: 0 !important;
}

body .enterprise-two-row-header.premium-minimal-header.enterprise-header.app-header .enterprise-nav-rail button.enterprise-top-link,
body .enterprise-two-row-header.premium-minimal-header.enterprise-header.app-header .enterprise-nav-rail button.enterprise-sub-link {
  height: 26px !important;
  min-height: 26px !important;
  padding: 4px 11px !important;
  border: 1px solid transparent !important;
  border-radius: 4px !important;
  background: transparent !important;
  color: rgba(255, 255, 255, 0.92) !important;
  font-size: 13px !important;
  font-weight: 500 !important;
  line-height: 16px !important;
  box-shadow: none !important;
}

body .enterprise-two-row-header.premium-minimal-header.enterprise-header.app-header .enterprise-nav-rail button.enterprise-top-link:hover,
body .enterprise-two-row-header.premium-minimal-header.enterprise-header.app-header .enterprise-nav-rail button.enterprise-top-link:focus-visible,
body .enterprise-two-row-header.premium-minimal-header.enterprise-header.app-header .enterprise-nav-rail button.enterprise-sub-link:hover,
body .enterprise-two-row-header.premium-minimal-header.enterprise-header.app-header .enterprise-nav-rail button.enterprise-sub-link:focus-visible {
  border-color: rgba(255, 255, 255, 0.42) !important;
  background: rgba(255, 255, 255, 0.16) !important;
  color: #ffffff !important;
}

body .enterprise-two-row-header.premium-minimal-header.enterprise-header.app-header .enterprise-nav-rail .enterprise-nav-group.selected > button.enterprise-top-link,
body .enterprise-two-row-header.premium-minimal-header.enterprise-header.app-header .enterprise-nav-rail button.enterprise-sub-link.active {
  border-color: rgba(255, 255, 255, 0.72) !important;
  background: rgba(255, 255, 255, 0.9) !important;
  color: #2f63c8 !important;
}

body .enterprise-two-row-header.premium-minimal-header.enterprise-header.app-header .enterprise-nav-rail .enterprise-nav-group.active:not(.selected) > button.enterprise-top-link {
  border-color: transparent !important;
  background: transparent !important;
  color: rgba(255, 255, 255, 0.92) !important;
}

body:has(.enterprise-two-row-header) .main {
  padding-top: 108px !important;
}

/* Hard two-row header layout: top categories and subcategories cannot collapse into one line */
.enterprise-two-row-header.premium-minimal-header.enterprise-header.app-header {
  height: 78px !important;
  min-height: 78px !important;
  display: grid !important;
  grid-template-columns: minmax(240px, auto) minmax(0, 1fr) minmax(230px, auto) !important;
  grid-template-rows: 39px 39px !important;
  align-items: stretch !important;
  gap: 0 18px !important;
  padding: 0 18px !important;
  background: #5684e8 !important;
  overflow: visible !important;
}

.enterprise-two-row-header.premium-minimal-header .enterprise-brand {
  grid-column: 3 !important;
  grid-row: 1 !important;
  align-self: center !important;
  justify-self: end !important;
}



.enterprise-two-row-header.premium-minimal-header > .enterprise-top-nav {
  grid-column: 2 !important;
  grid-row: 1 !important;
}

.enterprise-two-row-header.premium-minimal-header > .enterprise-sub-nav {
  grid-column: 2 !important;
  grid-row: 2 !important;
}

.enterprise-two-row-header.premium-minimal-header > .enterprise-top-nav,
.enterprise-two-row-header.premium-minimal-header > .enterprise-sub-nav {
  width: 100% !important;
  min-width: 0 !important;
  height: 39px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 10px !important;
  padding: 0 !important;
  margin: 0 !important;
  transform: none !important;
  border: 0 !important;
  overflow-x: auto !important;
  overflow-y: hidden !important;
  scrollbar-width: none !important;
}

.enterprise-two-row-header.premium-minimal-header .enterprise-nav-group {
  height: 39px !important;
  display: flex !important;
  align-items: center !important;
  padding: 0 !important;
}

.enterprise-two-row-header.premium-minimal-header .enterprise-top-link,
.enterprise-two-row-header.premium-minimal-header .enterprise-sub-link {
  height: 25px !important;
  min-height: 25px !important;
  padding: 3px 10px !important;
  border: 1px solid rgba(255, 255, 255, 0.34) !important;
  border-radius: 3px !important;
  background: transparent !important;
  color: rgba(255, 255, 255, 0.94) !important;
  font-size: 12.5px !important;
  font-weight: 500 !important;
  line-height: 17px !important;
  box-shadow: none !important;
}

.enterprise-two-row-header.premium-minimal-header .enterprise-top-link:hover,
.enterprise-two-row-header.premium-minimal-header .enterprise-top-link:focus-visible,
.enterprise-two-row-header.premium-minimal-header .enterprise-sub-link:hover,
.enterprise-two-row-header.premium-minimal-header .enterprise-sub-link:focus-visible {
  border-color: rgba(255, 255, 255, 0.82) !important;
  background: rgba(255, 255, 255, 0.18) !important;
  color: #ffffff !important;
}

.enterprise-two-row-header.premium-minimal-header .enterprise-nav-group.selected .enterprise-top-link,
.enterprise-two-row-header.premium-minimal-header .enterprise-nav-group.active .enterprise-top-link,
.enterprise-two-row-header.premium-minimal-header .enterprise-sub-link.active {
  border-color: rgba(255, 255, 255, 0.95) !important;
  background: rgba(255, 255, 255, 0.94) !important;
  color: #2f63c8 !important;
}

body:has(.enterprise-two-row-header) .main {
  padding-top: 108px !important;
}

body .enterprise-two-row-header.premium-minimal-header.enterprise-header.app-header .enterprise-top-nav .enterprise-nav-group > button.enterprise-top-link,
body .enterprise-two-row-header.premium-minimal-header.enterprise-header.app-header > .enterprise-sub-nav > button.enterprise-sub-link {
  height: 25px !important;
  min-height: 25px !important;
  padding: 3px 10px !important;
  border: 1px solid rgba(255, 255, 255, 0.34) !important;
  border-radius: 3px !important;
  background: transparent !important;
  color: rgba(255, 255, 255, 0.94) !important;
  font-size: 12.5px !important;
  font-weight: 500 !important;
  line-height: 17px !important;
  box-shadow: none !important;
}

body .enterprise-two-row-header.premium-minimal-header.enterprise-header.app-header .enterprise-top-nav .enterprise-nav-group > button.enterprise-top-link:hover,
body .enterprise-two-row-header.premium-minimal-header.enterprise-header.app-header .enterprise-top-nav .enterprise-nav-group > button.enterprise-top-link:focus-visible,
body .enterprise-two-row-header.premium-minimal-header.enterprise-header.app-header > .enterprise-sub-nav > button.enterprise-sub-link:hover,
body .enterprise-two-row-header.premium-minimal-header.enterprise-header.app-header > .enterprise-sub-nav > button.enterprise-sub-link:focus-visible {
  border-color: rgba(255, 255, 255, 0.82) !important;
  background: rgba(255, 255, 255, 0.18) !important;
  color: #ffffff !important;
}

body .enterprise-two-row-header.premium-minimal-header.enterprise-header.app-header .enterprise-top-nav .enterprise-nav-group.selected > button.enterprise-top-link,
body .enterprise-two-row-header.premium-minimal-header.enterprise-header.app-header .enterprise-top-nav .enterprise-nav-group.active > button.enterprise-top-link,
body .enterprise-two-row-header.premium-minimal-header.enterprise-header.app-header > .enterprise-sub-nav > button.enterprise-sub-link.active {
  border-color: rgba(255, 255, 255, 0.95) !important;
  background: rgba(255, 255, 255, 0.94) !important;
  color: #2f63c8 !important;
}

.modal-panel:has(.classic-table-settings) {
  width: min(1180px, calc(100vw - 36px)) !important;
}

.modal-panel:has(.classic-table-settings) .modal-body {
  padding: 18px !important;
}

.classic-table-settings {
  display: grid !important;
  gap: 14px !important;
}

.table-settings-compact-head {
  display: flex !important;
  align-items: baseline !important;
  justify-content: space-between !important;
  gap: 14px !important;
}

.table-settings-compact-head strong {
  color: #0f172a !important;
  font-size: 16px !important;
}

.table-settings-compact-head span {
  color: #64748b !important;
  font-size: 12px !important;
}

.classic-table-settings .table-settings-scroll {
  border: 1px solid #e2e8f0 !important;
  border-radius: 8px !important;
  background: #ffffff !important;
}

.classic-table-settings .table-settings-matrix {
  min-width: 1120px !important;
  border-collapse: separate !important;
  border-spacing: 0 !important;
}

.classic-table-settings .table-settings-matrix th {
  padding: 10px 12px !important;
  background: #f8fafc !important;
  color: #475569 !important;
  font-size: 12px !important;
  font-weight: 500 !important;
}

.classic-table-settings .table-settings-matrix td {
  padding: 10px 12px !important;
  border-top: 1px solid #eef2f7 !important;
  color: #334155 !important;
  font-size: 12px !important;
}

.classic-table-settings .table-settings-matrix td:first-child strong {
  font-size: 13px !important;
}

.classic-table-settings .role-check {
  min-height: 26px !important;
  padding: 3px 7px !important;
  border-radius: 7px !important;
  font-size: 11.5px !important;
}

.classic-table-settings .icon-btn.small-icon-btn {
  width: 26px !important;
  height: 26px !important;
  min-height: 26px !important;
  border-radius: 7px !important;
}

.column-resizer {
  opacity: 0.45 !important;
  background: rgba(86, 132, 232, 0.38) !important;
}

th:hover .column-resizer {
  opacity: 1 !important;
}

.premium-minimal-header button.enterprise-brand,
.premium-minimal-header button.enterprise-brand:hover,
.premium-minimal-header button.enterprise-brand:focus-visible {
  background: transparent !important;
  border-color: transparent !important;
  box-shadow: none !important;
}

body .premium-minimal-header button.enterprise-brand:not(.ghost):not(.icon-btn):not(.table-link):not(.calendar-day):not(.managed-select-button):not(.table-bubble-current) {
  background: transparent !important;
  border-color: transparent !important;
  color: #ffffff !important;
}

/* Clean hover-dropdown top navbar */
.premium-minimal-header.enterprise-header.app-header {
  height: 72px !important;
  min-height: 72px !important;
  display: grid !important;
  grid-template-columns: auto minmax(0, 1fr) auto !important;
  grid-template-rows: 72px !important;
  align-items: center !important;
  gap: 22px !important;
  padding: 0 30px !important;
  background: #ffffff !important;
  border-bottom: 1px solid #e2e8f0 !important;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04) !important;
}

.premium-minimal-header .enterprise-brand {
  grid-column: 1 !important;
  grid-row: 1 !important;
  align-self: center !important;
  position: static !important;
  transform: none !important;
  display: grid !important;
  grid-template-columns: auto auto !important;
  grid-template-rows: auto auto !important;
  column-gap: 8px !important;
  align-items: center !important;
  justify-content: start !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

body .premium-minimal-header button.enterprise-brand:not(.ghost):not(.icon-btn):not(.table-link):not(.calendar-day):not(.managed-select-button):not(.table-bubble-current),
.premium-minimal-header button.enterprise-brand,
.premium-minimal-header button.enterprise-brand:hover,
.premium-minimal-header button.enterprise-brand:focus-visible {
  background: transparent !important;
  border-color: transparent !important;
  color: #0058be !important;
  box-shadow: none !important;
}

.premium-minimal-header .remit-monogram {
  width: 38px !important;
  height: 30px !important;
}

.premium-minimal-header .remit-monogram span,
.premium-minimal-header .remit-monogram b {
  font-size: 28px !important;
}

.premium-minimal-header .enterprise-brand strong {
  color: #1f2937 !important;
  font-size: 17px !important;
  line-height: 1 !important;
  font-weight: 500 !important;
}

.premium-minimal-header .enterprise-brand small {
  display: block !important;
  color: #64748b !important;
  font-size: 10px !important;
  line-height: 1.15 !important;
  opacity: 1 !important;
}

.premium-minimal-header .enterprise-top-nav {
  grid-column: 2 !important;
  grid-row: 1 !important;
  width: 100% !important;
  height: 72px !important;
  margin: 0 !important;
  transform: none !important;
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 18px !important;
  overflow: visible !important;
}

.premium-minimal-header .enterprise-sub-nav,
.premium-minimal-header .enterprise-nav-stack {
  display: contents !important;
}

.premium-minimal-header .enterprise-nav-group {
  position: relative !important;
  height: 72px !important;
  display: flex !important;
  align-items: center !important;
}

.premium-minimal-header .enterprise-top-link {
  position: relative !important;
  height: 72px !important;
  min-height: 72px !important;
  padding: 0 2px !important;
  display: inline-flex !important;
  align-items: center !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  color: #334155 !important;
  font-size: 14px !important;
  font-weight: 500 !important;
  line-height: 72px !important;
  letter-spacing: 0 !important;
  box-shadow: none !important;
  white-space: nowrap !important;
}

.premium-minimal-header .enterprise-top-link::after,
.premium-minimal-header .enterprise-nav-group::after {
  content: "" !important;
  position: absolute !important;
  right: 0 !important;
  left: 0 !important;
  bottom: 0 !important;
  height: 2px !important;
  border-radius: 999px !important;
  background: #0058be !important;
  opacity: 0 !important;
  transform: scaleX(0.6) !important;
  transition: opacity 0.15s ease, transform 0.15s ease !important;
}

.premium-minimal-header .enterprise-nav-group.active::after {
  opacity: 1 !important;
  transform: scaleX(1) !important;
}

.premium-minimal-header .enterprise-nav-group .enterprise-top-link::after {
  content: none !important;
}

.premium-minimal-header .enterprise-top-link:hover,
.premium-minimal-header .enterprise-nav-group:hover .enterprise-top-link,
.premium-minimal-header .enterprise-nav-group.active .enterprise-top-link {
  color: #0058be !important;
  background: transparent !important;
}

.premium-minimal-header .enterprise-dropdown {
  position: absolute !important;
  top: calc(100% - 6px) !important;
  right: 0 !important;
  z-index: 2800 !important;
  min-width: 210px !important;
  padding: 8px !important;
  display: grid !important;
  gap: 3px !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 8px !important;
  background: #ffffff !important;
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.12) !important;
  opacity: 0 !important;
  visibility: hidden !important;
  transform: translateY(6px) !important;
  pointer-events: none !important;
  transition: opacity 0.14s ease, transform 0.14s ease, visibility 0.14s ease !important;
}

.premium-minimal-header .enterprise-nav-group:hover .enterprise-dropdown,
.premium-minimal-header .enterprise-nav-group:focus-within .enterprise-dropdown {
  opacity: 1 !important;
  visibility: visible !important;
  transform: translateY(0) !important;
  pointer-events: auto !important;
}

.premium-minimal-header .enterprise-dropdown button {
  width: 100% !important;
  min-height: 36px !important;
  padding: 8px 10px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  border: 0 !important;
  border-radius: 6px !important;
  background: transparent !important;
  color: #334155 !important;
  font-size: 13px !important;
  font-weight: 500 !important;
  text-align: right !important;
  box-shadow: none !important;
}

.premium-minimal-header .enterprise-dropdown button:hover,
.premium-minimal-header .enterprise-dropdown button:focus-visible,
.premium-minimal-header .enterprise-dropdown button.active {
  background: #eef5ff !important;
  color: #0058be !important;
}

/* Navbar reset: clean single-row website navigation */
:root {
  --nav-reset-blue: #0058be;
  --nav-reset-text: #191b23;
  --nav-reset-muted: #64748b;
  --nav-reset-line: #e2e8f0;
}

.premium-minimal-header.enterprise-header.app-header {
  position: fixed !important;
  inset: 0 0 auto 0 !important;
  z-index: 5000 !important;
  width: 100% !important;
  height: 72px !important;
  min-height: 72px !important;
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 28px !important;
  padding: 0 32px !important;
  background: #ffffff !important;
  border-bottom: 1px solid var(--nav-reset-line) !important;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.035) !important;
  overflow: visible !important;
}

.premium-minimal-header .enterprise-brand {
  position: static !important;
  transform: none !important;
  flex: 0 0 auto !important;
  min-height: 0 !important;
  display: grid !important;
  grid-template-columns: auto auto !important;
  grid-template-rows: auto auto !important;
  align-items: center !important;
  justify-content: start !important;
  column-gap: 8px !important;
  row-gap: 1px !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  color: var(--nav-reset-text) !important;
  box-shadow: none !important;
}

.premium-minimal-header .enterprise-brand:hover,
.premium-minimal-header .enterprise-brand:focus-visible,
body .premium-minimal-header button.enterprise-brand:not(.ghost):not(.icon-btn):not(.table-link):not(.calendar-day):not(.managed-select-button):not(.table-bubble-current) {
  background: transparent !important;
  border-color: transparent !important;
  color: var(--nav-reset-text) !important;
  box-shadow: none !important;
}

.premium-minimal-header .remit-monogram {
  grid-row: 1 / 3 !important;
  width: 38px !important;
  height: 30px !important;
  margin: 0 !important;
  filter: none !important;
}

.premium-minimal-header .remit-monogram span,
.premium-minimal-header .remit-monogram b {
  font-size: 28px !important;
  line-height: 1 !important;
  font-weight: 500 !important;
}

.premium-minimal-header .enterprise-brand strong {
  color: var(--nav-reset-text) !important;
  font-size: 17px !important;
  line-height: 1 !important;
  font-weight: 500 !important;
}

.premium-minimal-header .enterprise-brand small {
  display: block !important;
  color: var(--nav-reset-muted) !important;
  font-size: 10px !important;
  line-height: 1.15 !important;
  opacity: 1 !important;
}

.premium-minimal-header .enterprise-top-nav {
  flex: 1 1 auto !important;
  min-width: 0 !important;
  height: 72px !important;
  margin: 0 !important;
  transform: none !important;
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 0 !important;
  overflow: visible !important;
  scrollbar-width: auto !important;
}

.premium-minimal-header .enterprise-nav-group {
  position: relative !important;
  flex: 0 0 auto !important;
  height: 72px !important;
  display: flex !important;
  align-items: center !important;
  padding: 0 !important;
  background: transparent !important;
}

.premium-minimal-header .enterprise-top-link {
  position: relative !important;
  height: 72px !important;
  min-height: 72px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 0 12px !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  color: var(--nav-reset-text) !important;
  font-size: 14px !important;
  font-weight: 500 !important;
  line-height: 72px !important;
  letter-spacing: 0 !important;
  box-shadow: none !important;
  white-space: nowrap !important;
}

.premium-minimal-header .enterprise-top-link:hover,
.premium-minimal-header .enterprise-top-link:focus-visible,
.premium-minimal-header .enterprise-nav-group:hover .enterprise-top-link,
.premium-minimal-header .enterprise-nav-group.active .enterprise-top-link {
  background: transparent !important;
  color: var(--nav-reset-blue) !important;
}

.premium-minimal-header .enterprise-top-link::after,
.premium-minimal-header .enterprise-nav-group::after {
  content: "" !important;
  position: absolute !important;
  right: 12px !important;
  left: 12px !important;
  bottom: 0 !important;
  height: 2px !important;
  border-radius: 999px !important;
  background: var(--nav-reset-blue) !important;
  opacity: 0 !important;
  transform: scaleX(0.6) !important;
  transition: opacity 0.16s ease, transform 0.16s ease !important;
}

.premium-minimal-header .enterprise-nav-group .enterprise-top-link::after {
  content: none !important;
}

.premium-minimal-header .enterprise-nav-group.active::after {
  opacity: 1 !important;
  transform: scaleX(1) !important;
}

.premium-minimal-header .enterprise-dropdown {
  position: absolute !important;
  top: 100% !important;
  right: 0 !important;
  left: auto !important;
  z-index: 5050 !important;
  min-width: 210px !important;
  width: max-content !important;
  max-width: 280px !important;
  padding: 8px !important;
  display: grid !important;
  gap: 2px !important;
  border: 1px solid var(--nav-reset-line) !important;
  border-radius: 8px !important;
  background: #ffffff !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1) !important;
  opacity: 0 !important;
  visibility: hidden !important;
  transform: translateY(8px) !important;
  pointer-events: none !important;
  transition: opacity 0.14s ease, transform 0.14s ease, visibility 0.14s ease !important;
}

.premium-minimal-header .enterprise-nav-group:hover .enterprise-dropdown,
.premium-minimal-header .enterprise-nav-group:focus-within .enterprise-dropdown {
  opacity: 1 !important;
  visibility: visible !important;
  transform: translateY(0) !important;
  pointer-events: auto !important;
}

.premium-minimal-header .enterprise-dropdown button {
  width: 100% !important;
  min-height: 36px !important;
  padding: 8px 10px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  border: 0 !important;
  border-radius: 6px !important;
  background: transparent !important;
  color: #334155 !important;
  font-size: 13px !important;
  font-weight: 500 !important;
  text-align: right !important;
  box-shadow: none !important;
  white-space: nowrap !important;
}

.premium-minimal-header .enterprise-dropdown button:hover,
.premium-minimal-header .enterprise-dropdown button:focus-visible,
.premium-minimal-header .enterprise-dropdown button.active {
  background: #f1f6ff !important;
  color: var(--nav-reset-blue) !important;
}

body:has(.premium-minimal-header) .main {
  padding-top: 104px !important;
}

/* Final nav color override: keep the whole navigation blue, not split white/blue */
:root {
  --final-nav-blue: #5684e8;
  --final-nav-line: rgba(255, 255, 255, 0.24);
}

.premium-minimal-header.enterprise-header.app-header {
  height: 96px !important;
  min-height: 96px !important;
  display: grid !important;
  grid-template-columns: auto minmax(0, 1fr) auto !important;
  align-items: stretch !important;
  gap: 22px !important;
  padding: 0 28px !important;
  background: var(--final-nav-blue) !important;
  border: 0 !important;
  box-shadow: 0 1px 0 rgba(15, 23, 42, 0.08) !important;
}

.premium-minimal-header .enterprise-nav-stack {
  grid-column: 2 !important;
  height: 96px !important;
  min-width: 0 !important;
  display: grid !important;
  grid-template-rows: 52px 44px !important;
}

.premium-minimal-header .enterprise-top-nav,
.premium-minimal-header .enterprise-sub-nav {
  height: auto !important;
  margin: 0 !important;
  transform: none !important;
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 6px !important;
  overflow-x: auto !important;
  overflow-y: hidden !important;
  scrollbar-width: none !important;
}

.premium-minimal-header .enterprise-sub-nav {
  border-top: 1px solid var(--final-nav-line) !important;
  gap: 8px !important;
}

.premium-minimal-header .enterprise-nav-group {
  height: auto !important;
  min-height: 0 !important;
  align-items: center !important;
}

.premium-minimal-header .enterprise-top-link,
.premium-minimal-header .enterprise-sub-link {
  height: auto !important;
  min-height: 30px !important;
  line-height: 1.2 !important;
  padding: 6px 10px !important;
  border: 0 !important;
  border-radius: 7px !important;
  background: transparent !important;
  color: rgba(255, 255, 255, 0.84) !important;
  font-size: 13px !important;
  font-weight: 500 !important;
  box-shadow: none !important;
  white-space: nowrap !important;
}

.premium-minimal-header .enterprise-top-link:hover,
.premium-minimal-header .enterprise-top-link:focus-visible,
.premium-minimal-header .enterprise-nav-group.selected .enterprise-top-link,
.premium-minimal-header .enterprise-nav-group.active .enterprise-top-link,
.premium-minimal-header .enterprise-sub-link:hover,
.premium-minimal-header .enterprise-sub-link:focus-visible,
.premium-minimal-header .enterprise-sub-link.active {
  background: rgba(255, 255, 255, 0.16) !important;
  color: #ffffff !important;
}

.premium-minimal-header .enterprise-sub-link.active {
  box-shadow: inset 0 -2px 0 #ffffff !important;
  font-weight: 500 !important;
}

.premium-minimal-header .enterprise-top-link::after,
.premium-minimal-header .enterprise-nav-group::after,
.premium-minimal-header .enterprise-dropdown {
  content: none !important;
  display: none !important;
}

.premium-minimal-header .enterprise-brand,
.premium-minimal-header .enterprise-brand:hover,
.premium-minimal-header .enterprise-brand:focus-visible,
body .premium-minimal-header button.enterprise-brand:not(.ghost):not(.icon-btn):not(.table-link):not(.calendar-day):not(.managed-select-button):not(.table-bubble-current),
.premium-minimal-header .enterprise-brand strong,
.premium-minimal-header .enterprise-brand small {
  color: #ffffff !important;
}

/* Nav tabs correction: two real rows, flat bordered tabs */
.premium-minimal-header.enterprise-header.app-header {
  height: 78px !important;
  min-height: 78px !important;
  grid-template-columns: minmax(250px, auto) minmax(0, 1fr) minmax(250px, auto) !important;
  grid-template-rows: 39px 39px !important;
  align-items: stretch !important;
  column-gap: 20px !important;
  row-gap: 0 !important;
  padding: 0 20px !important;
  background: #5684e8 !important;
}

.premium-minimal-header .enterprise-brand {
  grid-column: 1 !important;
  grid-row: 1 !important;
  align-self: center !important;
}



.premium-minimal-header .enterprise-nav-stack {
  grid-column: 2 / 4 !important;
  grid-row: 1 / 3 !important;
  height: 78px !important;
  display: grid !important;
  grid-template-rows: 39px 39px !important;
  align-items: stretch !important;
}

.premium-minimal-header .enterprise-top-nav,
.premium-minimal-header .enterprise-sub-nav {
  width: 100% !important;
  min-width: 0 !important;
  height: 39px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 10px !important;
  border: 0 !important;
  overflow-x: auto !important;
  overflow-y: hidden !important;
}

.premium-minimal-header .enterprise-sub-nav {
  padding-top: 1px !important;
}

.premium-minimal-header .enterprise-nav-group {
  height: 39px !important;
  display: flex !important;
  align-items: center !important;
}

.premium-minimal-header .enterprise-top-link,
.premium-minimal-header .enterprise-sub-link {
  min-height: 25px !important;
  height: 25px !important;
  padding: 3px 9px !important;
  border: 1px solid rgba(255, 255, 255, 0.26) !important;
  border-radius: 3px !important;
  background: transparent !important;
  color: rgba(255, 255, 255, 0.92) !important;
  font-size: 12.5px !important;
  font-weight: 500 !important;
  line-height: 17px !important;
  box-shadow: none !important;
}

.premium-minimal-header .enterprise-top-link:hover,
.premium-minimal-header .enterprise-top-link:focus-visible,
.premium-minimal-header .enterprise-sub-link:hover,
.premium-minimal-header .enterprise-sub-link:focus-visible {
  border-color: rgba(255, 255, 255, 0.72) !important;
  background: rgba(255, 255, 255, 0.16) !important;
  color: #ffffff !important;
}

.premium-minimal-header .enterprise-nav-group.selected .enterprise-top-link,
.premium-minimal-header .enterprise-nav-group.active .enterprise-top-link,
.premium-minimal-header .enterprise-sub-link.active {
  border-color: rgba(255, 255, 255, 0.9) !important;
  background: rgba(255, 255, 255, 0.92) !important;
  color: #2f63c8 !important;
}

.premium-minimal-header .enterprise-sub-link.active {
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.22) !important;
}

body:has(.premium-minimal-header) .main {
  padding-top: 108px !important;
}
/* EOF navigation fix: aligned hover menu */
.enterprise-two-row-header.premium-minimal-header.enterprise-header.app-header {
  direction: ltr !important;
  height: 78px !important;
  min-height: 78px !important;
  display: grid !important;
  grid-template-columns: minmax(260px, auto) minmax(0, 1fr) minmax(160px, auto) !important;
  grid-template-rows: 39px 39px !important;
  gap: 0 18px !important;
  padding: 0 18px !important;
  background: #5684e8 !important;
  border: 0 !important;
}



.enterprise-two-row-header.premium-minimal-header .enterprise-brand {
  direction: rtl !important;
  grid-column: 3 !important;
  grid-row: 1 !important;
  align-self: center !important;
  justify-self: end !important;
  position: static !important;
  transform: none !important;
}

.enterprise-two-row-header.premium-minimal-header .enterprise-nav-rail {
  direction: rtl !important;
  grid-column: 2 !important;
  grid-row: 1 / 3 !important;
  justify-self: end !important;
  width: max-content !important;
  max-width: 100% !important;
  height: 78px !important;
  display: grid !important;
  grid-template-rows: 39px 39px !important;
}

.enterprise-two-row-header.premium-minimal-header .enterprise-nav-rail > .enterprise-top-nav,
.enterprise-two-row-header.premium-minimal-header .enterprise-nav-rail > .enterprise-sub-nav {
  width: 100% !important;
  height: 39px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 14px !important;
  padding: 0 !important;
  margin: 0 !important;
  border: 0 !important;
  overflow: hidden !important;
}

.enterprise-two-row-header.premium-minimal-header .enterprise-nav-rail > .enterprise-top-nav {
  grid-row: 1 !important;
}

.enterprise-two-row-header.premium-minimal-header .enterprise-nav-rail > .enterprise-sub-nav {
  grid-row: 2 !important;
}

.enterprise-two-row-header.premium-minimal-header .enterprise-nav-group {
  height: 39px !important;
  display: flex !important;
  align-items: center !important;
}

body .enterprise-two-row-header.premium-minimal-header.enterprise-header.app-header .enterprise-nav-rail button.enterprise-top-link,
body .enterprise-two-row-header.premium-minimal-header.enterprise-header.app-header .enterprise-nav-rail button.enterprise-sub-link {
  height: 26px !important;
  min-height: 26px !important;
  padding: 4px 11px !important;
  border: 1px solid transparent !important;
  border-radius: 4px !important;
  background: transparent !important;
  color: rgba(255, 255, 255, 0.92) !important;
  font-size: 13px !important;
  font-weight: 500 !important;
  line-height: 16px !important;
  box-shadow: none !important;
}

body .enterprise-two-row-header.premium-minimal-header.enterprise-header.app-header .enterprise-nav-rail button.enterprise-top-link:hover,
body .enterprise-two-row-header.premium-minimal-header.enterprise-header.app-header .enterprise-nav-rail button.enterprise-sub-link:hover,
body .enterprise-two-row-header.premium-minimal-header.enterprise-header.app-header .enterprise-nav-rail button.enterprise-top-link:focus-visible,
body .enterprise-two-row-header.premium-minimal-header.enterprise-header.app-header .enterprise-nav-rail button.enterprise-sub-link:focus-visible {
  border-color: rgba(255, 255, 255, 0.42) !important;
  background: rgba(255, 255, 255, 0.16) !important;
  color: #ffffff !important;
}

body .enterprise-two-row-header.premium-minimal-header.enterprise-header.app-header .enterprise-nav-rail .enterprise-nav-group.selected > button.enterprise-top-link,
body .enterprise-two-row-header.premium-minimal-header.enterprise-header.app-header .enterprise-nav-rail button.enterprise-sub-link.active {
  border-color: rgba(255, 255, 255, 0.72) !important;
  background: rgba(255, 255, 255, 0.9) !important;
  color: #2f63c8 !important;
}

body .enterprise-two-row-header.premium-minimal-header.enterprise-header.app-header .enterprise-nav-rail .enterprise-nav-group.active:not(.selected) > button.enterprise-top-link {
  border-color: transparent !important;
  background: transparent !important;
  color: rgba(255, 255, 255, 0.92) !important;
}

body:has(.enterprise-two-row-header) .main {
  padding-top: 108px !important;
}
/* Keep subcategories exactly inside the category rail, not full header width */
.enterprise-two-row-header.premium-minimal-header .enterprise-nav-rail {
  position: relative !important;
}

.enterprise-two-row-header.premium-minimal-header .enterprise-nav-rail > .enterprise-top-nav {
  position: static !important;
  inset: auto !important;
  width: 100% !important;
  min-width: 100% !important;
}

.enterprise-two-row-header.premium-minimal-header .enterprise-nav-rail > .enterprise-sub-nav {
  position: absolute !important;
  top: 39px !important;
  right: 0 !important;
  bottom: auto !important;
  left: 0 !important;
  width: 100% !important;
  min-width: 100% !important;
  grid-row: 1 !important;
}

/* Final UI polish: unified blue, clean nav, compact user switch, safer modals */
:root {
  --brand: #5684e8;
  --brand-2: #5684e8;
  --grid-accent: #5684e8;
  --nav-blue: #5684e8;
}

button:not(.ghost):not(.icon-btn):not(.table-link):not(.calendar-day):not(.managed-select-button):not(.table-bubble-current),
.settings-tabs button.active,
.column-resizer {
  background-color: var(--nav-blue) !important;
  border-color: var(--nav-blue) !important;
}

.enterprise-two-row-header.premium-minimal-header.enterprise-header.app-header {
  background: var(--nav-blue) !important;
}

body .enterprise-two-row-header.premium-minimal-header.enterprise-header.app-header .enterprise-nav-rail button.enterprise-top-link,
body .enterprise-two-row-header.premium-minimal-header.enterprise-header.app-header .enterprise-nav-rail button.enterprise-sub-link {
  border-color: transparent !important;
  background: transparent !important;
  box-shadow: none !important;
}

body .enterprise-two-row-header.premium-minimal-header.enterprise-header.app-header .enterprise-nav-rail button.enterprise-top-link:hover,
body .enterprise-two-row-header.premium-minimal-header.enterprise-header.app-header .enterprise-nav-rail button.enterprise-sub-link:hover,
body .enterprise-two-row-header.premium-minimal-header.enterprise-header.app-header .enterprise-nav-rail button.enterprise-top-link:focus-visible,
body .enterprise-two-row-header.premium-minimal-header.enterprise-header.app-header .enterprise-nav-rail button.enterprise-sub-link:focus-visible {
  border-color: transparent !important;
  background: rgba(255, 255, 255, 0.18) !important;
  color: #ffffff !important;
}

body .enterprise-two-row-header.premium-minimal-header.enterprise-header.app-header .enterprise-nav-rail .enterprise-nav-group.selected > button.enterprise-top-link,
body .enterprise-two-row-header.premium-minimal-header.enterprise-header.app-header .enterprise-nav-rail button.enterprise-sub-link.active {
  border-color: transparent !important;
  background: rgba(255, 255, 255, 0.92) !important;
  color: #2f63c8 !important;
}

body .enterprise-two-row-header.premium-minimal-header.enterprise-header.app-header .enterprise-nav-rail .enterprise-nav-group.active:not(.selected) > button.enterprise-top-link {
  border-color: transparent !important;
  background: transparent !important;
  color: rgba(255, 255, 255, 0.92) !important;
}







.enterprise-two-row-header.premium-minimal-header .enterprise-active-dot {
  display: none !important;
}





.modal-overlay {
  padding-top: 96px !important;
  align-items: flex-start !important;
}

.modal-panel {
  max-height: calc(100vh - 118px) !important;
}

.modal-panel:has(.classic-table-settings) {
  width: min(1560px, calc(100vw - 28px)) !important;
}

.modal-panel:has(.classic-table-settings) .modal-body {
  max-height: calc(100vh - 178px) !important;
  overflow: auto !important;
}

.classic-table-settings .table-settings-scroll {
  max-height: calc(100vh - 282px) !important;
  overflow: auto !important;
}

.classic-table-settings .table-settings-matrix {
  width: 100% !important;
  min-width: 0 !important;
  table-layout: auto !important;
}

.classic-table-settings .table-settings-matrix thead th {
  position: sticky !important;
  top: 0 !important;
  z-index: 5 !important;
  background: #eef4ff !important;
  color: #1e3a8a !important;
  box-shadow: inset 0 -1px 0 #dbe7ff !important;
}

.classic-table-settings .table-settings-matrix th,
.classic-table-settings .table-settings-matrix td {
  padding: 8px 9px !important;
}

.classic-table-settings .role-checks {
  gap: 4px !important;
}

.classic-table-settings .role-check {
  min-height: 24px !important;
  padding: 2px 5px !important;
  font-size: 11px !important;
}

/* Final emergency fixes: operator nav isolation and borderless category tabs */
body .enterprise-two-row-header.premium-minimal-header.enterprise-header.app-header .enterprise-nav-rail button.enterprise-top-link,
body .enterprise-two-row-header.premium-minimal-header.enterprise-header.app-header .enterprise-nav-rail button.enterprise-sub-link,
body .enterprise-two-row-header.premium-minimal-header.enterprise-header.app-header .enterprise-nav-rail button.enterprise-top-link:hover,
body .enterprise-two-row-header.premium-minimal-header.enterprise-header.app-header .enterprise-nav-rail button.enterprise-sub-link:hover,
body .enterprise-two-row-header.premium-minimal-header.enterprise-header.app-header .enterprise-nav-rail button.enterprise-top-link:focus-visible,
body .enterprise-two-row-header.premium-minimal-header.enterprise-header.app-header .enterprise-nav-rail button.enterprise-sub-link:focus-visible,
body .enterprise-two-row-header.premium-minimal-header.enterprise-header.app-header .enterprise-nav-rail .enterprise-nav-group.selected > button.enterprise-top-link,
body .enterprise-two-row-header.premium-minimal-header.enterprise-header.app-header .enterprise-nav-rail button.enterprise-sub-link.active {
  border: 0 !important;
  box-shadow: none !important;
}

body .enterprise-two-row-header.premium-minimal-header.enterprise-header.app-header .enterprise-nav-rail button.enterprise-top-link,
body .enterprise-two-row-header.premium-minimal-header.enterprise-header.app-header .enterprise-nav-rail button.enterprise-sub-link {
  background: transparent !important;
}

body .enterprise-two-row-header.premium-minimal-header.enterprise-header.app-header .enterprise-nav-rail button.enterprise-top-link:hover,
body .enterprise-two-row-header.premium-minimal-header.enterprise-header.app-header .enterprise-nav-rail button.enterprise-sub-link:hover,
body .enterprise-two-row-header.premium-minimal-header.enterprise-header.app-header .enterprise-nav-rail button.enterprise-top-link:focus-visible,
body .enterprise-two-row-header.premium-minimal-header.enterprise-header.app-header .enterprise-nav-rail button.enterprise-sub-link:focus-visible {
  background: rgba(255, 255, 255, 0.18) !important;
}

body .enterprise-two-row-header.premium-minimal-header.enterprise-header.app-header .enterprise-nav-rail .enterprise-nav-group.selected > button.enterprise-top-link,
body .enterprise-two-row-header.premium-minimal-header.enterprise-header.app-header .enterprise-nav-rail button.enterprise-sub-link.active {
  background: rgba(255, 255, 255, 0.92) !important;
}

body:has(.operator-system-nav):not(:has(.enterprise-two-row-header)) .main {
  padding-top: 96px !important;
}

.operator-system-nav {
  top: 0 !important;
  z-index: 4500 !important;
  background: var(--nav-blue, #5684e8) !important;
}

.operator-system-nav .nav-menu-shell {
  position: relative !important;
}

.operator-nav-tools {
  position: absolute;
  inset-inline-end: 16px;
  top: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
  z-index: 2;
}

.operator-system-nav .operator-nav-primary {
  padding-inline-end: 156px !important;
}

.table-settings-close-btn {
  margin-inline-start: auto !important;
  white-space: nowrap !important;
}

/* Final table/widget/form fixes */
.modal-panel:has(.classic-table-settings) .modal-body,
.modal-panel:has(.classic-table-settings) .modal-content {
  overflow: hidden !important;
}

.classic-table-settings {
  min-height: 0 !important;
}

.classic-table-settings .table-settings-scroll {
  height: min(68vh, 680px) !important;
  max-height: min(68vh, 680px) !important;
  overflow: auto !important;
  position: relative !important;
}

.classic-table-settings .table-settings-matrix {
  width: 100% !important;
  min-width: 0 !important;
}

.classic-table-settings .table-settings-matrix thead {
  position: sticky !important;
  top: 0 !important;
  z-index: 30 !important;
}

.classic-table-settings .table-settings-matrix thead th {
  position: sticky !important;
  top: 0 !important;
  z-index: 31 !important;
  background: #eef4ff !important;
}

.widget-card .widget-head {
  min-height: 32px !important;
  margin: 0 0 10px !important;
  padding: 0 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  direction: rtl !important;
}

.widget-card .widget-head h3 {
  margin: 0 !important;
  padding: 0 !important;
  font-size: 18px !important;
  line-height: 1.2 !important;
  background: transparent !important;
  box-shadow: none !important;
}

.widget-card .widget-head-actions {
  display: flex !important;
  align-items: center !important;
  gap: 6px !important;
}

.widget-card .records-like-table th {
  height: 34px !important;
  padding: 7px 10px !important;
  background: #f4f7fb !important;
  font-size: 12.5px !important;
  line-height: 1.2 !important;
  vertical-align: middle !important;
}

.widget-card .records-like-table td {
  height: 42px !important;
  padding: 7px 10px !important;
}

.widget-card .column-resizer {
  display: none !important;
}

.record-create-form input,
.record-create-form select,
.record-create-form textarea,
.record-create-form .donor-picker-trigger,
.record-create-form .managed-select-button {
  border: 1px solid #d9e2f2 !important;
  border-radius: 8px !important;
  background: #ffffff !important;
  background-color: #ffffff !important;
  color: #0f2742 !important;
  box-shadow: none !important;
}

.record-create-form .managed-select-button .status-badge {
  background: transparent !important;
  color: #0f2742 !important;
  border-color: transparent !important;
}

.record-create-form input::placeholder,
.record-create-form textarea::placeholder {
  color: #94a3b8 !important;
}

/* Last-mile table settings, widget headers, and create-record fields. */
.modal-panel:has(.classic-table-settings),
.modal-panel:has(.classic-table-settings) .modal-content,
.modal-panel:has(.classic-table-settings) .modal-body,
.classic-table-settings {
  min-height: 0 !important;
  overflow: hidden !important;
}

.modal-backdrop:has(.classic-table-settings) {
  z-index: 120 !important;
}

.classic-table-settings .table-settings-scroll {
  display: block !important;
  height: min(70vh, 720px) !important;
  max-height: min(70vh, 720px) !important;
  overflow: auto !important;
  overscroll-behavior: contain !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 10px !important;
  background: #ffffff !important;
}

.classic-table-settings .table-settings-sticky-head {
  display: grid !important;
  position: relative !important;
  z-index: 80 !important;
  grid-template-columns: minmax(140px, 1.1fr) minmax(210px, 1.35fr) minmax(210px, 1.35fr) 96px 96px 82px 82px minmax(230px, 1.45fr) !important;
  align-items: center !important;
  min-width: 1120px !important;
  height: 40px !important;
  margin-top: 8px !important;
  border: 1px solid #dbe7ff !important;
  border-bottom: 0 !important;
  border-radius: 10px 10px 0 0 !important;
  overflow: hidden !important;
  background: #eef4ff !important;
  color: #1e3a8a !important;
  box-shadow: 0 1px 0 #dbe7ff, 0 8px 16px rgba(15, 23, 42, 0.08) !important;
  pointer-events: auto !important;
}

.classic-table-settings .table-settings-sticky-head span {
  height: 40px !important;
  padding: 8px 10px !important;
  display: flex !important;
  align-items: center !important;
  border-inline-start: 1px solid #dbe7ff !important;
  font-size: 13px !important;
  font-weight: 500 !important;
}

.classic-table-settings .table-settings-sticky-head span:first-child {
  border-inline-start: 0 !important;
}

.classic-table-settings .table-settings-sticky-head + .table-settings-scroll {
  margin-top: 0 !important;
  border-radius: 0 0 10px 10px !important;
}

.classic-table-settings .table-settings-matrix {
  display: block !important;
  border-collapse: separate !important;
  border-spacing: 0 !important;
  margin: 0 !important;
}

.classic-table-settings .table-settings-matrix thead,
.classic-table-settings .table-settings-matrix tbody {
  display: block !important;
}

.classic-table-settings .table-settings-matrix thead {
  display: none !important;
}

.classic-table-settings .table-settings-matrix tr {
  display: grid !important;
  grid-template-columns: minmax(140px, 1.1fr) minmax(210px, 1.35fr) minmax(210px, 1.35fr) 96px 96px 82px 82px minmax(230px, 1.45fr) !important;
  align-items: stretch !important;
  min-width: 1120px !important;
}

.classic-table-settings .table-settings-matrix thead tr {
  position: relative !important;
  top: auto !important;
  z-index: 101 !important;
}

.classic-table-settings .table-settings-matrix thead th {
  position: static !important;
  z-index: 101 !important;
  height: 40px !important;
  padding: 8px 10px !important;
  background: #eef4ff !important;
  color: #1e3a8a !important;
  box-shadow: 0 1px 0 #dbe7ff, 0 8px 16px rgba(15, 23, 42, 0.08) !important;
}

.widget-card .widget-table-tools,
.donor-widgets .widget-table-tools,
.widgets .panel .widget-table-tools,
.panel.widget-card > .table-search-row.widget-table-tools {
  min-height: 34px !important;
  height: auto !important;
  padding: 2px 0 6px !important;
  margin: 0 0 4px !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

.widget-card .widget-table-tools .table-toolbar-meta,
.donor-widgets .widget-table-tools .table-toolbar-meta,
.widgets .panel .widget-table-tools .table-toolbar-meta {
  min-height: 30px !important;
  height: 30px !important;
  gap: 6px !important;
  padding: 0 !important;
  align-items: center !important;
}

.widget-card .widget-table-tools .table-toolbar-title,
.donor-widgets .widget-table-tools .table-toolbar-title,
.widgets .panel .widget-table-tools .table-toolbar-title {
  font-size: 13px !important;
  line-height: 1.15 !important;
  font-weight: 500 !important;
  color: #334155 !important;
}

.widget-card .widget-table-tools .table-filter-settings,
.donor-widgets .widget-table-tools .table-filter-settings,
.widgets .panel .widget-table-tools .table-filter-settings,
.widget-card .widget-table-tools .widget-toolbar-add,
.donor-widgets .widget-table-tools .widget-toolbar-add,
.widgets .panel .widget-table-tools .widget-toolbar-add {
  width: 30px !important;
  min-width: 30px !important;
  height: 30px !important;
  min-height: 30px !important;
  padding: 0 !important;
  border-radius: 8px !important;
  box-shadow: none !important;
}

.widget-card .records-like-table th,
.widget-card .widget-table th,
.donor-widgets .widget-table th {
  height: 32px !important;
  padding: 6px 9px !important;
  font-size: 12px !important;
  line-height: 1.2 !important;
  white-space: nowrap !important;
}

.record-create-form input,
.record-create-form select,
.record-create-form textarea,
.record-create-form button.donor-picker-trigger,
.record-create-form .managed-select-button {
  background: #ffffff !important;
  background-image: none !important;
  border-color: #d9e2f2 !important;
  color: #0f2742 !important;
  box-shadow: none !important;
}

.record-create-form input:focus,
.record-create-form select:focus,
.record-create-form textarea:focus,
.record-create-form button.donor-picker-trigger:focus {
  border-color: #94a3b8 !important;
  box-shadow: 0 0 0 3px rgba(148, 163, 184, 0.16) !important;
}

.record-create-form .donor-picker-trigger span:empty::before {
  content: "" !important;
}

body .modal-panel .record-create-form button.donor-picker-trigger,
body .main .record-create-form button.donor-picker-trigger,
body .record-create-form .donor-picker-trigger {
  background: #ffffff !important;
  background-color: #ffffff !important;
  background-image: none !important;
  border: 1px solid #d9e2f2 !important;
  border-color: #d9e2f2 !important;
  color: #0f2742 !important;
  box-shadow: none !important;
}

body .modal-panel .record-create-form button.ghost.donor-picker-trigger,
body .main .record-create-form button.ghost.donor-picker-trigger,
body .record-create-form button.ghost.donor-picker-trigger {
  border: 1px solid #d9e2f2 !important;
  border-color: #d9e2f2 !important;
  box-shadow: inset 0 0 0 1px #d9e2f2 !important;
}

body .modal-panel .record-create-form button.donor-picker-trigger:hover,
body .main .record-create-form button.donor-picker-trigger:hover,
body .record-create-form .donor-picker-trigger:hover {
  background: #ffffff !important;
  background-color: #ffffff !important;
  border-color: #cbd5e1 !important;
  color: #0f2742 !important;
  transform: none !important;
}

/* Uniform light-blue headers for every data table. */
table > thead > tr > th,
.data-grid th,
.widget-table th,
.records-like-table th,
.quiet-dashboard-table th,
.journal-table th,
.gift-tracking-table th,
.incentives-table th {
  background: #eef4ff !important;
  background-color: #eef4ff !important;
  color: #1e3a8a !important;
  border-bottom-color: #dbe7ff !important;
}

body .panel table thead,
body .panel table th,
body .panel .data-grid thead,
body .panel .data-grid th,
body .panel .widget-table thead,
body .panel .widget-table th,
body .panel .records-like-table thead,
body .panel .records-like-table th,
body .panel .journal-records-table thead,
body .panel .journal-records-table th,
body .panel .incentives-table thead,
body .panel .incentives-table th,
body .panel .gift-tracking-table thead,
body .panel .gift-tracking-table th {
  background: #eef4ff !important;
  background-color: #eef4ff !important;
  color: #1e3a8a !important;
  border-bottom-color: #dbe7ff !important;
}

/* Widgets use the exact same table surface as regular tables. */
.widgets .panel.widget-card,
.donor-widgets .panel.widget-card {
  padding: 0 !important;
  overflow: hidden !important;
  border: 1px solid #e6eef8 !important;
  border-radius: 18px !important;
  background: #ffffff !important;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.06) !important;
}

.widgets .widget-head,
.donor-widgets .widget-head {
  display: none !important;
}

.widget-card .widget-table-tools,
.donor-widgets .widget-table-tools,
.widgets .panel .widget-table-tools,
.panel.widget-card > .table-search-row.widget-table-tools {
  display: flex !important;
  flex-direction: column !important;
  align-items: stretch !important;
  min-height: 54px !important;
  padding: 10px 18px !important;
  margin: 0 !important;
  border-bottom: 1px solid #edf2f7 !important;
  border-radius: 18px 18px 0 0 !important;
  background: #ffffff !important;
}

.widget-card .widget-table-tools .table-toolbar-meta,
.donor-widgets .widget-table-tools .table-toolbar-meta,
.widgets .panel .widget-table-tools .table-toolbar-meta {
  min-height: 38px !important;
  height: auto !important;
  gap: 12px !important;
}

.widget-card .widget-table-tools .table-toolbar-title,
.donor-widgets .widget-table-tools .table-toolbar-title,
.widgets .panel .widget-table-tools .table-toolbar-title {
  color: #0f172a !important;
  font-size: 14px !important;
  font-weight: 500 !important;
  line-height: 1.25 !important;
}

.widget-card .widget-table-tools .table-free-search,
.donor-widgets .widget-table-tools .table-free-search,
.widgets .panel .widget-table-tools .table-free-search {
  width: min(340px, 36vw) !important;
  min-width: 220px !important;
  height: 38px !important;
  min-height: 38px !important;
  border: 1px solid #d9e2f2 !important;
  border-radius: 999px !important;
  background: #fcfdff !important;
}

.widget-card .widget-table-tools .table-filter-settings,
.donor-widgets .widget-table-tools .table-filter-settings,
.widgets .panel .widget-table-tools .table-filter-settings,
.widget-card .widget-table-tools .widget-toolbar-add,
.donor-widgets .widget-table-tools .widget-toolbar-add,
.widgets .panel .widget-table-tools .widget-toolbar-add,
.widget-card .widget-table-tools .widget-column-btn,
.donor-widgets .widget-table-tools .widget-column-btn,
.widgets .panel .widget-table-tools .widget-column-btn {
  width: auto !important;
  min-width: 38px !important;
  height: 38px !important;
  min-height: 38px !important;
  padding-inline: 14px !important;
  border-radius: 999px !important;
}

.widget-card .records-like-table th,
.widget-card .widget-table th,
.donor-widgets .widget-table th {
  height: 44px !important;
  padding: 0 16px !important;
  font-size: 12px !important;
  line-height: 1.25 !important;
}

.widget-card .records-like-table td,
.widget-card .widget-table td,
.donor-widgets .widget-table td {
  height: 56px !important;
  padding: 0 16px !important;
}

.table-settings-master-check {
  display: inline-flex !important;
  align-items: center !important;
  gap: 7px !important;
  margin: 0 !important;
  color: inherit !important;
  font: inherit !important;
  white-space: nowrap !important;
}

.table-settings-master-check input {
  appearance: auto !important;
  -webkit-appearance: checkbox !important;
  display: inline-block !important;
  position: static !important;
  pointer-events: auto !important;
  opacity: 1 !important;
  width: 16px !important;
  min-width: 16px !important;
  height: 16px !important;
  min-height: 16px !important;
  margin: 0 !important;
  padding: 0 !important;
}

body .enterprise-two-row-header.premium-minimal-header.enterprise-header.app-header .enterprise-nav-rail button.enterprise-top-link,
body .enterprise-two-row-header.premium-minimal-header.enterprise-header.app-header .enterprise-nav-rail button.enterprise-sub-link {
  font-size: 15px !important;
  font-weight: 500 !important;
}

body .enterprise-two-row-header.premium-minimal-header.enterprise-header.app-header .enterprise-nav-rail > .enterprise-top-nav .enterprise-nav-group > button.enterprise-top-link,
body .enterprise-two-row-header.premium-minimal-header.enterprise-header.app-header .enterprise-nav-rail > .enterprise-sub-nav > button.enterprise-sub-link,
body .enterprise-two-row-header.premium-minimal-header.enterprise-header.app-header .enterprise-top-nav .enterprise-nav-group > button.enterprise-top-link,
body .enterprise-two-row-header.premium-minimal-header.enterprise-header.app-header .enterprise-sub-nav > button.enterprise-sub-link {
  font-size: 15px !important;
  line-height: 18px !important;
  font-weight: 500 !important;
}

/* Keep table screens consistently wide. */
body:has(.enterprise-header) {
  --clean-page-max: 1760px;
}

body:has(.enterprise-header) .main {
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding-inline: clamp(48px, 4.25vw, 88px) !important;
}

body:has(.enterprise-header) .main > .topbar,
body:has(.enterprise-header) .main > .panel:has(table),
body:has(.enterprise-header) .main > .data-grid-panel,
body:has(.enterprise-header) .main .monthly-bonus-summary,
body:has(.enterprise-header) .main .bonus-panel,
body:has(.enterprise-header) .main .panel:has(> .table-search-row + table),
body:has(.enterprise-header) .main .panel:has(> table.records-like-table),
body:has(.enterprise-header) .main .panel:has(> table.data-grid),
body:has(.enterprise-header) .main .panel:has(> table.widget-table) {
  width: 100% !important;
  max-width: 100% !important;
  margin-inline: auto !important;
}

body:has(.enterprise-header) .main table {
  width: 100% !important;
}

@media (max-width: 900px) {
  body:has(.enterprise-header) .main {
    padding-inline: 18px !important;
  }
}

/* Softer system typography: avoid heavy black text across the app. */
:root,
body {
  --text: #4b5563;
  --muted: #6b7280;
}

body,
.main,
.panel,
.data-grid-panel,
.modal-panel,
.modal-content,
.modal-body,
.modal-summary,
.subpanel,
.table-toolbar-title,
.section-head h2,
.section-head h3,
h1,
h2,
h3,
p,
label,
input,
select,
textarea,
.data-grid td,
.records-like-table td,
.widget-table td,
.journal-records-table td,
.journal-table td,
.gift-tracking-table td,
.incentives-table td,
.bonus-rules-table td,
.variable-bonus-table td,
.readonly-detail-table td,
.table-result-count,
.widget-page-footer,
.muted {
  color: #4b5563 !important;
}

h1,
h2,
h3,
.modal-head h2,
.topbar h1,
.donor-hero h2,
.management-dashboard-head h2,
.management-card-head h3,
.table-toolbar-title,
.panel h2,
.panel h3,
.widget-head h3,
.donor-widgets .widget-head h3 {
  color: #374151 !important;
}

.data-grid td strong,
.records-like-table td strong,
.widget-table td strong,
.journal-records-table td strong,
.bonus-rules-table td strong,
.variable-bonus-table td strong,
.incentives-table td strong,
.readonly-detail-table td strong {
  color: #334155 !important;
}

table > thead > tr > th,
.data-grid th,
.widget-table th,
.records-like-table th,
.journal-records-table th,
.gift-tracking-table th,
.incentives-table th,
.table-settings-sticky-head,
.table-settings-matrix th {
  color: #1e3a8a !important;
}

.status-badge,
.badge,
.primary,
button.primary,
.enterprise-header,
.enterprise-header *,
.enterprise-two-row-header *,
.table-bubble-current,
.managed-select-button.active {
  color: inherit;
}

body:has(.enterprise-header) .main h1,
body:has(.enterprise-header) .main h2,
body:has(.enterprise-header) .main h3,
body:has(.enterprise-header) .main .topbar h1,
body:has(.enterprise-header) .main .section-head h2,
body:has(.enterprise-header) .main .section-head h3,
body:has(.enterprise-header) .main .table-toolbar-title,
body .modal-panel h1,
body .modal-panel h2,
body .modal-panel h3,
body .modal-panel .table-toolbar-title {
  color: #374151 !important;
}

body .main .panel table tbody tr td,
body .main .data-grid tbody tr td,
body .main .records-like-table tbody tr td,
body .main .widget-table tbody tr td,
body .main .journal-records-table tbody tr td,
body .main .gift-tracking-table tbody tr td,
body .main .incentives-table tbody tr td,
body .main .bonus-rules-table tbody tr td,
body .main .variable-bonus-table tbody tr td,
body .modal-panel table tbody tr td,
body .modal-panel .data-grid tbody tr td,
body .modal-panel .records-like-table tbody tr td,
body .modal-panel .widget-table tbody tr td {
  color: #4b5563 !important;
}

body .main .panel table tbody tr td strong,
body .main .data-grid tbody tr td strong,
body .main .records-like-table tbody tr td strong,
body .main .widget-table tbody tr td strong,
body .modal-panel table tbody tr td strong {
  color: #334155 !important;
}

/* Clean navigation: no outlined boxes around menu text. */
body .enterprise-two-row-header.premium-minimal-header.enterprise-header.app-header .enterprise-nav-rail button.enterprise-top-link,
body .enterprise-two-row-header.premium-minimal-header.enterprise-header.app-header .enterprise-nav-rail button.enterprise-sub-link,
body .enterprise-two-row-header.premium-minimal-header.enterprise-header.app-header .enterprise-top-nav .enterprise-nav-group > button.enterprise-top-link,
body .enterprise-two-row-header.premium-minimal-header.enterprise-header.app-header .enterprise-sub-nav > button.enterprise-sub-link,
body .premium-minimal-header .enterprise-top-link,
body .premium-minimal-header .enterprise-sub-link {
  border-color: transparent !important;
  border-width: 0 !important;
  box-shadow: none !important;
}

body .enterprise-two-row-header.premium-minimal-header.enterprise-header.app-header .enterprise-nav-rail button.enterprise-top-link:hover,
body .enterprise-two-row-header.premium-minimal-header.enterprise-header.app-header .enterprise-nav-rail button.enterprise-sub-link:hover,
body .enterprise-two-row-header.premium-minimal-header.enterprise-header.app-header .enterprise-nav-rail button.enterprise-top-link:focus-visible,
body .enterprise-two-row-header.premium-minimal-header.enterprise-header.app-header .enterprise-nav-rail button.enterprise-sub-link:focus-visible {
  border-color: transparent !important;
  box-shadow: none !important;
}

/* Choice dropdowns should stay white, not inherit the global blue button fill. */
#floating-choice-menu,
#choice-bubble-dialog,
.managed-select-menu,
.inline-choice-menu,
.table-bubble-menu,
.table-call-result-popover {
  background: #ffffff !important;
  background-color: #ffffff !important;
}

#floating-choice-menu button,
#choice-bubble-dialog button,
.managed-select-menu button,
.inline-choice-menu button,
.table-bubble-menu button,
.table-call-result-popover button,
.table-bubble-option,
.table-bubble-option-row,
.inline-choice-option,
.managed-option {
  background: #ffffff !important;
  background-color: #ffffff !important;
  color: #4b5563 !important;
  border-color: transparent !important;
  box-shadow: none !important;
}

#floating-choice-menu button:hover,
#choice-bubble-dialog button:hover,
.managed-select-menu button:hover,
.inline-choice-menu button:hover,
.table-bubble-menu button:hover,
.table-call-result-popover button:hover,
.table-bubble-option:hover,
.table-bubble-option.selected,
.table-bubble-option-row.selected .table-bubble-option,
.inline-choice-option:hover {
  background: #f8fafc !important;
  background-color: #f8fafc !important;
}

/* Main navigation categories are text links, not boxed buttons. */
body .enterprise-two-row-header.premium-minimal-header.enterprise-header.app-header .enterprise-nav-rail .enterprise-top-nav .enterprise-nav-group > button.enterprise-top-link,
body .enterprise-two-row-header.premium-minimal-header.enterprise-header.app-header .enterprise-top-nav .enterprise-nav-group > button.enterprise-top-link,
body .premium-minimal-header .enterprise-top-nav .enterprise-nav-group > button.enterprise-top-link {
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  background-color: transparent !important;
  box-shadow: none !important;
}

body .enterprise-two-row-header.premium-minimal-header.enterprise-header.app-header .enterprise-nav-rail .enterprise-top-nav .enterprise-nav-group.selected > button.enterprise-top-link,
body .enterprise-two-row-header.premium-minimal-header.enterprise-header.app-header .enterprise-nav-rail .enterprise-top-nav .enterprise-nav-group.active > button.enterprise-top-link,
body .enterprise-two-row-header.premium-minimal-header.enterprise-header.app-header .enterprise-top-nav .enterprise-nav-group.selected > button.enterprise-top-link,
body .enterprise-two-row-header.premium-minimal-header.enterprise-header.app-header .enterprise-top-nav .enterprise-nav-group.active > button.enterprise-top-link,
body .premium-minimal-header .enterprise-top-nav .enterprise-nav-group.selected > button.enterprise-top-link,
body .premium-minimal-header .enterprise-top-nav .enterprise-nav-group.active > button.enterprise-top-link {
  border: 0 !important;
  background: transparent !important;
  background-color: transparent !important;
  box-shadow: none !important;
  color: #ffffff !important;
}

body .modal-panel .managed-select-menu button:not(.primary),
body .main .managed-select-menu button:not(.primary),
body .managed-select-menu button:not(.primary),
body #floating-choice-menu button:not(.primary),
body #choice-bubble-dialog button:not(.primary),
body .inline-choice-menu button:not(.primary),
body .table-bubble-menu button:not(.primary),
body .table-call-result-popover button:not(.primary) {
  background: #ffffff !important;
  background-color: #ffffff !important;
  color: #4b5563 !important;
  border-color: transparent !important;
  box-shadow: none !important;
}

body .modal-panel .managed-select-menu button:not(.primary):hover,
body .main .managed-select-menu button:not(.primary):hover,
body .managed-select-menu button:not(.primary):hover,
body #floating-choice-menu button:not(.primary):hover,
body #choice-bubble-dialog button:not(.primary):hover,
body .inline-choice-menu button:not(.primary):hover,
body .table-bubble-menu button:not(.primary):hover,
body .table-call-result-popover button:not(.primary):hover {
  background: #f8fafc !important;
  background-color: #f8fafc !important;
  color: #374151 !important;
}

#app .managed-select .managed-select-menu button.managed-option-value,
#app .managed-select .managed-select-menu button.managed-option-remove,
#app .managed-select .managed-select-menu button.managed-option-edit,
#app .managed-select .managed-select-menu button.managed-option-add,
#floating-choice-menu button.inline-choice-option,
#choice-bubble-dialog button.inline-choice-option,
#choice-bubble-dialog button.table-bubble-option,
#floating-choice-menu button.table-bubble-option {
  background: #ffffff !important;
  background-color: #ffffff !important;
  color: #4b5563 !important;
  border: 0 !important;
  border-color: transparent !important;
  box-shadow: none !important;
}

/* REMIT brand theme */
:root,
body {
  --remit-primary: #1d727a;
  --remit-secondary: #3CB86C;
  --remit-secondary-hover: #35a963;
  --remit-text: #29323c;
  --brand: var(--remit-primary);
  --brand-2: var(--remit-secondary);
  --grid-accent: var(--remit-primary);
  --grid-accent-soft: rgba(29, 114, 122, 0.12);
  --nav-blue: var(--remit-primary);
  --final-nav-blue: var(--remit-primary);
  --remit-system-blue: var(--remit-primary);
  --text: var(--remit-text);
}

body .enterprise-header.app-header,
body .premium-minimal-header.enterprise-header.app-header,
body .enterprise-two-row-header.premium-minimal-header.enterprise-header.app-header,
body:has(.enterprise-header) .enterprise-header.app-header {
  background: var(--remit-primary) !important;
  background-color: var(--remit-primary) !important;
}

body .enterprise-header.app-header,
body .enterprise-header.app-header *,
body .enterprise-two-row-header.premium-minimal-header.enterprise-header.app-header,
body .enterprise-two-row-header.premium-minimal-header.enterprise-header.app-header * {
  color: #ffffff !important;
}

body .main button.primary,
body .modal-panel button.primary,
body button.primary,
body .primary,
body .btn-primary,
body .table-toolbar-add-new,
body .widget-toolbar-add,
body .modal-footer .primary,
body .modal-unsaved-actions .primary,
body .main button:not(.ghost):not(.icon-btn):not(.table-link):not(.calendar-day):not(.managed-select-button):not(.table-bubble-current):not(.enterprise-top-link):not(.enterprise-sub-link):not(.enterprise-brand),
body .modal-panel button:not(.ghost):not(.icon-btn):not(.table-link):not(.calendar-day):not(.managed-select-button):not(.table-bubble-current) {
  background: var(--remit-secondary) !important;
  background-color: var(--remit-secondary) !important;
  border-color: var(--remit-secondary) !important;
  color: #ffffff !important;
}

body .main button.primary:hover,
body .modal-panel button.primary:hover,
body button.primary:hover,
body .primary:hover,
body .btn-primary:hover,
body .table-toolbar-add-new:hover,
body .widget-toolbar-add:hover,
body .modal-footer .primary:hover,
body .modal-unsaved-actions .primary:hover,
body .main button:not(.ghost):not(.icon-btn):not(.table-link):not(.calendar-day):not(.managed-select-button):not(.table-bubble-current):not(.enterprise-top-link):not(.enterprise-sub-link):not(.enterprise-brand):hover,
body .modal-panel button:not(.ghost):not(.icon-btn):not(.table-link):not(.calendar-day):not(.managed-select-button):not(.table-bubble-current):hover {
  background: var(--remit-secondary-hover) !important;
  background-color: var(--remit-secondary-hover) !important;
  border-color: var(--remit-secondary-hover) !important;
}

body .settings-tabs button.active,
body .week-tab.active,
body .bonus-view-switch button.active,
body .table-filter-drawer-toggle.has-active-filters,
body .table-filter-active-dot,
body .column-resizer,
body .enterprise-avatar,
body .remit-monogram,
body .table-bubble-current b,
body .managed-select-button b,
body a,
body .icon-link,
body .table-link {
  color: var(--remit-primary) !important;
  border-color: var(--remit-primary) !important;
}

body .settings-tabs button.active,
body .week-tab.active,
body .bonus-view-switch button.active,
body .table-filter-active-dot,
body .column-resizer,
body .enterprise-avatar,
body .remit-monogram {
  background: var(--remit-primary) !important;
  background-color: var(--remit-primary) !important;
}

table > thead > tr > th,
.data-grid th,
.widget-table th,
.records-like-table th,
.quiet-dashboard-table th,
.journal-table th,
.journal-records-table th,
.gift-tracking-table th,
.incentives-table th,
.classic-table-settings .table-settings-sticky-head,
.classic-table-settings .table-settings-matrix thead th {
  background: rgba(29, 114, 122, 0.12) !important;
  background-color: rgba(29, 114, 122, 0.12) !important;
  color: var(--remit-primary) !important;
  border-bottom-color: rgba(29, 114, 122, 0.24) !important;
}

body,
body .main,
body .modal-panel,
body .panel,
body .data-grid-panel,
body h1,
body h2,
body h3,
body .table-toolbar-title {
  color: var(--remit-text) !important;
}

body:has(.enterprise-header) .main h1,
body:has(.enterprise-header) .main h2,
body:has(.enterprise-header) .main h3,
body:has(.enterprise-header) .main .topbar h1,
body:has(.enterprise-header) .main .section-head h2,
body:has(.enterprise-header) .main .section-head h3,
body:has(.enterprise-header) .main .table-toolbar-title,
body .modal-panel h1,
body .modal-panel h2,
body .modal-panel h3,
body .modal-panel .table-toolbar-title {
  color: var(--remit-text) !important;
}

body .panel table thead,
body .panel table th,
body .panel .data-grid thead,
body .panel .data-grid th,
body .panel .widget-table thead,
body .panel .widget-table th,
body .panel .records-like-table thead,
body .panel .records-like-table th,
body .panel .journal-records-table thead,
body .panel .journal-records-table th,
body .panel .incentives-table thead,
body .panel .incentives-table th,
body .panel .gift-tracking-table thead,
body .panel .gift-tracking-table th,
body .main table > thead > tr > th,
body .modal-panel table > thead > tr > th {
  background: rgba(29, 114, 122, 0.12) !important;
  background-color: rgba(29, 114, 122, 0.12) !important;
  color: var(--remit-primary) !important;
  border-bottom-color: rgba(29, 114, 122, 0.24) !important;
}

.remit-logo-crop {
  position: relative !important;
  width: 42px !important;
  height: 35px !important;
  max-height: 35px !important;
  display: block !important;
  overflow: hidden !important;
  flex: 0 0 auto !important;
}

.remit-logo-crop img {
  position: absolute !important;
  width: 170px !important;
  max-width: none !important;
  height: auto !important;
  max-height: none !important;
  top: -13px !important;
  left: -65px !important;
  display: block !important;
  object-fit: none !important;
}

/* Final header layout cleanup */
body .enterprise-two-row-header.premium-minimal-header.enterprise-header.app-header {
  display: flex !important;
  flex-direction: row-reverse !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 24px !important;
  height: 78px !important;
  min-height: 78px !important;
  padding: 0 28px !important;
  background: #1d727a !important;
  background-color: #1d727a !important;
}



body .enterprise-two-row-header.premium-minimal-header.enterprise-header.app-header .enterprise-nav-rail {
  order: 2 !important;
  flex: 1 1 auto !important;
  width: auto !important;
  max-width: 920px !important;
  min-width: 0 !important;
  height: 78px !important;
  display: grid !important;
  grid-template-rows: 39px 39px !important;
  align-items: stretch !important;
  justify-self: auto !important;
  margin: 0 auto !important;
}

body .enterprise-two-row-header.premium-minimal-header.enterprise-header.app-header .remit-logo-card {
  background-color: #ffffff !important;
  padding: 6px 12px !important;
  border-radius: 6px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  height: auto !important;
  min-height: 0 !important;
  box-shadow: 0 8px 20px rgba(9, 38, 41, 0.14) !important;
}

body .enterprise-header-logo-zone,
body .enterprise-header-nav-zone,
body .enterprise-header-user-zone {
  min-width: 0 !important;
  display: flex !important;
  align-items: center !important;
}

body .enterprise-header-logo-zone {
  flex: 0 0 auto !important;
  justify-content: flex-start !important;
  order: 1 !important;
}

body .enterprise-header-nav-zone {
  flex: 1 1 auto !important;
  justify-content: center !important;
  order: 2 !important;
}

body .enterprise-header-user-zone {
  flex: 0 0 auto !important;
  justify-content: flex-end !important;
  order: 3 !important;
}



body .enterprise-header-logo-zone .remit-monogram,
body .enterprise-header-logo-zone .enterprise-brand strong,
body .enterprise-header-logo-zone .enterprise-brand small {
  display: none !important;
}

body .enterprise-header-nav-zone .enterprise-nav-rail {
  width: auto !important;
  max-width: none !important;
  height: auto !important;
  min-height: 0 !important;
  margin: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 4px !important;
  position: static !important;
  transform: none !important;
}

body .enterprise-header-nav-zone .enterprise-top-nav,
body .enterprise-header-nav-zone .enterprise-sub-nav,
body .enterprise-header-nav-zone .enterprise-nav-rail > .enterprise-top-nav,
body .enterprise-header-nav-zone .enterprise-nav-rail > .enterprise-sub-nav {
  position: static !important;
  inset: auto !important;
  width: auto !important;
  min-width: 0 !important;
  height: auto !important;
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 20px !important;
  padding: 0 !important;
  margin: 0 !important;
  overflow: visible !important;
}

body .enterprise-header-nav-zone .enterprise-nav-group {
  height: auto !important;
  display: flex !important;
  align-items: center !important;
}

body .enterprise-header-nav-zone .enterprise-top-link,
body .enterprise-header-nav-zone .enterprise-sub-link {
  height: auto !important;
  min-height: 0 !important;
  padding: 2px 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  background-color: transparent !important;
  box-shadow: none !important;
  color: #ffffff !important;
  font-size: 15px !important;
  font-weight: 500 !important;
  line-height: 20px !important;
}

body .enterprise-header-nav-zone .enterprise-sub-link {
  color: rgba(255, 255, 255, 0.86) !important;
  font-size: 14px !important;
}

body .enterprise-header-nav-zone .enterprise-top-link:hover,
body .enterprise-header-nav-zone .enterprise-top-link:focus-visible,
body .enterprise-header-nav-zone .enterprise-sub-link:hover,
body .enterprise-header-nav-zone .enterprise-sub-link:focus-visible,
body .enterprise-header-nav-zone .enterprise-sub-link.active {
  color: #ffffff !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}

body .enterprise-header-user-zone .enterprise-user-dropdown button small,


/* Hard reset for the rebuilt header so legacy header layers cannot leak in. */
body header.app-header.enterprise-header.premium-dropdown-header.premium-minimal-header.enterprise-two-row-header {
  display: flex !important;
  flex-direction: row !important;
  justify-content: space-between !important;
  align-items: center !important;
  direction: rtl !important;
  padding: 0 24px !important;
  height: 70px !important;
  min-height: 70px !important;
  background-color: #1d727a !important;
  background: #1d727a !important;
  position: relative !important;
  gap: 24px !important;
  border: 0 !important;
  border-radius: 0 !important;
}

body header.enterprise-two-row-header .enterprise-header-logo-zone {
  order: 1 !important;
  flex: 0 0 auto !important;
  width: auto !important;
  justify-content: flex-start !important;
}

body header.enterprise-two-row-header .enterprise-header-nav-zone {
  order: 2 !important;
  flex: 1 1 auto !important;
  min-width: 0 !important;
  width: auto !important;
  height: auto !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

body header.enterprise-two-row-header .enterprise-header-user-zone {
  order: 3 !important;
  flex: 0 0 auto !important;
  width: auto !important;
  justify-content: flex-end !important;
}

body header.enterprise-two-row-header .enterprise-header-nav-zone .enterprise-nav-rail {
  position: static !important;
  inset: auto !important;
  transform: none !important;
  width: auto !important;
  min-width: 0 !important;
  max-width: none !important;
  height: auto !important;
  min-height: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 4px !important;
  grid-template-rows: none !important;
  margin: 0 !important;
}

body header.enterprise-two-row-header .enterprise-header-nav-zone .enterprise-top-nav,
body header.enterprise-two-row-header .enterprise-header-nav-zone .enterprise-sub-nav,
body header.enterprise-two-row-header .enterprise-header-nav-zone .enterprise-nav-rail > .enterprise-top-nav,
body header.enterprise-two-row-header .enterprise-header-nav-zone .enterprise-nav-rail > .enterprise-sub-nav {
  position: static !important;
  inset: auto !important;
  transform: none !important;
  width: auto !important;
  min-width: 0 !important;
  height: auto !important;
  min-height: 0 !important;
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 20px !important;
  padding: 0 !important;
  margin: 0 !important;
  overflow: visible !important;
}

body header.enterprise-two-row-header .enterprise-header-logo-zone .remit-logo-card {
  background-color: #ffffff !important;
  padding: 10px 20px !important;
  border-radius: 8px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  height: 48px !important;
  min-width: 160px !important;
  box-shadow: none !important;
  box-sizing: border-box !important;
}





body header.enterprise-two-row-header .enterprise-header-user-zone .enterprise-icon-button,
body header.enterprise-two-row-header .enterprise-header-user-zone .enterprise-bell,
body header.enterprise-two-row-header .enterprise-header-user-zone .header-reminder-shell {
  display: none !important;
}

body header.app-header.enterprise-header.premium-dropdown-header.premium-minimal-header.enterprise-two-row-header .enterprise-header-nav-zone,
body header.app-header.enterprise-header.premium-dropdown-header.premium-minimal-header.enterprise-two-row-header .enterprise-header-logo-zone,
body header.app-header.enterprise-header.premium-dropdown-header.premium-minimal-header.enterprise-two-row-header .enterprise-header-user-zone {
  height: auto !important;
  align-self: center !important;
}

body header.app-header.enterprise-header.premium-dropdown-header.premium-minimal-header.enterprise-two-row-header .enterprise-header-nav-zone .enterprise-top-nav,
body header.app-header.enterprise-header.premium-dropdown-header.premium-minimal-header.enterprise-two-row-header .enterprise-header-nav-zone .enterprise-sub-nav {
  position: static !important;
  width: auto !important;
  min-width: 0 !important;
  height: auto !important;
  min-height: 0 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 20px !important;
}

body header.app-header.enterprise-header.premium-dropdown-header.premium-minimal-header.enterprise-two-row-header .enterprise-header-logo-zone .remit-logo-card {
  background-color: #ffffff !important;
  padding: 10px 20px !important;
  border-radius: 8px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  height: 48px !important;
  min-width: 160px !important;
  box-shadow: none !important;
  box-sizing: border-box !important;
}

body header.app-header.enterprise-header.premium-dropdown-header.premium-minimal-header.enterprise-two-row-header > .enterprise-header-logo-zone,
body header.app-header.enterprise-header.premium-dropdown-header.premium-minimal-header.enterprise-two-row-header > .enterprise-header-nav-zone,
body header.app-header.enterprise-header.premium-dropdown-header.premium-minimal-header.enterprise-two-row-header > .enterprise-header-user-zone {
  height: auto !important;
  min-width: 0 !important;
  display: flex !important;
  align-items: center !important;
  align-self: center !important;
  position: static !important;
  transform: none !important;
}

body header.app-header.enterprise-header.premium-dropdown-header.premium-minimal-header.enterprise-two-row-header > .enterprise-header-logo-zone {
  order: 1 !important;
  flex: 0 0 auto !important;
  justify-content: flex-start !important;
}

body header.app-header.enterprise-header.premium-dropdown-header.premium-minimal-header.enterprise-two-row-header > .enterprise-header-nav-zone {
  order: 2 !important;
  flex: 1 1 auto !important;
  justify-content: center !important;
}

body header.app-header.enterprise-header.premium-dropdown-header.premium-minimal-header.enterprise-two-row-header > .enterprise-header-user-zone {
  order: 3 !important;
  flex: 0 0 auto !important;
  justify-content: flex-end !important;
}



body header.app-header.enterprise-header.premium-dropdown-header.premium-minimal-header.enterprise-two-row-header .remit-logo-card {
  background-color: #ffffff !important;
  padding: 10px 20px !important;
  border-radius: 8px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  height: 48px !important;
  min-width: 160px !important;
  box-shadow: none !important;
  box-sizing: border-box !important;
}



body header.app-header.enterprise-header.premium-dropdown-header.premium-minimal-header.enterprise-two-row-header .enterprise-nav-rail {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 4px !important;
  position: static !important;
  inset: auto !important;
  transform: none !important;
  width: auto !important;
  min-width: 0 !important;
  max-width: 100% !important;
  height: auto !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
}

body header.app-header.enterprise-header.premium-dropdown-header.premium-minimal-header.enterprise-two-row-header .enterprise-top-nav,
body header.app-header.enterprise-header.premium-dropdown-header.premium-minimal-header.enterprise-two-row-header .enterprise-sub-nav {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 20px !important;
  position: static !important;
  inset: auto !important;
  transform: none !important;
  width: auto !important;
  min-width: 0 !important;
  height: auto !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: visible !important;
}

body header.app-header.enterprise-header.premium-dropdown-header.premium-minimal-header.enterprise-two-row-header .enterprise-nav-group {
  height: auto !important;
  min-height: 0 !important;
  display: flex !important;
  align-items: center !important;
  padding: 0 !important;
  position: static !important;
}

body header.app-header.enterprise-header.premium-dropdown-header.premium-minimal-header.enterprise-two-row-header .enterprise-nav-group::after,
body header.app-header.enterprise-header.premium-dropdown-header.premium-minimal-header.enterprise-two-row-header .enterprise-top-link::after {
  content: none !important;
}

body header.app-header.enterprise-header.premium-dropdown-header.premium-minimal-header.enterprise-two-row-header .enterprise-top-link,
body header.app-header.enterprise-header.premium-dropdown-header.premium-minimal-header.enterprise-two-row-header .enterprise-sub-link {
  height: auto !important;
  min-height: 0 !important;
  padding: 2px 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  color: #ffffff !important;
  font-size: 15px !important;
  font-weight: 500 !important;
  line-height: 20px !important;
  white-space: nowrap !important;
}

body header.app-header.enterprise-header.premium-dropdown-header.premium-minimal-header.enterprise-two-row-header .enterprise-sub-link {
  color: rgba(255, 255, 255, 0.86) !important;
  font-size: 14px !important;
  font-weight: 500 !important;
}

body header.app-header.enterprise-header.premium-dropdown-header.premium-minimal-header.enterprise-two-row-header .enterprise-nav-group.selected .enterprise-top-link,
body header.app-header.enterprise-header.premium-dropdown-header.premium-minimal-header.enterprise-two-row-header .enterprise-nav-group.active .enterprise-top-link,
body header.app-header.enterprise-header.premium-dropdown-header.premium-minimal-header.enterprise-two-row-header .enterprise-top-link:hover,
body header.app-header.enterprise-header.premium-dropdown-header.premium-minimal-header.enterprise-two-row-header .enterprise-top-link:focus-visible,
body header.app-header.enterprise-header.premium-dropdown-header.premium-minimal-header.enterprise-two-row-header .enterprise-sub-link:hover,
body header.app-header.enterprise-header.premium-dropdown-header.premium-minimal-header.enterprise-two-row-header .enterprise-sub-link:focus-visible,
body header.app-header.enterprise-header.premium-dropdown-header.premium-minimal-header.enterprise-two-row-header .enterprise-sub-link.active {
  color: #ffffff !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}

body header.app-header.enterprise-header.premium-dropdown-header.premium-minimal-header.enterprise-two-row-header .enterprise-user-dropdown button,


body header.app-header.enterprise-header.premium-dropdown-header.premium-minimal-header.enterprise-two-row-header .enterprise-user-dropdown button:hover,
body header.app-header.enterprise-header.premium-dropdown-header.premium-minimal-header.enterprise-two-row-header .enterprise-user-dropdown button.active {
  background-color: #ffffff !important;
  background: #ffffff !important;
  color: #1d727a !important;
  border-color: #cbd5e1 !important;
}

body header.app-header.enterprise-header.premium-dropdown-header.premium-minimal-header.enterprise-two-row-header .enterprise-user-dropdown button span,
body header.app-header.enterprise-header.premium-dropdown-header.premium-minimal-header.enterprise-two-row-header .enterprise-user-dropdown button strong,


body header.app-header.enterprise-header.premium-dropdown-header.premium-minimal-header.enterprise-two-row-header .enterprise-user-dropdown button small,


body:has(header.enterprise-two-row-header) .main {
  padding-top: 24px !important;
}

/* REMIT 2026 brand system: premium RTL SaaS shell */
:root {
  --remit-primary-dark: #062B36;
  --remit-sidebar-hover: #0B3D4D;
  --remit-brand-teal: #0F5E66;
  --remit-positive: #3CB86C;
  --remit-bg: #F6F8FA;
  --remit-card: #FFFFFF;
  --remit-border: #E5E7EB;
  --remit-text: #17212B;
  --remit-muted: #64748B;
  --remit-radius: 16px;
  --remit-radius-sm: 14px;
  --remit-sidebar-width: 280px;
  --remit-font: Heebo, Rubik, Arial, sans-serif;
}

html,
body {
  background: var(--remit-bg) !important;
  color: var(--remit-text) !important;
  font-family: var(--remit-font) !important;
  letter-spacing: 0 !important;
}

body {
  direction: rtl !important;
}

body:has(.enterprise-sidebar) {
  min-height: 100vh !important;
  background: var(--remit-bg) !important;
}

.enterprise-sidebar.app-sidebar {
  position: fixed !important;
  inset-block: 0 !important;
  right: 0 !important;
  left: auto !important;
  z-index: 3200 !important;
  width: var(--remit-sidebar-width) !important;
  padding: 30px 18px 20px !important;
  display: grid !important;
  grid-template-rows: auto minmax(0, 1fr) auto !important;
  gap: 24px !important;
  background: var(--remit-primary-dark) !important;
  color: #ffffff !important;
  border-left: 1px solid rgba(255, 255, 255, 0.08) !important;
  box-shadow: none !important;
  overflow: hidden !important;
}

.enterprise-sidebar-nav::-webkit-scrollbar {
  width: 6px !important;
}

.enterprise-sidebar-nav::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.20) !important;
  border-radius: 999px !important;
}

.enterprise-sidebar-section {
  display: grid !important;
  gap: 4px !important;
  margin: 0 !important;
  padding: 0 !important;
}

.enterprise-sidebar-section-title {
  padding: 0 10px 3px !important;
  color: rgba(255, 255, 255, 0.52) !important;
  font-size: 11.5px !important;
  line-height: 17px !important;
  font-weight: 500 !important;
}

body:has(.enterprise-sidebar) .modal-backdrop {
  right: calc(var(--remit-sidebar-width) + 16px) !important;
  left: 0 !important;
  width: auto !important;
  padding: 24px !important;
}

body:has(.enterprise-sidebar) .modal-panel {
  max-width: min(1120px, calc(100vw - var(--remit-sidebar-width) - 64px)) !important;
}

.enterprise-sidebar .enterprise-user-dropdown button,


.enterprise-sidebar .enterprise-user-dropdown button.active,
.enterprise-sidebar .enterprise-user-dropdown button:hover {
  background: #F6F8FA !important;
  border-color: rgba(11, 61, 77, 0.18) !important;
  color: var(--remit-primary-dark) !important;
}

.enterprise-sidebar .enterprise-user-dropdown span,
.enterprise-sidebar .enterprise-user-dropdown strong {
  color: var(--remit-primary-dark) !important;
  font-weight: 500 !important;
}

.enterprise-sidebar .enterprise-user-dropdown small {
  color: var(--remit-muted) !important;
}

body:has(.enterprise-sidebar) .main {
  margin: 0 var(--remit-sidebar-width) 0 0 !important;
  padding: 42px 42px 54px !important;
  min-height: 100vh !important;
  background: var(--remit-bg) !important;
  color: var(--remit-text) !important;
  overflow-x: hidden !important;
}

body:has(.enterprise-sidebar) .topbar {
  min-height: 64px !important;
  margin: 0 0 24px !important;
  padding: 0 !important;
  display: flex !important;
  align-items: flex-start !important;
  justify-content: space-between !important;
  gap: 18px !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}

body:has(.enterprise-sidebar) .topbar h1 {
  margin: 0 !important;
  color: var(--remit-text) !important;
  font-size: 34px !important;
  line-height: 42px !important;
  font-weight: 500 !important;
}

body:has(.enterprise-sidebar) .topbar p {
  margin: 6px 0 0 !important;
  color: var(--remit-muted) !important;
  font-size: 15px !important;
  font-weight: 500 !important;
}

body:has(.enterprise-sidebar) .topbar .actions,
body:has(.enterprise-sidebar) .section-head .actions,
body:has(.enterprise-sidebar) .actions {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  flex-wrap: wrap !important;
}

.shell-kpi-grid,
body:has(.enterprise-sidebar) .management-kpis,
body:has(.enterprise-sidebar) .stats {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(180px, 1fr)) !important;
  gap: 18px !important;
  margin: 0 0 26px !important;
}

.shell-kpi-card,
body:has(.enterprise-sidebar) .management-kpi,
body:has(.enterprise-sidebar) .stats article {
  min-height: 112px !important;
  padding: 22px !important;
  display: grid !important;
  align-content: start !important;
  gap: 8px !important;
  border: 1px solid var(--remit-border) !important;
  border-radius: 18px !important;
  background: var(--remit-card) !important;
  color: var(--remit-text) !important;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04) !important;
  overflow: hidden !important;
}

.shell-kpi-card::before,
body:has(.enterprise-sidebar) .stats article::before {
  content: none !important;
}

.shell-kpi-icon {
  width: 36px !important;
  height: 36px !important;
  display: grid !important;
  place-items: center !important;
  border-radius: 14px !important;
  background: #F1F5F9 !important;
  color: var(--remit-primary-dark) !important;
}

.shell-kpi-icon svg {
  width: 19px !important;
  height: 19px !important;
}

.shell-kpi-card span,
body:has(.enterprise-sidebar) .management-kpi span,
body:has(.enterprise-sidebar) .stats span {
  color: var(--remit-muted) !important;
  font-size: 14px !important;
  font-weight: 500 !important;
}

.shell-kpi-card strong,
body:has(.enterprise-sidebar) .management-kpi strong,
body:has(.enterprise-sidebar) .stats strong {
  color: var(--remit-text) !important;
  font-size: 26px !important;
  line-height: 32px !important;
  font-weight: 500 !important;
}

body:has(.enterprise-sidebar) .panel,
body:has(.enterprise-sidebar) .subpanel,
body:has(.enterprise-sidebar) .data-grid-panel,
body:has(.enterprise-sidebar) .donor-detail-card,
body:has(.enterprise-sidebar) .management-card,
body:has(.enterprise-sidebar) .customization-editor,
body:has(.enterprise-sidebar) .customization-preview,
body:has(.enterprise-sidebar) .integration-card,
body:has(.enterprise-sidebar) .widgets .panel {
  background: var(--remit-card) !important;
  border: 1px solid var(--remit-border) !important;
  border-radius: 18px !important;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.035) !important;
}

body:has(.enterprise-sidebar) .panel,
body:has(.enterprise-sidebar) .data-grid-panel {
  overflow: hidden !important;
}

body:has(.enterprise-sidebar) .section-head {
  min-height: 58px !important;
  padding: 22px 24px !important;
  margin: 0 !important;
  border-bottom: 1px solid var(--remit-border) !important;
  background: #ffffff !important;
}

body:has(.enterprise-sidebar) .section-head h2,
body:has(.enterprise-sidebar) .section-head h3,
body:has(.enterprise-sidebar) .management-card-head h3,
body:has(.enterprise-sidebar) .table-toolbar-title {
  margin: 0 !important;
  color: var(--remit-text) !important;
  font-size: 20px !important;
  line-height: 28px !important;
  font-weight: 500 !important;
}

body:has(.enterprise-sidebar) .muted,
body:has(.enterprise-sidebar) .section-head .muted {
  color: var(--remit-muted) !important;
}

body:has(.enterprise-sidebar) button,
body:has(.enterprise-sidebar) .dial,
body:has(.enterprise-sidebar) .primary,
body:has(.enterprise-sidebar) button.primary {
  min-height: 42px !important;
  border-radius: 14px !important;
  padding: 9px 16px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  border: 1px solid transparent !important;
  background: var(--remit-positive) !important;
  color: var(--remit-primary-dark) !important;
  font-size: 14px !important;
  font-weight: 500 !important;
  box-shadow: none !important;
  filter: none !important;
}

body:has(.enterprise-sidebar) button svg {
  width: 18px !important;
  height: 18px !important;
}

body:has(.enterprise-sidebar) button:hover,
body:has(.enterprise-sidebar) button:focus-visible {
  filter: none !important;
  transform: translateY(-1px) !important;
  transition: background-color 0.16s ease, border-color 0.16s ease, color 0.16s ease, transform 0.16s ease !important;
}

body:has(.enterprise-sidebar) button.ghost,
body:has(.enterprise-sidebar) .secondary,
body:has(.enterprise-sidebar) button.secondary,
body:has(.enterprise-sidebar) .table-filter-drawer-toggle,
body:has(.enterprise-sidebar) .icon-btn,
body:has(.enterprise-sidebar) .table-clear-btn,
body:has(.enterprise-sidebar) .column-menu-trigger {
  border: 1px solid var(--remit-border) !important;
  background: #ffffff !important;
  color: var(--remit-text) !important;
}

body:has(.enterprise-sidebar) button.ghost:hover,
body:has(.enterprise-sidebar) .secondary:hover,
body:has(.enterprise-sidebar) .icon-btn:hover {
  background: #F8FAFC !important;
  border-color: #CBD5E1 !important;
}

body:has(.enterprise-sidebar) input,
body:has(.enterprise-sidebar) select,
body:has(.enterprise-sidebar) textarea {
  min-height: 44px !important;
  border: 1px solid var(--remit-border) !important;
  border-radius: 14px !important;
  background: #ffffff !important;
  color: var(--remit-text) !important;
  font-family: var(--remit-font) !important;
  font-size: 14px !important;
  box-shadow: none !important;
}

body:has(.enterprise-sidebar) input:focus,
body:has(.enterprise-sidebar) select:focus,
body:has(.enterprise-sidebar) textarea:focus {
  outline: 0 !important;
  border-color: rgba(15, 94, 102, 0.46) !important;
  box-shadow: 0 0 0 3px rgba(15, 94, 102, 0.08) !important;
}

body:has(.enterprise-sidebar) label {
  color: var(--remit-text) !important;
  font-size: 13px !important;
  font-weight: 500 !important;
}

body:has(.enterprise-sidebar) .table-search-row,
body:has(.enterprise-sidebar) .data-grid-panel .table-search-row {
  min-height: 68px !important;
  padding: 14px 18px !important;
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  flex-wrap: wrap !important;
  border-bottom: 1px solid var(--remit-border) !important;
  background: #ffffff !important;
}

body:has(.enterprise-sidebar) .table-toolbar-meta {
  width: 100% !important;
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  flex-wrap: wrap !important;
}

body:has(.enterprise-sidebar) .table-toolbar-meta::before {
  content: "" !important;
  width: 36px !important;
  height: 36px !important;
  display: inline-grid !important;
  place-items: center !important;
  border-radius: 14px !important;
  background: rgba(6, 43, 54, 0.12) !important;
}

body:has(.enterprise-sidebar) .table-free-search,
body:has(.enterprise-sidebar) .table-search-row input[type="search"] {
  width: min(360px, 100%) !important;
  min-width: min(320px, 100%) !important;
  margin-inline-start: auto !important;
}

body:has(.enterprise-sidebar) table {
  width: 100% !important;
  border-collapse: separate !important;
  border-spacing: 0 !important;
  color: var(--remit-text) !important;
  font-size: 14px !important;
  background: #ffffff !important;
}

body:has(.enterprise-sidebar) thead th {
  height: 48px !important;
  padding: 12px 16px !important;
  border-bottom: 1px solid var(--remit-border) !important;
  background: #F8FAFC !important;
  color: var(--remit-muted) !important;
  font-size: 12px !important;
  font-weight: 500 !important;
  text-transform: none !important;
}

body:has(.enterprise-sidebar) tbody td {
  min-height: 56px !important;
  padding: 15px 16px !important;
  border-bottom: 1px solid #EEF2F7 !important;
  color: var(--remit-text) !important;
  vertical-align: middle !important;
}

body:has(.enterprise-sidebar) tbody tr:hover td {
  background: #FBFCFD !important;
}

.brand-mark-img {
  width: 44px !important;
  height: 44px !important;
  border-radius: 14px !important;
  display: block !important;
}

body:has(.enterprise-sidebar) .badge,
body:has(.enterprise-sidebar) .status-badge,
body:has(.enterprise-sidebar) .status-pill,
body:has(.enterprise-sidebar) .chip {
  min-height: 28px !important;
  padding: 4px 10px !important;
  border-radius: 999px !important;
  border: 1px solid #E5E7EB !important;
  background: #F8FAFC !important;
  color: var(--remit-text) !important;
  font-size: 12px !important;
  font-weight: 500 !important;
  box-shadow: none !important;
}

body:has(.enterprise-sidebar) .badge.ok,
body:has(.enterprise-sidebar) .status-badge.ok,
body:has(.enterprise-sidebar) .status-pill.ok {
  border-color: rgba(61, 186, 111, 0.32) !important;
  background: rgba(61, 186, 111, 0.14) !important;
  color: #3CB86C !important;
}

/* Table choice colors always win over the REMIT shell theme. */
body:has(.enterprise-sidebar) .managed-select-menu .managed-option-value,
body:has(.enterprise-sidebar) .choice-dropdown .managed-option-value,
body:has(.enterprise-sidebar) .call-result-dropdown .managed-option-value,
body:has(.enterprise-sidebar) #floating-choice-menu .inline-choice-option,
body:has(.enterprise-sidebar) #choice-bubble-dialog .inline-choice-option {
  min-height: 38px !important;
  padding: 4px 10px !important;
  border: 1px solid transparent !important;
  background: transparent !important;
  color: var(--remit-text) !important;
  box-shadow: none !important;
}

body:has(.enterprise-sidebar) .managed-select-menu .managed-option-value:hover,
body:has(.enterprise-sidebar) .choice-dropdown .managed-option-value:hover,
body:has(.enterprise-sidebar) .call-result-dropdown .managed-option-value:hover,
body:has(.enterprise-sidebar) #floating-choice-menu .inline-choice-option:hover,
body:has(.enterprise-sidebar) #choice-bubble-dialog .inline-choice-option:hover {
  background: #F8FAFC !important;
  border-color: #EEF2F7 !important;
}

body:has(.enterprise-sidebar) .status-badge.custom-color,
body:has(.enterprise-sidebar) .choice-dropdown .status-badge.custom-color,
body:has(.enterprise-sidebar) .call-result-dropdown .status-badge.custom-color,
body:has(.enterprise-sidebar) .managed-select-button .status-badge.custom-color,
body:has(.enterprise-sidebar) .managed-option-value .status-badge.custom-color,
body:has(.enterprise-sidebar) #floating-choice-menu .status-badge.custom-color,
body:has(.enterprise-sidebar) #choice-bubble-dialog .status-badge.custom-color {
  background: color-mix(in srgb, var(--status-color) 18%, white) !important;
  border-color: color-mix(in srgb, var(--status-color) 42%, white) !important;
  color: var(--status-color) !important;
}

body:has(.enterprise-sidebar) .status-badge.success {
  color: #3CB86C !important;
  background: #eef7e9 !important;
  border-color: #3CB86C !important;
}

body:has(.enterprise-sidebar) .status-badge.warning {
  color: #b54708 !important;
  background: #fef0c7 !important;
  border-color: #fedf89 !important;
}

body:has(.enterprise-sidebar) .status-badge.danger {
  color: #c01048 !important;
  background: #ffe4e8 !important;
  border-color: #fecdd6 !important;
}

body:has(.enterprise-sidebar) .status-badge.info {
  color: #175cd3 !important;
  background: #dbeafe !important;
  border-color: #bfdbfe !important;
}

body:has(.enterprise-sidebar) .status-badge.purple {
  color: #6941c6 !important;
  background: #ebe9fe !important;
  border-color: #d9d6fe !important;
}

body:has(.enterprise-sidebar) .status-badge.neutral {
  color: #475467 !important;
  background: #eef2f6 !important;
  border-color: #dde3ea !important;
}

body:has(.enterprise-sidebar) dialog,
body:has(.enterprise-sidebar) .modal,
body:has(.enterprise-sidebar) .modal-card,
body:has(.enterprise-sidebar) .choice-bubble-dialog,
body:has(.enterprise-sidebar) .floating-choice-menu,
body:has(.enterprise-sidebar) .managed-select-menu,
body:has(.enterprise-sidebar) .column-menu,
body:has(.enterprise-sidebar) .donor-picker-menu {
  border: 1px solid var(--remit-border) !important;
  border-radius: 18px !important;
  background: #ffffff !important;
  color: var(--remit-text) !important;
  box-shadow: 0 24px 70px rgba(15, 23, 42, 0.16) !important;
}

body:has(.enterprise-sidebar) .management-dashboard {
  display: grid !important;
  gap: 22px !important;
}

body:has(.enterprise-sidebar) .management-dashboard-head {
  min-height: 74px !important;
  padding: 0 !important;
  margin: 0 !important;
  display: flex !important;
  align-items: flex-start !important;
  justify-content: space-between !important;
  gap: 18px !important;
}

body:has(.enterprise-sidebar) .management-dashboard-head h2 {
  margin: 0 !important;
  color: var(--remit-text) !important;
  font-size: 34px !important;
  line-height: 42px !important;
  font-weight: 500 !important;
}

body:has(.enterprise-sidebar) .management-dashboard-head p,
body:has(.enterprise-sidebar) .management-dashboard-head span {
  color: var(--remit-muted) !important;
}

body:has(.enterprise-sidebar) .kpi-sparkline polyline,
body:has(.enterprise-sidebar) .donation-line-chart .chart-line {
  stroke: var(--remit-brand-teal) !important;
}

body:has(.enterprise-sidebar) .donation-line-chart .chart-area {
  fill: rgba(15, 94, 102, 0.08) !important;
}

body:has(.enterprise-sidebar) .enterprise-sidebar.app-sidebar {
  background: #062B36 !important;
}

body:has(.enterprise-sidebar) .enterprise-sidebar .enterprise-user-dropdown button.active,
body:has(.enterprise-sidebar) .enterprise-sidebar .enterprise-user-dropdown button:hover {
  background: #F6F8FA !important;
  border-color: rgba(11, 61, 77, 0.18) !important;
  color: #062B36 !important;
}

@media (max-width: 1180px) {
  :root {
    --remit-sidebar-width: 250px;
  }

  .shell-kpi-grid,
  body:has(.enterprise-sidebar) .management-kpis,
  body:has(.enterprise-sidebar) .stats {
    grid-template-columns: repeat(2, minmax(160px, 1fr)) !important;
  }
}

@media (max-width: 760px) {
  :root {
    --remit-sidebar-width: 82px;
  }

  .enterprise-sidebar.app-sidebar {
    padding: 18px 10px !important;
    gap: 18px !important;
  }

  body:has(.enterprise-sidebar) .main {
    padding: 22px 16px 34px !important;
  }

  body:has(.enterprise-sidebar) .modal-backdrop {
    right: calc(var(--remit-sidebar-width) + 10px) !important;
    left: 0 !important;
    padding: 14px !important;
  }

  body:has(.enterprise-sidebar) .modal-panel {
    max-width: calc(100vw - var(--remit-sidebar-width) - 34px) !important;
  }

  body:has(.enterprise-sidebar) .topbar,
  body:has(.enterprise-sidebar) .management-dashboard-head {
    flex-direction: column !important;
  }

  body:has(.enterprise-sidebar) .topbar h1,
  body:has(.enterprise-sidebar) .management-dashboard-head h2 {
    font-size: 28px !important;
    line-height: 36px !important;
  }

  .shell-kpi-grid,
  body:has(.enterprise-sidebar) .management-kpis,
  body:has(.enterprise-sidebar) .stats {
    grid-template-columns: 1fr !important;
  }
}

/* REMIT layout lock. */
:root {
  --remit-primary-dark: #0f1e2d;
  --remit-sidebar-hover: #1a3040;
  --remit-sidebar-width: 220px;
  --remit-active-green: #3CB86C;
}

html,
body,
#app {
  direction: rtl !important;
}

body:has(.enterprise-sidebar),
body:has(.enterprise-sidebar) * {
  font-weight: 400 !important;
}

body:has(.enterprise-sidebar) .enterprise-sidebar.app-sidebar {
  width: 220px !important;
  height: 100vh !important;
  display: flex !important;
  flex-direction: column !important;
  padding: 0 !important;
  gap: 0 !important;
  background: #0f1e2d !important;
  border-left: 0.5px solid #1e3248 !important;
  box-shadow: none !important;
}

body:has(.enterprise-sidebar) .enterprise-sidebar-section {
  display: block !important;
  margin: 0 !important;
  padding: 0 0 8px !important;
  border: 0 !important;
}

body:has(.enterprise-sidebar) .enterprise-sidebar-section + .enterprise-sidebar-section {
  border-top: 0.5px solid #1e3248 !important;
  padding-top: 8px !important;
}

body:has(.enterprise-sidebar) .enterprise-sidebar-section-title {
  padding: 12px 10px 4px !important;
  color: #3a6a58 !important;
  font-size: 10px !important;
  line-height: 14px !important;
  letter-spacing: 0.8px !important;
  text-transform: uppercase !important;
}

body:has(.enterprise-sidebar) .modal-backdrop {
  right: 236px !important;
}

body:has(.enterprise-sidebar) .topbar,
body:has(.enterprise-sidebar) .management-dashboard-head {
  margin: -20px -24px 18px !important;
  padding: 12px 24px !important;
  min-height: 56px !important;
  background: #ffffff !important;
  border-bottom: 0.5px solid #e8eaed !important;
}

body:has(.enterprise-sidebar) .topbar h1,
body:has(.enterprise-sidebar) .management-dashboard-head h2,
body:has(.enterprise-sidebar) .page-title {
  color: #111827 !important;
  font-size: 17px !important;
  line-height: 24px !important;
}

body:has(.enterprise-sidebar) .topbar p,
body:has(.enterprise-sidebar) .management-dashboard-head p,
body:has(.enterprise-sidebar) .page-meta {
  color: #9ca3af !important;
  font-size: 12px !important;
}

body:has(.enterprise-sidebar) .panel,
body:has(.enterprise-sidebar) .subpanel,
body:has(.enterprise-sidebar) .data-grid-panel,
body:has(.enterprise-sidebar) .donor-detail-card,
body:has(.enterprise-sidebar) .management-card,
body:has(.enterprise-sidebar) .customization-editor,
body:has(.enterprise-sidebar) .customization-preview,
body:has(.enterprise-sidebar) .integration-card,
body:has(.enterprise-sidebar) .widgets .panel,
body:has(.enterprise-sidebar) .shell-kpi-card {
  background: #ffffff !important;
  border: 0.5px solid #e8eaed !important;
  border-radius: 10px !important;
  box-shadow: none !important;
}

body:has(.enterprise-sidebar) .shell-kpi-icon {
  width: 30px !important;
  height: 30px !important;
  border-radius: 7px !important;
  margin-bottom: 8px !important;
}

body:has(.enterprise-sidebar) .shell-kpi-card span:not(.shell-kpi-icon),
body:has(.enterprise-sidebar) .kpi-label {
  color: #9ca3af !important;
  font-size: 11px !important;
}

body:has(.enterprise-sidebar) .shell-kpi-card strong,
body:has(.enterprise-sidebar) .kpi-value {
  color: #111827 !important;
  font-size: 20px !important;
  line-height: 26px !important;
}

body:has(.enterprise-sidebar) .shell-kpi-card em,
body:has(.enterprise-sidebar) .kpi-trend {
  color: #2A8C52 !important;
  font-size: 11px !important;
}

body:has(.enterprise-sidebar) thead th {
  padding: 9px 14px !important;
  background: #f9fafb !important;
  border-bottom: 0.5px solid #e8eaed !important;
  color: #9ca3af !important;
  font-size: 11px !important;
  letter-spacing: 0.3px !important;
}

body:has(.enterprise-sidebar) tbody td {
  padding: 10px 14px !important;
  border-bottom: 0.5px solid #f3f4f6 !important;
  color: #374151 !important;
  font-size: 12px !important;
}

body:has(.enterprise-sidebar) tbody tr:hover td {
  background: #f9fafb !important;
}

body:has(.enterprise-sidebar) .status-badge:not(.custom-color),
body:has(.enterprise-sidebar) .badge:not(.custom-color) {
  display: inline-flex !important;
  align-items: center !important;
  gap: 3px !important;
  min-height: 22px !important;
  padding: 2px 8px !important;
  border: 0 !important;
  border-radius: 20px !important;
  font-size: 11px !important;
}

body:has(.enterprise-sidebar) .status-badge:not(.custom-color)::before,
body:has(.enterprise-sidebar) .badge:not(.custom-color)::before {
  content: "" !important;
  width: 5px !important;
  height: 5px !important;
  border-radius: 50% !important;
  background: currentColor !important;
}

body:has(.enterprise-sidebar) .status-badge.success:not(.custom-color),
body:has(.enterprise-sidebar) .status-badge.ok:not(.custom-color),
body:has(.enterprise-sidebar) .badge.ok:not(.custom-color) {
  background: rgba(60, 184, 108, 0.14) !important;
  color: #2A8C52 !important;
}

body:has(.enterprise-sidebar) .status-badge.warning:not(.custom-color) {
  background: #FAEEDA !important;
  color: #854F0B !important;
}

body:has(.enterprise-sidebar) .status-badge.neutral:not(.custom-color),
body:has(.enterprise-sidebar) .status-badge.danger:not(.custom-color) {
  background: #f3f4f6 !important;
  color: #6b7280 !important;
}

body:has(.enterprise-sidebar) .status-badge.custom-color {
  background: color-mix(in srgb, var(--status-color) 18%, white) !important;
  border-color: color-mix(in srgb, var(--status-color) 42%, white) !important;
  color: var(--status-color) !important;
}

body:has(.enterprise-sidebar) button,
body:has(.enterprise-sidebar) .btn-primary,
body:has(.enterprise-sidebar) .primary,
body:has(.enterprise-sidebar) button.primary {
  border-radius: 8px !important;
  padding: 7px 14px !important;
  font-size: 12px !important;
}

body:has(.enterprise-sidebar) button.ghost,
body:has(.enterprise-sidebar) .btn-secondary,
body:has(.enterprise-sidebar) .secondary,
body:has(.enterprise-sidebar) button.secondary {
  border: 0.5px solid #d1d5db !important;
  background: #ffffff !important;
  color: #6b7280 !important;
}

/* Field Settings table absolute final lock - keep at EOF. */
body:has(.enterprise-sidebar) .modal-panel:has(.classic-table-settings) {
  overflow: visible !important;
}

body:has(.enterprise-sidebar) .modal-panel:has(.classic-table-settings) .modal-body,
body:has(.enterprise-sidebar) .modal-panel:has(.classic-table-settings) .modal-content {
  overflow: visible !important;
  min-height: 0 !important;
}

body:has(.enterprise-sidebar) .modal-panel:has(.classic-table-settings) .modal-footer {
  display: flex !important;
  position: sticky !important;
  bottom: 0 !important;
  z-index: 30 !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 8px !important;
  padding: 12px 16px !important;
  border-top: 0.5px solid #e8eaed !important;
  background: #ffffff !important;
}

body:has(.enterprise-sidebar) .classic-table-settings {
  display: flex !important;
  flex-direction: column !important;
  max-width: 100% !important;
  min-height: 0 !important;
  overflow: visible !important;
}

body:has(.enterprise-sidebar) .classic-table-settings .table-settings-compact-head {
  display: grid !important;
  grid-template-columns: minmax(220px, 1fr) auto auto !important;
  gap: 8px !important;
  align-items: center !important;
  padding: 12px 14px !important;
  border: 0.5px solid #e8eaed !important;
  border-bottom: 0 !important;
  border-radius: 10px 10px 0 0 !important;
  background: #ffffff !important;
}

body:has(.enterprise-sidebar) .classic-table-settings .table-settings-compact-head > span {
  grid-column: 1 / 2 !important;
  color: #9ca3af !important;
  font-size: 12px !important;
}

body:has(.enterprise-sidebar) .classic-table-settings .table-settings-save-btn,
body:has(.enterprise-sidebar) .classic-table-settings .table-settings-close-btn {
  justify-self: end !important;
}

body:has(.enterprise-sidebar) .classic-table-settings .table-settings-sticky-head {
  min-width: 1180px !important;
  border: 0.5px solid #e8eaed !important;
  border-bottom: 0 !important;
  border-radius: 0 !important;
  background: #f9fafb !important;
  color: #9ca3af !important;
  box-shadow: none !important;
  overflow: visible !important;
}

body:has(.enterprise-sidebar) .classic-table-settings .table-settings-sticky-head span {
  white-space: nowrap !important;
  border-inline-start: 0.5px solid #e8eaed !important;
  color: #9ca3af !important;
  font-size: 11px !important;
}

body:has(.enterprise-sidebar) .classic-table-settings .table-settings-scroll {
  width: 100% !important;
  max-width: 100% !important;
  height: min(66vh, 680px) !important;
  max-height: min(66vh, 680px) !important;
  overflow-x: auto !important;
  overflow-y: auto !important;
  border: 0.5px solid #e8eaed !important;
  border-radius: 0 0 10px 10px !important;
  background: #ffffff !important;
}

body:has(.enterprise-sidebar) .classic-table-settings .table-settings-matrix {
  min-width: 1180px !important;
  width: max-content !important;
  border-collapse: separate !important;
  border-spacing: 0 !important;
}

body:has(.enterprise-sidebar) .classic-table-settings .table-settings-matrix th {
  white-space: nowrap !important;
}

body:has(.enterprise-sidebar) .classic-table-settings .table-settings-matrix tr {
  min-width: 1180px !important;
  border-bottom: 0.5px solid #f3f4f6 !important;
}

body:has(.enterprise-sidebar) .classic-table-settings .table-settings-matrix tbody tr:nth-child(odd) td {
  background: #ffffff !important;
}

body:has(.enterprise-sidebar) .classic-table-settings .table-settings-matrix tbody tr:nth-child(even) td {
  background: #f9fafb !important;
}

body:has(.enterprise-sidebar) .classic-table-settings .table-settings-matrix tbody tr:hover td {
  background: rgba(60, 184, 108, 0.08) !important;
}

body:has(.enterprise-sidebar) .classic-table-settings .table-settings-matrix td {
  border-bottom: 0.5px solid #f3f4f6 !important;
}

body:has(.enterprise-sidebar) .classic-table-settings input[type="checkbox"] {
  appearance: none !important;
  -webkit-appearance: none !important;
  width: 16px !important;
  height: 16px !important;
  min-width: 16px !important;
  min-height: 16px !important;
  margin: 0 !important;
  border: 0.5px solid #d1d5db !important;
  border-radius: 4px !important;
  background: #ffffff !important;
  background-color: #ffffff !important;
  box-shadow: none !important;
  cursor: pointer !important;
}

body:has(.enterprise-sidebar) .classic-table-settings input[type="checkbox"]:checked {
  border-color: #3CB86C !important;
  background-color: #3CB86C !important;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 16 16' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M4 8.2 6.7 11 12 5' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-position: center !important;
  background-size: 12px 12px !important;
}

body:has(.enterprise-sidebar) .classic-table-settings .table-settings-empty-choice {
  min-height: 34px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  color: #9ca3af !important;
  font-size: 12px !important;
  text-align: center !important;
}

body:has(.enterprise-sidebar) .classic-table-settings .choice-color-settings {
  position: static !important;
  display: grid !important;
  gap: 8px !important;
}

body:has(.enterprise-sidebar) .classic-table-settings .choice-color-grid {
  position: static !important;
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 6px !important;
  max-width: 360px !important;
  padding: 8px !important;
  border: 0.5px solid #e8eaed !important;
  border-radius: 10px !important;
  background: #ffffff !important;
  box-shadow: none !important;
}

body:has(.enterprise-sidebar) .classic-table-settings .choice-color-grid[hidden] {
  display: none !important;
}

body:has(.enterprise-sidebar) .classic-table-settings .choice-color-grid label {
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  padding: 4px 6px !important;
  border: 0.5px solid #e8eaed !important;
  border-radius: 999px !important;
  background: #f9fafb !important;
}

body:has(.enterprise-sidebar) .classic-table-settings .choice-color-grid select {
  position: static !important;
  width: auto !important;
  min-width: 72px !important;
  height: 28px !important;
  padding: 2px 8px !important;
  border: 0.5px solid #d1d5db !important;
  border-radius: 999px !important;
  background: #ffffff !important;
  color: #374151 !important;
  font-size: 12px !important;
}

/* 1. SIDEBAR SHELL */
.sidebar,
.enterprise-sidebar.app-sidebar,
body:has(.enterprise-sidebar) .enterprise-sidebar.app-sidebar {
  background: #0f1e2d !important;
  display: flex !important;
  flex-direction: column !important;
  height: 100vh !important;
  padding: 0 !important;
  gap: 0 !important;
}

/* Field Settings Modal — compact row redesign, no horizontal overflow. */
.modal-panel:has(.field-settings-modal) {
  width: min(1120px, calc(100vw - var(--remit-sidebar-width, 220px) - 56px)) !important;
  max-width: min(1120px, calc(100vw - var(--remit-sidebar-width, 220px) - 56px)) !important;
  max-height: min(85vh, calc(100vh - 32px)) !important;
  overflow: hidden !important;
}

.modal-panel:has(.field-settings-modal) > .modal-head,
.modal-panel:has(.field-settings-modal) > .modal-footer,
.modal-panel:has(.field-settings-modal) .modal-summary {
  display: none !important;
}

.modal-panel:has(.field-settings-modal) .modal-body,
.modal-panel:has(.field-settings-modal) .modal-content {
  padding: 0 !important;
  margin: 0 !important;
  min-height: 0 !important;
  max-height: none !important;
  overflow: hidden !important;
  background: #ffffff !important;
}

.field-settings-modal {
  background: #ffffff !important;
  border-radius: 14px !important;
  border: 0.5px solid #e8eaed !important;
  max-width: 100% !important;
  width: 100% !important;
  max-height: min(85vh, calc(100vh - 32px)) !important;
  display: flex !important;
  flex-direction: column !important;
  overflow: hidden !important;
}

.field-settings-modal .modal-header {
  padding: 18px 24px 14px !important;
  border-bottom: 0.5px solid #f3f4f6 !important;
  flex-shrink: 0 !important;
  background: #ffffff !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 16px !important;
}

.field-settings-modal .modal-title {
  font-size: 16px !important;
  font-weight: 500 !important;
  color: #111827 !important;
}

.field-settings-modal .modal-sub {
  font-size: 12px !important;
  color: #9ca3af !important;
  margin-top: 3px !important;
}

.field-settings-modal .modal-body,
.field-settings-modal .field-list,
.field-settings-modal .settings-body,
.field-settings-modal .modal-content {
  background: #ffffff !important;
}

.field-settings-modal .modal-body {
  padding: 0 24px !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
  flex: 1 1 auto !important;
  min-height: 0 !important;
}

.modal-panel:has(.field-settings-modal) .field-settings-modal > .modal-body {
  overflow-y: auto !important;
  overflow-x: hidden !important;
}

.field-settings-modal .modal-footer {
  padding: 12px 24px !important;
  border-top: 0.5px solid #f3f4f6 !important;
  display: flex !important;
  gap: 8px !important;
  flex-shrink: 0 !important;
  background: #ffffff !important;
  position: sticky !important;
  bottom: 0 !important;
  z-index: 120 !important;
  pointer-events: auto !important;
  box-shadow: 0 -10px 24px rgba(15, 23, 42, 0.06) !important;
}

.field-settings-modal .modal-footer button {
  position: relative !important;
  z-index: 121 !important;
  pointer-events: auto !important;
}

.field-settings-modal .field-settings-header-actions {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  flex-shrink: 0 !important;
}

.field-settings-modal .col-headers {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  padding: 10px 0 6px !important;
  border-bottom: 0.5px solid #f3f4f6 !important;
  position: sticky !important;
  top: 0 !important;
  background: #ffffff !important;
  z-index: 2 !important;
}

.field-settings-modal .col-headers .ch {
  font-size: 10px !important;
  color: #9ca3af !important;
  font-weight: 500 !important;
  letter-spacing: 0.4px !important;
  text-transform: uppercase !important;
}

.field-settings-modal .ch-name {
  width: 110px !important;
  flex-shrink: 0 !important;
}

.field-settings-modal .ch-perms {
  flex: 1 1 auto !important;
  min-width: 0 !important;
}

.field-settings-modal .ch-table {
  width: 95px !important;
  flex-shrink: 0 !important;
  text-align: center !important;
}

.field-settings-modal .ch-color {
  width: 160px !important;
  flex-shrink: 0 !important;
}

.field-settings-modal .ch-active {
  width: 56px !important;
  flex-shrink: 0 !important;
  text-align: center !important;
}

.field-settings-modal .field-row {
  display: flex !important;
  align-items: flex-start !important;
  gap: 8px !important;
  padding: 13px 0 !important;
  border-bottom: 0.5px solid #f3f4f6 !important;
  min-width: 0 !important;
}

.field-settings-modal .field-row:last-child {
  border-bottom: none !important;
}

.field-settings-modal .field-name {
  width: 110px !important;
  flex-shrink: 0 !important;
  font-size: 13px !important;
  font-weight: 500 !important;
  color: #111827 !important;
  padding-top: 5px !important;
  overflow-wrap: anywhere !important;
}

.field-settings-modal .field-perms {
  flex: 1 1 auto !important;
  min-width: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 7px !important;
}

.field-settings-modal .perm-line {
  display: flex !important;
  align-items: center !important;
  gap: 6px !important;
}

.field-settings-modal .perm-lbl {
  font-size: 10px !important;
  color: #9ca3af !important;
  width: 30px !important;
  flex-shrink: 0 !important;
  text-align: right !important;
}

.field-settings-modal .role-tags {
  display: flex !important;
  gap: 3px !important;
  flex-wrap: wrap !important;
}

.field-settings-modal .role-tag {
  display: inline-flex !important;
  align-items: center !important;
  padding: 2px 9px !important;
  border-radius: 20px !important;
  border: 0.5px solid #e8eaed !important;
  font-size: 11px !important;
  color: #9ca3af !important;
  background: #ffffff !important;
  cursor: pointer !important;
  user-select: none !important;
  transition: all 0.1s !important;
}

.field-settings-modal .role-tag input,
.field-settings-modal .field-settings-toggle-input {
  position: absolute !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

.field-settings-modal .field-settings-check-input {
  position: static !important;
  opacity: 1 !important;
  pointer-events: auto !important;
  width: 16px !important;
  height: 16px !important;
  margin: 0 !important;
  accent-color: #3CB86C !important;
  flex-shrink: 0 !important;
}

.field-settings-modal .role-tag:hover {
  background: #f9fafb !important;
  border-color: #d1d5db !important;
}

.field-settings-modal .role-tag.active {
  background: #D1FAE5 !important;
  color: #065F46 !important;
  border-color: #6EE7B7 !important;
}

.field-settings-modal .role-tag.active::before {
  content: "✓ " !important;
  font-size: 10px !important;
}

.field-settings-modal .table-opts {
  width: 95px !important;
  flex-shrink: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 6px !important;
  padding-top: 3px !important;
}

.field-settings-modal .cb-row {
  display: flex !important;
  align-items: center !important;
  gap: 5px !important;
  cursor: pointer !important;
  user-select: none !important;
}

.field-settings-modal .cb-row span:last-child {
  font-size: 11px !important;
  color: #6b7280 !important;
}

.field-settings-modal .cb-box {
  display: none !important;
}

.field-settings-modal .color-cell {
  width: 160px !important;
  flex-shrink: 0 !important;
}

.field-settings-modal .no-color-msg {
  font-size: 11px !important;
  color: #d1d5db !important;
  padding-top: 5px !important;
  display: inline-flex !important;
}

.field-settings-modal .color-toggle {
  margin-bottom: 6px !important;
}

.field-settings-modal .values-list {
  background: #f9fafb !important;
  border-radius: 8px !important;
  padding: 7px 10px !important;
  border: 0.5px solid #f0f0f0 !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 5px !important;
}

.field-settings-modal .values-list.hidden {
  display: none !important;
}

.field-settings-modal .value-row {
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: center !important;
  gap: 6px !important;
  position: relative !important;
}

.field-settings-modal .value-tag {
  display: inline-flex !important;
  align-items: center !important;
  gap: 4px !important;
  padding: 2px 9px !important;
  border-radius: 20px !important;
  font-size: 11px !important;
  font-weight: 500 !important;
  min-width: 80px !important;
  max-width: 112px !important;
  overflow-wrap: anywhere !important;
}

.field-settings-modal .value-tag::before {
  content: "" !important;
  width: 6px !important;
  height: 6px !important;
  border-radius: 50% !important;
  background: currentColor !important;
  flex-shrink: 0 !important;
}

.field-settings-modal .vp-none { background: #F3F4F6 !important; color: #6B7280 !important; }
.field-settings-modal .vp-red { background: #FEE2E2 !important; color: #991B1B !important; }
.field-settings-modal .vp-orange { background: #FFF7ED !important; color: #9A3412 !important; }
.field-settings-modal .vp-amber { background: #FFFBEB !important; color: #92400E !important; }
.field-settings-modal .vp-yellow { background: #FEFCE8 !important; color: #854D0E !important; }
.field-settings-modal .vp-lime { background: #F7FEE7 !important; color: #3F6212 !important; }
.field-settings-modal .vp-emerald { background: #D1FAE5 !important; color: #047857 !important; }
.field-settings-modal .vp-teal { background: #D1FAE5 !important; color: #065F46 !important; }
.field-settings-modal .vp-cyan { background: #CFFAFE !important; color: #0E7490 !important; }
.field-settings-modal .vp-sky { background: #E0F2FE !important; color: #075985 !important; }
.field-settings-modal .vp-blue { background: #DBEAFE !important; color: #1E40AF !important; }
.field-settings-modal .vp-indigo { background: #EEF2FF !important; color: #3730A3 !important; }
.field-settings-modal .vp-violet { background: #F5F3FF !important; color: #6D28D9 !important; }
.field-settings-modal .vp-purple { background: #EDE9FE !important; color: #5B21B6 !important; }
.field-settings-modal .vp-pink { background: #FCE7F3 !important; color: #9D174D !important; }
.field-settings-modal .vp-rose { background: #FFE4E6 !important; color: #BE123C !important; }
.field-settings-modal .vp-brown { background: #FEF3C7 !important; color: #78350F !important; }
.field-settings-modal .vp-slate { background: #E2E8F0 !important; color: #334155 !important; }
.field-settings-modal .vp-gray { background: #F3F4F6 !important; color: #4B5563 !important; }

/* The rainbow trigger circle */
.color-trigger {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  cursor: pointer;
  border: 2px solid rgba(0,0,0,0.1);
  flex-shrink: 0;
  background: conic-gradient(
    #FCA5A5, #FDBA74, #FCD34D, #9ee7b9,
    #6EE7B7, #7DD3FC, #93C5FD, #C4B5FD,
    #F9A8D4, #FCA5A5
  );
  transition: transform 0.15s;
}
.color-trigger:hover { transform: scale(1.15); }

/* Popup — horizontal row of circles, NOT big squares */
.color-popup {
  display: none;
  position: static;
  background: #ffffff;
  border: 0.5px solid #e8eaed;
  border-radius: 10px;
  padding: 8px;
  z-index: 100;
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
  grid-template-columns: repeat(6, 18px);
  gap: 6px;
  align-items: center;
  flex: 0 0 auto;
  margin: 2px 26px 4px 0;
}
.color-popup.open {
  display: grid;
  position: static !important;
  z-index: 100 !important;
  max-width: 100% !important;
  overflow: visible !important;
}

/* Each swatch = small circle, NOT a square */
.swatch {
  width: 18px;
  height: 18px;
  border-radius: 50%;   /* CIRCLE */
  cursor: pointer;
  border: 2px solid transparent;
  flex-shrink: 0;
  transition: transform 0.1s;
}
.swatch:hover { transform: scale(1.25); }
.swatch.selected { border-color: #1f2937; }

/* Pastel colors — light, not saturated */
.sw-none   { background: #f3f4f6; border: 1.5px solid #e5e7eb !important; }
.sw-red    { background: #FCA5A5; }
.sw-rose   { background: #FDA4AF; }
.sw-orange { background: #FDBA74; }
.sw-amber  { background: #FCD34D; }
.sw-yellow { background: #FDE047; }
.sw-lime   { background: #9ee7b9; }
.sw-emerald { background: #86EFAC; }
.sw-teal   { background: #5EEAD4; }
.sw-cyan   { background: #67E8F9; }
.sw-sky    { background: #7DD3FC; }
.sw-blue   { background: #93C5FD; }
.sw-indigo { background: #A5B4FC; }
.sw-violet { background: #DDD6FE; }
.sw-purple { background: #D8B4FE; }
.sw-pink   { background: #F9A8D4; }
.sw-brown  { background: #D6A15F; }
.sw-slate  { background: #94A3B8; }
.sw-gray   { background: #D1D5DB; }

.field-settings-modal .active-cell {
  width: 56px !important;
  flex-shrink: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  gap: 8px !important;
  padding-top: 4px !important;
}

.field-settings-modal .toggle-wrap {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  gap: 2px !important;
  cursor: pointer !important;
}

.field-settings-modal .tog-track {
  width: 28px !important;
  height: 16px !important;
  border-radius: 20px !important;
  background: #e5e7eb !important;
  position: relative !important;
  transition: background 0.15s !important;
}

.field-settings-modal .field-settings-toggle-input:checked + .tog-track {
  background: #3CB86C !important;
}

.field-settings-modal .tog-thumb {
  position: absolute !important;
  top: 2px !important;
  right: 2px !important;
  width: 12px !important;
  height: 12px !important;
  border-radius: 50% !important;
  background: #ffffff !important;
  transition: right 0.15s !important;
}

.field-settings-modal .field-settings-toggle-input:checked + .tog-track .tog-thumb {
  right: 14px !important;
}

.field-settings-modal .tog-lbl {
  font-size: 10px !important;
  color: #9ca3af !important;
}

.field-settings-modal .btn-save {
  background: #3CB86C !important;
  color: #ffffff !important;
  border: none !important;
  border-radius: 8px !important;
  padding: 8px 18px !important;
  font-size: 13px !important;
  font-weight: 500 !important;
  cursor: pointer !important;
}

.field-settings-modal .btn-cancel {
  background: #ffffff !important;
  color: #6b7280 !important;
  border: 0.5px solid #d1d5db !important;
  border-radius: 8px !important;
  padding: 8px 14px !important;
  font-size: 13px !important;
  cursor: pointer !important;
}

@media (max-width: 760px) {
  .modal-panel:has(.field-settings-modal) {
    width: calc(100vw - 18px) !important;
  }

  .field-settings-modal {
    max-height: calc(100vh - 18px) !important;
  }

  .field-settings-modal .modal-body {
    padding: 0 14px !important;
  }

  .field-settings-modal .modal-header,
  .field-settings-modal .modal-footer {
    padding-inline: 14px !important;
  }

  .field-settings-modal .col-headers {
    display: none !important;
  }

  .field-settings-modal .field-row {
    flex-wrap: wrap !important;
  }

  .field-settings-modal .field-name,
  .field-settings-modal .field-perms,
  .field-settings-modal .table-opts,
  .field-settings-modal .color-cell,
  .field-settings-modal .active-cell {
    width: 100% !important;
  }

  .field-settings-modal .active-cell {
    flex-direction: row !important;
    justify-content: flex-start !important;
  }
}

/* REMIT requested color lock: 2026-05-24 */
:root {
  --remit-primary-dark: #0f1e2d;
  --remit-sidebar-hover: #172b40;
  --remit-active-green: #3CB86C;
  --remit-positive: #3CB86C;
  --remit-table-head-bg: #f1f8ed;
  --remit-table-head-text: #3CB86C;
}

body:has(.enterprise-sidebar) .enterprise-sidebar.app-sidebar,
.sidebar,
.enterprise-sidebar.app-sidebar {
  background: #0f1e2d !important;
  background-color: #0f1e2d !important;
}

body:has(.enterprise-sidebar) .enterprise-sidebar-section + .enterprise-sidebar-section {
  border-top-color: rgba(234, 244, 239, 0.12) !important;
}

body:has(.enterprise-sidebar) .enterprise-sidebar .enterprise-sidebar-link.nav-item.menu-item.active,
body:has(.enterprise-sidebar) .enterprise-sidebar .nav-item.active,
body:has(.enterprise-sidebar) .enterprise-sidebar .menu-item.active,
body:has(.enterprise-sidebar) .sidebar a.active {
  background: #3CB86C !important;
  background-color: #3CB86C !important;
  color: #ffffff !important;
}

body:has(.enterprise-sidebar) .enterprise-account-avatar,
body:has(.enterprise-sidebar) .field-settings-modal .btn-save,
body:has(.enterprise-sidebar) .field-settings-modal .field-settings-toggle-input:checked + .tog-track,
body:has(.enterprise-sidebar) button.primary,
body:has(.enterprise-sidebar) .primary,
body:has(.enterprise-sidebar) .btn-primary {
  background: #3CB86C !important;
  background-color: #3CB86C !important;
  border-color: #3CB86C !important;
  color: #ffffff !important;
}

body:has(.enterprise-sidebar) button.primary svg,
body:has(.enterprise-sidebar) .primary svg,
body:has(.enterprise-sidebar) .btn-primary svg {
  color: #ffffff !important;
  stroke: currentColor !important;
}

/* Field settings modal must own the available modal height.
   The generic modal grid clips it after checkbox/color interactions. */
.modal-panel:has(.field-settings-modal) {
  display: flex !important;
  flex-direction: column !important;
  height: min(85vh, calc(100vh - 32px)) !important;
  max-height: min(85vh, calc(100vh - 32px)) !important;
}

.modal-panel:has(.field-settings-modal) > .modal-body {
  display: flex !important;
  flex: 1 1 auto !important;
  min-height: 0 !important;
  overflow: hidden !important;
}

.modal-panel:has(.field-settings-modal) > .modal-body > .modal-content {
  display: flex !important;
  flex: 1 1 auto !important;
  min-height: 0 !important;
  overflow: hidden !important;
}

.modal-panel:has(.field-settings-modal) .field-settings-modal {
  height: 100% !important;
  max-height: none !important;
  min-height: 0 !important;
}

.modal-panel:has(.field-settings-modal) .field-settings-modal > .modal-body {
  flex: 1 1 auto !important;
  min-height: 0 !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
}

/* Stable field settings layout: keep generic modal-body rules out of the
   inner settings surface, especially when color value controls expand. */
.modal-panel:has(.field-settings-modal) .field-settings-modal {
  display: flex !important;
  flex-direction: column !important;
  contain: layout paint !important;
}

.modal-panel:has(.field-settings-modal) .field-settings-modal > .settings-body {
  flex: 1 1 auto !important;
  min-height: 0 !important;
  padding: 0 24px !important;
  overflow: hidden !important;
  display: flex !important;
  flex-direction: column !important;
  background: #ffffff !important;
}

.modal-panel:has(.field-settings-modal) .field-settings-modal .col-headers {
  flex: 0 0 auto !important;
}

.modal-panel:has(.field-settings-modal) .field-settings-modal .field-list {
  flex: 1 1 auto !important;
  min-height: 0 !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
  overscroll-behavior: contain !important;
}

.field-settings-modal .role-tag input,
.field-settings-modal .field-settings-toggle-input {
  width: 1px !important;
  height: 1px !important;
  clip-path: inset(50%) !important;
  white-space: nowrap !important;
}

body:has(.enterprise-sidebar) thead th,
body:has(.enterprise-sidebar) .classic-table-settings .table-settings-matrix th,
body:has(.enterprise-sidebar) .classic-table-settings .table-settings-sticky-head {
  background: #f1f8ed !important;
  background-color: #f1f8ed !important;
  border-bottom-color: #3CB86C !important;
  color: #3CB86C !important;
}

body:has(.enterprise-sidebar) thead th svg,
body:has(.enterprise-sidebar) thead th button,
body:has(.enterprise-sidebar) .column-sort,
body:has(.enterprise-sidebar) .sort-arrow,
body:has(.enterprise-sidebar) .table-sort-arrow,
body:has(.enterprise-sidebar) .pagination button:not(:disabled),
body:has(.enterprise-sidebar) .pager button:not(:disabled) {
  color: #3CB86C !important;
  stroke: currentColor !important;
}

body:has(.enterprise-sidebar) .shell-kpi-icon,
body:has(.enterprise-sidebar) .shell-kpi-card[data-kpi-tone] .shell-kpi-icon,
body:has(.enterprise-sidebar) .management-kpi svg,
body:has(.enterprise-sidebar) .stats article svg {
  color: #3CB86C !important;
  stroke: currentColor !important;
}

body:has(.enterprise-sidebar) .shell-kpi-card em,
body:has(.enterprise-sidebar) .kpi-trend,
body:has(.enterprise-sidebar) .status-badge.success:not(.custom-color),
body:has(.enterprise-sidebar) .status-badge.ok:not(.custom-color),
body:has(.enterprise-sidebar) .badge.ok:not(.custom-color) {
  color: #3CB86C !important;
}

body:has(.enterprise-sidebar) .status-badge.success:not(.custom-color),
body:has(.enterprise-sidebar) .status-badge.ok:not(.custom-color),
body:has(.enterprise-sidebar) .badge.ok:not(.custom-color) {
  background: #f1f8ed !important;
}

/* Absolute palette guard for the records screen. Keep at EOF. */
.primary,
button.primary,
.btn-primary,
.widget-toolbar-add,
.table-toolbar-add-new,
.topbar .actions .primary,
.section-head .primary,
.table-search-row .primary,
.data-grid-panel .table-search-row .primary {
  background: #3CB86C !important;
  background-color: #3CB86C !important;
  border-color: #3CB86C !important;
  color: #ffffff !important;
}

.data-grid th,
.data-grid-panel .data-grid th,
table.data-grid thead th,
.records-like-table thead th,
body:has(.enterprise-sidebar) .data-grid th,
body:has(.enterprise-sidebar) .data-grid-panel .data-grid th {
  background: #f1f8ed !important;
  background-color: #f1f8ed !important;
  border-bottom: 1px solid #3CB86C !important;
  color: #3CB86C !important;
}

.data-grid th::after,
.data-grid th.sortable-column::after,
.data-grid th[data-sort-direction]::after,
.column-resizer,
body:has(.enterprise-sidebar) .data-grid th::after,
body:has(.enterprise-sidebar) .data-grid th.sortable-column::after {
  color: #3CB86C !important;
}

.data-grid th:hover .column-resizer,
.data-grid th .column-resizer:hover {
  background: #3CB86C !important;
}

.shell-kpi-icon,
.shell-kpi-card[data-kpi-tone] .shell-kpi-icon,
body:has(.enterprise-sidebar) .shell-kpi-icon,
body:has(.enterprise-sidebar) .shell-kpi-card[data-kpi-tone] .shell-kpi-icon {
  background: #f1f8ed !important;
  color: #3CB86C !important;
}

.shell-kpi-icon svg,
.shell-kpi-card[data-kpi-tone] .shell-kpi-icon svg,
body:has(.enterprise-sidebar) .shell-kpi-icon svg {
  color: #3CB86C !important;
  stroke: currentColor !important;
}

/* Requested readability refinements: sidebar, logo, choices, toolbar. */
body:has(.enterprise-sidebar) .enterprise-sidebar .remit-logo-brand.logo-area,
.enterprise-sidebar .remit-logo-brand.logo-area,
.remit-logo-brand {
  height: 196px !important;
  max-height: 196px !important;
  flex-basis: 196px !important;
  padding: 24px 8px 18px !important;
}

body:has(.enterprise-sidebar) .remit-logo-brand .remit-header-logo,
.enterprise-sidebar .remit-logo-brand .remit-header-logo,
.remit-header-logo {
  width: 260px !important;
  max-width: 260px !important;
  max-height: 132px !important;
}

body:has(.enterprise-sidebar) .enterprise-sidebar .enterprise-sidebar-link.nav-item.menu-item,
body:has(.enterprise-sidebar) .enterprise-sidebar .nav-item,
body:has(.enterprise-sidebar) .enterprise-sidebar .menu-item {
  min-height: 44px !important;
  padding: 10px 14px !important;
  gap: 12px !important;
  font-size: 17px !important;
  line-height: 24px !important;
}

body:has(.enterprise-sidebar) .enterprise-sidebar .enterprise-sidebar-link.nav-item.menu-item span,
body:has(.enterprise-sidebar) .enterprise-sidebar .nav-item span,
body:has(.enterprise-sidebar) .enterprise-sidebar .menu-item span {
  font-size: 17px !important;
  line-height: 24px !important;
}

body:has(.enterprise-sidebar) .enterprise-sidebar .enterprise-sidebar-link.nav-item.menu-item svg,
body:has(.enterprise-sidebar) .enterprise-sidebar .nav-item svg,
body:has(.enterprise-sidebar) .enterprise-sidebar .menu-item svg {
  width: 23px !important;
  height: 23px !important;
}

body:has(.enterprise-sidebar) .enterprise-sidebar-section-title {
  font-size: 13px !important;
  line-height: 19px !important;
  padding: 14px 14px 6px !important;
}

body:has(.enterprise-sidebar) .table-toolbar-meta,
body:has(.enterprise-sidebar) .table-search-row .table-toolbar-meta,
body:has(.enterprise-sidebar) .widget-table-tools .table-toolbar-meta {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  gap: 12px !important;
  flex-wrap: nowrap !important;
}

body:has(.enterprise-sidebar) .table-toolbar-title {
  flex: 0 0 auto !important;
}

body:has(.enterprise-sidebar) .table-free-search {
  flex: 1 1 280px !important;
  min-width: 220px !important;
}

body:has(.enterprise-sidebar) .table-filter-settings,
body:has(.enterprise-sidebar) .widget-column-btn.table-filter-settings {
  width: 42px !important;
  min-width: 42px !important;
  height: 42px !important;
  min-height: 42px !important;
  padding: 0 !important;
  display: inline-grid !important;
  place-items: center !important;
  border: 1px solid #cbd5e1 !important;
  border-radius: 8px !important;
  background: #ffffff !important;
  color: #3CB86C !important;
}

body:has(.enterprise-sidebar) .table-filter-settings svg,
body:has(.enterprise-sidebar) .widget-column-btn.table-filter-settings svg {
  width: 21px !important;
  height: 21px !important;
  stroke: currentColor !important;
}

body:has(.enterprise-sidebar) .status-badge.custom-color,
body:has(.enterprise-sidebar) .choice-dropdown .status-badge.custom-color,
body:has(.enterprise-sidebar) .call-result-dropdown .status-badge.custom-color,
body:has(.enterprise-sidebar) .managed-select-button .status-badge.custom-color,
body:has(.enterprise-sidebar) .managed-option-value .status-badge.custom-color,
body:has(.enterprise-sidebar) #floating-choice-menu .status-badge.custom-color,
body:has(.enterprise-sidebar) #choice-bubble-dialog .status-badge.custom-color {
  background: color-mix(in srgb, var(--status-color) 34%, white) !important;
  border-color: color-mix(in srgb, var(--status-color) 70%, white) !important;
  color: color-mix(in srgb, var(--status-color) 72%, black) !important;
}

body:has(.enterprise-sidebar) .status-badge:not(.custom-color),
body:has(.enterprise-sidebar) .badge:not(.custom-color),
body:has(.enterprise-sidebar) .inline-choice-current .status-badge,
body:has(.enterprise-sidebar) .table-bubble-current .status-badge {
  background: #e5edf7 !important;
  border: 1px solid #c6d4e6 !important;
  color: #334155 !important;
}

body:has(.enterprise-sidebar) .status-badge.success:not(.custom-color),
body:has(.enterprise-sidebar) .status-badge.ok:not(.custom-color),
body:has(.enterprise-sidebar) .badge.ok:not(.custom-color) {
  background: #eef7e9 !important;
  border-color: #3CB86C !important;
  color: #3CB86C !important;
}

body:has(.enterprise-sidebar) .status-badge.warning:not(.custom-color) {
  background: #f8dfb8 !important;
  border-color: #e7b768 !important;
  color: #6f3f05 !important;
}

body:has(.enterprise-sidebar) .managed-select-button,
body:has(.enterprise-sidebar) .table-bubble-current,
body:has(.enterprise-sidebar) .inline-choice-current {
  background: #f1f5f9 !important;
  border: 1px solid #cbd5e1 !important;
  color: #334155 !important;
}

@media (max-width: 1180px) {
  body:has(.enterprise-sidebar) .table-toolbar-meta,
  body:has(.enterprise-sidebar) .table-search-row .table-toolbar-meta,
  body:has(.enterprise-sidebar) .widget-table-tools .table-toolbar-meta {
    flex-wrap: wrap !important;
  }
}

/* Final requested tightening: honor configured choice colors, one-line tools, bigger tighter logo. */
body:has(.enterprise-sidebar) .enterprise-sidebar .remit-logo-brand.logo-area,
.enterprise-sidebar .remit-logo-brand.logo-area,
.remit-logo-brand {
  height: 170px !important;
  max-height: 170px !important;
  flex: 0 0 170px !important;
  flex-basis: 170px !important;
  padding: 10px 6px 0 !important;
}

body:has(.enterprise-sidebar) .remit-logo-brand .remit-header-logo,
.enterprise-sidebar .remit-logo-brand .remit-header-logo,
.remit-header-logo {
  width: 306px !important;
  max-width: 306px !important;
  max-height: 148px !important;
}

body:has(.enterprise-sidebar) .enterprise-sidebar-nav {
  padding-top: 0 !important;
}

body:has(.enterprise-sidebar) .enterprise-sidebar-section:first-child .enterprise-sidebar-section-title {
  padding-top: 2px !important;
}

body:has(.enterprise-sidebar) .table-search-row,
body:has(.enterprise-sidebar) .data-grid-panel .table-search-row {
  overflow-x: auto !important;
  overflow-y: visible !important;
}

body:has(.enterprise-sidebar) .table-toolbar-meta,
body:has(.enterprise-sidebar) .table-search-row .table-toolbar-meta,
body:has(.enterprise-sidebar) .widget-table-tools .table-toolbar-meta,
.table-toolbar-meta {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: flex-start !important;
  flex-wrap: nowrap !important;
  gap: 8px !important;
  min-width: max-content !important;
}

body:has(.enterprise-sidebar) .table-toolbar-meta .table-result-count,
.table-toolbar-meta .table-result-count {
  margin-inline-start: 0 !important;
  margin-inline-end: 0 !important;
  flex: 0 0 auto !important;
}

body:has(.enterprise-sidebar) .table-toolbar-title,
body:has(.enterprise-sidebar) .table-toolbar-meta button,
body:has(.enterprise-sidebar) .table-toolbar-meta .primary,
body:has(.enterprise-sidebar) .table-toolbar-meta .ghost {
  flex: 0 0 auto !important;
  white-space: nowrap !important;
}

body:has(.enterprise-sidebar) .table-toolbar-meta button,
body:has(.enterprise-sidebar) .table-toolbar-meta .primary,
body:has(.enterprise-sidebar) .table-toolbar-meta .ghost {
  min-height: 40px !important;
  padding: 7px 12px !important;
}

body:has(.enterprise-sidebar) .table-toolbar-meta .icon-btn,
body:has(.enterprise-sidebar) .table-toolbar-meta .table-filter-settings {
  width: 40px !important;
  min-width: 40px !important;
  padding: 0 !important;
}

body:has(.enterprise-sidebar) .table-free-search,
.table-free-search {
  flex: 1 1 300px !important;
  width: 300px !important;
  min-width: 180px !important;
}

body:has(.enterprise-sidebar) .status-badge.custom-color,
body:has(.enterprise-sidebar) .inline-choice-current .status-badge.custom-color,
body:has(.enterprise-sidebar) .table-bubble-current .status-badge.custom-color,
body:has(.enterprise-sidebar) .managed-select-button .status-badge.custom-color,
body:has(.enterprise-sidebar) .managed-option-value .status-badge.custom-color,
body:has(.enterprise-sidebar) .choice-dropdown .status-badge.custom-color,
body:has(.enterprise-sidebar) .call-result-dropdown .status-badge.custom-color,
body:has(.enterprise-sidebar) #floating-choice-menu .status-badge.custom-color,
body:has(.enterprise-sidebar) #choice-bubble-dialog .status-badge.custom-color {
  background: color-mix(in srgb, var(--status-color) 34%, white) !important;
  border-color: color-mix(in srgb, var(--status-color) 72%, white) !important;
  color: color-mix(in srgb, var(--status-color) 76%, black) !important;
}

body:has(.enterprise-sidebar) .inline-choice-current .status-badge:not(.custom-color),
body:has(.enterprise-sidebar) .table-bubble-current .status-badge:not(.custom-color),
body:has(.enterprise-sidebar) .managed-select-button .status-badge:not(.custom-color) {
  background: #e5edf7 !important;
  border: 1px solid #c6d4e6 !important;
  color: #334155 !important;
}

@media (max-width: 1180px) {
  body:has(.enterprise-sidebar) .table-toolbar-meta,
  body:has(.enterprise-sidebar) .table-search-row .table-toolbar-meta,
  body:has(.enterprise-sidebar) .widget-table-tools .table-toolbar-meta {
    flex-wrap: nowrap !important;
  }
}

/* Final choice-field palette: pastel badges like the requested reference. */
.status-badge,
.badge,
.inline-choice-current .status-badge,
.table-bubble-current .status-badge,
.managed-select-button .status-badge,
.managed-option-value .status-badge,
.choice-dropdown .status-badge,
.call-result-dropdown .status-badge,
#floating-choice-menu .status-badge,
#choice-bubble-dialog .status-badge {
  border: 1px solid transparent !important;
  box-shadow: none !important;
}

.status-badge.success,
.badge.ok,
body:has(.enterprise-sidebar) .status-badge.success,
body:has(.enterprise-sidebar) .badge.ok,
body:has(.enterprise-sidebar) .inline-choice-current .status-badge.success,
body:has(.enterprise-sidebar) .table-bubble-current .status-badge.success,
body:has(.enterprise-sidebar) .managed-select-button .status-badge.success {
  background: #dff7e9 !important;
  border-color: #b7e8cb !important;
  color: #177245 !important;
}

.status-badge.danger,
.badge.danger,
body:has(.enterprise-sidebar) .status-badge.danger,
body:has(.enterprise-sidebar) .badge.danger,
body:has(.enterprise-sidebar) .inline-choice-current .status-badge.danger,
body:has(.enterprise-sidebar) .table-bubble-current .status-badge.danger,
body:has(.enterprise-sidebar) .managed-select-button .status-badge.danger {
  background: #ffe3df !important;
  border-color: #ffc3bb !important;
  color: #b42318 !important;
}

.status-badge.warning,
body:has(.enterprise-sidebar) .status-badge.warning,
body:has(.enterprise-sidebar) .inline-choice-current .status-badge.warning,
body:has(.enterprise-sidebar) .table-bubble-current .status-badge.warning,
body:has(.enterprise-sidebar) .managed-select-button .status-badge.warning {
  background: #fff0d1 !important;
  border-color: #ffd999 !important;
  color: #9a5b00 !important;
}

.status-badge.info,
body:has(.enterprise-sidebar) .status-badge.info,
body:has(.enterprise-sidebar) .inline-choice-current .status-badge.info,
body:has(.enterprise-sidebar) .table-bubble-current .status-badge.info,
body:has(.enterprise-sidebar) .managed-select-button .status-badge.info {
  background: #dceeff !important;
  border-color: #b9d8ff !important;
  color: #175cd3 !important;
}

.status-badge.purple,
body:has(.enterprise-sidebar) .status-badge.purple,
body:has(.enterprise-sidebar) .inline-choice-current .status-badge.purple,
body:has(.enterprise-sidebar) .table-bubble-current .status-badge.purple,
body:has(.enterprise-sidebar) .managed-select-button .status-badge.purple {
  background: #eee7ff !important;
  border-color: #d8ccff !important;
  color: #6941c6 !important;
}

.status-badge.neutral,
body:has(.enterprise-sidebar) .status-badge.neutral,
body:has(.enterprise-sidebar) .inline-choice-current .status-badge.neutral,
body:has(.enterprise-sidebar) .table-bubble-current .status-badge.neutral,
body:has(.enterprise-sidebar) .managed-select-button .status-badge.neutral {
  background: #e9eef5 !important;
  border-color: #d0d8e5 !important;
  color: #475467 !important;
}

.status-badge.red,
body:has(.enterprise-sidebar) .status-badge.red {
  background: #ffe4e6 !important;
  border-color: #fecdd3 !important;
  color: #be123c !important;
}

.status-badge.orange,
body:has(.enterprise-sidebar) .status-badge.orange {
  background: #ffedd5 !important;
  border-color: #fed7aa !important;
  color: #c2410c !important;
}

.status-badge.amber,
.status-badge.yellow,
body:has(.enterprise-sidebar) .status-badge.amber,
body:has(.enterprise-sidebar) .status-badge.yellow {
  background: #fef3c7 !important;
  border-color: #fde68a !important;
  color: #92400e !important;
}

.status-badge.lime,
body:has(.enterprise-sidebar) .status-badge.lime {
  background: #ecfccb !important;
  border-color: #d9f99d !important;
  color: #4d7c0f !important;
}

.status-badge.emerald,
body:has(.enterprise-sidebar) .status-badge.emerald {
  background: #d1fae5 !important;
  border-color: #a7f3d0 !important;
  color: #047857 !important;
}

.status-badge.teal,
body:has(.enterprise-sidebar) .status-badge.teal {
  background: #ccfbf1 !important;
  border-color: #99f6e4 !important;
  color: #2A8C52 !important;
}

.status-badge.cyan,
body:has(.enterprise-sidebar) .status-badge.cyan {
  background: #cffafe !important;
  border-color: #a5f3fc !important;
  color: #0e7490 !important;
}

.status-badge.sky,
body:has(.enterprise-sidebar) .status-badge.sky {
  background: #e0f2fe !important;
  border-color: #bae6fd !important;
  color: #0369a1 !important;
}

.status-badge.blue,
body:has(.enterprise-sidebar) .status-badge.blue {
  background: #dbeafe !important;
  border-color: #bfdbfe !important;
  color: #1d4ed8 !important;
}

.status-badge.indigo,
body:has(.enterprise-sidebar) .status-badge.indigo {
  background: #e0e7ff !important;
  border-color: #c7d2fe !important;
  color: #4338ca !important;
}

.status-badge.violet,
body:has(.enterprise-sidebar) .status-badge.violet {
  background: #ede9fe !important;
  border-color: #ddd6fe !important;
  color: #6d28d9 !important;
}

.status-badge.pink,
body:has(.enterprise-sidebar) .status-badge.pink {
  background: #fce7f3 !important;
  border-color: #fbcfe8 !important;
  color: #be185d !important;
}

.status-badge.rose,
body:has(.enterprise-sidebar) .status-badge.rose {
  background: #ffe4e6 !important;
  border-color: #fecdd3 !important;
  color: #be123c !important;
}

.status-badge.brown,
body:has(.enterprise-sidebar) .status-badge.brown {
  background: #f1e6d8 !important;
  border-color: #dfc5aa !important;
  color: #7c2d12 !important;
}

.status-badge.slate,
body:has(.enterprise-sidebar) .status-badge.slate {
  background: #e2e8f0 !important;
  border-color: #cbd5e1 !important;
  color: #334155 !important;
}

body:has(.enterprise-sidebar) .status-badge.custom-color,
body:has(.enterprise-sidebar) .inline-choice-current .status-badge.custom-color,
body:has(.enterprise-sidebar) .table-bubble-current .status-badge.custom-color,
body:has(.enterprise-sidebar) .managed-select-button .status-badge.custom-color,
body:has(.enterprise-sidebar) .managed-option-value .status-badge.custom-color,
body:has(.enterprise-sidebar) .choice-dropdown .status-badge.custom-color,
body:has(.enterprise-sidebar) .call-result-dropdown .status-badge.custom-color {
  background: color-mix(in srgb, var(--status-color) 22%, white) !important;
  border-color: color-mix(in srgb, var(--status-color) 46%, white) !important;
  color: color-mix(in srgb, var(--status-color) 78%, black) !important;
}

/* 2026 records redesign: top navigation shell and enterprise tables. */
body:has(.enterprise-top-shell) {
  background: #f7f9fb !important;
}

body:has(.enterprise-top-shell) .main {
  margin: 0 !important;
  padding: 0 56px 28px !important;
  background: #f7f9fb !important;
}

.enterprise-top-shell {
  position: sticky !important;
  top: 0 !important;
  z-index: 3400 !important;
  direction: rtl !important;
  box-shadow: none !important;
}

.enterprise-top-row {
  height: 58px !important;
  padding: 0 28px !important;
  display: flex !important;
  align-items: center !important;
  gap: 28px !important;
  background: #1a3a4a !important;
  color: #ffffff !important;
}

.enterprise-top-brand {
  border: 0 !important;
  background: transparent !important;
  color: #ffffff !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 12px !important;
  padding: 0 !important;
  min-height: 0 !important;
  box-shadow: none !important;
}

.enterprise-top-brand-mark {
  width: 32px !important;
  height: 32px !important;
  display: grid !important;
  place-items: center !important;
  border-radius: 10px !important;
  background: #3CB86C !important;
  color: #ffffff !important;
  font-size: 18px !important;
  font-weight: 700 !important;
}

.enterprise-top-brand-copy {
  display: grid !important;
  gap: 1px !important;
  text-align: right !important;
}

.enterprise-top-brand-copy strong {
  color: #ffffff !important;
  font-size: 16px !important;
  line-height: 18px !important;
  letter-spacing: 1.5px !important;
}

.enterprise-top-brand-copy small {
  color: #5fa88a !important;
  font-size: 9px !important;
  line-height: 11px !important;
}

.enterprise-top-main-nav {
  flex: 1 1 auto !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 10px !important;
}

.enterprise-top-main-nav button {
  height: 38px !important;
  min-height: 38px !important;
  padding: 0 18px !important;
  border: 0 !important;
  border-radius: 10px !important;
  background: transparent !important;
  color: #7aacbf !important;
  font-size: 14px !important;
  font-weight: 500 !important;
  box-shadow: none !important;
}

.enterprise-top-main-nav button.active {
  background: rgba(61, 186, 111, 0.18) !important;
  color: #ffffff !important;
}

.enterprise-top-user {
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
}

.enterprise-top-icon {
  position: relative !important;
  width: 34px !important;
  height: 34px !important;
  min-width: 34px !important;
  min-height: 34px !important;
  display: grid !important;
  place-items: center !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 999px !important;
  background: transparent !important;
  color: #9cc4d2 !important;
}

.enterprise-top-icon svg {
  width: 19px !important;
  height: 19px !important;
}

.enterprise-bell-btn span {
  position: absolute !important;
  top: 6px !important;
  left: 8px !important;
  width: 8px !important;
  height: 8px !important;
  border-radius: 999px !important;
  background: #e24b4a !important;
}

.enterprise-top-avatar {
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  border: 0 !important;
  background: transparent !important;
  color: #cfe2e8 !important;
  padding: 0 !important;
}

.enterprise-top-avatar span {
  width: 34px !important;
  height: 34px !important;
  display: grid !important;
  place-items: center !important;
  border-radius: 999px !important;
  background: rgba(255, 255, 255, 0.12) !important;
  color: #ffffff !important;
}

.enterprise-top-avatar strong {
  color: #cfe2e8 !important;
  font-size: 13px !important;
  font-weight: 500 !important;
}

.enterprise-sub-row {
  height: 42px !important;
  display: flex !important;
  align-items: stretch !important;
  justify-content: flex-start !important;
  padding: 0 56px !important;
  background: #ffffff !important;
  border-bottom: 1px solid #d9dee2 !important;
}

.enterprise-sub-tabs {
  display: flex !important;
  align-items: stretch !important;
  gap: 4px !important;
}

.enterprise-sub-tabs button {
  min-width: 106px !important;
  min-height: 42px !important;
  height: 42px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 10px !important;
  padding: 0 16px !important;
  border: 0 !important;
  border-radius: 0 !important;
  border-bottom: 2px solid transparent !important;
  background: transparent !important;
  color: #7a858a !important;
  box-shadow: none !important;
}

.enterprise-sub-tabs button.active {
  background: #f5fdf8 !important;
  color: #1a6640 !important;
  border-bottom-color: #3CB86C !important;
}

.enterprise-sub-tabs button b {
  min-width: 28px !important;
  height: 22px !important;
  display: inline-grid !important;
  place-items: center !important;
  border-radius: 999px !important;
  background: #e8f5ee !important;
  color: #3CB86C !important;
  font-size: 12px !important;
  font-weight: 600 !important;
}

.enterprise-sub-tabs button.active b {
  background: #3CB86C !important;
  color: #ffffff !important;
}

.records-page-head {
  padding: 22px 0 8px !important;
}

.records-breadcrumb {
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  margin-bottom: 10px !important;
  color: #54616a !important;
  font-size: 13px !important;
}

.records-breadcrumb b {
  color: #3CB86C !important;
  font-weight: 500 !important;
}

.records-title-row {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 18px !important;
}

.records-title-row h1 {
  margin: 0 !important;
  color: #111827 !important;
  font-size: 22px !important;
  line-height: 28px !important;
  font-weight: 500 !important;
}

.records-title-row p {
  margin: 4px 0 0 !important;
  color: #525b63 !important;
  font-size: 14px !important;
}

.records-head-actions {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
}

.records-head-actions button,
body:has(.enterprise-top-shell) .table-toolbar-meta button {
  border-radius: 8px !important;
}

.records-head-actions .primary {
  background: #3CB86C !important;
  border-color: #3CB86C !important;
  color: #ffffff !important;
}

body:has(.enterprise-top-shell) .shell-kpi-grid {
  margin: 18px 0 32px !important;
}

body:has(.enterprise-top-shell) .shell-kpi-card {
  min-height: 118px !important;
  border-radius: 8px !important;
  background: #f4f3ee !important;
  border-color: #edeae3 !important;
}

.shell-kpi-sparkline {
  height: 40px !important;
  display: inline-flex !important;
  align-items: end !important;
  gap: 6px !important;
  margin-top: 8px !important;
}

.shell-kpi-sparkline b {
  width: 9px !important;
  height: calc(var(--bar) * 4px) !important;
  border-radius: 999px !important;
  background: rgba(61, 186, 111, var(--alpha)) !important;
}

body:has(.enterprise-top-shell) .panel,
body:has(.enterprise-top-shell) .data-grid-panel {
  border-radius: 8px !important;
  background: #ffffff !important;
  border: 1px solid #dfe4e8 !important;
  box-shadow: none !important;
  overflow: hidden !important;
}

body:has(.enterprise-top-shell) .table-search-row,
body:has(.enterprise-top-shell) .data-grid-panel .table-search-row {
  min-height: 64px !important;
  padding: 12px 18px !important;
  background: #ffffff !important;
  border-bottom: 1px solid #dfe4e8 !important;
}

body:has(.enterprise-top-shell) .table-toolbar-meta {
  width: 100% !important;
  min-width: 0 !important;
  display: flex !important;
  align-items: center !important;
  gap: 14px !important;
}

body:has(.enterprise-top-shell) .table-free-search {
  margin-inline-start: auto !important;
  min-width: 220px !important;
  width: 320px !important;
}

body:has(.enterprise-top-shell) .data-grid th,
body:has(.enterprise-top-shell) table > thead > tr > th {
  height: 44px !important;
  padding: 10px 16px !important;
  background: #f0f9f4 !important;
  color: #1a6640 !important;
  border-bottom: 2px solid #3CB86C !important;
  font-size: 13px !important;
  font-weight: 500 !important;
}

body:has(.enterprise-top-shell) .data-grid th.sortable-column::after,
body:has(.enterprise-top-shell) table > thead > tr > th.sortable-column::after {
  content: "⇅" !important;
  color: #9aa3aa !important;
  font-size: 11px !important;
  margin-inline-start: 7px !important;
}

body:has(.enterprise-top-shell) .data-grid td,
body:has(.enterprise-top-shell) table tbody td {
  padding: 14px 16px !important;
  min-height: 54px !important;
  border-bottom: 1px solid #e4e7ea !important;
  color: #1f2933 !important;
  font-size: 14px !important;
}

body:has(.enterprise-top-shell) .data-grid tbody tr:nth-child(even) td {
  background: #f8fafb !important;
}

body:has(.enterprise-top-shell) input[type="checkbox"] {
  width: 18px !important;
  height: 18px !important;
  accent-color: #3CB86C !important;
}

.record-date-time {
  display: grid !important;
  gap: 2px !important;
  line-height: 1.1 !important;
}

.record-date-time strong {
  font-weight: 500 !important;
  color: #1f2933 !important;
}

.record-date-time small,
.empty-cell {
  color: rgba(31, 41, 51, 0.35) !important;
}

.performer-cell {
  display: inline-flex !important;
  align-items: center !important;
  gap: 7px !important;
}

.performer-avatar {
  width: 20px !important;
  height: 20px !important;
  border-radius: 999px !important;
  display: grid !important;
  place-items: center !important;
  background: #dff7e9 !important;
  color: #1a6640 !important;
  font-size: 9px !important;
  font-weight: 600 !important;
}

.row-menu-btn {
  color: #8b949b !important;
  font-size: 18px !important;
  letter-spacing: 2px !important;
}

body:has(.enterprise-top-shell) .remit-table-footer {
  min-height: 74px !important;
  padding: 14px 56px !important;
  display: flex !important;
  flex-direction: row-reverse !important;
  align-items: center !important;
  justify-content: space-between !important;
  border-top: 2px solid #e4e7ea !important;
  background: #ffffff !important;
}

body:has(.enterprise-top-shell) .remit-table-footer .table-result-count {
  color: #3b444b !important;
  font-size: 14px !important;
  white-space: normal !important;
}

body:has(.enterprise-top-shell) .remit-page-buttons {
  display: flex !important;
  gap: 8px !important;
}

body:has(.enterprise-top-shell) .remit-page-buttons button {
  width: 42px !important;
  height: 42px !important;
  border-radius: 8px !important;
  border: 1px solid #cfd5da !important;
  background: #ffffff !important;
  color: #111827 !important;
}

body:has(.enterprise-top-shell) .remit-page-buttons button.current {
  background: #3CB86C !important;
  border-color: #3CB86C !important;
  color: #ffffff !important;
}

/* REMIT records-table visual system */
body:has(.enterprise-top-shell) {
  --remit-green: #3CB86C;
  --remit-deep: #1a3a4a;
  --remit-green-dark: #1a6640;
  --remit-nav-muted: #7aacbf;
}

.enterprise-top-shell {
  position: sticky !important;
  top: 0 !important;
  z-index: 80 !important;
  width: 100% !important;
  background: transparent !important;
  box-shadow: none !important;
}

.enterprise-top-row {
  height: 58px !important;
  min-height: 58px !important;
  padding: 0 28px !important;
  display: flex !important;
  align-items: center !important;
  gap: 30px !important;
  background: var(--remit-deep) !important;
  color: #ffffff !important;
}

.enterprise-top-brand {
  min-width: 176px !important;
  height: 58px !important;
  margin: 0 !important;
  padding: 0 !important;
  display: inline-flex !important;
  flex-direction: row-reverse !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 12px !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

.enterprise-top-brand-mark {
  width: 32px !important;
  height: 32px !important;
  min-width: 32px !important;
  display: grid !important;
  place-items: center !important;
  border-radius: 10px !important;
  background: var(--remit-green) !important;
  color: #ffffff !important;
  font-size: 16px !important;
  font-weight: 700 !important;
  line-height: 1 !important;
}

.enterprise-top-brand-copy strong {
  display: block !important;
  color: #ffffff !important;
  font-size: 16px !important;
  font-weight: 600 !important;
  letter-spacing: 1.5px !important;
  line-height: 1.1 !important;
}

.enterprise-top-brand-copy small {
  display: block !important;
  margin-top: 3px !important;
  color: #5fa88a !important;
  font-size: 9px !important;
  font-weight: 500 !important;
  line-height: 1.1 !important;
}

.enterprise-top-main-nav {
  flex: 1 1 auto !important;
  min-width: 0 !important;
  height: 58px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 22px !important;
}

.enterprise-top-main-nav button {
  min-height: 34px !important;
  padding: 0 16px !important;
  border: 0 !important;
  border-radius: 12px !important;
  background: transparent !important;
  color: var(--remit-nav-muted) !important;
  box-shadow: none !important;
  font-size: 15px !important;
  font-weight: 600 !important;
}

.enterprise-top-main-nav button.active {
  background: rgba(61, 186, 111, 0.18) !important;
  color: #ffffff !important;
}

.enterprise-top-user {
  min-width: 212px !important;
  height: 58px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: flex-end !important;
  gap: 14px !important;
}

.enterprise-top-icon {
  width: 32px !important;
  height: 32px !important;
  padding: 0 !important;
  display: grid !important;
  place-items: center !important;
  border: 0 !important;
  border-radius: 50% !important;
  background: transparent !important;
  color: var(--remit-nav-muted) !important;
  box-shadow: none !important;
}

.enterprise-top-icon svg {
  width: 20px !important;
  height: 20px !important;
}

.enterprise-bell-btn {
  position: relative !important;
}

.enterprise-bell-btn span {
  position: absolute !important;
  top: 5px !important;
  right: 6px !important;
  width: 8px !important;
  height: 8px !important;
  border-radius: 50% !important;
  background: #e24b4a !important;
}

.enterprise-top-avatar {
  height: 36px !important;
  padding: 0 !important;
  display: inline-flex !important;
  flex-direction: row-reverse !important;
  align-items: center !important;
  gap: 9px !important;
  border: 0 !important;
  border-radius: 999px !important;
  background: transparent !important;
  box-shadow: none !important;
}

.enterprise-top-avatar span {
  width: 32px !important;
  height: 32px !important;
  display: grid !important;
  place-items: center !important;
  border-radius: 50% !important;
  background: rgba(122, 172, 191, 0.22) !important;
  color: #ffffff !important;
  font-size: 12px !important;
  font-weight: 700 !important;
}

.enterprise-top-avatar strong {
  max-width: 100px !important;
  color: #cfe2e8 !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

.enterprise-sub-row {
  height: 42px !important;
  min-height: 42px !important;
  padding: 0 28px !important;
  background: #ffffff !important;
  border-bottom: 1px solid #d9dee2 !important;
}

.enterprise-sub-tabs button {
  height: 42px !important;
  min-height: 42px !important;
  border-bottom: 2px solid transparent !important;
  color: #7a858a !important;
}

.enterprise-sub-tabs button.active {
  background: #f5fdf8 !important;
  border-bottom-color: var(--remit-green) !important;
  color: var(--remit-green-dark) !important;
}

.enterprise-sub-tabs button b {
  background: #e8f5ee !important;
  color: var(--remit-green) !important;
}

.enterprise-sub-tabs button.active b {
  background: var(--remit-green) !important;
  color: #ffffff !important;
}

.records-screen-panel {
  margin-top: 0 !important;
}

.records-page-head {
  padding: 18px 0 8px !important;
}

.records-breadcrumb b {
  color: var(--remit-green) !important;
}

.records-head-actions .primary,
body:has(.enterprise-top-shell) button.primary {
  background: var(--remit-green) !important;
  border-color: var(--remit-green) !important;
  color: #ffffff !important;
}

body:has(.enterprise-top-shell) .shell-kpi-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 24px !important;
  margin: 18px 0 32px !important;
}

body:has(.enterprise-top-shell) .shell-kpi-card {
  min-height: 150px !important;
  padding: 26px 30px 20px !important;
  border: 0 !important;
  border-radius: 8px !important;
  background: #f4f3ee !important;
  box-shadow: none !important;
}

body:has(.enterprise-top-shell) .shell-kpi-card .shell-kpi-icon {
  display: none !important;
}

body:has(.enterprise-top-shell) .shell-kpi-card span:not(.shell-kpi-icon) {
  color: #404548 !important;
  font-size: 15px !important;
  font-weight: 500 !important;
}

body:has(.enterprise-top-shell) .shell-kpi-card strong {
  margin-top: 0 !important;
  color: #111111 !important;
  font-size: 32px !important;
  font-weight: 400 !important;
}

body:has(.enterprise-top-shell) .shell-kpi-card em {
  color: var(--remit-green) !important;
  font-size: 14px !important;
  font-style: normal !important;
}

.shell-kpi-sparkline {
  margin-top: 10px !important;
}

body:has(.enterprise-top-shell) .table-toolbar-meta {
  flex-direction: row !important;
}

body:has(.enterprise-top-shell) .table-free-search {
  order: 20 !important;
  margin-inline-start: auto !important;
  min-width: 220px !important;
}

body:has(.enterprise-top-shell) table > thead > tr > th {
  background: #f0f9f4 !important;
  color: var(--remit-green-dark) !important;
  border-bottom: 2px solid var(--remit-green) !important;
  padding: 12px 16px !important;
  font-weight: 500 !important;
}

body:has(.enterprise-top-shell) table > thead > tr > th.sortable-column::after {
  content: "↕" !important;
  display: inline-block !important;
  margin-inline-start: 7px !important;
  color: #9aa3aa !important;
  font-size: 11px !important;
  line-height: 1 !important;
}

body:has(.enterprise-top-shell) table tbody td {
  padding: 14px 16px !important;
}

.empty-cell {
  color: rgba(31, 41, 51, 0.35) !important;
}

.record-date-time {
  display: inline-grid !important;
  gap: 2px !important;
}

.performer-cell {
  display: inline-flex !important;
  align-items: center !important;
  gap: 7px !important;
}

.performer-avatar {
  width: 20px !important;
  height: 20px !important;
  min-width: 20px !important;
  border-radius: 50% !important;
  display: inline-grid !important;
  place-items: center !important;
  background: #dff7e9 !important;
  color: var(--remit-green-dark) !important;
  font-size: 9px !important;
  font-weight: 700 !important;
}

.row-menu-btn {
  color: #8b949b !important;
}

.remit-table-footer {
  min-height: 74px !important;
  padding: 14px 28px !important;
}

.remit-page-buttons button:disabled {
  opacity: 0.45 !important;
}

@media (max-width: 900px) {
  .enterprise-top-row,
  .enterprise-sub-row {
    padding-inline: 14px !important;
  }

  .enterprise-top-main-nav,
  .enterprise-sub-tabs {
    overflow-x: auto !important;
    justify-content: flex-start !important;
  }

  body:has(.enterprise-top-shell) .shell-kpi-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 640px) {
  .enterprise-top-row {
    gap: 12px !important;
  }

  .enterprise-top-user {
    min-width: auto !important;
  }

  .enterprise-top-avatar strong,
  .enterprise-top-icon {
    display: none !important;
  }

  body:has(.enterprise-top-shell) .shell-kpi-grid {
    grid-template-columns: 1fr !important;
  }

  .records-title-row,
  .remit-table-footer,
  body:has(.enterprise-top-shell) .table-toolbar-meta {
    align-items: stretch !important;
    flex-direction: column !important;
  }

body:has(.enterprise-top-shell) .table-free-search {
    width: 100% !important;
  }
}

body header.enterprise-top-shell .enterprise-sub-row .enterprise-sub-tabs > button.active {
  background: #f5fdf8 !important;
  background-color: #f5fdf8 !important;
  color: #1a6640 !important;
  border-bottom: 2px solid #3CB86C !important;
}

body header.enterprise-top-shell .enterprise-sub-row .enterprise-sub-tabs > button.active b {
  background: #3CB86C !important;
  color: #ffffff !important;
}

body:has(.enterprise-top-shell) table > thead > tr > th.sortable-column::after,
body:has(.enterprise-top-shell) .data-grid th.sortable-column::after {
  content: "\2195" !important;
  color: #9aa3aa !important;
}

html body header.enterprise-top-shell .enterprise-sub-row nav.enterprise-sub-tabs > button.active:not(.ghost):not(.icon-btn):not(.table-link):not(.calendar-day):not(.managed-select-button):not(.table-bubble-current) {
  background: #f5fdf8 !important;
  background-color: #f5fdf8 !important;
  color: #1a6640 !important;
  border-bottom-color: #3CB86C !important;
}

/* Strict records reference lock: keep this block last. */
html body:has(.enterprise-top-shell) {
  --remit-topbar: #1a3a4a;
  --remit-green: #3CB86C;
  --remit-table-head: #f0f9f4;
  --remit-table-head-text: #1a6640;
  --remit-active-tab: #f5fdf8;
}

html body header.enterprise-top-shell,
html body header.enterprise-top-shell * {
  box-shadow: none !important;
}

html body header.enterprise-top-shell .enterprise-top-row {
  height: 58px !important;
  min-height: 58px !important;
  padding: 0 28px !important;
  background: #1a3a4a !important;
  background-color: #1a3a4a !important;
  border: 0 !important;
}

html body header.enterprise-top-shell .enterprise-top-brand,
html body header.enterprise-top-shell .enterprise-top-brand:not(.ghost):not(.icon-btn):not(.table-link):not(.calendar-day):not(.managed-select-button):not(.table-bubble-current) {
  width: 248px !important;
  min-width: 248px !important;
  height: 58px !important;
  padding: 0 !important;
  display: inline-flex !important;
  flex-direction: row-reverse !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 12px !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  background-color: transparent !important;
}

html body header.enterprise-top-shell .enterprise-top-logo-mark {
  width: 38px !important;
  height: 38px !important;
  min-width: 38px !important;
  display: block !important;
  object-fit: contain !important;
}

html body header.enterprise-top-shell .enterprise-top-brand-copy {
  display: grid !important;
  gap: 3px !important;
  text-align: right !important;
}

html body header.enterprise-top-shell .enterprise-top-brand-copy strong {
  color: #f5fdf8 !important;
  font-size: 22px !important;
  font-weight: 600 !important;
  letter-spacing: 1.5px !important;
  line-height: 1 !important;
}

html body header.enterprise-top-shell .enterprise-top-brand-copy small {
  color: #3CB86C !important;
  font-size: 10px !important;
  font-weight: 500 !important;
  line-height: 1.1 !important;
}

html body header.enterprise-top-shell .enterprise-top-main-nav > button,
html body header.enterprise-top-shell .enterprise-top-main-nav > button:not(.ghost):not(.icon-btn):not(.table-link):not(.calendar-day):not(.managed-select-button):not(.table-bubble-current) {
  height: 58px !important;
  min-height: 58px !important;
  padding: 0 18px !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  background-color: transparent !important;
  color: #f5fdf8 !important;
  opacity: 0.7 !important;
}

html body header.enterprise-top-shell .enterprise-top-main-nav > button.active,
html body header.enterprise-top-shell .enterprise-top-main-nav > button.active:not(.ghost):not(.icon-btn):not(.table-link):not(.calendar-day):not(.managed-select-button):not(.table-bubble-current) {
  height: 38px !important;
  min-height: 38px !important;
  border-radius: 10px !important;
  background: #3CB86C !important;
  background-color: #3CB86C !important;
  color: #f5fdf8 !important;
  opacity: 1 !important;
}

html body header.enterprise-top-shell .enterprise-top-icon,
html body header.enterprise-top-shell .enterprise-top-icon:not(.ghost):not(.icon-btn):not(.table-link):not(.calendar-day):not(.managed-select-button):not(.table-bubble-current),
html body header.enterprise-top-shell .enterprise-top-avatar,
html body header.enterprise-top-shell .enterprise-top-avatar:not(.ghost):not(.icon-btn):not(.table-link):not(.calendar-day):not(.managed-select-button):not(.table-bubble-current) {
  border: 0 !important;
  background: transparent !important;
  background-color: transparent !important;
  color: #f5fdf8 !important;
}

html body header.enterprise-top-shell .enterprise-sub-row {
  height: 42px !important;
  min-height: 42px !important;
  padding: 0 28px !important;
  background: #f5fdf8 !important;
  background-color: #f5fdf8 !important;
  border-top: 0 !important;
  border-bottom: 1px solid #f0f9f4 !important;
}

html body header.enterprise-top-shell .enterprise-sub-row nav.enterprise-sub-tabs > button,
html body header.enterprise-top-shell .enterprise-sub-row nav.enterprise-sub-tabs > button:not(.ghost):not(.icon-btn):not(.table-link):not(.calendar-day):not(.managed-select-button):not(.table-bubble-current) {
  height: 42px !important;
  min-height: 42px !important;
  padding: 0 18px !important;
  border: 0 !important;
  border-bottom: 2px solid transparent !important;
  border-radius: 0 !important;
  background: transparent !important;
  background-color: transparent !important;
  color: #1a3a4a !important;
  opacity: 0.72 !important;
}

html body header.enterprise-top-shell .enterprise-sub-row nav.enterprise-sub-tabs > button.active,
html body header.enterprise-top-shell .enterprise-sub-row nav.enterprise-sub-tabs > button.active:not(.ghost):not(.icon-btn):not(.table-link):not(.calendar-day):not(.managed-select-button):not(.table-bubble-current) {
  background: #f5fdf8 !important;
  background-color: #f5fdf8 !important;
  color: #1a6640 !important;
  border-bottom-color: #3CB86C !important;
  opacity: 1 !important;
}

html body header.enterprise-top-shell .enterprise-sub-tabs button b {
  background: #f0f9f4 !important;
  color: #3CB86C !important;
}

html body header.enterprise-top-shell .enterprise-sub-tabs button.active b {
  background: #3CB86C !important;
  color: #f5fdf8 !important;
}

html body .records-page-head,
html body .records-screen-panel,
html body .records-screen-panel .table-search-row {
  border-radius: 0 !important;
  box-shadow: none !important;
}

html body .records-screen-panel .table-toolbar-meta > button,
html body .records-screen-panel .table-toolbar-meta > button.ghost,
html body .records-screen-panel .table-toolbar-meta > button:not(.ghost):not(.icon-btn):not(.table-link):not(.calendar-day):not(.managed-select-button):not(.table-bubble-current) {
  min-width: 112px !important;
  height: 46px !important;
  min-height: 46px !important;
  padding: 0 18px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  border: 1px solid #1a3a4a !important;
  border-radius: 8px !important;
  background: transparent !important;
  background-color: transparent !important;
  color: #1a3a4a !important;
  opacity: 1 !important;
}

html body .records-screen-panel .records-toolbar-settings {
  min-width: 120px !important;
}

html body .records-screen-panel .records-toolbar-settings svg {
  width: 16px !important;
  height: 16px !important;
}

html body .records-head-actions button.primary,
html body .records-head-actions button.primary:not(.ghost):not(.icon-btn):not(.table-link):not(.calendar-day):not(.managed-select-button):not(.table-bubble-current) {
  background: #3CB86C !important;
  background-color: #3CB86C !important;
  border-color: #3CB86C !important;
  color: #f5fdf8 !important;
}

html body .records-head-actions button.ghost,
html body .records-head-actions button.ghost:not(.icon-btn):not(.table-link):not(.calendar-day):not(.managed-select-button):not(.table-bubble-current) {
  min-width: 112px !important;
  height: 46px !important;
  min-height: 46px !important;
  border: 1px solid #1a3a4a !important;
  border-radius: 8px !important;
  background: transparent !important;
  background-color: transparent !important;
  color: #1a3a4a !important;
}

html body .records-head-actions > button.primary,
html body .records-head-actions > button.primary:not(.ghost):not(.icon-btn):not(.table-link):not(.calendar-day):not(.managed-select-button):not(.table-bubble-current) {
  min-width: 132px !important;
  height: 46px !important;
  min-height: 46px !important;
  border: 1px solid #3CB86C !important;
  border-radius: 8px !important;
  background: #3CB86C !important;
  background-color: #3CB86C !important;
  color: #f5fdf8 !important;
}

html body:has(.enterprise-top-shell) .shell-kpi-grid {
  margin: 18px 0 32px !important;
}

html body:has(.enterprise-top-shell) .shell-kpi-card {
  background: #f5fdf8 !important;
  background-color: #f5fdf8 !important;
  border: 0 !important;
  border-radius: 8px !important;
  color: #1a3a4a !important;
}

html body:has(.enterprise-top-shell) .shell-kpi-card span:not(.shell-kpi-icon),
html body:has(.enterprise-top-shell) .shell-kpi-card strong {
  color: #1a3a4a !important;
}

html body:has(.enterprise-top-shell) .shell-kpi-card em {
  color: #3CB86C !important;
}

html body:has(.enterprise-top-shell) .shell-kpi-sparkline b {
  background: #3CB86C !important;
}

html body:has(.enterprise-top-shell) table > thead > tr > th,
html body:has(.enterprise-top-shell) .data-grid th {
  background: #f0f9f4 !important;
  background-color: #f0f9f4 !important;
  color: #1a6640 !important;
  border-bottom: 2px solid #3CB86C !important;
}

html body:has(.enterprise-top-shell) table > thead > tr > th.sortable-column::after,
html body:has(.enterprise-top-shell) .data-grid th.sortable-column::after {
  content: "\2195" !important;
  color: #1a6640 !important;
}

html body:has(.enterprise-top-shell) .column-resizer,
html body:has(.enterprise-top-shell) .data-grid th:hover .column-resizer,
html body:has(.enterprise-top-shell) .data-grid th .column-resizer:hover {
  display: none !important;
  opacity: 0 !important;
}

html body:has(.enterprise-top-shell) input[type="checkbox"] {
  accent-color: #3CB86C !important;
}

html body:has(.enterprise-top-shell) .remit-page-buttons button.current {
  background: #3CB86C !important;
  background-color: #3CB86C !important;
  border-color: #3CB86C !important;
  color: #f5fdf8 !important;
}

html body main.view-records .records-head-actions > button.primary,
html body main.view-records .records-head-actions > button.primary:hover,
html body main.view-records .records-head-actions > button.primary:not(.ghost):not(.icon-btn):not(.table-link):not(.calendar-day):not(.managed-select-button):not(.table-bubble-current) {
  background: #3CB86C !important;
  background-color: #3CB86C !important;
  border-color: #3CB86C !important;
  color: #f5fdf8 !important;
}

html body main.view-records .records-head-actions > button.primary {
  background-color: #3CB86C !important;
}

/* Exact top navigation spec - keep below all generic button rules. */
html body header.enterprise-top-shell .enterprise-top-row {
  height: 58px !important;
  min-height: 58px !important;
  padding: 0 28px !important;
  background: #1a3a4a !important;
  background-color: #1a3a4a !important;
}

html body header.enterprise-top-shell .enterprise-top-brand,
html body header.enterprise-top-shell .enterprise-top-brand:not(.ghost):not(.icon-btn):not(.table-link):not(.calendar-day):not(.managed-select-button):not(.table-bubble-current) {
  width: auto !important;
  min-width: 166px !important;
  height: 58px !important;
  padding: 0 !important;
  display: inline-flex !important;
  flex-direction: row-reverse !important;
  direction: ltr !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 10px !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  background-color: transparent !important;
}

html body header.enterprise-top-shell .enterprise-top-logo-mark {
  width: 32px !important;
  height: 32px !important;
  min-width: 32px !important;
}

html body header.enterprise-top-shell .enterprise-top-brand-copy {
  gap: 2px !important;
  direction: rtl !important;
  text-align: right !important;
}

html body header.enterprise-top-shell .enterprise-top-brand-copy strong {
  color: #ffffff !important;
  font-size: 16px !important;
  font-weight: 500 !important;
  letter-spacing: 1.5px !important;
}

html body header.enterprise-top-shell .enterprise-top-brand-copy small {
  color: #3CB86C !important;
  font-size: 9px !important;
}

html body header.enterprise-top-shell .enterprise-top-main-nav {
  height: 58px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 14px !important;
}

html body header.enterprise-top-shell .enterprise-top-main-nav > button,
html body header.enterprise-top-shell .enterprise-top-main-nav > button:not(.ghost):not(.icon-btn):not(.table-link):not(.calendar-day):not(.managed-select-button):not(.table-bubble-current) {
  width: auto !important;
  height: auto !important;
  min-height: 0 !important;
  padding: 7px 13px !important;
  border: 0 !important;
  border-radius: 7px !important;
  background: transparent !important;
  background-color: transparent !important;
  color: #7aacbf !important;
  opacity: 1 !important;
  font-size: 14px !important;
  font-weight: 500 !important;
  line-height: 1.1 !important;
}

html body header.enterprise-top-shell .enterprise-top-main-nav > button.active,
html body header.enterprise-top-shell .enterprise-top-main-nav > button.active:not(.ghost):not(.icon-btn):not(.table-link):not(.calendar-day):not(.managed-select-button):not(.table-bubble-current) {
  padding: 7px 13px !important;
  border-radius: 7px !important;
  background: rgba(61, 186, 111, 0.18) !important;
  background-color: rgba(61, 186, 111, 0.18) !important;
  color: #ffffff !important;
  opacity: 1 !important;
}

html body header.enterprise-top-shell .enterprise-top-user {
  height: 58px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: flex-end !important;
  gap: 14px !important;
}

html body header.enterprise-top-shell .enterprise-top-icon,
html body header.enterprise-top-shell .enterprise-top-icon:not(.ghost):not(.icon-btn):not(.table-link):not(.calendar-day):not(.managed-select-button):not(.table-bubble-current) {
  width: 26px !important;
  height: 26px !important;
  min-width: 26px !important;
  min-height: 26px !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  background-color: transparent !important;
  color: #7aacbf !important;
}

html body header.enterprise-top-shell .enterprise-top-icon svg {
  width: 18px !important;
  height: 18px !important;
}

html body header.enterprise-top-shell .enterprise-bell-btn span {
  width: 7px !important;
  height: 7px !important;
  top: 3px !important;
  right: 4px !important;
  background: #e24b4a !important;
  background-color: #e24b4a !important;
}

html body header.enterprise-top-shell .enterprise-top-avatar,
html body header.enterprise-top-shell .enterprise-top-avatar:not(.ghost):not(.icon-btn):not(.table-link):not(.calendar-day):not(.managed-select-button):not(.table-bubble-current) {
  height: 32px !important;
  min-height: 32px !important;
  padding: 0 !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  background-color: transparent !important;
  color: #8ab0c8 !important;
}

html body header.enterprise-top-shell .enterprise-top-avatar span {
  width: 32px !important;
  height: 32px !important;
  min-width: 32px !important;
  border-radius: 50% !important;
  background: #234e62 !important;
  background-color: #234e62 !important;
  color: #a8ccd8 !important;
  font-size: 12px !important;
  font-weight: 500 !important;
}

html body header.enterprise-top-shell .enterprise-top-avatar strong {
  color: #8ab0c8 !important;
  font-size: 12px !important;
  font-weight: 500 !important;
}

html body header.enterprise-top-shell .enterprise-sub-row {
  height: 42px !important;
  min-height: 42px !important;
  padding: 0 28px !important;
  background: #ffffff !important;
  background-color: #ffffff !important;
  border-bottom: 1px solid var(--color-border-tertiary, #f0f9f4) !important;
}

html body header.enterprise-top-shell .enterprise-sub-tabs {
  height: 42px !important;
  display: flex !important;
  align-items: stretch !important;
  gap: 4px !important;
}

html body header.enterprise-top-shell .enterprise-sub-row nav.enterprise-sub-tabs > button,
html body header.enterprise-top-shell .enterprise-sub-row nav.enterprise-sub-tabs > button:not(.ghost):not(.icon-btn):not(.table-link):not(.calendar-day):not(.managed-select-button):not(.table-bubble-current) {
  height: 42px !important;
  min-height: 42px !important;
  padding: 0 14px !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  border: 0 !important;
  border-bottom: 2px solid transparent !important;
  border-radius: 0 !important;
  background: transparent !important;
  background-color: transparent !important;
  color: #888888 !important;
  opacity: 1 !important;
  font-size: 13px !important;
  font-weight: 400 !important;
}

html body header.enterprise-top-shell .enterprise-sub-row nav.enterprise-sub-tabs > button.active,
html body header.enterprise-top-shell .enterprise-sub-row nav.enterprise-sub-tabs > button.active:not(.ghost):not(.icon-btn):not(.table-link):not(.calendar-day):not(.managed-select-button):not(.table-bubble-current) {
  background: #f5fdf8 !important;
  background-color: #f5fdf8 !important;
  color: #1a6640 !important;
  border-bottom-color: #3CB86C !important;
  font-weight: 500 !important;
}

html body header.enterprise-top-shell .enterprise-sub-tabs button b {
  min-width: 0 !important;
  height: auto !important;
  padding: 1px 6px !important;
  border-radius: 10px !important;
  background: #e8f5ee !important;
  background-color: #e8f5ee !important;
  color: #3CB86C !important;
  font-size: 10px !important;
  font-weight: 500 !important;
  line-height: 1.2 !important;
}

html body header.enterprise-top-shell .enterprise-sub-tabs button.active b {
  background: #3CB86C !important;
  background-color: #3CB86C !important;
  color: #ffffff !important;
}

/* Global secondary button baseline - keep last. */
html body button:not(.enterprise-top-brand):not(.enterprise-top-icon):not(.enterprise-top-avatar):not(.nav-category):not(.nav-item):not(.enterprise-sidebar-link):not(.managed-select-button):not(.table-bubble-current):not(.calendar-day):not(.table-link):not(.icon-link):not(.row-menu-btn):not(.table-toolbar-add-new):not(.widget-toolbar-add):not(.enterprise-nav-button):not(.enterprise-sub-button),
html body .ghost,
html body button.ghost,
html body .secondary,
html body button.secondary,
html body .btn-secondary,
html body .table-io-btn,
html body .table-filter-drawer-toggle,
html body .column-menu-trigger,
html body .table-date-range-btn,
html body .table-filter-settings {
  background: #ffffff !important;
  background-color: #ffffff !important;
  background-image: none !important;
  border: 0.5px solid #d0d0d0 !important;
  color: #555555 !important;
  border-radius: 8px !important;
  padding: 8px 12px !important;
  font-size: 13px !important;
  box-shadow: none !important;
}

html body button.enterprise-nav-button,
html body button.enterprise-sub-button {
  box-shadow: none !important;
}

html body button:not(.enterprise-top-brand):not(.enterprise-top-icon):not(.enterprise-top-avatar):not(.nav-category):not(.nav-item):not(.enterprise-sidebar-link):not(.managed-select-button):not(.table-bubble-current):not(.calendar-day):not(.table-link):not(.icon-link):not(.row-menu-btn):not(.table-toolbar-add-new):not(.widget-toolbar-add):not(.enterprise-nav-button):not(.enterprise-sub-button):hover,
html body .ghost:hover,
html body button.ghost:hover,
html body .secondary:hover,
html body button.secondary:hover,
html body .btn-secondary:hover,
html body .table-io-btn:hover,
html body .table-filter-drawer-toggle:hover,
html body .column-menu-trigger:hover,
html body .table-date-range-btn:hover,
html body .table-filter-settings:hover {
  background: #ffffff !important;
  background-color: #ffffff !important;
  background-image: none !important;
  border-color: #d0d0d0 !important;
  color: #555555 !important;
}

html body .table-toolbar-add-new,
html body button.table-toolbar-add-new,
html body .widget-toolbar-add,
html body button.widget-toolbar-add,
html body main.view-records .records-head-actions > button.primary {
  background: #3CB86C !important;
  background-color: #3CB86C !important;
  background-image: none !important;
  border: 0.5px solid #3CB86C !important;
  color: #ffffff !important;
  border-radius: 8px !important;
  padding: 8px 12px !important;
  font-size: 13px !important;
  box-shadow: none !important;
}

/* Re-lock top navigation after global button baseline. */
html body header.enterprise-top-shell .enterprise-top-main-nav > button,
html body header.enterprise-top-shell .enterprise-top-main-nav > button.enterprise-nav-button,
html body header.enterprise-top-shell .enterprise-top-main-nav > button:hover,
html body header.enterprise-top-shell .enterprise-top-main-nav > button:not(.ghost):not(.icon-btn):not(.table-link):not(.calendar-day):not(.managed-select-button):not(.table-bubble-current) {
  width: auto !important;
  height: auto !important;
  min-height: 0 !important;
  padding: 7px 13px !important;
  border: 0 !important;
  border-radius: 7px !important;
  background: transparent !important;
  background-color: transparent !important;
  background-image: none !important;
  color: #7aacbf !important;
  opacity: 1 !important;
  font-size: 14px !important;
  font-weight: 500 !important;
  line-height: 1.1 !important;
}

html body header.enterprise-top-shell .enterprise-top-main-nav > button.active,
html body header.enterprise-top-shell .enterprise-top-main-nav > button.enterprise-nav-button.active,
html body header.enterprise-top-shell .enterprise-top-main-nav > button.active:hover,
html body header.enterprise-top-shell .enterprise-top-main-nav > button.active:not(.ghost):not(.icon-btn):not(.table-link):not(.calendar-day):not(.managed-select-button):not(.table-bubble-current) {
  background: rgba(61, 186, 111, 0.18) !important;
  background-color: rgba(61, 186, 111, 0.18) !important;
  color: #ffffff !important;
}

html body header.enterprise-top-shell .enterprise-sub-row nav.enterprise-sub-tabs > button,
html body header.enterprise-top-shell .enterprise-sub-row nav.enterprise-sub-tabs > button.enterprise-sub-button,
html body header.enterprise-top-shell .enterprise-sub-row nav.enterprise-sub-tabs > button:hover,
html body header.enterprise-top-shell .enterprise-sub-row nav.enterprise-sub-tabs > button:not(.ghost):not(.icon-btn):not(.table-link):not(.calendar-day):not(.managed-select-button):not(.table-bubble-current) {
  height: 42px !important;
  min-height: 42px !important;
  padding: 0 14px !important;
  border: 0 !important;
  border-bottom: 2px solid transparent !important;
  border-radius: 0 !important;
  background: transparent !important;
  background-color: transparent !important;
  background-image: none !important;
  color: #888888 !important;
  font-size: 13px !important;
  font-weight: 400 !important;
}

html body header.enterprise-top-shell .enterprise-sub-row nav.enterprise-sub-tabs > button.active,
html body header.enterprise-top-shell .enterprise-sub-row nav.enterprise-sub-tabs > button.enterprise-sub-button.active,
html body header.enterprise-top-shell .enterprise-sub-row nav.enterprise-sub-tabs > button.active:hover,
html body header.enterprise-top-shell .enterprise-sub-row nav.enterprise-sub-tabs > button.active:not(.ghost):not(.icon-btn):not(.table-link):not(.calendar-day):not(.managed-select-button):not(.table-bubble-current) {
  background: #f5fdf8 !important;
  background-color: #f5fdf8 !important;
  color: #1a6640 !important;
  border-bottom-color: #3CB86C !important;
  font-weight: 500 !important;
}

/* Contrast and compact card lock - keep last. */
html body {
  color: #222222 !important;
}

html body .main,
html body main,
html body .panel,
html body .data-grid-panel,
html body .records-screen-panel,
html body .modal-panel,
html body .widget-card,
html body .management-card,
html body .dashboard-chart-card,
html body .donor-detail-card,
html body .integration-card,
html body .mailhook-card {
  color: #222222 !important;
}

html body .shell-kpi-card,
html body:has(.enterprise-top-shell) .shell-kpi-card,
html body:has(.enterprise-sidebar) .shell-kpi-card,
html body .stats article,
html body:has(.enterprise-sidebar) .stats article,
html body .dashboard-kpis article,
html body .hero-kpi,
html body .management-kpi,
html body:has(.enterprise-sidebar) .management-kpi,
html body .management-kpi.primary-kpi,
html body:has(.enterprise-sidebar) .management-kpi.primary-kpi {
  border: 0.5px solid #e0e0e0 !important;
  border-color: #e0e0e0 !important;
  padding: 10px 12px !important;
  min-height: 0 !important;
  max-height: 92px !important;
  height: auto !important;
  overflow: hidden !important;
  box-sizing: border-box !important;
}

html body .shell-kpi-card,
html body .shell-kpi-card span,
html body .shell-kpi-card strong,
html body .stats article,
html body .stats article span,
html body .stats article strong,
html body .dashboard-kpis article,
html body .dashboard-kpis article span,
html body .dashboard-kpis article strong,
html body .hero-kpi,
html body .hero-kpi strong,
html body .management-kpi,
html body .management-kpi span,
html body .management-kpi strong,
html body .management-kpi.primary-kpi,
html body .management-kpi.primary-kpi span,
html body .management-kpi.primary-kpi strong {
  color: #222222 !important;
}

html body .widget-card,
html body .management-card,
html body:has(.enterprise-sidebar) .management-card,
html body .dashboard-chart-card,
html body .donor-detail-card,
html body:has(.enterprise-sidebar) .donor-detail-card,
html body .integration-card,
html body .mailhook-card,
html body .panel,
html body .data-grid-panel,
html body .records-screen-panel {
  border: 0.5px solid #e0e0e0 !important;
}

html body table > thead > tr > th,
html body .data-grid th,
html body .records-like-table th,
html body .widget-table th,
html body .gift-tracking-table th,
html body .journal-records-table th,
html body .incentives-table th,
html body .bonus-rules-table th,
html body .variable-bonus-table th {
  background: #f0f9f4 !important;
  background-color: #f0f9f4 !important;
  color: #1a6640 !important;
}

html body table > tbody > tr > td,
html body .data-grid tbody tr td,
html body:has(.enterprise-top-shell) table tbody td,
html body:has(.enterprise-sidebar) table tbody td,
html body .main .data-grid tbody tr td,
html body .main .panel table tbody tr td,
html body .records-like-table tbody tr td,
html body .main .records-like-table tbody tr td,
html body .widget-table tbody tr td,
html body .main .widget-table tbody tr td,
html body .gift-tracking-table tbody tr td,
html body .journal-records-table tbody tr td,
html body .incentives-table tbody tr td,
html body .bonus-rules-table tbody tr td,
html body .variable-bonus-table tbody tr td {
  border-bottom: 1px solid #eeeeee !important;
  color: #222222 !important;
}

html body table > tbody > tr:last-child > td,
html body .data-grid tbody tr:last-child td,
html body .records-like-table tbody tr:last-child td,
html body .widget-table tbody tr:last-child td,
html body .gift-tracking-table tbody tr:last-child td,
html body .journal-records-table tbody tr:last-child td,
html body .incentives-table tbody tr:last-child td,
html body .bonus-rules-table tbody tr:last-child td,
html body .variable-bonus-table tbody tr:last-child td {
  border-bottom: 1px solid #eeeeee !important;
}

/* Full REMIT logo lock - keep last. */
html body header.enterprise-top-shell .enterprise-top-row {
  height: 104px !important;
  min-height: 104px !important;
  align-items: center !important;
}

html body header.enterprise-top-shell .enterprise-top-brand,
html body header.enterprise-top-shell .enterprise-top-brand:not(.ghost):not(.icon-btn):not(.table-link):not(.calendar-day):not(.managed-select-button):not(.table-bubble-current) {
  width: 580px !important;
  min-width: 580px !important;
  height: 104px !important;
  padding: 0 0 0 20px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  border: 0 !important;
  background: transparent !important;
  background-color: transparent !important;
}

html body header.enterprise-top-shell .enterprise-top-logo-full {
  width: 540px !important;
  max-width: 540px !important;
  height: 102px !important;
  max-height: 102px !important;
  display: block !important;
  object-fit: contain !important;
  object-position: right center !important;
  transform: scale(1.28) !important;
  transform-origin: right center !important;
}

html body header.enterprise-top-shell .enterprise-top-main-nav > button,
html body header.enterprise-top-shell .enterprise-top-main-nav > button.enterprise-nav-button,
html body header.enterprise-top-shell .enterprise-top-main-nav > button:not(.ghost):not(.icon-btn):not(.table-link):not(.calendar-day):not(.managed-select-button):not(.table-bubble-current),
html body header.enterprise-top-shell .enterprise-top-icon,
html body header.enterprise-top-shell .enterprise-top-avatar {
  align-self: center !important;
}

html body header.enterprise-top-shell .enterprise-top-logo-mark,
html body header.enterprise-top-shell .enterprise-top-brand-copy {
  display: none !important;
}

/* Table settings driven controls - keep last. */
html body .table-toolbar-meta {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  direction: rtl !important;
}

html body .table-toolbar-meta .table-free-search {
  order: -100 !important;
  margin-inline: 0 !important;
}

html body .table-toolbar-meta .table-result-count {
  order: -90 !important;
}

html body .table-toolbar-meta .table-toolbar-title {
  order: -80 !important;
}

html body .table-toolbar-meta .table-filter-settings,
html body .table-toolbar-meta .records-toolbar-settings {
  order: 100 !important;
  margin-inline-start: auto !important;
  width: 40px !important;
  min-width: 40px !important;
  height: 40px !important;
  min-height: 40px !important;
  padding: 0 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
}

html body .table-toolbar-meta .table-filter-settings svg,
html body .table-toolbar-meta .records-toolbar-settings svg {
  width: 24px !important;
  min-width: 24px !important;
  height: 24px !important;
  min-height: 24px !important;
  flex: 0 0 24px !important;
  transform: scale(1.18) !important;
}

html body .table-filter-drawer-toggle::before {
  content: none !important;
  display: none !important;
}

html body .managed-select:not(.choice-select):not(.call-result-select) .managed-select-button,
html body select:not([data-choice-key]):not([data-filter-choice="true"]),
html body .table-bubble-current:empty {
  border: 0 !important;
  box-shadow: none !important;
  background: transparent !important;
  background-color: transparent !important;
}

html body .managed-select:not(.choice-select) .managed-select-menu,
html body .managed-select:not(.choice-select) .managed-option-value,
html body .managed-select:not(.choice-select) .managed-option-row,
html body .managed-select:not(.choice-select) .managed-option-add {
  border: 0 !important;
  box-shadow: none !important;
}

html body .choice-select .managed-select-button,
html body .call-result-select .managed-select-button,
html body .table-bubble-current,
html body .inline-choice-current {
  background: transparent !important;
  background-color: transparent !important;
}

html body .choice-select-value .status-badge,
html body .managed-select-button .choice-select-value .status-badge,
html body .managed-select-button .status-badge,
html body .table-bubble-current .status-badge,
html body .inline-choice-current .status-badge,
html body .managed-option-value .status-badge,
html body .table-bubble-option .status-badge,
html body .inline-choice-option .status-badge {
  color: inherit;
}

html body .choice-select-value .status-badge.custom-color,
html body .managed-select-button .status-badge.custom-color,
html body .table-bubble-current .status-badge.custom-color,
html body .inline-choice-current .status-badge.custom-color,
html body .managed-option-value .status-badge.custom-color,
html body .table-bubble-option .status-badge.custom-color,
html body .inline-choice-option .status-badge.custom-color {
  background: color-mix(in srgb, var(--status-color) 22%, white) !important;
  border-color: color-mix(in srgb, var(--status-color) 46%, white) !important;
  color: color-mix(in srgb, var(--status-color) 78%, black) !important;
}

html body .choice-select-value .status-badge.success,
html body .managed-select-button .status-badge.success,
html body .table-bubble-current .status-badge.success,
html body .inline-choice-current .status-badge.success,
html body .managed-option-value .status-badge.success,
html body .table-bubble-option .status-badge.success,
html body .inline-choice-option .status-badge.success {
  background: #e8f8ef !important;
  border-color: #b7e8cb !important;
  color: #177245 !important;
}

html body .choice-select-value .status-badge.warning,
html body .managed-select-button .status-badge.warning,
html body .table-bubble-current .status-badge.warning,
html body .inline-choice-current .status-badge.warning,
html body .managed-option-value .status-badge.warning,
html body .table-bubble-option .status-badge.warning,
html body .inline-choice-option .status-badge.warning {
  background: #fff6e6 !important;
  border-color: #ffd999 !important;
  color: #9a5b00 !important;
}

html body .choice-select-value .status-badge.danger,
html body .managed-select-button .status-badge.danger,
html body .table-bubble-current .status-badge.danger,
html body .inline-choice-current .status-badge.danger,
html body .managed-option-value .status-badge.danger,
html body .table-bubble-option .status-badge.danger,
html body .inline-choice-option .status-badge.danger {
  background: #fff0ee !important;
  border-color: #ffc3bb !important;
  color: #b42318 !important;
}

html body .choice-select-value .status-badge.info,
html body .managed-select-button .status-badge.info,
html body .table-bubble-current .status-badge.info,
html body .inline-choice-current .status-badge.info,
html body .managed-option-value .status-badge.info,
html body .table-bubble-option .status-badge.info,
html body .inline-choice-option .status-badge.info {
  background: #eef6ff !important;
  border-color: #b9d8ff !important;
  color: #175cd3 !important;
}

html body .choice-select-value .status-badge.purple,
html body .managed-select-button .status-badge.purple,
html body .table-bubble-current .status-badge.purple,
html body .inline-choice-current .status-badge.purple,
html body .managed-option-value .status-badge.purple,
html body .table-bubble-option .status-badge.purple,
html body .inline-choice-option .status-badge.purple {
  background: #f4f0ff !important;
  border-color: #d8ccff !important;
  color: #6941c6 !important;
}

html body .choice-select-value .status-badge.neutral,
html body .managed-select-button .status-badge.neutral,
html body .table-bubble-current .status-badge.neutral,
html body .inline-choice-current .status-badge.neutral,
html body .managed-option-value .status-badge.neutral,
html body .table-bubble-option .status-badge.neutral,
html body .inline-choice-option .status-badge.neutral {
  background: #f5f7fb !important;
  border-color: #d0d8e5 !important;
  color: #475467 !important;
}

/* REMIT polish pass - hierarchy, tabs, tables and responsive. */
html body:has(.enterprise-top-shell) {
  background: #f6f8fa !important;
}

html body header.enterprise-top-shell .enterprise-top-row {
  background: #123947 !important;
  background-color: #123947 !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
}

html body header.enterprise-top-shell .enterprise-top-main-nav {
  gap: 5px !important;
  align-items: center !important;
}

html body header.enterprise-top-shell .enterprise-top-main-nav > button,
html body header.enterprise-top-shell .enterprise-top-main-nav > button.enterprise-nav-button,
html body header.enterprise-top-shell .enterprise-top-main-nav > button:not(.ghost):not(.icon-btn):not(.table-link):not(.calendar-day):not(.managed-select-button):not(.table-bubble-current) {
  height: 38px !important;
  min-height: 38px !important;
  padding: 0 14px !important;
  border-radius: 10px !important;
  color: #c8d8dd !important;
  transition: background-color 0.18s ease, color 0.18s ease, transform 0.18s ease !important;
}

html body header.enterprise-top-shell .enterprise-top-main-nav > button:hover,
html body header.enterprise-top-shell .enterprise-top-main-nav > button.enterprise-nav-button:hover {
  background: rgba(255, 255, 255, 0.08) !important;
  background-color: rgba(255, 255, 255, 0.08) !important;
  color: #ffffff !important;
  transform: translateY(-1px) !important;
}

html body header.enterprise-top-shell .enterprise-top-main-nav > button.active,
html body header.enterprise-top-shell .enterprise-top-main-nav > button.enterprise-nav-button.active,
html body header.enterprise-top-shell .enterprise-top-main-nav > button.active:hover,
html body header.enterprise-top-shell .enterprise-top-main-nav > button.active:not(.ghost):not(.icon-btn):not(.table-link):not(.calendar-day):not(.managed-select-button):not(.table-bubble-current) {
  background: rgba(61, 186, 111, 0.18) !important;
  background-color: rgba(61, 186, 111, 0.18) !important;
  color: #ffffff !important;
  box-shadow: inset 0 -2px 0 #3CB86C !important;
}

html body header.enterprise-top-shell .enterprise-sub-row {
  min-height: 50px !important;
  height: auto !important;
  padding: 0 28px !important;
  display: flex !important;
  justify-content: flex-start !important;
  align-items: center !important;
  background: #ffffff !important;
  background-color: #ffffff !important;
}

html body header.enterprise-top-shell .enterprise-sub-tabs {
  width: auto !important;
  max-width: max-content !important;
  height: auto !important;
  display: inline-flex !important;
  flex: 0 1 auto !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 6px !important;
  padding: 5px !important;
  border: 1px solid #e6edf0 !important;
  border-radius: 12px !important;
  background: #f7faf9 !important;
  background-color: #f7faf9 !important;
}

html body header.enterprise-top-shell .enterprise-sub-row nav.enterprise-sub-tabs > button,
html body header.enterprise-top-shell .enterprise-sub-row nav.enterprise-sub-tabs > button.enterprise-sub-button,
html body header.enterprise-top-shell .enterprise-sub-row nav.enterprise-sub-tabs > button:not(.ghost):not(.icon-btn):not(.table-link):not(.calendar-day):not(.managed-select-button):not(.table-bubble-current) {
  flex: 0 0 auto !important;
  height: 34px !important;
  min-height: 34px !important;
  padding: 0 13px !important;
  border: 0 !important;
  border-radius: 9px !important;
  color: #52646b !important;
  background: transparent !important;
  background-color: transparent !important;
  transition: background-color 0.18s ease, color 0.18s ease, box-shadow 0.18s ease !important;
}

html body header.enterprise-top-shell .enterprise-sub-row nav.enterprise-sub-tabs > button:hover,
html body header.enterprise-top-shell .enterprise-sub-row nav.enterprise-sub-tabs > button.enterprise-sub-button:hover {
  background: #edf7f1 !important;
  background-color: #edf7f1 !important;
  color: #174b37 !important;
}

html body header.enterprise-top-shell .enterprise-sub-row nav.enterprise-sub-tabs > button.active,
html body header.enterprise-top-shell .enterprise-sub-row nav.enterprise-sub-tabs > button.enterprise-sub-button.active,
html body header.enterprise-top-shell .enterprise-sub-row nav.enterprise-sub-tabs > button.active:hover,
html body header.enterprise-top-shell .enterprise-sub-row nav.enterprise-sub-tabs > button.active:not(.ghost):not(.icon-btn):not(.table-link):not(.calendar-day):not(.managed-select-button):not(.table-bubble-current) {
  background: #ffffff !important;
  background-color: #ffffff !important;
  color: #174b37 !important;
  border: 0 !important;
  box-shadow: inset 0 -2px 0 #3CB86C, 0 1px 6px rgba(18, 57, 71, 0.08) !important;
}

html body .records-screen-panel,
html body:has(.enterprise-top-shell) .data-grid-panel {
  background: #ffffff !important;
  background-color: #ffffff !important;
  border-color: #dde6e8 !important;
  border-radius: 8px !important;
  box-shadow: 0 10px 28px rgba(18, 57, 71, 0.06) !important;
}

html body:has(.enterprise-top-shell) .shell-kpi-grid {
  gap: 12px !important;
}

html body:has(.enterprise-top-shell) .shell-kpi-card {
  border-color: #dfe8e5 !important;
  background: #ffffff !important;
  background-color: #ffffff !important;
  box-shadow: 0 8px 18px rgba(18, 57, 71, 0.05) !important;
}

html body .records-head-actions {
  gap: 8px !important;
}

html body .records-head-actions button,
html body .table-toolbar-meta button {
  transition: background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease !important;
}

html body .records-head-actions button.ghost,
html body .records-head-actions button.ghost:not(.icon-btn):not(.table-link):not(.calendar-day):not(.managed-select-button):not(.table-bubble-current) {
  background: #ffffff !important;
  background-color: #ffffff !important;
  border-color: #d6e0e2 !important;
  color: #4d5f66 !important;
}

html body .records-head-actions button.ghost:hover,
html body .table-toolbar-meta button.ghost:hover {
  background: #f6faf8 !important;
  background-color: #f6faf8 !important;
  border-color: #c5d3d6 !important;
  color: #123947 !important;
}

html body .table-toolbar-add-new,
html body button.table-toolbar-add-new,
html body main.view-records .records-head-actions > button.primary,
html body main.view-records .records-head-actions > button.primary:not(.ghost):not(.icon-btn):not(.table-link):not(.calendar-day):not(.managed-select-button):not(.table-bubble-current) {
  background: #3CB86C !important;
  background-color: #3CB86C !important;
  border-color: #3CB86C !important;
  color: #ffffff !important;
  font-weight: 600 !important;
  box-shadow: 0 8px 18px rgba(61, 186, 111, 0.22) !important;
}

html body .table-toolbar-add-new:hover,
html body button.table-toolbar-add-new:hover,
html body main.view-records .records-head-actions > button.primary:hover {
  background: #35a963 !important;
  background-color: #35a963 !important;
  border-color: #35a963 !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 10px 22px rgba(61, 186, 111, 0.28) !important;
}

html body table.data-grid,
html body .records-like-table,
html body .data-grid {
  border-collapse: separate !important;
  border-spacing: 0 !important;
  background: #ffffff !important;
}

html body table > thead > tr > th,
html body .data-grid th,
html body .records-like-table th {
  padding: 13px 16px !important;
  background: #eff8f2 !important;
  background-color: #eff8f2 !important;
  color: #164e39 !important;
  border-bottom: 1px solid #cfe3d7 !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  line-height: 1.25 !important;
}

html body table > tbody > tr > td,
html body .data-grid tbody tr td,
html body .records-like-table tbody tr td,
html body .main .data-grid tbody tr td,
html body .main .records-like-table tbody tr td {
  padding: 13px 16px !important;
  border-bottom: 1px solid #e8eeee !important;
  background: #ffffff !important;
  background-color: #ffffff !important;
  color: #222222 !important;
}

html body .data-grid tbody tr:nth-child(even) td,
html body .records-like-table tbody tr:nth-child(even) td {
  background: #fbfcfc !important;
  background-color: #fbfcfc !important;
}

html body .data-grid tbody tr:hover td,
html body .records-like-table tbody tr:hover td,
html body .data-grid-panel .data-grid tbody tr:hover td {
  background: #f4fbf7 !important;
  background-color: #f4fbf7 !important;
}

html body .table-search-row,
html body .data-grid-panel .table-search-row {
  overflow-x: auto !important;
}

html body .records-screen-panel table,
html body .data-grid-panel table {
  min-width: 820px !important;
}

@media (max-width: 900px) {
  html body:has(.enterprise-top-shell) .shell-kpi-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  html body header.enterprise-top-shell .enterprise-top-row {
    min-height: 74px !important;
    height: auto !important;
    padding: 8px 14px !important;
    flex-wrap: wrap !important;
    gap: 8px !important;
  }

  html body header.enterprise-top-shell .enterprise-top-brand,
  html body header.enterprise-top-shell .enterprise-top-brand:not(.ghost):not(.icon-btn):not(.table-link):not(.calendar-day):not(.managed-select-button):not(.table-bubble-current) {
    width: 280px !important;
    min-width: 240px !important;
    height: 54px !important;
  }

  html body header.enterprise-top-shell .enterprise-top-logo-full {
    width: 260px !important;
    max-width: 260px !important;
    height: 54px !important;
  }

  html body header.enterprise-top-shell .enterprise-sub-row {
    padding: 8px 14px !important;
    overflow-x: auto !important;
  }

  html body .table-toolbar-meta {
    flex-wrap: wrap !important;
  }

  html body .table-toolbar-meta .table-free-search {
    width: min(100%, 360px) !important;
    flex: 1 1 240px !important;
  }
}

@media (max-width: 560px) {
  html body:has(.enterprise-top-shell) .shell-kpi-grid {
    grid-template-columns: 1fr !important;
  }

  html body .records-head-actions,
  html body .table-toolbar-meta {
    gap: 6px !important;
  }

  html body .records-head-actions button,
  html body .table-toolbar-meta button {
    min-height: 36px !important;
    white-space: nowrap !important;
  }
}

/* Final specificity lock for REMIT polish. */
html body .main button.primary.table-toolbar-add-new,
html body .main .table-toolbar-meta button.primary.table-toolbar-add-new,
html body .main .section-head button.primary.table-toolbar-add-new,
html body:has(.enterprise-top-shell) .main button.primary.table-toolbar-add-new,
html body:has(.enterprise-sidebar) .main button.primary.table-toolbar-add-new,
html body:has(.enterprise-top-shell) .section-head button.primary.table-toolbar-add-new,
html body:has(.enterprise-sidebar) .section-head button.primary.table-toolbar-add-new,
html body main.view-records .records-head-actions > button.primary {
  background: #3CB86C !important;
  background-color: #3CB86C !important;
  border-color: #3CB86C !important;
  color: #ffffff !important;
  box-shadow: 0 9px 20px rgba(61, 186, 111, 0.28) !important;
  filter: drop-shadow(0 8px 12px rgba(61, 186, 111, 0.24)) !important;
  font-weight: 700 !important;
}

html body .main button.primary.table-toolbar-add-new:hover,
html body .main .table-toolbar-meta button.primary.table-toolbar-add-new:hover,
html body .main .section-head button.primary.table-toolbar-add-new:hover,
html body:has(.enterprise-top-shell) .main button.primary.table-toolbar-add-new:hover,
html body:has(.enterprise-sidebar) .main button.primary.table-toolbar-add-new:hover,
html body:has(.enterprise-top-shell) .section-head button.primary.table-toolbar-add-new:hover,
html body:has(.enterprise-sidebar) .section-head button.primary.table-toolbar-add-new:hover,
html body main.view-records .records-head-actions > button.primary:hover {
  background: #35a963 !important;
  background-color: #35a963 !important;
  border-color: #35a963 !important;
  box-shadow: 0 12px 26px rgba(61, 186, 111, 0.34) !important;
  filter: drop-shadow(0 10px 16px rgba(61, 186, 111, 0.3)) !important;
  transform: translateY(-1px) !important;
}

html body .main .panel table.records-like-table > thead > tr > th,
html body .main .panel table.data-grid > thead > tr > th,
html body .main .data-grid-panel table > thead > tr > th,
html body .main .records-screen-panel table > thead > tr > th,
html body .modal-panel table.records-like-table > thead > tr > th {
  padding: 13px 16px !important;
  background: #eff8f2 !important;
  background-color: #eff8f2 !important;
  color: #164e39 !important;
  border-bottom: 1px solid #cfe3d7 !important;
  box-shadow: none !important;
  font-weight: 700 !important;
}

html body .main .panel table.records-like-table > tbody > tr > td,
html body .main .panel table.data-grid > tbody > tr > td,
html body .main .data-grid-panel table > tbody > tr > td,
html body .main .records-screen-panel table > tbody > tr > td,
html body .modal-panel table.records-like-table > tbody > tr > td {
  padding: 13px 16px !important;
  border-bottom: 1px solid #e8eeee !important;
  background: #ffffff !important;
  background-color: #ffffff !important;
  box-shadow: none !important;
  color: #222222 !important;
}

html body .main .panel table.records-like-table > tbody > tr:nth-child(even) > td,
html body .main .panel table.data-grid > tbody > tr:nth-child(even) > td,
html body .main .data-grid-panel table > tbody > tr:nth-child(even) > td,
html body .main .records-screen-panel table > tbody > tr:nth-child(even) > td {
  background: #fbfcfc !important;
  background-color: #fbfcfc !important;
}

html body .main .panel table.records-like-table > tbody > tr:hover > td,
html body .main .panel table.data-grid > tbody > tr:hover > td,
html body .main .data-grid-panel table > tbody > tr:hover > td,
html body .main .records-screen-panel table > tbody > tr:hover > td {
  background: #f4fbf7 !important;
  background-color: #f4fbf7 !important;
}

/* Records toolbar compact layout - keep last. */
html body .records-title-row {
  align-items: flex-start !important;
}

html body .records-screen-panel .table-toolbar-meta {
  min-height: 36px !important;
  gap: 7px !important;
  flex-wrap: nowrap !important;
}

html body .records-screen-panel .table-toolbar-meta .table-free-search {
  width: 230px !important;
  min-width: 180px !important;
  max-width: 230px !important;
  height: 32px !important;
  min-height: 32px !important;
  flex: 0 0 230px !important;
  order: -100 !important;
  padding: 6px 12px !important;
  font-size: 12px !important;
}

html body .records-screen-panel .table-toolbar-meta .table-result-count {
  order: -90 !important;
  font-size: 12px !important;
}

html body .records-screen-panel .table-toolbar-meta .table-filter-drawer-toggle {
  order: 10 !important;
}

html body .records-screen-panel .table-toolbar-meta .records-toolbar-import,
html body .records-screen-panel .table-toolbar-meta .records-toolbar-export {
  order: 40 !important;
  height: 32px !important;
  min-height: 32px !important;
  padding: 6px 11px !important;
  border-radius: 8px !important;
  font-size: 12px !important;
  background: #ffffff !important;
  background-color: #ffffff !important;
  border-color: #d6e0e2 !important;
  color: #4d5f66 !important;
}

html body .records-screen-panel .table-toolbar-meta .records-toolbar-add-new {
  order: 50 !important;
  height: 32px !important;
  min-height: 32px !important;
  padding: 6px 12px !important;
  border-radius: 8px !important;
  font-size: 12px !important;
}

html body .records-screen-panel .table-toolbar-meta .records-toolbar-settings,
html body .records-screen-panel .table-toolbar-meta .table-filter-settings.records-toolbar-settings {
  order: 100 !important;
  margin-inline-start: auto !important;
  width: 30px !important;
  min-width: 30px !important;
  height: 30px !important;
  min-height: 30px !important;
  padding: 0 !important;
  border-radius: 8px !important;
}

html body .records-screen-panel .table-toolbar-meta .records-toolbar-settings svg,
html body .records-screen-panel .table-toolbar-meta .table-filter-settings.records-toolbar-settings svg {
  width: 15px !important;
  min-width: 15px !important;
  height: 15px !important;
  min-height: 15px !important;
  transform: none !important;
}

html body .records-screen-panel .column-menu-trigger,
html body .records-screen-panel .table-date-range-btn {
  display: none !important;
}

html body .main .records-screen-panel table.records-like-table > thead > tr > th,
html body .main .records-screen-panel table.data-grid > thead > tr > th,
html body .records-screen-panel table > thead > tr > th {
  height: 32px !important;
  min-height: 32px !important;
  padding: 6px 12px !important;
  line-height: 1.15 !important;
  font-size: 12px !important;
  vertical-align: middle !important;
}

html body .main .records-screen-panel table.records-like-table > tbody > tr > td,
html body .main .records-screen-panel table.data-grid > tbody > tr > td,
html body .records-screen-panel table > tbody > tr > td {
  padding: 10px 12px !important;
}

@media (max-width: 760px) {
  html body .records-screen-panel .table-toolbar-meta {
    flex-wrap: wrap !important;
  }

  html body .records-screen-panel .table-toolbar-meta .table-free-search {
    width: min(100%, 230px) !important;
    flex: 1 1 190px !important;
  }

  html body .records-screen-panel .table-toolbar-meta .records-toolbar-settings,
  html body .records-screen-panel .table-toolbar-meta .table-filter-settings.records-toolbar-settings {
    margin-inline-start: 0 !important;
  }
}

/* Records toolbar compact override with higher specificity. */
html body:has(.enterprise-top-shell) main.main.view-records .records-screen-panel .table-toolbar-meta > button.records-toolbar-import,
html body:has(.enterprise-top-shell) main.main.view-records .records-screen-panel .table-toolbar-meta > button.records-toolbar-export,
html body:has(.enterprise-top-shell) main.main.view-records .records-screen-panel .table-toolbar-meta > button.records-toolbar-add-new,
html body:has(.enterprise-top-shell) main.main.view-records .records-screen-panel .table-toolbar-meta > button.records-toolbar-settings,
html body:has(.enterprise-top-shell) main.main.view-records .records-screen-panel .table-toolbar-meta > button.table-filter-drawer-toggle {
  width: auto !important;
  min-width: 0 !important;
  max-width: none !important;
  box-sizing: border-box !important;
  white-space: nowrap !important;
}

html body:has(.enterprise-top-shell) main.main.view-records .records-screen-panel .table-toolbar-meta > button.records-toolbar-import,
html body:has(.enterprise-top-shell) main.main.view-records .records-screen-panel .table-toolbar-meta > button.records-toolbar-export {
  height: 32px !important;
  min-height: 32px !important;
  max-height: 32px !important;
  padding: 6px 11px !important;
  font-size: 12px !important;
}

html body:has(.enterprise-top-shell) main.main.view-records .records-screen-panel .table-toolbar-meta > button.records-toolbar-add-new {
  height: 34px !important;
  min-height: 34px !important;
  max-height: 34px !important;
  padding: 6px 13px !important;
  font-size: 12px !important;
  border-radius: 8px !important;
}

html body:has(.enterprise-top-shell) main.main.view-records .records-screen-panel .table-toolbar-meta > button.records-toolbar-settings,
html body:has(.enterprise-top-shell) main.main.view-records .records-screen-panel .table-toolbar-meta > button.table-filter-settings.records-toolbar-settings {
  width: 30px !important;
  min-width: 30px !important;
  max-width: 30px !important;
  height: 30px !important;
  min-height: 30px !important;
  max-height: 30px !important;
  padding: 0 !important;
  border-radius: 8px !important;
  box-sizing: border-box !important;
}

html body:has(.enterprise-top-shell) main.main.view-records .records-screen-panel .table-toolbar-meta > button.records-toolbar-settings svg,
html body:has(.enterprise-top-shell) main.main.view-records .records-screen-panel .table-toolbar-meta > button.table-filter-settings.records-toolbar-settings svg {
  width: 15px !important;
  min-width: 15px !important;
  max-width: 15px !important;
  height: 15px !important;
  min-height: 15px !important;
  max-height: 15px !important;
  flex-basis: 15px !important;
}

html body:has(.enterprise-top-shell) main.main.view-records .records-screen-panel .table-toolbar-meta > input.table-free-search {
  width: 230px !important;
  min-width: 180px !important;
  max-width: 230px !important;
  height: 32px !important;
  min-height: 32px !important;
  max-height: 32px !important;
  flex: 0 0 230px !important;
  box-sizing: border-box !important;
}

html body:has(.enterprise-top-shell) main.main.view-records .records-screen-panel table.records-like-table > thead,
html body:has(.enterprise-top-shell) main.main.view-records .records-screen-panel table.records-like-table > thead > tr {
  height: 32px !important;
  min-height: 32px !important;
}

html body:has(.enterprise-top-shell) main.main.view-records .records-screen-panel table.records-like-table > thead > tr > th {
  height: 32px !important;
  min-height: 32px !important;
  padding: 4px 10px !important;
  line-height: 1.05 !important;
}

html body:has(.enterprise-top-shell) main.main.view-records .records-screen-panel .table-toolbar-meta > button.primary.table-toolbar-add-new.records-toolbar-add-new:not(.ghost):not(.icon-btn):not(.table-link):not(.calendar-day):not(.managed-select-button):not(.table-bubble-current) {
  width: auto !important;
  min-width: 0 !important;
  height: 34px !important;
  min-height: 34px !important;
  max-height: 34px !important;
  padding: 6px 13px !important;
  font-size: 12px !important;
  line-height: 1 !important;
  border-radius: 8px !important;
}

html body:has(.enterprise-top-shell) main.main.view-records .records-screen-panel .table-toolbar-meta > button.ghost.icon-btn.table-filter-settings.records-toolbar-settings {
  width: 30px !important;
  min-width: 30px !important;
  max-width: 30px !important;
  height: 30px !important;
  min-height: 30px !important;
  max-height: 30px !important;
  padding: 0 !important;
  padding-inline: 0 !important;
  padding-block: 0 !important;
  box-sizing: border-box !important;
}

html body:has(.enterprise-top-shell) main.main.view-records .records-screen-panel table.records-like-table > thead,
html body:has(.enterprise-top-shell) main.main.view-records .records-screen-panel table.records-like-table > thead > tr,
html body:has(.enterprise-top-shell) main.main.view-records .records-screen-panel table.records-like-table > thead > tr > th {
  max-height: 30px !important;
}

html body:has(.enterprise-top-shell) main.main.view-records .records-screen-panel table.records-like-table > thead > tr > th {
  padding-top: 2px !important;
  padding-bottom: 2px !important;
  font-size: 11.5px !important;
  line-height: 1 !important;
  box-sizing: border-box !important;
  white-space: nowrap !important;
  overflow: hidden !important;
}

html body:has(.enterprise-top-shell) main.main.view-records section.panel.records-screen-panel table.no-entity-cells.records-like-table.data-grid > thead,
html body:has(.enterprise-top-shell) main.main.view-records section.panel.records-screen-panel table.no-entity-cells.records-like-table.data-grid > thead > tr,
html body:has(.enterprise-top-shell) main.main.view-records section.panel.records-screen-panel table.no-entity-cells.records-like-table.data-grid > thead > tr > th,
html body:has(.enterprise-top-shell) main.main.view-records section.panel.records-screen-panel table.no-entity-cells.records-like-table.data-grid > thead > tr > th.sortable-column {
  height: 30px !important;
  min-height: 30px !important;
  max-height: 30px !important;
}

html body:has(.enterprise-top-shell) main.main.view-records section.panel.records-screen-panel table.no-entity-cells.records-like-table.data-grid > thead > tr > th {
  padding: 2px 10px !important;
  line-height: 1 !important;
}

/* Final REMIT repair: color, navigation, spacing, settings icons, and user switch. */
:root,
html body {
  --remit-action-green: #3CB86C;
  --remit-action-green-hover: #35a963;
}

html body .table-toolbar-add-new,
html body button.table-toolbar-add-new,
html body .widget-toolbar-add,
html body button.widget-toolbar-add,
html body .main button.primary.table-toolbar-add-new,
html body .main .table-toolbar-meta button.primary.table-toolbar-add-new,
html body main.view-records .records-head-actions > button.primary,
html body:has(.enterprise-top-shell) main.main.view-records .records-screen-panel .table-toolbar-meta > button.primary.table-toolbar-add-new.records-toolbar-add-new:not(.ghost):not(.icon-btn):not(.table-link):not(.calendar-day):not(.managed-select-button):not(.table-bubble-current) {
  background: var(--remit-action-green) !important;
  background-color: var(--remit-action-green) !important;
  border-color: var(--remit-action-green) !important;
  box-shadow: none !important;
}

html body .table-toolbar-add-new:hover,
html body button.table-toolbar-add-new:hover,
html body .widget-toolbar-add:hover,
html body button.widget-toolbar-add:hover,
html body .main button.primary.table-toolbar-add-new:hover,
html body .main .table-toolbar-meta button.primary.table-toolbar-add-new:hover {
  background: var(--remit-action-green-hover) !important;
  background-color: var(--remit-action-green-hover) !important;
  border-color: var(--remit-action-green-hover) !important;
}

html body header.enterprise-top-shell .enterprise-top-main-nav > button.active,
html body header.enterprise-top-shell .enterprise-top-main-nav > button.enterprise-nav-button.active,
html body header.enterprise-top-shell .enterprise-top-main-nav > button.active:hover,
html body header.enterprise-top-shell .enterprise-top-main-nav > button.active:not(.ghost):not(.icon-btn):not(.table-link):not(.calendar-day):not(.managed-select-button):not(.table-bubble-current) {
  background: rgba(61, 186, 111, 0.2) !important;
  background-color: rgba(61, 186, 111, 0.2) !important;
  box-shadow: inset 0 -2px 0 var(--remit-action-green) !important;
}

html body header.enterprise-top-shell .enterprise-sub-row {
  min-height: 52px !important;
  height: auto !important;
  padding: 6px 28px !important;
  overflow: visible !important;
}

html body header.enterprise-top-shell .enterprise-sub-tabs,
html body header.enterprise-top-shell .enterprise-sub-row nav.enterprise-sub-tabs {
  width: 100% !important;
  max-width: none !important;
  height: auto !important;
  min-height: 40px !important;
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)) !important;
  align-items: stretch !important;
  gap: 6px !important;
  overflow: visible !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  background-color: transparent !important;
}

html body header.enterprise-top-shell .enterprise-sub-row nav.enterprise-sub-tabs > button,
html body header.enterprise-top-shell .enterprise-sub-row nav.enterprise-sub-tabs > button.enterprise-sub-button,
html body header.enterprise-top-shell .enterprise-sub-row nav.enterprise-sub-tabs > button:not(.ghost):not(.icon-btn):not(.table-link):not(.calendar-day):not(.managed-select-button):not(.table-bubble-current) {
  width: 100% !important;
  justify-content: center !important;
  height: 40px !important;
  min-height: 40px !important;
  border-radius: 8px !important;
  border-bottom: 2px solid transparent !important;
}

html body header.enterprise-top-shell .enterprise-sub-row nav.enterprise-sub-tabs > button.active,
html body header.enterprise-top-shell .enterprise-sub-row nav.enterprise-sub-tabs > button.enterprise-sub-button.active,
html body header.enterprise-top-shell .enterprise-sub-row nav.enterprise-sub-tabs > button.active:hover,
html body header.enterprise-top-shell .enterprise-sub-row nav.enterprise-sub-tabs > button.active:not(.ghost):not(.icon-btn):not(.table-link):not(.calendar-day):not(.managed-select-button):not(.table-bubble-current) {
  background: #f5fdf8 !important;
  background-color: #f5fdf8 !important;
  border-bottom-color: var(--remit-action-green) !important;
  color: #1a6640 !important;
}

html body header.enterprise-top-shell .enterprise-sub-tabs button.active b {
  background: var(--remit-action-green) !important;
  background-color: var(--remit-action-green) !important;
}

html body:has(.enterprise-top-shell) main.main {
  padding-top: 24px !important;
}

html body .modal-overlay {
  padding-top: 72px !important;
  align-items: flex-start !important;
}

html body .table-filter-settings,
html body button.table-filter-settings,
html body .widget-column-btn.table-filter-settings,
html body .records-toolbar-settings,
html body button.records-toolbar-settings {
  width: 18px !important;
  min-width: 18px !important;
  max-width: 18px !important;
  height: 18px !important;
  min-height: 18px !important;
  max-height: 18px !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  background-color: transparent !important;
  color: #888888 !important;
  box-shadow: none !important;
}

html body .table-filter-settings svg,
html body button.table-filter-settings svg,
html body .widget-column-btn.table-filter-settings svg,
html body .records-toolbar-settings svg,
html body button.records-toolbar-settings svg {
  width: 18px !important;
  height: 18px !important;
  min-width: 18px !important;
  min-height: 18px !important;
  color: #888888 !important;
  stroke-width: 1.6 !important;
}

html body header.enterprise-top-shell .enterprise-user-switch {
  position: relative !important;
  display: inline-flex !important;
  align-items: center !important;
}

html body header.enterprise-top-shell .enterprise-user-dropdown {
  position: absolute !important;
  top: calc(100% + 10px) !important;
  left: 0 !important;
  z-index: 1000 !important;
  min-width: 190px !important;
  padding: 6px !important;
  border: 1px solid #dce5e8 !important;
  border-radius: 8px !important;
  background: #ffffff !important;
  background-color: #ffffff !important;
  box-shadow: 0 14px 34px rgba(18, 57, 71, 0.16) !important;
}

html body header.enterprise-top-shell .enterprise-user-switch.open .enterprise-user-dropdown:not([hidden]) {
  display: grid !important;
  opacity: 1 !important;
  visibility: visible !important;
  transform: translateY(0) !important;
}

html body header.enterprise-top-shell .enterprise-user-dropdown[hidden] {
  display: none !important;
}

html body header.enterprise-top-shell .enterprise-user-dropdown button,
html body header.enterprise-top-shell .enterprise-user-dropdown button:not(.ghost):not(.icon-btn):not(.table-link):not(.calendar-day):not(.managed-select-button):not(.table-bubble-current) {
  width: 100% !important;
  min-height: 34px !important;
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto !important;
  gap: 8px !important;
  align-items: center !important;
  padding: 7px 9px !important;
  border: 0 !important;
  border-radius: 6px !important;
  background: transparent !important;
  background-color: transparent !important;
  color: #29323c !important;
  text-align: right !important;
  box-shadow: none !important;
}

html body header.enterprise-top-shell .enterprise-user-dropdown button.active,
html body header.enterprise-top-shell .enterprise-user-dropdown button:hover {
  background: #f2f8f5 !important;
  background-color: #f2f8f5 !important;
  color: #1a6640 !important;
}

html body header.enterprise-top-shell .enterprise-user-dropdown small {
  color: #7a858a !important;
  font-size: 11px !important;
}

html body .history-icon-btn svg {
  width: 18px !important;
  height: 18px !important;
  min-width: 18px !important;
  min-height: 18px !important;
  stroke-width: 2 !important;
}

html body .counted-history-btn {
  position: relative !important;
  overflow: visible !important;
}

html body .history-count-badge {
  position: absolute !important;
  top: -7px !important;
  left: -7px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-width: 18px !important;
  height: 18px !important;
  padding: 0 5px !important;
  border: 2px solid #ffffff !important;
  border-radius: 999px !important;
  background: #0f7a83 !important;
  color: #ffffff !important;
  font-size: 11px !important;
  font-weight: 900 !important;
  line-height: 1 !important;
  box-shadow: 0 5px 12px rgba(15, 63, 74, .2) !important;
}

html body .counted-history-text-btn {
  gap: 8px !important;
  padding-inline-start: 16px !important;
}

html body .counted-history-text-btn .history-count-badge {
  position: static !important;
  margin-inline-start: 2px !important;
  border-color: #e8f3f4 !important;
}

html body .history-log-panel {
  padding: 0 !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}

html body .history-log {
  display: grid !important;
  gap: 12px !important;
}

html body .history-log-item {
  display: grid !important;
  grid-template-columns: 150px minmax(0, 1fr) !important;
  gap: 14px !important;
  align-items: start !important;
  padding: 14px 16px !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 8px !important;
  background: #ffffff !important;
}

html body .history-log-item time {
  color: #64748b !important;
  font-size: 12px !important;
  font-weight: 600 !important;
  white-space: nowrap !important;
}

/* REMIT login screen */
html body .login-page {
  min-height: 100vh !important;
  display: grid !important;
  place-items: center !important;
  padding: 32px !important;
  background:
    linear-gradient(90deg, rgba(61, 186, 111, 0.1) 0 1px, transparent 1px 100%),
    linear-gradient(0deg, rgba(0, 88, 190, 0.08) 0 1px, transparent 1px 100%),
    #f7fafc !important;
  background-size: 34px 34px, 34px 34px, auto !important;
}

html body .login-shell {
  width: min(1040px, 100%) !important;
  min-height: 620px !important;
  display: grid !important;
  grid-template-columns: minmax(0, 1.08fr) minmax(360px, 0.92fr) !important;
  overflow: hidden !important;
  border: 1px solid #d9e5ea !important;
  border-radius: 8px !important;
  background: #ffffff !important;
  box-shadow: 0 24px 70px rgba(25, 27, 35, 0.12) !important;
}

html body .login-brand-panel {
  position: relative !important;
  display: grid !important;
  align-content: space-between !important;
  gap: 28px !important;
  min-height: 100% !important;
  padding: 44px !important;
  background: #f4f8fb !important;
  border-left: 1px solid #d9e5ea !important;
}

html body .login-brand-panel::before {
  content: "" !important;
  position: absolute !important;
  inset: 0 !important;
  background: linear-gradient(135deg, rgba(61, 186, 111, 0.16), transparent 42%), linear-gradient(315deg, rgba(0, 88, 190, 0.12), transparent 48%) !important;
  pointer-events: none !important;
}

html body .login-logo,
html body .login-brand-copy,
html body .login-side-metrics {
  position: relative !important;
  z-index: 1 !important;
}

html body .login-logo {
  width: min(430px, 100%) !important;
  height: auto !important;
  display: block !important;
  object-fit: contain !important;
  filter: drop-shadow(0 12px 24px rgba(22, 32, 41, 0.1)) !important;
}

html body .login-brand-copy {
  max-width: 560px !important;
  display: grid !important;
  gap: 10px !important;
}

html body .login-brand-copy strong {
  color: #19232d !important;
  font-size: 34px !important;
  line-height: 1.2 !important;
  font-weight: 600 !important;
}

html body .login-brand-copy span {
  max-width: 470px !important;
  color: #4c5965 !important;
  font-size: 16px !important;
  line-height: 1.8 !important;
}

html body .login-side-metrics {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 10px !important;
}

html body .login-side-metrics span {
  display: grid !important;
  gap: 4px !important;
  min-height: 82px !important;
  padding: 16px !important;
  border: 1px solid #d9e5ea !important;
  border-radius: 8px !important;
  background: rgba(255, 255, 255, 0.82) !important;
}

html body .login-side-metrics strong {
  color: #16834a !important;
  font-size: 24px !important;
  line-height: 1 !important;
  font-weight: 700 !important;
}

html body .login-side-metrics small {
  color: #52616e !important;
  font-size: 12px !important;
}

html body .login-panel {
  width: 100% !important;
  min-height: 100% !important;
  display: grid !important;
  align-content: center !important;
  gap: 22px !important;
  padding: 56px 48px !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}

html body .login-panel-head {
  display: grid !important;
  gap: 10px !important;
  justify-items: start !important;
}

html body .login-panel-logo {
  width: 178px !important;
  height: auto !important;
  display: none !important;
  object-fit: contain !important;
}

html body .login-panel h1 {
  margin: 0 !important;
  color: #191b23 !important;
  font-size: 30px !important;
  line-height: 1.25 !important;
  font-weight: 600 !important;
}

html body .login-panel p {
  margin: 0 !important;
  color: #53616d !important;
}

html body .login-form {
  gap: 16px !important;
}

html body .login-form label {
  color: #29323c !important;
  font-size: 13px !important;
  font-weight: 600 !important;
}

html body .login-form input {
  height: 48px !important;
  padding: 0 14px !important;
  border: 1px solid #c8d5dc !important;
  background: #fbfdfe !important;
  color: #191b23 !important;
  font-size: 15px !important;
  direction: ltr !important;
  text-align: left !important;
}

html body .login-form input:focus {
  border-color: #3CB86C !important;
  outline: 3px solid rgba(61, 186, 111, 0.18) !important;
}

html body .login-form button.primary {
  height: 48px !important;
  margin-top: 4px !important;
  background: #16834a !important;
  border-color: #16834a !important;
  font-size: 15px !important;
}

html body .login-form button.primary:hover {
  background: #126f3f !important;
  border-color: #126f3f !important;
}

html body .login-default-note {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 12px !important;
  padding: 12px 14px !important;
  border: 1px solid #d9e5ea !important;
  border-radius: 8px !important;
  background: #f6fbf8 !important;
  color: #44515c !important;
  font-size: 13px !important;
}

html body .login-default-note span {
  display: inline-grid !important;
  place-items: center !important;
  min-width: 46px !important;
  height: 26px !important;
  padding: 0 10px !important;
  border-radius: 999px !important;
  background: #dff4e7 !important;
  color: #126f3f !important;
  font-size: 12px !important;
  font-weight: 700 !important;
}

html body .login-default-note strong {
  direction: ltr !important;
  text-align: left !important;
  color: #29323c !important;
  font-family: var(--font-number) !important;
  font-size: 13px !important;
}

html body .compact-loading {
  width: min(420px, 100%) !important;
  min-height: 240px !important;
  grid-template-columns: 1fr !important;
}

html body .compact-loading .login-panel {
  min-height: 240px !important;
}

html body .compact-loading .login-panel-logo {
  display: block !important;
}

@media (max-width: 860px) {
  html body .login-page {
    padding: 18px !important;
  }

  html body .login-shell {
    min-height: auto !important;
    grid-template-columns: 1fr !important;
  }

  html body .login-brand-panel {
    min-height: auto !important;
    gap: 18px !important;
    padding: 28px 24px !important;
    border-left: 0 !important;
    border-bottom: 1px solid #d9e5ea !important;
  }

  html body .login-logo {
    width: min(300px, 100%) !important;
  }

  html body .login-brand-copy strong {
    font-size: 25px !important;
  }

  html body .login-brand-copy span {
    font-size: 14px !important;
  }

  html body .login-side-metrics {
    display: none !important;
  }

  html body .login-panel {
    padding: 28px 24px 30px !important;
  }
}

@media (max-width: 520px) {
  html body .login-page {
    place-items: stretch !important;
    padding: 0 !important;
    background: #ffffff !important;
  }

  html body .login-shell {
    min-height: 100vh !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
  }

  html body .login-brand-panel {
    padding: 24px 20px !important;
  }

  html body .login-panel {
    align-content: start !important;
    padding: 28px 20px 36px !important;
  }

  html body .login-panel h1 {
    font-size: 26px !important;
  }

  html body .login-default-note {
    display: grid !important;
    justify-items: start !important;
  }
}

html body .history-log-item strong {
  display: block !important;
  margin-bottom: 5px !important;
  color: #1f2937 !important;
  font-size: 14px !important;
}

html body .history-log-item p {
  margin: 0 !important;
  color: #334155 !important;
  font-size: 14px !important;
  line-height: 1.6 !important;
}

html body .history-log-empty {
  padding: 22px !important;
  border: 1px dashed #cbd5e1 !important;
  border-radius: 8px !important;
  color: #64748b !important;
  text-align: center !important;
}

@media (max-width: 640px) {
  html body .history-log-item {
    grid-template-columns: 1fr !important;
    gap: 6px !important;
  }
}

html body:has(.enterprise-top-shell) .modal-backdrop {
  padding: calc(var(--app-header-bottom, 136px) + 24px) 28px 28px !important;
  display: grid !important;
  place-items: start center !important;
  align-items: start !important;
  overflow: auto !important;
}

html body:has(.enterprise-top-shell) .modal-panel,
html body:has(.enterprise-top-shell) .modal-panel.modal-wide,
html body:has(.enterprise-top-shell) .modal-panel:has(.donor-detail-screen),
html body:has(.enterprise-top-shell) .modal-panel:has(.call-screen),
html body:has(.enterprise-top-shell) .modal-panel:has(.record-form) {
  max-height: calc(100vh - var(--app-header-bottom, 136px) - 52px) !important;
}

html body .managed-option-row,
html body .inline-choice-managed-row,
html body .table-bubble-option-row {
  grid-template-columns: minmax(0, 1fr) 18px !important;
  gap: 6px !important;
  min-height: 38px !important;
  padding: 0 8px !important;
  border-radius: 0 !important;
}

html body .managed-option-row:hover,
html body .inline-choice-managed-row:hover,
html body .table-bubble-option-row:hover {
  background: #f7fbf8 !important;
  background-color: #f7fbf8 !important;
}

html body .managed-option-action.danger,
html body .inline-choice-managed-row .managed-option-action.danger,
html body .table-bubble-option-row .managed-option-action.danger {
  opacity: 0 !important;
  width: 18px !important;
  min-width: 18px !important;
  height: 18px !important;
  min-height: 18px !important;
  color: #a3a3a3 !important;
  font-size: 12px !important;
  font-weight: 400 !important;
  transition: opacity 0.12s ease, color 0.12s ease !important;
}

html body .managed-option-row:hover .managed-option-action.danger,
html body .inline-choice-managed-row:hover .managed-option-action.danger,
html body .table-bubble-option-row:hover .managed-option-action.danger {
  opacity: 1 !important;
}

html body .managed-option-action.danger:hover {
  color: #7f1d1d !important;
}

/* Record form premium field language. */
html body .modal-panel:has(.record-form) .record-form,
html body .modal-panel:has(.record-form) .record-form .payment-section,
html body .modal-panel:has(.record-form) .record-form .commitment-section,
html body .modal-panel:has(.record-form) .record-form .receipt-section {
  background: #f8fafc !important;
  background-color: #f8fafc !important;
}

html body .modal-panel:has(.record-form) .record-form input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]),
html body .modal-panel:has(.record-form) .record-form select,
html body .modal-panel:has(.record-form) .record-form textarea,
html body .modal-panel:has(.record-form) .record-form .donor-picker-trigger,
html body .modal-panel:has(.record-form) .record-form .managed-select-button {
  min-height: 42px !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 8px !important;
  background: #ffffff !important;
  background-color: #ffffff !important;
  color: #0f172a !important;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03) !important;
  transition: border-color 0.16s ease, box-shadow 0.16s ease, background-color 0.16s ease !important;
}

html body .modal-panel:has(.record-form) .record-form input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]):hover,
html body .modal-panel:has(.record-form) .record-form select:hover,
html body .modal-panel:has(.record-form) .record-form textarea:hover,
html body .modal-panel:has(.record-form) .record-form .donor-picker-trigger:hover,
html body .modal-panel:has(.record-form) .record-form .managed-select-button:hover,
html body .modal-panel:has(.record-form) .record-form input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]):focus,
html body .modal-panel:has(.record-form) .record-form select:focus,
html body .modal-panel:has(.record-form) .record-form textarea:focus,
html body .modal-panel:has(.record-form) .record-form .donor-picker-trigger:focus,
html body .modal-panel:has(.record-form) .record-form .managed-select-button:focus,
html body .modal-panel:has(.record-form) .record-form .managed-select.open .managed-select-button {
  border-color: #1d727a !important;
  background-color: #ffffff !important;
  box-shadow: 0 0 0 3px rgba(29, 114, 122, 0.13), 0 7px 16px rgba(15, 23, 42, 0.09) !important;
  outline: none !important;
}

html body .modal-panel:has(.record-form) .record-form .action-row .commitment-action-btn {
  min-height: 34px !important;
  padding: 0 14px !important;
  border-radius: 6px !important;
  font-weight: 500 !important;
  box-shadow: none !important;
}

html body .modal-panel:has(.record-form) .record-form .action-row .commitment-action-charge {
  border: 1px solid #cbe7d3 !important;
  background: rgba(60, 184, 108, 0.14) !important;
  background-color: rgba(60, 184, 108, 0.14) !important;
  color: #2A8C52 !important;
}

html body .modal-panel:has(.record-form) .record-form .action-row .commitment-action-charge:hover {
  border-color: #afd6bd !important;
  background: #d9eddf !important;
  background-color: #d9eddf !important;
  color: #0f5f2a !important;
}

html body .modal-panel:has(.record-form) .record-form .action-row .commitment-action-freeze {
  border: 1px solid #f1dfaa !important;
  background: #fef7e0 !important;
  background-color: #fef7e0 !important;
  color: #b06000 !important;
}

html body .modal-panel:has(.record-form) .record-form .action-row .commitment-action-freeze:hover {
  border-color: #e5cd8d !important;
  background: #fbefc7 !important;
  background-color: #fbefc7 !important;
  color: #8f4f00 !important;
}

html body .modal-panel:has(.record-form) .record-form .action-row .commitment-action-cancel {
  border: 1px solid #efc7c4 !important;
  background: #fce8e6 !important;
  background-color: #fce8e6 !important;
  color: #c5221f !important;
}

html body .modal-panel:has(.record-form) .record-form .action-row .commitment-action-cancel:hover {
  border-color: #e9b1ad !important;
  background: #f8d9d6 !important;
  background-color: #f8d9d6 !important;
  color: #9f1b18 !important;
}

html body .modal-panel:has(.record-form) .record-form .refusal-treatment-card {
  grid-column: 1 / -1;
  margin: 16px 0 6px;
  padding: 18px;
  border: 1px solid #fecaca;
  border-inline-start: 6px solid #dc2626;
  border-radius: 14px;
  background:
    linear-gradient(135deg, rgba(254, 242, 242, 0.96), rgba(255, 255, 255, 0.98)),
    #fff7f7;
  box-shadow: 0 18px 38px rgba(127, 29, 29, 0.12);
}

html body .modal-panel:has(.record-form) .record-form .refusal-treatment-head {
  display: grid;
  gap: 6px;
  margin-bottom: 14px;
}

html body .modal-panel:has(.record-form) .record-form .refusal-treatment-kicker {
  width: max-content;
  padding: 5px 11px;
  border-radius: 999px;
  background: #fee2e2;
  color: #991b1b;
  font-size: 12px;
  font-weight: 800;
}

html body .modal-panel:has(.record-form) .record-form .refusal-treatment-head h3 {
  margin: 0;
  color: #7f1d1d;
  font-size: 20px;
}

html body .modal-panel:has(.record-form) .record-form .refusal-treatment-head p {
  max-width: 760px;
  margin: 0;
  color: #475569;
  line-height: 1.7;
}

html body .modal-panel:has(.record-form) .record-form .refusal-treatment-reason {
  display: grid;
  gap: 4px;
  margin-bottom: 14px;
  padding: 12px 14px;
  border: 1px solid #fed7aa;
  border-radius: 12px;
  background: #fff7ed;
}

html body .modal-panel:has(.record-form) .record-form .refusal-treatment-reason span {
  color: #9a3412;
  font-size: 12px;
  font-weight: 800;
}

html body .modal-panel:has(.record-form) .record-form .refusal-treatment-reason strong {
  color: #1f2937;
}

html body .modal-panel:has(.record-form) .record-form .refusal-treatment-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(180px, 1fr));
  gap: 12px;
  align-items: end;
}

html body .modal-panel:has(.record-form) .record-form .refusal-treatment-choice {
  min-height: 76px;
  display: flex;
  align-items: center;
  padding: 14px;
  border: 1px solid #fecaca;
  border-radius: 12px;
  background: #ffffff;
}

html body .modal-panel:has(.record-form) .record-form .refusal-treatment-date {
  margin: 0;
}

html body .modal-panel:has(.record-form) .record-form .refusal-treatment-choice[hidden],
html body .modal-panel:has(.record-form) .record-form .refusal-treatment-date[hidden],
html body .modal-panel:has(.record-form) .record-form [data-refusal-reactivated-only][hidden] {
  display: none !important;
}

@media (max-width: 900px) {
  html body .modal-panel:has(.record-form) .record-form .refusal-treatment-grid {
    grid-template-columns: 1fr;
  }
}

html body .modal-panel:has(.record-form) .record-form .managed-select-button .status-badge,
html body .modal-panel:has(.record-form) .record-form .choice-select-value .status-badge {
  min-height: 28px !important;
  border-radius: 999px !important;
  box-shadow: none !important;
}

html body .modal-panel:has(.record-form) .modal-footer .primary,
html body .modal-panel:has(.record-form) .modal-footer button.primary {
  border: 1px solid #1d727a !important;
  border-radius: 8px !important;
  background: #1d727a !important;
  background-color: #1d727a !important;
  color: #ffffff !important;
  box-shadow: 0 8px 18px rgba(29, 114, 122, 0.22) !important;
}

html body .modal-panel:has(.record-form) .modal-footer .primary:hover,
html body .modal-panel:has(.record-form) .modal-footer button.primary:hover {
  border-color: #165d64 !important;
  background: #165d64 !important;
  background-color: #165d64 !important;
  box-shadow: 0 10px 22px rgba(29, 114, 122, 0.28) !important;
}

html body .modal-panel:has(.record-form) .modal-footer .ghost,
html body .modal-panel:has(.record-form) .modal-footer button.ghost {
  border: 1px solid #e2e8f0 !important;
  border-radius: 8px !important;
  background: #ffffff !important;
  background-color: #ffffff !important;
  color: #334155 !important;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04) !important;
}

html body .modal-panel:has(.record-form) .modal-footer .ghost:hover,
html body .modal-panel:has(.record-form) .modal-footer button.ghost:hover {
  border-color: #cbd5e1 !important;
  background: #f8fafc !important;
  background-color: #f8fafc !important;
}

html body .managed-option-add,
html body button.managed-option-add,
html body .inline-choice-add,
html body .table-bubble-add {
  position: sticky !important;
  bottom: 0 !important;
  width: 100% !important;
  height: 44px !important;
  min-height: 44px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  padding: 0 18px !important;
  border: 0 !important;
  border-top: 1px solid #edf2f0 !important;
  border-radius: 0 !important;
  background: #ffffff !important;
  background-color: #ffffff !important;
  color: #a3a3a3 !important;
  font-size: 15px !important;
  font-weight: 400 !important;
  box-shadow: none !important;
  text-align: right !important;
}

html body .managed-option-add::before,
html body .inline-choice-add::before,
html body .table-bubble-add::before {
  content: "□" !important;
  margin-inline-end: 10px !important;
  color: #b8b8b8 !important;
  font-size: 13px !important;
}

html body .managed-option-add:hover,
html body .inline-choice-add:hover,
html body .table-bubble-add:hover {
  background: #ffffff !important;
  background-color: #ffffff !important;
  color: #777777 !important;
}

html body .managed-option-add-editor {
  position: sticky !important;
  bottom: 0 !important;
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto !important;
  gap: 10px !important;
  padding: 8px 10px !important;
  border-top: 1px solid #edf2f0 !important;
  background: #ffffff !important;
  background-color: #ffffff !important;
}

html body .managed-option-add-input {
  height: 36px !important;
  padding: 0 12px !important;
  border: 1px solid #d9d9d9 !important;
  border-radius: 8px !important;
  background: #ffffff !important;
  color: #29323c !important;
  font-size: 15px !important;
}

html body .managed-option-add-save,
html body button.managed-option-add-save {
  height: 36px !important;
  min-height: 36px !important;
  padding: 0 18px !important;
  border: 1px solid #cfcfcf !important;
  border-radius: 8px !important;
  background: #ffffff !important;
  background-color: #ffffff !important;
  color: #29323c !important;
  font-size: 15px !important;
  box-shadow: none !important;
}

html body header.enterprise-top-shell .enterprise-sub-row nav.enterprise-sub-tabs > button.active,
html body header.enterprise-top-shell .enterprise-sub-row nav.enterprise-sub-tabs > button.enterprise-sub-button.active,
html body header.enterprise-top-shell .enterprise-sub-row nav.enterprise-sub-tabs > button.active:hover,
html body header.enterprise-top-shell .enterprise-sub-row nav.enterprise-sub-tabs > button.active:not(.ghost):not(.icon-btn):not(.table-link):not(.calendar-day):not(.managed-select-button):not(.table-bubble-current) {
  background: #ffffff !important;
  background-color: #ffffff !important;
  border-bottom-color: #3CB86C !important;
  color: #1a6640 !important;
  box-shadow: inset 0 -2px 0 #3CB86C, 0 1px 6px rgba(18, 57, 71, 0.06) !important;
}

html body header.enterprise-top-shell .enterprise-sub-tabs button.active b {
  background: #3CB86C !important;
  background-color: #3CB86C !important;
  color: #ffffff !important;
}

html body:has(.enterprise-top-shell) main.main.view-records .records-screen-panel .table-toolbar-meta > button.records-toolbar-settings,
html body:has(.enterprise-top-shell) main.main.view-records .records-screen-panel .table-toolbar-meta > button.table-filter-settings.records-toolbar-settings,
html body:has(.enterprise-top-shell) main.main.view-records .records-screen-panel .table-toolbar-meta > button.ghost.icon-btn.table-filter-settings.records-toolbar-settings,
html body:has(.enterprise-sidebar) .table-filter-settings,
html body:has(.enterprise-sidebar) .widget-column-btn.table-filter-settings {
  width: 18px !important;
  min-width: 18px !important;
  max-width: 18px !important;
  height: 18px !important;
  min-height: 18px !important;
  max-height: 18px !important;
  padding: 0 !important;
  padding-inline: 0 !important;
  padding-block: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  background-color: transparent !important;
  color: #888888 !important;
  box-shadow: none !important;
  box-sizing: border-box !important;
}

html body:has(.enterprise-top-shell) main.main.view-records .records-screen-panel .table-toolbar-meta > button.records-toolbar-settings svg,
html body:has(.enterprise-top-shell) main.main.view-records .records-screen-panel .table-toolbar-meta > button.table-filter-settings.records-toolbar-settings svg,
html body:has(.enterprise-top-shell) main.main.view-records .records-screen-panel .table-toolbar-meta > button.ghost.icon-btn.table-filter-settings.records-toolbar-settings svg,
html body:has(.enterprise-sidebar) .table-filter-settings svg,
html body:has(.enterprise-sidebar) .widget-column-btn.table-filter-settings svg {
  width: 18px !important;
  min-width: 18px !important;
  max-width: 18px !important;
  height: 18px !important;
  min-height: 18px !important;
  max-height: 18px !important;
  color: #888888 !important;
  stroke-width: 1.6 !important;
}

html body #app .managed-select .managed-select-menu .managed-option-add,
html body #app .managed-select .managed-select-menu button.managed-option-add,
html body #floating-choice-menu .managed-option-add,
html body #choice-bubble-dialog .managed-option-add,
html body .inline-choice-menu .managed-option-add,
html body .table-bubble-menu .managed-option-add {
  background: #ffffff !important;
  background-color: #ffffff !important;
  color: #a3a3a3 !important;
  border: 0 !important;
  border-top: 1px solid #edf2f0 !important;
  box-shadow: none !important;
  justify-content: flex-start !important;
}

html body #app .managed-select .managed-select-menu .managed-option-add:hover,
html body #floating-choice-menu .managed-option-add:hover,
html body #choice-bubble-dialog .managed-option-add:hover,
html body .inline-choice-menu .managed-option-add:hover,
html body .table-bubble-menu .managed-option-add:hover {
  color: #777777 !important;
  background: #ffffff !important;
  background-color: #ffffff !important;
}

html body #app .managed-select .managed-select-menu .managed-option-action.danger,
html body #floating-choice-menu .managed-option-action.danger,
html body #choice-bubble-dialog .managed-option-action.danger,
html body .inline-choice-menu .managed-option-action.danger,
html body .table-bubble-menu .managed-option-action.danger {
  color: #a3a3a3 !important;
  opacity: 0 !important;
}

html body #app .managed-select .managed-select-menu .managed-option-row:hover .managed-option-action.danger,
html body #floating-choice-menu .inline-choice-managed-row:hover .managed-option-action.danger,
html body #choice-bubble-dialog .inline-choice-managed-row:hover .managed-option-action.danger,
html body .inline-choice-menu .inline-choice-managed-row:hover .managed-option-action.danger,
html body .table-bubble-menu .table-bubble-option-row:hover .managed-option-action.danger {
  opacity: 1 !important;
}

/* Final dashboard/card sizing override. */
html body .stats {
  gap: 10px !important;
}

html body .stats article,
html body .dashboard-kpis article,
html body:has(.enterprise-top-shell) .shell-kpi-card,
html body:has(.enterprise-sidebar) .stats article {
  padding: 8px 10px !important;
  min-height: 64px !important;
  max-height: 82px !important;
}

html body .stats article span,
html body .dashboard-kpis article span,
html body .shell-kpi-card span {
  font-size: 12px !important;
}

html body .stats article strong,
html body .dashboard-kpis article strong,
html body .shell-kpi-card strong {
  font-size: 22px !important;
  line-height: 1.1 !important;
}

/* Email automation tab accordion redesign. */
html body .workflow-automation-page {
  padding: 20px 28px !important;
  background: #f7f8f6 !important;
  min-height: 100% !important;
}

html body .workflow-automation-toolbar {
  display: flex !important;
  justify-content: flex-start !important;
  margin-bottom: 18px !important;
}

html body .workflow-automation-toolbar .primary {
  min-height: 38px !important;
  padding: 8px 16px !important;
  border-color: #3CB86C !important;
  border-radius: 7px !important;
  background: #3CB86C !important;
  color: #ffffff !important;
}

html body .workflow-accordion-list {
  display: grid !important;
  gap: 16px !important;
}

html body .workflow-accordion-card {
  border: 1px solid #e8eeeb !important;
  border-radius: 12px !important;
  background: #ffffff !important;
  overflow: hidden !important;
  box-shadow: 0 16px 38px rgba(27, 58, 42, 0.045) !important;
}

html body .workflow-accordion-card.open {
  border-color: #c8e6d4 !important;
  box-shadow: 0 18px 44px rgba(61, 186, 111, 0.08) !important;
}

html body .workflow-accordion-head {
  min-height: 80px !important;
  padding: 20px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 16px !important;
  cursor: pointer !important;
}

html body .workflow-head-main {
  min-width: 0 !important;
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
}

html body .workflow-head-icon {
  width: 36px !important;
  height: 36px !important;
  min-width: 36px !important;
  display: grid !important;
  place-items: center !important;
  border-radius: 8px !important;
  background: #f0f9f4 !important;
  color: #3CB86C !important;
}

html body .workflow-head-icon svg {
  width: 20px !important;
  height: 20px !important;
}

html body .workflow-head-main strong {
  display: block !important;
  color: #1a2e1a !important;
  font-size: 16px !important;
  font-weight: 500 !important;
  line-height: 1.25 !important;
}

html body .workflow-head-main small {
  display: block !important;
  margin-top: 4px !important;
  color: #888888 !important;
  font-size: 12px !important;
  line-height: 1.35 !important;
}

html body .workflow-head-actions {
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
}

html body .workflow-status-badge {
  min-height: 26px !important;
  padding: 4px 11px !important;
  border-radius: 999px !important;
  background: #f1efe8 !important;
  color: #5f5e5a !important;
  font-size: 12px !important;
  font-weight: 500 !important;
}

html body .workflow-status-badge.active {
  background: #eaf3de !important;
  color: #3b6d11 !important;
}

html body .workflow-mini-toggle {
  width: 36px !important;
  height: 20px !important;
  display: inline-flex !important;
  align-items: center !important;
  cursor: pointer !important;
}

html body .workflow-mini-toggle input {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  opacity: 0 !important;
}

html body .workflow-mini-toggle span {
  width: 36px !important;
  height: 20px !important;
  display: inline-flex !important;
  align-items: center !important;
  padding: 2px !important;
  border-radius: 999px !important;
  background: #dddddd !important;
}

html body .workflow-mini-toggle span::after {
  content: "" !important;
  width: 16px !important;
  height: 16px !important;
  border-radius: 50% !important;
  background: #ffffff !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.18) !important;
  transform: translateX(0) !important;
  transition: transform 0.16s ease !important;
}

html body .workflow-mini-toggle input:checked + span {
  background: #3CB86C !important;
}

html body .workflow-mini-toggle input:checked + span::after {
  transform: translateX(-16px) !important;
}

html body .workflow-chevron {
  width: 34px !important;
  height: 34px !important;
  padding: 0 !important;
  display: grid !important;
  place-items: center !important;
  border: 1px solid #d8e4dd !important;
  border-radius: 8px !important;
  background: #ffffff !important;
  color: #34443b !important;
  box-shadow: none !important;
  cursor: pointer !important;
}

html body .workflow-chevron:hover {
  border-color: #c8e6d4 !important;
  background: #f7fbf8 !important;
  color: #1f7f46 !important;
}

html body .workflow-chevron svg {
  width: 18px !important;
  height: 18px !important;
  transition: transform 0.16s ease !important;
}

html body .workflow-accordion-card.open .workflow-chevron svg {
  transform: rotate(180deg) !important;
}

html body .workflow-accordion-body {
  padding: 20px !important;
  border-top: 1px solid #f0f4f1 !important;
  background: #ffffff !important;
}

html body .workflow-fields-row {
  display: grid !important;
  gap: 18px !important;
  margin-bottom: 18px !important;
}

html body .workflow-fields-row.two {
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
}

html body .workflow-fields-row.three {
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
}

html body .workflow-fields-row > label + label {
  padding-right: 18px !important;
  border-right: 1px solid #f0f4f1 !important;
}

html body .workflow-accordion-body label {
  display: grid !important;
  gap: 8px !important;
  color: #888888 !important;
  font-size: 12px !important;
  font-weight: 500 !important;
  line-height: 1.35 !important;
}

html body .workflow-accordion-body label small {
  color: #a0a6a2 !important;
  font-size: 11px !important;
  font-weight: 400 !important;
}

html body .workflow-accordion-body input,
html body .workflow-accordion-body select {
  min-height: 38px !important;
  width: 100% !important;
  padding: 8px 12px !important;
  border: 1px solid #d8e4dd !important;
  border-radius: 7px !important;
  background: #ffffff !important;
  color: #1f2d24 !important;
  font-size: 13px !important;
  font-weight: 500 !important;
  box-shadow: none !important;
}

html body .workflow-accordion-body input:focus,
html body .workflow-accordion-body select:focus {
  border-color: #3CB86C !important;
  outline: none !important;
}

html body .workflow-conditions-panel {
  margin-top: 16px !important;
  padding-top: 16px !important;
  border-top: 1px solid #f0f4f1 !important;
}

html body .workflow-conditions-title {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  margin-bottom: 12px !important;
  color: #3CB86C !important;
}

html body .workflow-conditions-title svg {
  width: 17px !important;
  height: 17px !important;
}

html body .workflow-conditions-title h4 {
  margin: 0 !important;
  color: #1a2e1a !important;
  font-size: 13px !important;
  font-weight: 500 !important;
}

html body .workflow-conditions-list {
  display: grid !important;
  gap: 10px !important;
}

html body .workflow-accordion-body .workflow-condition-row {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.85fr) minmax(0, 0.8fr) 34px !important;
  gap: 10px !important;
  align-items: center !important;
}

html body .workflow-accordion-body .workflow-condition-row .small-icon-btn {
  width: 34px !important;
  min-width: 34px !important;
  padding: 0 !important;
  border-color: #f5c1c1 !important;
  color: #a32d2d !important;
}

html body .workflow-add-condition {
  min-height: 32px !important;
  margin-top: 10px !important;
  padding: 6px 12px !important;
  border: 1px solid #d8e4dd !important;
  border-radius: 7px !important;
  background: #ffffff !important;
  color: #33443a !important;
  box-shadow: none !important;
}

html body .workflow-card-footer {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 14px !important;
  margin-top: 18px !important;
  padding-top: 16px !important;
  border-top: 1px solid #f0f4f1 !important;
}

html body .workflow-card-footer > div {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 10px !important;
}

html body .workflow-card-footer button {
  min-height: 36px !important;
  padding: 8px 16px !important;
  border-radius: 8px !important;
  font-size: 13px !important;
  font-weight: 500 !important;
}

html body .workflow-card-footer .primary {
  border-color: #3CB86C !important;
  background: #3CB86C !important;
  color: #ffffff !important;
}

html body .workflow-card-footer .ghost {
  border: 1px solid #d8e4dd !important;
  background: #ffffff !important;
  color: #33443a !important;
  box-shadow: none !important;
}

html body .workflow-card-footer .soft-danger {
  border-color: #f5c1c1 !important;
  color: #a32d2d !important;
}

@media (max-width: 900px) {
  html body .workflow-automation-page {
    padding: 16px !important;
  }

  html body .workflow-accordion-head,
  html body .workflow-card-footer {
    align-items: flex-start !important;
    flex-direction: column !important;
  }

  html body .workflow-fields-row.two,
  html body .workflow-fields-row.three,
  html body .workflow-accordion-body .workflow-condition-row {
    grid-template-columns: 1fr !important;
  }

  html body .workflow-fields-row > label + label {
    padding-right: 0 !important;
    border-right: 0 !important;
  }
}

/* Mail templates tab redesign. */
html body .mail-templates-page {
  background: #f7f8f6 !important;
}

html body .mail-templates-toolbar {
  display: flex !important;
  justify-content: flex-start !important;
  margin: 0 0 12px !important;
}

html body .mail-templates-toolbar .primary {
  min-height: 36px !important;
  padding: 8px 16px !important;
  border-color: #3CB86C !important;
  border-radius: 7px !important;
  background: #3CB86C !important;
  color: #ffffff !important;
}

html body .mail-templates-layout {
  display: grid !important;
  grid-template-columns: 260px minmax(0, 1fr) !important;
  gap: 0 !important;
  min-height: 720px !important;
  border: 1px solid #e8eeeb !important;
  border-radius: 12px !important;
  background: #f7f8f6 !important;
  overflow: hidden !important;
}

html body .mail-template-sidebar {
  padding: 12px !important;
  border-left: 1px solid #e8eeeb !important;
  background: #ffffff !important;
}

html body .mail-template-sidebar h3 {
  margin: 0 0 12px !important;
  color: #1a2e1a !important;
  font-size: 13px !important;
  font-weight: 500 !important;
}

html body .mail-template-list {
  display: grid !important;
  gap: 8px !important;
}

html body .mail-template-item {
  width: 100% !important;
  min-height: 76px !important;
  padding: 10px 12px !important;
  display: grid !important;
  gap: 8px !important;
  border: 1px solid transparent !important;
  border-radius: 8px !important;
  background: transparent !important;
  box-shadow: none !important;
  color: #1a2e1a !important;
  text-align: right !important;
}

html body .mail-template-item:hover {
  background: #f5fdf8 !important;
}

html body .mail-template-item.active {
  border-color: #c8e6d4 !important;
  background: #f0f9f4 !important;
}

html body .mail-template-item strong {
  display: block !important;
  color: #1a2e1a !important;
  font-size: 13px !important;
  font-weight: 500 !important;
}

html body .mail-template-item small {
  display: block !important;
  margin-top: 4px !important;
  color: #888888 !important;
  font-size: 11px !important;
  line-height: 1.35 !important;
}

html body .mail-template-actions {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 6px !important;
  opacity: 0 !important;
  transition: opacity 0.14s ease !important;
}

html body .mail-template-item:hover .mail-template-actions,
html body .mail-template-item.active .mail-template-actions {
  opacity: 1 !important;
}

html body .mail-template-actions b {
  padding: 3px 7px !important;
  border: 1px solid #d8e4dd !important;
  border-radius: 999px !important;
  color: #1a6640 !important;
  font-size: 11px !important;
  font-style: normal !important;
  font-weight: 500 !important;
}

html body .mail-template-actions b.danger {
  border-color: #f5c1c1 !important;
  color: #a32d2d !important;
}

html body .mail-template-editor-card {
  margin: 20px !important;
  padding: 18px !important;
  border: 1px solid #e8eeeb !important;
  border-radius: 12px !important;
  background: #ffffff !important;
}

html body .mail-template-editor-head {
  display: flex !important;
  align-items: start !important;
  justify-content: space-between !important;
  gap: 18px !important;
  margin-bottom: 16px !important;
  padding-bottom: 12px !important;
  border-bottom: 1px solid #edf2ef !important;
}

html body .mail-template-editor-head h3 {
  margin: 0 !important;
  color: #1a2e1a !important;
  font-size: 16px !important;
  font-weight: 500 !important;
}

html body .mail-template-default {
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  color: #6b766f !important;
  font-size: 12px !important;
  white-space: nowrap !important;
}

html body .mail-template-fields {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 12px !important;
}

html body .mail-template-editor-card label,
html body .mail-template-html-field {
  display: grid !important;
  gap: 6px !important;
  color: #5d6962 !important;
  font-size: 12px !important;
  font-weight: 500 !important;
}

html body .mail-template-editor-card input,
html body .mail-template-editor-card textarea {
  width: 100% !important;
  padding: 8px 10px !important;
  border: 1px solid #d8e4dd !important;
  border-radius: 7px !important;
  background: #ffffff !important;
  color: #1f2d24 !important;
  font-size: 13px !important;
  box-shadow: none !important;
}

html body .mail-template-editor-card input:focus,
html body .mail-template-editor-card textarea:focus {
  border-color: #3CB86C !important;
  outline: none !important;
}

html body .mail-template-editor-card input[type="checkbox"] {
  width: auto !important;
  min-height: 0 !important;
  padding: 0 !important;
  border-radius: 4px !important;
}

html body .mail-merge-tags {
  margin: 16px 0 !important;
}

html body .mail-merge-tags h4 {
  margin: 0 0 8px !important;
  color: #6b766f !important;
  font-size: 12px !important;
  font-weight: 500 !important;
}

html body .mail-merge-tags div {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 8px !important;
}

html body .mail-merge-tags button {
  min-height: 28px !important;
  padding: 5px 10px !important;
  border: 1px solid #c8e6d4 !important;
  border-radius: 20px !important;
  background: #f0f9f4 !important;
  color: #1a6640 !important;
  direction: ltr !important;
  font-family: Consolas, "Courier New", monospace !important;
  font-size: 11px !important;
  box-shadow: none !important;
}

html body .mail-merge-tags button:hover {
  background: #3CB86C !important;
  color: #ffffff !important;
}

html body .mail-template-html-field textarea {
  direction: ltr !important;
  min-height: 100px !important;
  margin-top: 6px !important;
  font-family: Consolas, "Courier New", monospace !important;
  resize: vertical !important;
}

html body .mail-template-preview-card {
  margin-top: 16px !important;
  padding: 14px !important;
  border: 1px solid #e0eee4 !important;
  border-radius: 12px !important;
  background: #f9fdf9 !important;
}

html body .mail-template-preview-card h4 {
  margin: 0 0 10px !important;
  color: #6b766f !important;
  font-size: 12px !important;
  font-weight: 500 !important;
}

html body .mail-template-preview-subject {
  margin-bottom: 12px !important;
  padding-bottom: 10px !important;
  border-bottom: 1px solid #e0eee4 !important;
  color: #888888 !important;
  font-size: 12px !important;
}

html body .mail-template-preview-card pre {
  margin: 0 !important;
  white-space: pre-wrap !important;
  color: #2d3b32 !important;
  font-family: inherit !important;
  font-size: 13px !important;
  line-height: 1.7 !important;
}

html body .mail-template-editor-actions {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 10px !important;
  margin-top: 16px !important;
}

html body .mail-template-editor-actions button {
  min-height: 36px !important;
  padding: 8px 16px !important;
  border-radius: 7px !important;
}

html body .mail-template-editor-actions .primary {
  border-color: #3CB86C !important;
  background: #3CB86C !important;
  color: #ffffff !important;
}

html body .mail-template-editor-actions .ghost {
  border: 1px solid #d8e4dd !important;
  background: #ffffff !important;
  color: #33443a !important;
  box-shadow: none !important;
}

html body .mail-template-editor-actions .soft-danger {
  border-color: #f5c1c1 !important;
  color: #a32d2d !important;
}

@media (max-width: 900px) {
  html body .mail-templates-layout {
    grid-template-columns: 1fr !important;
  }

  html body .mail-template-sidebar {
    border-left: 0 !important;
    border-bottom: 1px solid #e8eeeb !important;
  }

  html body .mail-template-fields {
    grid-template-columns: 1fr !important;
  }
}

/* System settings: accounts and integrations redesign. */
html body .customization-grid:has(.integrations-layout) {
  display: block !important;
}

html body .integrations-layout {
  display: grid !important;
  grid-template-columns: 200px minmax(0, 1fr) !important;
  align-items: start !important;
  gap: 0 !important;
  min-height: 720px !important;
  background: #f7f8f6 !important;
  border: 1px solid #e8eeeb !important;
  border-radius: 12px !important;
  overflow: hidden !important;
}

html body .integrations-sidebar {
  position: sticky !important;
  top: calc(var(--app-header-bottom, 136px) + 16px) !important;
  min-height: 720px !important;
  padding: 18px 0 !important;
  background: #ffffff !important;
  border-left: 1px solid #e8eeeb !important;
}

html body .integrations-sidebar-group {
  display: grid !important;
  gap: 2px !important;
  margin-bottom: 18px !important;
}

html body .integrations-sidebar-group > span {
  padding: 0 18px 6px !important;
  color: #a1aaa4 !important;
  font-size: 11px !important;
  font-weight: 500 !important;
}

html body .integrations-sidebar-group a {
  min-height: 34px !important;
  display: flex !important;
  align-items: center !important;
  padding: 0 18px !important;
  border-right: 3px solid transparent !important;
  color: #5d6962 !important;
  font-size: 13px !important;
  text-decoration: none !important;
}

html body .integrations-sidebar-group a.active,
html body .integrations-sidebar-group a:hover {
  background: #f0f9f4 !important;
  border-right-color: #3CB86C !important;
  color: #1a6640 !important;
}

html body .integrations-content {
  padding: 20px !important;
  background: #f7f8f6 !important;
}

html body .integrations-page-head {
  margin: 0 0 16px !important;
}

html body .integrations-page-head span {
  color: #7a8580 !important;
  font-size: 12px !important;
}

html body .integrations-page-head h2 {
  margin: 4px 0 3px !important;
  color: #1a2e1a !important;
  font-size: 20px !important;
  font-weight: 600 !important;
}

html body .integrations-page-head p {
  margin: 0 !important;
  color: #888888 !important;
  font-size: 12px !important;
}

html body .integration-settings-card {
  margin-bottom: 14px !important;
  padding: 14px !important;
  border: 1px solid #e8eeeb !important;
  border-radius: 12px !important;
  background: #ffffff !important;
  box-shadow: none !important;
}

html body .settings-card-title {
  display: flex !important;
  align-items: flex-start !important;
  gap: 8px !important;
  margin-bottom: 14px !important;
}

html body .settings-card-head.with-action {
  display: flex !important;
  align-items: flex-start !important;
  justify-content: space-between !important;
  gap: 12px !important;
}

html body .settings-card-icon {
  width: 18px !important;
  height: 18px !important;
  display: grid !important;
  place-items: center !important;
  color: #3CB86C !important;
}

html body .settings-card-icon svg {
  width: 16px !important;
  height: 16px !important;
}

html body .settings-card-title h3 {
  margin: 0 !important;
  color: #1a2e1a !important;
  font-size: 14px !important;
  font-weight: 500 !important;
}

html body .settings-card-title p {
  margin: 3px 0 0 !important;
  color: #888888 !important;
  font-size: 12px !important;
}

html body .settings-form-grid {
  display: grid !important;
  gap: 12px !important;
}

html body .settings-form-grid.two {
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
}

html body .settings-form-grid.three {
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
}

html body .integrations-layout label {
  display: grid !important;
  gap: 5px !important;
  color: #526057 !important;
  font-size: 11px !important;
}

html body .integrations-layout input,
html body .integrations-layout select {
  min-height: 34px !important;
  width: 100% !important;
  padding: 7px 10px !important;
  border: 1px solid #d8e4dd !important;
  border-radius: 7px !important;
  background: #ffffff !important;
  color: #1f2d24 !important;
  font-size: 13px !important;
  box-shadow: none !important;
}

html body .integrations-layout .connected-address-field {
  background: #f9fdf9 !important;
  color: #3b6d11 !important;
}

html body .integration-actions-row {
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: center !important;
  gap: 10px !important;
  margin-top: 12px !important;
}

html body .integrations-layout button.primary,
html body .integrations-layout button.primary:not(.ghost):not(.icon-btn) {
  min-height: 34px !important;
  padding: 7px 14px !important;
  border-color: #3CB86C !important;
  border-radius: 7px !important;
  background: #3CB86C !important;
  color: #ffffff !important;
}

html body .integrations-layout button.ghost,
html body .integrations-layout button.ghost:not(.icon-btn) {
  min-height: 34px !important;
  padding: 7px 14px !important;
  border: 1px solid #d8e4dd !important;
  border-radius: 7px !important;
  background: #ffffff !important;
  color: #33443a !important;
  box-shadow: none !important;
}

html body .status-badge {
  min-height: 24px !important;
  display: inline-flex !important;
  align-items: center !important;
  padding: 3px 10px !important;
  border-radius: 999px !important;
  font-size: 12px !important;
  font-weight: 500 !important;
}

html body .status-badge.ok {
  background: #eaf8df !important;
  color: #3b6d11 !important;
}

html body .status-badge.warn {
  background: #fff1d9 !important;
  color: #b66a00 !important;
}

html body .integration-code-box {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto !important;
  align-items: center !important;
  gap: 8px !important;
  margin: 10px 0 !important;
  padding: 8px !important;
  border: 1px solid #e2e9e4 !important;
  border-radius: 7px !important;
  background: #f4f6f4 !important;
}

html body .integration-code-box code {
  direction: ltr !important;
  overflow: hidden !important;
  color: #233127 !important;
  font-family: Consolas, "Courier New", monospace !important;
  font-size: 12px !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

html body .copy-code-btn {
  min-height: 26px !important;
  padding: 4px 9px !important;
  border: 0 !important;
  border-radius: 6px !important;
  background: #e9f7ef !important;
  color: #1a6640 !important;
  font-size: 12px !important;
}

html body .settings-toggle-row {
  grid-template-columns: 36px minmax(0, 1fr) !important;
  align-items: center !important;
  gap: 10px !important;
  margin: 10px 0 !important;
}

html body .settings-toggle-row > input {
  position: absolute !important;
  inline-size: 1px !important;
  block-size: 1px !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

html body .settings-toggle-ui {
  width: 36px !important;
  height: 20px !important;
  display: inline-flex !important;
  align-items: center !important;
  padding: 2px !important;
  border-radius: 999px !important;
  background: #dddddd !important;
  transition: background-color 0.16s ease !important;
}

html body .settings-toggle-ui::after {
  content: "" !important;
  width: 16px !important;
  height: 16px !important;
  border-radius: 50% !important;
  background: #ffffff !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.18) !important;
  transform: translateX(0) !important;
  transition: transform 0.16s ease !important;
}

html body .settings-toggle-row > input:checked + .settings-toggle-ui {
  background: #3CB86C !important;
}

html body .settings-toggle-row > input:checked + .settings-toggle-ui::after {
  transform: translateX(-16px) !important;
}

html body .settings-toggle-row strong {
  color: #1a2e1a !important;
  font-size: 13px !important;
  font-weight: 500 !important;
}

html body .settings-toggle-row small {
  display: block !important;
  margin-top: 2px !important;
  color: #888888 !important;
  font-size: 12px !important;
  line-height: 1.35 !important;
}

html body .settings-list {
  display: grid !important;
  gap: 8px !important;
  margin-top: 10px !important;
}

html body .integrations-layout .institution-code-row,
html body .fund-settings-row {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto !important;
  align-items: center !important;
  gap: 8px !important;
}

html body .fund-settings-row {
  grid-template-columns: minmax(0, 1fr) auto auto !important;
}

html body .fund-default-radio {
  display: inline-flex !important;
  grid-template-columns: none !important;
  align-items: center !important;
  gap: 6px !important;
  color: #526057 !important;
  white-space: nowrap !important;
}

html body .fund-default-radio input {
  width: auto !important;
  min-height: 0 !important;
}

html body .danger-remove-btn,
html body .integrations-layout .institution-code-row .small-icon-btn {
  width: 34px !important;
  min-width: 34px !important;
  padding: 0 !important;
  color: #b42318 !important;
}

html body .add-inline-btn {
  margin-top: 10px !important;
}

html body .mailhook-simple-block {
  padding: 10px 0 !important;
  border-top: 1px solid #edf2ef !important;
}

html body .mailhook-simple-block:first-of-type {
  border-top: 0 !important;
}

html body .mailhook-filter-fields {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 8px !important;
}

html body .ops-settings-stack {
  display: grid !important;
  gap: 12px !important;
}

@media (max-width: 900px) {
  html body .integrations-layout {
    grid-template-columns: 1fr !important;
  }

  html body .integrations-sidebar {
    position: static !important;
    min-height: 0 !important;
    border-left: 0 !important;
    border-bottom: 1px solid #e8eeeb !important;
  }

  html body .settings-form-grid.two,
  html body .settings-form-grid.three,
  html body .mailhook-filter-fields {
    grid-template-columns: 1fr !important;
  }
}

/* Final email automation polish override. */
html body .workflow-automation-page .workflow-accordion-body input:not([type="hidden"]),
html body .workflow-automation-page .workflow-accordion-body select,
html body:has(.enterprise-sidebar) .workflow-automation-page .workflow-accordion-body input:not([type="hidden"]),
html body:has(.enterprise-sidebar) .workflow-automation-page .workflow-accordion-body select {
  min-height: 38px !important;
  height: 38px !important;
  padding: 8px 12px !important;
  border-width: 1px !important;
  border-style: solid !important;
  border-color: #d8e4dd !important;
  border-radius: 7px !important;
  background: #ffffff !important;
  background-color: #ffffff !important;
  color: #1f2d24 !important;
  font-size: 13px !important;
  box-shadow: none !important;
}

html body .workflow-automation-page .workflow-accordion-body input:not([type="hidden"]):focus,
html body .workflow-automation-page .workflow-accordion-body select:focus {
  border-color: #3CB86C !important;
  outline: none !important;
  box-shadow: 0 0 0 2px rgba(61, 186, 111, 0.12) !important;
}

/* Final widget controls polish. */
html body .widgets .widget-toolbar-add,
html body .donor-widgets .widget-toolbar-add,
html body button.widget-toolbar-add,
html body:has(.enterprise-sidebar) .widgets .widget-toolbar-add,
html body:has(.enterprise-sidebar) button.widget-toolbar-add {
  width: 32px !important;
  min-width: 32px !important;
  max-width: 32px !important;
  height: 32px !important;
  min-height: 32px !important;
  max-height: 32px !important;
  padding: 0 !important;
  border-radius: 9px !important;
  border: 1px solid #3CB86C !important;
  background: #3CB86C !important;
  color: #ffffff !important;
  font-size: 20px !important;
  line-height: 1 !important;
  font-weight: 500 !important;
  box-shadow: none !important;
}

html body .widgets .widget-toolbar-add:hover,
html body .donor-widgets .widget-toolbar-add:hover,
html body button.widget-toolbar-add:hover {
  background: #34a862 !important;
  border-color: #34a862 !important;
  transform: none !important;
}

html body .widgets .data-grid th,
html body .widgets .widget-table th,
html body .donor-widgets .data-grid th,
html body .donor-widgets .widget-table th {
  position: relative !important;
  overflow: visible !important;
}

html body .widgets .data-grid th .column-resizer,
html body .widgets .widget-table th .column-resizer,
html body .donor-widgets .data-grid th .column-resizer,
html body .donor-widgets .widget-table th .column-resizer,
html body:has(.enterprise-top-shell) .widgets .data-grid th .column-resizer,
html body:has(.enterprise-top-shell) .donor-widgets .data-grid th .column-resizer {
  position: absolute !important;
  inset-block: 8px !important;
  inset-inline-start: -3px !important;
  width: 7px !important;
  border-radius: 999px !important;
  background: rgba(61, 186, 111, 0.22) !important;
  cursor: col-resize !important;
  opacity: 0.75 !important;
  z-index: 8 !important;
  pointer-events: auto !important;
}

html body .widgets .data-grid th:hover .column-resizer,
html body .widgets .widget-table th:hover .column-resizer,
html body .donor-widgets .data-grid th:hover .column-resizer,
html body .donor-widgets .widget-table th:hover .column-resizer,
html body .widgets .data-grid th .column-resizer:hover,
html body .donor-widgets .data-grid th .column-resizer:hover {
  width: 9px !important;
  background: #3CB86C !important;
  opacity: 1 !important;
}

/* Dashboard redesign aligned to the provided reference. */
html body:has(.enterprise-sidebar) .view-dashboard,
html body:has(.enterprise-top-shell) .view-dashboard {
  background: #f7f8f6 !important;
}

html body:has(.enterprise-sidebar) .management-dashboard,
html body:has(.enterprise-top-shell) .management-dashboard {
  direction: rtl !important;
  display: grid !important;
  gap: 22px !important;
  padding: 28px 30px !important;
  background: #f7f8f6 !important;
  color: #213127 !important;
  font-family: var(--font-text) !important;
}

html body:has(.enterprise-sidebar) .management-dashboard-head,
html body:has(.enterprise-top-shell) .management-dashboard-head {
  display: flex !important;
  align-items: flex-start !important;
  justify-content: space-between !important;
  gap: 20px !important;
  padding: 0 !important;
}

html body .dashboard-title-block {
  text-align: right !important;
}

html body:has(.enterprise-sidebar) .management-dashboard-head h2,
html body:has(.enterprise-top-shell) .management-dashboard-head h2 {
  margin: 0 !important;
  color: #1f2f26 !important;
  font-size: 28px !important;
  line-height: 1.15 !important;
  font-weight: 500 !important;
  letter-spacing: 0 !important;
}

html body:has(.enterprise-sidebar) .management-dashboard-head p,
html body:has(.enterprise-top-shell) .management-dashboard-head p {
  margin: 7px 0 0 !important;
  color: #686d68 !important;
  font-size: 16px !important;
  line-height: 1.35 !important;
}

html body .dashboard-period-tabs {
  display: inline-grid !important;
  grid-template-columns: repeat(4, minmax(70px, 1fr)) !important;
  gap: 0 !important;
  padding: 0 !important;
  min-height: 52px !important;
  overflow: hidden !important;
  border: 1px solid #e3ebe6 !important;
  border-radius: 12px !important;
  background: #ffffff !important;
  box-shadow: 0 1px 2px rgba(33, 49, 39, 0.04) !important;
  direction: rtl !important;
}

html body .dashboard-period-tabs button {
  min-height: 52px !important;
  padding: 0 22px !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  color: #8c8d8a !important;
  font-size: 15px !important;
  font-weight: 500 !important;
}

html body .dashboard-period-tabs button.active {
  margin: 6px !important;
  min-height: 40px !important;
  border-radius: 9px !important;
  background: #3CB86C !important;
  color: #ffffff !important;
}

html body:has(.enterprise-sidebar) .management-kpis,
html body:has(.enterprise-top-shell) .management-kpis {
  display: grid !important;
  grid-template-columns: 1.05fr repeat(4, minmax(150px, 1fr)) !important;
  gap: 18px !important;
}

html body:has(.enterprise-sidebar) .management-kpi,
html body:has(.enterprise-sidebar) .management-card,
html body:has(.enterprise-top-shell) .management-kpi,
html body:has(.enterprise-top-shell) .management-card {
  border: 1px solid #e2ebe6 !important;
  border-radius: 13px !important;
  background: #ffffff !important;
  box-shadow: 0 1px 2px rgba(33, 49, 39, 0.04) !important;
}

html body:has(.enterprise-sidebar) .management-kpi,
html body:has(.enterprise-top-shell) .management-kpi {
  display: grid !important;
  align-content: start !important;
  gap: 7px !important;
  min-height: 218px !important;
  max-height: none !important;
  padding: 28px 26px !important;
  overflow: hidden !important;
  position: relative !important;
}

html body .management-kpi::before {
  content: "□" !important;
  position: static !important;
  width: auto !important;
  color: #3CB86C !important;
  background: transparent !important;
  font-size: 18px !important;
  line-height: 1 !important;
}

html body .management-kpi.warning-kpi::before {
  color: #a46a1e !important;
}

html body:has(.enterprise-sidebar) .management-kpi span,
html body:has(.enterprise-top-shell) .management-kpi span {
  color: #9a9b98 !important;
  font-size: 15px !important;
  line-height: 1.2 !important;
  font-weight: 600 !important;
}

html body:has(.enterprise-sidebar) .management-kpi strong,
html body:has(.enterprise-top-shell) .management-kpi strong {
  color: #213127 !important;
  font-family: var(--font-number) !important;
  font-size: 38px !important;
  line-height: 1.08 !important;
  font-weight: 500 !important;
  direction: rtl !important;
  text-align: right !important;
}

html body:has(.enterprise-sidebar) .management-kpi em,
html body:has(.enterprise-top-shell) .management-kpi em,
html body:has(.enterprise-sidebar) .management-kpi small,
html body:has(.enterprise-top-shell) .management-kpi small {
  color: #3CB86C !important;
  font-size: 14px !important;
  font-style: normal !important;
  font-weight: 500 !important;
}

html body:has(.enterprise-sidebar) .management-kpi.warning-kpi em,
html body:has(.enterprise-top-shell) .management-kpi.warning-kpi em {
  color: #a46a1e !important;
}

html body:has(.enterprise-sidebar) .management-kpi.primary-kpi,
html body:has(.enterprise-top-shell) .management-kpi.primary-kpi {
  background: #173f4d !important;
  border-color: #173f4d !important;
  color: #ffffff !important;
}

html body .management-kpi.primary-kpi::before,
html body .management-kpi.primary-kpi span,
html body .management-kpi.primary-kpi strong {
  color: #ffffff !important;
}

html body .management-kpi.primary-kpi em,
html body .management-kpi.primary-kpi small {
  color: #40c276 !important;
}

html body .dashboard-kpi-progress {
  width: 100% !important;
  height: 8px !important;
  margin-top: 8px !important;
  border-radius: 999px !important;
  background: rgba(255, 255, 255, 0.62) !important;
  overflow: hidden !important;
}

html body .dashboard-kpi-progress i {
  display: block !important;
  height: 100% !important;
  border-radius: inherit !important;
  background: #3CB86C !important;
}

html body .management-dashboard-grid {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 22px !important;
  align-items: stretch !important;
}

html body:has(.enterprise-sidebar) .management-card,
html body:has(.enterprise-top-shell) .management-card {
  min-width: 0 !important;
  min-height: 292px !important;
  padding: 26px !important;
}

html body .approvals-card,
html body .forecast-card {
  min-height: 520px !important;
}

html body .refusals-card,
html body .commitment-card,
html body .leaderboard-card {
  min-height: 430px !important;
}

html body:has(.enterprise-sidebar) .management-card-head,
html body:has(.enterprise-top-shell) .management-card-head {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 12px !important;
  margin: 0 0 22px !important;
}

html body:has(.enterprise-sidebar) .management-card-head h3,
html body:has(.enterprise-top-shell) .management-card-head h3 {
  margin: 0 !important;
  color: #26382d !important;
  font-size: 18px !important;
  line-height: 1.25 !important;
  font-weight: 600 !important;
}

html body:has(.enterprise-sidebar) .management-card-head span,
html body:has(.enterprise-top-shell) .management-card-head span {
  color: #a4a5a1 !important;
  font-size: 13px !important;
  font-weight: 600 !important;
}

html body .dashboard-progress-row {
  display: grid !important;
  grid-template-columns: minmax(90px, 1fr) auto !important;
  gap: 8px 12px !important;
  align-items: center !important;
  margin: 16px 0 !important;
}

html body .dashboard-progress-row span {
  color: #686d68 !important;
  font-size: 16px !important;
  font-weight: 600 !important;
}

html body .dashboard-progress-row b {
  color: #26382d !important;
  font-size: 18px !important;
  font-weight: 500 !important;
}

html body .dashboard-progress-row i {
  grid-column: 1 / -1 !important;
  display: block !important;
  height: 7px !important;
  border-radius: 999px !important;
  background: #eef3ef !important;
  overflow: hidden !important;
}

html body .dashboard-progress-row i em {
  display: block !important;
  height: 100% !important;
  border-radius: inherit !important;
  background: #3CB86C !important;
}

html body .outcomes-layout {
  display: grid !important;
  grid-template-columns: 1fr 140px !important;
  align-items: center !important;
  gap: 18px !important;
}

html body .outcomes-pie {
  width: 156px !important;
  aspect-ratio: 1 !important;
  justify-self: center !important;
  display: grid !important;
  place-items: center !important;
  border-radius: 50% !important;
  background: conic-gradient(var(--segments)) !important;
  position: relative !important;
}

html body .outcomes-pie::after {
  content: "" !important;
  position: absolute !important;
  inset: 34px !important;
  border-radius: 50% !important;
  background: #ffffff !important;
}

html body .outcomes-pie strong {
  position: relative !important;
  z-index: 1 !important;
  color: #26382d !important;
  font-size: 24px !important;
  font-weight: 500 !important;
}

html body .outcomes-legend {
  display: grid !important;
  gap: 14px !important;
}

html body .outcomes-legend span {
  display: grid !important;
  grid-template-columns: 34px 12px 1fr !important;
  align-items: center !important;
  gap: 10px !important;
  color: #26382d !important;
  font-size: 16px !important;
  font-weight: 600 !important;
}

html body .outcomes-legend b {
  width: 11px !important;
  height: 11px !important;
  border-radius: 50% !important;
}

html body .dashboard-bar-chart {
  display: grid !important;
  grid-template-columns: repeat(6, minmax(24px, 1fr)) !important;
  align-items: end !important;
  gap: 12px !important;
  height: 180px !important;
}

html body .dashboard-bar-chart div {
  height: 100% !important;
  display: grid !important;
  grid-template-rows: 1fr auto !important;
  gap: 10px !important;
  align-items: end !important;
}

html body .dashboard-bar-chart i {
  width: 100% !important;
  height: var(--bar) !important;
  min-height: 24px !important;
  border-radius: 6px 6px 0 0 !important;
  background: #c6e4d3 !important;
}

html body .dashboard-bar-chart .active i {
  background: #3CB86C !important;
}

html body .dashboard-bar-chart span {
  color: #9a9b98 !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  text-align: center !important;
}

html body .dashboard-mini-grid {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 14px !important;
}

html body .dashboard-mini-metric {
  min-height: 120px !important;
  display: grid !important;
  align-content: center !important;
  gap: 8px !important;
  padding: 16px !important;
  border-radius: 10px !important;
  background: #f6f7f5 !important;
  text-align: center !important;
}

html body .dashboard-mini-metric span,
html body .dashboard-mini-metric small {
  color: #9a9b98 !important;
  font-size: 13px !important;
  font-weight: 600 !important;
}

html body .dashboard-mini-metric strong {
  color: #26382d !important;
  font-size: 28px !important;
  line-height: 1 !important;
  font-weight: 500 !important;
}

html body .dashboard-mini-metric.green strong {
  color: #3CB86C !important;
}

html body .dashboard-mini-metric.red strong,
html body .refusals-card .management-card-head {
  color: #bd3b3b !important;
}

html body .dashboard-mini-metric.amber strong {
  color: #a46a1e !important;
}

html body #app .postal-receipts-summary {
  display: grid !important;
  grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
  gap: 12px !important;
  margin: 14px 0 18px !important;
}

html body #app .postal-receipts-summary article {
  min-height: 96px !important;
  display: grid !important;
  align-content: center !important;
  gap: 7px !important;
  padding: 14px 16px !important;
  border: 1px solid #dce7ef !important;
  border-radius: 8px !important;
  background: #f8fbfb !important;
  text-align: right !important;
}

html body #app .postal-receipts-summary span,
html body #app .postal-receipts-summary em {
  color: #66747d !important;
  font-size: 13px !important;
  font-style: normal !important;
  font-weight: 500 !important;
  line-height: 1.25 !important;
}

html body #app .postal-receipts-summary strong {
  color: #173f49 !important;
  font-size: 28px !important;
  line-height: 1 !important;
  font-weight: 700 !important;
}

@media (max-width: 900px) {
  html body #app .postal-receipts-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 560px) {
  html body #app .postal-receipts-summary {
    grid-template-columns: 1fr !important;
  }
}

html body .dashboard-list {
  display: grid !important;
  gap: 16px !important;
}

html body .dashboard-approval-row,
html body .dashboard-refusal-row {
  display: grid !important;
  grid-template-columns: 1fr auto auto auto !important;
  align-items: center !important;
  gap: 10px !important;
  padding-bottom: 14px !important;
  border-bottom: 1px solid #edf1ee !important;
}

html body .dashboard-approval-row strong,
html body .dashboard-refusal-row strong {
  color: #26382d !important;
  font-size: 17px !important;
  line-height: 1.2 !important;
  font-weight: 600 !important;
}

html body .dashboard-approval-row span {
  display: block !important;
  margin-top: 4px !important;
  color: #9a9b98 !important;
  font-size: 13px !important;
}

html body .dashboard-approval-row em {
  padding: 6px 12px !important;
  border-radius: 999px !important;
  background: #f6ead4 !important;
  color: #a46a1e !important;
  font-style: normal !important;
  font-size: 13px !important;
  white-space: nowrap !important;
}

html body .dashboard-outline-btn {
  min-width: 72px !important;
  min-height: 48px !important;
  padding: 8px 14px !important;
  border: 1px solid #b9bfbb !important;
  border-radius: 10px !important;
  background: #ffffff !important;
  color: #1f2f26 !important;
  font-size: 17px !important;
}

html body .dashboard-refusal-row {
  grid-template-columns: minmax(100px, 1fr) auto minmax(100px, 1fr) !important;
}

html body .dashboard-refusal-row b {
  padding: 9px 16px !important;
  border-radius: 999px !important;
  background: #fde6e6 !important;
  color: #bd3b3b !important;
  font-size: 14px !important;
  font-weight: 500 !important;
  text-align: center !important;
}

html body .dashboard-refusal-row span {
  color: #8d908c !important;
  font-size: 17px !important;
}

html body .dashboard-danger-link {
  width: 100% !important;
  margin-top: 18px !important;
  min-height: 48px !important;
  border: 1px solid #f2aaaa !important;
  border-radius: 10px !important;
  background: #ffffff !important;
  color: #bd3b3b !important;
  font-size: 17px !important;
}

html body .dashboard-payment-split {
  margin-top: 20px !important;
  padding-top: 18px !important;
  border-top: 1px solid #edf1ee !important;
}

html body .dashboard-leaderboard {
  display: grid !important;
  gap: 14px !important;
}

html body .dashboard-leaderboard div {
  display: grid !important;
  grid-template-columns: 26px 42px minmax(86px, 1fr) minmax(70px, 1fr) auto !important;
  align-items: center !important;
  gap: 10px !important;
  padding-bottom: 14px !important;
  border-bottom: 1px solid #edf1ee !important;
}

html body .dashboard-leaderboard span {
  color: #a4a5a1 !important;
  font-size: 18px !important;
  text-align: center !important;
}

html body .dashboard-leaderboard em {
  width: 38px !important;
  height: 38px !important;
  display: grid !important;
  place-items: center !important;
  border-radius: 50% !important;
  background: #e8f6ef !important;
  color: #3CB86C !important;
  font-style: normal !important;
  font-size: 13px !important;
  font-weight: 700 !important;
}

html body .dashboard-leaderboard strong {
  color: #26382d !important;
  font-size: 17px !important;
  line-height: 1.15 !important;
}

html body .dashboard-leaderboard i {
  height: 7px !important;
  border-radius: 999px !important;
  background: #eef3ef !important;
  overflow: hidden !important;
}

html body .dashboard-leaderboard i b {
  display: block !important;
  height: 100% !important;
  border-radius: inherit !important;
  background: #3CB86C !important;
}

html body .dashboard-leaderboard small {
  color: #26382d !important;
  font-size: 15px !important;
  font-weight: 600 !important;
  white-space: nowrap !important;
}

html body [data-dashboard-drilldown="true"] {
  cursor: pointer !important;
}

html body [data-dashboard-drilldown="true"]:hover {
  border-color: #c8e6d4 !important;
  box-shadow: 0 10px 28px rgba(61, 186, 111, 0.1) !important;
}

html body [data-dashboard-drilldown="true"]:focus-visible {
  outline: 2px solid #3CB86C !important;
  outline-offset: 3px !important;
}

html body .dashboard-drilldown-notice {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 12px !important;
  margin: 0 0 14px !important;
  padding: 10px 14px !important;
  border: 1px solid #c8e6d4 !important;
  border-radius: 10px !important;
  background: #f0f9f4 !important;
  color: #1f5b34 !important;
}

html body .dashboard-drilldown-notice span {
  font-size: 13px !important;
  font-weight: 600 !important;
}

html body .dashboard-drilldown-notice button {
  min-height: 30px !important;
  padding: 5px 10px !important;
  border-radius: 8px !important;
  font-size: 12px !important;
  color: #1f5b34 !important;
}

/* Final table toolbar alignment polish. */
html body .data-grid-panel .table-search-row,
html body .panel > .table-search-row,
html body .records-screen-panel .table-search-row {
  direction: rtl !important;
}

html body .data-grid-panel .table-toolbar-meta,
html body .panel > .table-search-row .table-toolbar-meta,
html body .records-screen-panel .table-toolbar-meta {
  width: 100% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 10px !important;
  direction: rtl !important;
}

html body .data-grid-panel .table-toolbar-meta > input.table-free-search,
html body .panel > .table-search-row .table-toolbar-meta > input.table-free-search,
html body .records-screen-panel .table-toolbar-meta > input.table-free-search,
html body:has(.enterprise-top-shell) main.main.view-records .records-screen-panel .table-toolbar-meta > input.table-free-search {
  order: 0 !important;
  width: 310px !important;
  min-width: 260px !important;
  max-width: 360px !important;
  flex: 0 0 310px !important;
  height: 36px !important;
  min-height: 36px !important;
  max-height: 36px !important;
  padding: 8px 14px !important;
  font-size: 13px !important;
}

html body .data-grid-panel .table-toolbar-meta > .table-filter-drawer-toggle,
html body .panel > .table-search-row .table-toolbar-meta > .table-filter-drawer-toggle,
html body .records-screen-panel .table-toolbar-meta > .table-filter-drawer-toggle {
  order: 1 !important;
}

html body .data-grid-panel .table-toolbar-meta > .records-toolbar-import,
html body .panel > .table-search-row .table-toolbar-meta > .records-toolbar-import,
html body .records-screen-panel .table-toolbar-meta > .records-toolbar-import {
  order: 2 !important;
}

html body .data-grid-panel .table-toolbar-meta > .records-toolbar-export,
html body .panel > .table-search-row .table-toolbar-meta > .records-toolbar-export,
html body .records-screen-panel .table-toolbar-meta > .records-toolbar-export {
  order: 3 !important;
}

html body .data-grid-panel .table-toolbar-meta > .table-toolbar-add-new,
html body .panel > .table-search-row .table-toolbar-meta > .table-toolbar-add-new,
html body .records-screen-panel .table-toolbar-meta > .records-toolbar-add-new {
  order: 4 !important;
}

html body .data-grid-panel .table-toolbar-meta > button:not(.records-toolbar-settings):not(.table-filter-settings),
html body .panel > .table-search-row .table-toolbar-meta > button:not(.records-toolbar-settings):not(.table-filter-settings),
html body .records-screen-panel .table-toolbar-meta > button:not(.records-toolbar-settings):not(.table-filter-settings) {
  margin-inline-start: 0 !important;
  margin-inline-end: 0 !important;
}

html body .data-grid-panel .table-toolbar-meta > .records-toolbar-settings,
html body .data-grid-panel .table-toolbar-meta > .table-filter-settings,
html body .panel > .table-search-row .table-toolbar-meta > .records-toolbar-settings,
html body .panel > .table-search-row .table-toolbar-meta > .table-filter-settings,
html body .records-screen-panel .table-toolbar-meta > .records-toolbar-settings,
html body .records-screen-panel .table-toolbar-meta > .table-filter-settings {
  order: 100 !important;
  margin-inline-start: auto !important;
  margin-inline-end: 0 !important;
}

@media (max-width: 1080px) {
  html body:has(.enterprise-sidebar) .management-kpis,
  html body:has(.enterprise-top-shell) .management-kpis {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  html body .management-dashboard-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 820px) {
  html body:has(.enterprise-sidebar) .management-dashboard,
  html body:has(.enterprise-top-shell) .management-dashboard {
    padding: 18px !important;
  }

  html body:has(.enterprise-sidebar) .management-dashboard-head,
  html body:has(.enterprise-top-shell) .management-dashboard-head,
  html body:has(.enterprise-sidebar) .management-kpis,
  html body:has(.enterprise-top-shell) .management-kpis,
  html body .management-dashboard-grid,
  html body .outcomes-layout,
  html body .dashboard-mini-grid {
    grid-template-columns: 1fr !important;
  }

  html body .management-dashboard-head {
    display: grid !important;
  }

  html body .dashboard-period-tabs {
    width: 100% !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  html body .dashboard-approval-row,
  html body .dashboard-refusal-row,
  html body .dashboard-leaderboard div {
    grid-template-columns: 1fr !important;
  }
}

/* Final override: the incentive wheel is a visual control, not a standard CRM button. */
html body #app .main .incentive-games-arena button.prize-wheel,
html body #app .main .incentive-games-arena button.prize-wheel:not(.ghost):not(.icon-btn):not(.table-link):not(.calendar-day):not(.managed-select-button):not(.table-bubble-current) {
  display: block !important;
  width: 100% !important;
  height: auto !important;
  min-width: 0 !important;
  min-height: 0 !important;
  aspect-ratio: 1 / 1 !important;
  padding: 0 !important;
  border: 9px solid #26323a !important;
  border-radius: 50% !important;
  background: conic-gradient(var(--wheel-gradient)) !important;
  background-color: transparent !important;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.18) !important;
  color: #ffffff !important;
  overflow: hidden !important;
  cursor: pointer !important;
  transform: rotate(var(--wheel-rotation, 0deg)) !important;
  transition: transform var(--wheel-spin-duration, 6200ms) cubic-bezier(0.08, 0.82, 0.16, 1) !important;
  will-change: transform !important;
}

html body #app .main .incentive-games-arena button.wheel-bonus-button,
html body #app .main .incentive-games-arena button.wheel-bonus-button:not(.ghost):not(.icon-btn):not(.table-link):not(.calendar-day):not(.managed-select-button):not(.table-bubble-current) {
  min-width: min(310px, 78vw) !important;
  min-height: 54px !important;
  height: auto !important;
  padding: 8px 24px !important;
  border: 0 !important;
  border-radius: 999px !important;
  background: #34c76f !important;
  color: #ffffff !important;
}

html body .email-conversation-widget {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

html body .email-conversation-widget .widget-head {
  display: flex !important;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

html body .email-conversation-widget .widget-head span {
  color: #64748b;
  font-size: 0.86rem;
}

html body .email-widget-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

html body .email-mailbox-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

html body .email-mailbox-summary span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 30px;
  padding: 5px 10px;
  border: 1px solid #dbe4ee;
  border-radius: 999px;
  background: #f8fafc;
  color: #475569;
  font-size: 0.86rem;
}

html body .email-mailbox-summary strong {
  color: #0f172a;
}

html body .email-compose-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  padding: 12px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  background: #f8fafc;
}

html body .email-compose-form .wide {
  grid-column: 1 / -1;
}

html body .email-compose-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

html body .email-compose-title strong {
  color: #0f172a;
}

html body .email-compose-actions {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
}

html body .email-compose-actions button {
  min-width: 170px;
}

html body .email-compose-form textarea {
  min-height: 94px;
  resize: vertical;
}

html body .email-thread-list {
  display: grid;
  gap: 9px;
  max-height: 340px;
  overflow: auto;
  padding-inline-end: 3px;
}

html body .email-thread-item {
  border: 1px solid #dbe4ee;
  border-radius: 8px;
  padding: 10px 12px;
  background: #ffffff;
}

html body .email-thread-item.sent {
  border-inline-start: 4px solid #2563eb;
}

html body .email-thread-item.received {
  border-inline-start: 4px solid #16a34a;
}

html body .email-thread-item header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: #64748b;
  font-size: 0.82rem;
}

html body .email-thread-item b {
  display: block;
  margin-top: 5px;
  color: #0f172a;
}

html body .email-thread-item small {
  display: block;
  margin-top: 3px;
  color: #64748b;
}

html body .email-thread-item p {
  margin: 5px 0 0;
  color: #475569;
  line-height: 1.55;
}

html body .email-thread-item footer {
  display: flex;
  justify-content: flex-start;
  margin-top: 8px;
}

html body .email-thread-item footer button {
  min-height: 32px;
  padding-block: 4px;
}

html body .email-empty-state {
  padding: 18px;
  text-align: center;
  color: #64748b;
}

@media (max-width: 760px) {
  html body .email-compose-form {
    grid-template-columns: 1fr;
  }
}

html body .gmail-mailbox-shell {
  display: grid;
  grid-template-columns: minmax(210px, 250px) minmax(0, 1fr);
  min-height: 680px;
  margin-top: 10px;
  border: 1px solid #d7e2ec;
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(247, 250, 252, 0.92)),
    #f4f7fb;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
  overflow: hidden;
}

html body .gmail-sidebar {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 18px 14px;
  border-inline-start: 1px solid #dce5ef;
  background: #eef5fb;
}

html body .gmail-compose-button {
  align-self: flex-start;
  min-height: 56px;
  min-width: 168px;
  padding: 0 22px;
  border: 0;
  border-radius: 16px;
  background: #d7ecff;
  color: #12324a;
  box-shadow: 0 2px 7px rgba(30, 64, 175, 0.14);
  font-weight: 800;
}

html body .gmail-folders,
html body .gmail-labels {
  display: grid;
  gap: 4px;
}

html body .gmail-folders button,
html body .gmail-labels button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 34px;
  padding: 6px 12px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #263b4d;
  font-weight: 700;
  text-align: start;
}

html body .gmail-folders button.active {
  background: #cfe2ff;
  color: #0f3c73;
}

html body .gmail-folders strong {
  min-width: 22px;
  text-align: center;
  color: #0f3c73;
}

html body .gmail-labels {
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid rgba(100, 116, 139, 0.22);
}

html body .gmail-labels > span {
  padding: 0 12px 5px;
  color: #64748b;
  font-size: 0.82rem;
  font-weight: 800;
}

html body .gmail-mailbox-main {
  display: flex;
  min-width: 0;
  flex-direction: column;
  background: rgba(255, 255, 255, 0.78);
}

html body .gmail-topbar {
  display: grid;
  grid-template-columns: minmax(260px, 620px) auto;
  align-items: center;
  gap: 16px;
  padding: 14px 18px;
  border-bottom: 1px solid #dde7f0;
}

html body .gmail-search {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 46px;
  padding: 0 16px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: #edf4fb;
}

html body .gmail-search:focus-within {
  border-color: #9ec5fe;
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

html body .gmail-search span {
  color: #64748b;
  font-size: 1.15rem;
}

html body .gmail-search input {
  width: 100%;
  min-width: 0;
  border: 0;
  background: transparent;
  color: #0f172a;
  font-weight: 650;
  outline: none;
}

html body .gmail-account-pill {
  justify-self: end;
  max-width: 280px;
  padding: 8px 12px;
  border: 1px solid #dce5ef;
  border-radius: 999px;
  background: #ffffff;
  color: #475569;
  font-size: 0.86rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

html body .gmail-toolbar,
html body .gmail-toolbar-actions,
html body .gmail-toolbar-meta {
  display: flex;
  align-items: center;
}

html body .gmail-toolbar {
  justify-content: space-between;
  gap: 16px;
  min-height: 50px;
  padding: 6px 14px;
  border-bottom: 1px solid #e5edf4;
  color: #475569;
}

html body .gmail-toolbar-actions,
html body .gmail-toolbar-meta {
  gap: 8px;
}

html body .gmail-toolbar button,
html body .gmail-select-all,
html body .gmail-message-check,
html body .gmail-star {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

html body .gmail-toolbar button,
html body .gmail-star {
  width: 34px;
  min-width: 34px;
  height: 34px;
  min-height: 34px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #64748b;
}

html body .gmail-toolbar button:hover,
html body .gmail-star:hover {
  background: #edf2f7;
  color: #0f172a;
}

html body .gmail-select-all,
html body .gmail-message-check {
  width: 32px;
  min-width: 32px;
  height: 32px;
}

html body .gmail-status-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 18px;
  border-bottom: 1px solid #e5edf4;
  background: #fff7ed;
  color: #7c2d12;
  font-size: 0.88rem;
}

html body .gmail-status-strip .ghost {
  min-height: 32px;
  padding: 4px 12px;
  border-color: #fed7aa;
  background: #ffffff;
  color: #9a3412;
}

html body .gmail-category-tabs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-bottom: 1px solid #dfe8f2;
  background: #ffffff;
}

html body .gmail-category-tabs button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 52px;
  border: 0;
  border-bottom: 3px solid transparent;
  border-radius: 0;
  background: transparent;
  color: #475569;
  font-weight: 800;
}

html body .gmail-category-tabs button.active {
  border-bottom-color: #1a73e8;
  color: #1a73e8;
}

html body .gmail-category-tabs strong {
  min-width: 24px;
  padding: 1px 7px;
  border-radius: 999px;
  background: #eef2ff;
  color: #1e3a8a;
  font-size: 0.78rem;
}

html body .gmail-message-list {
  display: grid;
  align-content: start;
  min-height: 420px;
  overflow: auto;
  background: rgba(248, 250, 252, 0.66);
}

html body .gmail-message-row {
  display: grid;
  grid-template-columns: 34px 34px 74px minmax(150px, 230px) minmax(260px, 1fr) 82px;
  align-items: center;
  gap: 8px;
  min-height: 58px;
  padding: 0 14px;
  border-bottom: 1px solid #e2e8f0;
  background: rgba(255, 255, 255, 0.72);
  color: #334155;
}

html body .gmail-message-row.unread {
  background: #ffffff;
  color: #0f172a;
  box-shadow: inset 4px 0 0 #1a73e8;
}

html body .gmail-message-row:hover {
  position: relative;
  z-index: 1;
  background: #f8fbff;
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.1);
}

html body .gmail-direction {
  justify-self: start;
  min-width: 58px;
  padding: 4px 9px;
  border-radius: 999px;
  background: #e7f5ef;
  color: #047857;
  font-size: 0.76rem;
  font-weight: 800;
  text-align: center;
}

html body .gmail-direction.sent {
  background: #eef2ff;
  color: #3730a3;
}

html body .gmail-message-sender,
html body .gmail-message-copy {
  min-width: 0;
  overflow: hidden;
}

html body .gmail-message-sender strong,
html body .gmail-message-sender small,
html body .gmail-message-copy strong,
html body .gmail-message-copy span {
  display: inline;
  min-width: 0;
}

html body .gmail-message-sender strong {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

html body .gmail-message-sender small,
html body .gmail-message-sender .table-link {
  display: block;
  max-width: 100%;
  margin-top: 2px;
  color: #64748b;
  font-size: 0.78rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

html body .gmail-message-copy {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

html body .gmail-message-copy strong {
  color: #111827;
  font-weight: 800;
}

html body .gmail-message-copy span {
  color: #64748b;
}

html body .gmail-message-row time {
  justify-self: end;
  color: #475569;
  font-weight: 800;
  white-space: nowrap;
}

html body .gmail-empty-state {
  padding: 42px 20px;
  color: #64748b;
  text-align: center;
}

@media (max-width: 1100px) {
  html body .gmail-mailbox-shell {
    grid-template-columns: 1fr;
  }

  html body .gmail-sidebar {
    flex-direction: row;
    align-items: center;
    overflow-x: auto;
    border-inline-start: 0;
    border-bottom: 1px solid #dce5ef;
  }

  html body .gmail-folders,
  html body .gmail-labels {
    display: flex;
    align-items: center;
    min-width: max-content;
  }

  html body .gmail-labels {
    margin-top: 0;
    padding-top: 0;
    border-top: 0;
  }
}

@media (max-width: 760px) {
  html body .gmail-topbar {
    grid-template-columns: 1fr;
  }

  html body .gmail-account-pill {
    justify-self: stretch;
  }

  html body .gmail-category-tabs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  html body .gmail-message-row {
    grid-template-columns: 28px 28px minmax(0, 1fr) 64px;
    gap: 6px;
    min-height: 74px;
  }

  html body .gmail-message-row .gmail-direction,
  html body .gmail-message-row .gmail-message-sender {
    display: none;
  }

  html body .gmail-message-copy {
    white-space: normal;
  }
}

/* Tight Gmail-mode overrides. The enterprise shell has broad button rules, so the mailbox needs a scoped reset. */
html body:has(.enterprise-sidebar) .gmail-mailbox-shell {
  grid-template-columns: minmax(0, 1fr) 228px !important;
  direction: ltr !important;
  min-height: min(720px, calc(100vh - 320px)) !important;
  margin-top: 10px !important;
  border-radius: 18px !important;
  background: rgba(255, 255, 255, 0.72) !important;
}

html body:has(.enterprise-sidebar) .gmail-sidebar,
html body:has(.enterprise-sidebar) .gmail-mailbox-main {
  direction: rtl !important;
}

html body:has(.enterprise-sidebar) .gmail-sidebar {
  grid-column: 2 !important;
  grid-row: 1 !important;
  gap: 10px !important;
  padding: 22px 16px !important;
  background: #eaf3fb !important;
}

html body:has(.enterprise-sidebar) .gmail-mailbox-main {
  grid-column: 1 !important;
  grid-row: 1 !important;
  background: rgba(255, 255, 255, 0.9) !important;
}

html body:has(.enterprise-sidebar) .gmail-compose-button {
  width: 100% !important;
  min-width: 0 !important;
  min-height: 48px !important;
  margin: 2px 0 14px !important;
  padding: 0 18px !important;
  border: 1px solid #d7dee8 !important;
  border-radius: 8px !important;
  background: #ffffff !important;
  color: #1f2937 !important;
  box-shadow: none !important;
  justify-content: center !important;
  font-size: 0.92rem !important;
}

html body:has(.enterprise-sidebar) .gmail-folders,
html body:has(.enterprise-sidebar) .gmail-labels {
  display: grid !important;
  gap: 6px !important;
  width: 100% !important;
  min-width: 0 !important;
}

html body:has(.enterprise-sidebar) .gmail-labels {
  margin-top: 18px !important;
  padding-top: 16px !important;
}

html body:has(.enterprise-sidebar) .gmail-folders button,
html body:has(.enterprise-sidebar) .gmail-labels button {
  width: 100% !important;
  min-height: 40px !important;
  padding: 6px 12px !important;
  border: 1px solid transparent !important;
  border-radius: 8px !important;
  background: transparent !important;
  color: #334155 !important;
  justify-content: space-between !important;
  font-size: 0.88rem !important;
  font-weight: 700 !important;
}

html body:has(.enterprise-sidebar) .gmail-folders button.active {
  background: #ffffff !important;
  border-color: #d8e1eb !important;
  color: #0f172a !important;
  box-shadow: none !important;
}

html body:has(.enterprise-sidebar) .gmail-topbar {
  grid-template-columns: minmax(360px, 760px) max-content !important;
  justify-content: center !important;
  min-height: 74px !important;
  padding: 14px 22px !important;
  background: rgba(255, 255, 255, 0.64) !important;
}

html body:has(.enterprise-sidebar) .gmail-search {
  min-height: 54px !important;
  border-radius: 18px !important;
  background: #edf5ff !important;
}

html body:has(.enterprise-sidebar) .gmail-account-pill {
  border-radius: 999px !important;
  background: #ffffff !important;
}

html body:has(.enterprise-sidebar) .gmail-toolbar {
  min-height: 62px !important;
  padding: 8px 18px !important;
  background: rgba(255, 255, 255, 0.82) !important;
}

html body:has(.enterprise-sidebar) .gmail-toolbar button,
html body:has(.enterprise-sidebar) .gmail-star {
  width: 42px !important;
  min-width: 42px !important;
  height: 42px !important;
  min-height: 42px !important;
  padding: 0 !important;
  border: 1px solid #d7dee8 !important;
  border-radius: 8px !important;
  background: #ffffff !important;
  color: #475569 !important;
}

html body:has(.enterprise-sidebar) .gmail-status-strip {
  min-height: 0 !important;
  padding: 10px 24px !important;
  background: #fff8f1 !important;
  color: #8b2f12 !important;
  justify-content: flex-start !important;
}

html body:has(.enterprise-sidebar) .gmail-status-strip .ghost {
  margin-inline-start: auto !important;
  min-height: 38px !important;
  border-radius: 8px !important;
}

html body:has(.enterprise-sidebar) .gmail-category-tabs {
  grid-template-columns: repeat(4, minmax(120px, 1fr)) !important;
  background: rgba(255, 255, 255, 0.94) !important;
}

html body:has(.enterprise-sidebar) .gmail-category-tabs button {
  min-height: 50px !important;
  padding: 0 14px !important;
  border-radius: 8px 8px 0 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

html body:has(.enterprise-sidebar) .gmail-message-row {
  grid-template-columns: 42px 46px 76px minmax(210px, 280px) minmax(360px, 1fr) 86px !important;
  min-height: 72px !important;
  padding: 0 18px !important;
  background: rgba(255, 255, 255, 0.84) !important;
}

html body:has(.enterprise-sidebar) .gmail-message-row.unread {
  background: #ffffff !important;
}

html body:has(.enterprise-sidebar) .gmail-message-check {
  width: 42px !important;
  min-width: 42px !important;
  height: 42px !important;
}

html body:has(.enterprise-sidebar) .gmail-direction {
  justify-self: stretch !important;
}

html body:has(.enterprise-sidebar) .gmail-message-copy {
  font-size: 0.92rem !important;
}

@media (max-width: 1100px) {
  html body:has(.enterprise-sidebar) .gmail-mailbox-shell {
    grid-template-columns: 1fr !important;
    direction: rtl !important;
  }

  html body:has(.enterprise-sidebar) .gmail-sidebar,
  html body:has(.enterprise-sidebar) .gmail-mailbox-main {
    grid-column: auto !important;
    grid-row: auto !important;
  }
}

html body .gmail-mailbox-shell {
  grid-template-columns: minmax(0, 1fr) 228px !important;
  direction: ltr !important;
  min-height: min(720px, calc(100vh - 320px)) !important;
  border-radius: 18px !important;
  background: rgba(255, 255, 255, 0.76) !important;
}

html body .gmail-sidebar,
html body .gmail-mailbox-main {
  direction: rtl !important;
}

html body .gmail-sidebar {
  grid-column: 2 !important;
  grid-row: 1 !important;
  width: auto !important;
  gap: 10px !important;
  padding: 22px 16px !important;
  background: #eaf3fb !important;
}

html body .gmail-mailbox-main {
  grid-column: 1 !important;
  grid-row: 1 !important;
}

html body .gmail-compose-button {
  width: 100% !important;
  min-width: 0 !important;
  min-height: 48px !important;
  height: 48px !important;
  margin: 2px 0 14px !important;
  padding: 0 18px !important;
  border: 1px solid #d7dee8 !important;
  border-radius: 8px !important;
  background: #ffffff !important;
  color: #1f2937 !important;
  box-shadow: none !important;
  justify-content: center !important;
  font-size: 0.92rem !important;
}

html body .gmail-folders,
html body .gmail-labels {
  display: grid !important;
  align-content: start !important;
  grid-auto-rows: max-content !important;
  gap: 6px !important;
  width: 100% !important;
  min-width: 0 !important;
}

html body .gmail-labels {
  margin-top: 18px !important;
  padding-top: 16px !important;
}

html body .gmail-folders button,
html body .gmail-labels button {
  width: 100% !important;
  min-height: 40px !important;
  height: 40px !important;
  padding: 6px 12px !important;
  border: 1px solid transparent !important;
  border-radius: 8px !important;
  background: transparent !important;
  color: #334155 !important;
  justify-content: space-between !important;
  font-size: 0.88rem !important;
  font-weight: 700 !important;
}

html body .gmail-folders button.active {
  background: #ffffff !important;
  border-color: #d8e1eb !important;
  color: #0f172a !important;
}

html body .gmail-toolbar button,
html body .gmail-star {
  width: 42px !important;
  min-width: 42px !important;
  height: 42px !important;
  min-height: 42px !important;
  padding: 0 !important;
  border: 1px solid #d7dee8 !important;
  border-radius: 8px !important;
  background: #ffffff !important;
  color: #475569 !important;
}

html body .gmail-message-row {
  grid-template-columns: 42px 46px 76px minmax(210px, 280px) minmax(360px, 1fr) 86px !important;
  min-height: 72px !important;
  padding: 0 18px !important;
}

@media (max-width: 1100px) {
  html body .gmail-mailbox-shell {
    grid-template-columns: 1fr !important;
    direction: rtl !important;
  }

  html body .gmail-sidebar,
  html body .gmail-mailbox-main {
    grid-column: auto !important;
    grid-row: auto !important;
  }
}

html body .main .gmail-sidebar button.gmail-compose-button {
  width: 100% !important;
  min-width: 0 !important;
  height: 48px !important;
  min-height: 48px !important;
  padding: 0 18px !important;
  border: 1px solid #d7dee8 !important;
  border-radius: 8px !important;
  background: #ffffff !important;
  color: #1f2937 !important;
  font-size: 0.92rem !important;
  font-weight: 800 !important;
  line-height: 1 !important;
}

html body .main .gmail-folders button,
html body .main .gmail-labels button {
  width: 100% !important;
  height: 40px !important;
  min-height: 40px !important;
  padding: 6px 12px !important;
  border: 1px solid transparent !important;
  border-radius: 8px !important;
  background: transparent !important;
  color: #334155 !important;
  justify-content: space-between !important;
  font-size: 0.88rem !important;
  font-weight: 700 !important;
  line-height: 1 !important;
  box-shadow: none !important;
}

html body .main .gmail-folders button.active {
  background: #ffffff !important;
  border-color: #d8e1eb !important;
  color: #0f172a !important;
}

html body .main .gmail-toolbar button,
html body .main button.gmail-star {
  width: 42px !important;
  min-width: 42px !important;
  height: 42px !important;
  min-height: 42px !important;
  padding: 0 !important;
  border: 1px solid #d7dee8 !important;
  border-radius: 8px !important;
  background: #ffffff !important;
  color: #475569 !important;
  font-size: 1rem !important;
  line-height: 1 !important;
  box-shadow: none !important;
}

html body .main .gmail-category-tabs button {
  height: 50px !important;
  min-height: 50px !important;
  padding: 0 14px !important;
  border-width: 0 0 3px !important;
  border-radius: 8px 8px 0 0 !important;
  background: transparent !important;
  color: #475569 !important;
  box-shadow: none !important;
}

html body .main .gmail-category-tabs button.active {
  color: #1a73e8 !important;
  border-bottom-color: #1a73e8 !important;
}

html body #app .main .gmail-sidebar button.gmail-compose-button {
  height: 48px !important;
  min-height: 48px !important;
  padding: 0 18px !important;
}

html body #app .main .gmail-folders button,
html body #app .main .gmail-labels button {
  height: 40px !important;
  min-height: 40px !important;
  padding: 6px 12px !important;
}

html body #app .main .gmail-toolbar button,
html body #app .main button.gmail-star {
  width: 42px !important;
  min-width: 42px !important;
  height: 42px !important;
  min-height: 42px !important;
  padding: 0 !important;
}

html body #app .main .gmail-category-tabs button {
  height: 50px !important;
  min-height: 50px !important;
  padding: 0 14px !important;
}

html body .gmail-message-row:not(.unread) .gmail-message-sender strong,
html body .gmail-message-row:not(.unread) .gmail-message-copy strong,
html body .gmail-message-row:not(.unread) time {
  font-weight: 560 !important;
  color: #475569 !important;
}

html body .gmail-message-row.unread .gmail-message-sender strong,
html body .gmail-message-row.unread .gmail-message-copy strong,
html body .gmail-message-row.unread time {
  font-weight: 850 !important;
  color: #0f172a !important;
}

html body .gmail-message-row.selected {
  background: #eef6ff !important;
}

html body .gmail-star.active {
  color: #f4b400 !important;
}

html body .main .gmail-labels button.active {
  background: #ffffff !important;
  border-color: #d8e1eb !important;
  color: #0f172a !important;
}

html body .gmail-message-detail {
  display: flex;
  flex-direction: column;
  min-height: 420px;
  padding: 0;
  background: #ffffff;
}

html body .gmail-detail-toolbar {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 54px;
  padding: 6px 18px;
  border-bottom: 1px solid #e2e8f0;
}

html body #app .main .gmail-detail-toolbar button {
  width: 42px !important;
  min-width: 42px !important;
  height: 42px !important;
  min-height: 42px !important;
  padding: 0 !important;
  border: 1px solid #d7dee8 !important;
  border-radius: 8px !important;
  background: #ffffff !important;
  color: #475569 !important;
}

html body .gmail-detail-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding: 22px 30px 10px;
}

html body .gmail-detail-head h2 {
  margin: 0;
  color: #111827;
  font-size: 1.22rem;
  font-weight: 700;
}

html body .gmail-detail-head time {
  color: #64748b;
  white-space: nowrap;
}

html body .gmail-detail-meta {
  display: flex;
  gap: 12px;
  padding: 10px 30px 18px;
  color: #475569;
}

html body .gmail-detail-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  min-width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #dbeafe;
  color: #1e3a8a;
  font-weight: 800;
}

html body .gmail-detail-meta strong,
html body .gmail-detail-meta span,
html body .gmail-detail-meta small {
  display: block;
}

html body .gmail-detail-meta strong {
  color: #0f172a;
}

html body .gmail-detail-meta .table-link {
  margin-top: 3px;
}

html body .gmail-detail-body {
  padding: 18px 84px 28px 30px;
  color: #1f2937;
  font-size: 0.98rem;
  line-height: 1.8;
  white-space: pre-wrap;
}

html body .gmail-detail-actions {
  display: flex;
  gap: 10px;
  padding: 0 84px 24px 30px;
}

html body .gmail-detail-reply {
  margin: 0 84px 28px 30px;
}

html body .gmail-detail-reply .email-compose-form {
  background: #ffffff;
}

html body .gmail-detail-body {
  display: grid !important;
  gap: 0 !important;
  padding: 8px 30px 24px !important;
  white-space: normal !important;
}

html body .gmail-thread-message {
  display: grid;
  grid-template-columns: 34px 48px minmax(0, 1fr);
  gap: 12px;
  padding: 18px 0;
  border-top: 1px solid #e5e7eb;
}

html body .gmail-thread-message:first-child {
  border-top: 0;
}

html body .gmail-thread-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #e7f7ee;
  color: #147a3f;
  font-weight: 850;
}

html body .gmail-thread-content {
  min-width: 0;
}

html body .gmail-thread-content header {
  display: flex;
  align-items: baseline;
  gap: 8px;
  min-width: 0;
}

html body .gmail-thread-content header strong {
  color: #111827;
  font-weight: 850;
}

html body .gmail-thread-content header span,
html body .gmail-thread-content header time {
  color: #6b7280;
  font-size: 0.88rem;
}

html body .gmail-thread-content header time {
  margin-inline-start: auto;
  white-space: nowrap;
}

html body .gmail-thread-content p {
  margin: 10px 0 0;
  color: #374151;
  line-height: 1.75;
  white-space: pre-wrap;
}

html body .gmail-quoted-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  min-width: 34px;
  height: 22px;
  min-height: 22px;
  margin-top: 10px;
  padding: 0 !important;
  border: 1px solid #d1d5db !important;
  border-radius: 999px !important;
  background: #f9fafb !important;
  color: #6b7280 !important;
  font-weight: 800;
  line-height: 1;
}

html body .gmail-thread-message.current {
  background: transparent !important;
}

html body #app .main button.thread-star {
  width: 34px !important;
  min-width: 34px !important;
  height: 34px !important;
  min-height: 34px !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
}

/* Mailbox brand color correction: this CRM uses green, not Gmail blue. */
html body .gmail-sidebar,
html body:has(.enterprise-sidebar) .gmail-sidebar {
  background: #edf8f2 !important;
}

html body .gmail-search,
html body:has(.enterprise-sidebar) .gmail-search {
  background: #eef8f2 !important;
}

html body .gmail-folders button.active,
html body .gmail-labels button.active,
html body .main .gmail-folders button.active,
html body .main .gmail-labels button.active,
html body:has(.enterprise-sidebar) .gmail-folders button.active,
html body:has(.enterprise-sidebar) .gmail-labels button.active {
  border-color: #b9e4c9 !important;
  background: #ffffff !important;
  color: #115f32 !important;
}

html body .gmail-category-tabs button.active,
html body .main .gmail-category-tabs button.active,
html body:has(.enterprise-sidebar) .gmail-category-tabs button.active {
  color: #16a34a !important;
  border-bottom-color: #22c55e !important;
}

html body .gmail-message-row.unread,
html body:has(.enterprise-sidebar) .gmail-message-row.unread {
  box-shadow: inset 4px 0 0 #22c55e !important;
}

html body .gmail-message-row.selected {
  background: #effaf3 !important;
}

html body .gmail-detail-avatar {
  background: #dff7e8 !important;
  color: #147a3f !important;
}

/* Keep the field-settings modal stable when "color by value" expands. */
html body .modal-panel:has(.field-settings-modal) {
  height: min(85vh, calc(100vh - 32px)) !important;
  max-height: min(85vh, calc(100vh - 32px)) !important;
  overflow: hidden !important;
}

html body .modal-panel:has(.field-settings-modal) > .modal-body,
html body .modal-panel:has(.field-settings-modal) > .modal-body > .modal-content,
html body .modal-panel:has(.field-settings-modal) .field-settings-modal {
  height: 100% !important;
  min-height: 0 !important;
  overflow: hidden !important;
}

html body .modal-panel:has(.field-settings-modal) .field-settings-modal {
  display: flex !important;
  flex-direction: column !important;
}

html body .modal-panel:has(.field-settings-modal) .field-settings-modal > .settings-body {
  flex: 1 1 auto !important;
  min-height: 0 !important;
  overflow: hidden !important;
}

html body .modal-panel:has(.field-settings-modal) .field-settings-modal .field-list {
  flex: 1 1 auto !important;
  min-height: 0 !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
  padding-bottom: 8px !important;
}

html body .field-settings-modal .color-cell {
  min-width: 0 !important;
}

html body .field-settings-modal .values-list {
  max-height: 188px !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
  scrollbar-gutter: stable !important;
}

html body .field-settings-modal .value-row {
  min-width: 0 !important;
}

html body .field-settings-modal .value-tag {
  min-width: 0 !important;
  flex: 1 1 auto !important;
  max-width: calc(100% - 28px) !important;
  white-space: normal !important;
}

html body .field-settings-modal .color-toggle .field-settings-check-input {
  pointer-events: none !important;
}

html body .field-settings-modal .table-settings-tabs {
  display: flex !important;
  align-items: center !important;
  gap: 6px !important;
  padding: 10px 24px !important;
  border-bottom: 1px solid #edf2f7 !important;
  background: #ffffff !important;
  flex: 0 0 auto !important;
  overflow-x: auto !important;
}

html body .field-settings-modal .table-settings-tabs button {
  border: 1px solid #dbe5ea !important;
  background: #ffffff !important;
  color: #334155 !important;
  border-radius: 8px !important;
  padding: 8px 14px !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  white-space: nowrap !important;
  cursor: pointer !important;
}

html body .field-settings-modal .table-settings-tabs button.active {
  background: #e9f8ef !important;
  border-color: #3CB86C !important;
  color: #147a3f !important;
}

html body .modal-panel:has(.field-settings-modal) .field-settings-modal > .settings-body {
  padding: 0 !important;
  overflow: hidden !important;
}

html body .field-settings-modal .table-settings-panel {
  flex: 1 1 auto !important;
  min-height: 0 !important;
  overflow: hidden !important;
  padding: 0 24px 10px !important;
  display: flex !important;
  flex-direction: column !important;
}

html body .field-settings-modal .table-settings-panel[hidden] {
  display: none !important;
}

html body .field-settings-modal .table-settings-panel-head {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  padding: 10px 0 !important;
  border-bottom: 1px solid #eef3f6 !important;
  flex: 0 0 auto !important;
}

html body .field-settings-modal .field-list {
  flex: 1 1 auto !important;
  min-height: 0 !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
  padding-bottom: 10px !important;
}

html body .field-settings-modal .field-row,
html body .field-settings-modal .field-color-row {
  display: grid !important;
  grid-template-columns: minmax(130px, 180px) minmax(0, 1fr) auto !important;
  align-items: start !important;
  gap: 12px !important;
  padding: 12px 0 !important;
  border-bottom: 1px solid #eef3f6 !important;
}

html body .field-settings-modal .roles-field-row {
  grid-template-columns: minmax(130px, 180px) minmax(0, 1fr) !important;
}

html body .field-settings-modal .condition-field-row {
  grid-template-columns: minmax(130px, 180px) 120px minmax(130px, 1fr) 130px minmax(130px, 1fr) !important;
  align-items: center !important;
}

html body .field-settings-modal .field-name {
  width: auto !important;
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
}

html body .field-settings-modal .field-drag-handle {
  color: #94a3b8 !important;
  cursor: grab !important;
}

html body .field-settings-modal .table-opts {
  width: auto !important;
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: wrap !important;
  gap: 8px 14px !important;
}

html body .field-settings-modal .column-order-actions {
  display: flex !important;
  align-items: center !important;
  gap: 4px !important;
}

html body .field-settings-modal .field-color-row {
  grid-template-columns: minmax(130px, 180px) minmax(130px, 190px) auto !important;
}

html body .field-settings-modal .field-color-row.empty {
  grid-template-columns: minmax(130px, 180px) minmax(0, 1fr) !important;
}

html body .field-settings-modal .field-color-row .values-list {
  grid-column: 1 / -1 !important;
  max-height: 240px !important;
  margin-top: 8px !important;
}

html body .field-settings-modal .field-color-row:not(.expanded) .values-list {
  display: none !important;
}

html body .field-settings-modal .color-values-btn {
  padding: 7px 12px !important;
}

html body .field-settings-modal .condition-field-row label {
  display: grid !important;
  gap: 4px !important;
  color: #64748b !important;
  font-size: 12px !important;
}

html body .field-settings-modal .condition-field-row select,
html body .field-settings-modal .condition-field-row input:not([type="checkbox"]) {
  min-width: 0 !important;
  width: 100% !important;
  border: 1px solid #dbe5ea !important;
  border-radius: 8px !important;
  padding: 8px 10px !important;
  font-size: 13px !important;
  background: #ffffff !important;
}

html body .field-settings-modal .condition-always {
  display: flex !important;
  grid-auto-flow: column !important;
  align-items: center !important;
  justify-content: start !important;
  gap: 6px !important;
}

@media (max-width: 900px) {
  html body .field-settings-modal .field-row,
  html body .field-settings-modal .field-color-row,
  html body .field-settings-modal .condition-field-row {
    grid-template-columns: 1fr !important;
  }

  html body .field-settings-modal .field-color-row .values-list {
    grid-column: auto !important;
  }
}

html body .widgets .widget-table tbody tr[data-entity-type]:not(.widget-empty-row),
html body .donor-widgets .widget-table tbody tr[data-entity-type]:not(.widget-empty-row) {
  cursor: pointer !important;
}

html body .data-grid th.utility-column,
html body .data-grid td:has(> input[type="checkbox"][data-bulk-select]),
html body .data-grid td:has(> input[type="checkbox"][aria-label^="בחירת"]) {
  padding-inline: 6px !important;
  text-align: center !important;
}

html body .data-grid th.utility-column input[type="checkbox"],
html body .data-grid td > input[type="checkbox"][data-bulk-select] {
  margin-inline: auto !important;
}

html body .data-grid th .column-resizer,
html body .widget-table th .column-resizer,
html body .widgets .data-grid th .column-resizer,
html body .widgets .widget-table th .column-resizer,
html body .donor-widgets .data-grid th .column-resizer,
html body .donor-widgets .widget-table th .column-resizer {
  display: block !important;
  top: 0 !important;
  bottom: 0 !important;
  inset-inline-start: auto !important;
  inset-inline-end: -9px !important;
  width: 18px !important;
  height: auto !important;
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  color: transparent !important;
  cursor: col-resize !important;
  transform: none !important;
  pointer-events: auto !important;
  touch-action: none !important;
  z-index: 20 !important;
  box-shadow: none !important;
  opacity: 1 !important;
  visibility: visible !important;
}

html body .data-grid th .column-resizer::before,
html body .widget-table th .column-resizer::before {
  content: "" !important;
  position: absolute !important;
  top: 0 !important;
  bottom: 0 !important;
  inset-inline-end: 8px !important;
  width: 1px !important;
  border-radius: 0 !important;
  background: #cbded5 !important;
}

html body .data-grid th:hover .column-resizer::before,
html body .widget-table th:hover .column-resizer::before,
html body .data-grid th.column-resize-hot .column-resizer::before,
html body .widget-table th.column-resize-hot .column-resizer::before,
html body .data-grid th .column-resizer:hover::before,
html body .widget-table th .column-resizer:hover::before,
html body .data-grid th.resizing-column .column-resizer::before,
html body .widget-table th.resizing-column .column-resizer::before,
html body.column-resize-active .column-resizer::before {
  background: #073746 !important;
}

html body .data-grid th:hover .column-resizer,
html body .widget-table th:hover .column-resizer,
html body .data-grid th.column-resize-hot .column-resizer,
html body .widget-table th.column-resize-hot .column-resizer,
html body .data-grid th.resizing-column .column-resizer,
html body .widget-table th.resizing-column .column-resizer,
html body.column-resize-active .column-resizer {
  width: 18px !important;
  background: rgba(7, 55, 70, 0.08) !important;
  border: 0 !important;
  opacity: 1 !important;
}

/* Final global form language override - keep at EOF. */
html body input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]),
html body select,
html body textarea,
html body .managed-select-button,
html body .donor-picker-trigger,
html body button.donor-picker-trigger {
  border: 1px solid #e2e8f0 !important;
  border-radius: 8px !important;
  background-color: #ffffff !important;
  background: #ffffff !important;
  color: #0f172a !important;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05) !important;
  transition: border-color 0.16s ease, box-shadow 0.16s ease, background-color 0.16s ease !important;
}

html body input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]):hover,
html body select:hover,
html body textarea:hover,
html body .managed-select-button:hover,
html body .donor-picker-trigger:hover,
html body button.donor-picker-trigger:hover,
html body input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]):focus,
html body select:focus,
html body textarea:focus,
html body .managed-select-button:focus,
html body .donor-picker-trigger:focus,
html body button.donor-picker-trigger:focus,
html body .managed-select.open .managed-select-button {
  border-color: #1d727a !important;
  background-color: #ffffff !important;
  background: #ffffff !important;
  box-shadow: 0 0 0 3px rgba(29, 114, 122, 0.13), 0 7px 16px rgba(15, 23, 42, 0.09) !important;
  outline: none !important;
}

html body .record-form,
html body .record-form .subpanel,
html body .record-form .payment-section,
html body .record-form .commitment-section,
html body .record-form .receipt-section,
html body .modal-panel:has(.record-form) .modal-body,
html body .modal-panel:has(.record-form) .modal-content {
  background-color: #f8fafc !important;
}

html body .commitment-action-btn,
html body .record-form .action-row button.commitment-action-btn,
html body .modal-panel:has(.record-form) .record-form .action-row button.commitment-action-btn {
  min-height: 34px !important;
  padding: 0 14px !important;
  border-radius: 6px !important;
  font-weight: 500 !important;
  box-shadow: none !important;
}

html body .commitment-action-charge,
html body button.commitment-action-charge,
html body .record-form .action-row button.commitment-action-charge,
html body .modal-panel:has(.record-form) .record-form .action-row button.commitment-action-charge {
  border-color: #cbe7d3 !important;
  background-color: rgba(60, 184, 108, 0.14) !important;
  background: rgba(60, 184, 108, 0.14) !important;
  color: #2A8C52 !important;
}

html body .commitment-action-freeze,
html body button.commitment-action-freeze,
html body .record-form .action-row button.commitment-action-freeze,
html body .modal-panel:has(.record-form) .record-form .action-row button.commitment-action-freeze {
  border-color: #f1dfaa !important;
  background-color: #fef7e0 !important;
  background: #fef7e0 !important;
  color: #b06000 !important;
}

html body .commitment-action-cancel,
html body button.commitment-action-cancel,
html body .record-form .action-row button.commitment-action-cancel,
html body .modal-panel:has(.record-form) .record-form .action-row button.commitment-action-cancel {
  border-color: #efc7c4 !important;
  background-color: #fce8e6 !important;
  background: #fce8e6 !important;
  color: #c5221f !important;
}

html body .modal-footer .primary,
html body .modal-footer button.primary,
html body .modal-panel:has(.record-form) .modal-footer .primary,
html body .modal-panel:has(.record-form) .modal-footer button.primary {
  border-color: #1d727a !important;
  background-color: #1d727a !important;
  background: #1d727a !important;
  color: #ffffff !important;
  box-shadow: 0 8px 18px rgba(29, 114, 122, 0.22) !important;
}

html body .managed-select.status-field-container,
html body .managed-select-button.status-field-container {
  width: 100% !important;
  display: flex !important;
}

html body .managed-select-button.status-field-container .choice-select-value,
html body .managed-select-button.status-field-container .status-badge,
html body .managed-select-button.status-field-container .status-badge.custom-color {
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  background-color: transparent !important;
  box-shadow: none !important;
}

html body .status-field-container:hover,
html body .managed-select.status-field-container:hover .managed-select-button,
html body .managed-select-button.status-field-container:hover,
html body input:hover,
html body select:hover,
html body textarea:hover {
  border-color: #1d727a !important;
  transition: border-color 0.2s ease-in-out !important;
}

html body .status-field-container:focus-within,
html body .managed-select.status-field-container:focus-within .managed-select-button,
html body .managed-select.open.status-field-container .managed-select-button,
html body .managed-select-button.status-field-container:focus,
html body input:focus,
html body select:focus,
html body textarea:focus {
  border-color: #1d727a !important;
  box-shadow: 0 0 0 3px rgba(29, 114, 122, 0.18) !important;
  outline: none !important;
}

/* Donor detail premium header and cards - keep after global overrides. */
html body .donor-detail-form .donor-detail-live-header,
html body .modal-panel:has(.donor-detail-screen) .donor-detail-live-header {
  border: 1px solid rgba(255, 255, 255, 0.18) !important;
  border-radius: 18px !important;
  background: #1d727a !important;
  background-color: #1d727a !important;
  box-shadow: 0 18px 44px rgba(15, 39, 66, 0.18) !important;
}

html body .donor-detail-form .donor-detail-live-header span,
html body .modal-panel:has(.donor-detail-screen) .donor-detail-live-header span {
  color: #cce8ec !important;
}

html body .donor-detail-form .donor-detail-live-header strong,
html body .modal-panel:has(.donor-detail-screen) .donor-detail-live-header strong {
  color: #ffffff !important;
  font-size: 24px !important;
  font-weight: 700 !important;
}

html body .donor-detail-form .donor-detail-live-header em,
html body .modal-panel:has(.donor-detail-screen) .donor-detail-live-header em {
  color: #d8eef1 !important;
}

html body .donor-detail-form .donor-card-summary,
html body .modal-panel:has(.donor-detail-screen) .donor-card-summary {
  border: 1px solid #2A8C52 !important;
  background: rgba(60, 184, 108, 0.14) !important;
  background-color: rgba(60, 184, 108, 0.14) !important;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03) !important;
}

html body .donor-card-summary .donation-snapshot span.donor-total-donations-stat,
html body .modal-panel:has(.donor-detail-screen) .donor-card-summary .donation-snapshot span.donor-total-donations-stat {
  border-color: rgba(19, 115, 51, 0.28) !important;
  background: rgba(255, 255, 255, 0.54) !important;
  background-color: rgba(255, 255, 255, 0.54) !important;
  color: #2A8C52 !important;
}

html body .donor-card-summary .donor-total-donations-stat b,
html body .modal-panel:has(.donor-detail-screen) .donor-total-donations-stat b {
  display: block !important;
  margin-top: 3px !important;
  color: #2A8C52 !important;
  font-size: 20px !important;
  font-weight: 700 !important;
  line-height: 1.2 !important;
}

html body .donor-detail-form .donor-detail-card,
html body .modal-panel:has(.donor-detail-screen) .donor-detail-card {
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03) !important;
}

/* Record financial hero fields. */
html body .record-form .readonly-data-field,
html body .modal-panel:has(.record-form) .record-form .readonly-data-field,
html body .record-form label.financial-highlight-field,
html body .modal-panel:has(.record-form) .record-form label.financial-highlight-field {
  gap: 7px !important;
  color: #64748b !important;
  font-size: 11px !important;
  font-weight: 600 !important;
  letter-spacing: 0 !important;
  text-transform: uppercase !important;
}

html body .record-form .readonly-data-field,
html body .modal-panel:has(.record-form) .record-form .readonly-data-field {
  display: grid !important;
  align-content: center !important;
  min-height: 54px !important;
  padding: 10px 12px !important;
  border: 0 !important;
  border-radius: 10px !important;
  background: #f8fafc !important;
  background-color: #f8fafc !important;
  box-shadow: none !important;
}

html body .record-form .readonly-data-field span,
html body .modal-panel:has(.record-form) .record-form .readonly-data-field span {
  color: #64748b !important;
  font-size: 11px !important;
  font-weight: 600 !important;
  letter-spacing: 0 !important;
  text-transform: uppercase !important;
}

html body .record-form .readonly-data-field strong,
html body .modal-panel:has(.record-form) .record-form .readonly-data-field strong {
  display: block !important;
  color: #0f172a !important;
  font-size: 22px !important;
  font-weight: 800 !important;
  line-height: 1.15 !important;
}

html body .record-form label.financial-highlight-field input,
html body .modal-panel:has(.record-form) .record-form label.financial-highlight-field input {
  min-height: 54px !important;
  border: 1.5px solid #cbd5e1 !important;
  border-radius: 10px !important;
  background: #ffffff !important;
  background-color: #ffffff !important;
  color: #0f172a !important;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.05), 0 4px 6px -4px rgba(0, 0, 0, 0.05) !important;
  font-size: 22px !important;
  font-weight: 800 !important;
  line-height: 1.15 !important;
}

html body .record-form label.balance-highlight-field input,
html body .modal-panel:has(.record-form) .record-form label.balance-highlight-field input,
html body .record-form .balance-highlight-field strong,
html body .modal-panel:has(.record-form) .record-form .balance-highlight-field strong {
  color: #1d727a !important;
}

html body .donor-detail-form .donor-detail-card:has([name="titleBefore"]),
html body .modal-panel:has(.donor-detail-screen) .donor-detail-card:has([name="titleBefore"]) {
  grid-column: 1 / -1 !important;
}

html body .donor-detail-form .donor-detail-card:has([name="titleBefore"]) .donor-detail-card-grid,
html body .modal-panel:has(.donor-detail-screen) .donor-detail-card:has([name="titleBefore"]) .donor-detail-card-grid {
  grid-template-columns: repeat(4, minmax(150px, 1fr)) !important;
}

/* Donor form compact two-column layout. Keep after older donor-card overrides. */
html body .donor-detail-form,
html body .modal-panel:has(.donor-detail-screen) .donor-detail-form {
  display: grid !important;
  grid-template-columns: repeat(12, minmax(0, 1fr)) !important;
  gap: 20px !important;
  align-items: start !important;
}

html body .donor-detail-form .donor-detail-live-header,
html body .donor-detail-form .donor-detail-full,
html body .donor-detail-form .donor-memorials-section,
html body .donor-detail-form .linked-journals-panel,
html body .donor-detail-form .donor-detail-save-btn,
html body .modal-panel:has(.donor-detail-screen) .donor-detail-live-header,
html body .modal-panel:has(.donor-detail-screen) .donor-detail-full,
html body .modal-panel:has(.donor-detail-screen) .donor-memorials-section,
html body .modal-panel:has(.donor-detail-screen) .linked-journals-panel,
html body .modal-panel:has(.donor-detail-screen) .donor-detail-save-btn {
  grid-column: 1 / -1 !important;
}

html body .donor-detail-form .donor-detail-card:not(.donor-detail-full):not(.donor-memorials-section):not(.linked-journals-panel),
html body .modal-panel:has(.donor-detail-screen) .donor-detail-card:not(.donor-detail-full):not(.donor-memorials-section):not(.linked-journals-panel) {
  grid-column: span 6 !important;
  min-width: 0 !important;
  padding: 20px !important;
  border-radius: 14px !important;
}

html body .donor-detail-form .donor-detail-card:has([name="titleBefore"]),
html body .modal-panel:has(.donor-detail-screen) .donor-detail-card:has([name="titleBefore"]) {
  grid-column: span 6 !important;
}

html body .donor-detail-form .donor-detail-card-grid,
html body .modal-panel:has(.donor-detail-screen) .donor-detail-card-grid,
html body .donor-detail-form .donor-detail-card:has([name="titleBefore"]) .donor-detail-card-grid,
html body .modal-panel:has(.donor-detail-screen) .donor-detail-card:has([name="titleBefore"]) .donor-detail-card-grid {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 14px !important;
}

html body .donor-detail-form .donor-detail-section-address .donor-detail-card-grid,
html body .modal-panel:has(.donor-detail-screen) .donor-detail-section-address .donor-detail-card-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
}

html body .donor-detail-form .donor-detail-section-address label:has([name="street"]),
html body .donor-detail-form .donor-detail-section-address label:has([name="zip"]),
html body .modal-panel:has(.donor-detail-screen) .donor-detail-section-address label:has([name="street"]),
html body .modal-panel:has(.donor-detail-screen) .donor-detail-section-address label:has([name="zip"]) {
  grid-column: span 2 !important;
}

html body .donor-detail-form .donor-detail-section-notes textarea,
html body .modal-panel:has(.donor-detail-screen) .donor-detail-section-notes textarea {
  min-height: 96px !important;
}

@media (max-width: 980px) {
  html body .donor-detail-form .donor-detail-card:not(.donor-detail-full):not(.donor-memorials-section):not(.linked-journals-panel),
  html body .modal-panel:has(.donor-detail-screen) .donor-detail-card:not(.donor-detail-full):not(.donor-memorials-section):not(.linked-journals-panel),
  html body .donor-detail-form .donor-detail-card:has([name="titleBefore"]),
  html body .modal-panel:has(.donor-detail-screen) .donor-detail-card:has([name="titleBefore"]) {
    grid-column: 1 / -1 !important;
  }
}

@media (max-width: 680px) {
  html body .donor-detail-form,
  html body .modal-panel:has(.donor-detail-screen) .donor-detail-form,
  html body .donor-detail-form .donor-detail-card-grid,
  html body .modal-panel:has(.donor-detail-screen) .donor-detail-card-grid,
  html body .donor-detail-form .donor-detail-section-address .donor-detail-card-grid,
  html body .modal-panel:has(.donor-detail-screen) .donor-detail-section-address .donor-detail-card-grid {
    grid-template-columns: 1fr !important;
  }

  html body .donor-detail-form .donor-detail-section-address label:has([name="street"]),
  html body .donor-detail-form .donor-detail-section-address label:has([name="zip"]),
  html body .modal-panel:has(.donor-detail-screen) .donor-detail-section-address label:has([name="street"]),
  html body .modal-panel:has(.donor-detail-screen) .donor-detail-section-address label:has([name="zip"]) {
    grid-column: auto !important;
  }
}

/* Record detail tabs. */
html body .record-card-tabs {
  display: flex !important;
  flex-direction: column !important;
  grid-column: 1 / -1 !important;
  gap: 0 !important;
  min-height: 560px !important;
  padding: 0 !important;
  overflow: visible !important;
  background: transparent !important;
  box-shadow: none !important;
}

html body .record-tab-pane {
  display: none !important;
  flex: 1 1 auto !important;
  min-height: 400px !important;
  padding: 0 !important;
  background: transparent !important;
}

html body .record-tab-pane.active {
  display: block !important;
}

html body .record-tab-pane[data-record-tab-panel="ai"].active {
  display: grid !important;
}

html body .record-tab-pane[data-record-tab-panel="bonuses"].active {
  display: block !important;
}

html body .record-tab-pane .record-form {
  margin: 0 !important;
}

html body .record-financial-summary-row,
html body #app .record-financial-summary-row {
  display: grid !important;
  grid-template-columns: repeat(5, minmax(130px, 1fr)) !important;
  gap: 10px !important;
  margin: 12px 0 16px !important;
  padding: 0 4px !important;
  direction: rtl !important;
}

html body .record-financial-summary-pill,
html body #app .record-financial-summary-pill {
  display: grid !important;
  align-content: center !important;
  gap: 4px !important;
  min-height: 58px !important;
  padding: 10px 14px !important;
  border: 1px solid transparent !important;
  border-radius: 999px !important;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.045) !important;
  white-space: nowrap !important;
}

html body .record-financial-summary-pill small,
html body #app .record-financial-summary-pill small {
  color: #64748b !important;
  font-size: 11px !important;
  font-weight: 800 !important;
  line-height: 1 !important;
}

html body .record-financial-summary-pill strong,
html body #app .record-financial-summary-pill strong {
  color: #0f2f38 !important;
  font-size: 15px !important;
  font-weight: 900 !important;
  line-height: 1.2 !important;
}

html body .record-financial-summary-pill.success,
html body #app .record-financial-summary-pill.success {
  background: #dcfce7 !important;
  border-color: #bbf7d0 !important;
}

html body .record-financial-summary-pill.success strong,
html body #app .record-financial-summary-pill.success strong {
  color: #15803d !important;
}

html body .record-financial-summary-pill.neutral,
html body #app .record-financial-summary-pill.neutral {
  background: #f1f5f9 !important;
  border-color: #e2e8f0 !important;
}

html body .record-financial-summary-pill.info,
html body #app .record-financial-summary-pill.info {
  background: #e0f2fe !important;
  border-color: #bae6fd !important;
}

html body .record-details-layout {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 38vw) !important;
  gap: 18px !important;
  align-items: start !important;
}

html body .record-tab-widgets {
  display: block !important;
  margin-top: 0 !important;
  min-width: 0 !important;
}

html body .record-ai-analysis {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(220px, 1fr)) !important;
  gap: 14px !important;
  grid-column: 1 / -1 !important;
}

html body .record-transcription-box {
  min-height: 180px !important;
  max-height: 250px !important;
  overflow-y: auto !important;
  resize: vertical !important;
}

html body .record-ai-metric,
html body .record-ai-card,
html body .record-ai-executive-summary,
html body .record-ai-list,
html body .record-script-file {
  border: 1px solid #e2e8f0 !important;
  border-radius: 10px !important;
  background: #ffffff !important;
  box-shadow: 0 4px 10px rgba(15, 23, 42, 0.04) !important;
}

html body .record-ai-metric,
html body .record-ai-card,
html body .record-ai-executive-summary,
html body .record-ai-list {
  padding: 12px !important;
}

html body .record-ai-metric > span,
html body .record-ai-card > span,
html body .record-ai-executive-summary > span {
  display: block !important;
  margin-bottom: 8px !important;
  color: #64748b !important;
  font-size: 12px !important;
  font-weight: 700 !important;
}

html body .talk-listen-bar {
  display: flex !important;
  min-height: 42px !important;
  overflow: hidden !important;
  border-radius: 8px !important;
  border: 1px solid #dbeafe !important;
  background: linear-gradient(90deg, #1d727a 0 var(--talk), #e8eef5 var(--talk) 100%) !important;
}

html body .talk-listen-bar strong,
html body .talk-listen-bar em {
  display: grid !important;
  place-items: center !important;
  min-width: 50% !important;
  padding: 0 10px !important;
  font-style: normal !important;
  font-weight: 800 !important;
}

html body .talk-listen-bar strong {
  color: #ffffff !important;
}

html body .talk-listen-bar em {
  color: #334155 !important;
}

html body .record-ai-card strong,
html body .record-ai-executive-summary strong {
  display: block !important;
  color: #0f172a !important;
  font-size: 20px !important;
}

html body .record-ai-executive-summary strong {
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
  font-size: 16px !important;
}

html body .record-ai-card.sentiment-positive strong {
  color: #2A8C52 !important;
}

html body .record-ai-card.sentiment-negative strong {
  color: #b42318 !important;
}

html body .record-ai-card.sentiment-neutral strong {
  color: #1d727a !important;
}

html body .script-adherence-bar {
  height: 8px !important;
  margin-top: 10px !important;
  border-radius: 999px !important;
  background: linear-gradient(90deg, #1d727a 0 var(--adherence), #e2e8f0 var(--adherence) 100%) !important;
}

html body .record-ai-list h3 {
  margin: 0 0 8px !important;
  color: #0f172a !important;
  font-size: 15px !important;
}

html body .record-ai-list ul {
  margin: 0 !important;
  padding-inline-start: 20px !important;
  color: #334155 !important;
}

html body .record-script-file {
  padding: 12px !important;
}

html body .record-script-file button {
  width: 100% !important;
  justify-content: center !important;
}

html body .record-bonus-engine {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(170px, 1fr)) !important;
  gap: 12px !important;
  width: min(860px, 100%) !important;
  margin: 0 !important;
  padding: 14px !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 10px !important;
  background: #ffffff !important;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.035) !important;
}

html body .record-bonus-engine article {
  display: grid !important;
  align-content: center !important;
  min-height: 76px !important;
  padding: 10px 12px !important;
  border: 1px solid #dfe8f2 !important;
  border-radius: 8px !important;
  background: #f8fafc !important;
  box-shadow: none !important;
}

html body .record-bonus-engine article span {
  display: block !important;
  margin-bottom: 6px !important;
  color: #64748b !important;
  font-size: 12px !important;
  font-weight: 700 !important;
}

html body .record-bonus-engine article strong {
  display: block !important;
  overflow-wrap: anywhere !important;
  color: #0f172a !important;
  font-size: 15px !important;
  font-weight: 800 !important;
  line-height: 1.35 !important;
}

html body .record-bonus-engine article small {
  display: block !important;
  margin-top: 5px !important;
  color: #64748b !important;
  font-size: 12px !important;
  line-height: 1.35 !important;
}

html body .record-script-preview-frame {
  width: 100% !important;
  min-height: 420px !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 10px !important;
  background: #ffffff !important;
}

@media (max-width: 760px) {
  html body .record-card-tabs > .week-tabs {
    overflow-x: auto !important;
  }

  html body .record-ai-analysis,
  html body .record-details-layout,
  html body .record-bonus-engine {
    grid-template-columns: 1fr !important;
  }
}

/* Enterprise journal modal refresh. */
html body .modal-panel:has(.enterprise-journal-detail) .modal-body,
html body .modal-panel:has(.enterprise-journal-detail) .modal-content {
  background: #f8fafc !important;
}

html body .enterprise-journal-detail {
  display: grid !important;
  gap: 18px !important;
  background: transparent !important;
  box-shadow: none !important;
}

html body .enterprise-journal-detail .journal-detail-tabs,
html body .modal-panel:has(.enterprise-journal-detail) .journal-detail-tabs,
html body .enterprise-journal-detail .week-tabs {
  display: flex !important;
  align-items: center !important;
  gap: 24px !important;
  padding: 0 !important;
  margin: 4px 0 12px !important;
  border: 0 !important;
  border-bottom: 1px solid #e2e8f0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

html body .enterprise-journal-detail .journal-detail-tabs .week-tab,
html body .modal-panel:has(.enterprise-journal-detail) .journal-detail-tabs .week-tab,
html body .enterprise-journal-detail .week-tabs .week-tab {
  min-height: 42px !important;
  padding: 0 4px 10px !important;
  border: 0 !important;
  border-bottom: 2px solid transparent !important;
  border-radius: 0 !important;
  background: transparent !important;
  color: #64748b !important;
  box-shadow: none !important;
  font-size: 14px !important;
  font-weight: 700 !important;
}

html body .enterprise-journal-detail .journal-detail-tabs .week-tab.active,
html body .modal-panel:has(.enterprise-journal-detail) .journal-detail-tabs .week-tab.active,
html body .enterprise-journal-detail .week-tabs .week-tab.active {
  border-bottom-color: #1d727a !important;
  color: #1d727a !important;
}

html body .enterprise-journal-detail .week-tab-content,
html body .modal-panel:has(.enterprise-journal-detail) .week-tab-content {
  padding: 0 !important;
  background: transparent !important;
}

html body .journal-allocation-panel,
html body .modal-panel:has(.enterprise-journal-detail) .journal-allocation-panel {
  display: grid !important;
  gap: 18px !important;
  padding: 22px !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 8px !important;
  background: #ffffff !important;
  box-shadow: var(--shadow) !important;
}

html body .journal-tab-section-head {
  display: flex !important;
  align-items: flex-start !important;
  justify-content: space-between !important;
  gap: 12px !important;
}

html body .journal-tab-section-head h3 {
  margin: 0 !important;
  color: #0f172a !important;
  font-size: 18px !important;
  font-weight: 800 !important;
}

html body .journal-tab-section-head span {
  color: #64748b !important;
  font-size: 13px !important;
  font-weight: 600 !important;
}

html body .journal-allocation-form,
html body .modal-panel:has(.enterprise-journal-detail) .journal-allocation-form {
  display: grid !important;
  grid-template-columns: minmax(180px, 1fr) minmax(220px, 1.2fr) minmax(160px, 0.7fr) !important;
  gap: 16px !important;
  align-items: end !important;
  padding: 18px !important;
  border: 1px solid #e6eef8 !important;
  border-radius: 8px !important;
  background: #fbfdff !important;
  box-shadow: none !important;
}

html body .journal-allocation-form label {
  display: grid !important;
  gap: 7px !important;
  color: #64748b !important;
  font-weight: 700 !important;
}

html body .journal-allocation-submit,
html body .modal-panel:has(.enterprise-journal-detail) .journal-allocation-submit {
  width: 100% !important;
  min-height: 44px !important;
  border: 0 !important;
  border-radius: 8px !important;
  background: #1d727a !important;
  color: #ffffff !important;
  box-shadow: 0 12px 22px rgba(29, 114, 122, 0.22) !important;
  font-weight: 800 !important;
}

html body .journal-assignment-history-table,
html body .modal-panel:has(.enterprise-journal-detail) .journal-assignment-history-table {
  overflow: hidden !important;
  border: 1px solid #e6eef8 !important;
  border-radius: 8px !important;
  background: #ffffff !important;
  box-shadow: none !important;
}

html body .journal-assignment-history-table th,
html body .journal-assignment-history-table td,
html body .modal-panel:has(.enterprise-journal-detail) .journal-assignment-history-table th,
html body .modal-panel:has(.enterprise-journal-detail) .journal-assignment-history-table td {
  height: 58px !important;
  padding: 14px 20px !important;
}

html body .journal-dashboard-panel,
html body .modal-panel:has(.enterprise-journal-detail) .journal-dashboard-panel {
  display: grid !important;
  gap: 20px !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

html body .journal-dashboard-cards {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 16px !important;
}

html body .journal-dashboard-card {
  display: grid !important;
  gap: 12px !important;
  min-height: 160px !important;
  padding: 20px !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 8px !important;
  background: #ffffff !important;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.06) !important;
}

html body .journal-dashboard-card > span {
  color: #64748b !important;
  font-size: 13px !important;
  font-weight: 800 !important;
}

html body .journal-dashboard-card > strong {
  color: #0f172a !important;
  font-size: 34px !important;
  font-weight: 900 !important;
  line-height: 1.1 !important;
}

html body .journal-dashboard-card > small {
  color: #64748b !important;
  font-size: 12px !important;
  font-weight: 600 !important;
}

html body .journal-dashboard-money-card {
  border-color: #cbe7d3 !important;
  background: rgba(60, 184, 108, 0.14) !important;
}

html body .journal-dashboard-money-card > strong {
  color: #2A8C52 !important;
  font-size: 38px !important;
}

html body .journal-progress {
  overflow: hidden !important;
  height: 7px !important;
  border-radius: 999px !important;
  background: #e2e8f0 !important;
}

html body .journal-progress i {
  display: block !important;
  height: 100% !important;
  border-radius: inherit !important;
  background: #1d727a !important;
}

html body .journal-status-list {
  display: grid !important;
  gap: 10px !important;
}

html body .journal-status-list p {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 10px !important;
  margin: 0 !important;
  padding-block: 6px !important;
  border-bottom: 1px solid #e6eef8 !important;
}

html body .journal-status-list b {
  color: #334155 !important;
  font-weight: 800 !important;
}

html body .journal-status-list em {
  color: #64748b !important;
  font-size: 12px !important;
  font-style: normal !important;
  font-weight: 800 !important;
}

@media (max-width: 900px) {
  html body .journal-dashboard-cards,
  html body .journal-allocation-form {
    grid-template-columns: 1fr !important;
  }
}

/* Enterprise journal allocation and dashboard final polish. */
html body .enterprise-journal-detail .journal-detail-tabs,
html body .modal-panel:has(.enterprise-journal-detail) .journal-detail-tabs,
html body .enterprise-journal-detail .week-tabs {
  min-height: 48px !important;
  height: auto !important;
  align-items: flex-end !important;
  gap: 8px !important;
  overflow: visible !important;
  padding: 0 !important;
  margin: 2px 0 16px !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

html body .enterprise-journal-detail .journal-detail-tabs .week-tab,
html body .modal-panel:has(.enterprise-journal-detail) .journal-detail-tabs .week-tab,
html body .enterprise-journal-detail .week-tabs .week-tab {
  min-height: 46px !important;
  height: 46px !important;
  padding: 0 18px 9px !important;
  border: 0 !important;
  border-bottom: 2px solid transparent !important;
  border-radius: 8px 8px 0 0 !important;
  background: transparent !important;
  color: #64748b !important;
  box-shadow: none !important;
  font-size: 14px !important;
  font-weight: 750 !important;
}

html body .enterprise-journal-detail .journal-detail-tabs .week-tab:hover,
html body .modal-panel:has(.enterprise-journal-detail) .journal-detail-tabs .week-tab:hover,
html body .enterprise-journal-detail .week-tabs .week-tab:hover {
  background: #f1f5f9 !important;
  color: #334155 !important;
}

html body .enterprise-journal-detail .journal-detail-tabs .week-tab.active,
html body .modal-panel:has(.enterprise-journal-detail) .journal-detail-tabs .week-tab.active,
html body .enterprise-journal-detail .week-tabs .week-tab.active {
  border-bottom-color: #1d727a !important;
  background: transparent !important;
  color: #1d727a !important;
  box-shadow: none !important;
}

html body .journal-allocation-panel,
html body .modal-panel:has(.enterprise-journal-detail) .journal-allocation-panel {
  padding: 28px !important;
  border: 1px solid #e5e7eb !important;
  border-radius: 8px !important;
  background: #ffffff !important;
  box-shadow: var(--shadow) !important;
}

html body .journal-allocation-submit,
html body .modal-panel:has(.enterprise-journal-detail) .journal-allocation-submit {
  min-height: 48px !important;
  padding-inline: 24px !important;
  background: #1d727a !important;
  color: #ffffff !important;
  box-shadow: 0 14px 28px rgba(29, 114, 122, 0.24) !important;
}

html body .journal-allocation-submit:hover,
html body .modal-panel:has(.enterprise-journal-detail) .journal-allocation-submit:hover {
  background: #17646b !important;
}

html body .journal-assignment-history-table,
html body .modal-panel:has(.enterprise-journal-detail) .journal-assignment-history-table {
  margin-top: 4px !important;
}

html body .journal-assignment-history-table th,
html body .journal-assignment-history-table td,
html body .modal-panel:has(.enterprise-journal-detail) .journal-assignment-history-table th,
html body .modal-panel:has(.enterprise-journal-detail) .journal-assignment-history-table td {
  height: 64px !important;
  padding: 18px 24px !important;
}

html body .journal-dashboard-cards {
  grid-template-columns: repeat(3, minmax(210px, 1fr)) !important;
  gap: 18px !important;
}

html body .journal-dashboard-card {
  min-height: 174px !important;
  padding: 24px !important;
  border-radius: 8px !important;
  background: #ffffff !important;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08) !important;
}

html body .journal-dashboard-card > strong {
  font-size: 40px !important;
  letter-spacing: 0 !important;
}

html body .journal-dashboard-money-card {
  background: rgba(60, 184, 108, 0.14) !important;
}

html body .journal-dashboard-money-card > strong {
  font-size: 44px !important;
}

html body #app .modal-panel .enterprise-journal-detail .journal-detail-tabs > button.week-tab,
html body #app .modal-panel .enterprise-journal-detail .week-tabs > button.week-tab {
  border: 0 !important;
  border-bottom: 2px solid transparent !important;
  background: transparent !important;
  background-color: transparent !important;
  color: #64748b !important;
}

html body #app .modal-panel .enterprise-journal-detail .journal-detail-tabs > button.week-tab.active,
html body #app .modal-panel .enterprise-journal-detail .week-tabs > button.week-tab.active {
  border-bottom: 2px solid #1d727a !important;
  background: transparent !important;
  background-color: transparent !important;
  color: #1d727a !important;
}

html body #app .modal-panel .enterprise-journal-detail button.journal-allocation-submit.primary {
  border: 0 !important;
  background: #1d727a !important;
  background-color: #1d727a !important;
  color: #ffffff !important;
}

html body #app .modal-panel .enterprise-journal-detail button.journal-allocation-submit.primary:hover {
  background: #17646b !important;
  background-color: #17646b !important;
  color: #ffffff !important;
}

/* Keep journal detail tabs pinned while tab content changes height. */
html body #app .modal-panel .enterprise-journal-detail {
  display: flex !important;
  flex-direction: column !important;
  min-height: 560px !important;
  gap: 0 !important;
}

html body #app .modal-panel .enterprise-journal-detail > .section-head {
  flex: 0 0 auto !important;
  margin-bottom: 18px !important;
}

html body #app .modal-panel .enterprise-journal-detail > .journal-detail-tabs,
html body #app .modal-panel .enterprise-journal-detail > .week-tabs {
  flex: 0 0 auto !important;
  align-self: stretch !important;
  margin: 0 0 24px !important;
  min-height: 48px !important;
  height: 48px !important;
}

html body #app .modal-panel .enterprise-journal-detail > .week-tab-content {
  flex: 1 1 auto !important;
  min-height: 400px !important;
  display: flex !important;
  flex-direction: column !important;
  overflow: visible !important;
}

html body #app .modal-panel .enterprise-journal-detail > .week-tab-content > .subpanel {
  flex: 1 1 auto !important;
}

html body #app .journal-table-actions {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: flex-end !important;
  gap: 10px !important;
  flex-wrap: wrap !important;
}

/* Record modal tabs: keep the fast static panes, restore Remit underline tabs. */
html body #app .modal-panel .record-card-tabs > .record-tab-nav.week-tabs,
html body #app .modal-panel .record-card-tabs > .journal-detail-tabs.record-tab-nav {
  display: flex !important;
  align-items: flex-end !important;
  justify-content: flex-start !important;
  direction: ltr !important;
  gap: 30px !important;
  width: 100% !important;
  min-height: 48px !important;
  height: 48px !important;
  margin: 0 0 24px !important;
  padding: 0 22px !important;
  border: 0 !important;
  border-bottom: 1px solid #e2e8f0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

html body #app .modal-panel .record-card-tabs > .record-tab-nav.week-tabs > button.week-tab,
html body #app .modal-panel .record-card-tabs > .journal-detail-tabs.record-tab-nav > button.week-tab {
  position: relative !important;
  direction: rtl !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-width: 0 !important;
  min-height: 48px !important;
  height: 48px !important;
  padding: 0 8px 10px !important;
  border: 0 !important;
  border-bottom: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  background-color: transparent !important;
  box-shadow: none !important;
  color: #64748b !important;
  font-size: 14px !important;
  font-weight: 750 !important;
}

html body #app .modal-panel .record-card-tabs > .record-tab-nav.week-tabs > button.week-tab:hover,
html body #app .modal-panel .record-card-tabs > .record-tab-nav.week-tabs > button.week-tab:focus-visible,
html body #app .modal-panel .record-card-tabs > .journal-detail-tabs.record-tab-nav > button.week-tab:hover,
html body #app .modal-panel .record-card-tabs > .journal-detail-tabs.record-tab-nav > button.week-tab:focus-visible {
  border: 0 !important;
  background: transparent !important;
  background-color: transparent !important;
  box-shadow: none !important;
  color: #334155 !important;
}

html body #app .modal-panel .record-card-tabs > .record-tab-nav.week-tabs > button.week-tab.active,
html body #app .modal-panel .record-card-tabs > .journal-detail-tabs.record-tab-nav > button.week-tab.active {
  border: 0 !important;
  background: transparent !important;
  background-color: transparent !important;
  box-shadow: none !important;
  color: #1d727a !important;
}

html body #app .modal-panel .record-card-tabs > .record-tab-nav.week-tabs > button.week-tab.active::after,
html body #app .modal-panel .record-card-tabs > .journal-detail-tabs.record-tab-nav > button.week-tab.active::after {
  content: "" !important;
  position: absolute !important;
  right: 0 !important;
  bottom: 0 !important;
  left: 0 !important;
  height: 2px !important;
  border-radius: 999px 999px 0 0 !important;
  background: #1d727a !important;
}

html body .donor-dedup-modal .modal-head h2 {
  color: #0f172a !important;
}

html body .donor-dedup-card {
  display: grid !important;
  gap: 12px !important;
  padding: 18px !important;
  border: 1px solid #dbe4f0 !important;
  border-radius: 10px !important;
  background: #ffffff !important;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08) !important;
}

html body .donor-dedup-card > span {
  color: #64748b !important;
  font-size: 12px !important;
  font-weight: 800 !important;
}

html body .donor-dedup-card > strong {
  color: #0f172a !important;
  font-size: 22px !important;
  font-weight: 900 !important;
}

html body .donor-dedup-card dl {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(120px, 1fr)) !important;
  gap: 10px !important;
  margin: 0 !important;
}

html body .donor-dedup-card dl > div {
  padding: 10px 12px !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 8px !important;
  background: #f8fafc !important;
}

html body .donor-dedup-card dt {
  margin: 0 0 4px !important;
  color: #64748b !important;
  font-size: 12px !important;
  font-weight: 700 !important;
}

html body .donor-dedup-card dd {
  margin: 0 !important;
  color: #0f172a !important;
  font-weight: 800 !important;
}

html body .donor-dedup-actions {
  justify-content: flex-start !important;
  gap: 10px !important;
}

html body #app .modal-panel .enterprise-journal-detail .journal-records-filter {
  display: inline-flex !important;
  align-items: center !important;
  gap: 4px !important;
  width: fit-content !important;
  margin: 0 0 14px !important;
  padding: 4px !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 8px !important;
  background: #f8fafc !important;
}

html body #app .modal-panel .enterprise-journal-detail .journal-records-filter button {
  min-height: 34px !important;
  padding: 0 14px !important;
  border: 0 !important;
  border-radius: 6px !important;
  background: transparent !important;
  background-color: transparent !important;
  color: #64748b !important;
  box-shadow: none !important;
  font-size: 13px !important;
  font-weight: 800 !important;
}

html body #app .modal-panel .enterprise-journal-detail .journal-records-filter button.active {
  background: #ffffff !important;
  background-color: #ffffff !important;
  color: #1d727a !important;
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.08) !important;
}

html body #app .modal-panel .enterprise-journal-detail .journal-assignment-history-table,
html body #app .modal-panel .enterprise-journal-detail .journal-records-table {
  overflow: hidden !important;
  border: 1px solid #dbe7e7 !important;
  border-radius: 8px !important;
  background: #ffffff !important;
  background-color: #ffffff !important;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.06) !important;
  border-collapse: separate !important;
  border-spacing: 0 !important;
}

html body #app .modal-panel .enterprise-journal-detail .journal-assignment-history-table thead,
html body #app .modal-panel .enterprise-journal-detail .journal-assignment-history-table th,
html body #app .modal-panel .enterprise-journal-detail .journal-records-table thead,
html body #app .modal-panel .enterprise-journal-detail .journal-records-table th {
  background: #eef8f6 !important;
  background-color: #eef8f6 !important;
  color: #334155 !important;
  font-weight: 850 !important;
}

html body #app .modal-panel .enterprise-journal-detail .journal-assignment-history-table th,
html body #app .modal-panel .enterprise-journal-detail .journal-assignment-history-table td,
html body #app .modal-panel .enterprise-journal-detail .journal-records-table th,
html body #app .modal-panel .enterprise-journal-detail .journal-records-table td {
  border-bottom: 1px solid #e6eef8 !important;
}

html body #app .modal-panel .enterprise-journal-detail .journal-assigned-chip {
  display: inline-flex !important;
  align-items: center !important;
  min-height: 26px !important;
  padding: 0 10px !important;
  border: 1px solid #d8dee8 !important;
  border-radius: 999px !important;
  background: #f1f5f9 !important;
  color: #475569 !important;
  font-size: 12px !important;
  font-weight: 800 !important;
}

/* Global table resize containment. */
html,
body,
html body #app,
html body main.main {
  max-width: 100vw !important;
  overflow-x: hidden !important;
}

html body .data-grid-panel,
html body .panel:has(> table),
html body .panel:has(> .table-search-row),
html body .modal-panel {
  max-width: 100% !important;
  min-width: 0 !important;
  overflow-x: auto !important;
  overscroll-behavior-x: contain !important;
}

html body .data-grid-panel,
html body .records-screen-panel,
html body .table-panel,
html body .widget-card,
html body .modal-body {
  box-sizing: border-box !important;
}

html body table.data-grid,
html body table.records-like-table,
html body .data-grid-panel table,
html body .panel > table {
  max-width: none !important;
  min-width: 100% !important;
  table-layout: fixed !important;
}

html body table.data-grid th,
html body table.data-grid td,
html body table.records-like-table th,
html body table.records-like-table td {
  min-width: 56px !important;
  max-width: 420px !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

html body table.data-grid th.utility-column,
html body table.data-grid td:has(> input[type="checkbox"][data-bulk-select]),
html body table.records-like-table th.utility-column,
html body table.records-like-table td:has(> input[type="checkbox"][data-bulk-select]) {
  min-width: 34px !important;
  max-width: 48px !important;
}

html body #app .modal-panel .record-tab-loading {
  display: grid !important;
  min-height: 180px !important;
  place-items: center !important;
  color: #64748b !important;
  font-weight: 700 !important;
}

/* Record payment fields: dropdowns must not stretch the modal or trap scrolling. */
html body #app .record-form .payment-method-field,
html body #app .record-form .payment-method-field .managed-select,
html body #app .record-form .payment-method-field .managed-select-button,
html body #app .record-form .payment-method-field select {
  width: 100% !important;
  max-width: none !important;
}

html body #choice-bubble-dialog.managed-floating-select-menu,
html body #floating-choice-menu.managed-floating-select-menu {
  min-width: min(520px, calc(100vw - 32px)) !important;
  max-width: calc(100vw - 32px) !important;
}

html body #choice-bubble-dialog.managed-floating-select-menu .floating-choice-body,
html body #floating-choice-menu.managed-floating-select-menu .floating-choice-body {
  display: grid !important;
  gap: 8px !important;
}

html body #choice-bubble-dialog.managed-floating-select-menu .managed-option-value,
html body #choice-bubble-dialog.managed-floating-select-menu .managed-option-row,
html body #floating-choice-menu.managed-floating-select-menu .managed-option-value,
html body #floating-choice-menu.managed-floating-select-menu .managed-option-row {
  width: 100% !important;
}

html body #app .record-form .managed-select.floating-open .managed-select-menu,
html body #app .record-form .managed-select-menu.record-form-floating-menu {
  padding: 10px !important;
}

html body #app .record-form .managed-select.floating-open .managed-option-list,
html body #app .record-form .managed-select-menu.record-form-floating-menu .managed-option-list {
  display: grid !important;
  gap: 8px !important;
}

html body #app .record-form .managed-select.floating-open .managed-option-value,
html body #app .record-form .managed-select.floating-open .managed-option-row,
html body #app .record-form .managed-select.floating-open .managed-option-row .managed-option-value,
html body #app .record-form .managed-select-menu.record-form-floating-menu button.managed-option-value,
html body #app .record-form .managed-select-menu.record-form-floating-menu .managed-option-row,
html body #app .record-form .managed-select-menu.record-form-floating-menu .managed-option-row button.managed-option-value {
  width: 100% !important;
  min-height: 38px !important;
  padding: 0 !important;
  border: 0 !important;
  border-color: transparent !important;
  border-radius: 0 !important;
  background: transparent !important;
  background-color: transparent !important;
  box-shadow: none !important;
}

html body #app .record-form .managed-select.floating-open .managed-option-value,
html body #app .record-form .managed-select-menu.record-form-floating-menu button.managed-option-value {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
}

html body #app .record-form .managed-select.floating-open .choice-select-value,
html body #app .record-form .managed-select-menu.record-form-floating-menu .choice-select-value {
  width: 100% !important;
  justify-content: flex-start !important;
}

html body #app .record-form .managed-select.floating-open .status-badge,
html body #app .record-form .managed-select-menu.record-form-floating-menu .status-badge {
  width: 100% !important;
  justify-content: center !important;
  border-radius: 999px !important;
  border: 1px solid currentColor !important;
  box-shadow: none !important;
}

html body #app .modal-panel:has(.record-form) {
  max-height: calc(100vh - 48px) !important;
  overflow: hidden !important;
}

html body #app .modal-panel:has(.record-form) .modal-body {
  min-height: 0 !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
  overscroll-behavior: contain !important;
}

/* Remit palette cleanup and restored table controls. */
:root {
  --remit-navy: #0f3f4a;
  --remit-table-head-bg: #f8fafc;
  --remit-table-head-text: #334155;
}

html body #app .week-tabs > .week-tab.active,
html body #app .journal-detail-tabs > .week-tab.active,
html body #app .modal-panel .record-card-tabs > .record-tab-nav.week-tabs > button.week-tab.active,
html body #app .modal-panel .record-card-tabs > .journal-detail-tabs.record-tab-nav > button.week-tab.active {
  color: var(--remit-navy) !important;
}

html body #app .week-tabs > .week-tab.active::after,
html body #app .journal-detail-tabs > .week-tab.active::after,
html body #app .modal-panel .record-card-tabs > .record-tab-nav.week-tabs > button.week-tab.active::after,
html body #app .modal-panel .record-card-tabs > .journal-detail-tabs.record-tab-nav > button.week-tab.active::after {
  background: var(--remit-navy) !important;
}

html body #app table > thead,
html body #app table > thead > tr,
html body #app table > thead > tr > th,
html body #app .panel table thead,
html body #app .panel table th,
html body #app .data-grid thead,
html body #app .data-grid th,
html body #app .widget-table thead,
html body #app .widget-table th,
html body #app .records-like-table thead,
html body #app .records-like-table th,
html body #app .journal-records-table thead,
html body #app .journal-records-table th,
html body #app .gift-tracking-table thead,
html body #app .gift-tracking-table th,
html body #app .incentives-table thead,
html body #app .incentives-table th,
html body #app .variable-bonus-table thead,
html body #app .variable-bonus-table th,
html body #app .bonus-rules-table thead,
html body #app .bonus-rules-table th {
  background: var(--remit-table-head-bg) !important;
  background-color: var(--remit-table-head-bg) !important;
  color: var(--remit-table-head-text) !important;
  border-bottom-color: #e2e8f0 !important;
  border-inline-start-color: #edf2f7 !important;
  box-shadow: none !important;
}

html body #app .table-search-row,
html body #app .data-grid-panel .table-search-row,
html body #app .panel > .table-search-row,
html body #app .widget-card .widget-table-tools,
html body #app .donor-widgets .widget-table-tools,
html body #app .widgets .panel .widget-table-tools {
  display: flex !important;
  visibility: visible !important;
  opacity: 1 !important;
  background: #ffffff !important;
  border-color: #e2e8f0 !important;
}

html body #app .table-toolbar-meta {
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  width: 100% !important;
}

html body #app .table-free-search,
html body #app .widget-table-tools .table-free-search {
  display: inline-flex !important;
  visibility: visible !important;
  opacity: 1 !important;
  width: min(360px, 38vw) !important;
  min-width: 220px !important;
  height: 38px !important;
  background: #ffffff !important;
  border: 1px solid #d8dee8 !important;
  color: #0f172a !important;
}

html body #app .table-filter-settings,
html body #app .records-toolbar-settings,
html body #app .transactions-toolbar-settings,
html body #app .widget-column-btn.table-filter-settings {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  visibility: visible !important;
  opacity: 1 !important;
  width: 38px !important;
  min-width: 38px !important;
  max-width: 38px !important;
  height: 38px !important;
  min-height: 38px !important;
  max-height: 38px !important;
  padding: 0 !important;
  background: #ffffff !important;
  border: 1px solid #d8dee8 !important;
  border-radius: 8px !important;
  color: var(--remit-navy) !important;
  box-shadow: none !important;
}

html body .donor-widgets .widget-table thead,
html body .donor-widgets .widget-table thead tr,
html body .donor-widgets .widget-table thead th,
html body .widgets .widget-table thead,
html body .widgets .widget-table thead tr,
html body .widgets .widget-table thead th,
html body .modal-panel .donor-widgets .widget-table thead,
html body .modal-panel .donor-widgets .widget-table thead tr,
html body .modal-panel .donor-widgets .widget-table thead th {
  background: #f8fafc !important;
  background-color: #f8fafc !important;
  color: #334155 !important;
  border-bottom-color: #e2e8f0 !important;
  border-inline-start-color: #edf2f7 !important;
}
/* Remit table vitality pass: readable statuses, zebra rows, and clean record tabs. */
html body #app .data-grid tbody tr:nth-child(even):not(.widget-empty-row),
html body #app .widget-table tbody tr:nth-child(even):not(.widget-empty-row) {
  background: #f0f4f8 !important;
}

html body #app .data-grid tbody tr:nth-child(odd):not(.widget-empty-row),
html body #app .widget-table tbody tr:nth-child(odd):not(.widget-empty-row) {
  background: #ffffff !important;
}

html body #app .data-grid tbody tr:hover:not(.widget-empty-row),
html body #app .widget-table tbody tr:hover:not(.widget-empty-row) {
  background: #e7f6fb !important;
}

html body #app .data-grid tbody tr:hover td,
html body #app .widget-table tbody tr:hover td {
  background: transparent !important;
}

html body #app .status-badge {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-height: 28px !important;
  padding: 5px 14px !important;
  border-radius: 999px !important;
  font-size: 13px !important;
  font-weight: 800 !important;
  line-height: 1.1 !important;
  border: 1px solid transparent !important;
  box-shadow: none !important;
  white-space: nowrap !important;
}

html body #app .status-badge.success,
html body #app .status-badge.ok {
  color: #2A8C52 !important;
  background: rgba(60, 184, 108, 0.14) !important;
  border-color: rgba(60, 184, 108, 0.14) !important;
}

html body #app .status-badge.danger {
  color: #991b1b !important;
  background: #fee2e2 !important;
  border-color: #fecaca !important;
}

html body #app .status-badge.warning,
html body #app .status-badge.warn {
  color: #92400e !important;
  background: #fef3c7 !important;
  border-color: #fde68a !important;
}

html body #app .status-badge.info,
html body #app .status-badge.neutral {
  color: #334155 !important;
  background: #eaf1f8 !important;
  border-color: #dbe5ef !important;
}

html body #app .record-card-tabs .record-tab-nav,
html body #app .record-card-tabs .week-tabs.record-tab-nav {
  display: flex !important;
  align-items: flex-end !important;
  justify-content: flex-start !important;
  gap: 28px !important;
  width: 100% !important;
  padding: 0 22px !important;
  margin: 0 !important;
  background: #ffffff !important;
  border: 0 !important;
  border-bottom: 1px solid #e5edf5 !important;
  box-shadow: none !important;
}

html body #app .record-card-tabs .record-tab-nav .week-tab {
  position: relative !important;
  min-width: auto !important;
  width: auto !important;
  height: 58px !important;
  padding: 0 4px !important;
  margin: 0 !important;
  color: #64748b !important;
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  font-weight: 800 !important;
}

html body #app .record-card-tabs .record-tab-nav .week-tab.active {
  color: #123f4a !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}

html body #app .record-card-tabs .record-tab-nav .week-tab.active::after {
  content: "" !important;
  position: absolute !important;
  right: 0 !important;
  left: 0 !important;
  bottom: -1px !important;
  height: 3px !important;
  background: #123f4a !important;
  border-radius: 8px 8px 0 0 !important;
}

html body #app .widget-table-tools {
  display: block !important;
  width: 100% !important;
  margin: 0 0 10px !important;
  padding: 0 !important;
  background: transparent !important;
  border: 0 !important;
}

html body #app .widget-table-tools .table-toolbar-meta {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 10px !important;
  width: 100% !important;
}

html body #app .widget-table-tools .table-free-search {
  flex: 1 1 220px !important;
  max-width: 360px !important;
  height: 38px !important;
  background: #ffffff !important;
}

html body #app .widget-table-tools .table-toolbar-title {
  margin-inline-start: auto !important;
  color: #1e293b !important;
  font-weight: 800 !important;
}

/* Record workbench two-column history layout. */
html body #app table tbody tr[hidden],
html body #app .widget-table tbody tr[hidden],
html body #app .data-grid tbody tr[hidden] {
  display: none !important;
}

html body #app .donor-widget-tab-panel.active .donor-widget-table-scroll table:not([data-client-paginated="true"]) tbody tr:nth-child(n+11):not([hidden]) {
  display: none !important;
}

html body #app .record-details-layout {
  display: grid !important;
  grid-template-columns: minmax(430px, 1.05fr) minmax(420px, 0.95fr) !important;
  grid-template-areas: "form history" !important;
  gap: 18px !important;
  align-items: start !important;
  width: 100% !important;
  direction: rtl !important;
}

html body #app .record-details-layout > .record-form {
  grid-area: form !important;
  min-width: 0 !important;
}

html body #app .record-tab-widgets {
  grid-area: history !important;
  min-width: 0 !important;
  width: 100% !important;
}

html body #app .record-tab-widgets .donor-widgets {
  display: grid !important;
  grid-template-rows: minmax(190px, auto) minmax(360px, 1fr) !important;
  gap: 14px !important;
  width: 100% !important;
  margin: 0 !important;
}

html body #app .record-tab-widgets .email-conversation-widget,
html body #app .record-tab-widgets .donor-widget-data-card {
  margin: 0 !important;
  width: 100% !important;
  min-width: 0 !important;
  border: 1px solid #dbe5ef !important;
  border-radius: 14px !important;
  background: #ffffff !important;
  box-shadow: 0 14px 36px rgba(15, 39, 66, 0.07) !important;
}

html body #app .record-tab-widgets .email-conversation-widget {
  max-height: 260px !important;
  overflow: hidden !important;
}

html body #app .record-tab-widgets .email-thread-list {
  max-height: 170px !important;
  overflow-y: auto !important;
}

html body #app .donor-widget-data-card {
  display: flex !important;
  flex-direction: column !important;
  padding: 24px !important;
  overflow: hidden !important;
}

html body #app .donor-widget-mini-tabs {
  display: flex !important;
  align-items: flex-end !important;
  justify-content: flex-start !important;
  gap: 24px !important;
  padding: 0 !important;
  height: 52px !important;
  border-bottom: 1px solid #e5edf5 !important;
  background: #ffffff !important;
}

html body #app .donor-widget-mini-tabs button {
  position: relative !important;
  width: auto !important;
  min-width: 0 !important;
  max-width: none !important;
  height: 52px !important;
  padding: 0 2px !important;
  margin: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  color: #64748b !important;
  font-size: 14px !important;
  font-weight: 800 !important;
  appearance: none !important;
  -webkit-appearance: none !important;
}

html body #app .donor-widget-data-card .donor-widget-mini-tabs > button.remit-clean-tab,
html body #app .donor-widget-data-card .donor-widget-mini-tabs > button.remit-clean-tab:not(.ghost):not(.icon-btn):not(.table-link):not(.calendar-day):not(.managed-select-button):not(.table-bubble-current),
html body #app .donor-widget-data-card .donor-widget-mini-tabs > button.remit-clean-tab:hover,
html body #app .donor-widget-data-card .donor-widget-mini-tabs > button.remit-clean-tab:focus,
html body #app .donor-widget-data-card .donor-widget-mini-tabs > button.remit-clean-tab:active {
  width: auto !important;
  min-width: 0 !important;
  max-width: none !important;
  height: 52px !important;
  min-height: 52px !important;
  max-height: 52px !important;
  padding: 0 2px !important;
  background: transparent !important;
  background-color: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  color: #64748b !important;
}

html body #app .donor-widget-data-card .donor-widget-mini-tabs > button.remit-clean-tab.active,
html body #app .donor-widget-data-card .donor-widget-mini-tabs > button.remit-clean-tab.active:hover,
html body #app .donor-widget-data-card .donor-widget-mini-tabs > button.remit-clean-tab.active:focus {
  color: #005088 !important;
  font-weight: 900 !important;
  background: transparent !important;
  background-color: transparent !important;
  box-shadow: none !important;
}

html body #app .donor-widget-mini-tabs .remit-clean-tab-label {
  display: inline-flex !important;
  align-items: center !important;
  height: 100% !important;
  color: #94a3b8 !important;
  font-weight: 700 !important;
  border-bottom: 3px solid transparent !important;
  border-radius: 8px 8px 0 0 !important;
}

html body #app .donor-widget-mini-tabs .remit-clean-tab.active .remit-clean-tab-label {
  color: #005088 !important;
  font-weight: 900 !important;
  border-bottom-color: #005088 !important;
}

html body #app .donor-widget-data-card .donor-widget-mini-tabs > button,
html body #app .donor-widget-data-card .donor-widget-mini-tabs > button:hover,
html body #app .donor-widget-data-card .donor-widget-mini-tabs > button:focus,
html body #app .donor-widget-data-card .donor-widget-mini-tabs > button:active {
  background: transparent !important;
  background-color: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}

html body #app .donor-widget-mini-tabs button:not(.active),
html body #app .donor-widget-mini-tabs button:not(.active):hover,
html body #app .donor-widget-mini-tabs button:not(.active):focus {
  background: transparent !important;
  background-color: transparent !important;
  border-color: transparent !important;
  box-shadow: none !important;
}

html body #app .donor-widget-mini-tabs button.active {
  color: #005088 !important;
}

html body #app .donor-widget-mini-tabs button.active::after {
  content: "" !important;
  position: absolute !important;
  right: 0 !important;
  left: 0 !important;
  bottom: -1px !important;
  height: 3px !important;
  background: #005088 !important;
  border-radius: 8px 8px 0 0 !important;
}

html body #app .donor-widget-tab-content {
  flex: 1 1 auto !important;
  min-height: 0 !important;
  padding: 18px 0 0 !important;
}

html body #app .donor-widget-tab-panel {
  display: none !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

html body #app .donor-widget-tab-panel.active {
  display: flex !important;
  flex-direction: column !important;
  min-height: 0 !important;
}

html body #app .donor-widget-table-scroll {
  flex: 1 1 auto !important;
  min-height: 250px !important;
  max-height: 330px !important;
  overflow: auto !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 12px !important;
  background: #ffffff !important;
}

html body #app .donor-widget-tab-panel .widget-page-footer {
  padding-top: 10px !important;
}

html body #app .record-tab-widgets .widget-table-tools {
  margin: 0 0 10px !important;
}

html body #app .record-tab-widgets .widget-table-tools .table-toolbar-meta {
  gap: 8px !important;
}

html body #app .record-tab-widgets .widget-table-tools .table-toolbar-title,
html body #app .record-tab-widgets .widget-table-tools .table-result-count {
  display: none !important;
}

html body #app .record-tab-widgets .widget-table-tools .table-free-search {
  flex: 1 1 auto !important;
  max-width: none !important;
  height: 36px !important;
  border-radius: 10px !important;
  background: #ffffff !important;
}

html body #app .record-tab-widgets .widget-column-btn,
html body #app .record-tab-widgets .table-filter-settings,
html body #app .record-tab-widgets .widget-toolbar-add {
  width: 34px !important;
  min-width: 34px !important;
  max-width: 34px !important;
  height: 34px !important;
  min-height: 34px !important;
  max-height: 34px !important;
  padding: 0 !important;
  border: 1px solid #dbe5ef !important;
  border-radius: 10px !important;
  background: #ffffff !important;
  color: #64748b !important;
  box-shadow: none !important;
}

html body #app .record-tab-widgets .widget-column-btn:hover,
html body #app .record-tab-widgets .table-filter-settings:hover,
html body #app .record-tab-widgets .widget-toolbar-add:hover {
  background: #f8fafc !important;
  color: #123f4a !important;
  border-color: #cbd5e1 !important;
}

html body #app .record-tab-widgets .widget-column-btn svg,
html body #app .record-tab-widgets .table-filter-settings svg {
  width: 17px !important;
  height: 17px !important;
  color: currentColor !important;
}

html body #app .status-badge.remit-fixed-badge,
html body .modal-panel .status-badge.remit-fixed-badge {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-height: 28px !important;
  padding: 5px 14px !important;
  border-radius: 999px !important;
  border: 1px solid transparent !important;
  font-weight: 800 !important;
  line-height: 1.15 !important;
  white-space: nowrap !important;
  box-shadow: none !important;
}

html body .modal-panel:has(.record-card-tabs) {
  max-height: calc(100vh - 48px) !important;
  overflow: hidden !important;
  display: grid !important;
  grid-template-rows: auto minmax(0, 1fr) auto !important;
}

html body .modal-panel:has(.record-card-tabs) > .modal-body {
  min-height: 0 !important;
  overflow-y: auto !important;
  padding-bottom: 18px !important;
}

html body .modal-panel:has(.record-card-tabs) > .modal-footer {
  position: sticky !important;
  bottom: 0 !important;
  z-index: 40 !important;
  display: flex !important;
  justify-content: flex-start !important;
  gap: 12px !important;
  background: #ffffff !important;
  border-top: 1px solid #e2e8f0 !important;
  box-shadow: 0 -12px 28px rgba(15, 23, 42, 0.08) !important;
}

html body .record-form [data-show-for-result][hidden],
html body .record-form [data-show-for-result].hidden {
  display: none !important;
}

html body #app .status-badge.success,
html body #app .status-badge.ok,
html body #app .status-badge.remit-fixed-badge[style*="e6f4ea"],
html body #app .status-badge.remit-fixed-badge[style*="dcfce7"],
html body .modal-panel .status-badge.success,
html body .modal-panel .status-badge.ok,
html body .modal-panel .status-badge.remit-fixed-badge[style*="e6f4ea"],
html body .modal-panel .status-badge.remit-fixed-badge[style*="dcfce7"] {
  background: rgba(60, 184, 108, 0.14) !important;
  background-color: rgba(60, 184, 108, 0.14) !important;
  color: #2A8C52 !important;
  border-color: rgba(60, 184, 108, 0.14) !important;
}

html body #app td[data-payment-method-cell="true"],
html body #app .widget-table td[data-payment-method-cell="true"],
html body #app .data-grid td[data-payment-method-cell="true"] {
  background: transparent !important;
  color: #334155 !important;
  font-weight: 700 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}

html body #app td[data-payment-method-cell="true"] .status-badge {
  display: contents !important;
  background: transparent !important;
  color: inherit !important;
  border: 0 !important;
  padding: 0 !important;
}

html body #app .record-form .managed-select:not(.status-field-container) .managed-select-button,
html body #app .record-form .managed-select-button:not(.status-field-container) {
  background: #ffffff !important;
  background-color: #ffffff !important;
  color: #334155 !important;
  border-color: #dbe5ef !important;
  box-shadow: none !important;
}

html body #app .record-form .managed-select:not(.status-field-container) .choice-select-value,
html body #app .record-form .managed-select:not(.status-field-container) .status-badge,
html body #app .record-form .managed-select-button:not(.status-field-container) .choice-select-value,
html body #app .record-form .managed-select-button:not(.status-field-container) .status-badge {
  display: contents !important;
  background: transparent !important;
  background-color: transparent !important;
  color: inherit !important;
  border: 0 !important;
  padding: 0 !important;
  box-shadow: none !important;
}

html body #app .record-form [name="commitmentStatus"] + .managed-select.status-field-container .managed-select-button,
html body #app .record-form [name="commitmentStatus"] + .managed-select .managed-select-button.status-field-container {
  background: rgba(60, 184, 108, 0.14) !important;
  background-color: rgba(60, 184, 108, 0.14) !important;
  color: #2A8C52 !important;
  border-color: #cbe7d3 !important;
}

html body #app .record-form [name="result"] + .managed-select.status-field-container .managed-select-button,
html body #app .record-form [name="result"] + .managed-select .managed-select-button.status-field-container {
  border-width: 1px !important;
  box-shadow: none !important;
}

html body #app .donor-widget-vertical-stack {
  display: grid !important;
  gap: 20px !important;
}

html body #app .donor-widget-vertical-card,
html body #app .email-conversation-widget {
  padding: 18px !important;
  border: 1px solid #dbe5ef !important;
  border-radius: 10px !important;
  background: #ffffff !important;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.04) !important;
}

html body #app .donor-widget-vertical-card .widget-head,
html body #app .email-conversation-widget .widget-head {
  margin-bottom: 12px !important;
}

html body #app .donor-widget-vertical-card .widget-head h3,
html body #app .email-conversation-widget .widget-head h3 {
  margin: 0 !important;
  color: #123f4a !important;
  font-size: 17px !important;
  font-weight: 900 !important;
}

html body #app .donor-widget-empty-state {
  min-height: 46px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 12px !important;
  padding: 10px 12px !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 10px !important;
  background: #f8fafc !important;
  color: #64748b !important;
  font-weight: 700 !important;
}

html body #app .donor-widget-empty-state .widget-toolbar-add,
html body #app .donor-widget-empty-state .email-empty-send-btn {
  width: auto !important;
  min-width: 34px !important;
  max-width: none !important;
  height: 34px !important;
  min-height: 34px !important;
  max-height: 34px !important;
  padding: 0 12px !important;
  border-radius: 999px !important;
  box-shadow: none !important;
}

html body #app .email-empty-state {
  text-align: start !important;
}

html body #app .donor-widget-vertical-card .widget-page-footer,
html body #app .email-conversation-widget .widget-page-footer {
  margin-top: 10px !important;
}

html body #app .donor-widget-mini-tabs,
html body #app .donor-widget-tab-content:empty {
  display: none !important;
}

/* Final vertical donor widgets polish. */
html body #app .record-tab-widgets .donor-widgets {
  display: grid !important;
  grid-template-rows: none !important;
  grid-auto-rows: auto !important;
  gap: 20px !important;
  align-items: start !important;
  width: 100% !important;
  margin: 0 !important;
}

html body #app .record-tab-widgets .donor-widget-vertical-stack {
  display: grid !important;
  gap: 20px !important;
  margin: 0 !important;
}

html body #app .record-tab-widgets .email-conversation-widget,
html body #app .record-tab-widgets .donor-widget-vertical-card {
  width: 100% !important;
  min-width: 0 !important;
  margin: 0 !important;
  padding: 16px !important;
  border: 1px solid #dbe5ef !important;
  border-radius: 12px !important;
  background: #ffffff !important;
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.045) !important;
  overflow: visible !important;
}

html body #app .record-tab-widgets .email-conversation-widget:last-child,
html body #app .record-tab-widgets .donor-widget-vertical-card:last-child {
  margin-bottom: 0 !important;
}

html body #app .record-tab-widgets .email-conversation-widget.email-is-empty {
  min-height: 0 !important;
  max-height: none !important;
  padding: 14px 16px !important;
}

html body #app .record-tab-widgets .email-conversation-widget.email-is-empty .email-mailbox-summary,
html body #app .record-tab-widgets .email-conversation-widget.email-is-empty .widget-page-footer,
html body #app .record-tab-widgets .email-conversation-widget.email-is-empty .email-thread-list {
  display: none !important;
}

html body #app .record-tab-widgets .widget-head,
html body #app .record-tab-widgets .donor-widget-card-title {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 12px !important;
  margin: 0 0 12px !important;
  padding: 0 !important;
  min-height: auto !important;
  border: 0 !important;
  background: transparent !important;
}

html body #app .record-tab-widgets .widget-head h3,
html body #app .record-tab-widgets .donor-widget-card-title h3 {
  margin: 0 !important;
  color: #0f2f38 !important;
  font-size: 17px !important;
  font-weight: 900 !important;
  line-height: 1.2 !important;
}

html body #app .record-tab-widgets .donor-widget-table-scroll {
  border: 1px solid #e2e8f0 !important;
  border-radius: 10px !important;
  background: #ffffff !important;
  overflow: auto !important;
}

html body #app .record-tab-widgets .donor-widget-empty-state {
  min-height: 44px !important;
  height: auto !important;
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 12px !important;
  padding: 8px 12px !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 10px !important;
  background: #f8fafc !important;
  color: #64748b !important;
  font-size: 14px !important;
  font-weight: 700 !important;
  text-align: start !important;
}

html body #app .record-tab-widgets .donor-widget-empty-state span {
  flex: 1 1 auto !important;
  min-width: 0 !important;
}

html body #app .record-tab-widgets .donor-widget-empty-state .widget-toolbar-add,
html body #app .record-tab-widgets .donor-widget-empty-state .email-empty-send-btn,
html body #app .record-tab-widgets .donor-widget-empty-state button {
  flex: 0 0 auto !important;
  width: 32px !important;
  min-width: 32px !important;
  max-width: 96px !important;
  height: 32px !important;
  min-height: 32px !important;
  max-height: 32px !important;
  padding: 0 10px !important;
  border-radius: 999px !important;
  border: 1px solid #0f6670 !important;
  background: #0f6670 !important;
  background-color: #0f6670 !important;
  color: #ffffff !important;
  font-size: 15px !important;
  font-weight: 800 !important;
  line-height: 1 !important;
  box-shadow: none !important;
}

html body #app .record-tab-widgets .donor-widget-empty-state .email-empty-send-btn {
  width: auto !important;
  min-width: 86px !important;
}

html body #app .record-tab-widgets .donor-empty-add-btn,
html body #app .record-tab-widgets button.donor-empty-add-btn,
html body .record-tab-widgets .donor-empty-add-btn:not(.ghost):not(.icon-btn):not(.table-link):not(.calendar-day):not(.managed-select-button):not(.table-bubble-current) {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  border-radius: 999px !important;
  border: 1px solid #0f3f4a !important;
  background: #0f3f4a !important;
  background-color: #0f3f4a !important;
  color: #ffffff !important;
  box-shadow: none !important;
  transform: none !important;
}

html body #app .record-tab-widgets .email-conversation-widget.email-is-empty,
html body #app .record-tab-widgets .email-conversation-widget.email-is-empty.panel,
html body #app .record-tab-widgets .email-conversation-widget.email-is-empty.widget-card {
  min-height: 0 !important;
  height: auto !important;
  max-height: none !important;
  overflow: visible !important;
}

html body #app .record-tab-widgets .email-conversation-widget.email-is-empty .widget-head {
  margin-bottom: 10px !important;
}

html body #app .record-tab-widgets .donor-widget-is-empty .widget-head .widget-toolbar-add,
html body #app .record-tab-widgets .donor-widget-is-empty > .widget-toolbar-add,
html body #app .record-tab-widgets .donor-widget-is-empty .donor-widget-card-title .widget-toolbar-add {
  display: none !important;
}

html body #app .record-tab-widgets .widget-table-tools .widget-toolbar-add,
html body #app .record-tab-widgets .donor-widget-vertical-card .widget-toolbar-add,
html body #app .record-tab-widgets button.widget-toolbar-add,
html body #app .record-tab-widgets .donor-widget-has-data .widget-table-tools .widget-toolbar-add {
  display: none !important;
}

html body #app .record-card-tabs .record-clean-tabs,
html body #app .modal-panel .record-card-tabs .record-clean-tabs,
html body #app .modal-panel:has(.record-card-tabs) .record-card-tabs .record-clean-tabs {
  display: flex !important;
  justify-content: flex-start !important;
  align-items: flex-end !important;
  gap: 28px !important;
  min-height: 48px !important;
  margin: 0 0 18px !important;
  padding: 0 4px !important;
  border: 0 !important;
  border-bottom: 1px solid #e2e8f0 !important;
  border-radius: 0 !important;
  background: #ffffff !important;
  background-color: #ffffff !important;
  box-shadow: none !important;
}

html body #app .record-card-tabs .record-clean-tab,
html body #app .modal-panel .record-card-tabs .record-clean-tab,
html body #app .modal-panel:has(.record-card-tabs) .record-card-tabs button.record-clean-tab {
  appearance: none !important;
  -webkit-appearance: none !important;
  position: relative !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: auto !important;
  min-width: 0 !important;
  min-height: 48px !important;
  margin: 0 !important;
  padding: 0 0 13px !important;
  border: 0 !important;
  border-radius: 0 !important;
  outline: 0 !important;
  background: transparent !important;
  background-color: transparent !important;
  box-shadow: none !important;
  color: #64748b !important;
  font-size: 15px !important;
  font-weight: 800 !important;
}

html body #app .record-card-tabs .record-clean-tab.active,
html body #app .modal-panel .record-card-tabs .record-clean-tab.active,
html body #app .modal-panel:has(.record-card-tabs) .record-card-tabs button.record-clean-tab.active {
  background: transparent !important;
  background-color: transparent !important;
  color: #0f3f4a !important;
  font-weight: 950 !important;
}

html body #app .record-card-tabs .record-clean-tab.active::after,
html body #app .modal-panel .record-card-tabs .record-clean-tab.active::after,
html body #app .modal-panel:has(.record-card-tabs) .record-card-tabs button.record-clean-tab.active::after {
  content: "" !important;
  position: absolute !important;
  right: 0 !important;
  left: 0 !important;
  bottom: -1px !important;
  height: 3px !important;
  border-radius: 999px 999px 0 0 !important;
  background: #0f3f4a !important;
}

html body #app .record-tab-widgets .widget-table-tools {
  margin: 0 0 10px !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

html body #app .record-tab-widgets .widget-table-tools .table-toolbar-title {
  display: none !important;
}

html body #app .modal-panel .record-card-tabs > .record-tab-nav.week-tabs,
html body #app .modal-panel .record-card-tabs > .journal-detail-tabs.record-tab-nav,
html body #app .record-card-tabs .record-tab-nav,
html body #app .record-card-tabs .week-tabs.record-tab-nav {
  display: flex !important;
  justify-content: flex-start !important;
  align-items: flex-end !important;
  gap: 28px !important;
  min-height: 48px !important;
  margin: 0 0 18px !important;
  padding: 0 4px !important;
  border: 0 !important;
  border-bottom: 1px solid #e2e8f0 !important;
  border-radius: 0 !important;
  background: #ffffff !important;
  box-shadow: none !important;
}

html body #app .modal-panel .record-card-tabs > .record-tab-nav.week-tabs > button.week-tab,
html body #app .modal-panel .record-card-tabs > .journal-detail-tabs.record-tab-nav > button.week-tab,
html body #app .record-card-tabs .record-tab-nav .week-tab {
  appearance: none !important;
  -webkit-appearance: none !important;
  position: relative !important;
  width: auto !important;
  min-width: 0 !important;
  min-height: 48px !important;
  margin: 0 !important;
  padding: 0 0 13px !important;
  border: 0 !important;
  outline: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  background-color: transparent !important;
  box-shadow: none !important;
  color: #64748b !important;
  font-weight: 800 !important;
}

html body #app .modal-panel .record-card-tabs > .record-tab-nav.week-tabs > button.week-tab:not(.active),
html body #app .modal-panel .record-card-tabs > .journal-detail-tabs.record-tab-nav > button.week-tab:not(.active),
html body #app .record-card-tabs .record-tab-nav .week-tab:not(.active) {
  border: 0 !important;
  background: transparent !important;
  background-color: transparent !important;
}

html body #app .modal-panel .record-card-tabs > .record-tab-nav.week-tabs > button.week-tab.active,
html body #app .modal-panel .record-card-tabs > .journal-detail-tabs.record-tab-nav > button.week-tab.active,
html body #app .record-card-tabs .record-tab-nav .week-tab.active {
  border: 0 !important;
  background: transparent !important;
  background-color: transparent !important;
  color: #0f3f4a !important;
  font-weight: 950 !important;
}

html body #app .modal-panel .record-card-tabs > .record-tab-nav.week-tabs > button.week-tab.active::after,
html body #app .modal-panel .record-card-tabs > .journal-detail-tabs.record-tab-nav > button.week-tab.active::after,
html body #app .record-card-tabs .record-tab-nav .week-tab.active::after {
  content: "" !important;
  position: absolute !important;
  right: 0 !important;
  left: 0 !important;
  bottom: -1px !important;
  height: 3px !important;
  border-radius: 999px 999px 0 0 !important;
  background: #0f3f4a !important;
}

html body #app .record-card-tabs .record-financial-summary-row {
  display: none !important;
}

html body #app .record-form .record-charge-summary > span,
html body #app .call-screen .record-charge-summary > span {
  border-color: #e2e8f0 !important;
  background: #ffffff !important;
  background-color: #ffffff !important;
  color: #0f172a !important;
  box-shadow: 0 5px 12px rgba(15, 23, 42, 0.04) !important;
}

html body #app .record-form .premium-payment-card,
html body #app .record-form .premium-receipts-card {
  grid-column: 1 / -1 !important;
  display: block !important;
  margin: 20px 0 0 !important;
  padding: 16px !important;
  border: 1px solid #dbe5ef !important;
  border-radius: 12px !important;
  background: #ffffff !important;
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.045) !important;
}

html body #app .modal-panel:has(.record-form) .record-form .payment-section.premium-payment-card,
html body #app .modal-panel:has(.record-form) .record-form .receipt-section.premium-receipts-card,
html body #app .modal-panel:has(.record-form) .record-form section.premium-payment-card,
html body #app .modal-panel:has(.record-form) .record-form section.premium-receipts-card {
  grid-column: 1 / -1 !important;
  display: block !important;
  margin: 20px 0 0 !important;
  padding: 16px !important;
  border: 1px solid #dbe5ef !important;
  border-radius: 12px !important;
  background: #ffffff !important;
  background-color: #ffffff !important;
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.045) !important;
  overflow: hidden !important;
}

html body #app .record-form .premium-card-head {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 12px !important;
  margin: 0 0 14px !important;
}

html body #app .record-form .premium-card-head h3 {
  margin: 0 !important;
  color: #0f2f38 !important;
  font-size: 17px !important;
  font-weight: 900 !important;
}

html body #app .record-form .premium-card-head span {
  color: #64748b !important;
  font-size: 13px !important;
  font-weight: 800 !important;
}

html body #app .record-form .secure-card-display {
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  min-height: 48px !important;
  padding: 10px 12px !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 10px !important;
  background: #f8fafc !important;
}

html body #app .record-form .premium-payment-actions {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 10px !important;
  margin-top: 12px !important;
  flex-wrap: wrap !important;
}

html body #app .record-form .card-brand-mark {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-width: 54px !important;
  height: 28px !important;
  padding: 0 10px !important;
  border-radius: 7px !important;
  background: #ffffff !important;
  border: 1px solid #dbe5ef !important;
  color: #0f3f4a !important;
  font-size: 11px !important;
  font-weight: 900 !important;
  letter-spacing: .04em !important;
}

html body #app .record-form .secure-card-display strong {
  color: #0f172a !important;
  font-size: 18px !important;
  font-weight: 900 !important;
}

html body #app .record-form .secure-card-display em,
html body #app .record-form .secure-card-status {
  color: #64748b !important;
  font-style: normal !important;
  font-size: 13px !important;
  font-weight: 800 !important;
}

html body #app .record-form .secure-token-status {
  display: inline-flex !important;
  align-items: center !important;
  min-height: 24px !important;
  padding: 3px 10px !important;
  border: 1px solid rgba(60, 184, 108, 0.32) !important;
  border-radius: 999px !important;
  background: rgba(60, 184, 108, 0.14) !important;
  color: #2A8C52 !important;
  font-size: 12px !important;
  font-weight: 900 !important;
  line-height: 1 !important;
}

html body #app .record-form .secure-token-status.missing-token {
  border-color: #f4c7c3 !important;
  background: #fce8e6 !important;
  color: #a50e0e !important;
}

html body .record-draft-result {
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  padding: 2px 6px !important;
  border-radius: 999px !important;
  background: #fff7ed !important;
  color: #9a3412 !important;
  font-weight: 800 !important;
}

html body .record-draft-result b {
  display: inline-flex !important;
  align-items: center !important;
  min-height: 20px !important;
  padding: 0 7px !important;
  border-radius: 999px !important;
  background: #fed7aa !important;
  color: #9a3412 !important;
  font-size: 11px !important;
}

/* Bonus rule tables should read like data tables, not oversized forms. */
html body #app .bonus-rules-table,
html body #app .variable-bonus-table {
  width: 100% !important;
  table-layout: fixed !important;
  border-collapse: collapse !important;
  background: #ffffff !important;
}

html body #app .bonus-rules-table th,
html body #app .variable-bonus-table th {
  height: 44px !important;
  padding: 0 12px !important;
  background: #f8fafc !important;
  color: #334155 !important;
  border-bottom: 1px solid #e2e8f0 !important;
  font-size: 13px !important;
  font-weight: 800 !important;
  text-align: right !important;
  white-space: nowrap !important;
}

html body #app .bonus-rules-table td,
html body #app .variable-bonus-table td {
  height: 56px !important;
  padding: 8px 12px !important;
  background: #ffffff !important;
  border-bottom: 1px solid #eef2f7 !important;
  color: #334155 !important;
  font-size: 14px !important;
  font-weight: 700 !important;
  vertical-align: middle !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

html body #app .bonus-rules-table tbody tr:hover td,
html body #app .variable-bonus-table tbody tr:hover td {
  background: #f8fbff !important;
}

html body #app .bonus-rules-table input:not([type="checkbox"]),
html body #app .variable-bonus-table input:not([type="checkbox"]),
html body #app .bonus-rules-table .managed-select-button,
html body #app .variable-bonus-table .managed-select-button,
html body #app .bonus-rules-table .table-bubble-current,
html body #app .variable-bonus-table .table-bubble-current {
  width: 100% !important;
  min-width: 0 !important;
  height: 32px !important;
  min-height: 32px !important;
  padding: 0 10px !important;
  border: 1px solid #dbe5ef !important;
  border-radius: 8px !important;
  background: #ffffff !important;
  color: #334155 !important;
  box-shadow: none !important;
  font-size: 13px !important;
  font-weight: 700 !important;
}

html body #app .bonus-rules-table select,
html body #app .variable-bonus-table select {
  width: 100% !important;
  min-width: 0 !important;
  height: 32px !important;
  min-height: 32px !important;
  padding: 0 10px !important;
  border: 1px solid #dbe5ef !important;
  border-radius: 8px !important;
  background: #ffffff !important;
  color: #334155 !important;
  box-shadow: none !important;
  font-size: 13px !important;
  font-weight: 700 !important;
}

html body #app .bonus-rules-table select.table-bubble-native-select,
html body #app .variable-bonus-table select.table-bubble-native-select {
  position: absolute !important;
  inset-inline-start: 0 !important;
  top: 0 !important;
  width: 1px !important;
  min-width: 1px !important;
  height: 1px !important;
  min-height: 1px !important;
  max-width: 1px !important;
  max-height: 1px !important;
  padding: 0 !important;
  border: 0 !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

html body #app .bonus-rules-table .table-managed-hidden,
html body #app .variable-bonus-table .table-managed-hidden,
html body #app .bonus-rules-table select.table-bubble-native-select + .managed-select,
html body #app .variable-bonus-table select.table-bubble-native-select + .managed-select {
  display: none !important;
  visibility: hidden !important;
  width: 0 !important;
  min-width: 0 !important;
  height: 0 !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
}

html body #app .bonus-rules-table .table-bubble-picker,
html body #app .variable-bonus-table .table-bubble-picker {
  width: 100% !important;
  min-width: 0 !important;
}

html body #app .bonus-rules-table input[type="checkbox"],
html body #app .variable-bonus-table input[type="checkbox"] {
  width: 18px !important;
  height: 18px !important;
  min-width: 18px !important;
  min-height: 18px !important;
  margin: 0 !important;
  box-shadow: none !important;
}

html body #app .bonus-rules-table .row-actions,
html body #app .variable-bonus-table .row-actions {
  width: 52px !important;
  text-align: center !important;
}

html body #app .bonus-rules-table .row-actions .icon-btn,
html body #app .variable-bonus-table .row-actions .icon-btn {
  width: 34px !important;
  min-width: 34px !important;
  height: 34px !important;
  min-height: 34px !important;
  border-radius: 8px !important;
  box-shadow: none !important;
}

html body #app .bonus-rules-table th:first-child,
html body #app .bonus-rules-table td:first-child,
html body #app .variable-bonus-table th:first-child,
html body #app .variable-bonus-table td:first-child,
html body #app .incentives-table th:first-child,
html body #app .incentives-table td:first-child {
  width: 44px !important;
  min-width: 44px !important;
  max-width: 44px !important;
  text-align: center !important;
}

html body #app .record-form .premium-outline-btn,
html body #app .record-form .premium-token-check {
  min-height: 34px !important;
  padding: 0 14px !important;
  border: 1px solid #0f3f4a !important;
  border-radius: 8px !important;
  background: #ffffff !important;
  color: #0f3f4a !important;
  box-shadow: none !important;
  font-weight: 850 !important;
}

html body #app .record-form .premium-token-check {
  margin-top: 10px !important;
}

html body #app .record-form .premium-receipt-fields {
  margin: 0 0 16px !important;
  padding: 14px !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 10px !important;
  background: #f8fafc !important;
}

html body #app .record-form .premium-receipt-fields label {
  margin: 0 !important;
}

html body #app .record-form .premium-receipts-table {
  width: 100% !important;
  border-collapse: collapse !important;
  table-layout: fixed !important;
}

html body #app .record-form .premium-receipts-table th,
html body #app .record-form .premium-receipts-table td {
  height: 42px !important;
  padding: 8px 10px !important;
  border-bottom: 1px solid #edf2f7 !important;
  color: #334155 !important;
  font-size: 13px !important;
  text-align: right !important;
}

html body #app .record-form .premium-receipts-table th {
  background: #f8fafc !important;
  color: #64748b !important;
  font-weight: 900 !important;
}

html body #app .record-form .receipt-pdf-link {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 34px !important;
  height: 28px !important;
  border-radius: 7px !important;
  border: 1px solid #dbe5ef !important;
  background: #ffffff !important;
  color: #0f3f4a !important;
  font-size: 10px !important;
  font-weight: 950 !important;
  text-decoration: none !important;
}

html body #app .record-form .receipt-pdf-link.disabled {
  opacity: .45 !important;
}

html body #app .record-form .receipt-empty-row {
  color: #64748b !important;
  text-align: center !important;
}

/* Final record-card visual cleanup: spacing, unified shapes and calmer palette. */
html body #app .record-form [data-show-for-result="תרומה"].subpanel:not([hidden]),
html body #app .modal-panel:has(.record-form) .record-form [data-show-for-result="תרומה"].subpanel:not([hidden]) {
  grid-column: 1 / -1 !important;
  display: block !important;
  margin: 14px 0 0 !important;
  padding: 20px !important;
  border: 1px solid #dbe5ef !important;
  border-radius: 12px !important;
  background: #ffffff !important;
  background-color: #ffffff !important;
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.045) !important;
}

html body #app .record-form [data-show-for-result="תרומה"].subpanel:not([hidden]) > .form-grid {
  gap: 16px !important;
  margin-top: 16px !important;
}

html body #app .record-form .commitment-section-head {
  margin: 0 0 14px !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
}

html body #app .record-form .action-row.wide {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 10px !important;
  margin: 0 0 16px !important;
}

html body #app .record-form .commitment-action-freeze,
html body #app .record-form .action-row button.commitment-action-freeze,
html body #app .modal-panel:has(.record-form) .record-form .action-row button.commitment-action-freeze {
  border: 1px solid #0f3f4a !important;
  background: #ffffff !important;
  background-color: #ffffff !important;
  color: #0f3f4a !important;
  box-shadow: none !important;
}

html body #app .record-form .commitment-action-freeze:hover,
html body #app .record-form .action-row button.commitment-action-freeze:hover {
  border-color: #0b3240 !important;
  background: #f8fafc !important;
  color: #0b3240 !important;
}

html body #app .record-form .premium-payment-card .secure-card-display {
  gap: 16px !important;
  padding: 14px 16px !important;
  margin: 0 0 14px !important;
}

html body #app .record-form .premium-payment-card .premium-payment-actions {
  gap: 12px !important;
  margin-top: 16px !important;
}

html body #app .record-tab-widgets,
html body #app .record-tab-widgets .donor-widget-vertical-stack {
  display: grid !important;
  gap: 24px !important;
}

html body #app .record-tab-widgets .email-conversation-widget,
html body #app .record-tab-widgets .donor-widget-vertical-card {
  margin: 0 !important;
}

html body #app .record-clean-tabs .record-clean-tab {
  position: relative !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

html body #app .record-clean-tabs .record-clean-tab.active::after {
  content: "" !important;
  position: absolute !important;
  right: 0 !important;
  left: 0 !important;
  bottom: -1px !important;
  height: 3px !important;
  border-radius: 999px 999px 0 0 !important;
  background: #0f3f4a !important;
}

html body #app .donor-hero .record-meta-line {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 8px !important;
  margin-top: 10px !important;
}

html body #app .donor-hero .record-meta-line > span,
html body #app .donor-hero .record-meta-line .status-badge,
html body #app .donor-hero .record-charge-summary > span,
html body #app .call-screen .record-charge-summary > span {
  min-height: 34px !important;
  padding: 6px 10px !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 6px !important;
  background: #f8fafc !important;
  background-color: #f8fafc !important;
  color: #334155 !important;
  box-shadow: none !important;
}

html body #app .donor-hero .record-meta-line .status-badge {
  display: inline-flex !important;
  align-items: center !important;
}

html body #app .status-badge.warning,
html body #app .status-badge.warn,
html body #app .status-badge.remit-fixed-badge[style*="fef9c3"],
html body #app .managed-select-button .status-badge.warning,
html body #app .table-bubble-current .status-badge.warning {
  border-color: #fde68a !important;
  background: #fef9c3 !important;
  background-color: #fef9c3 !important;
  color: #713f12 !important;
}

html body #app .record-card-tabs .record-clean-tabs > .record-clean-tab {
  padding-bottom: 8px !important;
  border-bottom: 0 !important;
}

html body #app .record-card-tabs .record-clean-tabs > .record-clean-tab.active {
  color: #0f3f4a !important;
  font-weight: 950 !important;
}

html body #app .record-card-tabs .record-clean-tabs > .record-clean-tab::after {
  content: "" !important;
  position: absolute !important;
  right: 50% !important;
  bottom: -1px !important;
  width: 0 !important;
  height: 3px !important;
  border-radius: 999px 999px 0 0 !important;
  background: transparent !important;
  transform: translateX(50%) !important;
}

html body #app .record-card-tabs .record-clean-tabs > .record-clean-tab.active::after {
  width: 64px !important;
  background: #0f3f4a !important;
}

html body #app .record-clean-tabs .record-clean-tab::after,
html body #app .record-clean-tabs .record-clean-tab.active::after {
  display: none !important;
}

html body #app .record-clean-tabs .record-tab-label {
  display: inline-flex !important;
  align-items: center !important;
  min-height: 48px !important;
  padding: 0 0 8px !important;
  border-bottom: 3px solid transparent !important;
  border-radius: 0 !important;
}

html body #app .record-clean-tabs .record-clean-tab.active .record-tab-label {
  border-bottom-color: #0f3f4a !important;
  border-bottom-left-radius: 999px !important;
  border-bottom-right-radius: 999px !important;
}

html body #app .record-form .premium-payment-card {
  padding: 20px !important;
}

html body #app .record-form .premium-payment-card .secure-card-display {
  margin-bottom: 16px !important;
}

html body #app .record-form .premium-payment-actions {
  gap: 12px !important;
}

html body #app .status-badge.warning,
html body #app .status-badge.warn,
html body #app .status-badge.remit-fixed-badge[style*="fef9c3"],
html body #app .managed-select-button .status-badge.warning,
html body #app .table-bubble-current .status-badge.warning,
html body #app .inline-choice-current .status-badge.warning,
html body #app .choice-select-value .status-badge.warning {
  border-color: #bae6fd !important;
  background: #e0f2fe !important;
  background-color: #e0f2fe !important;
  color: #0f3f4a !important;
}

html body #app .donor-hero .record-meta-line > span,
html body #app .donor-hero .record-meta-line .status-badge,
html body #app .donor-hero .record-meta-line .remit-fixed-badge,
html body #app .donor-hero .record-charge-summary > span,
html body #app .call-screen .record-charge-summary > span {
  border-radius: 6px !important;
}

html body #app .donor-hero .record-meta-line > span,
html body #app .donor-hero .record-charge-summary > span,
html body #app .call-screen .record-charge-summary > span {
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  min-height: 38px !important;
  padding: 7px 12px !important;
  border: 1px solid #dbe5ef !important;
  border-radius: 6px !important;
  background: #ffffff !important;
  background-color: #ffffff !important;
  color: #0f3f4a !important;
  box-shadow: none !important;
  overflow: hidden !important;
  white-space: nowrap !important;
}

html body #app .donor-hero .record-meta-line > span strong,
html body #app .donor-hero .record-charge-summary > span strong,
html body #app .call-screen .record-charge-summary > span strong {
  color: #64748b !important;
  font-size: 12px !important;
  font-weight: 800 !important;
}

html body #app .donor-hero .record-meta-line > span em,
html body #app .donor-hero .record-charge-summary > span em,
html body #app .call-screen .record-charge-summary > span em {
  color: #0f3f4a !important;
  font-style: normal !important;
  font-size: 14px !important;
  font-weight: 900 !important;
}

html body #app .donor-hero .record-meta-line > span.record-info-chip,
html body #app .donor-hero .record-meta-line > span.record-info-chip strong,
html body #app .donor-hero .record-meta-line > span.record-info-chip em {
  line-height: 1 !important;
}

html body #app .record-clean-tabs .record-tab-label {
  width: auto !important;
  border-bottom-width: 3px !important;
  border-bottom-style: solid !important;
  border-bottom-color: transparent !important;
  border-radius: 0 !important;
}

html body #app .record-clean-tabs .record-clean-tab.active .record-tab-label {
  border-bottom-color: #0f3f4a !important;
  border-radius: 0 0 4px 4px !important;
}

html body #app .record-tab-widgets .donor-widget-empty-state button.donor-empty-add-btn,
html body #app .record-tab-widgets .donor-widget-empty-state .donor-empty-add-btn,
html body #app .record-tab-widgets button.donor-empty-add-btn {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex: 0 0 32px !important;
  width: 32px !important;
  min-width: 32px !important;
  max-width: 32px !important;
  height: 32px !important;
  min-height: 32px !important;
  max-height: 32px !important;
  padding: 0 !important;
  border-radius: 999px !important;
  border: 1px solid #0f3f4a !important;
  background: #0f3f4a !important;
  background-color: #0f3f4a !important;
  color: #ffffff !important;
  font-size: 16px !important;
  font-weight: 900 !important;
  line-height: 1 !important;
  box-shadow: none !important;
}

html body #app .record-tab-widgets .donor-widget-empty-state button.donor-empty-add-btn:hover,
html body #app .record-tab-widgets button.donor-empty-add-btn:hover {
  background: #0b3240 !important;
  background-color: #0b3240 !important;
  border-color: #0b3240 !important;
}

html body #app .record-tab-widgets > .email-conversation-widget,
html body #app .record-tab-widgets .donor-widget-vertical-stack > .donor-widget-vertical-card {
  margin-bottom: 24px !important;
}

html body #app .record-tab-widgets .donor-widget-vertical-stack > .donor-widget-vertical-card:last-child {
  margin-bottom: 0 !important;
}

html body #app .record-form .commitment-action-freeze,
html body #app .record-form .action-row button.commitment-action-freeze,
html body #app .modal-panel:has(.record-form) .record-form .action-row button.commitment-action-freeze {
  border-color: #bae6fd !important;
  background: #e0f2fe !important;
  background-color: #e0f2fe !important;
  color: #0f3f4a !important;
}

@media (max-width: 1100px) {
  html body #app .record-details-layout {
    grid-template-columns: 1fr !important;
    grid-template-areas:
      "form"
      "history" !important;
  }
}

/* Final record modal polish: keep this block last so it wins old tab/header/widget rules. */
html body #app .donor-hero .record-meta-line,
html body #app .donor-hero .record-charge-summary,
html body #app .call-screen .record-charge-summary {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  flex-wrap: wrap !important;
  gap: 10px !important;
  margin-top: 12px !important;
}

html body #app .donor-hero .record-meta-line > span.record-info-chip,
html body #app .donor-hero .record-meta-line > span,
html body #app .donor-hero .record-charge-summary > span,
html body #app .call-screen .record-charge-summary > span {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  min-height: 38px !important;
  padding: 7px 12px !important;
  border: 1px solid #dbe5ef !important;
  border-radius: 6px !important;
  background: #ffffff !important;
  background-color: #ffffff !important;
  color: #0f3f4a !important;
  box-shadow: none !important;
  line-height: 1 !important;
  white-space: nowrap !important;
}

html body #app .donor-hero .record-meta-line > span strong,
html body #app .donor-hero .record-charge-summary > span strong,
html body #app .call-screen .record-charge-summary > span strong {
  color: #64748b !important;
  font-size: 12px !important;
  font-weight: 800 !important;
}

html body #app .donor-hero .record-meta-line > span em,
html body #app .donor-hero .record-charge-summary > span em,
html body #app .call-screen .record-charge-summary > span em {
  color: #0f3f4a !important;
  font-size: 14px !important;
  font-style: normal !important;
  font-weight: 900 !important;
}

html body #app .record-card-tabs .record-clean-tabs,
html body #app .modal-panel .record-card-tabs .record-clean-tabs {
  display: flex !important;
  align-items: flex-end !important;
  justify-content: flex-start !important;
  gap: 28px !important;
  margin: 0 0 18px !important;
  padding: 0 4px !important;
  min-height: 48px !important;
  border: 0 !important;
  border-bottom: 1px solid #e2e8f0 !important;
  background: #ffffff !important;
  box-shadow: none !important;
}

html body #app .record-card-tabs .record-clean-tabs > button.record-clean-tab,
html body #app .record-clean-tabs > button.record-clean-tab {
  display: inline-flex !important;
  align-items: flex-end !important;
  width: auto !important;
  min-width: 0 !important;
  min-height: 48px !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  color: #64748b !important;
  font-weight: 800 !important;
}

html body #app .record-clean-tabs > button.record-clean-tab .record-tab-label {
  display: inline-flex !important;
  align-items: center !important;
  min-height: 48px !important;
  padding: 0 0 8px !important;
  border-bottom: 3px solid transparent !important;
  border-radius: 0 0 4px 4px !important;
  color: #64748b !important;
  font-weight: 800 !important;
}

html body #app .record-clean-tabs > button.record-clean-tab.active,
html body #app .record-clean-tabs > button.record-clean-tab[aria-selected="true"] {
  color: #0f3f4a !important;
  font-weight: 950 !important;
}

html body #app .record-clean-tabs > button.record-clean-tab.active .record-tab-label,
html body #app .record-clean-tabs > button.record-clean-tab[aria-selected="true"] .record-tab-label {
  border-bottom-color: #0f3f4a !important;
  color: #0f3f4a !important;
  font-weight: 950 !important;
}

html body #app .record-tab-widgets,
html body #app .record-tab-widgets .donor-widget-vertical-stack {
  display: grid !important;
  gap: 24px !important;
}

html body #app .record-tab-widgets > .email-conversation-widget,
html body #app .record-tab-widgets .donor-widget-vertical-stack > .donor-widget-vertical-card {
  margin-bottom: 0 !important;
}

/* Header split: operational metadata is plain text, financial metadata is premium pills. */
html body #app .donor-hero .record-meta-line {
  display: flex !important;
  align-items: center !important;
  flex-wrap: wrap !important;
  gap: 0 !important;
  margin-top: 12px !important;
  color: #475569 !important;
}

html body #app .donor-hero .record-meta-line > span.operational-meta-chip,
html body #app .donor-hero .record-meta-line > span.record-info-chip.operational-meta-chip {
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  min-height: auto !important;
  padding: 0 12px !important;
  border: 0 !important;
  border-inline-start: 1px solid #cbd5e1 !important;
  border-radius: 0 !important;
  background: transparent !important;
  background-color: transparent !important;
  box-shadow: none !important;
  color: #475569 !important;
  line-height: 1.4 !important;
}

html body #app .donor-hero .record-meta-line > span.operational-meta-chip:first-child,
html body #app .donor-hero .record-meta-line > span.record-info-chip.operational-meta-chip:first-child {
  padding-inline-start: 0 !important;
  border-inline-start: 0 !important;
}

html body #app .donor-hero .record-meta-line > span.operational-meta-chip strong,
html body #app .donor-hero .record-meta-line > span.record-info-chip.operational-meta-chip strong {
  color: #64748b !important;
  font-size: 13px !important;
  font-weight: 700 !important;
}

html body #app .donor-hero .record-meta-line > span.operational-meta-chip em,
html body #app .donor-hero .record-meta-line > span.record-info-chip.operational-meta-chip em {
  color: #475569 !important;
  font-size: 13px !important;
  font-style: normal !important;
  font-weight: 500 !important;
}

html body #app .donor-hero .record-charge-summary,
html body #app .call-screen .record-charge-summary {
  display: flex !important;
  align-items: center !important;
  flex-wrap: wrap !important;
  gap: 10px !important;
  margin-top: 14px !important;
}

html body #app .donor-hero .record-charge-summary > span.finance-summary-pill,
html body #app .call-screen .record-charge-summary > span.finance-summary-pill {
  min-height: 38px !important;
  padding: 8px 14px !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 20px !important;
  background: #ffffff !important;
  background-color: #ffffff !important;
  color: #0f3f4a !important;
  box-shadow: none !important;
}

html body #app .donor-hero .record-charge-summary > span.finance-summary-status,
html body #app .call-screen .record-charge-summary > span.finance-summary-status {
  border-color: #bae6fd !important;
  background: #e0f2fe !important;
  background-color: #e0f2fe !important;
  color: #005088 !important;
}

html body #app .record-clean-tabs > button.record-clean-tab.active,
html body #app .record-clean-tabs > button.record-clean-tab[aria-selected="true"],
html body #app .record-clean-tabs > button.record-clean-tab.active .record-tab-label,
html body #app .record-clean-tabs > button.record-clean-tab[aria-selected="true"] .record-tab-label {
  color: #0f3f4a !important;
  font-weight: 600 !important;
}

html body #app .record-clean-tabs > button.record-clean-tab.active .record-tab-label,
html body #app .record-clean-tabs > button.record-clean-tab[aria-selected="true"] .record-tab-label {
  border-bottom: 3px solid #0f3f4a !important;
  border-radius: 0 0 4px 4px !important;
  padding-bottom: 8px !important;
}

html body #app .record-tab-widgets .donor-widget-empty-state button.donor-empty-add-btn,
html body #app .record-tab-widgets .donor-widget-empty-state .donor-empty-add-btn,
html body #app .record-tab-widgets button.donor-empty-add-btn,
html body #app .record-tab-widgets .donor-widget-empty-state .email-empty-send-btn {
  border-color: #005088 !important;
  background: #005088 !important;
  background-color: #005088 !important;
}

html body #app .record-tab-widgets .donor-widget-empty-state button.donor-empty-add-btn:hover,
html body #app .record-tab-widgets button.donor-empty-add-btn:hover,
html body #app .record-tab-widgets .donor-widget-empty-state .email-empty-send-btn:hover {
  border-color: #003f6b !important;
  background: #003f6b !important;
  background-color: #003f6b !important;
}

/* Final fine tune: softer tabs, rectangular finance chips, active status in green. */
html body #app .donor-hero .record-charge-summary > span.finance-summary-pill,
html body #app .call-screen .record-charge-summary > span.finance-summary-pill {
  border-radius: 6px !important;
}

html body #app .donor-hero .record-charge-summary > span.finance-summary-status,
html body #app .call-screen .record-charge-summary > span.finance-summary-status {
  border-color: #bbf7d0 !important;
  background: #dcfce7 !important;
  background-color: #dcfce7 !important;
  color: #15803d !important;
}

html body #app .donor-hero .record-charge-summary > span.finance-summary-status strong,
html body #app .donor-hero .record-charge-summary > span.finance-summary-status em,
html body #app .call-screen .record-charge-summary > span.finance-summary-status strong,
html body #app .call-screen .record-charge-summary > span.finance-summary-status em {
  color: #15803d !important;
}

html body #app .record-clean-tabs > button.record-clean-tab,
html body #app .record-clean-tabs > button.record-clean-tab .record-tab-label {
  font-weight: 400 !important;
}

html body #app .record-clean-tabs > button.record-clean-tab.active,
html body #app .record-clean-tabs > button.record-clean-tab[aria-selected="true"],
html body #app .record-clean-tabs > button.record-clean-tab.active .record-tab-label,
html body #app .record-clean-tabs > button.record-clean-tab[aria-selected="true"] .record-tab-label {
  font-weight: 500 !important;
}

html body #app .record-tab-widgets .donor-widget-empty-state button.donor-empty-add-btn,
html body #app .record-tab-widgets .donor-widget-empty-state .donor-empty-add-btn,
html body #app .record-tab-widgets button.donor-empty-add-btn,
html body #app .record-tab-widgets .donor-widget-empty-state .email-empty-send-btn {
  font-weight: 500 !important;
}

/* Brand color unification: use the dark navy from the header, and the same soft green as donation badges. */
html body #app .record-tab-widgets .donor-widget-empty-state button.donor-empty-add-btn,
html body #app .record-tab-widgets .donor-widget-empty-state .donor-empty-add-btn,
html body #app .record-tab-widgets button.donor-empty-add-btn,
html body #app .record-tab-widgets .donor-widget-empty-state .email-empty-send-btn {
  border-color: #0f3f4a !important;
  background: #0f3f4a !important;
  background-color: #0f3f4a !important;
  color: #ffffff !important;
  font-weight: 400 !important;
}

html body #app .record-tab-widgets .donor-widget-empty-state button.donor-empty-add-btn:hover,
html body #app .record-tab-widgets button.donor-empty-add-btn:hover,
html body #app .record-tab-widgets .donor-widget-empty-state .email-empty-send-btn:hover {
  border-color: #0b3240 !important;
  background: #0b3240 !important;
  background-color: #0b3240 !important;
}

html body #app .donor-hero .record-charge-summary > span.finance-summary-status,
html body #app .call-screen .record-charge-summary > span.finance-summary-status {
  border-color: rgba(60, 184, 108, 0.32) !important;
  background: rgba(60, 184, 108, 0.14) !important;
  background-color: rgba(60, 184, 108, 0.14) !important;
  color: #2A8C52 !important;
}

html body #app .donor-hero .record-charge-summary > span.finance-summary-status strong,
html body #app .donor-hero .record-charge-summary > span.finance-summary-status em,
html body #app .call-screen .record-charge-summary > span.finance-summary-status strong,
html body #app .call-screen .record-charge-summary > span.finance-summary-status em {
  color: #2A8C52 !important;
}

/* Compact widget table toolbar: title, search and settings stay in one row. */
html body #app .record-tab-widgets .widget-table-tools {
  margin: 0 0 12px !important;
  padding: 0 0 12px !important;
  border-bottom: 1px solid #e2e8f0 !important;
}

html body #app .record-tab-widgets .widget-table-tools .table-toolbar-meta {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  flex-wrap: nowrap !important;
  gap: 12px !important;
  width: 100% !important;
}

html body #app .record-tab-widgets .widget-table-tools .table-toolbar-title {
  order: 0 !important;
  flex: 0 0 auto !important;
  margin: 0 !important;
  color: #0f2f38 !important;
  font-size: 15px !important;
  font-weight: 800 !important;
  line-height: 1 !important;
  white-space: nowrap !important;
}

html body #app .record-tab-widgets .widget-table-tools .widget-column-btn,
html body #app .record-tab-widgets .widget-table-tools .widget-toolbar-add {
  order: 1 !important;
  flex: 0 0 auto !important;
  margin-inline-start: auto !important;
}

html body #app .record-tab-widgets .widget-table-tools .table-free-search,
html body #app .record-tab-widgets .widget-table-tools .table-result-count {
  display: none !important;
}

html body #app .record-tab-widgets .widget-table td {
  color: #475569 !important;
  font-weight: 400 !important;
}

html body #app .record-tab-widgets .widget-table .status-badge,
html body #app .record-tab-widgets .widget-table .remit-fixed-badge {
  font-weight: 600 !important;
}

html body #app .record-tab-widgets .donor-widget-is-empty .donor-widget-empty-state,
html body #app .record-tab-widgets .email-conversation-widget.email-is-empty .donor-widget-empty-state {
  min-height: 34px !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  background-color: transparent !important;
  color: #64748b !important;
}

html body #app .record-tab-widgets .donor-widget-empty-state > span {
  font-weight: 400 !important;
}

html body #app .record-tab-widgets .donor-widget-empty-state button.donor-empty-add-btn,
html body #app .record-tab-widgets button.donor-empty-add-btn {
  width: 28px !important;
  min-width: 28px !important;
  max-width: 28px !important;
  height: 28px !important;
  min-height: 28px !important;
  max-height: 28px !important;
  font-size: 14px !important;
  font-weight: 300 !important;
}

html body #app .record-form .secure-card-display {
  border: 1px solid #dbe5ef !important;
  border-radius: 8px !important;
  background: #f1f5f9 !important;
  background-color: #f1f5f9 !important;
  box-shadow: none !important;
}

html body #app .record-form .secure-card-status {
  display: inline-flex !important;
  align-items: center !important;
  min-height: 24px !important;
  padding: 3px 10px !important;
  border: 1px solid rgba(60, 184, 108, 0.32) !important;
  border-radius: 999px !important;
  background: rgba(60, 184, 108, 0.14) !important;
  color: #2A8C52 !important;
  font-size: 12px !important;
  font-weight: 500 !important;
  line-height: 1 !important;
}

html body #app .record-form .premium-payment-actions .premium-outline-btn {
  background: #ffffff !important;
  border: 1px solid #0f3f4a !important;
  color: #0f3f4a !important;
  border-radius: 8px !important;
  font-weight: 500 !important;
  box-shadow: none !important;
}

html body #app .record-form input:not([type="checkbox"]):not([type="radio"]),
html body #app .record-form textarea,
html body #app .record-form select {
  background-color: #f8fafc !important;
  color: #0f3f4a !important;
  font-weight: 500 !important;
}

html body #app .record-form .commitment-action-freeze,
html body #app .record-form .action-row button.commitment-action-freeze {
  border: 1px solid #0f3f4a !important;
}

/* Final record form field unification: all right-side inputs/select controls share the same calm surface. */
html body #app .modal-panel:has(.record-form) .record-form input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]),
html body #app .modal-panel:has(.record-form) .record-form select,
html body #app .modal-panel:has(.record-form) .record-form textarea,
html body #app .modal-panel:has(.record-form) .record-form .managed-select-button,
html body #app .modal-panel:has(.record-form) .record-form .donor-picker-trigger,
html body #app .record-form input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]),
html body #app .record-form select,
html body #app .record-form textarea,
html body #app .record-form .managed-select-button,
html body #app .record-form .donor-picker-trigger {
  border: 1px solid #e2e8f0 !important;
  background: #f8fafc !important;
  background-color: #f8fafc !important;
  color: #0f3f4a !important;
  font-weight: 500 !important;
  box-shadow: 0 4px 10px rgba(15, 23, 42, 0.04) !important;
}

html body #app .record-form .managed-select-button .choice-select-value,
html body #app .record-form .managed-select-button > span:not(.status-badge) {
  font-weight: 500 !important;
}

html body #app .record-tab-widgets .donor-widget-empty-state button.donor-empty-add-btn,
html body #app .record-tab-widgets button.donor-empty-add-btn {
  width: 26px !important;
  min-width: 26px !important;
  max-width: 26px !important;
  height: 26px !important;
  min-height: 26px !important;
  max-height: 26px !important;
  font-size: 13px !important;
  font-weight: 300 !important;
  border-color: #0f3f4a !important;
  background: #0f3f4a !important;
  background-color: #0f3f4a !important;
}

/* Final white premium form reset: fields must feel active, not disabled. */
html body #app .modal-panel:has(.record-form) .record-form label,
html body #app .record-form label {
  color: #475569 !important;
  gap: 6px !important;
}

html body #app .modal-panel:has(.record-form) .record-form input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]),
html body #app .modal-panel:has(.record-form) .record-form select,
html body #app .modal-panel:has(.record-form) .record-form textarea,
html body #app .modal-panel:has(.record-form) .record-form .managed-select-button,
html body #app .modal-panel:has(.record-form) .record-form .donor-picker-trigger,
html body #app .record-form input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]),
html body #app .record-form select,
html body #app .record-form textarea,
html body #app .record-form .managed-select-button,
html body #app .record-form .donor-picker-trigger {
  border: 1px solid #e2e8f0 !important;
  border-radius: 6px !important;
  background: #ffffff !important;
  background-color: #ffffff !important;
  color: #0f3f4a !important;
  font-weight: 500 !important;
  box-shadow: none !important;
}

html body #app .modal-panel:has(.record-form) .record-form input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]):focus,
html body #app .modal-panel:has(.record-form) .record-form select:focus,
html body #app .modal-panel:has(.record-form) .record-form textarea:focus,
html body #app .modal-panel:has(.record-form) .record-form .managed-select.open .managed-select-button,
html body #app .modal-panel:has(.record-form) .record-form .managed-select-button:focus,
html body #app .record-form input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]):focus,
html body #app .record-form select:focus,
html body #app .record-form textarea:focus,
html body #app .record-form .managed-select.open .managed-select-button,
html body #app .record-form .managed-select-button:focus {
  border-color: #0f3f4a !important;
  background: #ffffff !important;
  background-color: #ffffff !important;
  box-shadow: 0 0 0 3px rgba(15, 63, 74, 0.10) !important;
  outline: none !important;
}

html body #app .record-form .secure-card-display,
html body #app .modal-panel:has(.record-form) .record-form .secure-card-display {
  border: 1px solid #dbe5ef !important;
  border-radius: 8px !important;
  background: #f1f5f9 !important;
  background-color: #f1f5f9 !important;
  box-shadow: none !important;
}

html body #app .record-form label:has(select[name="commitmentStatus"]) .managed-select,
html body #app .record-form label:has(select[name="commitmentStatus"]) .managed-select.choice-select,
html body #app .record-form label:has(select[name="commitmentStatus"]) .managed-select-button {
  width: auto !important;
  min-height: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  background-color: transparent !important;
  box-shadow: none !important;
}

html body #app .record-form label:has(select[name="commitmentStatus"]) .managed-select-button > span {
  display: inline-flex !important;
  width: auto !important;
}

html body #app .record-form label:has(select[name="commitmentStatus"]) .managed-select-button b {
  display: none !important;
}

html body #app .record-form label:has(select[name="commitmentStatus"]) .status-badge,
html body #app .record-form label:has(select[name="commitmentStatus"]) .remit-fixed-badge {
  display: inline-flex !important;
  align-items: center !important;
  min-height: 30px !important;
  padding: 5px 16px !important;
  border-radius: 20px !important;
  border: 1px solid rgba(60, 184, 108, 0.32) !important;
  background: rgba(60, 184, 108, 0.14) !important;
  background-color: rgba(60, 184, 108, 0.14) !important;
  color: #2A8C52 !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  box-shadow: none !important;
}

/* Records outer table visual alignment with the inner CRM language. */
html body #app main.view-records .records-screen-panel table.records-like-table > thead > tr > th,
html body #app main.view-records .records-screen-panel table.data-grid > thead > tr > th,
html body:has(.enterprise-top-shell) main.main.view-records section.panel.records-screen-panel table.no-entity-cells.records-like-table.data-grid > thead > tr > th {
  color: #475569 !important;
  font-weight: 600 !important;
  letter-spacing: 0 !important;
}

html body #app main.view-records .records-screen-panel .status-badge,
html body #app main.view-records .records-screen-panel .remit-fixed-badge,
html body #app main.view-records .records-screen-panel .entity-cell,
html body #app main.view-records .records-screen-panel .remit-entity-cell {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-height: 28px !important;
  padding: 5px 12px !important;
  border-radius: 6px !important;
  border-width: 1px !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  line-height: 1 !important;
  box-shadow: none !important;
}

html body #app main.view-records .records-screen-panel .status-badge.remit-fixed-badge[style*="e6f4ea"],
html body #app main.view-records .records-screen-panel .status-badge.success,
html body #app main.view-records .records-screen-panel .status-badge.ok {
  border-color: rgba(60, 184, 108, 0.32) !important;
  background: rgba(60, 184, 108, 0.14) !important;
  background-color: rgba(60, 184, 108, 0.14) !important;
  color: #2A8C52 !important;
}

html body #app main.view-records .records-screen-panel .status-badge.remit-fixed-badge[style*="e0f2fe"],
html body #app main.view-records .records-screen-panel .status-badge.info,
html body #app main.view-records .records-screen-panel .entity-cell,
html body #app main.view-records .records-screen-panel .remit-entity-cell {
  border-color: #dbeafe !important;
  background: #eff6ff !important;
  background-color: #eff6ff !important;
  color: #0f3f4a !important;
}

html body #app main.view-records .records-screen-panel .empty-value-dash,
html body #app main.view-records .records-screen-panel td .empty-value-dash {
  display: inline !important;
  min-height: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  background-color: transparent !important;
  color: #94a3b8 !important;
  font-size: 15px !important;
  font-weight: 400 !important;
  box-shadow: none !important;
}

html body #app main.view-records .records-screen-panel .table-toolbar-meta > button.primary.table-toolbar-add-new,
html body #app main.view-records .records-screen-panel .table-toolbar-meta > button.records-toolbar-add-new,
html body:has(.enterprise-top-shell) main.main.view-records .records-screen-panel .table-toolbar-meta > button.primary.table-toolbar-add-new.records-toolbar-add-new:not(.ghost):not(.icon-btn):not(.table-link):not(.calendar-day):not(.managed-select-button):not(.table-bubble-current) {
  border-color: #0f3f4a !important;
  background: #0f3f4a !important;
  background-color: #0f3f4a !important;
  color: #ffffff !important;
  font-weight: 600 !important;
  box-shadow: none !important;
}

html body #app main.view-records .records-screen-panel .table-toolbar-meta > button.primary.table-toolbar-add-new:hover,
html body #app main.view-records .records-screen-panel .table-toolbar-meta > button.records-toolbar-add-new:hover {
  border-color: #0b3240 !important;
  background: #0b3240 !important;
  background-color: #0b3240 !important;
}

/* Final records table override: keep the outer list aligned with the inner CRM. */
html body main.view-records .records-screen-panel table.records-like-table > thead > tr > th,
html body main.view-records .records-screen-panel table.data-grid > thead > tr > th,
html body .view-records .records-screen-panel table.records-like-table > thead > tr > th,
html body .view-records .records-screen-panel table.data-grid > thead > tr > th {
  background: #f8fafc !important;
  color: #475569 !important;
  font-weight: 600 !important;
}

html body main.view-records .records-screen-panel table.records-like-table td .status-badge,
html body main.view-records .records-screen-panel table.records-like-table td .remit-fixed-badge,
html body main.view-records .records-screen-panel table.records-like-table td .entity-cell,
html body main.view-records .records-screen-panel table.records-like-table td .remit-entity-cell,
html body main.view-records .records-screen-panel table.data-grid td .status-badge,
html body main.view-records .records-screen-panel table.data-grid td .remit-fixed-badge,
html body main.view-records .records-screen-panel table.data-grid td .entity-cell,
html body main.view-records .records-screen-panel table.data-grid td .remit-entity-cell,
html body .view-records .records-screen-panel table td .status-badge,
html body .view-records .records-screen-panel table td .remit-fixed-badge,
html body .view-records .records-screen-panel table td .entity-cell,
html body .view-records .records-screen-panel table td .remit-entity-cell {
  min-width: 0 !important;
  min-height: 26px !important;
  height: auto !important;
  padding: 5px 12px !important;
  border-radius: 6px !important;
  border-width: 1px !important;
  box-shadow: none !important;
  font-weight: 600 !important;
  line-height: 1.15 !important;
}

html body .record-form .payment-position-readonly,
html body .modal-panel:has(.record-form) .record-form .payment-position-readonly {
  min-height: 54px !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 10px !important;
  background: #f8fafc !important;
  box-shadow: none !important;
}

html body .record-form .payment-position-readonly strong,
html body .modal-panel:has(.record-form) .record-form .payment-position-readonly strong {
  color: #0f3f4a !important;
  font-size: 18px !important;
  font-weight: 700 !important;
}

html body main.view-records .records-screen-panel table td .empty-value-dash,
html body .view-records .records-screen-panel table td .empty-value-dash,
html body main.view-records .records-screen-panel table td .status-badge:has(.empty-value-dash),
html body .view-records .records-screen-panel table td .status-badge:has(.empty-value-dash) {
  display: inline !important;
  min-width: 0 !important;
  min-height: 0 !important;
  height: auto !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  background-color: transparent !important;
  color: #94a3b8 !important;
  font-weight: 400 !important;
  box-shadow: none !important;
}

html body main.view-records .records-screen-panel .records-toolbar-add-new,
html body .view-records .records-screen-panel .records-toolbar-add-new {
  border-color: #0f3f4a !important;
  background: #0f3f4a !important;
  background-color: #0f3f4a !important;
  color: #ffffff !important;
  box-shadow: none !important;
}

html body main.view-records .records-screen-panel .records-toolbar-add-new:hover,
html body .view-records .records-screen-panel .records-toolbar-add-new:hover {
  border-color: #0b3240 !important;
  background: #0b3240 !important;
  background-color: #0b3240 !important;
}

/* Record form final field polish: read-only commitment status, dropdown arrows and breathing room. */
html body #app .modal-panel:has(.record-form) .record-form {
  row-gap: 18px !important;
  column-gap: 18px !important;
}

html body #app .modal-panel:has(.record-form) .record-form label {
  gap: 4px !important;
  margin-bottom: 12px !important;
}

html body #app .modal-panel:has(.record-form) .record-form label > span:first-child,
html body #app .modal-panel:has(.record-form) .record-form label > small:first-child {
  margin-bottom: 4px !important;
}

html body #app .modal-panel:has(.record-form) .record-form .managed-select-button b,
html body #app .modal-panel:has(.record-form) .record-form .table-bubble-current b,
html body #app .record-form .managed-select-button b,
html body #app .record-form .table-bubble-current b {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-width: 20px !important;
  color: #64748b !important;
  font-size: 10px !important;
  font-weight: 400 !important;
  line-height: 1 !important;
  letter-spacing: 0 !important;
}

html body #app .modal-panel:has(.record-form) .record-form label.commitment-status-readonly,
html body #app .record-form label.commitment-status-readonly {
  display: flex !important;
  align-items: flex-start !important;
  gap: 8px !important;
  margin-bottom: 12px !important;
}

html body #app .modal-panel:has(.record-form) .record-form label.commitment-status-readonly input[type="hidden"],
html body #app .record-form label.commitment-status-readonly input[type="hidden"] {
  display: none !important;
}

html body #app .modal-panel:has(.record-form) .record-form label.commitment-status-readonly .readonly-status-capsule,
html body #app .record-form label.commitment-status-readonly .readonly-status-capsule {
  display: inline-flex !important;
  width: auto !important;
  min-width: 0 !important;
  min-height: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  background-color: transparent !important;
  box-shadow: none !important;
}

html body #app .modal-panel:has(.record-form) .record-form label.commitment-status-readonly .readonly-status-capsule .status-badge,
html body #app .modal-panel:has(.record-form) .record-form label.commitment-status-readonly .readonly-status-capsule .remit-fixed-badge,
html body #app .record-form label.commitment-status-readonly .readonly-status-capsule .status-badge,
html body #app .record-form label.commitment-status-readonly .readonly-status-capsule .remit-fixed-badge {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: auto !important;
  min-width: 0 !important;
  min-height: 30px !important;
  padding: 5px 16px !important;
  border: 1px solid rgba(60, 184, 108, 0.32) !important;
  border-radius: 20px !important;
  background: rgba(60, 184, 108, 0.14) !important;
  background-color: rgba(60, 184, 108, 0.14) !important;
  color: #2A8C52 !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  line-height: 1 !important;
  box-shadow: none !important;
}

/* External records table: navy header, color only for result/status columns. */
html body #app main.view-records .records-screen-panel table.records-like-table > thead,
html body #app main.view-records .records-screen-panel table.records-like-table > thead > tr,
html body #app main.view-records .records-screen-panel table.records-like-table > thead > tr > th,
html body #app main.view-records .records-screen-panel table.data-grid > thead,
html body #app main.view-records .records-screen-panel table.data-grid > thead > tr,
html body #app main.view-records .records-screen-panel table.data-grid > thead > tr > th,
html body main.view-records .records-screen-panel table.records-like-table > thead > tr > th,
html body .view-records .records-screen-panel table.records-like-table > thead > tr > th {
  background: #0f3f4a !important;
  background-color: #0f3f4a !important;
  color: #ffffff !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  border-color: rgba(255, 255, 255, 0.14) !important;
}

html body #app main.view-records .records-screen-panel table.records-like-table > thead > tr > th.sortable-column::after,
html body #app main.view-records .records-screen-panel table.data-grid > thead > tr > th.sortable-column::after,
html body main.view-records .records-screen-panel table.records-like-table > thead > tr > th.sortable-column::after,
html body .view-records .records-screen-panel table.records-like-table > thead > tr > th.sortable-column::after {
  color: rgba(255, 255, 255, 0.72) !important;
}

html body #app main.view-records .records-screen-panel table.records-like-table > tbody > tr > td,
html body #app main.view-records .records-screen-panel table.data-grid > tbody > tr > td,
html body main.view-records .records-screen-panel table.records-like-table > tbody > tr > td,
html body .view-records .records-screen-panel table.records-like-table > tbody > tr > td {
  padding-top: 12px !important;
  padding-bottom: 12px !important;
}

html body #app main.view-records .records-screen-panel table.records-like-table td .entity-cell,
html body #app main.view-records .records-screen-panel table.records-like-table td .remit-entity-cell,
html body #app main.view-records .records-screen-panel table.data-grid td .entity-cell,
html body #app main.view-records .records-screen-panel table.data-grid td .remit-entity-cell,
html body main.view-records .records-screen-panel table.records-like-table td .entity-cell,
html body main.view-records .records-screen-panel table.records-like-table td .remit-entity-cell,
html body .view-records .records-screen-panel table td .entity-cell,
html body .view-records .records-screen-panel table td .remit-entity-cell {
  display: inline !important;
  min-width: 0 !important;
  min-height: 0 !important;
  height: auto !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  background-color: transparent !important;
  color: #0f3f4a !important;
  font-weight: 600 !important;
  box-shadow: none !important;
}

html body #app main.view-records .records-screen-panel table.records-like-table td .entity-cell *,
html body #app main.view-records .records-screen-panel table.records-like-table td .remit-entity-cell *,
html body #app main.view-records .records-screen-panel table.data-grid td .entity-cell *,
html body #app main.view-records .records-screen-panel table.data-grid td .remit-entity-cell *,
html body main.view-records .records-screen-panel table.records-like-table td .entity-cell *,
html body main.view-records .records-screen-panel table.records-like-table td .remit-entity-cell *,
html body .view-records .records-screen-panel table td .entity-cell *,
html body .view-records .records-screen-panel table td .remit-entity-cell * {
  display: inline !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  background-color: transparent !important;
  color: inherit !important;
  box-shadow: none !important;
}

/* System-wide table language: navy headers, navy add buttons, color only in status/result cells. */
html body #app .main table > thead,
html body #app .main table > thead > tr,
html body #app .main table > thead > tr > th,
html body #app .modal-panel table > thead,
html body #app .modal-panel table > thead > tr,
html body #app .modal-panel table > thead > tr > th,
html body #app .widgets table > thead,
html body #app .widgets table > thead > tr,
html body #app .widgets table > thead > tr > th,
html body #app .donor-widgets table > thead,
html body #app .donor-widgets table > thead > tr,
html body #app .donor-widgets table > thead > tr > th {
  background: #0f3f4a !important;
  background-color: #0f3f4a !important;
  color: #ffffff !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  border-color: rgba(255, 255, 255, 0.14) !important;
}

html body #app .main table > thead > tr > th.sortable-column::after,
html body #app .modal-panel table > thead > tr > th.sortable-column::after,
html body #app .widgets table > thead > tr > th.sortable-column::after,
html body #app .donor-widgets table > thead > tr > th.sortable-column::after {
  color: rgba(255, 255, 255, 0.72) !important;
}

html body #app .main table > tbody > tr > td,
html body #app .modal-panel table > tbody > tr > td,
html body #app .widgets table > tbody > tr > td,
html body #app .donor-widgets table > tbody > tr > td {
  padding-top: 12px !important;
  padding-bottom: 12px !important;
}

html body #app .record-tab-widgets .widget-table tbody tr.current-record-transaction-row > td,
html body .modal-panel .record-tab-widgets .widget-table tbody tr.current-record-transaction-row > td {
  background: #eef7fb !important;
  box-shadow: inset 3px 0 0 #0f3f4a !important;
}

html body #app .table-toolbar-add-new,
html body #app button.table-toolbar-add-new,
html body #app .widget-toolbar-add,
html body #app button.widget-toolbar-add,
html body #app .records-toolbar-add-new,
html body #app button.records-toolbar-add-new {
  border-color: #0f3f4a !important;
  background: #0f3f4a !important;
  background-color: #0f3f4a !important;
  color: #ffffff !important;
  box-shadow: none !important;
}

html body #app .table-toolbar-add-new:hover,
html body #app button.table-toolbar-add-new:hover,
html body #app .widget-toolbar-add:hover,
html body #app button.widget-toolbar-add:hover,
html body #app .records-toolbar-add-new:hover,
html body #app button.records-toolbar-add-new:hover {
  border-color: #0b3240 !important;
  background: #0b3240 !important;
  background-color: #0b3240 !important;
}

html body #app td.table-color-allowed-cell .status-badge,
html body #app td.table-color-allowed-cell .remit-fixed-badge,
html body #app td.table-color-allowed-cell .badge {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-height: 26px !important;
  padding: 5px 12px !important;
  border-radius: 6px !important;
  box-shadow: none !important;
  font-weight: 600 !important;
  line-height: 1.15 !important;
}

html body #app td.table-plain-visual-cell .status-badge,
html body #app td.table-plain-visual-cell .remit-fixed-badge,
html body #app td.table-plain-visual-cell .badge,
html body #app td.table-plain-visual-cell .entity-cell,
html body #app td.table-plain-visual-cell .remit-entity-cell {
  display: inline !important;
  min-width: 0 !important;
  min-height: 0 !important;
  height: auto !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  background-color: transparent !important;
  color: #0f3f4a !important;
  font-weight: 500 !important;
  box-shadow: none !important;
}

html body #app td.table-plain-visual-cell .status-badge *,
html body #app td.table-plain-visual-cell .remit-fixed-badge *,
html body #app td.table-plain-visual-cell .badge *,
html body #app td.table-plain-visual-cell .entity-cell *,
html body #app td.table-plain-visual-cell .remit-entity-cell * {
  display: inline !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  background-color: transparent !important;
  color: inherit !important;
  box-shadow: none !important;
}

html body #app td.table-plain-visual-cell .avatar,
html body #app td.table-plain-visual-cell .remit-avatar,
html body #app td.table-plain-visual-cell .entity-copy small {
  display: none !important;
}

/* Record modal header actions. */
html body #app .modal-panel:has(.record-card-tabs) .modal-head {
  gap: 16px !important;
}

html body #app .modal-panel:has(.record-card-tabs) .modal-head-actions {
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  margin-inline-start: auto !important;
}

html body #app .modal-panel:has(.record-card-tabs) .modal-head-actions .modal-head-save-btn,
html body #app .modal-panel:has(.record-card-tabs) .modal-head-actions .modal-head-close-action {
  min-height: 36px !important;
  padding: 0 16px !important;
  border-radius: 8px !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  box-shadow: none !important;
}

html body #app .modal-panel:has(.record-card-tabs) .modal-head-actions .modal-head-close-action {
  border: 1px solid #e2e8f0 !important;
  background: #ffffff !important;
  background-color: #ffffff !important;
  color: #334155 !important;
}

/* Commitment status should read as a full-width field, not a tiny chip. */
html body #app .modal-panel:has(.record-form) .record-form label.commitment-status-readonly,
html body #app .record-form label.commitment-status-readonly {
  width: 100% !important;
}

html body #app .modal-panel:has(.record-form) .record-form label.commitment-status-readonly .readonly-status-capsule,
html body #app .record-form label.commitment-status-readonly .readonly-status-capsule {
  display: flex !important;
  width: 100% !important;
}

html body #app .modal-panel:has(.record-form) .record-form label.commitment-status-readonly .readonly-status-capsule .status-badge,
html body #app .modal-panel:has(.record-form) .record-form label.commitment-status-readonly .readonly-status-capsule .remit-fixed-badge,
html body #app .record-form label.commitment-status-readonly .readonly-status-capsule .status-badge,
html body #app .record-form label.commitment-status-readonly .readonly-status-capsule .remit-fixed-badge {
  width: 100% !important;
  min-height: 42px !important;
  border-radius: 6px !important;
}

/* Final table finish: read-only colored values are pills, headers are navy. */
html body #app table > thead,
html body #app table > thead > tr,
html body #app table > thead > tr > th,
html body:has(.enterprise-top-shell) #app table > thead,
html body:has(.enterprise-top-shell) #app table > thead > tr,
html body:has(.enterprise-top-shell) #app table > thead > tr > th {
  background: #0f3f4a !important;
  background-color: #0f3f4a !important;
  color: #ffffff !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  border-color: rgba(255, 255, 255, 0.14) !important;
}

html body #app table > thead > tr > th.sortable-column::after,
html body:has(.enterprise-top-shell) #app table > thead > tr > th.sortable-column::after {
  color: rgba(255, 255, 255, 0.72) !important;
}

html body #app td.table-color-allowed-cell .status-badge,
html body #app td.table-color-allowed-cell .remit-fixed-badge,
html body #app td.table-color-allowed-cell .badge,
html body #app table td .status-badge.remit-fixed-badge,
html body #app table td .status-badge.success,
html body #app table td .status-badge.warning,
html body #app table td .status-badge.danger,
html body #app table td .status-badge.info,
html body #app table td .status-badge.ok {
  border-radius: 9999px !important;
}

/* Final colored-value shape: every colored value is a soft pill, never a box. */
html body #app .status-badge,
html body #app .badge,
html body #app .remit-fixed-badge,
html body #app .choice-select-value .status-badge,
html body #app .managed-select-button .status-badge,
html body #app .managed-option-value .status-badge,
html body #app td.table-color-allowed-cell .status-badge,
html body #app td.table-color-allowed-cell .remit-fixed-badge,
html body #app td.table-color-allowed-cell .badge {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: auto !important;
  min-width: 0 !important;
  max-width: 100% !important;
  min-height: 26px !important;
  height: auto !important;
  padding: 5px 14px !important;
  border-radius: 9999px !important;
  box-shadow: none !important;
  line-height: 1.15 !important;
}

html body #app .record-form .managed-select.status-field-container,
html body #app .record-form .managed-select-button.status-field-container,
html body #app .modal-panel:has(.record-form) .record-form .managed-select.status-field-container,
html body #app .modal-panel:has(.record-form) .record-form .managed-select-button.status-field-container {
  border-color: #e2e8f0 !important;
  background: #ffffff !important;
  background-color: #ffffff !important;
  color: #0f3f4a !important;
  box-shadow: none !important;
}

html body #app .record-form .managed-select-button.status-field-container .choice-select-value,
html body #app .modal-panel:has(.record-form) .record-form .managed-select-button.status-field-container .choice-select-value {
  flex: 1 1 auto !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  background-color: transparent !important;
}

html body #app .record-form .managed-select-button.status-field-container .status-badge,
html body #app .record-form .managed-select-button.status-field-container .remit-fixed-badge,
html body #app .modal-panel:has(.record-form) .record-form .managed-select-button.status-field-container .status-badge,
html body #app .modal-panel:has(.record-form) .record-form .managed-select-button.status-field-container .remit-fixed-badge {
  width: auto !important;
  min-width: min(160px, 70%) !important;
  max-width: calc(100% - 40px) !important;
  min-height: 34px !important;
  padding-inline: 22px !important;
  border-radius: 9999px !important;
}

html body #app .record-form label.commitment-status-readonly .readonly-status-capsule,
html body #app .modal-panel:has(.record-form) .record-form label.commitment-status-readonly .readonly-status-capsule {
  width: auto !important;
  display: inline-flex !important;
  background: transparent !important;
  background-color: transparent !important;
}

html body #app .record-form label.commitment-status-readonly .readonly-status-capsule .status-badge,
html body #app .record-form label.commitment-status-readonly .readonly-status-capsule .remit-fixed-badge,
html body #app .modal-panel:has(.record-form) .record-form label.commitment-status-readonly .readonly-status-capsule .status-badge,
html body #app .modal-panel:has(.record-form) .record-form label.commitment-status-readonly .readonly-status-capsule .remit-fixed-badge {
  width: auto !important;
  min-width: 96px !important;
  min-height: 32px !important;
  padding: 6px 18px !important;
  border-radius: 9999px !important;
}

/* Header commitment status uses the same badge colors as the commitment details field. */
html body #app .donor-hero .record-charge-summary > span.finance-summary-status,
html body #app .call-screen .record-charge-summary > span.finance-summary-status {
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  border-color: #e2e8f0 !important;
  background: #ffffff !important;
  background-color: #ffffff !important;
  color: #64748b !important;
}

html body #app .donor-hero .record-charge-summary > span.finance-summary-status strong,
html body #app .call-screen .record-charge-summary > span.finance-summary-status strong {
  color: #64748b !important;
  font-size: 12px !important;
  font-weight: 500 !important;
}

html body #app .donor-hero .record-charge-summary > span.finance-summary-status .status-badge,
html body #app .donor-hero .record-charge-summary > span.finance-summary-status .remit-fixed-badge,
html body #app .call-screen .record-charge-summary > span.finance-summary-status .status-badge,
html body #app .call-screen .record-charge-summary > span.finance-summary-status .remit-fixed-badge {
  min-height: 26px !important;
  padding: 5px 14px !important;
}

/* Donor detail card: existing donors use the same two-column workbench rhythm as record cards. */
html body #app .donor-detail-existing-screen .donor-detail-layout,
html body .modal-panel:has(.donor-detail-existing-screen) .donor-detail-layout {
  display: grid !important;
  grid-template-columns: minmax(420px, 0.92fr) minmax(520px, 1.08fr) !important;
  gap: 14px !important;
  align-items: start !important;
  width: 100% !important;
  min-width: 0 !important;
}

html body #app .donor-detail-existing-screen .donor-detail-main-column,
html body #app .donor-detail-existing-screen .donor-detail-widgets-column,
html body .modal-panel:has(.donor-detail-existing-screen) .donor-detail-main-column,
html body .modal-panel:has(.donor-detail-existing-screen) .donor-detail-widgets-column {
  min-width: 0 !important;
  width: 100% !important;
}

html body #app .donor-detail-existing-screen .donor-detail-form,
html body .modal-panel:has(.donor-detail-existing-screen) .donor-detail-form {
  grid-column: auto !important;
  grid-template-columns: repeat(12, minmax(0, 1fr)) !important;
  gap: 10px !important;
  align-content: start !important;
}

html body #app .donor-detail-existing-screen .donor-widgets,
html body .modal-panel:has(.donor-detail-existing-screen) .donor-widgets {
  grid-column: auto !important;
  grid-row: auto !important;
  margin: 0 !important;
  gap: 10px !important;
  align-content: start !important;
}

html body #app .donor-detail-existing-screen .donor-widget-vertical-stack,
html body .modal-panel:has(.donor-detail-existing-screen) .donor-widget-vertical-stack {
  display: grid !important;
  gap: 10px !important;
}

html body #app .donor-detail-existing-screen .donor-detail-form .donor-detail-live-header,
html body .modal-panel:has(.donor-detail-existing-screen) .donor-detail-form .donor-detail-live-header {
  min-height: 72px !important;
  padding: 14px 18px !important;
}

html body #app .donor-detail-existing-screen .donor-detail-form .donor-detail-card:not(.donor-detail-full):not(.donor-memorials-section):not(.linked-journals-panel),
html body .modal-panel:has(.donor-detail-existing-screen) .donor-detail-form .donor-detail-card:not(.donor-detail-full):not(.donor-memorials-section):not(.linked-journals-panel) {
  padding: 12px !important;
}

html body #app .donor-detail-existing-screen .donor-detail-form .donor-detail-card-grid,
html body .modal-panel:has(.donor-detail-existing-screen) .donor-detail-form .donor-detail-card-grid {
  gap: 8px !important;
}

html body #app .donor-detail-existing-screen .donor-detail-form .widget-head,
html body .modal-panel:has(.donor-detail-existing-screen) .donor-detail-form .widget-head {
  margin-bottom: 8px !important;
}

html body #app .donor-detail-existing-screen .donor-detail-form label,
html body .modal-panel:has(.donor-detail-existing-screen) .donor-detail-form label {
  gap: 4px !important;
}

html body #app .donor-detail-existing-screen .donor-detail-form input,
html body #app .donor-detail-existing-screen .donor-detail-form select,
html body .modal-panel:has(.donor-detail-existing-screen) .donor-detail-form input,
html body .modal-panel:has(.donor-detail-existing-screen) .donor-detail-form select {
  min-height: 38px !important;
}

html body #app .donor-detail-existing-screen .donor-detail-form .donor-detail-section-notes textarea,
html body .modal-panel:has(.donor-detail-existing-screen) .donor-detail-form .donor-detail-section-notes textarea {
  min-height: 72px !important;
}

html body #app .donor-detail-existing-screen .donor-widgets .widget-card,
html body #app .donor-detail-existing-screen .widgets .widget-card,
html body .modal-panel:has(.donor-detail-existing-screen) .donor-widgets .widget-card,
html body .modal-panel:has(.donor-detail-existing-screen) .widgets .widget-card {
  border-radius: 12px !important;
  padding: 10px !important;
}

html body #app .donor-detail-existing-screen .donor-widgets .widget-table-tools,
html body .modal-panel:has(.donor-detail-existing-screen) .donor-widgets .widget-table-tools {
  min-height: 40px !important;
  padding: 8px 10px !important;
}

html body #app .donor-detail-existing-screen .donor-widgets .widget-table th,
html body #app .donor-detail-existing-screen .donor-widgets .data-grid th,
html body .modal-panel:has(.donor-detail-existing-screen) .donor-widgets .widget-table th,
html body .modal-panel:has(.donor-detail-existing-screen) .donor-widgets .data-grid th {
  padding-top: 7px !important;
  padding-bottom: 7px !important;
}

html body #app .donor-detail-existing-screen .donor-widgets .widget-table td,
html body #app .donor-detail-existing-screen .donor-widgets .data-grid td,
html body .modal-panel:has(.donor-detail-existing-screen) .donor-widgets .widget-table td,
html body .modal-panel:has(.donor-detail-existing-screen) .donor-widgets .data-grid td {
  padding-top: 7px !important;
  padding-bottom: 7px !important;
}

html body #app .donor-detail-existing-screen .donor-detail-card,
html body #app .donor-detail-create-screen .donor-detail-card,
html body .modal-panel:has(.donor-detail-screen) .donor-detail-card {
  border: 1px solid #dfe8f5 !important;
  border-radius: 12px !important;
  background: #ffffff !important;
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.045) !important;
}

html body #app .donor-detail-create-screen,
html body .modal-panel:has(.donor-detail-create-screen) .donor-detail-create-screen {
  display: block !important;
}

html body #app .donor-detail-create-screen .donor-detail-form,
html body .modal-panel:has(.donor-detail-create-screen) .donor-detail-form {
  grid-column: 1 / -1 !important;
  max-width: none !important;
}

html body #app .donor-detail-create-screen .donor-widgets,
html body .modal-panel:has(.donor-detail-create-screen) .donor-widgets {
  display: none !important;
}

@media (max-width: 1100px) {
  html body #app .donor-detail-existing-screen .donor-detail-layout,
  html body .modal-panel:has(.donor-detail-existing-screen) .donor-detail-layout {
    grid-template-columns: 1fr !important;
  }
}

/* Final modal scroll lock: the panel/header/footer stay fixed; only the body scrolls. */
html body .modal-backdrop:has(.record-card-tabs),
html body .modal-backdrop:has(.record-form),
html body .modal-backdrop:has(.donor-detail-screen) {
  position: fixed !important;
  inset: 0 !important;
  display: grid !important;
  place-items: center !important;
  align-items: center !important;
  justify-items: center !important;
  padding: 16px !important;
  overflow: hidden !important;
  overscroll-behavior: contain !important;
  scroll-behavior: auto !important;
  overflow-anchor: none !important;
}

html body .modal-panel:has(.record-card-tabs),
html body .modal-panel:has(.record-form),
html body .modal-panel:has(.donor-detail-screen) {
  display: grid !important;
  grid-template-rows: auto minmax(0, 1fr) auto !important;
  width: min(1560px, calc(100vw - 32px)) !important;
  max-width: calc(100vw - 32px) !important;
  max-height: calc(100vh - 32px) !important;
  min-height: 0 !important;
  overflow: hidden !important;
  overflow-anchor: none !important;
  scroll-behavior: auto !important;
}

html body:has(.enterprise-top-shell) .modal-panel:has(.record-card-tabs),
html body:has(.enterprise-top-shell) .modal-panel:has(.record-form),
html body:has(.enterprise-top-shell) .modal-panel:has(.donor-detail-screen) {
  max-height: calc(100vh - 32px) !important;
}

html body .modal-panel:has(.record-card-tabs) > .modal-head,
html body .modal-panel:has(.record-form) > .modal-head,
html body .modal-panel:has(.donor-detail-screen) > .modal-head,
html body .modal-panel:has(.record-card-tabs) > .modal-footer,
html body .modal-panel:has(.record-form) > .modal-footer,
html body .modal-panel:has(.donor-detail-screen) > .modal-footer {
  flex: 0 0 auto !important;
  min-height: 0 !important;
}

html body .modal-panel:has(.record-card-tabs) > .modal-body,
html body .modal-panel:has(.record-form) > .modal-body,
html body .modal-panel:has(.donor-detail-screen) > .modal-body {
  min-height: 0 !important;
  max-height: none !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
  overscroll-behavior: contain !important;
  overflow-anchor: none !important;
  scroll-behavior: auto !important;
}

html body .modal-panel:has(.record-card-tabs) > .modal-body > .modal-content,
html body .modal-panel:has(.record-form) > .modal-body > .modal-content,
html body .modal-panel:has(.donor-detail-screen) > .modal-body > .modal-content {
  min-width: 0 !important;
  min-height: 0 !important;
  overflow: visible !important;
  overflow-anchor: none !important;
}

html body .modal-panel:has(.record-card-tabs) .data-grid-panel,
html body .modal-panel:has(.record-form) .data-grid-panel,
html body .modal-panel:has(.donor-detail-screen) .data-grid-panel {
  max-width: 100% !important;
  overflow-x: auto !important;
  overflow-y: hidden !important;
}

/* Detail modals must stay inside the viewport with real breathing room on every side. */
html body:has(.enterprise-top-shell) .modal-backdrop:has(.record-card-tabs),
html body:has(.enterprise-top-shell) .modal-backdrop:has(.record-form),
html body:has(.enterprise-top-shell) .modal-backdrop:has(.donor-detail-screen),
html body .modal-backdrop:has(.record-card-tabs),
html body .modal-backdrop:has(.record-form),
html body .modal-backdrop:has(.donor-detail-screen) {
  position: fixed !important;
  inset: 0 !important;
  z-index: 9999 !important;
  display: grid !important;
  place-items: center !important;
  align-items: center !important;
  justify-items: center !important;
  padding: 28px !important;
  overflow: hidden !important;
}

html body:has(.enterprise-top-shell) .modal-panel:has(.record-card-tabs),
html body:has(.enterprise-top-shell) .modal-panel:has(.record-form),
html body:has(.enterprise-top-shell) .modal-panel:has(.donor-detail-screen),
html body .modal-panel:has(.record-card-tabs),
html body .modal-panel:has(.record-form),
html body .modal-panel:has(.donor-detail-screen) {
  width: min(1420px, calc(100vw - 56px)) !important;
  max-width: calc(100vw - 56px) !important;
  height: auto !important;
  max-height: calc(100vh - 56px) !important;
  margin: 0 !important;
  transform: none !important;
}

html body .modal-panel:has(.donor-detail-screen) {
  width: min(1320px, calc(100vw - 56px)) !important;
}

html body #app .main .incentive-games-arena .prize-wheel-editor input {
  width: 84px !important;
  min-width: 0 !important;
  height: 38px !important;
  min-height: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  color: inherit !important;
  box-shadow: none !important;
  font-size: 20px !important;
  font-weight: 900 !important;
  text-align: center !important;
  text-shadow: inherit !important;
  appearance: textfield !important;
  -moz-appearance: textfield !important;
}

html body #app .main .incentive-games-arena .prize-wheel-editor input::-webkit-outer-spin-button,
html body #app .main .incentive-games-arena .prize-wheel-editor input::-webkit-inner-spin-button {
  margin: 0 !important;
  appearance: none !important;
  -webkit-appearance: none !important;
}

/* Prize wheel text is part of the wheel: editable, rotated with each slice, and never boxed. */
html body #app .main .incentive-games-arena .prize-wheel-wrap {
  overflow: visible !important;
}

html body #app .main .incentive-games-arena .prize-wheel-editors {
  pointer-events: none !important;
  transform: rotate(var(--wheel-rotation, 0deg)) !important;
  transition: transform var(--wheel-spin-duration, 6200ms) cubic-bezier(0.08, 0.82, 0.16, 1) !important;
}

html body #app .main .incentive-games-arena .prize-wheel-editor {
  width: 106px !important;
  height: 44px !important;
  pointer-events: auto !important;
  transform: translate(-50%, -50%) rotate(var(--angle)) translateY(-136px) !important;
  transform-origin: center !important;
}

html body #app .main .incentive-games-arena .prize-wheel-editor input,
html body #app .main .incentive-games-arena .prize-wheel-editor input[type="text"] {
  width: 108px !important;
  min-width: 0 !important;
  height: 42px !important;
  min-height: 0 !important;
  padding: 0 2px !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  background-color: transparent !important;
  color: #ffffff !important;
  box-shadow: none !important;
  font-size: 18px !important;
  font-weight: 900 !important;
  line-height: 1.05 !important;
  text-align: center !important;
  text-shadow: 0 2px 7px rgba(15, 23, 42, 0.75), 0 0 2px rgba(255, 255, 255, 0.9) !important;
  appearance: none !important;
  -moz-appearance: none !important;
}

html body #app .main .incentive-games-arena .prize-wheel-editor input:focus {
  outline: 2px solid rgba(255, 255, 255, 0.85) !important;
  outline-offset: 4px !important;
  border-radius: 999px !important;
}

html body #app .main .incentive-games-arena .prize-wheel-editor.is-winner input {
  color: #fff7c2 !important;
  background: transparent !important;
  background-color: transparent !important;
  box-shadow: none !important;
  text-shadow: 0 0 7px #ffffff, 0 0 18px rgba(255, 214, 90, 1), 0 2px 7px rgba(15, 23, 42, 0.75) !important;
  animation: wheel-text-winner-pop 900ms ease-in-out infinite !important;
}

html body #app .main .incentive-games-arena .prize-wheel-wrap.is-spinning .prize-wheel-editor {
  pointer-events: none !important;
}

html body #app .main .incentive-games-arena .wheel-winning-burst {
  position: absolute !important;
  z-index: 12 !important;
  inset: 0 !important;
  width: 100% !important;
  min-height: 100% !important;
  display: grid !important;
  place-items: center !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  color: #fff6a8 !important;
  text-align: center !important;
  box-shadow: none !important;
  transform: none !important;
  animation: wheel-winning-burst-pop 3400ms cubic-bezier(0.12, 1.08, 0.22, 1) forwards !important;
  pointer-events: none !important;
}

html body #app .main .incentive-games-arena .wheel-winning-burst span {
  display: none !important;
}

html body #app .main .incentive-games-arena .wheel-winning-burst strong {
  max-width: 100% !important;
  color: #fff4a0 !important;
  font-size: clamp(78px, 16vw, 168px) !important;
  font-weight: 1000 !important;
  line-height: 0.86 !important;
  overflow-wrap: anywhere !important;
  text-shadow:
    0 4px 0 rgba(5, 32, 51, 0.92),
    0 0 16px rgba(255, 255, 255, 0.98),
    0 0 42px rgba(255, 214, 90, 1),
    0 0 80px rgba(239, 75, 128, 0.72) !important;
}

html body #app .main .incentive-games-arena .wheel-fireworks i {
  width: 10px !important;
  height: 18px !important;
  opacity: 1 !important;
  animation: wheel-firework-pop 720ms ease-out infinite alternate !important;
}

@keyframes wheel-text-winner-pop {
  0%, 100% { scale: 1; }
  50% { scale: 1.14; }
}

@keyframes wheel-winning-burst-pop {
  0% { opacity: 0; transform: scale(0.45) rotate(-4deg); visibility: visible; }
  14% { opacity: 1; transform: scale(1.14) rotate(0deg); visibility: visible; }
  62% { opacity: 1; transform: scale(1) rotate(0deg); visibility: visible; }
  100% { opacity: 0; transform: scale(1.28) rotate(3deg); visibility: hidden; }
}

@keyframes wheel-winning-burst-glow {
  0%, 100% { filter: saturate(1) brightness(1); }
  50% { filter: saturate(1.18) brightness(1.08); }
}

/* Keep every modal below the fixed enterprise header. */
html body .modal-backdrop,
html body:has(.enterprise-top-shell) .modal-backdrop,
html body:has(.enterprise-sidebar) .modal-backdrop,
html body .modal-backdrop:has(.classic-table-settings),
html body .modal-backdrop:has(.table-settings-screen),
html body .modal-backdrop:has(.widget-column-form),
html body .modal-backdrop:has(.field-settings-modal) {
  position: fixed !important;
  inset: 0 !important;
  display: grid !important;
  place-items: start center !important;
  align-items: start !important;
  justify-items: center !important;
  padding: max(92px, env(safe-area-inset-top)) 28px 28px !important;
  overflow: hidden !important;
}

html body .modal-panel,
html body .modal-panel.modal-wide,
html body .modal-panel.modal-medium,
html body .modal-panel.modal-compact,
html body .modal-panel:has(.classic-table-settings),
html body .modal-panel:has(.table-settings-screen),
html body .modal-panel:has(.widget-column-form),
html body .modal-panel:has(.field-settings-modal) {
  max-height: calc(100dvh - max(120px, calc(92px + env(safe-area-inset-top)))) !important;
  margin: 0 auto !important;
  overflow: hidden !important;
  transform: none !important;
}

html body .modal-panel > .modal-body,
html body .modal-panel:has(.classic-table-settings) > .modal-body,
html body .modal-panel:has(.table-settings-screen) > .modal-body,
html body .modal-panel:has(.widget-column-form) > .modal-body,
html body .modal-panel:has(.field-settings-modal) > .modal-body {
  min-height: 0 !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
}

/* Outer records table status badges should read like the rounded status pill inside the record card. */
html body #app main.view-records .records-screen-panel table td .status-badge,
html body #app main.view-records .records-screen-panel table td .remit-fixed-badge,
html body #app .view-records .records-screen-panel table td .status-badge,
html body #app .view-records .records-screen-panel table td .remit-fixed-badge {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-width: 74px !important;
  min-height: 34px !important;
  padding: 7px 18px !important;
  border-radius: 9999px !important;
  border-width: 0 !important;
  font-size: 14px !important;
  font-weight: 700 !important;
  line-height: 1 !important;
  box-shadow: none !important;
}

html body #app main.view-records .records-screen-panel table td .status-badge.success,
html body #app main.view-records .records-screen-panel table td .status-badge.ok,
html body #app main.view-records .records-screen-panel table td .remit-fixed-badge[style*="e6f4ea"],
html body #app .view-records .records-screen-panel table td .status-badge.success,
html body #app .view-records .records-screen-panel table td .status-badge.ok,
html body #app .view-records .records-screen-panel table td .remit-fixed-badge[style*="e6f4ea"] {
  background: rgba(60, 184, 108, 0.14) !important;
  background-color: rgba(60, 184, 108, 0.14) !important;
  color: #2A8C52 !important;
}

html body #app main.view-records .records-screen-panel table td .status-badge.info,
html body #app main.view-records .records-screen-panel table td .status-badge.neutral,
html body #app main.view-records .records-screen-panel table td .remit-fixed-badge[style*="eaf1f8"],
html body #app main.view-records .records-screen-panel table td .remit-fixed-badge[style*="f1f5f9"],
html body #app .view-records .records-screen-panel table td .status-badge.info,
html body #app .view-records .records-screen-panel table td .status-badge.neutral,
html body #app .view-records .records-screen-panel table td .remit-fixed-badge[style*="eaf1f8"],
html body #app .view-records .records-screen-panel table td .remit-fixed-badge[style*="f1f5f9"] {
  background: #f1f5f9 !important;
  background-color: #f1f5f9 !important;
  color: #00558d !important;
}

/* Modal safety net: no dialog may be clipped by the viewport; the backdrop scrolls and keeps margins. */
html body .modal-backdrop,
html body:has(.enterprise-top-shell) .modal-backdrop,
html body:has(.enterprise-sidebar) .modal-backdrop {
  box-sizing: border-box !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
  padding-bottom: max(64px, env(safe-area-inset-bottom)) !important;
  align-items: start !important;
  justify-items: center !important;
}

html body .modal-panel,
html body .modal-panel.modal-wide,
html body .modal-panel.modal-medium,
html body .modal-panel.modal-compact,
html body .modal-panel:has(.journal-detail-card),
html body .modal-panel:has(.classic-table-settings),
html body .modal-panel:has(.table-settings-screen),
html body .modal-panel:has(.widget-column-form),
html body .modal-panel:has(.field-settings-modal),
html body:has(.enterprise-top-shell) .modal-panel,
html body:has(.enterprise-top-shell) .modal-panel.modal-wide,
html body:has(.enterprise-top-shell) .modal-panel:has(.journal-detail-card),
html body:has(.enterprise-top-shell) .modal-panel:has(.donor-detail-screen),
html body:has(.enterprise-top-shell) .modal-panel:has(.call-screen),
html body:has(.enterprise-top-shell) .modal-panel:has(.record-form) {
  display: grid !important;
  grid-template-rows: auto minmax(0, 1fr) auto !important;
  min-height: 0 !important;
  max-height: calc(100% - max(56px, env(safe-area-inset-bottom))) !important;
  margin: 0 auto !important;
  overflow: hidden !important;
}

html body .modal-panel:has(.journal-detail-card) .modal-body,
html body .modal-panel:has(.journal-detail-card) .modal-content,
html body .modal-panel:has(.journal-detail-card) .journal-detail-card {
  min-height: 0 !important;
}

html body .modal-panel > .modal-body,
html body .modal-panel:has(.journal-detail-card) > .modal-body,
html body .modal-panel:has(.classic-table-settings) > .modal-body,
html body .modal-panel:has(.table-settings-screen) > .modal-body,
html body .modal-panel:has(.widget-column-form) > .modal-body,
html body .modal-panel:has(.field-settings-modal) > .modal-body {
  min-height: 0 !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
}

/* Table resize safety net: tables stay inside their own scroll area even after column dragging. */
html body #app .data-grid-panel,
html body #app .records-screen-panel,
html body #app .panel:has(> table),
html body #app .panel:has(> .table-search-row),
html body #app .widget-card,
html body #app .modal-content .subpanel {
  box-sizing: border-box !important;
  max-width: 100% !important;
  min-width: 0 !important;
  overflow-x: auto !important;
  overscroll-behavior-x: contain !important;
}

html body #app table.data-grid,
html body #app table.records-like-table,
html body #app .data-grid-panel > table,
html body #app .panel > table,
html body #app .widget-card table {
  width: 100% !important;
  min-width: max-content !important;
  max-width: none !important;
  table-layout: fixed !important;
}

html body #app table.data-grid th,
html body #app table.data-grid td,
html body #app table.records-like-table th,
html body #app table.records-like-table td,
html body #app .widget-card table th,
html body #app .widget-card table td {
  box-sizing: border-box !important;
  min-width: 56px !important;
  max-width: min(420px, calc(100vw - 72px)) !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

html body #app table.data-grid th.utility-column,
html body #app table.records-like-table th.utility-column {
  min-width: 34px !important;
  max-width: 48px !important;
}

/* Final top menu logo size lock. The header logo asset is cropped, so these dimensions affect the visible logo. */
html body header.enterprise-top-shell .enterprise-top-row {
  height: 82px !important;
  min-height: 82px !important;
  position: relative !important;
  justify-content: center !important;
  padding-inline: 280px 180px !important;
}

html body header.enterprise-top-shell .enterprise-top-brand,
html body header.enterprise-top-shell .enterprise-top-brand:not(.ghost):not(.icon-btn):not(.table-link):not(.calendar-day):not(.managed-select-button):not(.table-bubble-current) {
  position: absolute !important;
  inset-inline-start: auto !important;
  inset-inline-end: 24px !important;
  top: 50% !important;
  width: 230px !important;
  min-width: 230px !important;
  height: 78px !important;
  transform: translateY(-50%) !important;
  overflow: visible !important;
  z-index: 2 !important;
}

html body header.enterprise-top-shell .enterprise-top-logo-full {
  width: 220px !important;
  max-width: 220px !important;
  height: 76px !important;
  max-height: 76px !important;
  object-fit: contain !important;
  object-position: right center !important;
  transform: none !important;
}

html body header.enterprise-top-shell .enterprise-top-main-nav {
  flex: 0 1 auto !important;
  margin-inline: auto !important;
  justify-content: center !important;
}

html body header.enterprise-top-shell .enterprise-top-user {
  position: absolute !important;
  inset-inline-end: 28px !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  z-index: 2 !important;
}

/* Plain dropdown options need a visible hover/focus state even when they do not use colored pills. */
html body #app .managed-select-menu button.managed-option-value:not(:has(.status-badge)):not(:has(.remit-fixed-badge)):not(:has(.choice-select-value)):hover,
html body #app .managed-select-menu button.managed-option-value:not(:has(.status-badge)):not(:has(.remit-fixed-badge)):not(:has(.choice-select-value)):focus-visible,
html body #app .record-form .managed-select-menu.record-form-floating-menu button.managed-option-value:not(:has(.status-badge)):not(:has(.remit-fixed-badge)):not(:has(.choice-select-value)):hover,
html body #app .record-form .managed-select-menu.record-form-floating-menu button.managed-option-value:not(:has(.status-badge)):not(:has(.remit-fixed-badge)):not(:has(.choice-select-value)):focus-visible,
html body #floating-choice-menu button:not(:has(.status-badge)):not(:has(.remit-fixed-badge)):not(:has(.choice-select-value)):hover,
html body #floating-choice-menu button:not(:has(.status-badge)):not(:has(.remit-fixed-badge)):not(:has(.choice-select-value)):focus-visible,
html body #choice-bubble-dialog button:not(:has(.status-badge)):not(:has(.remit-fixed-badge)):not(:has(.choice-select-value)):hover,
html body #choice-bubble-dialog button:not(:has(.status-badge)):not(:has(.remit-fixed-badge)):not(:has(.choice-select-value)):focus-visible,
html body .inline-choice-menu button:not(:has(.status-badge)):not(:has(.remit-fixed-badge)):not(:has(.choice-select-value)):hover,
html body .inline-choice-menu button:not(:has(.status-badge)):not(:has(.remit-fixed-badge)):not(:has(.choice-select-value)):focus-visible,
html body .table-bubble-menu button:not(:has(.status-badge)):not(:has(.remit-fixed-badge)):not(:has(.choice-select-value)):hover,
html body .table-bubble-menu button:not(:has(.status-badge)):not(:has(.remit-fixed-badge)):not(:has(.choice-select-value)):focus-visible {
  background: #edf7f1 !important;
  background-color: #edf7f1 !important;
  color: #123947 !important;
  border-radius: 10px !important;
  box-shadow: inset 3px 0 0 #3CB86C, 0 1px 0 rgba(18, 57, 71, 0.04) !important;
  outline: 0 !important;
}

html body #app .record-form .managed-select-menu.record-form-floating-menu button.managed-option-value:not(:has(.status-badge)):not(:has(.remit-fixed-badge)):not(:has(.choice-select-value)):hover,
html body #app .record-form .managed-select-menu.record-form-floating-menu button.managed-option-value:not(:has(.status-badge)):not(:has(.remit-fixed-badge)):not(:has(.choice-select-value)):focus-visible {
  padding-inline: 14px !important;
  justify-content: flex-start !important;
}

html body #app .managed-select-menu button.managed-option-value:not(:has(.status-badge)):not(:has(.remit-fixed-badge)):not(:has(.choice-select-value)):hover > span,
html body #app .managed-select-menu button.managed-option-value:not(:has(.status-badge)):not(:has(.remit-fixed-badge)):not(:has(.choice-select-value)):focus-visible > span,
html body #app .managed-select-menu button.managed-option-value:not(:has(.status-badge)):not(:has(.remit-fixed-badge)):not(:has(.choice-select-value)):hover > span > span,
html body #app .managed-select-menu button.managed-option-value:not(:has(.status-badge)):not(:has(.remit-fixed-badge)):not(:has(.choice-select-value)):focus-visible > span > span,
html body #floating-choice-menu button.managed-option-value:not(:has(.status-badge)):not(:has(.remit-fixed-badge)):not(:has(.choice-select-value)):hover > span,
html body #floating-choice-menu button.managed-option-value:not(:has(.status-badge)):not(:has(.remit-fixed-badge)):not(:has(.choice-select-value)):focus-visible > span,
html body #floating-choice-menu button.managed-option-value:not(:has(.status-badge)):not(:has(.remit-fixed-badge)):not(:has(.choice-select-value)):hover > span > span,
html body #floating-choice-menu button.managed-option-value:not(:has(.status-badge)):not(:has(.remit-fixed-badge)):not(:has(.choice-select-value)):focus-visible > span > span,
html body #choice-bubble-dialog button.managed-option-value:not(:has(.status-badge)):not(:has(.remit-fixed-badge)):not(:has(.choice-select-value)):hover > span,
html body #choice-bubble-dialog button.managed-option-value:not(:has(.status-badge)):not(:has(.remit-fixed-badge)):not(:has(.choice-select-value)):focus-visible > span,
html body #choice-bubble-dialog button.managed-option-value:not(:has(.status-badge)):not(:has(.remit-fixed-badge)):not(:has(.choice-select-value)):hover > span > span,
html body #choice-bubble-dialog button.managed-option-value:not(:has(.status-badge)):not(:has(.remit-fixed-badge)):not(:has(.choice-select-value)):focus-visible > span > span {
  background: transparent !important;
  background-color: transparent !important;
  color: #123947 !important;
}

html body #floating-choice-menu.record-form-floating-menu button.managed-option-value:not(:has(.status-badge)):not(:has(.remit-fixed-badge)):not(:has(.choice-select-value)):hover,
html body #floating-choice-menu.record-form-floating-menu button.managed-option-value:not(:has(.status-badge)):not(:has(.remit-fixed-badge)):not(:has(.choice-select-value)):focus-visible,
html body #choice-bubble-dialog.record-form-floating-menu button.managed-option-value:not(:has(.status-badge)):not(:has(.remit-fixed-badge)):not(:has(.choice-select-value)):hover,
html body #choice-bubble-dialog.record-form-floating-menu button.managed-option-value:not(:has(.status-badge)):not(:has(.remit-fixed-badge)):not(:has(.choice-select-value)):focus-visible {
  background: #edf7f1 !important;
  background-color: #edf7f1 !important;
  color: #123947 !important;
  box-shadow: inset 3px 0 0 #3CB86C, 0 1px 0 rgba(18, 57, 71, 0.04) !important;
}

/* Record-form dropdowns render their options as plain buttons with inline layout styles. Keep hover unmistakable. */
html body #floating-choice-menu.record-form-floating-menu button.managed-option-value[data-record-dropdown-option="true"]:hover,
html body #floating-choice-menu.record-form-floating-menu button.managed-option-value[data-record-dropdown-option="true"]:focus-visible,
html body #choice-bubble-dialog.record-form-floating-menu button.managed-option-value[data-record-dropdown-option="true"]:hover,
html body #choice-bubble-dialog.record-form-floating-menu button.managed-option-value[data-record-dropdown-option="true"]:focus-visible,
html body .record-form .managed-select-menu button.managed-option-value[data-record-dropdown-option="true"]:hover,
html body .record-form .managed-select-menu button.managed-option-value[data-record-dropdown-option="true"]:focus-visible {
  background: rgba(60, 184, 108, 0.14) !important;
  background-color: rgba(60, 184, 108, 0.14) !important;
  color: #0f3f4a !important;
  border-radius: 10px !important;
  box-shadow: inset 4px 0 0 #2f9e56, 0 8px 18px rgba(15, 63, 74, 0.08) !important;
  outline: 0 !important;
}

html body #floating-choice-menu.record-form-floating-menu button.managed-option-value[data-record-dropdown-option="true"]:hover span,
html body #floating-choice-menu.record-form-floating-menu button.managed-option-value[data-record-dropdown-option="true"]:focus-visible span,
html body #choice-bubble-dialog.record-form-floating-menu button.managed-option-value[data-record-dropdown-option="true"]:hover span,
html body #choice-bubble-dialog.record-form-floating-menu button.managed-option-value[data-record-dropdown-option="true"]:focus-visible span,
html body .record-form .managed-select-menu button.managed-option-value[data-record-dropdown-option="true"]:hover span,
html body .record-form .managed-select-menu button.managed-option-value[data-record-dropdown-option="true"]:focus-visible span {
  color: #0f3f4a !important;
}

.deleted-source-note {
  display: inline-flex;
  align-items: center;
  max-width: min(520px, 100%);
  padding: 7px 12px;
  border-radius: 999px;
  border: 1px solid #f2c98b;
  background: #fff7e8;
  color: #7a3f00;
  font-weight: 800;
  line-height: 1.35;
  white-space: normal;
}

html body #app .settings-tabs {
  position: relative !important;
  z-index: 20 !important;
  pointer-events: auto !important;
}

html body #app .settings-tabs button {
  position: relative !important;
  z-index: 21 !important;
  pointer-events: auto !important;
  cursor: pointer !important;
}

html body #app .admin-view-tabs {
  position: relative !important;
  z-index: 50 !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  width: fit-content !important;
  margin: 0 0 12px auto !important;
  padding: 6px !important;
  border: 1px solid #d7e3ef !important;
  border-radius: 12px !important;
  background: #ffffff !important;
  box-shadow: 0 10px 28px rgba(15, 63, 74, 0.08) !important;
  pointer-events: auto !important;
}

html body #app .admin-view-tabs button {
  position: relative !important;
  z-index: 51 !important;
  min-width: 132px !important;
  min-height: 44px !important;
  padding: 0 16px !important;
  border: 1px solid #d7e3ef !important;
  border-radius: 9px !important;
  background: #ffffff !important;
  color: #334155 !important;
  font-weight: 800 !important;
  cursor: pointer !important;
  pointer-events: auto !important;
}

html body #app .admin-view-tabs button.active {
  border-color: #0f3f4a !important;
  background: #0f3f4a !important;
  color: #ffffff !important;
}

/* Record card width guard: late table/widget renders must not widen the modal. */
html body .modal-panel:has(.record-card-tabs),
html body:has(.enterprise-top-shell) .modal-panel:has(.record-card-tabs) {
  inline-size: min(1420px, calc(100vw - 56px)) !important;
  max-inline-size: calc(100vw - 56px) !important;
  min-inline-size: 0 !important;
  contain: inline-size !important;
}

html body .modal-panel:has(.record-card-tabs) > .modal-body,
html body .modal-panel:has(.record-card-tabs) > .modal-body > .modal-content,
html body .modal-panel:has(.record-card-tabs) .call-screen,
html body .modal-panel:has(.record-card-tabs) .record-card-tabs,
html body .modal-panel:has(.record-card-tabs) .record-tab-pane,
html body .modal-panel:has(.record-card-tabs) .record-details-layout,
html body .modal-panel:has(.record-card-tabs) .record-form,
html body .modal-panel:has(.record-card-tabs) .record-tab-widgets,
html body .modal-panel:has(.record-card-tabs) .donor-widgets,
html body .modal-panel:has(.record-card-tabs) .donor-widget-vertical-stack,
html body .modal-panel:has(.record-card-tabs) .widget-card {
  box-sizing: border-box !important;
  inline-size: 100% !important;
  max-inline-size: 100% !important;
  min-inline-size: 0 !important;
}

html body .modal-panel:has(.record-card-tabs) .record-tab-widgets,
html body .modal-panel:has(.record-card-tabs) .donor-widget-table-scroll,
html body .modal-panel:has(.record-card-tabs) .widget-card,
html body .modal-panel:has(.record-card-tabs) .widget-table-tools,
html body .modal-panel:has(.record-card-tabs) .widget-page-footer {
  overflow-x: auto !important;
  overscroll-behavior-x: contain !important;
}

html body .modal-panel:has(.record-card-tabs) .record-details-layout {
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.95fr) !important;
  overflow-x: clip !important;
}

html body .modal-panel:has(.record-card-tabs) .record-tab-widgets table,
html body .modal-panel:has(.record-card-tabs) .widget-card table {
  width: max-content !important;
  min-width: 100% !important;
  max-width: none !important;
}

html body .modal-panel:has(.record-card-tabs) .modal-head,
html body .modal-panel:has(.record-card-tabs) .modal-footer {
  inline-size: 100% !important;
  max-inline-size: 100% !important;
  min-inline-size: 0 !important;
}
html body .admin-scenario-pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 8px 0;
  color: #64748b;
  font-weight: 700;
}

html body .admin-scenario-pagination > div {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

html body .admin-scenario-pagination strong {
  min-width: 72px;
  text-align: center;
  color: #0f172a;
}

/* Incentive detail rows must stay compact and must not inherit the global table chrome. */
html body #app .incentives-table tr.incentive-detail-row[hidden] {
  display: none !important;
}

html body #app .incentives-table tr.incentive-detail-row > td {
  height: auto !important;
  padding: 0 !important;
  background: #fbfdff !important;
  border: 0 !important;
  border-bottom: 1px solid #e6eef8 !important;
  box-shadow: none !important;
}

html body #app .incentives-table .incentive-detail-table {
  width: 100% !important;
  padding: 16px 20px 18px !important;
  border: 0 !important;
  border-top: 1px solid #e6eef8 !important;
  background: #fbfdff !important;
  box-shadow: none !important;
}

html body #app .incentives-table .incentive-detail-table .compact-section-head {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 12px !important;
  min-height: 0 !important;
  margin: 0 0 12px !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
}

html body #app .incentives-table .incentive-detail-table .compact-section-head h3 {
  margin: 0 !important;
  color: #1f2a44 !important;
  font-size: 16px !important;
  font-weight: 700 !important;
}

html body #app .incentives-table .incentive-detail-table .compact-section-head button {
  width: auto !important;
  min-width: 0 !important;
  height: 36px !important;
  min-height: 36px !important;
  padding: 0 16px !important;
  border-radius: 9px !important;
  white-space: nowrap !important;
}

html body #app .incentive-achievement-inline-grid {
  display: grid !important;
  grid-template-columns: 1.25fr 0.7fr 1.05fr 1.05fr 0.9fr !important;
  width: 100% !important;
  max-width: 100% !important;
  overflow: visible !important;
  border: 1px solid #e6eef8 !important;
  border-radius: 10px !important;
  background: #ffffff !important;
  box-shadow: none !important;
}

html body #app .incentive-achievement-header,
html body #app .incentive-achievement-row {
  display: contents !important;
}

html body #app .incentive-achievement-header > div,
html body #app .incentive-achievement-cell {
  position: relative !important;
  box-sizing: border-box !important;
  min-width: 0 !important;
  min-height: 46px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  padding: 8px 14px !important;
  border: 0 !important;
  border-bottom: 1px solid #edf2f7 !important;
  color: #1f2a44 !important;
  background: #ffffff !important;
  box-shadow: none !important;
}

html body #app .incentive-achievement-header > div {
  min-height: 40px !important;
  background: #f8fafc !important;
  color: #42526b !important;
  font-size: 13px !important;
  font-weight: 700 !important;
}

html body #app .incentive-achievement-row:last-of-type .incentive-achievement-cell {
  border-bottom: 0 !important;
}

html body #app .incentive-achievement-actions {
  gap: 8px !important;
  flex-wrap: wrap !important;
}

html body #app .incentive-achievement-cell .table-bubble-picker,
html body #app .incentive-achievement-cell .table-bubble-current {
  max-width: 100% !important;
}

html body #app .incentive-achievement-cell .table-bubble-picker {
  position: relative !important;
  z-index: 20 !important;
}

html body #app .incentive-achievement-cell .table-bubble-picker.open {
  z-index: 80 !important;
}

html body #app .incentive-achievement-cell .table-bubble-menu {
  z-index: 90 !important;
}

html body #app .incentive-achievement-empty {
  grid-column: 1 / -1 !important;
  min-height: 46px !important;
  display: flex !important;
  align-items: center !important;
  padding: 8px 14px !important;
  color: #64748b !important;
  background: #ffffff !important;
}

html body #app .record-bonus-list {
  margin-top: 16px !important;
  padding: 16px !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 12px !important;
  background: #ffffff !important;
}

html body #app .record-bonus-list h3 {
  margin: 0 0 12px !important;
  color: #1f2a44 !important;
  font-size: 16px !important;
  font-weight: 700 !important;
}

html body #app .record-bonus-table {
  margin: 0 !important;
  width: 100% !important;
}

html body #app .main .incentive-games-arena .prize-wheel-editor {
  width: 98px !important;
  height: 32px !important;
  display: grid !important;
  place-items: center !important;
  transform: translate(-50%, -50%) rotate(var(--angle)) translateY(-136px) !important;
}

html body #app .main .incentive-games-arena .prize-wheel-editor input,
html body #app .main .incentive-games-arena .prize-wheel-editor input[type="text"],
html body #app .main .incentive-games-arena .prize-wheel-editor input[type="number"] {
  width: 98px !important;
  min-width: 0 !important;
  max-width: 98px !important;
  height: 32px !important;
  min-height: 0 !important;
  max-height: 32px !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  outline: 0 !important;
  background: transparent !important;
  background-color: transparent !important;
  background-image: none !important;
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
  box-shadow: none !important;
  font-size: 19px !important;
  font-weight: 950 !important;
  line-height: 1 !important;
  text-align: center !important;
  text-shadow: 0 2px 7px rgba(15, 23, 42, 0.8), 0 0 2px rgba(255, 255, 255, 0.9) !important;
  appearance: none !important;
  -webkit-appearance: none !important;
  -moz-appearance: none !important;
}

html body #app .main .incentive-games-arena .prize-wheel-editor input:focus {
  background: transparent !important;
  background-color: transparent !important;
  border-radius: 0 !important;
  outline: 0 !important;
  text-shadow:
    0 0 8px rgba(255, 255, 255, 1),
    0 0 22px rgba(255, 214, 90, 0.95),
    0 2px 7px rgba(15, 23, 42, 0.8) !important;
}

html body #app .main .incentive-games-arena .prize-wheel-editor.is-winner input {
  background: transparent !important;
  background-color: transparent !important;
  color: #fff7c2 !important;
  -webkit-text-fill-color: #fff7c2 !important;
  box-shadow: none !important;
}

html body #app .main .incentive-games-arena .wheel-values-form,
html body #app .main .incentive-games-arena .wheel-last-result {
  display: none !important;
}

html body #app .main .incentive-games-arena .wheel-confetti {
  animation: wheel-confetti-layer-fade 3400ms ease-out forwards !important;
}

@keyframes wheel-confetti-layer-fade {
  0%, 78% { opacity: 1; visibility: visible; }
  100% { opacity: 0; visibility: hidden; }
}

/* Absolute last modal safety rule: every dialog starts below the fixed header and scrolls inside the viewport. */
html body:has(.enterprise-top-shell) .modal-backdrop,
html body:has(.enterprise-sidebar) .modal-backdrop {
  position: fixed !important;
  inset: 0 !important;
  display: grid !important;
  place-items: start center !important;
  align-items: start !important;
  justify-items: center !important;
  box-sizing: border-box !important;
  padding: calc(var(--app-header-bottom, 136px) + 24px) 28px max(64px, env(safe-area-inset-bottom)) !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
}

html body:has(.enterprise-top-shell) .modal-panel,
html body:has(.enterprise-sidebar) .modal-panel {
  max-height: calc(100dvh - var(--app-header-bottom, 136px) - 88px) !important;
  margin: 0 auto !important;
  overflow: hidden !important;
  transform: none !important;
}

html body:has(.enterprise-top-shell) .modal-panel > .modal-body,
html body:has(.enterprise-sidebar) .modal-panel > .modal-body {
  min-height: 0 !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
}

/* Child dialogs opened from inside record/donor cards must appear above their parent card. */
html body .modal-backdrop-nested,
html body:has(.enterprise-top-shell) .modal-backdrop-nested,
html body:has(.enterprise-sidebar) .modal-backdrop-nested {
  z-index: 2147483000 !important;
}

/* Alerts must always float above open forms, nested modals and dropdown portals. */
html body .system-alert-backdrop,
html body:has(.enterprise-top-shell) .system-alert-backdrop,
html body:has(.enterprise-sidebar) .system-alert-backdrop {
  position: fixed !important;
  inset: 0 !important;
  z-index: 2147483647 !important;
  display: grid !important;
  place-items: center !important;
  pointer-events: auto !important;
}

/* Prayer name forms need enough room for request text and the full date picker. */
html body .modal-panel:has([data-prayer-form]),
html body:has(.enterprise-top-shell) .modal-panel:has([data-prayer-form]),
html body:has(.enterprise-sidebar) .modal-panel:has([data-prayer-form]) {
  width: min(980px, calc(100vw - 72px)) !important;
  max-width: calc(100vw - 72px) !important;
  min-height: min(760px, calc(100dvh - var(--app-header-bottom, 136px) - 96px)) !important;
  max-height: calc(100dvh - var(--app-header-bottom, 136px) - 88px) !important;
}

html body .modal-panel:has([data-prayer-form]) > .modal-body,
html body .modal-panel:has([data-prayer-form]) > .modal-body > .modal-content {
  min-height: 0 !important;
}

html body .modal-panel:has([data-prayer-form]) .form-grid {
  grid-template-columns: repeat(2, minmax(280px, 1fr)) !important;
  align-items: start !important;
  gap: 20px 18px !important;
}

html body .modal-panel:has([data-prayer-form]) .prayer-request-field textarea {
  min-height: 96px !important;
  line-height: 1.55 !important;
  resize: vertical !important;
}

html body .modal-panel:has([data-prayer-form]) .date-picker-field {
  z-index: 30 !important;
}

html body .modal-panel:has([data-prayer-form]) .date-calendar {
  width: min(460px, calc(100vw - 120px)) !important;
  z-index: 2147483200 !important;
}

.prayer-workbench .week-tab-content {
  padding: 18px 0 0 !important;
}

.remit-underline-tabs {
  display: flex !important;
  align-items: flex-end !important;
  justify-content: flex-start !important;
  gap: 28px !important;
  min-height: 48px !important;
  margin: 4px 0 18px !important;
  padding: 0 4px !important;
  border: 0 !important;
  border-bottom: 1px solid #e2e8f0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

.remit-underline-tabs > .week-tab {
  position: relative !important;
  width: auto !important;
  min-width: 0 !important;
  min-height: 48px !important;
  margin: 0 !important;
  padding: 0 0 8px !important;
  border: 0 !important;
  border-bottom: 3px solid transparent !important;
  border-radius: 0 0 4px 4px !important;
  background: transparent !important;
  box-shadow: none !important;
  color: #64748b !important;
  font-size: 15px !important;
  font-weight: 400 !important;
}

.remit-underline-tabs > .week-tab.active {
  border-bottom-color: #0f3f4a !important;
  color: #0f3f4a !important;
  background: transparent !important;
  font-weight: 500 !important;
}

.prayer-categories-tab .section-head span {
  color: #64748b;
  font-size: 14px;
  font-weight: 600;
}

.prayer-category-rules-table th,
.prayer-category-rules-table td {
  white-space: nowrap;
}

.prayer-category-picker {
  border: 1px solid #dbe7ef;
  border-radius: 12px;
  background: #f8fbfd;
  padding: 14px;
}

.prayer-category-picker-title {
  margin-bottom: 10px;
  color: #334155;
  font-weight: 900;
}

.prayer-category-picker-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px;
}

.prayer-category-select-card {
  display: flex;
  align-items: flex-end;
  gap: 12px;
  flex-wrap: wrap;
}

.prayer-category-select-field {
  flex: 1 1 280px;
  margin: 0;
}

html body #app .prayer-workbench .prayer-main-tabs,
html body #app .modal-panel .prayer-workbench .prayer-main-tabs {
  display: flex !important;
  align-items: flex-end !important;
  justify-content: flex-start !important;
  gap: 28px !important;
  min-height: 48px !important;
  margin: 0 0 18px !important;
  padding: 0 4px !important;
  border: 0 !important;
  border-bottom: 1px solid #e2e8f0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

html body #app .prayer-workbench .prayer-main-tabs > .week-tab,
html body #app .modal-panel .prayer-workbench .prayer-main-tabs > .week-tab {
  position: relative !important;
  width: auto !important;
  min-width: 0 !important;
  min-height: 48px !important;
  margin: 0 !important;
  padding: 0 0 8px !important;
  border: 0 !important;
  border-bottom: 3px solid transparent !important;
  border-radius: 0 0 4px 4px !important;
  background: transparent !important;
  box-shadow: none !important;
  color: #64748b !important;
  font-size: 15px !important;
  font-weight: 400 !important;
}

html body #app .prayer-workbench .prayer-main-tabs > .week-tab.active,
html body #app .modal-panel .prayer-workbench .prayer-main-tabs > .week-tab.active {
  border-bottom-color: #0f3f4a !important;
  color: #0f3f4a !important;
  background: transparent !important;
  font-weight: 500 !important;
}

.prayer-category-choice {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 8px !important;
  min-height: 42px !important;
  padding: 8px 10px !important;
  border: 1px solid #dce8ef !important;
  border-radius: 999px !important;
  background: #ffffff !important;
  box-shadow: 0 6px 16px rgba(15, 63, 74, .06) !important;
  font-weight: 800 !important;
}

.prayer-category-choice input {
  width: 16px !important;
  height: 16px !important;
  margin: 0 !important;
}

.prayer-category-inline-add {
  margin-top: 12px !important;
}

.prayer-rule-help {
  border: 1px solid #dbe7ef;
  border-radius: 12px;
  background: #f7fbfd;
  padding: 12px 14px;
  color: #475569;
  line-height: 1.55;
}

.prayer-rule-help strong,
.prayer-rule-help span {
  display: block;
}

.prayer-rule-active-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 108px;
  font-weight: 800;
  color: #0f3f4a;
  cursor: pointer;
}

.prayer-rule-active-toggle input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.prayer-rule-active-toggle span {
  position: relative;
  width: 44px;
  height: 24px;
  border-radius: 999px;
  background: #e5ebf0;
  box-shadow: inset 0 0 0 1px #cbd5df;
  transition: background .18s ease, box-shadow .18s ease;
}

.prayer-rule-active-toggle span::after {
  content: "";
  position: absolute;
  top: 3px;
  right: 3px;
  width: 18px;
  height: 18px;
  border-radius: 999px;
  background: #ffffff;
  box-shadow: 0 2px 6px rgba(15, 23, 42, .18);
  transition: transform .18s ease;
}

.prayer-rule-active-toggle input:checked + span {
  background: #35b873;
  box-shadow: inset 0 0 0 1px #2ca565;
}

.prayer-rule-active-toggle input:checked + span::after {
  transform: translateX(-20px);
}

.prayer-rule-active-toggle input:not(:checked) ~ strong {
  color: #64748b;
}

html body #app .remit-page-buttons button.current,
html body #app .widget-page-footer .remit-page-buttons button.current,
html body:has(.enterprise-top-shell) #app .remit-page-buttons button.current,
html body:has(.enterprise-sidebar) #app .remit-page-buttons button.current {
  background: #2A8C52 !important;
  background-color: #2A8C52 !important;
  border-color: #2A8C52 !important;
  color: #ffffff !important;
  font-weight: 900 !important;
  box-shadow: 0 0 0 3px rgba(60, 184, 108, .18), 0 10px 22px rgba(60, 184, 108, .2) !important;
  transform: translateY(-1px);
}

/* Final table header guard: prevents the old dark records-table theme from
   flashing before the deferred table enhancers finish. */
html body #app main.view-records .records-screen-panel table.records-like-table > thead,
html body #app main.view-records .records-screen-panel table.records-like-table > thead > tr,
html body #app main.view-records .records-screen-panel table.records-like-table > thead > tr > th,
html body #app main.view-records .records-screen-panel table.data-grid > thead,
html body #app main.view-records .records-screen-panel table.data-grid > thead > tr,
html body #app main.view-records .records-screen-panel table.data-grid > thead > tr > th,
html body:has(.enterprise-top-shell) #app main.view-records .records-screen-panel table.records-like-table > thead,
html body:has(.enterprise-top-shell) #app main.view-records .records-screen-panel table.records-like-table > thead > tr,
html body:has(.enterprise-top-shell) #app main.view-records .records-screen-panel table.records-like-table > thead > tr > th,
html body:has(.enterprise-top-shell) #app main.view-records .records-screen-panel table.data-grid > thead,
html body:has(.enterprise-top-shell) #app main.view-records .records-screen-panel table.data-grid > thead > tr,
html body:has(.enterprise-top-shell) #app main.view-records .records-screen-panel table.data-grid > thead > tr > th,
html body #app table.records-like-table > thead,
html body #app table.records-like-table > thead > tr,
html body #app table.records-like-table > thead > tr > th,
html body #app table.data-grid > thead,
html body #app table.data-grid > thead > tr,
html body #app table.data-grid > thead > tr > th {
  background: #f8fafc !important;
  background-color: #f8fafc !important;
  color: #334155 !important;
  border-color: #e2e8f0 !important;
  border-bottom-color: #e2e8f0 !important;
  box-shadow: none !important;
}

html body #app main.view-records .records-screen-panel table.records-like-table > thead > tr > th.sortable-column::after,
html body #app main.view-records .records-screen-panel table.data-grid > thead > tr > th.sortable-column::after,
html body #app table.records-like-table > thead > tr > th.sortable-column::after,
html body #app table.data-grid > thead > tr > th.sortable-column::after {
  color: #64748b !important;
}

/* Reserve the table toolbar slot before deferred controls are hydrated, so
   tables do not jump when the search/filter/settings buttons are attached. */
html body #app .table-search-row.table-search-row-placeholder {
  min-height: 72px !important;
  margin-bottom: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

/* Login screen refresh - match the REMIT enterprise shell. */
html body .login-page {
  --login-deep: #113f49;
  --login-deeper: #0b2d35;
  --login-teal: #1f7b82;
  --login-green: #3CB86C;
  --login-ink: #172b36;
  --login-muted: #647789;
  min-height: 100dvh !important;
  display: grid !important;
  place-items: center !important;
  padding: clamp(24px, 4vw, 56px) !important;
  background: linear-gradient(180deg, var(--login-deep) 0 150px, #f4f7f8 150px 100%) !important;
  background-size: auto !important;
  direction: rtl !important;
}

html body .login-shell {
  width: min(1100px, 100%) !important;
  min-height: 600px !important;
  display: grid !important;
  grid-template-columns: minmax(0, 1.04fr) minmax(360px, 0.96fr) !important;
  overflow: hidden !important;
  border: 1px solid rgba(166, 190, 202, 0.5) !important;
  border-radius: 8px !important;
  background: #ffffff !important;
  box-shadow: 0 30px 90px rgba(17, 63, 73, 0.18) !important;
}

html body .login-brand-panel {
  position: relative !important;
  min-height: 100% !important;
  display: grid !important;
  align-content: space-between !important;
  gap: 28px !important;
  padding: 44px !important;
  overflow: hidden !important;
  border-left: 0 !important;
  background:
    linear-gradient(145deg, rgba(61, 186, 111, 0.2), transparent 42%),
    linear-gradient(180deg, #164e58 0%, var(--login-deeper) 100%) !important;
  color: #ffffff !important;
}

html body .login-brand-panel::before {
  content: "" !important;
  position: absolute !important;
  inset: auto 0 0 0 !important;
  height: 7px !important;
  background: linear-gradient(90deg, var(--login-green), #7bcf95, var(--login-teal)) !important;
  pointer-events: none !important;
}

html body .login-logo,
html body .login-brand-copy,
html body .login-side-metrics {
  position: relative !important;
  z-index: 1 !important;
}

html body .login-logo {
  width: min(430px, 100%) !important;
  height: auto !important;
  display: block !important;
  object-fit: contain !important;
  filter: drop-shadow(0 18px 28px rgba(0, 0, 0, 0.18)) !important;
}

html body .login-brand-copy {
  max-width: 520px !important;
  display: grid !important;
  gap: 12px !important;
}

html body .login-brand-copy strong {
  margin: 0 !important;
  color: #ffffff !important;
  font-size: clamp(30px, 3.2vw, 42px) !important;
  line-height: 1.18 !important;
  font-weight: 800 !important;
}

html body .login-brand-copy span {
  max-width: 460px !important;
  color: rgba(235, 247, 249, 0.88) !important;
  font-size: 16px !important;
  line-height: 1.9 !important;
}

html body .login-side-metrics {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 10px !important;
}

html body .login-side-metrics span {
  min-height: 86px !important;
  display: grid !important;
  gap: 7px !important;
  align-content: center !important;
  padding: 16px !important;
  border: 1px solid rgba(255, 255, 255, 0.16) !important;
  border-radius: 8px !important;
  background: rgba(255, 255, 255, 0.08) !important;
  box-shadow: none !important;
  backdrop-filter: blur(8px) !important;
}

html body .login-side-metrics strong {
  color: #ffffff !important;
  font-size: 25px !important;
  line-height: 1 !important;
  font-weight: 800 !important;
}

html body .login-side-metrics small {
  color: rgba(235, 247, 249, 0.78) !important;
  font-size: 12px !important;
  font-weight: 700 !important;
}

html body .login-panel {
  width: 100% !important;
  min-height: 100% !important;
  display: grid !important;
  align-content: center !important;
  gap: 22px !important;
  padding: 56px 50px !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: #ffffff !important;
  box-shadow: none !important;
}

html body .login-panel-head {
  display: grid !important;
  gap: 9px !important;
  justify-items: start !important;
}

html body .login-panel-logo {
  width: 150px !important;
  height: auto !important;
  display: none !important;
  object-fit: contain !important;
}

html body .login-panel h1 {
  margin: 0 !important;
  color: var(--login-ink) !important;
  font-size: 32px !important;
  line-height: 1.25 !important;
  font-weight: 800 !important;
}

html body .login-panel p {
  margin: 0 !important;
  color: var(--login-muted) !important;
  font-size: 15px !important;
  line-height: 1.7 !important;
}

html body .login-form {
  gap: 16px !important;
}

html body .login-form label {
  display: grid !important;
  gap: 8px !important;
  color: #344b5a !important;
  font-size: 13px !important;
  font-weight: 800 !important;
}

html body .login-form input {
  height: 50px !important;
  width: 100% !important;
  padding: 0 15px !important;
  border: 1px solid #d6e3ea !important;
  border-radius: 8px !important;
  background: #fbfdfe !important;
  color: var(--login-ink) !important;
  font-size: 15px !important;
  direction: ltr !important;
  text-align: left !important;
  box-shadow: 0 10px 22px rgba(19, 55, 67, 0.06) !important;
}

html body .login-form input:hover {
  border-color: #b9cbd4 !important;
}

html body .login-form input:focus {
  border-color: var(--login-teal) !important;
  outline: 3px solid rgba(31, 123, 130, 0.16) !important;
  box-shadow: 0 12px 26px rgba(31, 123, 130, 0.12) !important;
}

html body .login-form button.primary {
  height: 50px !important;
  margin-top: 4px !important;
  border: 1px solid var(--login-teal) !important;
  border-radius: 8px !important;
  background: var(--login-teal) !important;
  color: #ffffff !important;
  font-size: 15px !important;
  font-weight: 800 !important;
  box-shadow: 0 14px 28px rgba(31, 123, 130, 0.22) !important;
}

html body .login-form button.primary:hover,
html body .login-form button.primary:focus-visible {
  border-color: #16656b !important;
  background: #16656b !important;
  transform: translateY(-1px) !important;
}

html body .login-default-note {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 12px !important;
  padding: 12px 14px !important;
  border: 1px solid #dce8ee !important;
  border-radius: 8px !important;
  background: #f5faf8 !important;
  color: #526879 !important;
  font-size: 13px !important;
}

html body .login-default-note span {
  display: inline-grid !important;
  place-items: center !important;
  min-width: 46px !important;
  height: 26px !important;
  padding: 0 11px !important;
  border-radius: 999px !important;
  background: #def4e7 !important;
  color: #16834a !important;
  font-size: 12px !important;
  font-weight: 800 !important;
}

html body .login-default-note strong {
  direction: ltr !important;
  text-align: left !important;
  color: #243845 !important;
  font-family: var(--font-number) !important;
  font-size: 13px !important;
}

html body .compact-loading {
  width: min(430px, 100%) !important;
  min-height: 250px !important;
  grid-template-columns: 1fr !important;
}

html body .compact-loading .login-panel {
  min-height: 250px !important;
}

html body .compact-loading .login-panel-logo {
  display: block !important;
}

@media (max-width: 860px) {
  html body .login-page {
    padding: 18px !important;
    background: linear-gradient(180deg, var(--login-deep) 0 112px, #f4f7f8 112px 100%) !important;
  }

  html body .login-shell {
    min-height: auto !important;
    grid-template-columns: 1fr !important;
  }

  html body .login-brand-panel {
    min-height: auto !important;
    gap: 18px !important;
    padding: 28px 24px !important;
    border-bottom: 0 !important;
  }

  html body .login-logo {
    width: min(300px, 100%) !important;
  }

  html body .login-brand-copy strong {
    font-size: 26px !important;
  }

  html body .login-brand-copy span {
    font-size: 14px !important;
  }

  html body .login-side-metrics {
    display: none !important;
  }

  html body .login-panel {
    padding: 30px 24px 32px !important;
  }
}

@media (max-width: 520px) {
  html body .login-page {
    place-items: stretch !important;
    padding: 0 !important;
    background: #ffffff !important;
  }

  html body .login-shell {
    min-height: 100dvh !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
  }

  html body .login-brand-panel {
    padding: 24px 20px !important;
  }

  html body .login-panel {
    align-content: start !important;
    padding: 28px 20px 36px !important;
  }

  html body .login-panel h1 {
    font-size: 27px !important;
  }

  html body .login-default-note {
    display: grid !important;
    justify-items: start !important;
  }
}

html body .main.view-admin .super-admin-dashboard {
  display: grid !important;
  gap: 18px !important;
}

html body .main.view-admin .super-admin-dashboard .super-admin-hero {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 20px !important;
  padding: 28px 30px !important;
  margin: 0 !important;
  border: 1px solid rgba(71, 190, 126, 0.24) !important;
  border-radius: 10px !important;
  background: linear-gradient(135deg, #0f3e47 0%, #123f47 55%, #1e7b82 100%) !important;
  color: #ffffff !important;
  box-shadow: 0 18px 42px rgba(15, 62, 71, 0.18) !important;
}

html body .main.view-admin .super-admin-hero span,
html body .main.view-admin .super-admin-hero h2,
html body .main.view-admin .super-admin-hero p {
  color: #ffffff !important;
}

html body .main.view-admin .super-admin-hero span {
  display: inline-flex !important;
  padding: 5px 11px !important;
  border-radius: 999px !important;
  background: rgba(255, 255, 255, 0.14) !important;
  color: #d9fff0 !important;
  font-size: 12px !important;
  font-weight: 800 !important;
}

html body .main.view-admin .super-admin-hero h2 {
  margin: 10px 0 8px !important;
  font-size: 34px !important;
  line-height: 1.15 !important;
}

html body .main.view-admin .super-admin-hero p {
  margin: 0 !important;
  max-width: 720px !important;
  color: rgba(255, 255, 255, 0.82) !important;
}

html body .super-admin-hero-actions {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 10px !important;
  justify-content: flex-start !important;
}

html body .main.view-admin .super-admin-hero-actions .ghost {
  background: rgba(255, 255, 255, 0.96) !important;
  border-color: rgba(255, 255, 255, 0.7) !important;
  color: #143f48 !important;
}

html body .main.view-admin .super-admin-hero-actions .danger-btn {
  color: #b42318 !important;
}

html body .super-admin-flow {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 12px !important;
}

html body .super-admin-flow article {
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  padding: 16px !important;
  border: 1px solid #d7e8ee !important;
  border-radius: 10px !important;
  background: #ffffff !important;
  box-shadow: 0 8px 20px rgba(20, 63, 72, 0.06) !important;
}

html body .super-admin-flow article > strong {
  display: grid !important;
  place-items: center !important;
  width: 34px !important;
  height: 34px !important;
  border-radius: 999px !important;
  background: #def4e7 !important;
  color: #16834a !important;
  font-size: 17px !important;
}

html body .super-admin-flow b {
  display: block !important;
  color: #1c2d38 !important;
}

html body .super-admin-flow span {
  display: block !important;
  margin-top: 2px !important;
  color: #617383 !important;
  font-size: 13px !important;
}

html body .main.view-admin .super-admin-stats {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 12px !important;
}

html body .main.view-admin .super-admin-stats article {
  border-right: 4px solid #1f7b82 !important;
  border-radius: 10px !important;
}

html body .super-admin-table-wrap {
  width: 100% !important;
  overflow-x: auto !important;
}

html body .super-admin-table {
  width: 100% !important;
  min-width: 980px !important;
  border-collapse: collapse !important;
}

html body .super-admin-table th {
  background: #f4f7f9 !important;
  color: #233746 !important;
  font-weight: 800 !important;
}

html body .super-admin-table th,
html body .super-admin-table td {
  padding: 14px 12px !important;
  border-bottom: 1px solid #e1eaf0 !important;
  vertical-align: middle !important;
}

html body .tenant-name-cell,
html body .super-admin-table td small {
  display: grid !important;
  gap: 3px !important;
}

html body .tenant-name-cell small,
html body .super-admin-table td small {
  color: #6b7b88 !important;
  font-size: 12px !important;
}

html body .tenant-domain {
  direction: ltr !important;
  unicode-bidi: plaintext !important;
  font-weight: 800 !important;
  color: #0f4f58 !important;
}

html body .tenant-row-actions {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 8px !important;
}

html body .super-admin-empty {
  padding: 18px !important;
  text-align: center !important;
  color: #667785 !important;
}

html body .main.view-admin .tenant-form {
  gap: 18px !important;
}

html body .main.view-admin .tenant-form-section {
  display: grid !important;
  gap: 14px !important;
  padding: 16px !important;
  border: 1px solid #d9e5ee !important;
  border-radius: 8px !important;
  background: #fbfdfe !important;
}

html body .main.view-admin .tenant-form h3 {
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  color: #203040 !important;
  font-size: 18px !important;
}

html body .main.view-admin .tenant-form small,
html body .main.view-admin .tenant-form .muted {
  color: #6f7f8d !important;
  font-size: 13px !important;
  line-height: 1.5 !important;
}

html body .main.view-admin .tenant-subdomain-field {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto !important;
  align-items: center !important;
  overflow: hidden !important;
  border: 1px solid #d7e2eb !important;
  border-radius: 8px !important;
  background: #ffffff !important;
  box-shadow: 0 7px 20px rgba(31, 47, 61, 0.06) !important;
}

html body .main.view-admin .tenant-subdomain-field input {
  border: 0 !important;
  box-shadow: none !important;
  border-radius: 0 !important;
}

html body .main.view-admin .tenant-subdomain-field b {
  padding: 0 14px !important;
  color: #1f7b82 !important;
  direction: ltr !important;
  white-space: nowrap !important;
}

html body .main.view-admin .tenant-form-note {
  display: grid !important;
  gap: 6px !important;
  padding: 14px 16px !important;
  border: 1px solid #c8ead9 !important;
  border-radius: 8px !important;
  background: #eefaf4 !important;
  color: #203040 !important;
}

html body .main.view-admin .tenant-form-note strong {
  color: #087443 !important;
}

html body .main.view-admin .tenant-form-note span {
  color: #536473 !important;
  line-height: 1.55 !important;
}

html body .main.view-admin .super-admin-activity-panel {
  background: #fbfdfe !important;
}

html body .main.view-admin .super-admin-activity-panel .section-head {
  border-bottom: 0 !important;
}

html body .main.view-admin .super-admin-activity-panel .super-admin-table-wrap.hidden {
  display: none !important;
}

@media (max-width: 980px) {
  html body .main.view-admin .super-admin-dashboard .super-admin-hero,
  html body .super-admin-hero-actions {
    display: grid !important;
  }

  html body .super-admin-flow,
  html body .main.view-admin .super-admin-stats {
    grid-template-columns: 1fr !important;
  }
}
/* Prayer names table must stay inside the panel. Columns can be resized, but the table does not open horizontal scrolling. */
html body #app .prayer-workbench .subpanel:has(table[data-settings-title="שמות לתפילה"]),
html body #app .prayer-workbench .subpanel[data-table-settings-title="שמות לתפילה"] {
  overflow-x: hidden !important;
  max-width: 100% !important;
  min-width: 0 !important;
}

html body #app .prayer-workbench,
html body #app .prayer-workbench .subpanel,
html body #app .prayer-workbench .subpanel > .section-head,
html body #app .prayer-workbench .subpanel > table[data-settings-title="שמות לתפילה"] {
  box-sizing: border-box !important;
  max-width: 100% !important;
  min-width: 0 !important;
}

html body #app .prayer-workbench .subpanel > table[data-settings-title="שמות לתפילה"] {
  display: table !important;
  overflow: hidden !important;
}

html body #app table.prayer-names-table,
html body #app table[data-settings-title="שמות לתפילה"].contained-fit-table {
  width: 100% !important;
  min-width: 0 !important;
  max-width: 100% !important;
  table-layout: fixed !important;
}

html body #app table.prayer-names-table th,
html body #app table.prayer-names-table td,
html body #app table[data-settings-title="שמות לתפילה"].contained-fit-table th,
html body #app table[data-settings-title="שמות לתפילה"].contained-fit-table td {
  min-width: 0 !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

/* Permanent app tab style: every current and future tab strip should use this thin underline look, never boxed buttons. */
html body #app .remit-underline-tabs,
html body .modal-panel .remit-underline-tabs {
  display: flex !important;
  align-items: flex-end !important;
  justify-content: flex-start !important;
  gap: 28px !important;
  min-height: 48px !important;
  margin: 4px 0 18px !important;
  padding: 0 4px !important;
  border: 0 !important;
  border-bottom: 1px solid #e2e8f0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

html body #app .remit-underline-tabs > button.week-tab,
html body #app .remit-underline-tabs > .week-tab,
html body .modal-panel .remit-underline-tabs > button.week-tab,
html body .modal-panel .remit-underline-tabs > .week-tab {
  position: relative !important;
  width: auto !important;
  min-width: 0 !important;
  max-width: none !important;
  min-height: 48px !important;
  margin: 0 !important;
  padding: 0 0 8px !important;
  border: 0 !important;
  border-bottom: 3px solid transparent !important;
  border-radius: 0 0 8px 8px !important;
  background: transparent !important;
  box-shadow: none !important;
  color: #64748b !important;
  font-size: 15px !important;
  font-weight: 400 !important;
  line-height: 1.2 !important;
}

html body #app .remit-underline-tabs > button.week-tab:hover,
html body #app .remit-underline-tabs > button.week-tab:focus-visible,
html body #app .remit-underline-tabs > .week-tab:hover,
html body #app .remit-underline-tabs > .week-tab:focus-visible,
html body .modal-panel .remit-underline-tabs > button.week-tab:hover,
html body .modal-panel .remit-underline-tabs > button.week-tab:focus-visible,
html body .modal-panel .remit-underline-tabs > .week-tab:hover,
html body .modal-panel .remit-underline-tabs > .week-tab:focus-visible {
  background: transparent !important;
  box-shadow: none !important;
  color: #0f3f4a !important;
  font-weight: 500 !important;
}

/* Keep top module tabs visually light as well. */
html body header.enterprise-top-shell .enterprise-sub-row nav.enterprise-sub-tabs > button,
html body header.enterprise-top-shell .enterprise-sub-row nav.enterprise-sub-tabs > button.enterprise-sub-button,
html body header.enterprise-top-shell .enterprise-sub-row nav.enterprise-sub-tabs > button:not(.ghost):not(.icon-btn):not(.table-link):not(.calendar-day):not(.managed-select-button):not(.table-bubble-current),
html body header.enterprise-top-shell .enterprise-sub-row nav.enterprise-sub-tabs > button span {
  font-weight: 400 !important;
}

html body header.enterprise-top-shell .enterprise-sub-row nav.enterprise-sub-tabs > button.active,
html body header.enterprise-top-shell .enterprise-sub-row nav.enterprise-sub-tabs > button.enterprise-sub-button.active,
html body header.enterprise-top-shell .enterprise-sub-row nav.enterprise-sub-tabs > button.active span,
html body header.enterprise-top-shell .enterprise-sub-row nav.enterprise-sub-tabs > button.enterprise-sub-button.active span {
  font-weight: 500 !important;
}

html body #app option.gift-option-out-of-stock,
html body #app select option.gift-option-out-of-stock:disabled {
  color: #94a3b8 !important;
  background-color: #f1f5f9 !important;
}

html body #app tr.gift-catalog-out-of-stock td {
  color: #94a3b8 !important;
  background-color: #f8fafc !important;
}

html body #app .remit-underline-tabs > button.week-tab.active,
html body #app .remit-underline-tabs > .week-tab.active,
html body .modal-panel .remit-underline-tabs > button.week-tab.active,
html body .modal-panel .remit-underline-tabs > .week-tab.active {
  border-bottom-color: #0f3f4a !important;
  background: transparent !important;
  box-shadow: none !important;
  color: #0f3f4a !important;
  font-weight: 500 !important;
}



