/* Shared select spacing and availability empty states across all application screens. */
:root select:not([multiple]):not([size]),
:root select:not([multiple])[size="1"] {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 2.75rem !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23334155' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-position: right 16px center !important;
  background-size: 16px 16px !important;
}
:root select:disabled { opacity: .65; }
:root .zreev-empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  box-sizing: border-box;
  padding: 1.5rem 1.25rem;
  color: #111827;
  text-align: center;
}
:root .zreev-empty-state-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  margin: 0 0 4px;
  border: 0;
  border-radius: 50%;
  background: #eaf0ff;
  color: #2f6bff;
}
:root .zreev-empty-state-icon svg { display: block; width: 22px; height: 22px; }
:root .zreev-empty-state .zreev-empty-state-title {
  display: block;
  margin: 0;
  padding: 0;
  color: #1f2937;
  font-size: var(--z-font-size-15, .9375rem);
  font-weight: 700;
  line-height: 1.5;
}
:root .zreev-empty-state .zreev-empty-state-description {
  display: block;
  max-width: 480px;
  margin: 0;
  padding: 0;
  color: #6b7280;
  font-size: .875rem;
  font-weight: 400;
  line-height: 1.5;
}
@media (forced-colors: active) {
  :root select:not([multiple]):not([size]),
  :root select:not([multiple])[size="1"] {
    appearance: auto;
    -webkit-appearance: auto;
    background-image: none !important;
  }
  :root .zreev-empty-state-icon { border: 1px solid CanvasText; }
}

/* Shared box tabs: a light active tint keeps the primary action prominent. */
:is(#manager-app, #manager-mobile-app, #specialist-desktop-app, #specialist-app, #patient-desktop-app, #patient-app) [role="tablist"] {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  padding-block: 0.75rem;
  border: 0;
  border-radius: 0;
  background: transparent;
}
:is(#manager-app, #manager-mobile-app, #specialist-desktop-app, #specialist-app, #patient-desktop-app, #patient-app) [role="tablist"] > [role="tab"] {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  gap: 0.375rem;
  box-sizing: border-box;
  min-height: 2.25rem;
  padding: 0.5rem 1rem;
  border: 1px solid transparent;
  border-radius: 999px;
  background: #f1f3f5;
  color: #6b7280;
  box-shadow: none;
  font-family: inherit;
  font-size: .875rem;
  font-weight: 600;
  line-height: 1.25rem;
  text-decoration: none;
  cursor: pointer;
}
:is(#manager-app, #manager-mobile-app, #specialist-desktop-app, #specialist-app, #patient-desktop-app, #patient-app) [role="tablist"] > [role="tab"]:hover {
  background: #e9edf2;
  color: #334155;
}
:is(#manager-app, #manager-mobile-app, #specialist-desktop-app, #specialist-app, #patient-desktop-app, #patient-app) [role="tablist"] > [role="tab"][aria-selected="true"] {
  background: #fff;
  border-color: #2f6bff;
  color: #2f6bff;
  font-weight: 700;
}
:is(#manager-app, #manager-mobile-app, #specialist-desktop-app, #specialist-app, #patient-desktop-app, #patient-app) [role="tablist"] > [role="tab"][aria-selected="true"]:hover {
  background: #fff;
}
:is(#manager-app, #manager-mobile-app, #specialist-desktop-app, #specialist-app, #patient-desktop-app, #patient-app) [role="tablist"] > [role="tab"]:focus-visible {
  outline: 2px solid #2f6bff;
  outline-offset: 3px;
}
:is(#manager-app, #manager-mobile-app, #specialist-desktop-app, #specialist-app, #patient-desktop-app, #patient-app) [role="tablist"] > [role="tab"] > span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  min-width: 1.5rem;
  height: 1.5rem;
  margin-left: 0;
  padding: 0 .25rem;
  border: 0;
  border-radius: 999px;
  background: #fff;
  color: #2f6bff;
  font-size: .75rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  line-height: 1;
  opacity: 1;
}
@media (forced-colors: active) {
  :is(#manager-app, #manager-mobile-app, #specialist-desktop-app, #specialist-app, #patient-desktop-app, #patient-app) [role="tablist"] > [role="tab"] { border: 1px solid ButtonText; }
  :is(#manager-app, #manager-mobile-app, #specialist-desktop-app, #specialist-app, #patient-desktop-app, #patient-app) [role="tablist"] > [role="tab"][aria-selected="true"] { border-color: Highlight; color: Highlight; }
}

/* Horizontal separators: space separates sections; lines mark table boundaries. */
:root { --z-row-separator: #f1f3f5; }

/* Level 2 narrows a list; outlined pills are distinct from section navigation. */
:is(#manager-app, #manager-mobile-app, #specialist-desktop-app, #specialist-app, #patient-desktop-app, #patient-app) .z-filter-pills {
  display: flex; flex-wrap: wrap; align-items: center; gap: 0.375rem;
  padding-block: 0.75rem; border: 0; background: transparent;
}
:is(#manager-app, #manager-mobile-app, #specialist-desktop-app, #specialist-app, #patient-desktop-app, #patient-app) .z-filter-pills > button {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.375rem;
  flex: 0 0 auto; box-sizing: border-box; min-height: 0;
  padding: 0.3125rem 0.75rem; border: 1px solid #e5e7eb; border-radius: 999px;
  background: #fff; color: #6b7280; box-shadow: none;
  font-family: inherit; font-size: .75rem; font-weight: 600; line-height: 1.125rem;
  cursor: pointer;
}
:is(#manager-app, #manager-mobile-app, #specialist-desktop-app, #specialist-app, #patient-desktop-app, #patient-app) .z-filter-pills > button[aria-pressed="true"] {
  background: #fff; border-color: #2f6bff; color: #2f6bff;
}
:is(#manager-app, #manager-mobile-app, #specialist-desktop-app, #specialist-app, #patient-desktop-app, #patient-app) .z-filter-pills > button:not(:disabled):hover { border-color: #2f6bff; }
:is(#manager-app, #manager-mobile-app, #specialist-desktop-app, #specialist-app, #patient-desktop-app, #patient-app) .z-filter-pills > button:disabled {
  background: #f8fafc; border-color: #f1f3f5; color: #c7cbd1; cursor: default; opacity: 1;
}
:is(#manager-app, #manager-mobile-app, #specialist-desktop-app, #specialist-app, #patient-desktop-app, #patient-app) .z-filter-pills > button .z-filter-count {
  margin: 0; padding: 0; border: 0; background: transparent; color: inherit;
  min-width: 0; min-height: 0; font-size: .6875rem; font-weight: 700; opacity: .75;
}
:is(#manager-app, #manager-mobile-app, #specialist-desktop-app, #specialist-app, #patient-desktop-app, #patient-app) .z-filter-pills > button:focus-visible { outline: 2px solid #2f6bff; outline-offset: 3px; }
@media (forced-colors: active) {
  .z-filter-pills > button:disabled { color: GrayText; border-color: GrayText; }
}

/* Empty states: body stays 14px; title and icon express the section's weight. */
:is(#manager-app, #manager-mobile-app, #specialist-desktop-app, #specialist-app, #patient-desktop-app, #patient-app) .zreev-empty-state {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 0.5rem; min-height: 0; box-sizing: border-box; padding: 1.5rem;
  color: #1f2937; text-align: center;
}
:is(#manager-app, #manager-mobile-app, #specialist-desktop-app, #specialist-app, #patient-desktop-app, #patient-app) .zreev-empty-state .zreev-empty-state-title {
  display: block; margin: 0; padding: 0; color: #1f2937;
  font-size: var(--z-font-size-15, .9375rem); font-weight: 700; line-height: 1.3;
}
:is(#manager-app, #manager-mobile-app, #specialist-desktop-app, #specialist-app, #patient-desktop-app, #patient-app) .zreev-empty-state .zreev-empty-state-description {
  display: block; margin: 0; padding: 0; max-width: 480px;
  color: #6b7280; font-size: .875rem; font-weight: 400; line-height: 1.5;
}
:is(#manager-app, #manager-mobile-app, #specialist-desktop-app, #specialist-app, #patient-desktop-app, #patient-app) .zreev-empty-state .zreev-empty-state-icon {
  display: flex; align-items: center; justify-content: center;
  flex: 0 0 44px; width: 44px; height: 44px; margin: 0 0 4px;
  border: 0; border-radius: 50%; background: #eaf0ff; color: #2f6bff;
}
:is(#manager-app, #manager-mobile-app, #specialist-desktop-app, #specialist-app, #patient-desktop-app, #patient-app) .zreev-empty-state .zreev-empty-state-icon svg { width: 22px; height: 22px; }
:is(#manager-app, #manager-mobile-app, #specialist-desktop-app, #specialist-app, #patient-desktop-app, #patient-app) .zreev-empty-state--main { padding: 2.5rem 1.5rem 1.5rem; }
:is(#manager-app, #manager-mobile-app, #specialist-desktop-app, #specialist-app, #patient-desktop-app, #patient-app) .zreev-empty-state--main .zreev-empty-state-title { font-size: var(--z-font-size-18, 1.125rem); }
:is(#manager-app, #manager-mobile-app, #specialist-desktop-app, #specialist-app, #patient-desktop-app, #patient-app) .zreev-empty-state--main .zreev-empty-state-icon { flex-basis: 56px; width: 56px; height: 56px; }
:is(#manager-app, #manager-mobile-app, #specialist-desktop-app, #specialist-app, #patient-desktop-app, #patient-app) .zreev-empty-state--main .zreev-empty-state-icon svg { width: 28px; height: 28px; }

/* Account data is shared across facilities; present its scope as a plain sentence. */
:is(#manager-app, #manager-mobile-app, #specialist-desktop-app, #specialist-app, #patient-desktop-app, #patient-app) .zreev-profile-data-note {
  display: block; margin: 24px 0 0; padding: 0; border: 0; border-radius: 0;
  background: transparent; box-shadow: none; color: #667085;
  font: inherit; font-size: .875rem; font-weight: 400; line-height: 1.5;
  white-space: normal; overflow-wrap: anywhere;
}

/* One readable information icon for every existing help module. */
:root{--z-help-icon-size:22px;--z-help-icon-color:#334155;}
:root :is(.zreev-profile-info,.manager-heading-help-trigger,.specialist-qualification-help>button,.pd-assistant-help-trigger,.pd-catalog-info>summary){
 display:inline-grid!important;place-items:center!important;box-sizing:border-box!important;
 width:var(--z-help-icon-size)!important;height:var(--z-help-icon-size)!important;
 min-width:var(--z-help-icon-size)!important;min-height:var(--z-help-icon-size)!important;
 flex:0 0 var(--z-help-icon-size)!important;padding:0!important;margin:0;
 border:2px solid var(--z-help-icon-color)!important;border-radius:50%!important;
 background:transparent!important;color:var(--z-help-icon-color)!important;
 font-family:inherit!important;font-size:14px!important;font-weight:700!important;
 font-style:normal!important;line-height:1!important;vertical-align:middle;cursor:help;
}
:root :is(.zreev-profile-info,.manager-heading-help-trigger,.specialist-qualification-help>button,.pd-assistant-help-trigger,.pd-catalog-info>summary):focus-visible{outline:2px solid #2f6bff;outline-offset:4px;}
@media(forced-colors:active){:root{--z-help-icon-color:ButtonText;}}

/* Planned elapsed visit time; this visual never changes the appointment outcome. */
.zreev-visit-progress { display:inline-block; width:14px; height:14px; flex:0 0 14px; vertical-align:-2px; margin-right:0; color:#2f6bff; overflow:visible; }
.zreev-visit-progress-track { opacity:.18; }
.zreev-visit-progress-fill { transform:rotate(-90deg); transform-origin:8px 8px; stroke-linecap:round; animation:zreev-visit-elapsed var(--visit-progress-duration) linear var(--visit-progress-delay) both; }
@keyframes zreev-visit-elapsed { from { stroke-dashoffset:100; } to { stroke-dashoffset:0; } }
@media (prefers-reduced-motion:reduce) { .zreev-visit-progress-fill { animation:none; stroke-dashoffset:var(--visit-progress-offset); } }

/* Shared step progress for booking and manager setup forms. */
.pd-booking-steps{display:flex;gap:0.3125rem;list-style:none;margin:12px 0 0;padding:0;width:240px;max-width:100%}
.pd-booking-step{position:relative;flex:1;height:5px;border-radius:999px;background:var(--patient-border,#E5EAF2)}
.pd-booking-step.is-complete{background:#2f6bff}
.pd-booking-step.is-current{background:#2f6bff;box-shadow:0 0 0 2px #eff4ff}
.pd-booking-step-label{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:normal;border:0}

/* Tooltips and notices use one shared, high-contrast information surface. */
:root {
  --zreev-notice-background: #172033;
  --zreev-notice-foreground: #fff;
  --zreev-notice-border: #334155;
  --zreev-notice-radius: 12px;
}
:root :is(.zreev-system-message, .zreev-message-toast, .manager-heading-help-tooltip, .zreev-profile-help [role="tooltip"]) {
  background: var(--zreev-notice-background);
  color: var(--zreev-notice-foreground);
  border: 1px solid var(--zreev-notice-border);
  border-radius: var(--zreev-notice-radius);
  box-shadow: none;
}
:root :is(.manager-heading-help-tooltip, .zreev-profile-help [role="tooltip"]) {
  box-sizing: border-box;
  padding: .75rem 1rem;
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: .875rem;
  font-weight: 400;
  line-height: 1.5;
  text-align: left;
  white-space: normal;
}


/* Patient booking help: a filled navy icon with a white information mark. */
:root :is(.pd-catalog-info>summary,.pd-assistant-help-trigger){
 background:var(--zreev-notice-background,#172033)!important;
 border-color:var(--zreev-notice-background,#172033)!important;
 color:var(--zreev-notice-foreground,#fff)!important;
}

/* Compact catalogue information triggers beside service and programme names. */
:root :is(.pd-catalog-info>summary,.pd-assistant-entry-panel .pd-assistant-help-trigger){
 width:18px!important;height:18px!important;
 min-width:18px!important;min-height:18px!important;
 flex:0 0 18px!important;font-size:12px!important;
}
