/* TEDY ERP R5.3.0 — targeted corrections; retain existing M18 luxury theme. */
/* The M18 language switcher is the visible switcher. Do not display the
   older v28 switcher alongside it. Keep v28 in the DOM for i18n listeners. */
html #app #v28Lang { display: none !important; }
/* M4 includes two extra language controls, explicitly tagged as duplicates.
   Leave the single M18 topbar control (#tedyMobileLanguageFixed) visible. */
html #app [data-tedy-m4-duplicate-language="1"] { display: none !important; }
html #app .topbar-actions > .v28-date { display: none !important; }
html[data-m18-ui] #app .topbar .m18-language-slot {
  flex: 0 0 77px !important;
  width: 77px !important;
  max-width: 77px !important;
  min-width: 0 !important;
}
html[data-m18-ui] #app .topbar .branch-context-m6 {
  flex: 1 1 auto !important;
  min-width: 0 !important;
  max-width: none !important;
  overflow: hidden;
}
html[data-m18-ui] #app .topbar .topbar-actions { min-width: 38px !important; }

/* A request may contain multiple BOM lines, each with its own ledger state. */
#main .r528-line-value {
  min-height: 30px;
  padding: 6px 2px;
  border-bottom: 1px solid rgba(151, 170, 145, .18);
  white-space: normal;
  overflow-wrap: anywhere;
  font-variant-numeric: tabular-nums;
}
#main .r528-line-value:last-of-type { border-bottom: 0; }
#main .r528-material-name { min-width: 128px; font-weight: 600; }
#main .r528-item-index { font-size: 11px; opacity: .76; }
#main .r528-line-total { padding: 5px 2px; font-weight: 800; color: #d3b466; }
#main .r528-action {
  display: block;
  width: 100%;
  white-space: normal;
  text-align: center;
  line-height: 1.35;
  margin: 4px 0;
  min-height: 39px;
}
.r528-picker-list { display: grid; gap: 10px; padding: 12px 0; }
.r528-picker-button { min-height: 48px; white-space: normal; text-align: left; }
@media (max-width: 440px) {
  #main .r528-line-value { min-height: 34px; line-height: 1.5; }
  html[data-m18-ui] #app .topbar .m18-language-slot {
    flex-basis: 72px !important;
    width: 72px !important;
    max-width: 72px !important;
  }
}
