/*
 * SFR A02 cross-tab experience polish — 5.4.50.54
 * Presentation and user-facing wording only. No financial calculations, commands, engine access, or baseline mutation.
 */

/* Calm the decorative glow around header actions without flattening the financial identity. */
.sfr-a01__page-head:after{
  inset-inline-end:-106px;
  inset-block-start:-112px;
  width:188px;
  height:188px;
  opacity:.31;
  filter:blur(1px);
}
.sfr-a01__page-actions .sfr-a01__button--primary{
  box-shadow:0 5px 14px color-mix(in srgb,var(--sfr-brand-700) 18%,transparent);
}
.sfr-a01__page-actions .sfr-a01__button--primary:hover{
  box-shadow:0 8px 18px color-mix(in srgb,var(--sfr-brand-700) 22%,transparent);
}

/* Keep the executive decision and nearest-action card aligned as one decision row. */
.sfr-a01__overview-grid{align-items:stretch}
.sfr-a01__decision-card,.sfr-a01__action-card{height:100%}
.sfr-a01__action-card{
  min-height:210px;
  gap:14px;
  padding:22px;
}
.sfr-a01__action-card .sfr-a01__section-heading{
  align-items:flex-start;
  margin:0;
  padding-inline:0;
}
.sfr-a01__action-card .sfr-a01__section-heading>div:first-child{padding-inline-start:10px}
.sfr-a01__action-card>p{margin:0}
.sfr-a01__action-box{
  display:flex;
  min-height:82px;
  margin-top:auto;
  padding:14px 15px;
  flex-direction:column;
  justify-content:center;
}
.sfr-a01__action-box strong{font-size:14.5px;line-height:1.72}

/* Consistent, quieter one-pixel boundaries and clearer secondary Arabic copy. */
.sfr-a01 :is(
  .sfr-a01__card,
  .sfr-a01__metric,
  .sfr-a01__action-card,
  .sfr-a01__context-strip,
  .sfr-a01__workflow-tab,
  .sfr-a01__insight-card,
  .sfr-a01__recommendation,
  .sfr-a01__scenario,
  .sfr-a01__axis,
  .sfr-a01__table-wrap,
  .sfr-a01__control
){border-width:1px}
.sfr-a01[data-sfr-a01-theme="light"] :is(
  .sfr-a01__page-head p,
  .sfr-a01__section-heading p,
  .sfr-a01__analysis-summary p,
  .sfr-a01__metric-context,
  .sfr-a01__field-help,
  .sfr-a01__insight-card p,
  .sfr-a01__recommendation p,
  .sfr-a01__scenario>p,
  .sfr-a01__health-reading
){color:#5d6f86}
.sfr-a01[data-sfr-a01-theme="dark"] :is(
  .sfr-a01__page-head p,
  .sfr-a01__section-heading p,
  .sfr-a01__analysis-summary p,
  .sfr-a01__metric-context,
  .sfr-a01__field-help,
  .sfr-a01__insight-card p,
  .sfr-a01__recommendation p,
  .sfr-a01__scenario>p,
  .sfr-a01__health-reading
){color:#c0ccdc}
.sfr-a01[data-sfr-a01-theme="dark"] :is(
  .sfr-a01__card,
  .sfr-a01__metric,
  .sfr-a01__action-card,
  .sfr-a01__insight-card,
  .sfr-a01__recommendation,
  .sfr-a01__scenario,
  .sfr-a01__axis,
  .sfr-a01__table-wrap
){border-color:rgba(148,163,184,.17)}

/* A smoother, less dense sidebar while preserving the full tool library. */
.sfr-a01__brand{height:64px}
.sfr-a01__brand-mark{flex-basis:38px;height:38px;border-radius:11px}
.sfr-a01__search{height:40px;margin:10px 9px 7px}
.sfr-a01__nav{padding:0 8px 12px}
.sfr-a01__nav-label{margin:10px 7px 5px;font-size:12px}
.sfr-a01__quick a,.sfr-a01__category-items a,.sfr-a01__category summary{
  min-height:38px;
  padding-block:6px;
  padding-inline:9px;
  gap:9px;
  border-radius:9px;
}
.sfr-a01__category{margin:1px 0}
.sfr-a01__category-items{padding-inline-start:7px}
.sfr-a01__sidebar-footer{min-height:50px;padding-inline:13px;font-size:12px}

/* Data entry: stronger hierarchy, lighter field surfaces, and a stable review rail. */
.sfr-a01__data-layout{gap:18px}
.sfr-a01__data-stack{gap:14px}
.sfr-a01__data-section{overflow:hidden}
.sfr-a01__data-section summary{
  min-height:66px;
  background:color-mix(in srgb,var(--sfr-surface-subtle) 34%,var(--sfr-surface));
}
.sfr-a01__data-section[open] summary{
  border-bottom:1px solid color-mix(in srgb,var(--sfr-border) 80%,transparent);
}
.sfr-a01__field-grid{
  background:color-mix(in srgb,var(--sfr-surface-subtle) 18%,var(--sfr-surface));
}
.sfr-a01__control{
  background:color-mix(in srgb,var(--sfr-surface) 97%,var(--sfr-surface-subtle));
  box-shadow:inset 0 1px 0 color-mix(in srgb,#fff 55%,transparent);
}
.sfr-a01[data-sfr-a01-theme="dark"] .sfr-a01__control{box-shadow:none}
.sfr-a01__data-rail .sfr-a01__card{overflow:hidden}
.sfr-a01__data-rail .sfr-a01__card-body{padding:17px}
.sfr-a01__data-rail .sfr-a01__button{width:100%;margin-top:4px}

/* Analysis: table-first readability without turning cards into heavy blocks. */
.sfr-a01__analysis-stack{gap:17px}
.sfr-a01__analysis-card .sfr-a01__card-head{
  background:color-mix(in srgb,var(--sfr-surface-subtle) 30%,var(--sfr-surface));
}
.sfr-a01__analysis-card .sfr-a01__card-body{padding:12px 14px 15px}
.sfr-a01__financial-table tbody tr:nth-child(even)>*{
  background:color-mix(in srgb,var(--sfr-surface-subtle) 38%,transparent);
}
.sfr-a01__financial-table tbody tr:hover>*{
  background:color-mix(in srgb,var(--sfr-info-bg) 42%,var(--sfr-surface));
}
.sfr-a01__financial-table tbody th{color:var(--sfr-ink)}
.sfr-a01__financial-table td{font-variant-numeric:tabular-nums}

/* Interpretation: visually separate evidence, risk, and the action plan. */
.sfr-a01__insight-layout{gap:18px}
.sfr-a01__insight-card{
  position:relative;
  overflow:hidden;
  min-height:94px;
  padding:16px;
}
.sfr-a01__insight-card:before{
  content:"";
  position:absolute;
  inset-block:0;
  inset-inline-start:0;
  width:3px;
  background:var(--sfr-info-text);
}
.sfr-a01__insight-card--risk:before{background:var(--sfr-caution)}
.sfr-a01__insight-card--strength:before{background:var(--sfr-positive)}
.sfr-a01__insight-card h3{font-size:15px}
.sfr-a01__recommendation{
  position:relative;
  min-height:148px;
  padding:17px;
  box-shadow:0 7px 18px rgba(15,23,42,.035);
}
.sfr-a01__recommendation-impact{font-weight:650}

/* Models: make scenarios feel like deliberate choices, not generic cards. */
.sfr-a01__scenario{
  min-height:196px;
  text-align:right;
  cursor:pointer;
  transition:transform var(--sfr-transition),border-color var(--sfr-transition),box-shadow var(--sfr-transition);
}
.sfr-a01__scenario:hover{transform:translateY(-1px)}
.sfr-a01__scenario.is-selected{
  border-color:color-mix(in srgb,var(--sfr-brand-500) 68%,var(--sfr-border));
  box-shadow:0 0 0 2px color-mix(in srgb,var(--sfr-brand-500) 12%,transparent),0 12px 24px rgba(15,23,42,.05);
}
.sfr-a01__axis{min-height:116px}
.sfr-a01__axis strong{font-size:14px;line-height:1.6}

/* Professional report: improved on-screen preview while print rules remain authoritative. */
.sfr-a01__report-actions{margin-bottom:14px!important}
.sfr-a01__report-shell{
  border-radius:12px;
  overflow:hidden;
  box-shadow:0 20px 50px rgba(15,23,42,.13);
}
.sfr-a01__report-head{background:linear-gradient(180deg,#ffffff,#f8fafc)}
.sfr-a01__report-body{padding-block:32px}
.sfr-a01__report-section p,.sfr-a01__report-section li{font-size:13.5px;line-height:1.9}
.sfr-a01__report-section ol{margin-block:0;padding-inline-start:24px}
.sfr-a01__report-section li+li{margin-top:8px}
.sfr-a01__report-metric{background:#fff}

@media (max-width:1160px){
  .sfr-a01__action-card{min-height:0;padding:19px 20px}
  .sfr-a01__action-box{min-height:0}
  .sfr-a01__data-layout{gap:14px}
}
@media (max-width:900px){
  .sfr-a01__page-head:after{opacity:.22}
  .sfr-a01__data-rail{position:static}
  .sfr-a01__scenario{min-height:180px}
}
@media (max-width:650px){
  .sfr-a01__action-card{padding:17px}
  .sfr-a01__data-section summary{min-height:60px;padding-inline:14px}
  .sfr-a01__field-grid{padding-inline:14px}
  .sfr-a01__analysis-card .sfr-a01__card-body{padding-inline:10px}
  .sfr-a01__insight-card,.sfr-a01__recommendation{min-height:0}
  .sfr-a01__scenario{min-height:0}
  .sfr-a01__report-shell{border-radius:8px}
}
