
/* Migrated from global-design-system.css: client flat theme shared across authenticated pages. */
/* Dashboard clientes: vista plana y consistente para todos los tenants. */
body.dashboard-client-flat-theme {
  background: #f7f9fc !important;
}

body.dashboard-client-flat-theme::before,
body.dashboard-client-flat-theme::after {
  display: none !important;
}

body.dashboard-client-flat-theme .main,
body.dashboard-client-flat-theme .content-grid,
body.dashboard-client-flat-theme .dashboard-page-grid,
body.dashboard-client-flat-theme .dashboard-workspace {
  background: transparent !important;
}

body.dashboard-client-flat-theme .dashboard-workspace:not(.dashboard-workspace--global) {
  row-gap: 0 !important;
  column-gap: 18px !important;
}

body.dashboard-client-flat-theme .dashboard-workspace:not(.dashboard-workspace--global) :is(
  .dashboard-task-panel,
  .dashboard-ai-brief-panel,
  .dashboard-pipeline-panel,
  .dashboard-agenda-card-panel
) {
  padding-top: 18px !important;
  padding-bottom: 18px !important;
}

body.dashboard-client-flat-theme .dashboard-workspace:not(.dashboard-workspace--global) .dashboard-pipeline-agenda-grid {
  margin-top: 0 !important;
}

body.dashboard-client-flat-theme #sales-pipeline.pipeline-panel-clean,
body[data-company-theme] > .shell #sales-pipeline.pipeline-panel-clean {
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

body.dashboard-client-flat-theme #sales-pipeline.pipeline-panel-clean::before,
body.dashboard-client-flat-theme #sales-pipeline.pipeline-panel-clean::after,
body[data-company-theme] > .shell #sales-pipeline.pipeline-panel-clean::before,
body[data-company-theme] > .shell #sales-pipeline.pipeline-panel-clean::after {
  display: none !important;
  content: none !important;
  background: transparent !important;
  box-shadow: none !important;
}

body.dashboard-client-flat-theme #sales-pipeline .pipeline-board,
body[data-company-theme] > .shell #sales-pipeline .pipeline-board {
  grid-template-columns: repeat(6, minmax(176px, 1fr)) !important;
  min-width: 1120px !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  margin-bottom: 0 !important;
}

body.dashboard-client-flat-theme #sales-pipeline .pipeline-board-scroll,
body[data-company-theme] > .shell #sales-pipeline .pipeline-board-scroll {
  padding-bottom: 0 !important;
}

body.dashboard-client-flat-theme #sales-pipeline + .panel,
body[data-company-theme] > .shell #sales-pipeline + .panel {
  margin-top: 6px !important;
  padding-top: 14px !important;
}

body.dashboard-client-flat-theme .pipeline-data-strip,
body[data-company-theme] > .shell .pipeline-data-strip {
  display: grid !important;
  gap: 12px !important;
  margin: 0 0 14px !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

body.dashboard-client-flat-theme .pipeline-data-strip-head,
body[data-company-theme] > .shell .pipeline-data-strip-head {
  display: flex !important;
  align-items: flex-start !important;
  justify-content: space-between !important;
  gap: 16px !important;
  flex-wrap: wrap !important;
}

body.dashboard-client-flat-theme .pipeline-title-block,
body[data-company-theme] > .shell .pipeline-title-block {
  display: flex !important;
  align-items: flex-start !important;
  flex: 1 1 520px !important;
  gap: 14px !important;
  min-width: 0 !important;
}

body.dashboard-client-flat-theme .pipeline-title-icon,
body[data-company-theme] > .shell .pipeline-title-icon {
  width: 50px !important;
  height: 50px !important;
  min-width: 50px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  border-radius: 16px !important;
  color: #2563eb !important;
  background: rgba(37, 99, 235, 0.08) !important;
  box-shadow: 0 12px 24px rgba(37, 99, 235, 0.12) !important;
}

body.dashboard-client-flat-theme .pipeline-title-icon svg,
body[data-company-theme] > .shell .pipeline-title-icon svg {
  width: 28px !important;
  height: 28px !important;
}

body.dashboard-client-flat-theme .pipeline-data-strip-head h2,
body[data-company-theme] > .shell .pipeline-data-strip-head h2 {
  margin: 0 !important;
  color: #0f172a !important;
  font-size: clamp(28px, 3vw, 42px) !important;
  line-height: 1.1 !important;
  letter-spacing: 0 !important;
}

body.dashboard-client-flat-theme .pipeline-data-strip-head p,
body[data-company-theme] > .shell .pipeline-data-strip-head p {
  margin: 6px 0 0 !important;
  color: #64748b !important;
  font-size: 14px !important;
  font-weight: 700 !important;
}

body.dashboard-client-flat-theme .pipeline-title-actions,
body[data-company-theme] > .shell .pipeline-title-actions {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-end !important;
  gap: 10px !important;
  flex-wrap: wrap !important;
  margin-top: 4px !important;
}

body.dashboard-client-flat-theme .pipeline-top-stage,
body[data-company-theme] > .shell .pipeline-top-stage {
  min-height: 42px !important;
  padding: 0 14px !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 9px !important;
  border: 1px solid rgba(124, 58, 237, 0.2) !important;
  border-radius: 14px !important;
  color: #64748b !important;
  background: rgba(124, 58, 237, 0.04) !important;
  font-size: 12px !important;
  font-weight: 850 !important;
  white-space: nowrap !important;
}

body.dashboard-client-flat-theme .pipeline-top-stage svg,
body[data-company-theme] > .shell .pipeline-top-stage svg {
  width: 18px !important;
  height: 18px !important;
  color: #7c3aed !important;
}

body.dashboard-client-flat-theme .pipeline-top-stage strong,
body[data-company-theme] > .shell .pipeline-top-stage strong {
  color: #7c3aed !important;
  font-weight: 900 !important;
}

body.dashboard-client-flat-theme .pipeline-add-button,
body[data-company-theme] > .shell .pipeline-add-button {
  min-height: 42px !important;
  padding: 0 16px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  border: 0 !important;
  border-radius: 14px !important;
  color: #ffffff !important;
  background: linear-gradient(135deg, #2563eb, #7c3aed) !important;
  box-shadow: 0 14px 28px rgba(37, 99, 235, 0.18) !important;
  font-size: 13px !important;
  font-weight: 900 !important;
  cursor: pointer !important;
}

body.dashboard-client-flat-theme .pipeline-add-button span,
body[data-company-theme] > .shell .pipeline-add-button span {
  font-size: 18px !important;
  line-height: 1 !important;
}

body.dashboard-client-flat-theme .pipeline-data-card-grid,
body[data-company-theme] > .shell .pipeline-data-card-grid {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 10px !important;
}

body.dashboard-client-flat-theme .pipeline-data-card,
body[data-company-theme] > .shell .pipeline-data-card {
  --pipeline-data-color: #2563eb;
  display: grid !important;
  grid-template-columns: 48px minmax(0, 1fr) !important;
  align-items: center !important;
  gap: 14px !important;
  min-height: 112px !important;
  padding: 20px !important;
  border: 1px solid rgba(148, 163, 184, 0.2) !important;
  border-radius: 18px !important;
  background: transparent !important;
  box-shadow: none !important;
  cursor: pointer !important;
  overflow: hidden !important;
  position: relative !important;
  text-align: left !important;
  transition: border-color 0.18s ease, transform 0.18s ease, background 0.18s ease !important;
}

body.dashboard-client-flat-theme .pipeline-data-card:hover,
body.dashboard-client-flat-theme .pipeline-data-card.is-active,
body[data-company-theme] > .shell .pipeline-data-card:hover,
body[data-company-theme] > .shell .pipeline-data-card.is-active {
  border-color: color-mix(in srgb, var(--pipeline-data-color) 35%, rgba(148, 163, 184, 0.2)) !important;
  background: color-mix(in srgb, var(--pipeline-data-color) 5%, transparent) !important;
  transform: translateY(-1px) !important;
}

body.dashboard-client-flat-theme .pipeline-data-card.is-purple,
body[data-company-theme] > .shell .pipeline-data-card.is-purple {
  --pipeline-data-color: #7c3aed;
}

body.dashboard-client-flat-theme .pipeline-data-card.is-orange,
body[data-company-theme] > .shell .pipeline-data-card.is-orange {
  --pipeline-data-color: #f97316;
}

body.dashboard-client-flat-theme .pipeline-data-card.is-green,
body[data-company-theme] > .shell .pipeline-data-card.is-green {
  --pipeline-data-color: #16a34a;
}

body.dashboard-client-flat-theme .pipeline-data-icon,
body[data-company-theme] > .shell .pipeline-data-icon {
  width: 48px !important;
  height: 48px !important;
  min-width: 48px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  border-radius: 17px !important;
  color: var(--pipeline-data-color) !important;
  background: color-mix(in srgb, var(--pipeline-data-color) 12%, transparent) !important;
}

body.dashboard-client-flat-theme .pipeline-data-icon svg,
body[data-company-theme] > .shell .pipeline-data-icon svg {
  width: 26px !important;
  height: 26px !important;
}

body.dashboard-client-flat-theme .pipeline-data-copy,
body[data-company-theme] > .shell .pipeline-data-copy {
  display: grid !important;
  gap: 6px !important;
  min-width: 0 !important;
  padding-right: 72px !important;
}

body.dashboard-client-flat-theme .pipeline-data-card small,
body[data-company-theme] > .shell .pipeline-data-card small {
  overflow: hidden !important;
  color: #64748b !important;
  font-size: 12px !important;
  font-weight: 900 !important;
  letter-spacing: 0 !important;
  text-overflow: ellipsis !important;
  text-transform: uppercase !important;
  white-space: nowrap !important;
}

body.dashboard-client-flat-theme .pipeline-data-card strong,
body[data-company-theme] > .shell .pipeline-data-card strong {
  color: #0f172a !important;
  font-size: 32px !important;
  line-height: 1 !important;
  font-weight: 900 !important;
}

body.dashboard-client-flat-theme .pipeline-data-card em,
body[data-company-theme] > .shell .pipeline-data-card em {
  overflow: hidden !important;
  color: #64748b !important;
  font-size: 12px !important;
  font-style: normal !important;
  font-weight: 700 !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

body.dashboard-client-flat-theme .pipeline-mini-chart,
body[data-company-theme] > .shell .pipeline-mini-chart {
  width: 76px !important;
  max-width: 100% !important;
  position: absolute !important;
  right: 18px !important;
  bottom: 20px !important;
  color: var(--pipeline-data-color) !important;
  opacity: 0.92 !important;
  overflow: visible !important;
}

body.dashboard-client-flat-theme .pipeline-mini-chart-path,
body[data-company-theme] > .shell .pipeline-mini-chart-path {
  stroke-dasharray: 160 !important;
  stroke-dashoffset: 0 !important;
  transition: stroke-dashoffset 0.28s ease, stroke-width 0.18s ease !important;
}

body.dashboard-client-flat-theme .pipeline-mini-chart circle,
body[data-company-theme] > .shell .pipeline-mini-chart circle {
  fill: #ffffff !important;
  stroke: currentColor !important;
  stroke-width: 2 !important;
  opacity: 0 !important;
  transform-origin: center !important;
  transition: opacity 0.18s ease, r 0.18s ease !important;
}

body.dashboard-client-flat-theme .pipeline-data-card:hover .pipeline-mini-chart-path,
body.dashboard-client-flat-theme .pipeline-data-card.is-active .pipeline-mini-chart-path,
body[data-company-theme] > .shell .pipeline-data-card:hover .pipeline-mini-chart-path,
body[data-company-theme] > .shell .pipeline-data-card.is-active .pipeline-mini-chart-path {
  stroke-width: 4 !important;
}

body.dashboard-client-flat-theme .pipeline-data-card:hover .pipeline-mini-chart circle,
body.dashboard-client-flat-theme .pipeline-data-card.is-active .pipeline-mini-chart circle,
body[data-company-theme] > .shell .pipeline-data-card:hover .pipeline-mini-chart circle,
body[data-company-theme] > .shell .pipeline-data-card.is-active .pipeline-mini-chart circle {
  opacity: 1 !important;
}

body.dashboard-client-flat-theme .pipeline-chart-tooltip,
body[data-company-theme] > .shell .pipeline-chart-tooltip {
  position: absolute !important;
  right: 14px !important;
  top: 12px !important;
  max-width: 180px !important;
  padding: 6px 8px !important;
  border-radius: 999px !important;
  color: #ffffff !important;
  background: var(--pipeline-data-color) !important;
  box-shadow: 0 14px 30px color-mix(in srgb, var(--pipeline-data-color) 20%, transparent) !important;
  font-size: 10px !important;
  font-weight: 850 !important;
  line-height: 1.15 !important;
  opacity: 0 !important;
  pointer-events: none !important;
  text-align: center !important;
  transform: translateY(-4px) !important;
  transition: opacity 0.18s ease, transform 0.18s ease !important;
  white-space: nowrap !important;
}

body.dashboard-client-flat-theme .pipeline-data-card:hover .pipeline-chart-tooltip,
body.dashboard-client-flat-theme .pipeline-data-card.is-active .pipeline-chart-tooltip,
body[data-company-theme] > .shell .pipeline-data-card:hover .pipeline-chart-tooltip,
body[data-company-theme] > .shell .pipeline-data-card.is-active .pipeline-chart-tooltip {
  opacity: 1 !important;
  transform: translateY(0) !important;
}

body.dashboard-client-flat-theme #sales-pipeline .pipeline-lane,
body[data-company-theme] > .shell #sales-pipeline .pipeline-lane {
  --lane-color: #2563eb;
  border-radius: 16px !important;
  border-color: color-mix(in srgb, var(--lane-color) 22%, rgba(148, 163, 184, 0.2)) !important;
}

body.dashboard-client-flat-theme #sales-pipeline .pipeline-lane[data-lane="action_required"],
body[data-company-theme] > .shell #sales-pipeline .pipeline-lane[data-lane="action_required"] {
  --lane-color: #7c3aed;
}

body.dashboard-client-flat-theme #sales-pipeline .pipeline-lane[data-lane="hot"],
body[data-company-theme] > .shell #sales-pipeline .pipeline-lane[data-lane="hot"] {
  --lane-color: #f97316;
}

body.dashboard-client-flat-theme #sales-pipeline .pipeline-lane[data-lane="won"],
body[data-company-theme] > .shell #sales-pipeline .pipeline-lane[data-lane="won"] {
  --lane-color: #16a34a;
}

body.dashboard-client-flat-theme #sales-pipeline .pipeline-lane[data-lane="cold"],
body[data-company-theme] > .shell #sales-pipeline .pipeline-lane[data-lane="cold"] {
  --lane-color: #0ea5e9;
}

body.dashboard-client-flat-theme #sales-pipeline .pipeline-lane[data-lane="lost"],
body[data-company-theme] > .shell #sales-pipeline .pipeline-lane[data-lane="lost"] {
  --lane-color: #64748b;
}

body.dashboard-client-flat-theme #sales-pipeline .pipeline-lane::before,
body[data-company-theme] > .shell #sales-pipeline .pipeline-lane::before {
  background: var(--lane-color) !important;
}

body.dashboard-client-flat-theme #sales-pipeline .pipeline-lane.is-dimmed,
body[data-company-theme] > .shell #sales-pipeline .pipeline-lane.is-dimmed {
  opacity: 0.34 !important;
  filter: grayscale(0.45) !important;
}

body.dashboard-client-flat-theme #sales-pipeline .pipeline-lane.is-focused,
body[data-company-theme] > .shell #sales-pipeline .pipeline-lane.is-focused {
  border-color: color-mix(in srgb, var(--lane-color) 42%, rgba(148, 163, 184, 0.24)) !important;
  background: color-mix(in srgb, var(--lane-color) 5%, transparent) !important;
}

body.dashboard-client-flat-theme .lead-table tbody tr.pipeline-filter-hidden,
body[data-company-theme] > .shell .lead-table tbody tr.pipeline-filter-hidden {
  display: none !important;
}

body.dashboard-client-flat-theme #sales-pipeline .pipeline-lane-header strong,
body.dashboard-client-flat-theme #sales-pipeline .pipeline-lane-header span,
body[data-company-theme] > .shell #sales-pipeline .pipeline-lane-header strong,
body[data-company-theme] > .shell #sales-pipeline .pipeline-lane-header span {
  color: var(--lane-color) !important;
}

body.dashboard-client-flat-theme #sales-pipeline .pipeline-lane-header span,
body[data-company-theme] > .shell #sales-pipeline .pipeline-lane-header span {
  background: color-mix(in srgb, var(--lane-color) 12%, transparent) !important;
  border-color: color-mix(in srgb, var(--lane-color) 18%, transparent) !important;
}

body.dashboard-client-flat-theme #sales-pipeline .pipeline-ticket,
body[data-company-theme] > .shell #sales-pipeline .pipeline-ticket {
  display: grid !important;
  grid-template-columns: 38px minmax(0, 1fr) !important;
  align-items: center !important;
  gap: 10px !important;
  min-height: 58px !important;
  padding: 10px !important;
  background: transparent !important;
  box-shadow: none !important;
  width: 100% !important;
}

body.dashboard-client-flat-theme #sales-pipeline .pipeline-ticket-avatar,
body[data-company-theme] > .shell #sales-pipeline .pipeline-ticket-avatar {
  width: 38px !important;
  height: 38px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  border-radius: 999px !important;
  color: #2563eb !important;
  background: rgba(37, 99, 235, 0.12) !important;
  font-size: 12px !important;
  font-weight: 900 !important;
}

body.dashboard-client-flat-theme #sales-pipeline .pipeline-ticket:nth-child(2n) .pipeline-ticket-avatar,
body[data-company-theme] > .shell #sales-pipeline .pipeline-ticket:nth-child(2n) .pipeline-ticket-avatar {
  color: #7c3aed !important;
  background: rgba(124, 58, 237, 0.13) !important;
}

body.dashboard-client-flat-theme #sales-pipeline .pipeline-ticket:nth-child(3n) .pipeline-ticket-avatar,
body[data-company-theme] > .shell #sales-pipeline .pipeline-ticket:nth-child(3n) .pipeline-ticket-avatar {
  color: #0891b2 !important;
  background: rgba(8, 145, 178, 0.12) !important;
}

body.dashboard-client-flat-theme #sales-pipeline .pipeline-ticket-line,
body[data-company-theme] > .shell #sales-pipeline .pipeline-ticket-line {
  display: grid !important;
  justify-content: initial !important;
  justify-items: start !important;
  align-content: center !important;
  gap: 4px !important;
  min-width: 0 !important;
  overflow: hidden !important;
}

body.dashboard-client-flat-theme #sales-pipeline .pipeline-ticket-title,
body.dashboard-client-flat-theme #sales-pipeline .pipeline-ticket-meta,
body.dashboard-client-flat-theme #sales-pipeline .pipeline-ticket-footer,
body.dashboard-client-flat-theme #sales-pipeline .pipeline-ticket-chip,
body[data-company-theme] > .shell #sales-pipeline .pipeline-ticket-title,
body[data-company-theme] > .shell #sales-pipeline .pipeline-ticket-meta,
body[data-company-theme] > .shell #sales-pipeline .pipeline-ticket-footer,
body[data-company-theme] > .shell #sales-pipeline .pipeline-ticket-chip {
  max-width: 100% !important;
  min-width: 0 !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

body.dashboard-client-flat-theme .lead-table,
body[data-company-theme] > .shell .lead-table {
  border-spacing: 0 6px !important;
  font-size: 14px !important;
}

body.dashboard-client-flat-theme .lead-table .lead-item td,
body[data-company-theme] > .shell .lead-table .lead-item td {
  padding-top: 7px !important;
  padding-bottom: 7px !important;
}

body.dashboard-client-flat-theme .lead-table .lead-item td:first-child,
body[data-company-theme] > .shell .lead-table .lead-item td:first-child {
  padding-left: 14px !important;
}

body.dashboard-client-flat-theme .lead-table .lead-item td:last-child,
body[data-company-theme] > .shell .lead-table .lead-item td:last-child {
  padding-right: 14px !important;
}

body.dashboard-client-flat-theme .lead-avatar,
body[data-company-theme] > .shell .lead-avatar {
  width: 42px !important;
  height: 42px !important;
  border-radius: 999px !important;
  color: #2563eb !important;
  background: rgba(37, 99, 235, 0.12) !important;
  font-size: 13px !important;
  font-weight: 900 !important;
}

body.dashboard-client-flat-theme .lead-avatar .fallback,
body[data-company-theme] > .shell .lead-avatar .fallback {
  inset: 0 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  border-radius: inherit !important;
  color: #ffffff !important;
  opacity: 0.96 !important;
}

body.dashboard-client-flat-theme .lead-table tbody tr:nth-child(2n) .lead-avatar,
body[data-company-theme] > .shell .lead-table tbody tr:nth-child(2n) .lead-avatar {
  color: #7c3aed !important;
  background: rgba(124, 58, 237, 0.13) !important;
}

body.dashboard-client-flat-theme .lead-table tbody tr:nth-child(3n) .lead-avatar,
body[data-company-theme] > .shell .lead-table tbody tr:nth-child(3n) .lead-avatar {
  color: #0891b2 !important;
  background: rgba(8, 145, 178, 0.12) !important;
}

body.dashboard-client-flat-theme .lead-table tbody tr:nth-child(4n) .lead-avatar,
body[data-company-theme] > .shell .lead-table tbody tr:nth-child(4n) .lead-avatar {
  color: #16a34a !important;
  background: rgba(22, 163, 74, 0.12) !important;
}

body.dashboard-client-flat-theme .lead-contact-actions,
body[data-company-theme] > .shell .lead-contact-actions {
  gap: 6px !important;
}

body.dashboard-client-flat-theme .lead-contact-actions .icon-btn.mini,
body.dashboard-client-flat-theme .lead-contact-menu-trigger,
body[data-company-theme] > .shell .lead-contact-actions .icon-btn.mini,
body[data-company-theme] > .shell .lead-contact-menu-trigger {
  width: 30px !important;
  height: 30px !important;
  min-width: 30px !important;
  border-radius: 12px !important;
}

body.dashboard-client-flat-theme .lead-notifications .notification-list,
body[data-company-theme] > .shell .lead-notifications .notification-list {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 4px !important;
  min-width: 0 !important;
  max-width: 260px !important;
}

body.dashboard-client-flat-theme .lead-notifications .notification-item,
body[data-company-theme] > .shell .lead-notifications .notification-item {
  margin: 0 !important;
}

body.dashboard-client-flat-theme .lead-notifications .status-badge,
body.dashboard-client-flat-theme .lead-table .status-badge,
body[data-company-theme] > .shell .lead-notifications .status-badge,
body[data-company-theme] > .shell .lead-table .status-badge {
  min-width: auto !important;
  padding: 3px 7px !important;
  font-size: 9px !important;
  letter-spacing: 0.035em !important;
}

body.dashboard-client-flat-theme .panel,
body.dashboard-client-flat-theme .metric-card,
body.dashboard-client-flat-theme .analytics-metric-card,
body.dashboard-client-flat-theme .dashboard-stat-card,
body.dashboard-client-flat-theme .table-modern,
body.dashboard-client-flat-theme .dashboard-global-table-wrap,
body.dashboard-client-flat-theme .dashboard-profile-panel {
  background: transparent !important;
  border: 1px solid rgba(148, 163, 184, 0.24) !important;
  border-radius: 18px !important;
  box-shadow: none !important;
}

body.dashboard-client-flat-theme .panel {
  padding: 22px !important;
}

body.dashboard-client-flat-theme .dashboard-stat-card {
  min-height: 142px !important;
  padding: 20px !important;
}

body.dashboard-client-flat-theme .dashboard-stat-card .analytics-metric-icon {
  width: 46px !important;
  height: 46px !important;
  border-radius: 14px !important;
  display: inline-grid !important;
  place-items: center !important;
  box-shadow: none !important;
}

body.dashboard-client-flat-theme .dashboard-stat-card .analytics-metric-icon svg {
  width: 25px !important;
  height: 25px !important;
}

body.dashboard-client-flat-theme .dashboard-stat-card--appointments .analytics-metric-icon {
  color: #7c3aed !important;
  background: rgba(124, 58, 237, 0.12) !important;
}

body.dashboard-client-flat-theme .dashboard-stat-card--patients .analytics-metric-icon {
  color: #2563eb !important;
  background: rgba(37, 99, 235, 0.12) !important;
}

body.dashboard-client-flat-theme .dashboard-stat-card--leads .analytics-metric-icon {
  color: #16a34a !important;
  background: rgba(22, 163, 74, 0.12) !important;
}

body.dashboard-client-flat-theme .dashboard-stat-card--whatsapp_unanswered .analytics-metric-icon {
  color: #10b981 !important;
  background: rgba(16, 185, 129, 0.13) !important;
}

body.dashboard-client-flat-theme .dashboard-stat-card--followup .analytics-metric-icon {
  color: #f97316 !important;
  background: rgba(249, 115, 22, 0.13) !important;
}

body.dashboard-client-flat-theme .dashboard-stat-card--overview .analytics-metric-icon {
  color: #4f46e5 !important;
  background: rgba(79, 70, 229, 0.13) !important;
}

body.dashboard-client-flat-theme .dashboard-stat-card--appointments .dashboard-trend {
  color: #7c3aed !important;
  background: rgba(124, 58, 237, 0.09) !important;
}

body.dashboard-client-flat-theme .dashboard-stat-card--patients .dashboard-trend {
  color: #2563eb !important;
  background: rgba(37, 99, 235, 0.09) !important;
}

body.dashboard-client-flat-theme .dashboard-stat-card--leads .dashboard-trend,
body.dashboard-client-flat-theme .dashboard-stat-card--whatsapp_unanswered .dashboard-trend {
  color: #16a34a !important;
  background: rgba(22, 163, 74, 0.09) !important;
}

body.dashboard-client-flat-theme .dashboard-stat-card--followup .dashboard-trend {
  color: #f97316 !important;
  background: rgba(249, 115, 22, 0.1) !important;
}

body.dashboard-client-flat-theme .dashboard-stat-card--overview .dashboard-trend {
  color: #4f46e5 !important;
  background: rgba(79, 70, 229, 0.1) !important;
}

body.dashboard-client-flat-theme .dashboard-appointment-mix-panel .panel-header {
  margin-bottom: 14px !important;
}

body.dashboard-client-flat-theme .dashboard-appointment-mix-panel .dashboard-donut-wrap {
  height: 178px !important;
}

body.dashboard-client-flat-theme .dashboard-appointment-mix-panel .dashboard-donut-shell {
  gap: 12px !important;
}

body.dashboard-client-flat-theme .dashboard-appointment-mix-panel .dashboard-donut-legend {
  gap: 8px !important;
}

body.dashboard-client-flat-theme .dashboard-appointment-mix-panel .dashboard-legend-item {
  padding: 8px 10px !important;
  background: transparent !important;
}

body.dashboard-client-flat-theme .dashboard-inline-title-icon--violet {
  color: #7c3aed !important;
  background: rgba(124, 58, 237, 0.1) !important;
}

body.dashboard-client-flat-theme .panel-header {
  padding: 0 0 16px !important;
  border-bottom: 1px solid rgba(148, 163, 184, 0.18) !important;
  background: transparent !important;
}

body.dashboard-client-flat-theme .dashboard-chart-grid > .panel {
  display: grid !important;
  grid-template-rows: auto 1fr !important;
  align-content: start !important;
}

body.dashboard-client-flat-theme .dashboard-chart-grid > .panel > .panel-header {
  display: grid !important;
  align-items: start !important;
  min-height: 70px !important;
  margin-bottom: 16px !important;
}

body.dashboard-client-flat-theme .dashboard-chart-grid > .panel > .panel-header > div {
  display: grid !important;
  align-content: start !important;
  gap: 6px !important;
  min-height: 52px !important;
}

body.dashboard-client-flat-theme .dashboard-chart-grid .panel-header h3 {
  min-height: 18px !important;
  margin: 0 !important;
  font-size: 15px !important;
  line-height: 1.18 !important;
  letter-spacing: -0.01em !important;
}

body.dashboard-client-flat-theme .dashboard-chart-grid .panel-header p {
  max-width: 420px !important;
  min-height: 32px !important;
  margin: 0 !important;
  font-size: 12px !important;
  line-height: 1.35 !important;
}

body.dashboard-client-flat-theme .analytics-chart-wrap,
body.dashboard-client-flat-theme .dashboard-donut-shell,
body.dashboard-client-flat-theme .table-wrap,
body.dashboard-client-flat-theme .dashboard-doctor-card,
body.dashboard-client-flat-theme .dashboard-doctor-metric,
body.dashboard-client-flat-theme .dashboard-patient-item,
body.dashboard-client-flat-theme .dashboard-commercial-summary-card,
body.dashboard-client-flat-theme .dashboard-commercial-list,
body.dashboard-client-flat-theme .dashboard-commercial-list-row,
body.dashboard-client-flat-theme .dashboard-commercial-discipline,
body.dashboard-client-flat-theme .dashboard-commercial-discipline-row,
body.dashboard-client-flat-theme .dashboard-commercial-brief-card,
body.dashboard-client-flat-theme .dashboard-commercial-brief-item,
body.dashboard-client-flat-theme .dashboard-commercial-connection-card,
body.dashboard-client-flat-theme .dashboard-empty-state,
body.dashboard-client-flat-theme .dashboard-global-summary-item,
body.dashboard-client-flat-theme .dashboard-global-plan-item {
  background: transparent !important;
  box-shadow: none !important;
}

body.dashboard-client-flat-theme .analytics-chart-wrap,
body.dashboard-client-flat-theme .dashboard-donut-shell,
body.dashboard-client-flat-theme .dashboard-doctor-card,
body.dashboard-client-flat-theme .dashboard-commercial-summary-card,
body.dashboard-client-flat-theme .dashboard-commercial-list,
body.dashboard-client-flat-theme .dashboard-commercial-discipline,
body.dashboard-client-flat-theme .dashboard-commercial-brief-card,
body.dashboard-client-flat-theme .dashboard-commercial-connection-card {
  border: 1px solid rgba(148, 163, 184, 0.18) !important;
  border-radius: 16px !important;
}

body.dashboard-client-flat-theme .dashboard-doctor-metric,
body.dashboard-client-flat-theme .dashboard-patient-item,
body.dashboard-client-flat-theme .dashboard-commercial-list-row,
body.dashboard-client-flat-theme .dashboard-commercial-discipline-row,
body.dashboard-client-flat-theme .dashboard-commercial-brief-item,
body.dashboard-client-flat-theme .dashboard-global-summary-item,
body.dashboard-client-flat-theme .dashboard-global-plan-item {
  border: 1px solid rgba(148, 163, 184, 0.16) !important;
  border-radius: 14px !important;
}

body.dashboard-client-flat-theme .dashboard-doctor-metrics {
  gap: 8px !important;
}

body.dashboard-client-flat-theme .dashboard-doctor-metric {
  min-height: 76px !important;
  align-content: center !important;
  justify-items: center !important;
  gap: 5px !important;
  padding: 12px 8px !important;
  text-align: center !important;
}

body.dashboard-client-flat-theme .dashboard-doctor-metric strong {
  order: 1 !important;
  font-size: clamp(18px, 2.1vw, 24px) !important;
  line-height: 1 !important;
  font-weight: 850 !important;
}

body.dashboard-client-flat-theme .dashboard-doctor-metric span {
  order: 2 !important;
  max-width: 100% !important;
  color: #64748b !important;
  font-size: 9px !important;
  line-height: 1.15 !important;
  letter-spacing: 0.035em !important;
  text-wrap: balance !important;
}

body.dashboard-client-flat-theme .data-table,
body.dashboard-client-flat-theme .dashboard-table {
  background: transparent !important;
}

body.dashboard-client-flat-theme .data-table thead th,
body.dashboard-client-flat-theme .dashboard-table thead th {
  background: transparent !important;
  color: #64748b !important;
}

body.dashboard-client-flat-theme .data-table tbody tr,
body.dashboard-client-flat-theme .dashboard-table tbody tr {
  background: transparent !important;
}

body.dashboard-client-flat-theme .data-table tbody tr:hover,
body.dashboard-client-flat-theme .dashboard-table tbody tr:hover {
  background: transparent !important;
}

body.dashboard-client-flat-theme .analytics-metric-icon,
body.dashboard-client-flat-theme .dashboard-doctor-avatar,
body.dashboard-client-flat-theme .company-cell-avatar {
  box-shadow: none !important;
}

body.dashboard-client-flat-theme :is(
  .panel,
  .metric-card,
  .analytics-metric-card,
  .dashboard-stat-card,
  .dashboard-stat-head,
  .dashboard-trend,
  .dashboard-global-panel,
  .dashboard-global-summary-item,
  .dashboard-global-plan-item,
  .dashboard-chart-wrap,
  .analytics-chart-wrap,
  .dashboard-donut-shell,
  .dashboard-donut-legend,
  .dashboard-donut-legend li,
  .dashboard-donut-legend-item,
  .dashboard-doctor-card,
  .dashboard-doctor-metric,
  .dashboard-profile-panel,
  .dashboard-patient-item,
  .dashboard-commercial-summary-card,
  .dashboard-commercial-list,
  .dashboard-commercial-list-row,
  .dashboard-commercial-discipline,
  .dashboard-commercial-discipline-row,
  .dashboard-commercial-brief-card,
  .dashboard-commercial-brief-item,
  .dashboard-commercial-connection-card,
  .dashboard-empty-state,
  .table-wrap,
  .table-modern,
  .data-table,
  .dashboard-table,
  .dashboard-table-date,
  .dashboard-table-actions
) {
  background: transparent !important;
  box-shadow: none !important;
}

body.dashboard-client-flat-theme :is(.metric-card, .analytics-metric-card, .dashboard-stat-card)::before,
body.dashboard-client-flat-theme :is(.metric-card, .analytics-metric-card, .dashboard-stat-card)::after,
body.dashboard-client-flat-theme :is(.panel, .table-wrap, .table-modern, .dashboard-chart-wrap, .analytics-chart-wrap)::before,
body.dashboard-client-flat-theme :is(.panel, .table-wrap, .table-modern, .dashboard-chart-wrap, .analytics-chart-wrap)::after {
  display: none !important;
  background: transparent !important;
  box-shadow: none !important;
}

body.dashboard-client-flat-theme :is(.data-table, .dashboard-table) :is(thead, tbody, tfoot, tr, th, td) {
  background: transparent !important;
  box-shadow: none !important;
}

body.dashboard-client-flat-theme :is(.data-table, .dashboard-table) :is(tr:hover, tr:hover th, tr:hover td) {
  background: transparent !important;
}

body.dashboard-client-flat-theme .dashboard-table-action,
body.dashboard-client-flat-theme .btn-secondary.dashboard-table-action {
  background: transparent !important;
  border-color: rgba(37, 99, 235, 0.28) !important;
  box-shadow: none !important;
}

body.dashboard-client-flat-theme .dashboard-table-action:hover,
body.dashboard-client-flat-theme .btn-secondary.dashboard-table-action:hover {
  background: rgba(37, 99, 235, 0.08) !important;
  border-color: rgba(37, 99, 235, 0.4) !important;
}
