
/* BEIT_SHIFA_GLOBAL_COMPACT_HEADERS_V1 */
:root {
  --bsh-header-navy: #172c63;
  --bsh-header-blue: #2879d8;
  --bsh-header-border: #e3ebf5;
}

/* Compact, white administration headers */
body > header,
body .topbar,
body .main-header,
body .admin-header,
body .bs-admin-header,
body .bsh-global-header {
  box-sizing: border-box !important;
  min-height: 66px !important;
  height: auto !important;
  padding: 8px 20px !important;
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 10px 16px !important;
  background: #fff !important;
  color: var(--bsh-header-navy) !important;
  border-bottom: 1px solid var(--bsh-header-border) !important;
  box-shadow: 0 3px 14px rgba(23,44,99,.04) !important;
}

body > header > *,
body .topbar > *,
body .main-header > *,
body .admin-header > *,
body .bs-admin-header > *,
body .bsh-global-header > * {
  min-width: 0 !important;
  max-width: 100%;
  flex: 0 1 auto !important;
  margin-top: 0 !important;
  margin-bottom: 0 !important;
}

body > header strong,
body > header h1,
body > header h2,
body .topbar h1,
body .topbar h2,
body .admin-header h1,
body .admin-header h2 {
  color: var(--bsh-header-navy) !important;
  line-height: 1.5 !important;
}

body > header a,
body .topbar a,
body .admin-header a {
  text-decoration: none;
}

body > header .bs-branch-switcher,
body .topbar .bs-branch-switcher,
body .admin-header .bs-branch-switcher,
body > header form:has(select[name="branch_id"]),
body .topbar form:has(select[name="branch_id"]),
body .admin-header form:has(select[name="branch_id"]) {
  box-sizing: border-box !important;
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 8px !important;
  width: auto !important;
  max-width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
}

body > header .bs-branch-switcher label,
body .topbar .bs-branch-switcher label,
body > header form:has(select[name="branch_id"]) label,
body .topbar form:has(select[name="branch_id"]) label {
  margin: 0 !important;
  white-space: nowrap !important;
  font-size: 12px !important;
}

body > header select[name="branch_id"],
body .topbar select[name="branch_id"],
body .admin-header select[name="branch_id"] {
  width: auto !important;
  min-width: 130px !important;
  max-width: 220px !important;
  min-height: 38px !important;
  margin: 0 !important;
  padding: 7px 10px !important;
}

body > header form:has(select[name="branch_id"]) button,
body .topbar form:has(select[name="branch_id"]) button,
body .admin-header form:has(select[name="branch_id"]) button,
body .bs-branch-switcher button {
  min-height: 38px !important;
  margin: 0 !important;
  padding: 7px 12px !important;
  white-space: nowrap !important;
}

body > header img,
body > header .logo {
  max-width: 48px !important;
  max-height: 48px !important;
}

@media (max-width: 1100px) {
  body > header,
  body .topbar,
  body .main-header,
  body .admin-header,
  body .bs-admin-header,
  body .bsh-global-header {
    flex-wrap: wrap !important;
    min-height: 60px !important;
    padding: 9px 14px !important;
    gap: 8px 12px !important;
  }

  body > header .bs-branch-switcher,
  body .topbar .bs-branch-switcher,
  body > header form:has(select[name="branch_id"]),
  body .topbar form:has(select[name="branch_id"]) {
    flex-wrap: wrap !important;
  }
}

@media (max-width: 520px) {
  body > header,
  body .topbar,
  body .main-header,
  body .admin-header,
  body .bs-admin-header,
  body .bsh-global-header {
    padding: 10px 12px !important;
    gap: 8px !important;
  }

  body > header strong {
    white-space: normal !important;
    font-size: 15px !important;
  }

  body > header select[name="branch_id"],
  body .topbar select[name="branch_id"] {
    min-width: 0 !important;
    width: 100% !important;
  }
}
/* END BEIT_SHIFA_GLOBAL_COMPACT_HEADERS_V1 */
