/* PAC Control Tower v1.9.6.0 HF6A REV1
   Global UX2 light workspace. Loaded after legacy assets to neutralize page-local dark themes.
   The top navigation / filter bar remain dark; business workspaces use the Terrestre visual language. */
:root {
  --pac-ux2-bg: #f5f7fa;
  --pac-ux2-surface: #ffffff;
  --pac-ux2-surface-soft: #f8fafc;
  --pac-ux2-text: #182230;
  --pac-ux2-text-2: #344054;
  --pac-ux2-muted: #667085;
  --pac-ux2-border: #e4e7ec;
  --pac-ux2-accent: #0d6f78;
  --pac-ux2-accent-soft: #e8f6f7;
  --pac-ux2-radius: 14px;
  --pac-ux2-shadow: 0 1px 2px rgba(16,24,40,.04), 0 8px 24px rgba(16,24,40,.045);
}

/* Every mounted business page gets the same light canvas as Terrestre. */
.pac-page-panel,
.pac-page-panel > .page-shell,
.pac-page-panel .page-shell,
.pac-page-panel .ds-page,
.pac-page-panel .pac-module-shell,
.pac-page-panel .pac-workspace {
  background: transparent !important;
  background-image: none !important;
  color: var(--pac-ux2-text) !important;
}

.pac-page-panel .page-title-row,
.pac-page-panel .ds-page-header,
.pac-page-panel [class*="page-heading"],
.pac-page-panel [class*="page-header"] {
  background: transparent !important;
  background-image: none !important;
  border: 0 !important;
  box-shadow: none !important;
}

.pac-page-panel h1,
.pac-page-panel h2,
.pac-page-panel h3,
.pac-page-panel h4,
.pac-page-panel h5,
.pac-page-panel h6 {
  color: var(--pac-ux2-text) !important;
  text-shadow: none !important;
}

.pac-page-panel p,
.pac-page-panel small,
.pac-page-panel .muted,
.pac-page-panel [class*="subtitle"],
.pac-page-panel [class*="description"],
.pac-page-panel [class*="footer-note"] {
  color: var(--pac-ux2-muted) !important;
  text-shadow: none !important;
}

.pac-page-panel .section-eyebrow,
.pac-page-panel [class*="eyebrow"] {
  color: var(--pac-ux2-accent) !important;
  text-shadow: none !important;
}

/* Normalize legacy dashboard panels/cards. Attribute selectors catch the old module families
   without changing navigation, global filters or status toasts outside .pac-page-panel. */
.pac-page-panel [class*="-card"]:not([class*="badge"]):not([class*="pill"]),
.pac-page-panel [class*="-panel"]:not([class*="page-panel"]),
.pac-page-panel [class*="-subpanel"],
.pac-page-panel [class*="-summary-card"],
.pac-page-panel [class*="-health-card"],
.pac-page-panel [class*="-dimension-card"],
.pac-page-panel [class*="-finding"],
.pac-page-panel [class*="-opportunity"],
.pac-page-panel [class*="-question-answer"],
.pac-page-panel [class*="-empty"] {
  background: var(--pac-ux2-surface) !important;
  background-image: none !important;
  color: var(--pac-ux2-text-2) !important;
  border-color: var(--pac-ux2-border) !important;
  box-shadow: var(--pac-ux2-shadow) !important;
}

/* Executive Assistant was one of the remaining dark-page families. */
.v1900-executive-assistant { color: var(--pac-ux2-text) !important; }
.v1900-executive-assistant .ea-health-card,
.v1900-executive-assistant .ea-summary-card,
.v1900-executive-assistant .ea-panel,
.v1900-executive-assistant .ea-dimension-card,
.v1900-executive-assistant .ea-finding,
.v1900-executive-assistant .ea-empty,
.v1900-executive-assistant .ea-question-answer {
  background: var(--pac-ux2-surface) !important;
  background-image: none !important;
  color: var(--pac-ux2-text-2) !important;
  border: 1px solid var(--pac-ux2-border) !important;
  box-shadow: var(--pac-ux2-shadow) !important;
}
.v1900-executive-assistant .ea-health-card h1,
.v1900-executive-assistant .ea-health-card h2,
.v1900-executive-assistant .ea-health-card h3,
.v1900-executive-assistant .ea-health-card h4,
.v1900-executive-assistant .ea-summary-card h1,
.v1900-executive-assistant .ea-summary-card h2,
.v1900-executive-assistant .ea-summary-card h3,
.v1900-executive-assistant .ea-summary-card h4,
.v1900-executive-assistant .ea-panel h1,
.v1900-executive-assistant .ea-panel h2,
.v1900-executive-assistant .ea-panel h3,
.v1900-executive-assistant .ea-panel h4,
.v1900-executive-assistant .ea-dimension-card h1,
.v1900-executive-assistant .ea-dimension-card h2,
.v1900-executive-assistant .ea-dimension-card h3,
.v1900-executive-assistant .ea-dimension-card h4,
.v1900-executive-assistant .ea-finding h4,
.v1900-executive-assistant .ea-opportunity h4,
.v1900-executive-assistant .ea-dimension-card strong,
.v1900-executive-assistant .ea-health-score {
  color: var(--pac-ux2-text) !important;
}
.v1900-executive-assistant .ea-summary-card p,
.v1900-executive-assistant .ea-panel p,
.v1900-executive-assistant .ea-finding p,
.v1900-executive-assistant .ea-opportunity p,
.v1900-executive-assistant .ea-question-panel p,
.v1900-executive-assistant .ea-health-freshness,
.v1900-executive-assistant .ea-data-quality,
.v1900-executive-assistant .ea-footer-note,
.v1900-executive-assistant .ea-dimension-name,
.v1900-executive-assistant .ea-dimension-card span,
.v1900-executive-assistant .ea-dimension-card small,
.v1900-executive-assistant .ea-panel-title span,
.v1900-executive-assistant .ea-confidence,
.v1900-executive-assistant .ea-action-line,
.v1900-executive-assistant .ea-action-line strong,
.v1900-executive-assistant .ea-action-line span,
.v1900-executive-assistant .ea-finding small,
.v1900-executive-assistant .ea-opportunity small,
.v1900-executive-assistant .ea-text-row,
.v1900-executive-assistant .ea-opportunity {
  color: var(--pac-ux2-muted) !important;
}
.v1900-executive-assistant .ea-panel-title { border-bottom-color: var(--pac-ux2-border) !important; }
.v1900-executive-assistant .ea-finding { border-left-width: 4px !important; }

/* Other legacy dark module roots. */
.v1920-commercial-performance .pac-dark-subpanel,
.v1941-role-home [class*="card"],
.v1941-role-home [class*="panel"],
.v1756-area-agent [class*="card"],
.v1756-area-agent [class*="panel"],
.v1758-anomaly-engine [class*="card"],
.v1758-anomaly-engine [class*="panel"],
.v1759-smart-notifications [class*="card"],
.v1759-smart-notifications [class*="panel"],
.v1760-commercial-hubspot-agent [class*="card"],
.v1760-commercial-hubspot-agent [class*="panel"],
.v1761-agent-learning [class*="card"],
.v1761-agent-learning [class*="panel"],
.v1762-agent-case-tracking [class*="card"],
.v1762-agent-case-tracking [class*="panel"],
.v1763-controlled-assignment [class*="card"],
.v1763-controlled-assignment [class*="panel"],
.v1766-historical-intelligence [class*="card"],
.v1766-historical-intelligence [class*="panel"] {
  background: var(--pac-ux2-surface) !important;
  background-image: none !important;
  color: var(--pac-ux2-text-2) !important;
  border-color: var(--pac-ux2-border) !important;
  box-shadow: var(--pac-ux2-shadow) !important;
}

/* Forms embedded inside business pages should also match the light workspace. */
.pac-page-panel .Select-control,
.pac-page-panel .Select-menu-outer,
.pac-page-panel input:not([type="checkbox"]):not([type="radio"]),
.pac-page-panel textarea {
  background: var(--pac-ux2-surface) !important;
  color: var(--pac-ux2-text-2) !important;
  border-color: #d0d5dd !important;
  box-shadow: none !important;
}
.pac-page-panel .Select-placeholder,
.pac-page-panel .Select-value-label,
.pac-page-panel .Select-option {
  color: var(--pac-ux2-text-2) !important;
}
.pac-page-panel .Select-option { background: var(--pac-ux2-surface) !important; }
.pac-page-panel .Select-option.is-focused { background: var(--pac-ux2-surface-soft) !important; }

/* Tables: shared Terrestre treatment across every page. */
.pac-page-panel .dash-table-container,
.pac-page-panel .dash-spreadsheet-container,
.pac-page-panel .dash-spreadsheet-inner {
  background: var(--pac-ux2-surface) !important;
  border: 0 !important;
  box-shadow: none !important;
}
.pac-page-panel .dash-spreadsheet-container th {
  background: var(--pac-ux2-surface-soft) !important;
  color: #475467 !important;
  border: 0 !important;
  border-bottom: 1px solid var(--pac-ux2-border) !important;
}
.pac-page-panel .dash-spreadsheet-container td {
  background: var(--pac-ux2-surface) !important;
  color: var(--pac-ux2-text-2) !important;
  border: 0 !important;
  border-bottom: 1px solid #f0f2f5 !important;
}
.pac-page-panel .dash-spreadsheet-container tr:hover td { background: #f9fafb !important; }

/* Keep semantic meaning visible without reverting to dark dashboards. */
.pac-page-panel .status-saludable,
.pac-page-panel [class*="status-success"],
.pac-page-panel [class*="readiness-success"] { color: #067647 !important; background: #ecfdf3 !important; border-color: #abefc6 !important; }
.pac-page-panel .status-atencion,
.pac-page-panel [class*="status-warning"],
.pac-page-panel [class*="readiness-warning"] { color: #b54708 !important; background: #fffaeb !important; border-color: #fedf89 !important; }
.pac-page-panel .status-riesgo,
.pac-page-panel [class*="status-danger"],
.pac-page-panel [class*="readiness-danger"] { color: #b42318 !important; background: #fef3f2 !important; border-color: #fecdca !important; }
.pac-page-panel .status-sin-datos,
.pac-page-panel [class*="readiness-neutral"] { color: #475467 !important; background: #f2f4f7 !important; border-color: #d0d5dd !important; }

/* Terrestre remains the reference implementation. */
.hf6a-terrestrial-page .hf6a-summary-card,
.hf6a-terrestrial-page .hf6a-card,
.hf6a-terrestrial-page .kpi-card { background: var(--pac-ux2-surface) !important; }
.hf6a-terrestrial-page .hf6a-freshness-strip { color: #475467 !important; }

@media (max-width: 1100px) {
  .pac-page-panel [class*="-card"],
  .pac-page-panel [class*="-panel"] { box-shadow: none !important; }
}

/* ==========================================================================
   PAC HF6B-B1 | VISIBILITY + LIGHT WORKSPACE RECOVERY
   Purpose:
   - data already returned by callbacks must remain visible;
   - KPI values must contrast against white cards;
   - Dash DataTables must not disappear because of legacy fixed-layer rules;
   - page headings must remain legible on the HF6 light workspace.
   This is a recovery layer, not the final HF6B-B design consolidation.
   ========================================================================== */

.pac-page-panel .page-shell,
.pac-page-panel .hf6a-page,
.pac-page-panel .hf6a-rev1,
.hf6a-terrestrial-page {
  color: #101828 !important;
}

.pac-page-panel .page-shell h1,
.pac-page-panel .page-shell h2,
.pac-page-panel .page-shell h3,
.pac-page-panel .page-shell h4,
.pac-page-panel .hf6a-page h1,
.pac-page-panel .hf6a-page h2,
.pac-page-panel .hf6a-page h3,
.pac-page-panel .hf6a-page h4,
.hf6a-terrestrial-page h1,
.hf6a-terrestrial-page h2,
.hf6a-terrestrial-page h3,
.hf6a-terrestrial-page h4 {
  color: #101828 !important;
  opacity: 1 !important;
  text-shadow: none !important;
}

.pac-page-panel .kpi-card .kpi-value,
.pac-page-panel .metric-card .metric-value,
.pac-page-panel .kpi-card [class*="value"],
.pac-page-panel .metric-card [class*="value"],
.hf6a-terrestrial-page .kpi-card .kpi-value,
.hf6a-terrestrial-page .kpi-card [class*="value"] {
  color: #101828 !important;
  opacity: 1 !important;
  visibility: visible !important;
}

.pac-page-panel .kpi-card .kpi-label,
.pac-page-panel .metric-card .metric-label,
.pac-page-panel .kpi-card [class*="label"],
.pac-page-panel .metric-card [class*="label"],
.hf6a-terrestrial-page .kpi-card .kpi-label,
.hf6a-terrestrial-page .kpi-card [class*="label"] {
  color: #475467 !important;
  opacity: 1 !important;
  visibility: visible !important;
}

.pac-page-panel .kpi-card .kpi-note,
.pac-page-panel .metric-card .metric-note,
.hf6a-terrestrial-page .kpi-card .kpi-note {
  color: #667085 !important;
  opacity: 1 !important;
  visibility: visible !important;
}

/* Native Dash tables: restore actual table geometry and visible text. */
.pac-page-panel .dash-table-container,
.pac-page-panel .dash-spreadsheet-container,
.pac-page-panel .dash-spreadsheet-inner,
.hf6a-terrestrial-page .dash-table-container,
.hf6a-terrestrial-page .dash-spreadsheet-container,
.hf6a-terrestrial-page .dash-spreadsheet-inner {
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  height: auto !important;
  max-height: none !important;
  visibility: visible !important;
  opacity: 1 !important;
}

.pac-page-panel .dash-spreadsheet-inner table,
.hf6a-terrestrial-page .dash-spreadsheet-inner table {
  display: table !important;
  width: 100% !important;
  min-width: 100% !important;
  height: auto !important;
  visibility: visible !important;
  opacity: 1 !important;
}

.pac-page-panel .dash-spreadsheet-inner thead,
.hf6a-terrestrial-page .dash-spreadsheet-inner thead {
  display: table-header-group !important;
  visibility: visible !important;
  opacity: 1 !important;
}

.pac-page-panel .dash-spreadsheet-inner tbody,
.hf6a-terrestrial-page .dash-spreadsheet-inner tbody {
  display: table-row-group !important;
  visibility: visible !important;
  opacity: 1 !important;
}

.pac-page-panel .dash-spreadsheet-inner tr,
.hf6a-terrestrial-page .dash-spreadsheet-inner tr {
  display: table-row !important;
  visibility: visible !important;
  opacity: 1 !important;
}

.pac-page-panel .dash-spreadsheet-inner th,
.pac-page-panel .dash-spreadsheet-inner td,
.pac-page-panel .dash-spreadsheet-inner .dash-cell,
.pac-page-panel .dash-spreadsheet-inner .dash-cell-value,
.hf6a-terrestrial-page .dash-spreadsheet-inner th,
.hf6a-terrestrial-page .dash-spreadsheet-inner td,
.hf6a-terrestrial-page .dash-spreadsheet-inner .dash-cell,
.hf6a-terrestrial-page .dash-spreadsheet-inner .dash-cell-value {
  visibility: visible !important;
  opacity: 1 !important;
}

.pac-page-panel .dash-spreadsheet-inner td,
.pac-page-panel .dash-spreadsheet-inner .dash-cell:not(.dash-header),
.hf6a-terrestrial-page .dash-spreadsheet-inner td,
.hf6a-terrestrial-page .dash-spreadsheet-inner .dash-cell:not(.dash-header) {
  background: #ffffff !important;
  color: #344054 !important;
}

.pac-page-panel .dash-spreadsheet-inner th,
.pac-page-panel .dash-spreadsheet-inner .dash-header,
.pac-page-panel .dash-spreadsheet-inner .column-header-name,
.hf6a-terrestrial-page .dash-spreadsheet-inner th,
.hf6a-terrestrial-page .dash-spreadsheet-inner .dash-header,
.hf6a-terrestrial-page .dash-spreadsheet-inner .column-header-name {
  color: #344054 !important;
  background: #f8fafc !important;
  opacity: 1 !important;
  visibility: visible !important;
}

/* The product requirement is chart-free only for Terrestre. */
.hf6a-terrestrial-page .dash-graph,
.hf6a-terrestrial-page .js-plotly-plot,
.hf6a-terrestrial-page .plot-container,
.hf6a-terrestrial-page .svg-container {
  display: none !important;
}

/* Other pages may legitimately contain Plotly charts. Do not collapse them. */
.pac-page-panel:not(#page-area-manager-ground) .dash-graph {
  min-height: 260px !important;
  max-height: none !important;
  height: auto !important;
  opacity: 1 !important;
  overflow: visible !important;
}

.pac-page-panel:not(#page-area-manager-ground) .dash-graph .js-plotly-plot,
.pac-page-panel:not(#page-area-manager-ground) .dash-graph .plot-container,
.pac-page-panel:not(#page-area-manager-ground) .dash-graph .svg-container,
.pac-page-panel:not(#page-area-manager-ground) .dash-graph svg,
.pac-page-panel:not(#page-area-manager-ground) .dash-graph canvas {
  position: relative !important;
  width: 100% !important;
  height: auto !important;
  min-height: 260px !important;
  opacity: 1 !important;
  overflow: visible !important;
  pointer-events: auto !important;
}

/* ==========================================================================
   PAC HF6B-B2 | EXECUTIVE UX CONSOLIDATION
   ========================================================================== */
.pac-page-panel { background:#f5f7fa !important; color:#101828 !important; }
.pac-page-panel > div,
.pac-page-panel .page-shell,
.pac-page-panel .dir7-page,
.pac-page-panel .v1900-executive-assistant,
.pac-page-panel .agenda-pac-page,
.pac-page-panel .v1920-commercial-performance { gap:12px !important; }

.pac-page-panel .card,
.pac-page-panel .kpi-card,
.pac-page-panel .metric-card,
.pac-page-panel .table-card,
.pac-page-panel .pac-dark-panel,
.pac-page-panel .pac-dark-subpanel,
.pac-page-panel .ea-panel,
.pac-page-panel .ea-summary-card,
.pac-page-panel .ea-health-card {
  border-radius:12px !important;
  border-color:#dfe5ec !important;
  box-shadow:0 1px 3px rgba(16,24,40,.07) !important;
}
.pac-page-panel .kpi-card,
.pac-page-panel .metric-card { min-height:92px !important; padding:13px 14px !important; }

.pac-page-panel .dash-table-container {
  border-radius:10px !important;
  overflow:hidden !important;
  border:1px solid #dfe5ec !important;
  background:#fff !important;
}
.pac-page-panel .dash-spreadsheet-inner th,
.pac-page-panel .dash-spreadsheet-inner .dash-header,
.pac-page-panel .dash-spreadsheet-inner td,
.pac-page-panel .dash-spreadsheet-inner .dash-cell:not(.dash-header) {
  min-height:34px !important;
  padding-top:7px !important;
  padding-bottom:7px !important;
  font-size:11px !important;
}
.pac-page-panel:not(#page-area-manager-ground) .dash-graph,
.pac-page-panel:not(#page-area-manager-ground) .dash-graph .js-plotly-plot,
.pac-page-panel:not(#page-area-manager-ground) .dash-graph .plot-container,
.pac-page-panel:not(#page-area-manager-ground) .dash-graph .svg-container {
  min-height:300px !important;
  max-height:390px !important;
}
.pac-page-panel .tab,
.pac-page-panel .custom-tab,
.pac-page-panel [role="tab"] { min-height:36px !important; padding:8px 12px !important; }

.detail-panel.active.expanded.v103-drilldown-modal {
  background:#fff !important;
  color:#101828 !important;
  border-left:1px solid #dfe5ec !important;
  box-shadow:-8px 0 28px rgba(16,24,40,.12) !important;
}
.v1926-detail360-compact .v103-modal-header h2 { color:#101828 !important; }
.v1926-detail360-compact .v103-modal-header p,
.v1927-detail-summary-name,
.v1927-evidence-client { color:#475467 !important; }

