/* ARF v1.3.0 - scoped calculator styles. */
.arf-fc {
  --arf-navy: #103551;
  --arf-icon: #0E3453;
  --arf-deep: #0c2a48;
  --arf-blue: #1652ec;
  --arf-purple: #5b22c7;
  --arf-gold: #ffd52c;
  --arf-orange: #ffa52d;
  --arf-muted: #6d7b8d;
  --arf-stroke: #e6eaf2;
  --arf-ink: #122f49;
  box-sizing: border-box;
  width: 100%;
  max-width: 1240px;
  margin: 24px auto;
  direction: rtl;
  color: var(--arf-ink);
  font-family: "IBM Plex Sans Arabic", "Tajawal", "Cairo", Tahoma, Arial, sans-serif;
  font-size: 15px;
  line-height: 1.6;
  isolation: isolate;
}
.arf-fc *, .arf-fc *::before, .arf-fc *::after { box-sizing: border-box; }
.arf-fc button, .arf-fc input, .arf-fc select { font-family: inherit; line-height: 1.5; }
.arf-fc button { cursor: pointer; border: 0; text-transform: none; letter-spacing: 0; }
.arf-fc button:focus-visible, .arf-fc input:focus-visible, .arf-fc select:focus-visible, .arf-fc summary:focus-visible {
  outline: 3px solid rgba(75, 67, 231, .33);
  outline-offset: 2px;
}
.arf-fc .arf-fc-surface {
  background: linear-gradient(135deg,#ffffff 45%,#fbfcff 100%);
  border: 1px solid #e9eaf3;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 18px 60px rgba(25, 34, 85, .07), 0 2px 8px rgba(20, 26, 60, .035);
}



.arf-fc .arf-fc-workspace { display:grid; grid-template-columns:minmax(0,1.06fr) minmax(0,.94fr); gap:25px; align-items:stretch; padding:19px 32px 24px; }
.arf-fc .arf-fc-editor {
  background:#fff; border:1px solid #edf0f6; border-radius:19px; padding:26px 26px 20px;
  box-shadow:0 6px 22px rgba(36,51,91,.03); min-width:0;
}
.arf-fc .arf-fc-step { display:inline-flex; align-items:center; gap:7px; padding:5px 10px; border-radius:7px; color:#2446c5; background:#eff3ff; font-weight:750; font-size:12px; }
.arf-fc .arf-fc-editor-heading h3 { margin:10px 0 3px; color:#102f4a; font-size:clamp(21px,2.3vw,25px); line-height:1.5; font-weight:850; }
.arf-fc .arf-fc-editor-heading p { margin:0 0 19px; color:#718094; font-size:13.5px; }
.arf-fc .arf-fc-fields { display:flex; flex-direction:column; gap:13px; }
.arf-fc .arf-fc-field { padding:0 0 13px; border-bottom:1px solid #f0f2f7; }
.arf-fc .arf-fc-field:last-child { border-bottom:0; padding-bottom:0; }
.arf-fc .arf-fc-field-row { display:flex; justify-content:space-between; gap:14px; align-items:center; margin-bottom:9px; }
.arf-fc .arf-fc-field-label { font-size:13.5px; color:#243d54; font-weight:750; line-height:1.5; flex:1 1 auto; }
.arf-fc .arf-fc-input-wrap { position:relative; display:flex; align-items:center; flex:0 0 156px; max-width:53%; border:1px solid #dfe4ec; background:#fdfdff; border-radius:10px; transition:border-color .2s,box-shadow .2s; overflow:hidden; }
.arf-fc .arf-fc-input-wrap:focus-within { border-color:#6c71ec; box-shadow:0 0 0 3px rgba(75,92,225,.09); }
.arf-fc .arf-fc-number-input { width:100%; min-width:0; padding:8px 9px; font-size:14px; font-weight:800; background:transparent; border:0; outline:0; text-align:center; direction:ltr; color:#153654; min-height:37px; box-shadow:none; -moz-appearance:textfield; }
.arf-fc .arf-fc-number-input:focus { box-shadow:none; background:transparent; border:0; outline:0; }
.arf-fc input.arf-fc-number-input::-webkit-inner-spin-button, .arf-fc input.arf-fc-number-input::-webkit-outer-spin-button { -webkit-appearance:none; margin:0; }
.arf-fc .arf-fc-field-unit { color:#8691a1; font-size:11px; padding:0 9px 0 5px; font-weight:800; white-space:nowrap; border-right:1px solid #edf0f5; }
.arf-fc .arf-fc-form-actions { display:flex; align-items:center; gap:9px; margin-top:23px; }
.arf-fc .arf-fc-calculate { display:flex; flex:1; align-items:center; justify-content:center; gap:11px; min-height:49px; padding:12px 20px; border:0; border-radius:12px; color:#fff; font-size:16px; font-weight:800; background:linear-gradient(100deg,#103554 0%,#244ce7 63%,#5623c8 100%); box-shadow:0 6px 16px rgba(40,59,174,.16); transition:filter .2s ease,transform .2s ease; }
.arf-fc .arf-fc-calculate:hover { filter:brightness(1.08); transform:translateY(-1px); }
.arf-fc .arf-fc-calculate svg { height:20px; width:20px; }
.arf-fc .arf-fc-reset { min-height:49px; padding:0 13px; border:1px solid #e4e7ed; border-radius:12px; color:#69788c; background:#fff; font-size:15px; font-weight:700; white-space:nowrap; }
.arf-fc .arf-fc-reset:hover { background:#f5f7fc; color:#1b3c69; }
.arf-fc .arf-fc-form-error { padding:10px 12px; margin-top:13px; background:#fff1f0; border:1px solid #f8d2ce; color:#ad2924; border-radius:10px; font-size:12px; }
.arf-fc .arf-fc-result-side { min-width:0; padding:7px; border:1px solid #e3e8f1; border-radius:19px; background:linear-gradient(165deg,#f7f9fd 0%,#fff 90%); }
.arf-fc .arf-fc-result-hero { position:relative; overflow:hidden; isolation:isolate; min-height:174px; border:3px solid #f0c76e; border-radius:15px; background:linear-gradient(130deg,#0b2c48 0%,#103b61 53%,#192b60 100%); padding:22px 23px; color:#fff; box-shadow:0 10px 18px rgba(16,54,88,.12); }
.arf-fc .arf-fc-result-hero::before { content:""; position:absolute; width:230px; height:230px; bottom:-150px; left:-65px; background:radial-gradient(circle,rgba(255,214,89,.18),transparent 70%); }
.arf-fc .arf-fc-result-hero::after { content:""; position:absolute; inset:0; background:linear-gradient(120deg,transparent 62%,rgba(255,255,255,.035) 63%,transparent 89%); pointer-events:none; }
.arf-fc .arf-fc-result-topline { display:flex; align-items:center; gap:12px; justify-content:space-between; position:relative; z-index:1; }
.arf-fc .arf-fc-result-topline > span:first-child { color:#ffdd72; font-size:17px; font-weight:800; }
.arf-fc .arf-fc-result-badge { border:1px solid rgba(255,227,145,.35); background:rgba(255,229,132,.08); color:#f9de87; border-radius:8px; padding:3px 8px; font-size:10px; font-weight:700; }
.arf-fc .arf-fc-result-main { position:relative; z-index:1; display:flex; align-items:baseline; flex-wrap:wrap; gap:9px; margin-top:8px; color:#ffdf75; }
.arf-fc .arf-fc-main-number { font-family:inherit; font-weight:850; font-size:clamp(28px,3.1vw,43px); line-height:1.3; font-variant-numeric:tabular-nums; letter-spacing:-1px; overflow-wrap:anywhere; }
.arf-fc .arf-fc-main-unit { font-size:14px; font-weight:800; white-space:nowrap; }
.arf-fc .arf-fc-result-description { position:relative; z-index:1; margin:7px 0 0; color:#cad6e4; font-size:12.5px; }
.arf-fc .arf-fc-stats { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; padding:11px 2px; }
.arf-fc .arf-fc-stat { background:#fff; border:1px solid #ecedf1; box-shadow:0 3px 12px rgba(30,55,97,.04); min-width:0; border-radius:11px; padding:14px 13px; }
.arf-fc .arf-fc-stat-label { display:block; color:#7c899b; font-size:11px; font-weight:700; min-height:24px; }
.arf-fc .arf-fc-stat-value { display:block; font-size:clamp(14px,1.5vw,18px); font-weight:800; color:#143754; margin-top:5px; direction:ltr; text-align:right; overflow-wrap:anywhere; }
.arf-fc .arf-fc-chart-card { border:1px solid #e8edf4; border-radius:13px; background:#fff; margin-top:2px; padding:13px 16px 12px; }
.arf-fc .arf-fc-chart-head { display:flex; align-items:center; justify-content:space-between; gap:10px; }
.arf-fc .arf-fc-chart-heading { font-size:12px; color:#314762; font-weight:800; }
.arf-fc .arf-fc-chart-box { margin-top:6px; width:100%; height:135px; overflow:hidden; }
.arf-fc svg.arf-fc-chart { height:100%; width:100%; display:block; }
.arf-fc .arf-fc-chart-foot { display:flex; justify-content:space-between; color:#919cab; font-size:10px; font-weight:700; padding:1px 10px 0; }
.arf-fc .arf-fc-result-note { display:flex; gap:9px; align-items:flex-start; padding:10px 10px 5px; color:#6b7890; font-size:11px; line-height:1.75; }
.arf-fc .arf-fc-note-icon { color:#8f75d1; font-size:17px; line-height:1; }
.arf-fc .arf-fc-method { margin:0 32px 18px; background:#fbfcff; border:1px solid #e8ebf5; border-radius:13px; }
.arf-fc .arf-fc-method summary { cursor:pointer; padding:13px 17px; list-style:none; color:#23426a; font-size:13px; font-weight:800; }
.arf-fc .arf-fc-method summary::-webkit-details-marker { display:none; }
.arf-fc .arf-fc-method summary::before { content:"＋"; display:inline-block; margin-left:9px; color:#3d50d4; font-size:19px; vertical-align:middle; line-height:1; }
.arf-fc .arf-fc-method[open] summary::before { content:"−"; }
.arf-fc .arf-fc-method summary span { color:#96a1b1; font-size:11px; margin-right:9px; font-weight:600; }
.arf-fc .arf-fc-method-body { padding:2px 18px 18px; border-top:1px solid #edf0f5; color:#596980; font-size:12.5px; line-height:2; }
.arf-fc .arf-fc-method-body p { margin:9px 0 0; }
.arf-fc .arf-fc-footer { display:flex; flex-wrap:wrap; justify-content:space-between; gap:6px 22px; padding:13px 32px 15px; background:#f7f9fc; border-top:1px solid #eef0f6; color:#8390a3; font-size:11px; }




@media (max-width:1020px) {
.arf-fc .arf-fc-workspace { gap:16px; padding-left:18px; padding-right:18px; }
.arf-fc .arf-fc-editor { padding:22px 17px; }
.arf-fc .arf-fc-result-hero { padding:20px 17px; }
.arf-fc .arf-fc-method { margin-left:18px; margin-right:18px; }
}
@media (max-width:760px) {
.arf-fc { margin:12px auto; font-size:14px; }
.arf-fc .arf-fc-surface { border-radius:16px; }
.arf-fc .arf-fc-workspace { grid-template-columns:1fr; gap:16px; }
.arf-fc .arf-fc-result-side { max-width:none; }
.arf-fc .arf-fc-chart-box { height:150px; }
}
@media (max-width:520px) {

.arf-fc .arf-fc-workspace { padding:9px 11px 20px; }
.arf-fc .arf-fc-editor { padding:18px 14px; }
.arf-fc .arf-fc-field-row { gap:8px; }
.arf-fc .arf-fc-field-label { font-size:12.5px; }
.arf-fc .arf-fc-input-wrap { flex-basis:143px; max-width:53%; }
.arf-fc .arf-fc-number-input { font-size:13px; }
.arf-fc .arf-fc-main-number { font-size:31px; }
.arf-fc .arf-fc-method { margin:0 12px 14px; }
.arf-fc .arf-fc-method summary span { display:block; margin-right:29px; }
.arf-fc .arf-fc-footer { padding:13px 16px; font-size:10px; }
}
@media (prefers-reduced-motion: reduce) {
.arf-fc *, .arf-fc *::before, .arf-fc *::after { scroll-behavior:auto !important; transition:none !important; animation:none !important; }
}


.arf-fc { --arf-ink:#113553; --arf-stroke:#e1e6ee; }
.arf-fc .arf-fc-surface { background:#fff; border:1px solid #e3e8ef; border-radius:14px; box-shadow:0 5px 28px rgba(15,40,75,.045); }
.arf-fc .arf-fc-visually-hidden { position:absolute; width:1px; height:1px; overflow:hidden; clip-path:inset(50%); white-space:nowrap; }
.arf-fc .arf-fc-workspace { gap:18px; padding:24px 32px; }
.arf-fc .arf-fc-editor { border:1px solid #e6eaf1; border-radius:10px; box-shadow:none; padding:24px; }
.arf-fc .arf-fc-editor-heading h3 { font-size:22px; }
.arf-fc .arf-fc-step { padding:0; color:#666f80; background:none; border-radius:0; font-size:12px; font-weight:600; }
.arf-fc .arf-fc-result-side { padding:0; border:1px solid #e6eaf1; border-radius:10px; background:white; overflow:hidden; }
.arf-fc .arf-fc-result-hero { border:0; border-bottom:3px solid #f3c14c; border-radius:0; min-height:150px; padding:23px; background:linear-gradient(110deg,#0c314f,#153f64); box-shadow:none; }
.arf-fc .arf-fc-result-hero::before, .arf-fc .arf-fc-result-hero::after { display:none; }
.arf-fc .arf-fc-result-topline>span:first-child { color:#fff; font-size:14px; }
.arf-fc .arf-fc-result-badge { border:0; background:rgba(255,255,255,.1); color:#e1e8f0; }
.arf-fc .arf-fc-result-main { color:#fff; }
.arf-fc .arf-fc-stats { padding:12px; }
.arf-fc .arf-fc-stat { border-radius:7px; box-shadow:none; background:#f7f9fc; }
.arf-fc .arf-fc-chart-card { margin:0 12px 12px; border-radius:7px; }
.arf-fc .arf-fc-calculate { background:#194fbd; border-radius:7px; box-shadow:none; }
.arf-fc .arf-fc-calculate:hover { transform:none; background:#103f99; }
.arf-fc .arf-fc-reset { border-radius:7px; }
.arf-fc .arf-fc-method { border-radius:8px; background:#fff; }
.arf-fc .arf-fc-footer { background:#fff; }
@media (max-width:520px) {
.arf-fc .arf-fc-workspace { padding:15px 12px; }
}
.arf-fc svg.arf-fc-icon {
  display:inline-block; width:20px; height:20px; flex:0 0 auto;
  fill:none; color:var(--arf-icon); stroke:var(--arf-icon);
  stroke-width:1.8; vertical-align:middle;
}
.arf-fc .arf-fc-calculate {
  color:var(--arf-icon); background:var(--arf-gold); border:1px solid var(--arf-gold);
  box-shadow:none;
}
.arf-fc .arf-fc-calculate:hover, .arf-fc .arf-fc-calculate:focus-visible {
  color:var(--arf-icon); background:#f6cc23; border-color:#f6cc23;
  transform:none; filter:none; box-shadow:none;
}
.arf-fc .arf-fc-reset {
  display:inline-flex; align-items:center; justify-content:center; gap:7px;
  color:var(--arf-icon); padding:0 12px; font-size:12px;
}
.arf-fc .arf-fc-reset:hover {
  color:var(--arf-icon); background:#edf2f6; transform:none;
}

.arf-fc .arf-fc-note-icon { margin-top:2px; width:17px; height:17px; }
.arf-fc .arf-fc-method summary::before { content:none; display:none; }
.arf-fc svg.arf-fc-method-icon { width:17px; height:17px; margin-inline-end:8px; }
.arf-fc .arf-fc-method[open] .arf-fc-method-icon { transform:rotate(45deg); }
.arf-fc button:focus-visible, .arf-fc select:focus-visible, .arf-fc summary:focus-visible {
  outline:2px solid var(--arf-icon); outline-offset:3px;
}
@media (max-width:520px) {
.arf-fc .arf-fc-reset { padding:0 9px; font-size:11px; gap:5px; }
.arf-fc .arf-fc-reset .arf-fc-icon { width:16px; height:16px; }
}
.arf-fc .arf-fc-chart-foot { direction:ltr; }
.arf-fc .arf-fc-chart-foot > span { direction:rtl; }

/* v1.3: no banner, a flat row of seven tabs, one currency with its official symbol. */
.arf-fc .arf-fc-navigation {
  display:flex; flex-direction:row; align-items:center; gap:18px;
  margin:0; padding:14px 24px 0; border-bottom:1px solid #e1e6ee;
  background:#fff;
}
.arf-fc .arf-fc-tabs {
  display:flex; flex:1 1 0%; align-items:stretch; min-width:0; gap:3px;
  overflow-x:auto; overscroll-behavior-x:contain; padding:4px 2px 0;
  scrollbar-width:thin; scrollbar-color:#b5c4cf transparent;
  -webkit-overflow-scrolling:touch; scroll-padding-inline:5px;
}
.arf-fc button.arf-fc-tab {
  position:relative; flex:1 0 auto; display:inline-flex; justify-content:center;
  align-items:center; min-height:52px; margin:0; padding:11px 13px 15px;
  border:0; border-radius:5px 5px 0 0; background:transparent;
  color:#536a7e; font-size:13px; font-weight:600; line-height:1.55;
  white-space:nowrap; box-shadow:none; text-decoration:none;
  transition:background .15s ease,color .15s ease;
}
.arf-fc button.arf-fc-tab::after {
  content:""; position:absolute; inset-inline:8px; bottom:0; height:3px;
  background:transparent; border-radius:2px 2px 0 0;
}
.arf-fc button.arf-fc-tab:hover { color:#0E3453; background:#f5f8fa; transform:none; }
.arf-fc button.arf-fc-tab.is-active {
  background:#f0f5f8; color:#0E3453; font-weight:700;
}
.arf-fc button.arf-fc-tab.is-active::after { background:#0E3453; }
.arf-fc button.arf-fc-tab:focus-visible { outline:2px solid #0E3453; outline-offset:-4px; }


.arf-fc .arf-fc-workspace:focus-visible { outline:2px solid #0E3453; outline-offset:-4px; }
.arf-fc .arf-fc-noscript { color:#0E3453; border:1px solid #dfe6ec; padding:15px; }
.arf-fc .arf-fc-field-unit { display:flex; align-items:center; justify-content:center; color:#0E3453; }
.arf-fc svg.arf-fc-riyal-symbol {
  display:inline-block; width:.895em; height:1em; max-width:none;
  flex:0 0 auto; fill:currentColor; stroke:none; color:inherit;
  overflow:visible; vertical-align:-.1em; transform:none;
}
.arf-fc svg.arf-fc-riyal-symbol path { fill:currentColor; stroke:none; }
.arf-fc .arf-fc-field-unit svg.arf-fc-riyal-symbol { font-size:15px; }
.arf-fc .arf-fc-money {
  display:inline-flex; direction:ltr; unicode-bidi:isolate; align-items:center;
  gap:.36em; white-space:nowrap; color:inherit; font:inherit;
  line-height:inherit; vertical-align:baseline;
}
.arf-fc .arf-fc-money .arf-fc-riyal-symbol { height:.9em; width:.8055em; }
.arf-fc .arf-fc-money-number { direction:ltr; unicode-bidi:isolate; font:inherit; color:inherit; }
.arf-fc .arf-fc-result-main { direction:ltr; justify-content:flex-end; align-items:baseline; flex-wrap:nowrap; gap:12px; }
.arf-fc .arf-fc-result-main.is-money .arf-fc-main-unit { order:-1; font-size:clamp(28px,3.1vw,43px); line-height:1.3; }
.arf-fc .arf-fc-result-main.is-money .arf-fc-main-unit svg { height:.86em; width:.77em; }
.arf-fc .arf-fc-main-number { min-width:0; }
.arf-fc .arf-fc-formatted-number { unicode-bidi:isolate; font:inherit; }
@media(max-width:1020px) {
  .arf-fc .arf-fc-navigation { margin:0; padding:12px 18px 0; gap:12px; }
  .arf-fc button.arf-fc-tab { padding-inline:12px; }
  
}
@media(max-width:520px) {
  .arf-fc .arf-fc-navigation { margin:0; padding:10px 12px 0; gap:8px; }
  .arf-fc button.arf-fc-tab { min-height:50px; font-size:12px; padding:10px 12px 14px; }
  .arf-fc .arf-fc-result-main.is-money .arf-fc-main-unit { font-size:31px; }
  .arf-fc .arf-fc-result-main { gap:8px; }
  .arf-fc .arf-fc-result-main:has(.arf-fc-main-number[data-long="true"]) .arf-fc-main-number { font-size:24px; }
}


/* Exact large amounts may wrap rather than being clipped or abbreviated. */
.arf-fc .arf-fc-money { max-width:100%; white-space:normal; }
.arf-fc .arf-fc-money-number { min-width:0; overflow-wrap:anywhere; }

/* v1.3.3: Tajawal Bold across the entire calculator, isolated from the WP theme. */
.arf-fc,
.arf-fc *,
.arf-fc *::before,
.arf-fc *::after {
  font-family: "Tajawal", Tahoma, Arial, sans-serif !important;
  font-weight: 700 !important;
}

/* v1.3.4: uncluttered editable fields and yearly projection chart. */
.arf-fc .arf-fc-field-row { margin-bottom:0; min-height:50px; }
.arf-fc .arf-fc-field { padding:0 0 11px; }
.arf-fc .arf-fc-field + .arf-fc-field { padding-top:9px; }
.arf-fc .arf-fc-input-wrap { flex-basis:180px; max-width:58%; }
.arf-fc .arf-fc-number-input { font-variant-numeric:tabular-nums; letter-spacing:0; font-size:16px; min-height:43px; }
.arf-fc .arf-fc-editor-heading h3 { margin-top:0; }
.arf-fc .arf-fc-chart-card { padding:15px 14px 14px; }
.arf-fc .arf-fc-chart-head { padding-bottom:6px; }
.arf-fc .arf-fc-chart-box { height:186px; margin-top:8px; }
.arf-fc .arf-fc-chart-x-axis {
  width:100%; height:24px; position:relative; direction:ltr;
  border-bottom:1px solid #eef2f5; margin-top:0;
}
.arf-fc .arf-fc-chart-tick {
  position:absolute; top:1px; transform:translateX(-50%);
  color:#556b7f; font-size:11px; direction:ltr; line-height:22px;
  font-variant-numeric:tabular-nums; white-space:nowrap;
}
.arf-fc .arf-fc-chart-x-caption { text-align:center; font-size:11px; color:#748394; padding-top:6px; }
.arf-fc .arf-fc-chart-milestones { border-top:1px solid #e8edf2; margin-top:13px; padding-top:12px; }
.arf-fc .arf-fc-chart-milestones-title { color:#344e67; font-size:12px; margin-bottom:10px; }
.arf-fc .arf-fc-chart-milestone-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:7px; }
.arf-fc .arf-fc-chart-milestone { min-width:0; border:1px solid #e6edf3; border-radius:7px; padding:7px 10px; display:flex; align-items:center; justify-content:space-between; gap:7px; background:#fafcfd; }
.arf-fc .arf-fc-chart-milestone-year { color:#6a7889; font-size:10px; white-space:nowrap; }
.arf-fc .arf-fc-chart-milestone-amount { color:#0E3453; font-size:11px; text-align:left; min-width:0; }
.arf-fc .arf-fc-chart-milestone .arf-fc-money { white-space:normal; font-size:inherit; }
.arf-fc .arf-fc-chart-milestone .arf-fc-money-number { overflow-wrap:anywhere; }
@media (max-width:520px) {
  .arf-fc .arf-fc-input-wrap { flex-basis:160px; max-width:59%; }
  .arf-fc .arf-fc-number-input { font-size:14px; padding:8px 5px; }
  .arf-fc .arf-fc-chart-box { height:173px; }
  .arf-fc .arf-fc-chart-card { padding:13px 10px; }
  .arf-fc .arf-fc-chart-milestone { padding:7px; }
  .arf-fc .arf-fc-chart-milestone-amount { font-size:10px; }
}

/* v1.3.5: show a worked numerical explanation, one step per line. */
.arf-fc .arf-fc-method-body p { white-space: pre-line; overflow-wrap:anywhere; }


/* v1.3.7 — precisely aligned currency/percent/year/month units. */
.arf-fc .arf-fc-input-wrap {
  display: flex;
  align-items: stretch;
  height: 49px;
  min-width: 0;
  background: #fff;
  border-radius: 9px;
}
.arf-fc .arf-fc-number-input {
  flex: 1 1 0%;
  min-width: 0;
  width: auto;
  height: 100%;
  min-height: 0;
  margin: 0;
  padding: 0 10px;
  line-height: 49px;
  font-size: 16px;
  text-align: center;
  background: transparent;
}
.arf-fc .arf-fc-field-unit {
  flex: 0 0 52px;
  width: 52px;
  min-width: 52px;
  height: 100%;
  margin: 0;
  padding: 0;
  border-right: 1px solid #e2e9f0;
  background: #f8fafc;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: #0E3453;
  font-size: 14px;
  line-height: 1;
}
.arf-fc .arf-fc-field-unit svg.arf-fc-riyal-symbol {
  display: block;
  width: 18px;
  height: 20px;
  font-size: 20px;
  margin: 0;
  transform: none;
}
/* v1.3.7 — explanation is visible, legible and short. */
.arf-fc .arf-fc-method {
  margin: 0 32px 22px;
  padding: 17px 20px 18px;
  border: 1px solid #dde7ee;
  border-inline-start: 4px solid #e3bd42;
  border-radius: 10px;
  background: #f8fafc;
  box-shadow: none;
}
.arf-fc .arf-fc-method-heading {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 9px;
  padding: 0;
  color: #0E3453;
  font-size: 17px;
  line-height: 1.5;
  border: 0;
  background: transparent;
}
.arf-fc svg.arf-fc-method-icon {
  display: inline-block;
  width: 19px;
  height: 19px;
  margin: 0;
  color: #0E3453;
  stroke: #0E3453;
  transform: none;
}
.arf-fc .arf-fc-method-body {
  padding: 0;
  margin: 0;
  border: 0;
  background: transparent;
  color: #334b61;
  font-size: 15px;
  line-height: 1.95;
}
.arf-fc .arf-fc-method-body p { margin: 0; white-space: normal; }
@media (max-width: 760px) {
  .arf-fc .arf-fc-method { margin: 0 18px 18px; padding: 15px 16px; }
}
@media (max-width: 520px) {
  .arf-fc .arf-fc-input-wrap { flex-basis: 160px; max-width: 60%; height: 47px; }
  .arf-fc .arf-fc-number-input { font-size: 14px; line-height: 47px; padding: 0 5px; }
  .arf-fc .arf-fc-field-unit { flex-basis: 46px; width: 46px; min-width: 46px; font-size: 13px; }
  .arf-fc .arf-fc-field-unit svg.arf-fc-riyal-symbol { width: 17px; height: 19px; }
  .arf-fc .arf-fc-method { margin: 0 12px 16px; padding: 13px 14px; }
  .arf-fc .arf-fc-method-heading { font-size: 16px; }
  .arf-fc .arf-fc-method-body { font-size: 14px; line-height: 1.9; }
}


/* v1.3.8 — matching input glyphs and truly equal action buttons.
   Overrides previous version styles and common theme button defaults. */
.arf-fc .arf-fc-field-unit {
  flex: 0 0 54px;
  width: 54px;
  min-width: 54px;
  max-width: 54px;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0;
  margin: 0;
  border-right: 1px solid #e2e9f0;
  background: #f8fafc;
  color: #0E3453;
  text-align: center;
}
.arf-fc .arf-fc-field-unit .arf-fc-unit-mark {
  display: flex;
  flex: 0 0 24px;
  width: 24px;
  height: 24px;
  align-items: center;
  justify-content: center;
  color: #0E3453;
  text-align: center;
  font-size: 19px;
  line-height: 24px;
  letter-spacing: 0;
}
.arf-fc .arf-fc-field-unit .arf-fc-unit-mark.is-text { font-size: 18px; }
.arf-fc .arf-fc-field-unit .arf-fc-unit-mark.is-text:not(:empty) { white-space: nowrap; }
.arf-fc .arf-fc-field-unit .arf-fc-unit-mark.is-riyal svg.arf-fc-riyal-symbol {
  display: block;
  width: 19px;
  height: 22px;
  max-width: none;
  margin: 0;
  padding: 0;
  flex: none;
  transform: none;
  color: #0E3453;
  fill: currentColor;
}
/* Larger words are still centered inside the SAME unit slot. */
.arf-fc .arf-fc-field-unit .arf-fc-unit-mark.is-text:has(+ *) { font-size: 16px; }
.arf-fc .arf-fc-form-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  align-items: stretch;
  width: 100%;
}
.arf-fc .arf-fc-form-actions > button.arf-fc-calculate,
.arf-fc .arf-fc-form-actions > button.arf-fc-reset {
  display: inline-flex;
  flex: none;
  width: 100%;
  min-width: 0;
  height: 56px;
  min-height: 56px;
  max-height: 56px;
  margin: 0;
  padding: 0 10px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border-width: 1px;
  border-style: solid;
  border-radius: 9px;
  font-size: 15px;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  box-sizing: border-box;
}
.arf-fc .arf-fc-form-actions > button.arf-fc-calculate {
  background: #ffd52c;
  border-color: #ffd52c;
  color: #0E3453;
  box-shadow: none;
}
.arf-fc .arf-fc-form-actions > button.arf-fc-reset {
  background: #ffffff;
  border-color: #dfe6ef;
  color: #0E3453;
  box-shadow: none;
}
.arf-fc .arf-fc-form-actions > button .arf-fc-action-icon {
  display: flex;
  flex: 0 0 24px;
  width: 24px;
  height: 24px;
  min-width: 24px;
  align-items: center;
  justify-content: center;
  line-height: 0;
  color: #0E3453;
}
.arf-fc .arf-fc-form-actions > button .arf-fc-action-icon svg.arf-fc-icon {
  display: block;
  width: 22px;
  height: 22px;
  min-width: 22px;
  min-height: 22px;
  max-width: 22px;
  max-height: 22px;
  margin: 0;
  padding: 0;
  stroke: #0E3453;
  stroke-width: 1.9;
  fill: none;
  transform: none;
}
.arf-fc .arf-fc-form-actions > button .arf-fc-action-label {
  display: inline-block;
  flex: 0 1 auto;
  white-space: nowrap;
  margin: 0;
  padding: 0;
  color: #0E3453;
  font-size: inherit;
  line-height: 1.2;
}
@media (max-width: 520px) {
  .arf-fc .arf-fc-field-unit { flex-basis: 48px; width: 48px; min-width: 48px; max-width: 48px; }
  .arf-fc .arf-fc-form-actions { gap: 8px; }
  .arf-fc .arf-fc-form-actions > button.arf-fc-calculate,
  .arf-fc .arf-fc-form-actions > button.arf-fc-reset {
    height: 52px; min-height: 52px; max-height: 52px;
    padding: 0 4px;
    gap: 5px;
    font-size: 13px;
  }
  .arf-fc .arf-fc-form-actions > button .arf-fc-action-icon { width: 21px; min-width: 21px; height: 21px; flex-basis: 21px; }
  .arf-fc .arf-fc-form-actions > button .arf-fc-action-icon svg.arf-fc-icon {
    width: 20px; height: 20px; min-width: 20px; min-height: 20px; max-width: 20px; max-height: 20px;
  }
}

/* Optical sizing: the Riyal SVG and percent sign have comparable visual height. */
.arf-fc .arf-fc-field-unit .arf-fc-unit-mark.is-riyal svg.arf-fc-riyal-symbol { width: 17px; height: 19px; }
.arf-fc .arf-fc-field-unit .arf-fc-unit-mark.is-percent { font-size: 22px; }
.arf-fc .arf-fc-field-unit .arf-fc-unit-mark.is-years,
.arf-fc .arf-fc-field-unit .arf-fc-unit-mark.is-months { font-size: 16px; }


/* v1.3.9 — clear formula-on-hover, negative value status, year labels and balanced units. */
.arf-fc .arf-fc-field-unit .arf-fc-unit-mark.is-percent {
  font-size: 26px !important;
  line-height: 1;
  width: 24px;
  height: 24px;
}
.arf-fc .arf-fc-field-unit .arf-fc-unit-mark.is-riyal svg.arf-fc-riyal-symbol {
  width: 19px; height: 22px;
}
.arf-fc .arf-fc-explain-target {
  cursor: help;
  text-decoration: underline dotted rgba(45, 87, 117, .4);
  text-underline-offset: 4px;
}
.arf-fc .arf-fc-explain-target:focus-visible {
  outline: 2px solid #d6a624;
  outline-offset: 3px;
  border-radius: 2px;
}
.arf-fc .arf-fc-main-unit.arf-fc-explain-target { display:inline-flex; align-items:center; }
.arf-fc .arf-fc-result-main.is-negative,
.arf-fc .arf-fc-result-main.is-negative .arf-fc-main-number,
.arf-fc .arf-fc-result-main.is-negative .arf-fc-main-unit,
.arf-fc .arf-fc-result-main.is-negative svg.arf-fc-riyal-symbol {
  color: #ff929a !important;
  fill: #ff929a !important;
}
.arf-fc .arf-fc-stat-value.is-negative,
.arf-fc .arf-fc-stat-value.is-negative .arf-fc-money,
.arf-fc .arf-fc-stat-value.is-negative svg.arf-fc-riyal-symbol,
.arf-fc .arf-fc-chart-milestone-amount.is-negative,
.arf-fc .arf-fc-chart-milestone-amount.is-negative svg.arf-fc-riyal-symbol {
  color: #bc2538 !important;
  fill: #bc2538 !important;
}
.arf-fc .arf-fc-chart-card.is-negative-chart .arf-fc-chart-line { stroke:#bd3145 !important; }
.arf-fc .arf-fc-chart-card.is-negative-chart .arf-fc-chart-dot { fill:#bd3145 !important; }
.arf-fc .arf-fc-result-hero { min-height: 146px; }
.arf-fc .arf-fc-chart-tick { font-size: 11px; }
.arf-fc .arf-fc-chart-milestone-amount.arf-fc-explain-target { display:inline-block; }
@media (max-width:520px) {
  .arf-fc .arf-fc-field-unit .arf-fc-unit-mark.is-percent { font-size:25px !important; }
  .arf-fc .arf-fc-chart-tick { font-size:10px; }
}
.arf-fc-formula-popover:not([hidden]) {
  position: fixed !important;
  display: block;
  box-sizing: border-box;
  max-width: calc(100vw - 16px);
  width: min(370px, 90vw);
  max-height: min(270px, 60vh);
  overflow-y: auto;
  z-index: 2147483647;
  pointer-events: none;
  padding: 13px 16px;
  border-radius: 11px;
  border: 1px solid #cbdbe6;
  background: #fff;
  box-shadow: 0 8px 28px rgba(3, 33, 55, .2);
  color: #0E3453;
  font: 700 13px/1.95 'Tajawal', Tahoma, Arial, sans-serif;
  text-align: right;
  direction: rtl;
  overflow-wrap: break-word;
  white-space: normal;
}
.arf-fc-formula-popover[hidden] { display: none !important; }
