.tool-page .wa-modes .button.secondary[aria-pressed="true"] {
  color: #fff;
}

.tool-page .tool-nav {
  column-gap: 0.75rem;
}

.weighted-rates-table {
  width: 100%;
  border-collapse: collapse;
  font-variant-numeric: tabular-nums;
}

.weighted-rates-table caption {
  margin-bottom: 0.5rem;
  font-weight: 700;
  text-align: start;
}

.weighted-rates-table th,
.weighted-rates-table td {
  padding: 0.65rem;
  border-bottom: 1px solid #ccd8e4;
  text-align: end;
}

.weighted-rates-table th:first-child {
  text-align: start;
}

.weighted-rates-table thead,
.weighted-rates-table tfoot {
  background: #edf4fa;
}

@media (max-width: 440px) {
  .weighted-rates-table {
    font-size: 0.875rem;
  }

  .weighted-rates-table th,
  .weighted-rates-table td {
    padding: 0.45rem 0.35rem;
  }
}

/* The off-screen RTL skip link must not expand the printable area. */
@media print { body:not(.printing-calculation) > .skip-link { display: none !important; } }

/* Weighted-pair receipt print: keep content inside the paper box in EN and AR. */
@media print {
  body.printing-calculation > #calculation-print-root {
    box-sizing: border-box;
    width: 100%;
    padding: 10mm !important;
    overflow-wrap: anywhere;
  }
  #calculation-print-root .receipt-inputs dd,
  #calculation-print-root .receipt-inputs bdi {
    white-space: normal;
    overflow-wrap: anywhere;
  }
}

/* Keep the sticky site header out of whole-page print at any scroll position. */
@media print { body:not(.printing-calculation) > header { display: none !important; } }
