/* ==========================================================================
   FHA Loan Calculator - Exact Clone Stylesheet
   Matches Reference Image 1 & 2 pixel-by-pixel with responsive modern design
   ========================================================================== */

.fha-page-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 12px 15px 40px;
  font-family: Arial, Helvetica, sans-serif;
  color: #333333;
}

/* Top Breadcrumbs & Actions Bar */
.fha-top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  margin-bottom: 8px;
  flex-wrap: wrap;
  gap: 10px;
}

.fha-breadcrumbs {
  color: #0844a4;
}

.fha-breadcrumbs a {
  color: #0844a4;
  text-decoration: none;
}

.fha-breadcrumbs a:hover {
  text-decoration: underline;
}

.fha-breadcrumbs .sep {
  color: #777777;
  margin: 0 4px;
}

.fha-breadcrumbs .current {
  color: #333333;
}

.fha-top-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.fha-top-btn {
  background: none;
  border: none;
  color: #0844a4;
  text-decoration: underline;
  cursor: pointer;
  font-size: 13px;
  font-family: inherit;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 4px;
}

.fha-top-btn:hover {
  color: #052c6e;
}

/* Page Title & Intro */
.fha-page-title {
  color: #1e4a7a;
  font-size: 26px;
  font-weight: bold;
  margin: 0 0 10px 0;
}

.fha-intro-desc {
  font-size: 13px;
  line-height: 1.5;
  color: #333333;
  margin: 0 0 14px 0;
}

/* Instruction Banner */
.fha-instruction-banner {
  background-color: #2b619e;
  color: #ffffff;
  padding: 5px 10px;
  font-size: 13px;
  display: flex;
  align-items: center;
  gap: 6px;
  border-radius: 2px;
  margin-bottom: 15px;
}

/* Two Column Layout */
.fha-main-layout {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.fha-calc-col {
  flex: 1 1 54%;
  min-width: 0;
}

.fha-sidebar-col {
  flex: 1 1 46%;
  min-width: 0;
}

/* Calculator Form Box */
.fha-calc-box {
  background-color: #f8fafc;
  border: 1px solid #cbd5e1;
  border-radius: 4px;
  padding: 14px 16px;
  margin-bottom: 15px;
}

.fha-form-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 9px;
  font-size: 13px;
}

.fha-form-label {
  flex: 0 0 42%;
  color: #333333;
  font-weight: normal;
}

.fha-form-field {
  flex: 0 0 58%;
  display: flex;
  align-items: center;
  gap: 6px;
  justify-content: flex-end;
}

.fha-input {
  padding: 4px 6px;
  border: 1px solid #a4b4c4;
  border-radius: 2px;
  font-size: 13px;
  background-color: #ffffff;
  color: #111827;
  box-sizing: border-box;
}

.fha-input:focus {
  outline: none;
  border-color: #0844a4;
  box-shadow: 0 0 0 1px #0844a4;
}

.fha-input-currency {
  width: 140px;
  text-align: right;
}

.fha-input-pct {
  width: 65px;
  text-align: right;
}

.fha-input-term {
  width: 65px;
  text-align: right;
}

.fha-select {
  padding: 4px 6px;
  border: 1px solid #a4b4c4;
  border-radius: 2px;
  font-size: 13px;
  background-color: #ffffff;
  color: #111827;
}

.fha-select:focus {
  outline: none;
  border-color: #0844a4;
}

/* Optional Group */
.fha-optional-header {
  margin: 12px 0 8px;
  padding-top: 8px;
  border-top: 1px dashed #cbd5e1;
  font-size: 13px;
  font-weight: bold;
  color: #1e3a8a;
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
}

.fha-optional-content {
  margin-top: 6px;
}

/* More options collapsible */
.fha-more-options-toggle {
  display: inline-block;
  color: #0844a4;
  font-size: 12px;
  text-decoration: underline;
  cursor: pointer;
  margin: 8px 0;
}

.fha-more-options-content {
  background: #f1f5f9;
  padding: 8px 10px;
  border-radius: 3px;
  margin-bottom: 10px;
  border: 1px solid #e2e8f0;
}

/* Button Row */
.fha-btn-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
}

.fha-btn-calc {
  background-color: #2b7a32;
  color: #ffffff;
  border: 1px solid #1f5c25;
  border-radius: 3px;
  padding: 5px 18px;
  font-size: 14px;
  font-weight: bold;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.fha-btn-calc:hover {
  background-color: #236529;
}

.fha-btn-clear {
  background-color: #e2e8f0;
  color: #334155;
  border: 1px solid #cbd5e1;
  border-radius: 3px;
  padding: 5px 14px;
  font-size: 13px;
  cursor: pointer;
}

.fha-btn-clear:hover {
  background-color: #cbd5e1;
}

/* Latest Mortgage Rates Ticker Box */
.fha-rate-box {
  background-color: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 3px;
  padding: 10px 12px;
  margin-bottom: 18px;
  font-size: 12px;
  line-height: 1.5;
}

.fha-rate-box-title {
  font-weight: bold;
  color: #0f172a;
  margin-bottom: 4px;
}

.fha-rate-box-rates {
  color: #334155;
  margin-bottom: 8px;
}

.fha-rate-box-rates strong {
  color: #0844a4;
}

.fha-rate-box-links {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.fha-rate-box-btn {
  background-color: #f1f5f9;
  border: 1px solid #cbd5e1;
  border-radius: 2px;
  padding: 3px 8px;
  font-size: 11.5px;
  color: #0844a4;
  text-decoration: none;
  cursor: pointer;
}

.fha-rate-box-btn:hover {
  background-color: #e2e8f0;
  text-decoration: underline;
}

/* Results Card */
.fha-results-box {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 3px;
  margin-bottom: 16px;
  overflow: hidden;
}

.fha-results-header {
  background-color: #2b7a32;
  color: #ffffff;
  padding: 8px 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.fha-results-title {
  font-size: 16px;
  font-weight: bold;
}

.fha-results-save-link {
  color: #ffffff;
  font-size: 12px;
  text-decoration: underline;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  background: none;
  border: none;
  font-family: inherit;
}

.fha-results-save-link:hover {
  opacity: 0.9;
}

/* Results Breakdown Table */
.fha-results-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12.5px;
}

.fha-results-table th {
  background-color: #f1f5f9;
  padding: 6px 10px;
  text-align: right;
  font-weight: bold;
  color: #334155;
  border-bottom: 1px solid #cbd5e1;
}

.fha-results-table th:first-child {
  text-align: left;
}

.fha-results-table td {
  padding: 5px 10px;
  text-align: right;
  border-bottom: 1px solid #e2e8f0;
  color: #334155;
}

.fha-results-table td:first-child {
  text-align: left;
  color: #111827;
}

.fha-results-table tr:nth-child(even) td {
  background-color: #f8fafc;
}

.fha-results-table tr.fha-row-total td {
  background-color: #edf5ea;
  font-weight: bold;
  color: #1e3a8a;
  border-top: 1px solid #cbd5e1;
  border-bottom: 1px solid #cbd5e1;
}

/* Donut Chart & Legend Section */
.fha-chart-section {
  padding: 14px 10px;
  display: flex;
  align-items: center;
  justify-content: space-around;
  border-bottom: 1px solid #cbd5e1;
  gap: 12px;
  flex-wrap: wrap;
}

.fha-donut-svg-wrap {
  width: 160px;
  height: 160px;
  position: relative;
}

.fha-donut-legend {
  font-size: 11.5px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.fha-legend-item {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #334155;
}

.fha-legend-color {
  width: 11px;
  height: 11px;
  border-radius: 2px;
  display: inline-block;
}

/* Summary Details List */
.fha-summary-details {
  padding: 10px 14px;
  font-size: 12.5px;
}

.fha-summary-row {
  display: flex;
  justify-content: space-between;
  padding: 3px 0;
  border-bottom: 1px dotted #e2e8f0;
}

.fha-summary-row:last-child {
  border-bottom: none;
}

.fha-summary-label {
  color: #475569;
}

.fha-summary-val {
  font-weight: bold;
  color: #0f172a;
}

/* Search Box in Sidebar */
.fha-side-search-form {
  display: flex;
  gap: 6px;
  margin-bottom: 16px;
  position: relative;
}

.fha-side-search-wrap {
  flex: 1;
  position: relative;
}

.fha-side-search-input {
  width: 100%;
  padding: 5px 8px;
  border: 1px solid #a4b4c4;
  border-radius: 2px;
  font-size: 13px;
  box-sizing: border-box;
}

.fha-side-search-btn {
  background-color: #2b619e;
  color: #ffffff;
  border: 1px solid #1e4a7a;
  border-radius: 2px;
  padding: 5px 14px;
  font-size: 13px;
  cursor: pointer;
}

.fha-side-search-btn:hover {
  background-color: #1e4a7a;
}

.fha-search-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: #ffffff;
  border: 1px solid #94a3b8;
  border-top: none;
  border-radius: 0 0 3px 3px;
  max-height: 250px;
  overflow-y: auto;
  z-index: 1000;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
  display: none;
}

.fha-search-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 7px 10px;
  text-decoration: none;
  font-size: 12.5px;
  color: #0844a4;
  border-bottom: 1px solid #f1f5f9;
}

.fha-search-item:hover, .fha-search-item.active {
  background-color: #e0f2fe;
}

.fha-search-item .cat-label {
  font-size: 11px;
  color: #64748b;
}

/* Sidebar Financial Calculators Directory Card */
.fha-side-card {
  border: 1px solid #cbd5e1;
  border-radius: 3px;
  margin-bottom: 16px;
  background-color: #ffffff;
  overflow: hidden;
}

.fha-side-card-title {
  background-color: #2b619e;
  color: #ffffff;
  font-size: 13px;
  font-weight: bold;
  padding: 5px 10px;
}

.fha-side-card-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  padding: 8px 10px;
  gap: 4px 12px;
  font-size: 12px;
}

.fha-side-card-grid a {
  color: #0844a4;
  text-decoration: none;
  padding: 2px 0;
}

.fha-side-card-grid a:hover {
  text-decoration: underline;
}

.fha-side-footer-links {
  font-size: 11.5px;
  text-align: center;
  color: #64748b;
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 8px;
}

.fha-side-footer-links a {
  color: #0844a4;
  text-decoration: none;
}

.fha-side-footer-links a:hover {
  text-decoration: underline;
}

/* Amortization Schedule Section */
.fha-schedule-section {
  margin-top: 25px;
  padding-top: 20px;
  border-top: 1px solid #cbd5e1;
}

.fha-schedule-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  flex-wrap: wrap;
  gap: 10px;
}

.fha-schedule-title {
  font-size: 18px;
  font-weight: bold;
  color: #1e4a7a;
  margin: 0;
}

.fha-schedule-tabs {
  display: flex;
  gap: 4px;
}

.fha-tab-btn {
  padding: 5px 12px;
  font-size: 12.5px;
  border: 1px solid #cbd5e1;
  background-color: #f1f5f9;
  color: #334155;
  cursor: pointer;
  border-radius: 2px;
}

.fha-tab-btn.active {
  background-color: #2b619e;
  color: #ffffff;
  border-color: #1e4a7a;
  font-weight: bold;
}

.fha-schedule-layout {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.fha-schedule-table-wrap {
  flex: 1 1 55%;
  max-height: 420px;
  overflow-y: auto;
  border: 1px solid #cbd5e1;
  border-radius: 3px;
}

.fha-schedule-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}

.fha-schedule-table th {
  background-color: #f1f5f9;
  position: sticky;
  top: 0;
  padding: 6px 8px;
  text-align: right;
  border-bottom: 2px solid #cbd5e1;
  color: #1e293b;
  font-weight: bold;
  z-index: 1;
}

.fha-schedule-table th:first-child,
.fha-schedule-table th:nth-child(2) {
  text-align: left;
}

.fha-schedule-table td {
  padding: 5px 8px;
  text-align: right;
  border-bottom: 1px solid #f1f5f9;
  color: #334155;
}

.fha-schedule-table td:first-child,
.fha-schedule-table td:nth-child(2) {
  text-align: left;
}

.fha-schedule-table tr:nth-child(even) td {
  background-color: #f8fafc;
}

.fha-schedule-graph-wrap {
  flex: 1 1 45%;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 3px;
  padding: 10px;
}

.fha-graph-header {
  font-size: 12px;
  font-weight: bold;
  color: #334155;
  margin-bottom: 6px;
  text-align: center;
}

.fha-graph-legend {
  display: flex;
  justify-content: center;
  gap: 12px;
  font-size: 11.5px;
  margin-top: 8px;
}

/* Fraction Arithmetic Section (Requirement 1) */
.fha-fraction-tool {
  background-color: #f8fafc;
  border: 1px solid #cbd5e1;
  border-radius: 4px;
  padding: 16px 18px;
  margin: 25px 0;
}

.fha-fraction-title {
  color: #1e4a7a;
  font-size: 17px;
  font-weight: bold;
  margin: 0 0 6px 0;
}

.fha-fraction-desc {
  font-size: 13px;
  color: #475569;
  margin: 0 0 14px 0;
  line-height: 1.5;
}

.fha-fraction-calc-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.fha-fraction-input-group {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #ffffff;
  padding: 6px 10px;
  border: 1px solid #cbd5e1;
  border-radius: 3px;
}

.fha-fraction-stack {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

.fha-fraction-stack input {
  width: 44px;
  text-align: center;
  padding: 2px 4px;
  border: 1px solid #cbd5e1;
  border-radius: 2px;
  font-size: 13px;
}

.fha-fraction-divider {
  width: 100%;
  height: 2px;
  background-color: #334155;
}

.fha-fraction-op-select {
  padding: 6px 10px;
  font-size: 16px;
  font-weight: bold;
  border: 1px solid #cbd5e1;
  border-radius: 3px;
  background: #ffffff;
}

.fha-btn-fraction-calc {
  background-color: #2b7a32;
  color: #ffffff;
  border: none;
  border-radius: 3px;
  padding: 8px 16px;
  font-size: 13.5px;
  font-weight: bold;
  cursor: pointer;
}

.fha-btn-fraction-calc:hover {
  background-color: #236529;
}

.fha-fraction-results-box {
  display: flex;
  gap: 16px;
  background: #ffffff;
  padding: 12px 14px;
  border: 1px solid #e2e8f0;
  border-radius: 3px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}

.fha-frac-res-item {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.fha-frac-res-label {
  font-size: 11px;
  color: #64748b;
  text-transform: uppercase;
}

.fha-frac-res-val {
  font-size: 18px;
  font-weight: bold;
  color: #1e3a8a;
}

.fha-fraction-steps {
  font-size: 12.5px;
  color: #334155;
  background: #f1f5f9;
  padding: 8px 12px;
  border-radius: 3px;
  margin-bottom: 12px;
}

.fha-frac-chart-container {
  margin-top: 10px;
}

.fha-frac-chart-title {
  font-size: 12px;
  font-weight: bold;
  color: #334155;
  margin-bottom: 6px;
}

/* SEO Content Section */
.fha-seo-section {
  margin-top: 25px;
  font-size: 13.5px;
  line-height: 1.6;
  color: #222222;
}

.fha-seo-section h2 {
  color: #1e4a7a;
  font-size: 19px;
  margin: 20px 0 10px 0;
  border-bottom: 1px solid #e2e8f0;
  padding-bottom: 4px;
}

.fha-seo-section h3 {
  color: #2b619e;
  font-size: 15px;
  margin: 16px 0 6px 0;
}

.fha-seo-section p {
  margin: 0 0 12px 0;
}

.fha-seo-section ul, .fha-seo-section ol {
  margin: 0 0 14px 20px;
}

.fha-seo-section li {
  margin-bottom: 4px;
}

.fha-seo-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12.5px;
  margin: 12px 0 18px;
  border: 1px solid #cbd5e1;
}

.fha-seo-table th {
  background-color: #2b619e;
  color: #ffffff;
  padding: 6px 10px;
  text-align: left;
  border: 1px solid #cbd5e1;
}

.fha-seo-table td {
  padding: 6px 10px;
  border: 1px solid #e2e8f0;
}

.fha-seo-table tr:nth-child(even) td {
  background-color: #f8fafc;
}

/* FAQ Accordions */
.fha-faq-container {
  margin-top: 24px;
}

.fha-faq-item {
  border: 1px solid #cbd5e1;
  border-radius: 3px;
  margin-bottom: 8px;
  overflow: hidden;
}

.fha-faq-question {
  width: 100%;
  text-align: left;
  background-color: #f8fafc;
  padding: 10px 14px;
  font-size: 13.5px;
  font-weight: bold;
  color: #0844a4;
  border: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.fha-faq-question:hover {
  background-color: #f1f5f9;
}

.fha-faq-answer {
  padding: 12px 14px;
  font-size: 13px;
  line-height: 1.6;
  color: #334155;
  background-color: #ffffff;
  border-top: 1px solid #e2e8f0;
  display: none;
}

.fha-faq-item.open .fha-faq-answer {
  display: block;
}

.fha-faq-item.open .fha-faq-arrow {
  transform: rotate(180deg);
}

/* Modals */
.fha-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding: 15px;
}

.fha-modal-card {
  background: #ffffff;
  border-radius: 4px;
  width: 100%;
  max-width: 500px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25);
  overflow: hidden;
}

.fha-modal-header {
  background-color: #2b619e;
  color: #ffffff;
  padding: 10px 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.fha-modal-title {
  font-size: 15px;
  font-weight: bold;
}

.fha-modal-close {
  background: none;
  border: none;
  color: #ffffff;
  font-size: 20px;
  cursor: pointer;
  line-height: 1;
}

.fha-modal-body {
  padding: 16px;
  font-size: 13px;
}

.fha-modal-subtitle {
  color: #475569;
  margin: 0 0 14px 0;
  font-size: 13px;
}

.fha-modal-field {
  margin-bottom: 12px;
}

.fha-modal-field label {
  display: block;
  margin-bottom: 4px;
  color: #334155;
  font-weight: bold;
  font-size: 12px;
}

.fha-modal-field input {
  width: 100%;
  padding: 6px 8px;
  border: 1px solid #cbd5e1;
  border-radius: 3px;
  font-size: 13px;
  box-sizing: border-box;
}

.fha-btn-compute {
  background-color: #2b7a32;
  color: #ffffff;
  border: none;
  border-radius: 3px;
  padding: 8px 16px;
  font-size: 13.5px;
  font-weight: bold;
  cursor: pointer;
  width: 100%;
  margin-top: 6px;
}

.fha-btn-compute:hover {
  background-color: #236529;
}

.fha-instant-result-box {
  background-color: #f1f5f9;
  border: 1px solid #cbd5e1;
  border-radius: 3px;
  padding: 10px 12px;
  margin-top: 12px;
}

.fha-instant-result-row {
  display: flex;
  justify-content: space-between;
  padding: 3px 0;
  font-size: 12.5px;
}

/* History Modal List */
.fha-history-item {
  border: 1px solid #e2e8f0;
  border-radius: 3px;
  padding: 8px 10px;
  margin-bottom: 8px;
  background: #f8fafc;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.fha-history-info {
  font-size: 12px;
  color: #334155;
}

.fha-history-info strong {
  color: #0844a4;
}

/* Print Underwriting Modal */
.fha-print-modal-card {
  max-width: 800px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
}

.fha-print-actions-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #f8fafc;
  padding: 8px 12px;
  border-bottom: 1px solid #cbd5e1;
  flex-wrap: wrap;
  gap: 8px;
}

.fha-print-sheet {
  padding: 18px;
  max-height: 60vh;
  overflow-y: auto;
  font-size: 13px;
  background-color: #ffffff;
}

/* Print Stylesheet */
@media print {
  body {
    background: #ffffff !important;
    color: #000000 !important;
    font-size: 11pt !important;
  }

  .site-header,
  .site-footer,
  .fha-top-actions,
  .fha-side-search-form,
  .fha-side-card,
  .fha-side-footer-links,
  .fha-rate-box,
  .fha-modal-overlay,
  .fha-btn-row,
  .fha-fraction-calc-row button,
  .fha-schedule-tabs {
    display: none !important;
  }

  .fha-page-container {
    max-width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
  }

  .fha-main-layout,
  .fha-schedule-layout {
    display: block !important;
  }

  .fha-calc-col,
  .fha-sidebar-col,
  .fha-schedule-table-wrap,
  .fha-schedule-graph-wrap {
    width: 100% !important;
    margin-bottom: 20px !important;
  }

  .fha-calc-box,
  .fha-results-box,
  .fha-fraction-tool {
    border: 1px solid #999 !important;
    box-shadow: none !important;
    break-inside: avoid;
  }

  .fha-results-header {
    background-color: #1e4a7a !important;
    color: #fff !important;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }
}

/* Responsive */
@media (max-width: 768px) {
  .fha-main-layout {
    flex-direction: column;
  }

  .fha-calc-col,
  .fha-sidebar-col {
    flex: 1 1 100%;
    width: 100%;
  }

  .fha-schedule-layout {
    flex-direction: column;
  }

  .fha-schedule-table-wrap,
  .fha-schedule-graph-wrap {
    flex: 1 1 100%;
    width: 100%;
  }

  .fha-form-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }

  .fha-form-label,
  .fha-form-field {
    width: 100%;
    justify-content: flex-start;
  }

  .fha-side-card-grid {
    grid-template-columns: 1fr;
  }
}

/* RTL Support for Arabic */
[dir="rtl"] .fha-form-field {
  justify-content: flex-start;
}

[dir="rtl"] .fha-results-table th,
[dir="rtl"] .fha-results-table td {
  text-align: left;
}

[dir="rtl"] .fha-results-table th:first-child,
[dir="rtl"] .fha-results-table td:first-child {
  text-align: right;
}

[dir="rtl"] .fha-schedule-table th,
[dir="rtl"] .fha-schedule-table td {
  text-align: left;
}

[dir="rtl"] .fha-schedule-table th:first-child,
[dir="rtl"] .fha-schedule-table th:nth-child(2),
[dir="rtl"] .fha-schedule-table td:first-child,
[dir="rtl"] .fha-schedule-table td:nth-child(2) {
  text-align: right;
}
