/* Role-based view minimization. Server responses remain the security boundary. */
html[dir="rtl"] body,
html[dir="rtl"] label,
html[dir="rtl"] th,
html[dir="rtl"] td,
html[dir="rtl"] p,
html[dir="rtl"] h1,
html[dir="rtl"] h2,
html[dir="rtl"] h3 {
  direction: rtl;
  text-align: right;
  unicode-bidi: plaintext;
}

html[dir="rtl"] input[type="date"],
html[dir="rtl"] input[type="number"],
html[dir="rtl"] input[name="passport"],
html[dir="rtl"] input[name="phone"] {
  direction: ltr;
  text-align: left;
  unicode-bidi: isolate;
}

html[data-role="employee"] #expensesPanel table th:nth-child(4),
html[data-role="employee"] #expensesPanel table td:nth-child(4),
html[data-role="employee"] #activityPanel table th:nth-child(n+5),
html[data-role="employee"] #activityPanel table td:nth-child(n+5) {
  display: none;
}

.demo-banner {
  padding: 10px 18px;
  background: #fff2ce;
  color: #604b17;
  text-align: center;
  font-weight: 700;
  border-bottom: 1px solid #ead493;
}

.deposit-summary { display: grid; gap: 8px; }
.deposit-summary b { direction: ltr; unicode-bidi: isolate; display: inline-block; }
.deposit-summary small { line-height: 1.6; }
.check-row { display: flex; flex-direction: row; align-items: center; gap: 9px; }
.check-row input { min-width: auto; }
.financial-only { direction: ltr; unicode-bidi: isolate; }
html[data-role="employee"] .financial-only { display: none !important; }
.employee-lodging-summary { direction: rtl; unicode-bidi: plaintext; }
.employee-lodging-summary .small { direction: ltr; unicode-bidi: isolate; text-align: right; }
html[dir="rtl"] input[type="number"],
html[dir="rtl"] [dir="ltr"] { direction: ltr; text-align: left; unicode-bidi: isolate; }
