/* MIHHAR — حاسبة مكافأة نهاية الخدمة (4.24.0). This tool's page only. Mobile-first, RTL, no animation. */
.mh-eos { display: grid; gap: 14px; }
.mh-eos__row { display: grid; gap: 14px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 640px) { .mh-eos__row { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.mh-eos__field { display: grid; gap: 6px; min-width: 0; }
.mh-eos__label { color: var(--t-text); font-size: 14.5px; font-weight: 700; line-height: 1.6; }
.mh-eos__label em { color: var(--t-gold); font-style: normal; }
.mh-eos input[type="text"], .mh-eos input[type="date"], .mh-eos select {
  width: 100%; min-width: 0; min-height: 48px; padding: 10px 12px; border-radius: 12px;
  border: 1px solid rgba(255,255,255,.14); background: var(--t-raise); color: var(--t-text);
  font: inherit; font-size: 16px; line-height: 1.5; color-scheme: dark;
}
.mh-eos input[name="wage"] { text-align: start; }
.mh-eos input::placeholder { color: var(--t-text-3); }
.mh-eos input:focus-visible, .mh-eos select:focus-visible, .mh-eos button:focus-visible, .mh-tool__result button:focus-visible, .mh-tool__result a:focus-visible {
  outline: 2px solid var(--t-accent); outline-offset: 2px;
}
.mh-eos__hint { margin: 0; color: var(--t-text-3); font-size: 13.5px; line-height: 1.7; }
.mh-eos__lang { margin: 0; padding: 0; border: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; min-width: 0; }
.mh-eos__lang legend { padding: 0; margin-bottom: 6px; width: 100%; }
.mh-eos__lang label { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; color: var(--t-text-2); font-size: 15px; cursor: pointer; }
.mh-eos__lang input { width: 18px; height: 18px; accent-color: var(--t-accent); margin: 0; }
.mh-eos__actions { display: flex; }
.mh-eos__submit, .mh-eos__copy {
  display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 22px;
  border-radius: 999px; font: inherit; font-size: 16px; font-weight: 800; cursor: pointer;
}
.mh-eos__submit { width: 100%; border: 0; background: var(--t-accent); color: #080b12; }
@media (min-width: 640px) { .mh-eos__submit { width: auto; } }
.mh-eos__submit:disabled { opacity: .6; cursor: progress; }
.mh-eos__status { margin: 0; min-height: 1.7em; color: var(--t-text-2); font-size: 14.5px; }
.mh-eos__status.is-error { color: #ff9b9b; }

/* Result */
.mh-eos__result { display: grid; gap: 10px; min-width: 0; }
.mh-eos__amount { margin: 0; display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 10px; }
.mh-eos__num { font-size: clamp(32px, 9vw, 44px); font-weight: 800; line-height: 1.2; color: var(--t-text); direction: ltr; unicode-bidi: isolate; overflow-wrap: anywhere; }
.mh-eos__cur { font-size: 16px; font-weight: 700; color: var(--t-gold); }
.mh-eos__meta { margin: 0; color: var(--t-text-2); font-size: 14.5px; }
.mh-eos__rule { margin: 0; padding: 12px 14px; border-radius: 12px; background: rgba(79,140,255,.08); border: 1px solid rgba(79,140,255,.25); color: var(--t-text); font-size: 15px; line-height: 1.8; }
.mh-eos__h3 { margin: 8px 0 0; font-size: 17px; font-weight: 800; }
.mh-eos__steps { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; counter-reset: s; }
.mh-eos__steps li { min-width: 0; display: grid; gap: 2px; padding: 10px 14px; border-radius: 12px; background: var(--t-raise); border: 1px solid var(--t-line); }
.mh-eos__step-label { color: var(--t-text-2); font-size: 13.5px; }
.mh-eos__step-value { color: var(--t-text); font-size: 15.5px; font-weight: 700; overflow-wrap: anywhere; unicode-bidi: plaintext; }
.mh-eos__notes { margin: 0; padding-inline-start: 20px; color: var(--t-text-3); font-size: 13.5px; line-height: 1.8; display: grid; gap: 4px; }
.mh-eos__bar { display: flex; flex-wrap: wrap; gap: 10px; }
.mh-eos__copy { border: 1px solid rgba(79,140,255,.45); background: transparent; color: var(--t-accent); font-size: 15px; min-height: 44px; padding: 0 18px; }
.mh-eos__copy.is-done { border-color: rgba(46,204,113,.5); color: #7ee2a8; }
.mh-eos__cta { margin-top: 18px; padding: 16px; border-radius: 14px; border: 1px solid var(--t-line); background: var(--t-bg); display: grid; gap: 6px; }
.mh-eos__cta-title { margin: 0; color: var(--t-text); font-size: 16.5px; font-weight: 800; }
.mh-eos__cta-link, .mh-eos__cta-more a { display: inline-flex; align-items: center; min-height: 44px; color: var(--t-accent) !important; font-weight: 700; }
.mh-eos__cta-more { margin: 0; color: var(--t-text-2); font-size: 14.5px; }
#mh-eos-result:focus { outline: none; }
