
/* 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 .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;
}
