/* Tedy ERP R5.2.6 — mobile UI R2. Existing control IDs and handlers are retained. */
:root { --tedy-emerald: #064e3b; --tedy-gold: #c8a45d; }
body, button, input, select, textarea, label, .btn, .nav-btn, .page-head, .topbar,
.toast, .modal, .notice, table, th, td { font-family: "Noto Sans Ethiopic", "Abyssinica SIL", system-ui, sans-serif; }
.btn, button, .nav-btn, .topbar-title, .page-head h1, .page-head h2 { line-height: 1.35; }
[data-tedy-release="V29.3.0-R5.2.6"] .page-head { border-inline-start: 3px solid var(--tedy-gold); }
[data-tedy-release="V29.3.0-R5.2.6"] .notice { border-color: var(--tedy-gold); }
.topbar[data-tedy-language-dock="r2"] .tedy-r526-language-row {
  display: flex; align-items: center; justify-content: flex-end; gap: 10px;
  min-width: 0; margin-inline-start: auto;
}
.topbar[data-tedy-language-dock="r2"] #tedyMobileLanguageFixed {
  position: static !important; inset: auto !important; z-index: auto !important;
  flex: 0 0 auto; margin: 0; box-shadow: none !important;
}
.topbar[data-tedy-language-dock="r2"] #tedyMobileLanguage,
.topbar[data-tedy-language-dock="r2"] #tedyProfileLanguage,
.topbar[data-tedy-language-dock="r2"] #v28Lang { display: none !important; }
.tedy-r526-ui-badge { color: var(--muted, #a8bfb0); font-size: 11px; white-space: nowrap; }
@media (max-width: 760px) {
  .topbar[data-tedy-language-dock="r2"] { flex-wrap: wrap !important; align-items: center !important; }
  .topbar[data-tedy-language-dock="r2"] .topbar-title { flex: 1 1 0 !important; min-width: 0 !important; }
  .topbar[data-tedy-language-dock="r2"] .topbar-title h2 { white-space: normal !important; overflow-wrap: anywhere; }
  .topbar[data-tedy-language-dock="r2"] .topbar-actions { padding-right: 0 !important; margin-left: auto; }
  .topbar[data-tedy-language-dock="r2"] .tedy-r526-language-row {
    flex: 0 0 100% !important; width: 100%; box-sizing: border-box;
    justify-content: space-between; margin-inline-start: 0; padding-top: 4px;
  }
  .topbar[data-tedy-language-dock="r2"] #tedyMobileLanguageFixed select {
    min-height: 44px !important; max-width: 100%;
  }
}
@media (max-width: 640px) {
  .btn, button, select, input { min-height: 40px; }
  .topbar-title, .page-head h1, .page-head h2 { overflow-wrap: anywhere; }
  .modal, .modal-backdrop, .table-wrap, .card { max-width: 100%; }
}
@media print {
  .tedy-r526-language-row, #tedyMobileLanguageFixed { display: none !important; }
}
