/* ==========================================================================
   ZBS Operations – UI layer
   Loaded AFTER bootstrap.min.css and uikit.min.css on every page.
   Pure presentation: no markup contracts (ids / names / data attributes)
   are changed by this file.

   Brand colours are taken from the ZBS logo (Zimbabwe flag):
   green, gold, red and the black outline. The colours the old UI already
   used (mint #54bf99, teal #0b8278, clay #cf4522, cadet blue) are kept as
   supporting accents so existing badges / inline colours still fit in.
   ========================================================================== */

/* Self-hosted fonts (latin subset, variable weight) – no third-party request, cached with the app */
@font-face {
  font-family: "Bricolage Grotesque";
  font-style: normal; font-weight: 200 800; font-display: swap;
  src: url("../fonts/bricolage-grotesque-latin-wght-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Public Sans";
  font-style: normal; font-weight: 100 900; font-display: swap;
  src: url("../fonts/public-sans-latin-wght-normal.woff2") format("woff2");
}

:root {
  /* logo */
  --zbs-green: #2da502;
  --zbs-green-700: #1b7f00;
  --zbs-green-800: #0f5f00;
  --zbs-green-100: #dff1d3;
  --zbs-green-50: #f0f8ea;
  --zbs-gold: #fdc901;
  --zbs-gold-100: #fff3bd;
  --zbs-red: #d80000;
  --zbs-red-600: #b80000;
  --zbs-red-50: #fff1f0;
  --zbs-ink: #030918;
  --zbs-ink-2: #3a4150;
  --zbs-ink-3: #667085;

  /* carried over from the previous UI */
  --zbs-mint: #54bf99;
  --zbs-teal: #0b8278;
  --zbs-clay: #cf4522;
  --zbs-cadet: #5f9ea0;

  /* surfaces */
  --zbs-bg: #f1f4ec;
  --zbs-surface: #ffffff;
  --zbs-line: #dfe5d6;
  --zbs-line-strong: #c5ceb9;

  /* shape */
  --r-card: 16px;
  --r-ctl: 12px;
  --r-sm: 8px;
  --r-pill: 999px;

  --bar-h: 64px;
  --font-display: "Bricolage Grotesque", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --font-body: "Public Sans", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
}

/* --------------------------------------------------------------------------
   Base
   -------------------------------------------------------------------------- */
html { margin-top: 0 !important; -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--bar-h) + 12px); }
* html body { margin-top: 0 !important; }

body.zbs-app {
  margin: 0;
  background: var(--zbs-bg);
  color: var(--zbs-ink);
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

body.zbs-app *, body.zbs-app *::before, body.zbs-app *::after { box-sizing: border-box; }

body.zbs-app a { color: var(--zbs-green-700); text-decoration: none; }
body.zbs-app a:hover, body.zbs-app a:focus { color: var(--zbs-green-800); text-decoration: underline; }

body.zbs-app :focus-visible {
  outline: 3px solid var(--zbs-gold);
  outline-offset: 2px;
  border-radius: 6px;
}

body.zbs-app img { max-width: 100%; height: auto; }

body.zbs-app h1, body.zbs-app h2, body.zbs-app h3, body.zbs-app h4 {
  font-family: var(--font-display);
  color: var(--zbs-ink);
  letter-spacing: -0.01em;
  line-height: 1.2;
}

body.zbs-app hr, body.zbs-app .uk-hr {
  border: 0;
  border-top: 1px solid var(--zbs-line);
  margin: 16px 0;
}

/* Divi leftovers that fought the layout */
body.zbs-app #page-container,
body.zbs-app .et-animated-content,
body.zbs-app #page-container.et-animated-content {
  padding-top: 0 !important;
  margin-top: 0 !important;
  background: transparent !important;
  min-height: 100vh;
}

/* --------------------------------------------------------------------------
   Page loader
   -------------------------------------------------------------------------- */
body.zbs-app .se-pre-con,
.se-pre-con {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: #fff !important;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity .28s ease, visibility .28s ease;
}
.se-pre-con::before {
  content: "";
  width: 96px; height: 96px;
  background: url("../images/logo-192.png") center / contain no-repeat;
  animation: zbs-breathe 1.4s ease-in-out infinite;
}
.se-pre-con.is-done { opacity: 0; visibility: hidden; pointer-events: none; }
@keyframes zbs-breathe { 0%,100% { transform: scale(.94); opacity: .75; } 50% { transform: scale(1.04); opacity: 1; } }

/* --------------------------------------------------------------------------
   Top bar
   -------------------------------------------------------------------------- */
.zbs-bar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--zbs-surface);
  border-bottom: 1px solid var(--zbs-line);
  padding-top: env(safe-area-inset-top, 0px);
}
/* The flag, as seven stripes: green / gold / red / black / red / gold / green */
.zbs-flag {
  height: 6px;
  background: linear-gradient(90deg,
    var(--zbs-green) 0 14.28%,
    var(--zbs-gold) 14.28% 28.57%,
    #e10600 28.57% 42.85%,
    var(--zbs-ink) 42.85% 57.14%,
    #e10600 57.14% 71.42%,
    var(--zbs-gold) 71.42% 85.71%,
    var(--zbs-green) 85.71% 100%);
}
.zbs-bar__inner {
  max-width: 1320px;
  margin: 0 auto;
  height: var(--bar-h);
  padding: 0 16px;
  display: flex;
  align-items: center;
  gap: 16px;
}
.zbs-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--zbs-ink) !important;
  text-decoration: none !important;
  flex: 0 0 auto;
  min-width: 0;
}
.zbs-brand img { width: 46px; height: 46px; display: block; }
.zbs-brand__text { display: flex; flex-direction: column; line-height: 1.1; min-width: 0; }
.zbs-brand__text b { font-family: var(--font-display); font-size: 20px; font-weight: 800; letter-spacing: -0.02em; }
.zbs-brand__text small { font-size: 12.5px; color: var(--zbs-ink-3); font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 40vw; }

.zbs-nav { margin-left: auto; }
.zbs-nav ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 4px; }
.zbs-nav li { margin: 0; padding: 0; }
.zbs-nav a {
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 44px; padding: 0 14px;
  border-radius: var(--r-ctl);
  font-weight: 600; font-size: 15px;
  color: var(--zbs-ink-2) !important;
  text-decoration: none !important;
  position: relative;
}
.zbs-nav a:hover { background: var(--zbs-green-50); color: var(--zbs-green-800) !important; }
.zbs-nav a.is-active { background: var(--zbs-green-50); color: var(--zbs-green-800) !important; }
.zbs-nav a.is-active::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 4px; height: 3px;
  background: var(--zbs-gold); border-radius: 3px;
}
.zbs-nav a.is-logout { color: var(--zbs-red) !important; }
.zbs-nav a.is-logout:hover { background: var(--zbs-red-50); color: var(--zbs-red-600) !important; }

.zbs-burger {
  display: none;
  margin-left: auto;
  width: 48px; height: 48px;
  border: 1px solid var(--zbs-line-strong);
  background: #fff;
  border-radius: var(--r-ctl);
  align-items: center; justify-content: center;
  color: var(--zbs-ink);
  cursor: pointer;
  padding: 0;
}
.zbs-burger:hover { background: var(--zbs-green-50); }
.zbs-burger .zbs-burger__close { display: none; }
body.zbs-menu-open .zbs-burger .zbs-burger__open { display: none; }
body.zbs-menu-open .zbs-burger .zbs-burger__close { display: inline-flex; }

.zbs-drawer { display: none; }

@media (max-width: 949.98px) {
  :root { --bar-h: 60px; }
  .zbs-nav--desktop { display: none !important; }
  .zbs-burger { display: inline-flex; }
  .zbs-brand img { width: 42px; height: 42px; }

  .zbs-drawer {
    display: block;
    position: absolute; left: 0; right: 0; top: 100%;
    background: #fff;
    border-bottom: 1px solid var(--zbs-line-strong);
    box-shadow: 0 18px 30px -12px rgba(3, 9, 24, .28);
    max-height: calc(100vh - var(--bar-h) - 12px);
    overflow-y: auto;
    padding: 8px 12px 16px;
    visibility: hidden; opacity: 0; transform: translateY(-6px);
    transition: opacity .16s ease, transform .16s ease, visibility .16s;
  }
  body.zbs-menu-open .zbs-drawer { visibility: visible; opacity: 1; transform: none; }
  .zbs-drawer ul { list-style: none; margin: 0; padding: 0; }
  .zbs-drawer li { margin: 0; padding: 0; border-bottom: 1px solid var(--zbs-line); }
  .zbs-drawer li:last-child { border-bottom: 0; }
  .zbs-drawer a {
    display: flex; align-items: center; gap: 14px;
    min-height: 56px; padding: 0 10px;
    font-size: 17px; font-weight: 600;
    color: var(--zbs-ink) !important; text-decoration: none !important;
  }
  .zbs-drawer a:active { background: var(--zbs-green-50); }
  .zbs-drawer a .uk-icon, .zbs-drawer a [uk-icon] { color: var(--zbs-green-700); }
  .zbs-drawer a.is-logout, .zbs-drawer a.is-logout [uk-icon] { color: var(--zbs-red) !important; }
  .zbs-drawer a.is-active { background: var(--zbs-green-50); border-radius: var(--r-ctl); }
}

/* --------------------------------------------------------------------------
   Page container
   -------------------------------------------------------------------------- */
body.zbs-app .et_pb_code_inner {
  max-width: 1320px;
  margin: 0 auto;
  padding: 20px 16px 40px;
}
@media (max-width: 599.98px) {
  body.zbs-app .et_pb_code_inner { padding: 14px 12px 32px; }
}

/* Bootstrap-3 rows are used as toolbars. Turn them into tidy flex rows. */
body.zbs-app .et_pb_code_inner .row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 16px;
  margin: 0 0 16px !important;
  padding-left: 0;
  padding-right: 0;
  align-items: center;
}
body.zbs-app .row::before, body.zbs-app .row::after { display: none !important; content: none !important; }
body.zbs-app .et_pb_code_inner .row > [class*="col-"] {
  float: none;
  width: auto !important;
  flex: 1 1 240px;
  min-width: 0;
  padding: 0 !important;
  border: 0 !important;
  position: relative;
}
body.zbs-app .et_pb_code_inner .row > .col-md-12,
body.zbs-app .et_pb_code_inner .row > .col-sm-12,
body.zbs-app .et_pb_code_inner .row > .col-xs-12 { flex-basis: 100%; }
body.zbs-app .et_pb_code_inner .row > .col-md-2 { flex: 1 1 150px; }
body.zbs-app .et_pb_code_inner .row > .col-md-4 { flex: 1 1 300px; }
body.zbs-app .et_pb_code_inner .row > .col-md-3 { flex: 1 1 200px; }
/* Re-enable Bootstrap's own gutters where a row is a *nested* data row */
body.zbs-app .et_pb_code_inner .row .row { margin: 0 !important; }

/* First row of list pages = toolbar card */
body.zbs-app .et_pb_code_inner > .row.et_pb_texta,
body.zbs-app .et_pb_code_inner > .row:first-child {
  background: var(--zbs-surface);
  border: 1px solid var(--zbs-line) !important;
  border-radius: var(--r-card);
  padding: 16px !important;
}
body.zbs-app .et_pb_texta { font-family: var(--font-body); font-size: 15px; font-weight: 500; line-height: 1.5; }
body.zbs-app .et_pb_textr { font-family: var(--font-body); font-size: 15px; font-weight: 400; }

/* Page titles */
body.zbs-app h1.et_pb_textb, body.zbs-app .et_pb_textb {
  font-family: var(--font-display) !important;
  font-weight: 800 !important;
  font-size: clamp(24px, 4.6vw, 34px) !important;
  line-height: 1.15 !important;
  letter-spacing: -0.02em;
  color: var(--zbs-ink) !important;
  text-align: left !important;
  margin: 4px 0 8px !important;
}
body.zbs-app h1.et_pb_textb span { color: var(--zbs-red) !important; }
body.zbs-app #maintxt { color: var(--zbs-green-800) !important; }

/* Cards */
body.zbs-app .border_class,
body.zbs-app .uk-card-default {
  background: var(--zbs-surface);
  border: 1px solid var(--zbs-line) !important;
  border-radius: var(--r-card) !important;
  box-shadow: none !important;
  overflow: hidden;
  padding: 0 !important;
  width: 100% !important;
  margin: 0 !important;
}
body.zbs-app .uk-card-body { padding: 18px !important; }
body.zbs-app .uk-card-title { font-family: var(--font-display); font-weight: 800; }
body.zbs-app .border_class > .row { margin: 0 !important; }
body.zbs-app .border_class > .row > .col-md-12 { padding: 0 !important; }

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */
body.zbs-app .uk-button,
body.zbs-app .et_pb_button,
body.zbs-app .btnc {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 18px;
  border-radius: var(--r-ctl) !important;
  font-family: var(--font-display) !important;
  font-size: 15px !important;
  font-weight: 700 !important;
  line-height: 1.2;
  text-transform: none;
  letter-spacing: 0;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: background-color .15s ease, border-color .15s ease, color .15s ease;
  -webkit-tap-highlight-color: transparent;
  white-space: normal;
  text-align: center;
}
body.zbs-app .uk-button-small { min-height: 36px; padding: 0 14px; font-size: 14px !important; }
body.zbs-app .uk-button-large { min-height: 52px; padding: 0 24px; font-size: 17px !important; }

body.zbs-app .uk-button-default, body.zbs-app .btnc {
  background: #fff !important;
  color: var(--zbs-ink) !important;
  border-color: var(--zbs-line-strong) !important;
}
body.zbs-app .uk-button-default:hover, body.zbs-app .btnc:hover { background: var(--zbs-green-50) !important; border-color: var(--zbs-green) !important; color: var(--zbs-green-800) !important; }

body.zbs-app .uk-button-primary,
body.zbs-app .et_pb_button.et_pb_contact_submit {
  background: var(--zbs-green-700) !important;
  color: #fff !important;
  border-color: var(--zbs-green-700) !important;
}
body.zbs-app .uk-button-primary:hover, body.zbs-app .uk-button-primary:focus { background: var(--zbs-green-800) !important; border-color: var(--zbs-green-800) !important; color: #fff !important; }

body.zbs-app .uk-button-secondary { background: var(--zbs-ink) !important; color: #fff !important; border-color: var(--zbs-ink) !important; }
body.zbs-app .uk-button-secondary:hover, body.zbs-app .uk-button-secondary:focus { background: #1c2438 !important; color: #fff !important; }

body.zbs-app .uk-button-danger { background: var(--zbs-red) !important; color: #fff !important; border-color: var(--zbs-red) !important; }
body.zbs-app .uk-button-danger:hover, body.zbs-app .uk-button-danger:focus { background: var(--zbs-red-600) !important; border-color: var(--zbs-red-600) !important; color: #fff !important; }

body.zbs-app .uk-button:disabled, body.zbs-app .uk-button[disabled] { opacity: .5; cursor: not-allowed; }
body.zbs-app .et_pb_button:after, body.zbs-app .et_pb_button:before { content: none !important; }
body.zbs-app .uk-button .uk-icon, body.zbs-app .uk-button [uk-icon] { flex: 0 0 auto; }

body.zbs-app .uk-icon-button {
  width: 40px; height: 40px;
  background: var(--zbs-green-50);
  color: var(--zbs-green-800);
  border-radius: var(--r-pill);
}
body.zbs-app .uk-icon-button:hover { background: var(--zbs-green-100); }

/* --------------------------------------------------------------------------
   Forms
   -------------------------------------------------------------------------- */
body.zbs-app input.input, body.zbs-app select.input, body.zbs-app textarea.input, body.zbs-app .inp,
body.zbs-app .uk-input, body.zbs-app .uk-select, body.zbs-app .uk-textarea,
body.zbs-app .et_pb_contact_form input[type="text"], body.zbs-app .et_pb_contact_form input[type="email"],
body.zbs-app .et_pb_contact_form input[type="password"], body.zbs-app .et_pb_contact_form input[type="number"],
body.zbs-app .et_pb_contact_form input[type="date"], body.zbs-app .et_pb_contact_form select, body.zbs-app .et_pb_contact_form textarea {
  display: block;
  width: 100% !important;
  min-height: 48px;
  padding: 10px 14px !important;
  background: #fff !important;
  background-image: none;
  color: var(--zbs-ink) !important;
  border: 1.5px solid var(--zbs-line-strong) !important;
  border-radius: var(--r-ctl) !important;
  font-family: var(--font-body) !important;
  font-size: 16px !important;   /* 16px stops iOS zooming into the field */
  font-weight: 400 !important;
  line-height: 1.4 !important;
  text-align: left !important;
  -webkit-appearance: none;
  appearance: none;
  box-shadow: none;
  transition: border-color .15s ease, box-shadow .15s ease;
}
body.zbs-app select.input, body.zbs-app select.uk-select, body.zbs-app .et_pb_contact_form select {
  padding-right: 40px !important;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'><path d='M1 1l6 6 6-6' fill='none' stroke='%231b7f00' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/></svg>") !important;
  background-repeat: no-repeat !important;
  background-position: right 14px center !important;
}
body.zbs-app textarea.input, body.zbs-app .uk-textarea, body.zbs-app .et_pb_contact_form textarea { min-height: 96px; resize: vertical; }
body.zbs-app .input:focus, body.zbs-app .uk-input:focus, body.zbs-app .uk-select:focus, body.zbs-app .uk-textarea:focus {
  outline: 0;
  border-color: var(--zbs-green) !important;
  box-shadow: 0 0 0 4px rgba(45, 165, 2, .18);
}
body.zbs-app ::placeholder { color: #8a93a3; opacity: 1; }
body.zbs-app input[disabled], body.zbs-app select[disabled] { background: #f3f5f0 !important; color: var(--zbs-ink-3) !important; }

body.zbs-app .et_pb_contact_form_label, body.zbs-app .uk-form-label {
  display: block;
  margin: 0 0 6px;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  color: var(--zbs-ink-2);
}

/* Divi contact-form grid → CSS grid, 1 column on phones, 2 from 640px */
body.zbs-app .et_pb_contact_form {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin: 0;
  padding: 0;
}
@media (min-width: 640px) {
  body.zbs-app .et_pb_contact_form { grid-template-columns: 1fr 1fr; gap: 16px 20px; }
  body.zbs-app .et_pb_contact_form > .et_pb_contact_field:not(.et_pb_contact_field_half),
  body.zbs-app .et_pb_contact_form > h1,
  body.zbs-app .et_pb_contact_form > .et_contact_bottom_container,
  body.zbs-app .et_pb_contact_form > .clearfix { grid-column: 1 / -1; }
}
body.zbs-app .et_pb_contact_form::before, body.zbs-app .et_pb_contact_form::after { display: none; }
body.zbs-app .et_pb_contact_field, body.zbs-app .et_pb_contact_field_half {
  float: none !important;
  width: auto !important;
  margin: 0 !important;
  padding: 0 !important;
  clear: none !important;
}
body.zbs-app .et_pb_contact_form > h1 { margin: 0 !important; }
body.zbs-app .et_contact_bottom_container { margin: 8px 0 0; display: flex; justify-content: flex-end; gap: 12px; flex-wrap: wrap; }
body.zbs-app .et_pb_contact { max-width: 880px; margin: 0 auto; }
body.zbs-app .et_pb_contact_form.frmSearch { width: 100% !important; max-width: 880px; margin: 0 auto; }

/* checkboxes & radios */
body.zbs-app .uk-checkbox, body.zbs-app .uk-radio {
  width: 22px; height: 22px;
  border: 2px solid var(--zbs-line-strong);
  background-color: #fff;
  margin-top: -2px;
}
body.zbs-app .uk-checkbox:checked, body.zbs-app .uk-checkbox:indeterminate, body.zbs-app .uk-radio:checked {
  background-color: var(--zbs-green-700) !important;
  border-color: var(--zbs-green-700) !important;
}
body.zbs-app .uk-checkbox:focus, body.zbs-app .uk-radio:focus { border-color: var(--zbs-green); }
body.zbs-app .uk-margin label { font-weight: 600; }

/* search fields */
body.zbs-app .uk-search { display: block; position: relative; width: 100%; max-width: none; }
body.zbs-app .uk-search-input {
  width: 100% !important;
  min-height: 48px;
  height: auto;
  padding: 10px 14px 10px 44px !important;
  background: #fff !important;
  border: 1.5px solid var(--zbs-line-strong) !important;
  border-radius: var(--r-pill) !important;
  font-family: var(--font-body) !important;
  font-size: 16px !important;
  color: var(--zbs-ink) !important;
  text-align: left !important;
}
body.zbs-app .uk-search-large .uk-search-input { font-size: 17px !important; min-height: 52px; }
body.zbs-app .uk-search-input:focus { border-color: var(--zbs-green) !important; box-shadow: 0 0 0 4px rgba(45, 165, 2, .18); outline: 0; background: #fff !important; }
body.zbs-app .uk-search .uk-search-icon { color: var(--zbs-green-700); width: 44px; }
body.zbs-app .uk-search > .uk-button { margin-left: 8px; }
/* Pages that pair the search input with a Search button */
body.zbs-app form.uk-search-default { display: flex; align-items: center; gap: 8px; flex-wrap: nowrap; }
body.zbs-app form.uk-search-default .uk-search-input { flex: 1 1 auto; }
body.zbs-app form.uk-search-default .uk-search-icon { position: absolute; left: 0; top: 0; bottom: 0; display: flex; align-items: center; justify-content: center; pointer-events: none; }
body.zbs-app form.uk-search-default > .uk-button { flex: 0 0 auto; margin-left: 0; }

/* member suggestion dropdown */
body.zbs-app #suggesstion-box-member { display: block; position: relative; padding: 0; margin: 0; }
body.zbs-app #country-list {
  float: none;
  position: absolute;
  left: 0; right: 0; top: 6px;
  width: 100%;
  max-height: 55vh;
  overflow-y: auto;
  list-style: none;
  margin: 0;
  padding: 6px;
  background: #fff;
  border: 1px solid var(--zbs-line-strong);
  border-radius: var(--r-card);
  box-shadow: 0 18px 32px -14px rgba(3, 9, 24, .35);
  z-index: 50;
}
body.zbs-app #country-list li {
  padding: 12px 14px;
  background: transparent;
  color: var(--zbs-ink);
  border-bottom: 1px solid var(--zbs-line);
  border-radius: var(--r-sm);
  font-size: 15px;
  cursor: pointer;
}
body.zbs-app #country-list li:last-child { border-bottom: 0; }
body.zbs-app #country-list li:hover, body.zbs-app #country-list li:active { background: var(--zbs-green-50); color: var(--zbs-green-800); }

/* --------------------------------------------------------------------------
   Badges & alerts
   -------------------------------------------------------------------------- */
body.zbs-app .uk-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-width: 26px;
  height: auto;
  min-height: 26px;
  padding: 2px 11px !important;
  border-radius: var(--r-pill) !important;
  font-family: var(--font-display) !important;
  font-size: 13.5px !important;
  font-weight: 700 !important;
  line-height: 1.3;
  white-space: nowrap;
  vertical-align: middle;
  border: 0 !important;
  box-shadow: none;
}
/* Badges with no colour of their own keep the old mint, with legible dark-green text */
body.zbs-app .uk-badge:not([style*="background"]) {
  background-color: var(--zbs-mint) !important;
  color: #04382a;
}
body.zbs-app .uk-badge a { color: inherit !important; text-decoration: none; }

body.zbs-app .uk-alert {
  border-radius: var(--r-ctl);
  padding: 14px 44px 14px 16px;
  margin: 12px 0;
  font-size: 15px;
  border-left: 5px solid;
}
body.zbs-app .uk-alert-danger { background: var(--zbs-red-50); color: var(--zbs-red-600); border-color: var(--zbs-red); }
body.zbs-app .uk-alert-success { background: var(--zbs-green-50); color: var(--zbs-green-800); border-color: var(--zbs-green); }
body.zbs-app .uk-alert-warning { background: var(--zbs-gold-100); color: #6b5200; border-color: var(--zbs-gold); }
body.zbs-app .uk-alert-primary { background: #eaf6f4; color: var(--zbs-teal); border-color: var(--zbs-teal); }
body.zbs-app .uk-alert > :last-child { margin-bottom: 0; }
body.zbs-app .uk-alert p { margin: 0; }

body.zbs-app .uk-placeholder { background: #fff; border: 1.5px dashed var(--zbs-line-strong); border-radius: var(--r-card); }

/* --------------------------------------------------------------------------
   Tables (desktop)
   -------------------------------------------------------------------------- */
body.zbs-app .uk-table, body.zbs-app table.table {
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 400 !important;
  color: var(--zbs-ink);
  margin: 0;
  width: 100%;
  border-collapse: collapse;
}
body.zbs-app .uk-table th {
  background: #f6f8f2;
  color: var(--zbs-ink-2);
  font-family: var(--font-display);
  font-size: 13.5px;
  font-weight: 700;
  text-transform: none;
  letter-spacing: 0;
  padding: 14px 12px;
  border-bottom: 1.5px solid var(--zbs-line-strong);
  vertical-align: middle;
  white-space: nowrap;
}
body.zbs-app .uk-table td { padding: 12px; vertical-align: middle; border-top: 0; }
body.zbs-app .uk-table-divider > :not(:first-child) > tr:not(:first-child),
body.zbs-app .uk-table-divider > :first-child > tr:not(:first-child),
body.zbs-app .uk-table-divider > tr:not(:first-child) { border-top: 1px solid var(--zbs-line); }
body.zbs-app .uk-table tbody tr:hover { background: #fafcf6; }
body.zbs-app .uk-table a { font-weight: 600; }
body.zbs-app .uk-table .uk-button { min-height: 38px; padding: 0 14px; font-size: 14px !important; white-space: nowrap; }
body.zbs-app .uk-table-striped tbody tr:nth-of-type(odd) { background: #fafcf6; }
@media (min-width: 950px) { body.zbs-app #serached_member_infor tr:nth-child(odd) { background-color: transparent !important; } }
body.zbs-app .maintxt { font-family: var(--font-body) !important; font-weight: 500 !important; color: var(--zbs-ink) !important; line-height: 1.4 !important; }
body.zbs-app .colorMobile { color: var(--zbs-ink) !important; font-weight: 600 !important; }

/* wide tables scroll inside their card rather than pushing the page sideways */
@media (min-width: 950px) {
  body.zbs-app .border_class > .row > .col-md-12,
  body.zbs-app .et_pb_code_inner > .row > .col-md-12 { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  body.zbs-app .et_pb_code_inner > .row > .col-md-12 > .uk-table { background: var(--zbs-surface); }
}

/* Rotated funeral-name headers on the register (kept, but given room) */
body.zbs-app th.f { height: 96px; vertical-align: bottom; font-size: 12.5px; padding: 8px 4px; }
body.zbs-app td.f1 { text-align: center; }
body.zbs-app td.f2 { white-space: nowrap; }
body.zbs-app .uk-iconnav { gap: 6px; flex-wrap: nowrap; margin-left: 0; }
body.zbs-app .uk-iconnav > * { padding-left: 0; }
body.zbs-app .uk-iconnav > * > a { width: 40px; height: 40px; display: inline-flex; align-items: center; justify-content: center; border-radius: var(--r-pill); background: var(--zbs-green-50); color: var(--zbs-green-800) !important; }
body.zbs-app .uk-iconnav > * > a:hover { background: var(--zbs-green-100); }

/* --------------------------------------------------------------------------
   Tables → cards on phones AND tablets (< 950px)
   (UIkit only stacks below 640px; the markup already carries .not_desktop
   labels for this whole range, so stack for all of it.)
   -------------------------------------------------------------------------- */
@media (max-width: 949.98px) {
  body.zbs-app table.uk-table-responsive,
  body.zbs-app table.uk-table-responsive tbody,
  body.zbs-app table.uk-table-responsive tr,
  body.zbs-app table.uk-table-responsive td { display: block; width: 100% !important; }
  body.zbs-app table.uk-table-responsive thead { display: none; }
  body.zbs-app table.uk-table-responsive { background: transparent; }

  body.zbs-app table.uk-table-responsive tr {
    background: var(--zbs-surface) !important;
    border: 1px solid var(--zbs-line);
    border-left: 5px solid var(--zbs-green);
    border-radius: var(--r-card);
    padding: 12px 14px;
    margin: 0 0 12px;
  }
  body.zbs-app table.uk-table-responsive tr:hover { background: var(--zbs-surface) !important; }
  body.zbs-app table.uk-table-responsive td { padding: 5px 0 !important; border: 0 !important; }
  body.zbs-app table.uk-table-responsive td:empty { display: none; }
  body.zbs-app table.uk-table-responsive .uk-button { width: 100%; min-height: 46px; }
  body.zbs-app table.uk-table-responsive td > a > .uk-button { width: 100%; }
  body.zbs-app table.uk-table-responsive td.f2, body.zbs-app table.uk-table-responsive td.f1 { white-space: normal; text-align: left; }
  body.zbs-app table.uk-table-responsive td.f1 { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
  body.zbs-app table.uk-table-responsive td.f2 { padding-top: 8px !important; }

  /* the member register (home) */
  body.zbs-app #serached_member_infor tr,
  body.zbs-app #serached_member_infor tr:nth-child(odd) { padding: 12px 12px 10px; background: var(--zbs-surface) !important; }
  body.zbs-app span.not_desktop { display: inline !important; }
  body.zbs-app td.not_desktop { display: block !important; }
  body.zbs-app .not_desktop b { font-family: var(--font-display); font-size: 17px; }
  body.zbs-app .border_class { border-radius: var(--r-card) !important; border: 0 !important; background: transparent; overflow: visible; }
  body.zbs-app .border_class > .row > .col-md-12 { overflow: visible; }
  body.zbs-app .uk-icon-button { width: 34px !important; height: 34px !important; }
  body.zbs-app .uk-iconnav > * > a { width: 46px; height: 46px; }

  body.zbs-app .not_mobile { display: none !important; }
  body.zbs-app .mobileLine { border-bottom: 0 !important; }
  body.zbs-app .isCenter { text-align: left !important; }
  body.zbs-app .toppadd { padding-top: 0 !important; }
}
@media (min-width: 950px) { body.zbs-app .not_desktop { display: none !important; } }

/* first-column accent rail by state (home register + funerals) */
body.zbs-app tr[style*="brown"] { border-left-color: var(--zbs-gold) !important; }

/* --------------------------------------------------------------------------
   Modals
   -------------------------------------------------------------------------- */
body.zbs-app .uk-modal { padding: 12px; }
body.zbs-app .uk-modal-dialog {
  border-radius: 20px;
  overflow: hidden;
  width: 100%;
  max-width: 680px;
  box-shadow: 0 30px 70px -20px rgba(3, 9, 24, .55);
  background: #fff;
}
body.zbs-app .uk-modal-container .uk-modal-dialog { max-width: 1100px; }
body.zbs-app .uk-modal-body { padding: 24px; }
body.zbs-app .uk-modal-header { background: #f6f8f2; border-bottom: 1px solid var(--zbs-line); padding: 18px 24px; }
body.zbs-app .uk-modal-footer { background: #f6f8f2; border-top: 1px solid var(--zbs-line); padding: 14px 24px; }
body.zbs-app .uk-modal-title {
  font-family: var(--font-display) !important;
  font-size: 24px !important;
  font-weight: 800;
  line-height: 1.2;
  color: var(--zbs-ink) !important;
  text-align: left !important;
  padding-top: 0 !important;
  margin: 0 0 16px;
}
body.zbs-app .uk-modal-body > form > .uk-text-right,
body.zbs-app .uk-modal-body > .uk-text-right,
body.zbs-app .uk-modal-body p.uk-text-right {
  display: flex; justify-content: flex-end; gap: 10px; flex-wrap: wrap;
  margin-top: 20px; padding-top: 16px;
  border-top: 1px solid var(--zbs-line) !important;
}
body.zbs-app .uk-modal-close-default, body.zbs-app .uk-modal-close-outside {
  top: 12px; right: 12px;
  width: 40px; height: 40px;
  display: inline-flex; align-items: center; justify-content: center;
  background: #fff; border: 1px solid var(--zbs-line); border-radius: var(--r-pill);
}
body.zbs-app #member_msg { display: block; margin: 8px 0 0 !important; color: var(--zbs-red) !important; font-size: 15px !important; font-weight: 600 !important; }
@media (max-width: 599.98px) {
  body.zbs-app .uk-modal { padding: 0; align-items: flex-end; }
  body.zbs-app .uk-modal-dialog { border-radius: 20px 20px 0 0; max-width: none; margin: 0; max-height: 94vh; overflow-y: auto; }
  body.zbs-app .uk-modal-body { padding: 20px 16px 24px; }
  body.zbs-app .uk-modal-body > form > .uk-text-right .uk-button,
  body.zbs-app .uk-modal-body p.uk-text-right .uk-button { flex: 1 1 140px; }
}

/* --------------------------------------------------------------------------
   Pagination (simplePagination plugin + bootstrap .pagination)
   -------------------------------------------------------------------------- */
body.zbs-app .pagination, body.zbs-app .simple-pagination ul { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; padding: 0; margin: 16px 0; justify-content: center; }
body.zbs-app .pagination > li > a, body.zbs-app .pagination > li > span,
body.zbs-app .simple-pagination li a, body.zbs-app .simple-pagination li span {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 44px; min-height: 44px; padding: 0 12px;
  border: 1.5px solid var(--zbs-line-strong) !important;
  border-radius: var(--r-ctl) !important;
  background: #fff !important; color: var(--zbs-ink) !important;
  font-family: var(--font-display); font-weight: 700; text-decoration: none; box-shadow: none !important;
}
body.zbs-app .pagination > .active > a, body.zbs-app .simple-pagination li.active span {
  background: var(--zbs-green-700) !important; border-color: var(--zbs-green-700) !important; color: #fff !important;
}

/* --------------------------------------------------------------------------
   Footer block (footer.php)
   -------------------------------------------------------------------------- */
.zbs-footer { width: 100%; text-align: center; padding: 24px 16px 28px; color: var(--zbs-ink-3); font-size: 13px; }
.zbs-footer__who { margin: 0 0 12px; font-size: 14px; }
.zbs-footer__who b { color: var(--zbs-ink); }
.zbs-footer__group { margin: 0 0 14px; }
.zbs-footer__credit { margin: 14px 0 0; }
.zbs-footer__credit b { color: var(--zbs-ink-2); }
body.zbs-app .zbs-footer hr { margin: 14px auto; max-width: 240px; }

/* --------------------------------------------------------------------------
   Login & auth pages
   -------------------------------------------------------------------------- */
body.zbs-auth { background: var(--zbs-bg); }
.zbs-auth-shell { min-height: 100vh; display: grid; grid-template-columns: 1fr; }
.zbs-auth-brand {
  position: relative;
  background: var(--zbs-ink);
  color: #fff;
  padding: 28px 24px 24px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center;
  overflow: hidden;
}
.zbs-auth-brand .zbs-flag { position: absolute; left: 0; right: 0; top: 0; height: 8px; }
.zbs-auth-brand img { width: 112px; height: 112px; display: block; margin-bottom: 14px; }
.zbs-auth-brand h2 { color: #fff !important; font-size: 28px; font-weight: 800; margin: 0 0 6px; }
.zbs-auth-brand p { margin: 0; color: #c9d1c0; font-size: 15px; max-width: 34ch; }
.zbs-auth-main { display: flex; align-items: flex-start; justify-content: center; padding: 28px 16px 40px; }
.zbs-auth-card {
  width: 100%; max-width: 440px;
  background: #fff; border: 1px solid var(--zbs-line); border-radius: 20px;
  padding: 28px 24px;
  margin-top: -44px;
  box-shadow: 0 24px 50px -28px rgba(3, 9, 24, .45);
  position: relative;
}
.zbs-auth-card h1 { font-size: 26px !important; font-weight: 800 !important; margin: 0 0 4px !important; text-align: left !important; }
.zbs-auth-card .zbs-sub { margin: 0 0 20px; color: var(--zbs-ink-3); font-size: 15px; }
.zbs-field { margin: 0 0 16px; }
.zbs-field label { display: block; margin: 0 0 6px; font-family: var(--font-display); font-size: 14px; font-weight: 700; color: var(--zbs-ink-2); }
.zbs-pass { position: relative; }
.zbs-pass .input { padding-right: 76px !important; }
.zbs-pass button {
  position: absolute; right: 6px; top: 6px; bottom: 6px;
  min-width: 60px; padding: 0 12px;
  border: 0; border-radius: 8px; background: transparent;
  color: var(--zbs-green-700); font-family: var(--font-display); font-weight: 700; font-size: 14px; cursor: pointer;
}
.zbs-pass button:hover { background: var(--zbs-green-50); }
.zbs-auth-card .zbs-submit { width: 100%; min-height: 52px; font-size: 17px !important; }
.zbs-auth-card .zbs-links { margin: 18px 0 0; text-align: center; font-size: 14px; }
body.zbs-auth #icct { margin: 0 !important; display: block !important; text-align: center; padding: 0 !important; }
body.zbs-auth #im { margin: 14px 0 0; }
@media (min-width: 900px) {
  .zbs-auth-shell { grid-template-columns: minmax(380px, 5fr) 7fr; }
  .zbs-auth-brand { padding: 48px; align-items: flex-start; text-align: left; justify-content: flex-end; }
  .zbs-auth-brand img { width: 168px; height: 168px; margin-bottom: 28px; }
  .zbs-auth-brand h2 { font-size: 42px; }
  .zbs-auth-brand p { font-size: 17px; }
  .zbs-auth-main { align-items: center; padding: 48px; }
  .zbs-auth-card { margin-top: 0; padding: 36px; }
}

/* --------------------------------------------------------------------------
   Misc utilities used in markup
   -------------------------------------------------------------------------- */
body.zbs-app .flo { float: none; }
body.zbs-app .clearfix::after { content: ""; display: table; clear: both; }
body.zbs-app .uk-text-danger { color: var(--zbs-red) !important; }
body.zbs-app .uk-text-right { text-align: right; }
body.zbs-app .rowdetails { border-bottom: 1px solid var(--zbs-line) !important; padding: 10px 0 !important; }
body.zbs-app .report > [class*="col-"] { border-bottom: 1px solid var(--zbs-line) !important; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

@media print {
  .zbs-bar, .se-pre-con, .zbs-footer { display: none !important; }
  body.zbs-app { background: #fff; }
}

/* --------------------------------------------------------------------------
   Legacy single-field pages (forgot / reset password) – make the old
   half-width helpers fill their card
   -------------------------------------------------------------------------- */
body.zbs-app .username, body.zbs-app .password, body.zbs-app .pbtn { width: 100% !important; margin-left: 0 !important; margin-right: 0 !important; position: relative; }
body.zbs-app .zbs-auth-card .username, body.zbs-app .zbs-auth-card .password { margin-bottom: 16px !important; }
body.zbs-app .et_pb_contact_submit { margin-left: 0 !important; }
body.zbs-app .talign { margin-left: 0 !important; display: block !important; padding: 0 !important; font-family: var(--font-body); font-weight: 400; }

/* plain .uk-button (no variant class) reads as the default button */
body.zbs-app .uk-button:not([class*="uk-button-"]):not(.et_pb_button):not(.btnc) {
  background: #fff;
  color: var(--zbs-ink);
  border-color: var(--zbs-line-strong);
}
body.zbs-app .uk-button:not([class*="uk-button-"]):not(.et_pb_button):not(.btnc):hover { background: var(--zbs-green-50); border-color: var(--zbs-green); color: var(--zbs-green-800); }

/* rows that sit directly in the page container (e.g. advance groups) */
body.zbs-app #page-container > .row {
  display: block;
  max-width: 1320px;
  margin: 20px auto !important;
  padding: 0 12px;
}
body.zbs-app #page-container > .row > [class*="col-"] { float: none; width: 100%; padding: 0; }
body.zbs-app #page-container > .row h3 { font-size: 26px; font-weight: 800; text-align: left; margin: 0 0 14px; }
body.zbs-app .zbs-empty-col { display: none !important; }

/* bare content placed straight into the page container (deceased list, notices) */
body.zbs-app #page-container > table.uk-table,
body.zbs-app #page-container > p,
body.zbs-app #page-container > h1, body.zbs-app #page-container > h2, body.zbs-app #page-container > h3, body.zbs-app #page-container > h4,
body.zbs-app #page-container > div:not(.zbs-bar):not(.row):not(.et_pb_code_inner):not(.uk-modal):not(.zbs-footer) {
  max-width: 1320px;
  margin-left: auto;
  margin-right: auto;
}
body.zbs-app #page-container > p, body.zbs-app #page-container > h1, body.zbs-app #page-container > h2,
body.zbs-app #page-container > h3, body.zbs-app #page-container > h4 { padding: 0 16px; margin-top: 20px; }
body.zbs-app #page-container > table.uk-table { width: calc(100% - 24px) !important; margin-top: 16px; margin-bottom: 16px; }
@media (min-width: 950px) {
  body.zbs-app #page-container > table.uk-table { background: var(--zbs-surface); border: 1px solid var(--zbs-line); border-radius: var(--r-card); overflow: hidden; margin-top: 20px; }
}

/* tablets: two cards per row instead of one very wide card */
@media (min-width: 700px) and (max-width: 949.98px) {
  body.zbs-app table.uk-table-responsive tbody { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; align-items: start; }
  body.zbs-app table.uk-table-responsive tr { margin: 0; }
}

/* register on desktop: neutral cells, funeral names set vertically (was rotated 315° with coloured borders) */
body.zbs-app .f, body.zbs-app .f1, body.zbs-app .f2 { border: 0 !important; }
body.zbs-app th.f { transform: none !important; background: #f6f8f2; text-align: center; padding: 10px 4px; width: 38px; }
body.zbs-app th.f > span { display: inline-block; writing-mode: vertical-rl; transform: rotate(180deg); white-space: nowrap; max-height: 110px; overflow: hidden; text-overflow: ellipsis; }
body.zbs-app th.f2 { background: #f6f8f2; }
body.zbs-app .uk-table td.f1, body.zbs-app .uk-table td.f2 { padding: 10px 6px; }

/* ==========================================================================
   Home screen refinements
   ========================================================================== */

/* "Last funeral" strip: status on its own line, the small black badges in ONE compact row */
body.zbs-app .tt .col-md-7 { white-space: nowrap; }
body.zbs-app #last_funeral_status {
  display: flex; width: max-content; max-width: 100%;
  margin: 0 0 8px;
}
body.zbs-app .tt .col-md-7 > .uk-badge:not(#last_funeral_status),
body.zbs-app .tt .col-md-7 > a { display: inline-flex; vertical-align: middle; margin: 0 2px 0 0; }
body.zbs-app .tt .col-md-7 > a > .uk-badge { margin: 0; }
body.zbs-app .tt .col-md-7 .uk-badge:not(#last_funeral_status) {
  min-width: 0; min-height: 24px; padding: 1px 8px !important; font-size: 12.5px !important; gap: 3px;
}
body.zbs-app .tt .col-md-7 .uk-badge:not(#last_funeral_status) svg { width: 15px; height: 15px; }
body.zbs-app .tt .col-md-7 > a > span[uk-icon] svg,
body.zbs-app .tt .col-md-7 > a[class] > span[uk-icon] svg { width: 22px; height: 22px; }
body.zbs-app .tt .col-md-7 > a { line-height: 1; }

/* Member card on phones/tablets: no small arrow, funeral ticks = latest 7 on a single line */
@media (max-width: 949.98px) {
  body.zbs-app #serached_member_infor td.f1.not_desktop > [uk-icon="arrow-right"] { display: none !important; }
  body.zbs-app #serached_member_infor td.f1.not_desktop {
    display: flex !important; flex-wrap: nowrap; align-items: center; gap: 4px; padding-top: 8px !important;
  }
  body.zbs-app #serached_member_infor td.f1.not_desktop > span.not_desktop { display: block !important; flex: 1 1 0; min-width: 0; max-width: 40px; }
  body.zbs-app #serached_member_infor td.f1.not_desktop > span.not_desktop:nth-last-child(n+8) { display: none !important; }
  body.zbs-app #serached_member_infor td.f1.not_desktop .uk-icon-button {
    display: flex !important; width: 100% !important; height: auto !important; aspect-ratio: 1 / 1; padding: 0;
  }
  body.zbs-app #serached_member_infor td.f1.not_desktop .uk-icon-button svg { width: 58%; height: 58%; }
}

/* Member / funeral search suggestions */
body.zbs-app #country-list li {
  display: flex; flex-direction: column; gap: 3px;
  padding: 11px 12px; color: var(--zbs-ink) !important;
}
body.zbs-app #country-list .zbs-sr-name {
  display: flex; align-items: center; gap: 8px;
  font-family: var(--font-display); font-weight: 700; font-size: 16px; color: var(--zbs-ink);
}
body.zbs-app #country-list .zbs-sr-name > [uk-icon] { color: var(--zbs-green-700); flex: 0 0 auto; }
body.zbs-app #country-list .zbs-sr-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; padding-left: 26px; font-size: 13.5px; }
body.zbs-app #country-list .zbs-sr-phone { display: inline-flex; align-items: center; gap: 5px; color: var(--zbs-green-800) !important; font-weight: 600; }
body.zbs-app #country-list .zbs-sr-group {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 1px 9px; border-radius: var(--r-pill);
  background: #eef4ec; color: var(--zbs-ink-2) !important; font-weight: 500;
}
body.zbs-app #country-list li:hover .zbs-sr-name, body.zbs-app #country-list li:active .zbs-sr-name { color: var(--zbs-green-800); }

/* ==========================================================================
   Home: welcome card gets its own brand background; member-card badge spacing
   ========================================================================== */
body.zbs-app .et_pb_code_inner > .row.zbs-hero {
  position: relative;
  background:
    radial-gradient(120% 140% at 100% 0%, rgba(253, 201, 1, .22) 0%, rgba(253, 201, 1, 0) 55%),
    linear-gradient(135deg, #dff1d3 0%, #f1f9ea 52%, #ffffff 100%) !important;
  border: 1px solid var(--zbs-line-strong) !important;
  padding: 24px 16px 16px !important;
}
/* the flag, as a thin band across the top of the card */
body.zbs-app .et_pb_code_inner > .row.zbs-hero::before {
  display: block !important; content: "" !important;
  position: absolute; left: 0; right: 0; top: 0; height: 6px;
  border-radius: var(--r-card) var(--r-card) 0 0;
  background: linear-gradient(90deg,
    var(--zbs-green) 0 14.28%, var(--zbs-gold) 14.28% 28.57%, #e10600 28.57% 42.85%, var(--zbs-ink) 42.85% 57.14%,
    #e10600 57.14% 71.42%, var(--zbs-gold) 71.42% 85.71%, var(--zbs-green) 85.71% 100%);
}
/* faint logo mark behind the welcome text */
body.zbs-app .et_pb_code_inner > .row.zbs-hero::after {
  display: block !important; content: "" !important;
  position: absolute; right: 14px; bottom: 84px; width: 78px; height: 78px;
  background: url("../images/logo-192.png") center / contain no-repeat;
  opacity: .1;
  pointer-events: none;
}
body.zbs-app .zbs-hero > [class*="col-"] { z-index: 1; }
body.zbs-app .zbs-hero .uk-search-input { box-shadow: 0 1px 0 rgba(3, 9, 24, .04); }
@media (min-width: 950px) {
  body.zbs-app .et_pb_code_inner > .row.zbs-hero::after { width: 150px; height: 150px; right: 24px; top: 26px; bottom: auto; }
}

/* member card: breathing room between the ID line and the status line */
body.zbs-app td.not_desktop .uk-badge { margin-bottom: 2px; }
body.zbs-app td.not_desktop br + .uk-badge { margin-top: 10px; }

/* stacked action buttons inside a card: a small gap between them */
@media (max-width: 949.98px) {
  body.zbs-app table.uk-table-responsive td .uk-button + .uk-button,
  body.zbs-app table.uk-table-responsive td > a + .uk-button { margin-top: 8px; }
}

/* ==========================================================================
   Accounts toolbar: every stat (Total Balance, each group, Subscribing Members) on ONE line
   ========================================================================== */
body.zbs-app .et_pb_code_inner > .row.et_pb_texta > .col-md-2 { white-space: nowrap; flex: 1 1 auto; min-width: max-content; }
body.zbs-app .et_pb_code_inner > .row.et_pb_texta > .col-md-2 > div {
  display: flex; align-items: center; flex-wrap: nowrap; gap: 6px; margin: 8px 0;
}
body.zbs-app .et_pb_code_inner > .row.et_pb_texta > .col-md-2 > br { display: none; }
body.zbs-app .et_pb_code_inner > .row.et_pb_texta > .col-md-2 > a { margin-right: 4px; }
@media (max-width: 599.98px) {
  body.zbs-app .et_pb_code_inner > .row.et_pb_texta > .col-md-2 { font-size: 14.5px; }
  body.zbs-app .et_pb_code_inner > .row.et_pb_texta > .col-md-2 .uk-badge { font-size: 13px !important; padding: 2px 9px !important; }
}
/* search box + button side by side, even when the page wraps the button in a div */
body.zbs-app form.uk-search-default > div { flex: 0 0 auto; padding: 0 !important; }
body.zbs-app .uk-margin[style*="padding-top"] { padding-top: 0 !important; }

/* ==========================================================================
   Modals – one frame for all of them
   * always centred on screen (with a safe gap on every side)
   * long content scrolls INSIDE the dialog, never off-screen
   * a round close button is pinned to the top-right and stays visible while scrolling
   ========================================================================== */
body.zbs-app .uk-modal.uk-open {
  display: flex !important;
  align-items: center;
  justify-content: center;
  padding: max(12px, env(safe-area-inset-top)) 12px max(12px, env(safe-area-inset-bottom));
}
body.zbs-app .uk-modal-dialog {
  position: relative;
  margin: auto !important;
  width: 680px;
  max-height: calc(100vh - 24px);
  max-height: calc(100dvh - 24px);
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  border-radius: 20px;
}
body.zbs-app .uk-modal-container .uk-modal-dialog { width: 1100px; }
@media (max-width: 599.98px) {
  body.zbs-app .uk-modal.uk-open { padding: max(10px, env(safe-area-inset-top)) 10px max(10px, env(safe-area-inset-bottom)); }
  body.zbs-app .uk-modal-dialog { border-radius: 18px; max-height: calc(100vh - 20px); max-height: calc(100dvh - 20px); }
  body.zbs-app .uk-modal-body { padding: 20px 16px 24px; }
}

/* close button: always first inside the dialog, sticky so it never scrolls away */
body.zbs-app .uk-modal-dialog.uk-modal-body { --zpt: 24px; --zpr: 24px; }   /* dialogs that carry their own padding */
@media (max-width: 599.98px) { body.zbs-app .uk-modal-dialog.uk-modal-body { --zpt: 20px; --zpr: 16px; } }
body.zbs-app .uk-modal-dialog > .zbs-modal-x {
  position: sticky !important;
  top: calc(10px - var(--zpt, 0px)); right: auto; left: auto;
  float: none;
  display: flex; align-items: center; justify-content: center;
  width: 40px; height: 40px;
  margin: calc(10px - var(--zpt, 0px)) calc(10px - var(--zpr, 0px)) calc(var(--zpt, 0px) - 50px) auto;   /* net height 0, so the title keeps its normal spacing */
  padding: 0;
  z-index: 30;
  background: #fff;
  color: var(--zbs-ink);
  border: 1px solid var(--zbs-line-strong);
  border-radius: 50%;
  box-shadow: 0 2px 8px rgba(3, 9, 24, .14);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
body.zbs-app .uk-modal-dialog > .zbs-modal-x:hover { background: var(--zbs-red-50); color: var(--zbs-red); border-color: var(--zbs-red); }
body.zbs-app .uk-modal-dialog > .zbs-modal-x svg { width: 16px; height: 16px; pointer-events: none; }
/* keep titles clear of the button */
body.zbs-app .uk-modal-dialog .uk-modal-title { padding-right: 48px; }
body.zbs-app .uk-modal-header { padding-right: 24px; }

/* full-screen picture viewer on the receipts page */
body.zbs-app #imageModal .close {
  position: fixed;
  top: max(12px, env(safe-area-inset-top)); right: 14px;
  width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  font-size: 30px; line-height: 1;
  color: #fff; opacity: 1; text-shadow: none;
  background: rgba(3, 9, 24, .6);
  border: 1px solid rgba(255, 255, 255, .4);
  border-radius: 50%;
  z-index: 10;
}
body.zbs-app #imageModal .modal-content { max-width: 100%; max-height: 90vh; object-fit: contain; }
