/* Native full-screen search picker (phone / Capacitor) — above PortalModal shells */
.ch-mobile-search.careos-mobile-screen {
  position: fixed !important;
  inset: 0 !important;
  z-index: calc(var(--ch-overlay-z, 13000) + 400) !important;
  display: block !important;
  padding: 0 !important;
  margin: 0 !important;
  background: rgba(15, 23, 42, 0) !important;
  overflow: hidden !important;
  transition: background-color 0.28s ease;
}

.ch-mobile-search.careos-mobile-screen.is-open {
  background: rgba(15, 23, 42, 0.45) !important;
}

.ch-mobile-search.careos-mobile-screen .ch-mobile-search__panel,
.ch-mobile-search.careos-mobile-screen .careos-mobile-screen__panel {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  max-width: none !important;
  max-height: none !important;
  height: 100% !important;
  min-height: 0 !important;
  margin: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  transform: translate3d(100%, 0, 0);
  padding-bottom: var(--ch-kb-inset, 0px);
  transition:
    transform 0.3s cubic-bezier(0.32, 0.72, 0, 1),
    padding-bottom 0.22s ease;
  will-change: transform;
}

.ch-mobile-search.careos-mobile-screen.is-open .ch-mobile-search__panel,
.ch-mobile-search.careos-mobile-screen.is-open .careos-mobile-screen__panel {
  transform: translate3d(0, 0, 0);
}

.ch-mobile-search.careos-mobile-screen.is-leaving .ch-mobile-search__panel,
.ch-mobile-search.careos-mobile-screen.is-leaving .careos-mobile-screen__panel,
.ch-mobile-search.careos-mobile-screen.is-entering .ch-mobile-search__panel,
.ch-mobile-search.careos-mobile-screen.is-entering .careos-mobile-screen__panel {
  pointer-events: none;
}

.ch-mobile-search.careos-mobile-screen.is-leaving .ch-mobile-search__panel,
.ch-mobile-search.careos-mobile-screen.is-leaving .careos-mobile-screen__panel {
  transform: translate3d(100%, 0, 0);
}

[dir='rtl'] .ch-mobile-search.careos-mobile-screen .ch-mobile-search__panel,
[dir='rtl'] .ch-mobile-search.careos-mobile-screen .careos-mobile-screen__panel {
  transform: translate3d(-100%, 0, 0);
}

[dir='rtl'] .ch-mobile-search.careos-mobile-screen.is-open .ch-mobile-search__panel,
[dir='rtl'] .ch-mobile-search.careos-mobile-screen.is-open .careos-mobile-screen__panel {
  transform: translate3d(0, 0, 0);
}

[dir='rtl'] .ch-mobile-search.careos-mobile-screen.is-leaving .ch-mobile-search__panel,
[dir='rtl'] .ch-mobile-search.careos-mobile-screen.is-leaving .careos-mobile-screen__panel {
  transform: translate3d(-100%, 0, 0);
}

.ch-mobile-search__panel {
  display: flex !important;
  flex-direction: column !important;
  background: #fff !important;
  overflow: hidden !important;
  padding-top: env(safe-area-inset-top, 0px);
  padding-bottom: env(safe-area-inset-bottom, 0px);
  padding-left: env(safe-area-inset-left, 0px);
  padding-right: env(safe-area-inset-right, 0px);
  box-sizing: border-box;
}

.ch-mobile-search__head {
  display: grid;
  grid-template-columns: minmax(72px, auto) minmax(0, 1fr) minmax(72px, auto);
  align-items: center;
  min-height: 52px;
  padding: max(8px, env(safe-area-inset-top, 0px)) 8px 8px;
  background: #fff;
  color: #0f172a;
  border-bottom: 1px solid rgba(30, 58, 95, 0.1);
  flex-shrink: 0;
}

.ch-mobile-search__back,
.ch-mobile-search__close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-width: 64px;
  min-height: 44px;
  margin: 0;
  padding: 0 8px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: #2563eb;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.ch-mobile-search__back:active,
.ch-mobile-search__close:active {
  background: #eff6ff;
}

.ch-mobile-search__close {
  justify-self: end;
}

html:not([dir='rtl']) .ch-mobile-search__back svg,
html:not([dir='rtl']) .ch-mobile-search__back .opd-icon {
  transform: scaleX(-1);
}

.ch-mobile-search__title {
  margin: 0;
  font-family: var(--ec-font-display, 'Sora', sans-serif);
  font-size: 1.0625rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: #0f172a;
}

.ch-mobile-search__head-spacer {
  width: 40px;
  height: 40px;
}

.ch-mobile-search__field {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 10px 12px 8px;
  padding: 0 12px;
  min-height: 44px;
  border: 1px solid var(--ec-platform-line, #e8edf3);
  border-radius: 14px;
  background: transparent;
  color: var(--ec-platform-muted, #64748b);
  flex-shrink: 0;
}

.ch-mobile-search__input {
  flex: 1 1;
  min-width: 0;
  border: 0;
  outline: none;
  background: transparent;
  font-size: 16px !important;
  line-height: 1.35;
  color: var(--ec-platform-ink, #0c1a2e);
  padding: 10px 0;
}

.ch-mobile-search__input::placeholder {
  color: var(--ec-platform-muted, #64748b);
  opacity: 1;
  font-weight: 500;
}

.ch-mobile-search__clear {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 50%;
  background: rgba(12, 26, 46, 0.08);
  color: var(--ec-platform-ink, #0c1a2e);
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
}

.ch-mobile-search__body {
  flex: 1 1;
  min-height: 0;
  overflow: auto;
  -webkit-overflow-scrolling: touch;
  padding: 0 0 16px;
  overscroll-behavior: contain;
}

.ch-mobile-search__status {
  margin: 12px 16px;
  font-size: 0.875rem;
  color: var(--ec-platform-muted, #64748b);
}

.ch-mobile-search__list {
  display: flex;
  flex-direction: column;
  padding: 4px 12px 8px;
  box-sizing: border-box;
}

.ch-mobile-search__list > button,
.ch-mobile-search__option,
.ch-mobile-search__list .patient-picker__result,
.ch-mobile-search__list .ec-searchable-select__option {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  width: 100%;
  min-height: 52px;
  margin: 0;
  padding: 12px 16px;
  border: 0;
  border-bottom: 1px solid var(--ec-platform-line, #e8edf3);
  border-radius: 0 !important;
  background: #fff;
  color: var(--ec-platform-ink, #0c1a2e);
  text-align: start;
  font: inherit;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  box-sizing: border-box;
}

.ch-mobile-search__list .patient-picker__result--card {
  gap: 0;
  min-height: 0;
  margin: 0 0 10px;
  padding: 0;
  border: 1px solid var(--ec-platform-line, #e8edf3);
  border-bottom: 1px solid var(--ec-platform-line, #e8edf3);
  border-radius: 14px !important;
  box-shadow: 0 4px 14px rgba(17, 24, 39, 0.05);
  overflow: hidden;
}

.ch-mobile-search__list .patient-picker__result--card .patient-result-card {
  padding: 14px;
}

.ch-mobile-search__option .ec-searchable-select__option-person.is-rich {
  width: 100%;
}

.ch-mobile-search__list > button:active,
.ch-mobile-search__option:active,
.ch-mobile-search__list .patient-picker__result:active {
  background: var(--ch-phone-accent-soft, #e8f0fe);
}

.ch-mobile-search__list .patient-picker__result--card:active {
  background: #fff;
  border-color: rgba(3, 96, 241, 0.4);
  box-shadow: 0 0 0 3px rgba(3, 96, 241, 0.12);
}

.ch-mobile-search__option.is-selected {
  background: var(--ch-phone-accent-soft, #e8f0fe);
  color: var(--ec-platform-blue, #0360f1);
  font-weight: 600;
}

.ch-mobile-search__option.is-disabled {
  opacity: 0.45;
  pointer-events: none;
}

.ch-mobile-search__footer {
  padding: 8px 16px 16px;
}

/* Readonly input trigger — looks like a search box, opens fullscreen sheet */
.ch-mobile-search-trigger-wrap {
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.ch-mobile-search-trigger-wrap .ch-mobile-search-trigger-input {
  cursor: pointer;
  caret-color: transparent;
}

.ch-mobile-search-trigger-wrap .ch-mobile-search-trigger__chevron {
  -webkit-margin-start: auto;
          margin-inline-start: auto;
}

/* Trigger fields that open the fullscreen screen */
.ch-mobile-search-trigger {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  min-height: 44px;
  padding: 8px 12px;
  border: 1px solid var(--ec-platform-line, #e8edf3);
  border-radius: 4px;
  background: #fff;
  color: var(--ec-platform-ink, #0c1a2e);
  text-align: start;
  font: inherit;
  cursor: pointer;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

.ch-mobile-search-trigger.is-placeholder,
.ch-mobile-search-trigger-input.is-placeholder {
  color: var(--ec-platform-muted, #64748b);
}

button.patient-picker__field.ch-mobile-search-trigger-wrap {
  font: inherit;
  text-align: start;
  cursor: pointer;
}

button.patient-picker__field.ch-mobile-search-trigger-wrap .ch-mobile-search-trigger-input {
  pointer-events: none;
}

.ch-mobile-search-trigger__value {
  flex: 1 1;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ch-mobile-search-trigger__chevron {
  flex-shrink: 0;
  width: 0.55em;
  height: 0.55em;
  -webkit-border-end: 2px solid currentColor;
          border-inline-end: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  opacity: 0.45;
  margin-top: -0.2em;
}

/*
 * Phone / Capacitor: keep Back + Close tappable and ink-on-paper.
 * Module sheets sometimes paint a white head and leave the chevron white.
 */
@media (max-width: 767px) {
  .ch-mobile-search.careos-mobile-screen .ch-mobile-search__panel {
    padding-top: 0 !important;
  }

  .ch-mobile-search.careos-mobile-screen .ch-mobile-search__head {
    position: relative !important;
    z-index: 8 !important;
    display: grid !important;
    grid-template-columns: minmax(64px, auto) minmax(0, 1fr) minmax(64px, auto) !important;
    min-height: calc(44px + env(safe-area-inset-top, 0px)) !important;
    padding: calc(4px + env(safe-area-inset-top, 0px)) 8px 4px !important;
    background: #fff !important;
    background-image: none !important;
    color: #0f172a !important;
    border-bottom: 1px solid rgba(30, 58, 95, 0.1) !important;
  }

  .ch-mobile-search.careos-mobile-screen .ch-mobile-search__title {
    color: #0f172a !important;
  }

  .ch-mobile-search.careos-mobile-screen .ch-mobile-search__back,
  .ch-mobile-search.careos-mobile-screen .ch-mobile-search__close {
    position: relative !important;
    inset: auto !important;
    transform: none !important;
    z-index: 9 !important;
    display: inline-flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    pointer-events: auto !important;
    overflow: visible !important;
    min-width: 64px !important;
    min-height: 44px !important;
    margin: 0 !important;
    padding: 0 8px !important;
    border: 0 !important;
    border-radius: 12px !important;
    background: transparent !important;
    box-shadow: none !important;
    color: #2563eb !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    line-height: 1.2 !important;
  }

  .ch-mobile-search.careos-mobile-screen .ch-mobile-search__back *,
  .ch-mobile-search.careos-mobile-screen .ch-mobile-search__close * {
    display: inline-flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    color: inherit !important;
    font-size: inherit !important;
  }
}

html.ch-native-app .ch-mobile-search.careos-mobile-screen .ch-mobile-search__panel,
html.ch-native-app body.opd-m-active .ch-mobile-search.careos-mobile-screen .ch-mobile-search__panel,
html.ch-native-app body.lab-m-active .ch-mobile-search.careos-mobile-screen .ch-mobile-search__panel,
html.ch-native-app body.pharm-m-active .ch-mobile-search.careos-mobile-screen .ch-mobile-search__panel,
html.ch-native-app body.pat-m-active .ch-mobile-search.careos-mobile-screen .ch-mobile-search__panel,
html.ch-native-app body.ipd-m-active .ch-mobile-search.careos-mobile-screen .ch-mobile-search__panel,
html.ch-native-app body.rad-m-active .ch-mobile-search.careos-mobile-screen .ch-mobile-search__panel {
  padding-top: 0 !important;
}

html.ch-native-app .ch-mobile-search.careos-mobile-screen .ch-mobile-search__head,
html.ch-native-app body.opd-m-active .ch-mobile-search.careos-mobile-screen .ch-mobile-search__head,
html.ch-native-app body.lab-m-active .ch-mobile-search.careos-mobile-screen .ch-mobile-search__head,
html.ch-native-app body.pharm-m-active .ch-mobile-search.careos-mobile-screen .ch-mobile-search__head,
html.ch-native-app body.pat-m-active .ch-mobile-search.careos-mobile-screen .ch-mobile-search__head,
html.ch-native-app body.ipd-m-active .ch-mobile-search.careos-mobile-screen .ch-mobile-search__head,
html.ch-native-app body.rad-m-active .ch-mobile-search.careos-mobile-screen .ch-mobile-search__head {
  position: relative !important;
  z-index: 8 !important;
  display: grid !important;
  grid-template-columns: minmax(72px, auto) minmax(0, 1fr) minmax(72px, auto) !important;
  min-height: calc(44px + env(safe-area-inset-top, 0px)) !important;
  padding: calc(4px + env(safe-area-inset-top, 0px)) 8px 4px !important;
  background: #fff !important;
  background-image: none !important;
  color: #0f172a !important;
  border-bottom: 1px solid rgba(30, 58, 95, 0.1) !important;
}

html.ch-native-app .ch-mobile-search.careos-mobile-screen .ch-mobile-search__title,
html.ch-native-app body.opd-m-active .ch-mobile-search.careos-mobile-screen .ch-mobile-search__title,
html.ch-native-app body.lab-m-active .ch-mobile-search.careos-mobile-screen .ch-mobile-search__title {
  color: #0f172a !important;
}

html.ch-native-app .ch-mobile-search.careos-mobile-screen .ch-mobile-search__back,
html.ch-native-app .ch-mobile-search.careos-mobile-screen .ch-mobile-search__close,
html.ch-native-app body.opd-m-active .ch-mobile-search.careos-mobile-screen .ch-mobile-search__back,
html.ch-native-app body.opd-m-active .ch-mobile-search.careos-mobile-screen .ch-mobile-search__close,
html.ch-native-app body.lab-m-active .ch-mobile-search.careos-mobile-screen .ch-mobile-search__back,
html.ch-native-app body.lab-m-active .ch-mobile-search.careos-mobile-screen .ch-mobile-search__close,
html.ch-native-app body.pharm-m-active .ch-mobile-search.careos-mobile-screen .ch-mobile-search__back,
html.ch-native-app body.pharm-m-active .ch-mobile-search.careos-mobile-screen .ch-mobile-search__close,
html.ch-native-app body.pat-m-active .ch-mobile-search.careos-mobile-screen .ch-mobile-search__back,
html.ch-native-app body.ipd-m-active .ch-mobile-search.careos-mobile-screen .ch-mobile-search__back,
html.ch-native-app body.rad-m-active .ch-mobile-search.careos-mobile-screen .ch-mobile-search__back {
  position: relative !important;
  inset: auto !important;
  transform: none !important;
  z-index: 9 !important;
  display: inline-flex !important;
  visibility: visible !important;
  opacity: 1 !important;
  pointer-events: auto !important;
  overflow: visible !important;
  min-width: 64px !important;
  min-height: 44px !important;
  color: #2563eb !important;
  font-size: 15px !important;
  font-weight: 700 !important;
  background: transparent !important;
}

html.ch-native-app .ch-mobile-search.careos-mobile-screen .ch-mobile-search__back *,
html.ch-native-app .ch-mobile-search.careos-mobile-screen .ch-mobile-search__close *,
html.ch-native-app body.opd-m-active .ch-mobile-search.careos-mobile-screen .ch-mobile-search__back *,
html.ch-native-app body.lab-m-active .ch-mobile-search.careos-mobile-screen .ch-mobile-search__back * {
  display: inline-flex !important;
  visibility: visible !important;
  opacity: 1 !important;
  color: inherit !important;
}

.ec-searchable-select {
  position: relative;
  width: 100%;
  min-width: 0;
  /* Layout shell only — chrome lives on __control (avoids double borders with filter/field classes) */
  border: none !important;
  padding: 0 !important;
  margin: 0;
  background: transparent !important;
  box-shadow: none !important;
  outline: none !important;
  min-height: 0 !important;
  height: auto !important;
  line-height: normal;
  -webkit-appearance: none;
     -moz-appearance: none;
          appearance: none;
}

/* Legacy / modal / filter input classes sit on the wrapper — size the control instead */
.ec-searchable-select.form-control,
.ec-searchable-select.department-select,
.ec-searchable-select.department-dropdown,
.ec-searchable-select.doctor_select2,
.ec-searchable-select.curved-input,
.ec-searchable-select.time-select,
.ec-searchable-select.token-select,
.ec-searchable-select.select-treatment,
.ec-searchable-select.opd-procedure,
.ec-searchable-select.appointment_status,
.ec-searchable-select.discount-type-invoices,
.ec-searchable-select.appointment-invoice-discount,
.ec-searchable-select.inv-discount__type,
.ec-searchable-select.pharm-pos-discount__type,
.ec-searchable-select.select_method_select2,
.ec-searchable-select.payment_method_select2,
.ec-searchable-select.rad-shot-input,
.ec-searchable-select.opd-input,
.ec-searchable-select.opd-input--compact,
.ec-searchable-select.opd-input--compact-select,
.ec-searchable-select.er-filter-input,
.ec-searchable-select.ipd-shot-search,
.ec-searchable-select.ipd-desk__filter-select,
.ec-searchable-select.pat-shot-select,
.ec-searchable-select.lab-shot-input,
.ec-searchable-select.pharm-shot-input {
  /* width / flex / min-width from these classes still apply; chrome does not */
  box-sizing: border-box;
}

/* Compact filter chrome (Emergency / roster toolbars) */
.ec-searchable-select.er-filter-input {
  min-width: 140px;
  width: auto;
  flex: 0 1 auto;
}

.ec-searchable-select.er-filter-input.er-filter-input--grow {
  flex: 1 1 220px;
  min-width: 180px;
  width: auto;
}

.ec-searchable-select.er-filter-input .ec-searchable-select__control {
  min-height: 34px;
  height: 34px;
  padding: 0 10px;
  border-radius: 8px;
  font-size: 0.8125rem;
}

.ec-searchable-select__control {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  min-height: 36px;
  border: 1px solid var(--ec-platform-line);
  border-radius: 10px;
  padding: 6px 10px;
  background: #fff;
  color: var(--ec-platform-ink);
  font: inherit;
  font-size: 13px;
  line-height: 1.35;
  text-align: start;
  cursor: pointer;
  -webkit-appearance: none;
     -moz-appearance: none;
          appearance: none;
  outline: none;
}

.ec-searchable-select--large .ec-searchable-select__control {
  min-height: 50px;
  padding: 6px 16px;
  font-size: 16px;
  font-weight: 600;
  line-height: 22px;
}

.ec-searchable-select--compact .ec-searchable-select__control {
  min-height: 28px;
  padding: 2px 8px;
  font-size: 11px;
}

.ec-searchable-select__value {
  flex: 1 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ec-searchable-select__value:has(.ec-searchable-select__option-subtitle) {
  white-space: normal;
}

.ec-searchable-select__control:has(.ec-searchable-select__option-subtitle) {
  min-height: 48px;
  align-items: flex-start;
  padding-top: 8px;
  padding-bottom: 8px;
}

.ec-searchable-select__value .ec-searchable-select__option-person.is-dense.is-rich {
  align-items: center;
}

.ec-searchable-select__value .ec-searchable-select__option-person.is-dense .ec-searchable-select__option-subtitle {
  font-size: 0.72em;
}

.ec-searchable-select__option-person,
.ec-searchable-select__value .ec-searchable-select__option-person {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  max-width: 100%;
}

.ec-searchable-select__option-person.is-rich {
  align-items: flex-start;
  gap: 10px;
  width: 100%;
  padding: 2px 0;
}

.ec-searchable-select__option-copy {
  display: grid;
  grid-gap: 2px;
  gap: 2px;
  min-width: 0;
  flex: 1 1 auto;
}

.ec-searchable-select__option-title {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 650;
  line-height: 1.25;
}

.ec-searchable-select__option-subtitle {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.78em;
  font-weight: 500;
  color: #64748b;
  line-height: 1.3;
}

.ec-searchable-select__option-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 3px;
}

.ec-searchable-select__option-meta em {
  font-style: normal;
  display: inline-flex;
  align-items: center;
  min-height: 20px;
  padding: 0 8px;
  border-radius: 6px;
  border: 1px solid #e2e8f0;
  background: #fff;
  color: #94a3b8;
  font-size: 0.68em;
  font-weight: 500;
  letter-spacing: 0.01em;
  line-height: 1.2;
}

.ec-searchable-select__option.is-selected .ec-searchable-select__option-meta em,
.ec-searchable-select__option.is-highlighted .ec-searchable-select__option-meta em {
  border-color: #e2e8f0;
  background: #fff;
  color: #94a3b8;
}

.ec-searchable-select__option-person > span:last-child {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ec-searchable-select__option-person.is-rich > .ec-searchable-select__option-copy {
  white-space: normal;
  overflow: visible;
  text-overflow: unset;
}

.ec-searchable-select__option .ec-searchable-select__option-person {
  width: 100%;
}

.ec-searchable-select__option {
  align-items: flex-start;
}

.ec-searchable-select__value.is-placeholder {
  color: #64748b;
}

.ec-searchable-select__clear {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  color: #64748b;
  font-size: 16px;
  line-height: 1;
}

.ec-searchable-select__clear:hover {
  background: #fff;
  color: var(--ec-platform-ink);
}

.ec-searchable-select__chevron {
  flex-shrink: 0;
  width: 8px;
  height: 8px;
  border: solid #64748b;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
  margin-top: -3px;
  transition: transform 0.15s ease;
}

.ec-searchable-select.is-open .ec-searchable-select__chevron {
  transform: rotate(225deg);
  margin-top: 3px;
}

.ec-searchable-select.is-open .ec-searchable-select__control {
  border-color: var(--ec-opd-primary);
  box-shadow: 0 0 0 1px rgba(17, 67, 143, 0.12);
}

.ec-searchable-select.is-disabled .ec-searchable-select__control {
  background: #fff;
  color: #94a3b8;
  cursor: not-allowed;
}

.ec-searchable-select__menu {
  position: absolute;
  z-index: 10050;
  top: calc(100% + 4px);
  inset-inline: 0;
  background: #fff;
  border: 1px solid var(--ec-platform-line);
  border-radius: 10px;
  box-shadow: 0 0.6px 1.8px rgba(0, 0, 0, 0.1), 0 3.2px 7.2px rgba(0, 0, 0, 0.13);
  overflow: hidden;
}

/* Desktop: escape overflow:hidden / auto ancestors (modals, sheets, tables). */
.ec-searchable-select__menu--portal {
  position: fixed;
  inset-inline: auto;
  top: 0;
  left: 0;
  z-index: 14000;
  display: flex;
  flex-direction: column;
}

.ec-searchable-select__search {
  padding: 8px;
  border-bottom: 1px solid var(--ec-platform-line);
  background: #fff;
}

.ec-searchable-select__search input {
  width: 100%;
  min-height: 32px;
  border: 1px solid var(--ec-platform-line);
  border-radius: 10px;
  padding: 6px 10px;
  font: inherit;
  font-size: 13px;
  color: var(--ec-platform-ink);
  background: #fff;
}

.ec-searchable-select__search input:focus {
  outline: none;
  border-color: var(--ec-opd-primary);
  box-shadow: 0 0 0 1px rgba(17, 67, 143, 0.12);
}

.ec-searchable-select__options {
  list-style: none;
  margin: 0;
  padding: 4px 0;
  max-height: 240px;
  overflow-y: auto;
}

.ec-searchable-select__menu--portal .ec-searchable-select__options {
  flex: 1 1 auto;
  min-height: 0;
}

.ec-searchable-select__virtual-list {
  position: relative;
  display: block;
  margin: 0;
  padding: 0;
}

.ec-searchable-select__option,
.ec-searchable-select__empty {
  padding: 8px 12px;
  font-size: 13px;
  line-height: 1.35;
  color: var(--ec-platform-ink);
  cursor: pointer;
}

.ec-searchable-select__option.is-selected {
  background: #f8fafc;
  color: var(--ec-platform-ink, #0f172a);
  font-weight: 500;
}

.ec-searchable-select__option.is-highlighted {
  background: #f1f5f9;
}

.ec-searchable-select__option.is-disabled {
  color: #94a3b8;
  cursor: not-allowed;
}

.ec-searchable-select__empty {
  color: #64748b;
  cursor: default;
}

.ec-searchable-select__validator {
  position: absolute;
  opacity: 0;
  pointer-events: none;
  width: 0;
  height: 0;
}

.page-wrapper .doctor-dropdown .ec-searchable-select {
  width: 100%;
}

.page-wrapper .ec-searchable-select.department-select,
.page-wrapper .ec-searchable-select.department-dropdown {
  width: 150px;
  margin-right: 20px;
}

.page-wrapper .ec-searchable-select.department-select .ec-searchable-select__control,
.page-wrapper .ec-searchable-select.department-dropdown .ec-searchable-select__control {
  height: 28px;
  min-height: 28px;
  padding: 0 12px;
  font-size: 12px;
}

.dr-select-area .ec-searchable-select {
  flex: 1 1;
  min-width: 0;
}

.appointment-modal .ec-searchable-select__control,
.leave-modal-wrapper .ec-searchable-select__control {
  width: 100%;
}

.full-calendar-wrapper .ec-searchable-select--compact .ec-searchable-select__menu {
  min-width: 140px;
}

html[dir='rtl'] .ec-searchable-select__control,
html[dir='rtl'] .ec-searchable-select__option,
html[dir='rtl'] .ec-searchable-select__search input {
  text-align: right;
}

.care-tax-breakdown {
  margin: 12px 0 0;
  padding: 12px 12px 10px;
  border: 1px solid rgba(12, 26, 46, 0.1);
  border-radius: 2px;
  background: color-mix(in srgb, var(--care-card, #fff) 92%, var(--care-mint, #eef5fb));
}

.care-tax-breakdown--compact {
  margin-top: 10px;
  padding: 10px 10px 8px;
}

.care-tax-breakdown__title {
  margin: 0 0 8px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--care-navy);
}

.care-tax-breakdown dl {
  margin: 0;
}

.care-tax-breakdown dl > div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 4px;
  font-size: 0.86rem;
}

.care-tax-breakdown dt {
  margin: 0;
  font-weight: 500;
  color: var(--care-ink-soft, #5e6e72);
}

.care-tax-breakdown dd {
  margin: 0;
  font-weight: 650;
  color: var(--care-navy);
}

.care-tax-breakdown__total {
  margin-top: 6px !important;
  padding-top: 6px;
  border-top: 1px solid rgba(12, 26, 46, 0.1);
}

.care-tax-breakdown__total dt,
.care-tax-breakdown__total dd {
  font-weight: 750;
  color: var(--care-navy);
}

.care-tax-breakdown__hint {
  margin: 6px 0 0;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--care-ink-soft, #5e6e72);
}

.care-shop-layout {
  display: grid;
  grid-gap: 16px;
  gap: 16px;
}

.care-cart {
  padding: 16px;
  background: #fff;
  box-shadow: 0 0 0 1px rgba(30, 58, 95, 0.1);
}

.care-cart h2 {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin: 0 0 12px;
  font-size: 1.15rem;
  color: var(--care-navy);
}

.care-cart h2 em {
  font-style: normal;
  font-size: 0.78rem;
  font-weight: 650;
  color: #5d7390;
}

.care-cart__lines {
  margin: 0 0 12px;
  padding: 0;
  list-style: none;
  display: grid;
  grid-gap: 10px;
  gap: 10px;
}

.care-cart__lines li {
  display: grid;
  grid-gap: 2px;
  gap: 2px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(30, 58, 95, 0.08);
}

.care-cart__lines strong {
  font-size: 0.88rem;
}

.care-cart__lines span {
  font-size: 0.76rem;
  color: #5d7390;
}

.care .care-btn--cart {
  width: 100%;
  min-height: 48px;
  justify-content: center;
  background: var(--care-navy) !important;
  color: #fff !important;
  border: 0 !important;
  font-weight: 750;
  opacity: 1;
}

.care .care-btn--cart:disabled {
  background: #94a3b8 !important;
  color: #fff !important;
}

.care-doc--cart .care-btn--cart {
  width: auto;
  min-width: 132px;
  padding: 0 14px;
}

.care-doc--cart .care-btn--cart,
.care-doc--cart .care-qty {
  align-self: end;
}

@media (min-width: 900px) {
  .care-shop-layout {
    grid-template-columns: minmax(0, 1fr) minmax(280px, 340px);
    align-items: start;
  }

  .care-cart {
    position: -webkit-sticky;
    position: sticky;
    top: 12px;
  }
}

.care-payment-handoff {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding:
    calc(24px + env(safe-area-inset-top, 0px))
    max(20px, env(safe-area-inset-right, 0px))
    calc(24px + env(safe-area-inset-bottom, 0px))
    max(20px, env(safe-area-inset-left, 0px));
  background: rgba(8, 22, 40, 0.42);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  animation: care-payment-handoff-in 220ms ease both;
}

.care-payment-handoff__card {
  width: min(360px, 100%);
  padding: 28px 22px;
  border-radius: 2px;
  background: var(--care-card, #ffffff);
  border: 1px solid var(--care-line, rgba(10, 58, 72, 0.09));
  box-shadow: 0 18px 48px rgba(7, 25, 47, 0.18);
}

@keyframes care-payment-handoff-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  .care-payment-handoff {
    animation: none;
  }
}

