/* 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: 0;
  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: #eaf0ff;
  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: #e1eaff;
}
: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: #eaf0ff; 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; }
