/* Existing Arabic fonts and shared corporate typography remain authoritative. */
.calc-shell { min-width: 0; }
.calc-panel, .result-panel, .calc-result-grid > div { min-width: 0; }
.calc-actions { flex-wrap: wrap; }
.calc-shell .btn { white-space: normal; overflow-wrap: anywhere; }
[dir="rtl"] .calc-shell input[type="number"],
[dir="rtl"] .calc-shell bdi,
[dir="rtl"] .calc-shell td:nth-child(n+3),
[dir="rtl"] [data-total-exact], [dir="rtl"] [data-total-rounded] {
  direction: ltr; unicode-bidi: isolate;
}
[dir="rtl"] .calc-shell th, [dir="rtl"] .calc-shell td { text-align: start; }
[dir="rtl"] .calc-shell td:nth-child(n+3) { text-align: end; }
[dir="rtl"] .calc-print-quality-row__info { text-align: start; }
.content code[dir="ltr"] { display: inline-block; max-width: 100%; overflow-wrap: anywhere; unicode-bidi: isolate; }

/* BEGIN GENERATED MOBILE RESULT LABELS */
/* Source: each localized result-table thead; regenerate/check with tools/seo_calculator_mobile_labels.py. */
@media screen and (max-width: 520px) {
  html[lang="en"] .result-table tbody td:nth-child(1)::before { content: "#"; }
  html[lang="en"] .result-table tbody td:nth-child(2)::before { content: "Material"; }
  html[lang="en"] .result-table tbody td:nth-child(3)::before { content: "Qty"; }
  html[lang="en"] .result-table tbody td:nth-child(4)::before { content: "Kg / Piece"; }
  html[lang="en"] .result-table tbody td:nth-child(5)::before { content: "Exact Total"; }
  html[lang="en"] .result-table tbody td:nth-child(6)::before { content: "Rounded Up"; }
  html[lang="de"] .result-table tbody td:nth-child(1)::before { content: "#"; }
  html[lang="de"] .result-table tbody td:nth-child(2)::before { content: "Abmessungen / Werkstoff"; }
  html[lang="de"] .result-table tbody td:nth-child(3)::before { content: "Stückzahl"; }
  html[lang="de"] .result-table tbody td:nth-child(4)::before { content: "kg / Stück"; }
  html[lang="de"] .result-table tbody td:nth-child(5)::before { content: "Nettogewicht"; }
  html[lang="de"] .result-table tbody td:nth-child(6)::before { content: "Aufgerundet"; }
  html[lang="es"] .result-table tbody td:nth-child(1)::before { content: "#"; }
  html[lang="es"] .result-table tbody td:nth-child(2)::before { content: "Dimensiones / material"; }
  html[lang="es"] .result-table tbody td:nth-child(3)::before { content: "Cantidad"; }
  html[lang="es"] .result-table tbody td:nth-child(4)::before { content: "kg / pieza"; }
  html[lang="es"] .result-table tbody td:nth-child(5)::before { content: "Peso neto"; }
  html[lang="es"] .result-table tbody td:nth-child(6)::before { content: "Redondeado"; }
  html[lang="nl"] .result-table tbody td:nth-child(1)::before { content: "#"; }
  html[lang="nl"] .result-table tbody td:nth-child(2)::before { content: "Afmetingen / materiaal"; }
  html[lang="nl"] .result-table tbody td:nth-child(3)::before { content: "Aantal"; }
  html[lang="nl"] .result-table tbody td:nth-child(4)::before { content: "kg / stuk"; }
  html[lang="nl"] .result-table tbody td:nth-child(5)::before { content: "Nettogewicht"; }
  html[lang="nl"] .result-table tbody td:nth-child(6)::before { content: "Afgerond"; }
  html[lang="ar"] .result-table tbody td:nth-child(1)::before { content: "#"; }
  html[lang="ar"] .result-table tbody td:nth-child(2)::before { content: "الأبعاد / المادة"; }
  html[lang="ar"] .result-table tbody td:nth-child(3)::before { content: "العدد"; }
  html[lang="ar"] .result-table tbody td:nth-child(4)::before { content: "kg / قطعة"; }
  html[lang="ar"] .result-table tbody td:nth-child(5)::before { content: "الوزن الصافي"; }
  html[lang="ar"] .result-table tbody td:nth-child(6)::before { content: "مقرب لأعلى"; }
}
/* END GENERATED MOBILE RESULT LABELS */
