/* Somente Nova proposta > Dados para simulação.
   Lê a margem já entregue pelo CRM, sem novas consultas. */
#automation-bank-flow-backdrop .automation-simulation-section .automation-proposal-simulation-grid > .automation-crm-margin-panel {
  grid-column:5;
  grid-row:1 / span 2;
  align-self:stretch;
  min-width:0;
  min-height:0;
  position:relative;
  isolation:isolate;
  overflow:hidden;
  display:flex;
  flex-direction:column;
  justify-content:center;
  gap:10px;
  padding:18px 16px;
  border:1px solid rgba(94,195,255,.38);
  border-radius:17px;
  color:#e7f7ff;
  background:radial-gradient(ellipse at 90% 0%,rgba(75,178,255,.24),transparent 67%),
    linear-gradient(156deg,#133657,#092540 72%,#082139);
  box-shadow:0 14px 28px rgba(2,12,34,.23),inset 0 1px 0 rgba(221,246,255,.12),
    0 0 24px rgba(44,157,241,.09);
}
#automation-bank-flow-backdrop .automation-simulation-section .automation-crm-margin-panel::before {
  content:"";
  position:absolute;
  inset:0;
  z-index:-1;
  pointer-events:none;
  opacity:.26;
  background-image:linear-gradient(rgba(124,204,255,.18) 1px,transparent 1px),
    linear-gradient(90deg,rgba(124,204,255,.18) 1px,transparent 1px);
  background-size:25px 25px;
  mask-image:linear-gradient(135deg,#000,transparent 90%);
}
#automation-bank-flow-backdrop .automation-simulation-section .automation-crm-margin-panel::after {
  content:"";
  position:absolute;
  top:-62px;
  right:-65px;
  z-index:-1;
  pointer-events:none;
  width:160px;
  height:160px;
  border-radius:50%;
  background:radial-gradient(circle,rgba(53,196,255,.22),transparent 70%);
  filter:blur(11px);
}
#automation-bank-flow-backdrop .automation-simulation-section .automation-crm-margin-label {
  display:inline-flex;
  align-items:center;
  gap:7px;
  color:#92dafa;
  font-size:10px;
  font-weight:850;
  letter-spacing:.085em;
  line-height:1.35;
  text-transform:uppercase;
}
#automation-bank-flow-backdrop .automation-simulation-section .automation-crm-margin-label::before {
  content:"";
  flex:0 0 7px;
  width:7px;height:7px;
  border-radius:50%;
  background:#61d9ff;
  box-shadow:0 0 0 4px rgba(64,194,250,.10),0 0 13px rgba(98,216,255,.36);
}
#automation-bank-flow-backdrop .automation-simulation-section .automation-crm-margin-value {
  display:block;
  color:#69ff95;
  font-size:clamp(21px,2vw,31px);
  line-height:1.1;
  font-weight:850;
  letter-spacing:-.042em;
  overflow-wrap:anywhere;
  font-variant-numeric:tabular-nums;
  /* Only light the letter contours: no luminous rectangle or background. */
  text-shadow:
    0 0 2px rgba(105,255,149,.70),
    0 0 7px rgba(67,245,137,.40),
    0 0 14px rgba(48,220,118,.18);
}
#automation-bank-flow-backdrop .automation-simulation-section .automation-crm-margin-source {
  display:block;
  color:#93bbd5;
  font-size:10px;
  font-weight:600;
  line-height:1.4;
}
#automation-bank-flow-backdrop .automation-simulation-section .automation-crm-margin-panel.is-unavailable .automation-crm-margin-value {
  color:#b9d5e9;
  font-size:20px;
}
html[data-app-theme="light"] #automation-bank-flow-backdrop .automation-simulation-section .automation-crm-margin-panel {
  border-color:#bddcf3;
  color:#173c57;
  background:radial-gradient(ellipse at 90% 0%,rgba(141,210,255,.40),transparent 65%),
    linear-gradient(155deg,#f6fbff,#e6f3ff);
  box-shadow:0 10px 27px rgba(30,86,147,.11),inset 0 1px 0 #fff;
}
html[data-app-theme="light"] #automation-bank-flow-backdrop .automation-simulation-section .automation-crm-margin-label {color:#3b7297;}
html[data-app-theme="light"] #automation-bank-flow-backdrop .automation-simulation-section .automation-crm-margin-value {
  color:#128e43;
  text-shadow:
    0 0 2px rgba(39,175,93,.23),
    0 0 7px rgba(39,175,93,.11);
}
html[data-app-theme="light"] #automation-bank-flow-backdrop .automation-simulation-section .automation-crm-margin-source {color:#52778f;}
@media(max-width:1170px) {
  #automation-bank-flow-backdrop .automation-simulation-section .automation-proposal-simulation-grid > .automation-crm-margin-panel {
    grid-column:1 / -1;
    grid-row:auto;
    min-height:100px;
    padding:15px 18px;
    gap:7px;
  }
}
@media(max-width:650px) {
  #automation-bank-flow-backdrop .automation-simulation-section .automation-crm-margin-value {font-size:26px;}
}
