/* ============================================================
   VIEWS STYLING
   ============================================================ */

/* ============================================================
   AUTHENTICATION SCREEN STYLES
   ============================================================ */
.auth-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 99999;
  background-color: var(--bg-app);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  box-sizing: border-box;
  overflow-y: auto;
}

.auth-backdrop-glow {
  position: absolute;
  top: 30%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 550px;
  height: 380px;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.16) 0%, rgba(99, 102, 241, 0.03) 60%, transparent 80%);
  pointer-events: none;
  filter: blur(50px);
}

.auth-container {
  width: 100%;
  max-width: 440px;
  position: relative;
  z-index: 10;
}

.auth-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  box-shadow: 0 20px 45px -15px rgba(0, 0, 0, 0.7), var(--shadow-glow);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.auth-card input:focus {
  border-color: var(--primary-500) !important;
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.25) !important;
}

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

/* SECTION HEADER */
.view-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  flex-wrap: wrap;
  gap: 16px;
}

.view-header-left {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.view-title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}

.view-subtitle {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.view-header-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* ============================================================
   1. DASHBOARD VIEW
   ============================================================ */
.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
  margin-bottom: 24px;
}

.metric-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 20px;
  position: relative;
  overflow: hidden;
  transition: transform var(--transition-fast), border-color var(--transition-fast);
}

.metric-card:hover {
  transform: translateY(-2px);
  border-color: var(--border-medium);
}

.metric-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.metric-label {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.metric-icon-box {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
}

.metric-value {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.1;
  margin-bottom: 8px;
}

.metric-footer {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  color: var(--text-secondary);
}

.metric-trend {
  display: inline-flex;
  align-items: center;
  font-weight: 600;
  gap: 2px;
}

.trend-up { color: #10b981; }
.trend-neutral { color: #818cf8; }

.dashboard-sections {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 20px;
}

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

.panel-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.panel-header {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.panel-title {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
}

.panel-body {
  padding: 20px;
}

/* Pipeline Status Distribution Bars */
.pipeline-bar-group {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.pipeline-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.pipeline-item-header {
  display: flex;
  justify-content: space-between;
  font-size: 0.82rem;
  font-weight: 500;
}

.pipeline-progress-track {
  width: 100%;
  height: 8px;
  background: var(--bg-surface-elevated);
  border-radius: var(--radius-pill);
  overflow: hidden;
}

.pipeline-progress-fill {
  height: 100%;
  border-radius: var(--radius-pill);
  transition: width 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Activity Feed */
.activity-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.activity-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.activity-icon-bubble {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--primary-400);
}

.activity-details {
  flex: 1;
}

.activity-title {
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--text-primary);
}

.activity-desc {
  font-size: 0.78rem;
  color: var(--text-secondary);
}

.activity-time {
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-top: 2px;
}

/* ============================================================
   2. WORKBOOKS VIEW
   ============================================================ */
.workbooks-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 20px;
}

.workbook-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 22px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  cursor: pointer;
  transition: all var(--transition-fast);
  position: relative;
  overflow: hidden;
}

.workbook-card:hover {
  transform: translateY(-2px);
  border-color: var(--primary-500);
  box-shadow: var(--shadow-md);
}

.workbook-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--card-color, #6366f1);
}

.wb-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 12px;
}

.wb-icon-circle {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: var(--bg-surface-elevated);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--card-color, #6366f1);
  border: 1px solid var(--border-subtle);
}

.wb-title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--text-primary);
}

.wb-description {
  font-size: 0.82rem;
  color: var(--text-secondary);
  margin-bottom: 18px;
  line-height: 1.4;
}

.wb-tags-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 18px;
}

.wb-tag {
  font-size: 0.72rem;
  padding: 2px 8px;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xs);
  color: var(--text-secondary);
}

.wb-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  border-top: 1px solid var(--border-subtle);
  font-size: 0.8rem;
  color: var(--text-muted);
}

.wb-stats {
  display: flex;
  gap: 14px;
}

/* ============================================================
   3. TABLES VIEW & SPREADSHEET ENGINE
   ============================================================ */
.spreadsheet-container {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  display: flex;
  flex-direction: column;
  height: calc(100vh - 170px);
  overflow: hidden;
}

.spreadsheet-toolbar {
  padding: 12px 16px;
  background: var(--table-header-bg);
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.toolbar-left, .toolbar-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.spreadsheet-search {
  position: relative;
  display: flex;
  align-items: center;
}

.spreadsheet-search input {
  padding: 6px 12px 6px 30px;
  font-size: 0.82rem;
  background: var(--bg-input);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-xs);
  color: var(--text-primary);
  width: 220px;
}

.spreadsheet-search svg {
  position: absolute;
  left: 9px;
  color: var(--text-muted);
}

.spreadsheet-viewport {
  flex: 1;
  overflow-x: auto;
  overflow-y: auto;
  position: relative;
  width: 100%;
}

.spreadsheet-table {
  width: max-content;
  min-width: 100%;
  border-collapse: collapse;
  font-size: 0.84rem;
  text-align: left;
}

.spreadsheet-table th {
  background: var(--table-header-bg);
  color: var(--text-secondary);
  font-weight: 600;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  padding: 10px 14px;
  border-bottom: 1px solid var(--border-medium);
  border-right: 1px solid var(--grid-line);
  position: sticky;
  top: 0;
  z-index: 10;
  white-space: nowrap;
  user-select: none;
}

.spreadsheet-table td {
  padding: 9px 14px;
  border-bottom: 1px solid var(--grid-line);
  border-right: 1px solid var(--grid-line);
  white-space: nowrap;
  color: var(--text-primary);
  transition: background var(--transition-fast);
}

/* EMAIL COLUMN & CELL STYLING - NEVER CLIP OR CUT OFF EMAIL TEXT */
.spreadsheet-table th.col-email,
.spreadsheet-table th[data-column-key="email"],
.spreadsheet-table td.cell-email,
.spreadsheet-table td[data-field="email"],
th.col-email,
td.cell-email {
  min-width: 260px !important;
  width: auto;
  white-space: nowrap;
  overflow: visible;
  text-overflow: clip;
}

.spreadsheet-table td.cell-email a,
.spreadsheet-table td[data-field="email"] a,
.spreadsheet-table td a[href^="mailto:"] {
  display: inline-block;
  white-space: nowrap;
  color: var(--primary-400);
  text-decoration: none;
  overflow: visible;
  word-break: normal;
}

/* Ensure the last columns are never visually clipped by the parent viewport */
.spreadsheet-table th:last-child,
.spreadsheet-table td:last-child {
  padding-right: 24px;
}

.spreadsheet-table tr:hover td {
  background: var(--bg-surface-hover);
}

.spreadsheet-table td.cell-editable:focus {
  outline: 2px solid var(--primary-500);
  background: var(--bg-surface-elevated);
}

.cell-star-rating {
  display: flex;
  align-items: center;
  gap: 4px;
  color: #f59e0b;
  font-weight: 600;
}

/* Workbook Context Bar */
.workbook-context-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 10px 16px;
  margin-bottom: 14px;
  gap: 12px;
  flex-wrap: wrap;
}

.wb-context-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.wb-back-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  color: var(--text-muted);
  text-decoration: none;
  background: var(--bg-surface);
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-medium);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.wb-back-btn:hover {
  color: var(--text-primary);
  border-color: var(--primary-500);
}

.wb-badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  padding: 5px 12px;
  border-radius: var(--radius-full);
}

.wb-badge-indicator {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
}

.wb-context-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.wb-select-dropdown {
  padding: 6px 12px;
  font-size: 0.82rem;
  font-weight: 500;
  background: var(--bg-input);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  cursor: pointer;
}

/* Table Tabs Bar */
.table-tabs-bar {
  display: flex;
  align-items: center;
  gap: 4px;
  background: var(--bg-app);
  padding: 8px 12px 0 12px;
  border-bottom: 1px solid var(--border-subtle);
  overflow-x: auto;
}

.table-tab-btn {
  padding: 8px 14px;
  background: transparent;
  border: 1px solid transparent;
  border-bottom: none;
  border-radius: var(--radius-sm) var(--radius-sm) 0 0;
  font-size: 0.82rem;
  color: var(--text-secondary);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  position: relative;
  transition: all var(--transition-fast);
  white-space: nowrap;
}

.table-tab-btn:hover {
  background: var(--bg-surface-hover);
  color: var(--text-primary);
}

.table-tab-btn.active {
  background: var(--bg-surface);
  border-color: var(--border-subtle);
  color: var(--primary-400);
  font-weight: 600;
}

.tab-badge {
  font-size: 0.68rem;
  padding: 1px 6px;
  border-radius: var(--radius-full);
  background: var(--bg-surface-elevated);
  color: var(--text-muted);
}

.table-tab-btn.active .tab-badge {
  background: rgba(99, 102, 241, 0.15);
  color: var(--primary-400);
}

.tab-close-btn {
  opacity: 0;
  padding: 2px;
  border-radius: 4px;
  border: none;
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-left: 2px;
  transition: all var(--transition-fast);
}

.table-tab-btn:hover .tab-close-btn {
  opacity: 1;
}

.tab-close-btn:hover {
  background: rgba(239, 68, 68, 0.15);
  color: #ef4444;
}

.table-tab-add-btn {
  padding: 6px 12px;
  background: transparent;
  border: 1px dashed var(--border-medium);
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  font-size: 0.78rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-left: 6px;
  transition: all var(--transition-fast);
  white-space: nowrap;
}

.table-tab-add-btn:hover {
  border-color: var(--primary-500);
  color: var(--primary-400);
  background: rgba(99, 102, 241, 0.08);
}

/* Dynamic Column Headers */
.th-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
}

.th-label-group {
  display: flex;
  align-items: center;
  gap: 6px;
  overflow: hidden;
  text-overflow: ellipsis;
}

.col-type-tag {
  font-size: 0.65rem;
  padding: 2px 4px;
  border-radius: 3px;
  background: var(--bg-surface-elevated);
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-weight: 600;
  text-transform: uppercase;
}

.col-actions-wrap {
  position: relative;
  display: inline-flex;
}

.col-menu-trigger {
  opacity: 0.3;
  padding: 2px 4px;
  border: none;
  background: transparent;
  color: var(--text-secondary);
  cursor: pointer;
  border-radius: 3px;
  transition: opacity var(--transition-fast), background var(--transition-fast);
}

.spreadsheet-table th:hover .col-menu-trigger {
  opacity: 1;
}

.col-menu-trigger:hover {
  background: var(--bg-surface-elevated);
  color: var(--text-primary);
}

.col-dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  right: 0;
  margin-top: 4px;
  background: var(--bg-surface);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lg);
  z-index: 100;
  min-width: 140px;
  padding: 4px;
}

.col-dropdown-menu.show {
  display: block;
}

.col-dropdown-item {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  font-size: 0.76rem;
  color: var(--text-primary);
  background: transparent;
  border: none;
  border-radius: var(--radius-xs);
  cursor: pointer;
  text-align: left;
}

.col-dropdown-item:hover {
  background: var(--bg-surface-hover);
}

.col-dropdown-item.danger {
  color: #ef4444;
}

.col-dropdown-item.danger:hover {
  background: rgba(239, 68, 68, 0.1);
}

/* Header Add Column button cell */
.th-add-col-cell {
  width: 60px;
  min-width: 60px;
  text-align: center;
  padding: 0 !important;
}

.btn-add-col-header {
  width: 100%;
  height: 100%;
  padding: 10px 14px;
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  font-size: 0.78rem;
  font-weight: 600;
  transition: all var(--transition-fast);
}

.btn-add-col-header:hover {
  color: var(--primary-400);
  background: rgba(99, 102, 241, 0.1);
}

/* Quick Add Row in Spreadsheet */
.spreadsheet-quick-row td {
  background: rgba(99, 102, 241, 0.03);
  border-bottom: 2px dashed var(--border-medium);
  padding: 8px 12px;
}

.quick-row-input {
  width: 100%;
  background: transparent;
  border: 1px solid transparent;
  padding: 4px 8px;
  font-size: 0.82rem;
  color: var(--text-primary);
  border-radius: var(--radius-xs);
}

.quick-row-input:focus {
  outline: none;
  background: var(--bg-surface);
  border-color: var(--primary-500);
}

/* Status Select in Cell */
.cell-status-select {
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xs);
  padding: 3px 8px;
  font-size: 0.76rem;
  font-weight: 600;
  cursor: pointer;
  color: var(--text-primary);
}

.cell-status-select:focus {
  outline: 2px solid var(--primary-500);
}

/* ============================================================
   4. LEAD MANAGEMENT (SPREADSHEET + KANBAN DUAL VIEW)
   ============================================================ */
.view-mode-toggle {
  display: inline-flex;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 3px;
  gap: 2px;
}

.toggle-mode-btn {
  background: transparent;
  border: none;
  padding: 5px 10px;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--text-secondary);
  border-radius: var(--radius-xs);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
}

.toggle-mode-btn.active {
  background: var(--primary-600);
  color: #ffffff;
}

/* Kanban Board Layout */
.kanban-board-container {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  padding-bottom: 20px;
  height: calc(100vh - 180px);
}

.kanban-column {
  flex: 0 0 290px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  display: flex;
  flex-direction: column;
  max-height: 100%;
}

.kanban-col-header {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.kanban-col-title {
  font-size: 0.85rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
}

.kanban-cards-list {
  flex: 1;
  overflow-y: auto;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.kanban-card {
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 14px;
  cursor: pointer;
  transition: all var(--transition-fast);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.kanban-card:hover {
  border-color: var(--primary-500);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.kanban-card-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.kanban-card-company {
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--text-primary);
}

.kanban-card-meta {
  font-size: 0.78rem;
  color: var(--text-secondary);
}

.kanban-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 6px;
  padding-top: 8px;
  border-top: 1px solid var(--border-subtle);
}

/* ============================================================
   5. USA ORGANIZATION SEARCH (LEAD GENERATOR)
   ============================================================ */
.search-builder-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 24px;
  margin-bottom: 24px;
}

.search-input-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)) auto;
  gap: 14px;
  align-items: end;
}

@media (max-width: 900px) {
  .search-input-grid {
    grid-template-columns: 1fr;
  }
}

.preview-leads-panel {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
}

@keyframes moveGradient {
  0% { background-position: 0% 50%; }
  100% { background-position: 200% 50%; }
}

/* ============================================================
   6. AI ENRICHMENT SECTION
   ============================================================ */
.enrichment-recipes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.recipe-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 18px;
  cursor: pointer;
  transition: all var(--transition-fast);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.recipe-card:hover, .recipe-card.selected {
  border-color: var(--primary-500);
  background: var(--bg-surface-elevated);
}

.recipe-card.selected {
  box-shadow: 0 0 0 2px var(--primary-500);
}

.recipe-badge {
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--primary-400);
  text-transform: uppercase;
}

.recipe-title {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-primary);
}

.recipe-desc {
  font-size: 0.78rem;
  color: var(--text-secondary);
}

/* ============================================================
   7. SETTINGS SECTION
   ============================================================ */
.settings-container {
  display: flex;
  flex-direction: column;
  gap: 24px;
  max-width: 860px;
}

.settings-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.settings-card-header {
  padding: 18px 24px;
  border-bottom: 1px solid var(--border-subtle);
}

.settings-card-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

/* ============================================================
   GLOBAL CURSOR BEHAVIOR HIERARCHY
   ============================================================ */

/* 1. All non-editable content by default: normal arrow cursor & no text caret */
*,
*::before,
*::after {
  cursor: default;
  caret-color: transparent;
}

body,
div,
span,
p,
label,
h1,
h2,
h3,
h4,
h5,
h6,
td,
th,
section,
article,
header,
footer,
aside,
nav,
main,
table,
tr,
thead,
tbody,
ul,
ol,
li,
dl,
dt,
dd,
blockquote,
figcaption,
strong,
b,
em,
i,
small,
code,
pre,
.card,
.badge,
.stat-card,
.metric-card,
.sidebar-brand,
.brand-title,
.brand-badge,
.nav-section-label,
.modal,
.modal-header,
.modal-body,
.modal-footer {
  cursor: default;
  caret-color: transparent;
}

/* 2. Interactive & Clickable elements: pointer cursor */
button,
button *,
a,
a *,
select,
select *,
summary,
summary *,
[role="button"],
[role="button"] *,
[role="tab"],
[role="tab"] *,
[role="menuitem"],
[role="menuitem"] *,
[role="switch"],
[role="switch"] *,
.btn,
.btn *,
.icon-button,
.icon-button *,
.nav-item,
.nav-item *,
.clickable,
.clickable *,
[onclick],
[onclick] *,
.workbook-card,
.workbook-card *,
.recipe-card,
.recipe-card *,
.kanban-card,
.kanban-card *,
.wb-back-btn,
.wb-back-btn *,
.table-tab-btn,
.table-tab-btn *,
.table-tab-add-btn,
.table-tab-add-btn *,
.tab-close-btn,
.tab-close-btn *,
.col-menu-trigger,
.col-menu-trigger *,
.col-dropdown-item,
.col-dropdown-item *,
.btn-add-col-header,
.btn-add-col-header *,
.cell-status-select,
.toggle-mode-btn,
.toggle-mode-btn *,
.org-name-click,
.org-name-click *,
.history-org-name-click,
.history-org-name-click *,
.campaign-history-badge,
.campaign-history-badge *,
.org-type-suggestion-row,
.org-type-suggestion-row *,
.export-menu-item,
.export-menu-item * {
  cursor: pointer;
}

input[type="checkbox"],
input[type="radio"],
input[type="button"],
input[type="submit"],
input[type="reset"],
input[type="file"],
input[type="range"],
input[type="color"] {
  cursor: pointer;
}

/* 3. Actual editable fields ONLY: text/caret cursor */
input:not([type="button"]):not([type="submit"]):not([type="reset"]):not([type="checkbox"]):not([type="radio"]):not([type="file"]):not([type="range"]):not([type="color"]):not([type="image"]),
textarea,
[contenteditable="true"] {
  cursor: text;
  caret-color: auto;
}

/* Protect links, buttons, and badges inside editable table cells from inheriting text cursor */
[contenteditable="true"] a,
[contenteditable="true"] a *,
.cell-editable a,
.cell-editable a * {
  cursor: pointer !important;
}

[contenteditable="true"] .wb-tag,
[contenteditable="true"] .badge,
[contenteditable="true"] .cell-star-rating,
.cell-editable .wb-tag,
.cell-editable .badge,
.cell-editable .cell-star-rating {
  cursor: default !important;
}

/* 4. Disabled elements: not-allowed cursor */
:disabled,
:disabled *,
[disabled],
[disabled] *,
.disabled,
.disabled * {
  cursor: not-allowed;
}

