/* v1.267 CUST-LANG: the EN | SW switch on customer screens, and the
   install-the-app card. Self-contained (customer pages do not all share a
   stylesheet), brand teal #003841 / orange #F69810. */
.lang-switch { display: inline-flex; align-items: center; border: 1px solid #C9D4D7; border-radius: 99px; padding: 2px; background: #fff; font: 600 var(--sr-size-xs, 12px)/1 var(--sr-font-body, 'Public Sans', system-ui, sans-serif); letter-spacing: .04em; }
.lang-switch a, .lang-switch span { display: inline-flex; align-items: center; justify-content: center; min-width: 40px; min-height: 32px; padding: 0 10px; border-radius: 99px; text-decoration: none; }
.lang-switch a { color: #4C6066; }
.lang-switch a:hover { color: #003841; background: #EEF2F3; }
.lang-switch span[aria-current] { background: #003841; color: #fff; }
.portal-header-inner { gap: 12px; }
.portal-lang { margin-left: auto; order: 1; }
.portal-lang ~ .portal-header-right { order: 2; flex-basis: 100%; }
.lang-switch--float { position: absolute; top: 14px; right: 16px; z-index: 3; }
@media print { .lang-switch { display: none !important; } }

.app-install { display: flex; gap: 14px; align-items: flex-start; background: #fff; border: 1px solid #DCE5E7; border-left: 4px solid #F69810; border-radius: 14px; padding: 14px 16px; margin: 0 0 20px; box-shadow: 0 1px 3px rgba(0, 56, 65, .06); }
.app-install[hidden] { display: none; }
.app-install__icon { flex: none; width: 48px; height: 48px; border-radius: 12px; background: #fff; border: 1px solid #E5ECEE; display: grid; place-items: center; overflow: hidden; }
.app-install__icon img { width: 40px; height: 40px; }
.app-install__body { flex: 1; min-width: 0; }
.app-install__body h3 { margin: 0 0 2px; font-size: var(--sr-size-lg, 16px); color: #003841; }
.app-install__body p { margin: 0; font-size: var(--sr-size-sm, 13px); color: #4C6066; line-height: 1.45; }
.app-install__how { margin-top: 6px !important; color: #1a1a1a !important; }
.app-install__how svg { vertical-align: -3px; }
.app-install__actions { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.app-install__btn { min-height: 40px; padding: 0 16px; border-radius: 10px; border: 0; background: #F69810; color: #003841; font: 700 .88rem inherit; cursor: pointer; }
.app-install__btn[hidden] { display: none; }
.app-install__later { min-height: 40px; padding: 0 12px; border-radius: 10px; border: 1px solid #C9D4D7; background: #fff; color: #4C6066; font: 600 .84rem inherit; cursor: pointer; }
.app-install--dark { background: #0E4B55; border-color: #0E4B55; border-left-color: #F69810; }
.app-install--dark h3 { color: #fff; }
.app-install--dark p, .app-install--dark .app-install__how { color: #D5E3E6 !important; }
.app-install--dark .app-install__later { background: transparent; color: #D5E3E6; border-color: rgba(255,255,255,.3); }

/* v1.268 STAFF-APP: bottom tab bar, only inside the installed staff app on a phone */
.staff-tabbar { display: none; }
.app-install__icon--staff { background: #003841; border-color: #003841; }
.app-install__icon--staff img { width: 48px; height: 48px; }
@media (max-width: 860px) {
  html.is-app .staff-tabbar { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 9980; background: #fff; border-top: 1px solid #DCE5E7; padding: 4px 4px calc(4px + env(safe-area-inset-bottom)); box-shadow: 0 -4px 16px rgba(0, 56, 65, .08); }
  html.is-app .staff-tabbar a, html.is-app .staff-tabbar button { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-height: 52px; border: 0; background: none; border-radius: 10px; color: #4C6066; font: 600 var(--sr-size-xs, 12px)/1.1 var(--sr-font-body, 'Public Sans', system-ui, sans-serif); text-decoration: none; cursor: pointer; }
  html.is-app .staff-tabbar [aria-current="page"] { color: #003841; background: #EEF2F3; }
  html.is-app .staff-tabbar [aria-current="page"] svg { color: #F69810; }
  html.is-app body.admin-body { padding-bottom: calc(68px + env(safe-area-inset-bottom)); }
  html.is-app #srAssistant { bottom: calc(76px + env(safe-area-inset-bottom)); }
  /* v1.325.1 LAYERS: the bar's height (52 px buttons, 4 + 4 px padding, 1 px rule) for everything that floats above it
     (sr-feedback.css: the Live chip and the toasts; admin-gps-toast.js) */
  html.is-app body.admin-body { --sr-bottom-bar: 61px; }
}
@media (max-width: 820px) {
  /* v1.325.1 LAYERS: the open phone menu ends above the app's bottom bar (its last rows sat under the bar) */
  html.is-app body.admin-body .admin-sidebar { height: auto; bottom: calc(61px + env(safe-area-inset-bottom)); }
}
@media (max-width: 860px) {
  html.is-app .staff-tabbar a { position: relative; }
  html.is-app .staff-tab-badge { position: absolute; top: 4px; left: 50%; margin-left: 6px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 99px; background: #B3261E; color: #fff; font: 700 var(--sr-size-xs, 12px)/18px var(--sr-font-body, 'Public Sans', system-ui, sans-serif); text-align: center; }
}
