/* SIPRONE v0.53 final visual contract guard
   Purpose: fix color inheritance only; no layout composition changes. */
:root{
  --siprone-v053-dark-title:#ffffff;
  --siprone-v053-dark-subtitle:#dbe8f6;
  --siprone-v053-dark-label:#ff9d1f;
  --siprone-v053-light-title:#071a33;
  --siprone-v053-light-text:#26415f;
  --siprone-v053-light-muted:#64748b;
  --siprone-v053-border:#d5e0ec;
}

/* Dark command blocks: same visual contract as the main SIPRONE Command Center header. */
body .command-main :is(
  .command-header,
  .dashboard-hero,
  .lead-command > .section-title,
  .client-lost-layout .section-title,
  .payment-hero,
  .payment-control-card > .section-title,
  .release-ledger-card > .section-title,
  .finance-cost-form > .section-title,
  .finance-ledger-table > .section-title,
  .authority-hero,
  .reports-hero,
  .report-preview > .section-title,
  .branding-hero,
  .branding-hero > .section-title,
  .sop-panel,
  .documents-layout > .section-title,
  .update-center > .section-title,
  .security-center > .section-title,
  .audit-center > .section-title,
  .partner-command > .section-title,
  .partner-hero,
  .pipeline-layout .section-title,
  .integration-layout .panel > .section-title,
  .panel.compact > .section-title
){
  color:var(--siprone-command-title,var(--siprone-v053-dark-title))!important;
  -webkit-text-fill-color:initial!important;
}
body .command-main :is(
  .command-header,
  .dashboard-hero,
  .lead-command > .section-title,
  .client-lost-layout .section-title,
  .payment-hero,
  .payment-control-card > .section-title,
  .release-ledger-card > .section-title,
  .finance-cost-form > .section-title,
  .finance-ledger-table > .section-title,
  .authority-hero,
  .reports-hero,
  .report-preview > .section-title,
  .branding-hero,
  .branding-hero > .section-title,
  .sop-panel,
  .documents-layout > .section-title,
  .update-center > .section-title,
  .security-center > .section-title,
  .audit-center > .section-title,
  .partner-command > .section-title,
  .partner-hero,
  .pipeline-layout .section-title,
  .integration-layout .panel > .section-title,
  .panel.compact > .section-title
) :is(h1,h2,h3,h4,h5,h6,strong){
  color:var(--siprone-command-title,var(--siprone-v053-dark-title))!important;
  -webkit-text-fill-color:var(--siprone-command-title,var(--siprone-v053-dark-title))!important;
  opacity:1!important;
  text-shadow:none!important;
}
body .command-main :is(
  .command-header,
  .dashboard-hero,
  .lead-command > .section-title,
  .client-lost-layout .section-title,
  .payment-hero,
  .payment-control-card > .section-title,
  .release-ledger-card > .section-title,
  .finance-cost-form > .section-title,
  .finance-ledger-table > .section-title,
  .authority-hero,
  .reports-hero,
  .report-preview > .section-title,
  .branding-hero,
  .branding-hero > .section-title,
  .sop-panel,
  .documents-layout > .section-title,
  .update-center > .section-title,
  .security-center > .section-title,
  .audit-center > .section-title,
  .partner-command > .section-title,
  .partner-hero,
  .pipeline-layout .section-title,
  .integration-layout .panel > .section-title,
  .panel.compact > .section-title
) :is(p,small,em,span:not(.eyebrow):not(.field-label):not(.status-chip):not(.pulse-dot):not(.dot)){
  color:var(--siprone-command-subtitle,var(--siprone-v053-dark-subtitle))!important;
  -webkit-text-fill-color:var(--siprone-command-subtitle,var(--siprone-v053-dark-subtitle))!important;
  opacity:1!important;
}
body .command-main :is(
  .command-header,
  .dashboard-hero,
  .lead-command > .section-title,
  .client-lost-layout .section-title,
  .payment-hero,
  .payment-control-card > .section-title,
  .release-ledger-card > .section-title,
  .finance-cost-form > .section-title,
  .finance-ledger-table > .section-title,
  .authority-hero,
  .reports-hero,
  .report-preview > .section-title,
  .branding-hero,
  .branding-hero > .section-title,
  .sop-panel,
  .documents-layout > .section-title,
  .update-center > .section-title,
  .security-center > .section-title,
  .audit-center > .section-title,
  .partner-command > .section-title,
  .partner-hero,
  .pipeline-layout .section-title,
  .integration-layout .panel > .section-title,
  .panel.compact > .section-title
) .eyebrow{
  color:var(--siprone-command-label,var(--siprone-v053-dark-label))!important;
  -webkit-text-fill-color:var(--siprone-command-label,var(--siprone-v053-dark-label))!important;
  opacity:1!important;
}

/* Light cards, metrics and table surfaces must stay dark-on-white, even inside dark panels. */
body .command-main :is(.metric,.kpi-metric,.profile-grid .metric,.mini-metrics .metric,.report-summary .metric,.document-card,.document-mini,.lead-card,.partner-card,.timeline-item,.requirement,.empty-state,.form-section,.nested-panel,.customer360-panel,.finance-disclaimer,.disclaimer,.table-scroll,.table-wrap,.data-table,.asset-upload,.color-input,.type-input,.inline-help){
  color:var(--siprone-light-text,var(--siprone-v053-light-text))!important;
  -webkit-text-fill-color:initial!important;
}
body .command-main :is(.metric,.profile-grid .metric,.mini-metrics .metric,.report-summary .metric,.document-card,.document-mini,.lead-card,.partner-card,.timeline-item,.requirement,.empty-state,.form-section,.nested-panel,.customer360-panel,.finance-disclaimer,.disclaimer,.asset-upload,.color-input,.type-input,.inline-help) :is(h1,h2,h3,h4,h5,h6,strong){
  color:var(--siprone-light-title,var(--siprone-v053-light-title))!important;
  -webkit-text-fill-color:var(--siprone-light-title,var(--siprone-v053-light-title))!important;
  opacity:1!important;
}
body .command-main :is(.metric,.profile-grid .metric,.mini-metrics .metric,.report-summary .metric,.document-card,.document-mini,.lead-card,.partner-card,.timeline-item,.requirement,.empty-state,.form-section,.nested-panel,.customer360-panel,.finance-disclaimer,.disclaimer,.asset-upload,.color-input,.type-input,.inline-help) :is(p,small,em,span:not(.eyebrow):not(.field-label):not(.status-chip):not(.pulse-dot):not(.dot)){
  color:var(--siprone-light-muted,var(--siprone-v053-light-muted))!important;
  -webkit-text-fill-color:var(--siprone-light-muted,var(--siprone-v053-light-muted))!important;
  opacity:1!important;
}
body .command-main .metric span:first-child,
body .command-main .profile-grid .metric span:first-child,
body .command-main .mini-metrics .metric span:first-child,
body .command-main .report-summary .metric span:first-child{
  color:var(--siprone-metric-label,#123f68)!important;
  -webkit-text-fill-color:var(--siprone-metric-label,#123f68)!important;
}
body .command-main .metric strong,
body .command-main .profile-grid .metric strong,
body .command-main .mini-metrics .metric strong,
body .command-main .report-summary .metric strong{
  color:var(--siprone-metric-value,#071a33)!important;
  -webkit-text-fill-color:var(--siprone-metric-value,#071a33)!important;
}
body .command-main .metric em,
body .command-main .profile-grid .metric em,
body .command-main .mini-metrics .metric em,
body .command-main .report-summary .metric em{
  color:var(--siprone-metric-note,#64748b)!important;
  -webkit-text-fill-color:var(--siprone-metric-note,#64748b)!important;
}

/* Report catalog selected state: selected title is white, unselected title stays dark. */
body .command-main .report-list .report-item.active,
body .command-main button.report-item.active,
body .command-main .preview-report-list .report-item.active{
  background:linear-gradient(135deg,var(--siprone-dark-start,#071a33),var(--siprone-dark-end,#1b3a5c))!important;
  border-color:var(--button-brand,#d4a24c)!important;
  color:var(--siprone-report-active-title,var(--siprone-command-title,#ffffff))!important;
  -webkit-text-fill-color:initial!important;
}
body .command-main .report-list .report-item.active :is(strong,h1,h2,h3,h4,h5,h6),
body .command-main button.report-item.active :is(strong,h1,h2,h3,h4,h5,h6),
body .command-main .preview-report-list .report-item.active :is(strong,h1,h2,h3,h4,h5,h6){
  color:var(--siprone-report-active-title,var(--siprone-command-title,#ffffff))!important;
  -webkit-text-fill-color:var(--siprone-report-active-title,var(--siprone-command-title,#ffffff))!important;
  opacity:1!important;
}
body .command-main .report-list .report-item.active span,
body .command-main button.report-item.active span,
body .command-main .preview-report-list .report-item.active span{
  color:var(--siprone-report-active-text,var(--siprone-command-subtitle,#dbe8f6))!important;
  -webkit-text-fill-color:var(--siprone-report-active-text,var(--siprone-command-subtitle,#dbe8f6))!important;
  opacity:1!important;
}
body .command-main .report-list .report-item:not(.active) :is(strong,h1,h2,h3,h4,h5,h6),
body .command-main button.report-item:not(.active) :is(strong,h1,h2,h3,h4,h5,h6){
  color:var(--siprone-report-inactive-title,var(--siprone-light-title,#071a33))!important;
  -webkit-text-fill-color:var(--siprone-report-inactive-title,var(--siprone-light-title,#071a33))!important;
}
body .command-main .report-list .report-item:not(.active) span,
body .command-main button.report-item:not(.active) span{
  color:var(--siprone-report-inactive-text,var(--siprone-light-muted,#64748b))!important;
  -webkit-text-fill-color:var(--siprone-report-inactive-text,var(--siprone-light-muted,#64748b))!important;
}

/* Labels must not look clipped at the top of form fields. */
body .command-main .form-grid,
body .command-main .compact-form{
  overflow:visible!important;
  row-gap:22px!important;
  padding-top:10px!important;
}
body .command-main label.input,
body .command-main .input{
  overflow:visible!important;
  background:transparent!important;
  border:0!important;
  padding:0!important;
}
body .command-main .field-label,
body .command-main label.input > span:first-child,
body .command-main .input > span:first-child{
  position:static!important;
  display:inline-flex!important;
  line-height:1.25!important;
  min-height:17px!important;
  padding:0!important;
  margin:0 0 2px 0!important;
  background:transparent!important;
  color:var(--siprone-input-label,#071a33)!important;
  -webkit-text-fill-color:var(--siprone-input-label,#071a33)!important;
  overflow:visible!important;
}
