:root {
  --r-bg: #edf0f5;
  --r-card: #ffffff;
  --r-text: #1f2937;
  --r-muted: #6b7280;
  --r-line: #d4dae4;
  --r-primary: #696cff;
  --r-primary-soft: #eceaff;
  --r-primary-strong: #5b5ce2;
  --r-danger: #ff3e1d;
  --r-danger-soft: #ffe8e6;
  --r-checklist-check-size: 1.25rem;
  --r-soft-blue: #f4f7ff;
  --r-soft-green: #eefcf5;
  --r-soft-amber: #fff8e8;
  --r-queue-card-bg: #ffffff;
  --r-queue-card-border: #c8d0dc;
  --r-queue-card-shadow: 0 2px 14px rgba(15, 23, 42, 0.09);
  --r-queue-badge-bg: #eceaff;
  --r-queue-action-bg: #e8ebff;
  --r-bottom-nav-item-h: 50px;
  --r-bottom-nav-pad-y: 6px;
  --r-bottom-nav-core-h: calc(var(--r-bottom-nav-item-h) + (var(--r-bottom-nav-pad-y) * 2));
  --r-bottom-nav-offset: calc(var(--r-bottom-nav-core-h) + env(safe-area-inset-bottom, 0px));
  --app-surface: #ffffff;
  --app-border: var(--r-line);
  --app-muted: var(--r-muted);
  --app-ink: var(--r-text);
  --app-bg: var(--r-bg);
}

body {
  background: var(--r-bg);
  font-family: "Noto Sans Thai", "Public Sans", system-ui, sans-serif;
  color: var(--r-text);
}

.tooltip {
  --bs-tooltip-bg: var(--r-primary);
  --bs-tooltip-color: #fff;
  --bs-tooltip-opacity: 1;
  --bs-tooltip-max-width: min(280px, calc(100vw - 2rem));
  --bs-tooltip-padding-x: .75rem;
  --bs-tooltip-padding-y: .45rem;
  --bs-tooltip-border-radius: .65rem;
  --bs-tooltip-font-size: .8125rem;
  --bs-tooltip-arrow-width: .8rem;
  --bs-tooltip-arrow-height: .4rem;
  font-family: "Noto Sans Thai", "Public Sans", system-ui, sans-serif;
  filter: drop-shadow(0 .45rem 1rem rgba(31, 41, 55, .18));
}

.tooltip.show {
  opacity: 1;
}

.tooltip .tooltip-inner {
  background: var(--r-primary);
  color: #fff;
  border-radius: .65rem;
  padding: .45rem .75rem;
  font-family: inherit;
  font-size: .8125rem;
  font-weight: 500;
  line-height: 1.45;
  text-align: center;
  letter-spacing: 0;
  box-shadow: none;
}

.bs-tooltip-auto[data-popper-placement^="top"] .tooltip-arrow::before,
.bs-tooltip-top .tooltip-arrow::before {
  border-top-color: var(--r-primary);
}

.bs-tooltip-auto[data-popper-placement^="right"] .tooltip-arrow::before,
.bs-tooltip-end .tooltip-arrow::before,
.bs-tooltip-right .tooltip-arrow::before {
  border-right-color: var(--r-primary);
}

.bs-tooltip-auto[data-popper-placement^="bottom"] .tooltip-arrow::before,
.bs-tooltip-bottom .tooltip-arrow::before {
  border-bottom-color: var(--r-primary);
}

.bs-tooltip-auto[data-popper-placement^="left"] .tooltip-arrow::before,
.bs-tooltip-start .tooltip-arrow::before,
.bs-tooltip-left .tooltip-arrow::before {
  border-left-color: var(--r-primary);
}

a {
  color: var(--r-primary);
}

a:hover {
  color: var(--r-primary-strong);
}

.layout-wrapper,
.layout-page,
.content-wrapper {
  background: var(--r-bg);
}

.container-xxl.container-p-y {
  padding-top: 1.75rem;
  position: relative;
}

.layout-menu {
  background: #fff !important;
  border-right: 1px solid var(--r-line);
  box-shadow: 10px 0 30px rgba(31, 41, 55, .04);
}

@media (min-width: 1200px) {
  #layout-menu.layout-menu {
    display: flex;
    flex-direction: column;
    height: 100vh;
    max-height: 100vh;
    overflow: hidden;
  }

  #layout-menu .app-brand {
    flex-shrink: 0;
  }

  #layout-menu .menu-inner-shadow {
    flex-shrink: 0;
  }

  #layout-menu .menu-inner {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    scrollbar-width: none;
    -ms-overflow-style: none;
  }

  #layout-menu .menu-inner::-webkit-scrollbar {
    display: none;
    width: 0;
    height: 0;
  }

  #layout-menu .ps__rail-y,
  #layout-menu .ps__rail-x {
    display: none !important;
    opacity: 0 !important;
    pointer-events: none !important;
  }
}

.app-brand {
  min-height: 78px;
  padding-right: 1.5rem;
  padding-left: 1.5rem;
}

.app-brand-text {
  color: #202437;
  letter-spacing: -.02em;
}

.r-brand-mark {
  display: inline-flex;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  border-radius: 15px;
  color: #fff;
  background: linear-gradient(135deg, #6670ff 0%, #4b4bd7 100%);
  box-shadow: 0 12px 24px rgba(91, 92, 226, .24);
}

.r-brand-mark--img {
  background: transparent;
  padding: 0;
  overflow: hidden;
}

.r-brand-mark--img img {
  width: 100%;
  height: 100%;
  display: block;
  border-radius: inherit;
  object-fit: contain;
  background: #fff;
}

.menu .app-brand.demo {
  width: auto;
}

.menu-header {
  color: #9aa3b5 !important;
  font-weight: 700;
  letter-spacing: .05em;
}

.menu-vertical .menu-item {
  margin: .15rem 1rem;
}

.menu-vertical .menu-item .menu-link {
  border-radius: 12px;
  color: #6b7280;
  font-weight: 500;
}

.menu-vertical .menu-item .menu-icon {
  color: #8b95a7;
}

.menu-vertical .menu-item.active > .menu-link {
  background: var(--r-primary-soft) !important;
  color: var(--r-primary) !important;
  box-shadow: none !important;
}

.menu-vertical .menu-item.active > .menu-link .menu-icon {
  color: var(--r-primary) !important;
}

.menu-vertical .menu-item:not(.active) > .menu-link:hover {
  background: #f6f7fb;
  color: #374151;
}

.menu-vertical .menu-item.r-menu-group.open > .menu-sub {
  display: block;
}

.menu-vertical .menu-sub {
  list-style: none;
  margin: 0;
  padding: 0;
}

.menu-vertical .menu-sub .menu-item {
  margin: .1rem 0 .1rem .75rem;
}

.menu-vertical .menu-sub .menu-link {
  padding-left: 2.75rem;
  font-size: .92rem;
}

.menu-vertical .menu-sub .menu-item.active > .menu-link {
  background: var(--r-primary-soft) !important;
  color: var(--r-primary) !important;
}

.menu-vertical .menu-link .r-menu-link-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .5rem;
  width: 100%;
  min-width: 0;
}

.r-menu-badge {
  flex-shrink: 0;
  min-width: 1.25rem;
  height: 1.25rem;
  padding: 0 .35rem;
  border-radius: 999px;
  background: #ff3e1d;
  color: #fff;
  font-size: .6875rem;
  font-weight: 700;
  line-height: 1.25rem;
  text-align: center;
}

.menu-vertical .menu-link .r-menu-badge {
  flex-shrink: 0;
}

.content-footer .r-footer-nav-link {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
}

.bottom-nav .bottom-nav-icon-wrap .r-menu-badge {
  position: absolute;
  top: -3px;
  right: -8px;
  min-width: 1rem;
  height: 1rem;
  padding: 0 .25rem;
  font-size: .625rem;
  line-height: 1rem;
}

.btn-primary {
  background-color: var(--r-primary);
  border-color: var(--r-primary);
  box-shadow: 0 10px 18px rgba(91, 92, 226, .18);
}

.btn-primary:hover,
.btn-primary:focus {
  background-color: var(--r-primary-strong) !important;
  border-color: var(--r-primary-strong) !important;
}

.btn-outline-secondary {
  color: #6b7280;
  border-color: #dde2eb;
  background: #fff;
}

.form-control,
.form-select {
  border-color: #e7eaf1;
  border-radius: 12px;
  color: #263143;
}

.form-control:focus,
.form-select:focus {
  border-color: #b9bcff;
  box-shadow: 0 0 0 .2rem rgba(91, 92, 226, .12);
}

.select2-container--default .select2-selection--single {
  min-height: 40px;
  border: 1px solid #e7eaf1;
  border-radius: 12px;
  background-color: #fff;
  display: flex;
  align-items: center;
  transition: border-color .15s ease, box-shadow .15s ease;
}

.select2-container--default.select2-container--focus .select2-selection--single,
.select2-container--default.select2-container--open .select2-selection--single {
  border-color: #b9bcff;
  box-shadow: 0 0 0 .2rem rgba(91, 92, 226, .12);
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
  color: #263143;
  line-height: 38px;
  padding-left: .95rem;
  padding-right: 2.25rem;
}

.select2-container--default .select2-selection--single .select2-selection__placeholder {
  color: #a1a8b5;
}

.select2-container--default .select2-selection--single .select2-selection__arrow {
  height: 38px;
  right: .65rem;
}

.select2-container--default .select2-selection--single .select2-selection__clear {
  height: 38px;
  margin-right: 1.8rem;
  color: #9aa3b5;
}

.select2-container--default.select2-container--disabled .select2-selection--single {
  background-color: #f6f7fb;
  color: #9aa3b5;
}

.select2-dropdown {
  border: 1px solid var(--r-line);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 18px 44px rgba(31, 41, 55, .12);
}

.select2-container--default .select2-search--dropdown {
  padding: .75rem;
  background: #fff;
}

.select2-container--default .select2-search--dropdown .select2-search__field {
  border: 1px solid #e7eaf1;
  border-radius: 12px;
  padding: .55rem .75rem;
  outline: 0;
}

.select2-container--default .select2-search--dropdown .select2-search__field:focus {
  border-color: #b9bcff;
  box-shadow: 0 0 0 .2rem rgba(91, 92, 226, .1);
}

.select2-results__options {
  padding: .35rem;
}

.select2-container--default .select2-results__option {
  border-radius: 10px;
  margin: .1rem 0;
  padding: .55rem .75rem;
  color: #3f4757;
}

.select2-container--default .select2-results__option--highlighted.select2-results__option--selectable {
  background-color: var(--r-primary-soft);
  color: var(--r-primary);
}

.select2-container--default .select2-results__option--selected {
  background-color: #f6f7fb;
  color: #202437;
  font-weight: 600;
}

.r-page-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.4rem;
}

.r-page-title {
  font-size: clamp(1.5rem, 2.2vw, 2.05rem);
  font-weight: 800;
  letter-spacing: -.035em;
  margin: 0;
  color: #202437;
}

.r-page-subtitle,
.r-muted {
  color: var(--r-muted);
}

.r-card {
  background: var(--r-card);
  border: 1px solid var(--r-line);
  border-radius: 20px;
  box-shadow: 0 4px 18px rgba(31, 41, 55, 0.08);
}

.r-stat {
  padding: 1.25rem;
  min-height: 132px;
}

.r-stat__label {
  color: var(--r-muted);
  font-size: .92rem;
}

.r-stat__value {
  font-size: 2.1rem;
  font-weight: 800;
  line-height: 1.1;
  color: #202437;
}

.r-case-card {
  padding: 1rem;
  transition: transform .12s ease, box-shadow .12s ease;
}

.r-case-card:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 42px rgba(31, 41, 55, .08);
}

.r-case-meta {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  color: var(--r-muted);
  font-size: .9rem;
}

.r-timeline {
  position: relative;
  padding-left: 1rem;
}

.r-timeline::before {
  content: "";
  position: absolute;
  left: 4px;
  top: .25rem;
  bottom: .25rem;
  width: 2px;
  background: var(--r-line);
}

.r-timeline-item {
  position: relative;
  padding: 0 0 1rem 1rem;
}

.r-timeline-item::before {
  content: "";
  position: absolute;
  left: -1px;
  top: .35rem;
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--r-primary);
}

.card,
.modal-content,
.dropdown-menu {
  border-color: var(--r-line);
  border-radius: 18px;
  box-shadow: 0 4px 18px rgba(31, 41, 55, 0.08);
}

.alert {
  border-radius: 14px;
}

.bg-label-primary,
.badge.bg-label-primary {
  background-color: var(--r-primary-soft) !important;
  color: var(--r-primary) !important;
}

.bg-label-danger,
.badge.bg-label-danger {
  background-color: var(--r-danger-soft) !important;
  color: var(--r-danger) !important;
}

.bg-label-success,
.badge.bg-label-success {
  background-color: var(--r-soft-green) !important;
  color: #047857 !important;
}

.bg-label-warning,
.badge.bg-label-warning {
  background-color: var(--r-soft-amber) !important;
  color: #c2410c !important;
}

.bg-label-secondary,
.badge.bg-label-secondary {
  background-color: var(--r-soft-slate, #f1f5f9) !important;
  color: #64748b !important;
}

.bg-label-info,
.badge.bg-label-info {
  background-color: #e0f2fe !important;
  color: #0369a1 !important;
}

#rRegistryTable .r-registry-table {
  font-size: 0.875rem;
  margin-bottom: 0;
  table-layout: fixed;
  width: 100%;
}

#rRegistryTable .r-registry-table thead th:nth-child(1),
#rRegistryTable .r-registry-table tbody tr[data-registry-case-id] > td:nth-child(1) {
  width: 50%;
}

#rRegistryTable .r-registry-table thead th:nth-child(2),
#rRegistryTable .r-registry-table thead th:nth-child(3),
#rRegistryTable .r-registry-table thead th:nth-child(4),
#rRegistryTable .r-registry-table thead th:nth-child(5),
#rRegistryTable .r-registry-table tbody tr[data-registry-case-id] > td:nth-child(2),
#rRegistryTable .r-registry-table tbody tr[data-registry-case-id] > td:nth-child(3),
#rRegistryTable .r-registry-table tbody tr[data-registry-case-id] > td:nth-child(4),
#rRegistryTable .r-registry-table tbody tr[data-registry-case-id] > td:nth-child(5) {
  width: calc((50% - 2.75rem) / 4);
}

#rRegistryTable .r-registry-table thead th {
  font-size: 0.8125rem;
  font-weight: 600;
  color: rgba(67, 89, 113, 0.72);
  padding: 0.7rem 0.55rem;
  white-space: nowrap;
  vertical-align: middle;
}

#rRegistryTable .r-registry-table thead th:nth-child(n+2):not(:last-child) {
  text-align: center;
}

#rRegistryTable .r-registry-table tbody td {
  padding: 0.9rem 0.55rem;
  vertical-align: top;
  line-height: 1.45;
}

#rRegistryTable .r-registry-table tbody tr.registry-refer-accordion-row td {
  padding-top: 0;
  padding-bottom: 0.35rem;
}

#rRegistryTable td[data-registry-column="reg_card"],
#rRegistryTable td[data-registry-column="appt"],
#rRegistryTable td[data-registry-column="request_extra"],
#rRegistryTable td[data-registry-column="appt_ppk"] {
  min-width: 0;
}

#rRegistryTable td[data-registry-column="actions"] {
  width: 2.75rem;
  padding-right: 0.65rem;
}

#rRegistryTable .r-registry-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.3rem 0.72rem;
  border: 0;
  border-radius: 999px;
  font-size: 0.8125rem;
  font-weight: 600;
  line-height: 1.4;
  white-space: nowrap;
  box-shadow: 0 1px 2px rgba(67, 89, 113, 0.06);
}

#rRegistryTable .r-registry-chip .bx {
  font-size: 0.95rem;
  line-height: 1;
}

#rRegistryTable button.r-registry-chip {
  cursor: pointer;
  transition: box-shadow 0.12s ease, transform 0.12s ease;
}

#rRegistryTable button.r-registry-chip:hover,
#rRegistryTable button.r-registry-chip:focus {
  box-shadow: 0 0.2rem 0.5rem rgba(67, 89, 113, 0.14);
}

.r-registry-status {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.4rem;
}

#rRegistryTable td[data-registry-column] {
  position: relative;
}

td.r-registry-cell-updated,
.r-registry-cell-updated,
td.r-registry-cell-refreshed-soft,
.r-registry-cell-refreshed-soft {
  overflow: hidden;
  animation-duration: 2.8s;
  animation-timing-function: cubic-bezier(0.22, 1, 0.36, 1);
  animation-fill-mode: forwards;
  animation-delay: var(--r-registry-flash-delay, 0s);
}

td.r-registry-cell-updated,
.r-registry-cell-updated {
  animation-name: r-registry-cell-flash;
}

td.r-registry-cell-refreshed-soft,
.r-registry-cell-refreshed-soft {
  animation-name: r-registry-cell-flash-soft;
  animation-duration: 1.8s;
}

td.r-registry-cell-updated::after,
.r-registry-cell-updated::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    transparent 38%,
    rgba(255, 255, 255, 0.62) 50%,
    transparent 62%
  );
  opacity: 0;
  transform: translateX(-120%);
  animation: r-registry-cell-shine 2.8s cubic-bezier(0.22, 1, 0.36, 1);
  animation-delay: calc(var(--r-registry-flash-delay, 0s) + 0.08s);
  pointer-events: none;
}

@keyframes r-registry-cell-flash {
  0% {
    background-color: rgba(105, 108, 255, 0.3);
    box-shadow: inset 0 0 0 2px rgba(105, 108, 255, 0.42);
  }
  38% {
    background-color: rgba(113, 221, 55, 0.2);
    box-shadow: inset 0 0 0 2px rgba(113, 221, 55, 0.34);
  }
  100% {
    background-color: transparent;
    box-shadow: none;
  }
}

@keyframes r-registry-cell-flash-soft {
  0% {
    background-color: rgba(105, 108, 255, 0.14);
    box-shadow: inset 0 0 0 1px rgba(105, 108, 255, 0.22);
  }
  55% {
    background-color: rgba(3, 195, 236, 0.1);
    box-shadow: inset 0 0 0 1px rgba(3, 195, 236, 0.18);
  }
  100% {
    background-color: transparent;
    box-shadow: none;
  }
}

@keyframes r-registry-cell-shine {
  0%,
  18% {
    opacity: 0;
    transform: translateX(-120%);
  }
  34% {
    opacity: 1;
  }
  52%,
  100% {
    opacity: 0;
    transform: translateX(120%);
  }
}

.r-registry-appt-count-badge {
  border: 0;
  cursor: pointer;
  font-weight: 600;
  line-height: 1.2;
  padding: .4rem .7rem;
  transition: transform .12s ease, box-shadow .12s ease;
}

.r-registry-appt-combined-badge {
  font-size: .75rem;
  white-space: nowrap;
}

.r-registry-appt-count-badge:hover,
.r-registry-appt-count-badge:focus {
  transform: translateY(-1px);
  box-shadow: 0 .2rem .5rem rgba(67, 89, 113, .12);
}

.r-registry-appt-list .r-card:last-child {
  margin-bottom: 0 !important;
}

.r-registry-appt-ppk {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.4rem;
}

.r-registry-appt-print-btn {
  margin-top: 0.15rem;
}

.r-registry-appt-doctor-panel {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.35rem;
}

.r-registry-appt-chips {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.4rem;
}

#rRegistryTable .r-registry-appt-chip {
  background: var(--r-soft-green, #ecfdf5);
  color: #047857;
}

#rRegistryTable tr[data-registry-case-id] td[data-registry-column="appt_ppk"] .r-registry-appt-doctor-panel {
  display: none;
}

#rRegistryTable .r-registry-appt-doctor-row td {
  padding-top: 0;
  padding-bottom: 0.65rem;
  border-top: 0 !important;
}

#rRegistryTable .r-registry-reason-row td {
  padding-top: 0;
  padding-bottom: 0.5rem;
  border-top: 0 !important;
}

#rRegistryTable tr[data-registry-case-id]:has(+ .r-registry-reason-row) > td,
#rRegistryTable tr[data-registry-case-id]:has(+ .r-registry-appt-doctor-row) > td {
  border-bottom-color: transparent;
}

#rRegistryTable .r-registry-reason-row:has(+ .r-registry-appt-doctor-row) > td {
  border-bottom-color: transparent;
}

#rRegistryTable .r-registry-reason-row-cell {
  text-align: left;
}

#rRegistryTable .r-registry-reason-row-panel {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem 0.65rem;
}

#rRegistryTable .r-registry-reason-actor {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  max-width: 100%;
}

#rRegistryTable button.r-registry-reason-actor {
  cursor: pointer;
  transition: opacity 0.12s ease;
}

#rRegistryTable button.r-registry-reason-actor:hover,
#rRegistryTable button.r-registry-reason-actor:focus-visible {
  opacity: 0.88;
}

#rRegistryTable button.r-registry-reason-actor .avatar-xs {
  transition: box-shadow 0.12s ease, transform 0.12s ease;
}

#rRegistryTable button.r-registry-reason-actor:hover .avatar-xs,
#rRegistryTable button.r-registry-reason-actor:focus-visible .avatar-xs {
  box-shadow: 0 0 0 2px rgba(105, 108, 255, 0.18);
  transform: scale(1.04);
}

#rRegistryTable .r-registry-reason-actor .avatar-xs {
  width: 1.35rem;
  height: 1.35rem;
}

#rRegistryTable .r-registry-reason-actor .avatar-xs img,
#rRegistryTable .r-registry-reason-actor .avatar-xs .avatar-initial {
  width: 1.35rem;
  height: 1.35rem;
  font-size: 0.72rem;
}

#rRegistryTable .r-registry-reason-actor-name {
  font-size: 0.8125rem;
  font-weight: 600;
  color: rgba(67, 89, 113, 0.82);
  word-break: break-word;
}

#rRegistryTable .r-registry-reason-chip {
  display: inline-flex;
  width: auto;
  max-width: 100%;
  white-space: normal;
  word-break: break-word;
  overflow-wrap: anywhere;
  border-radius: 0.65rem;
  text-align: left;
  justify-content: flex-start;
}

#rRegistryTable .r-registry-reason-row-spacer,
#rRegistryTable .r-registry-appt-doctor-row-spacer {
  padding-left: 0;
  padding-right: 0;
}

#rRegistryTable .r-registry-appt-doctor-row-cell {
  text-align: left;
}

.r-registry-appt-doctor-badges {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.35rem;
  max-width: 100%;
}

#rRegistryTable .r-registry-appt-doctor-badge {
  display: inline-flex;
  align-items: flex-start;
  gap: 0.28rem;
  max-width: 100%;
  border: 1px solid rgba(16, 185, 129, 0.24);
  border-radius: 999px;
  background: var(--r-soft-green, #ecfdf5);
  color: #047857;
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1.25;
  padding: 0.3rem 0.6rem;
}

#rRegistryTable .r-registry-appt-doctor-badge .bx {
  flex-shrink: 0;
  font-size: 0.95rem;
  line-height: 1;
  margin-top: 0.03rem;
}

.r-registry-actions {
  min-width: 2rem;
  gap: 0.4rem !important;
}

.js-r-registry-table-body.is-loading {
  opacity: 0.45;
  pointer-events: none;
}

#rRegistryTable .r-registry-table-overlay {
  position: absolute;
  inset: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.72);
  border-radius: inherit;
}

#rRegistryTable .r-registry-table-overlay-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 1rem;
}

.r-registry-search-form {
  width: 100%;
}

.r-registry-search-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .75rem;
}

.r-registry-search {
  flex: 1 1 14rem;
  min-width: 0;
}

.r-registry-search .input-group-text,
.r-registry-search .form-control {
  background: #fff;
  border-color: var(--r-line);
  color: var(--r-muted);
}

.r-registry-search .input-group-text {
  border-right: none;
  padding-left: .95rem;
  padding-right: .35rem;
  border-top-left-radius: 12px;
  border-bottom-left-radius: 12px;
}

.r-registry-search .input-group-text .bx {
  font-size: 1.15rem;
  line-height: 1;
}

.r-registry-search .form-control {
  border-left: none;
  padding-left: .35rem;
  min-height: 42px;
  font-size: .94rem;
  border-top-right-radius: 12px;
  border-bottom-right-radius: 12px;
}

.r-registry-search .form-control::placeholder {
  color: #a1a8b5;
}

.r-registry-search .form-control:focus {
  border-color: #b9bcff;
  box-shadow: none;
}

.r-registry-search:focus-within .input-group-text {
  border-color: #b9bcff;
}

.r-registry-search:focus-within {
  box-shadow: 0 0 0 .2rem rgba(91, 92, 226, .12);
  border-radius: 12px;
}

.r-registry-search-form .r-registry-toolbar-btn {
  white-space: nowrap;
  font-weight: 600;
}

.r-registry-search-form .r-registry-toolbar-btn .bx {
  font-size: 1.125rem;
  line-height: 1;
}

.r-registry-search-form .r-registry-ppk11-btn {
  min-height: 42px;
  padding-left: 1rem;
  padding-right: 1rem;
  font-weight: 600;
}

.r-registry-fab {
  position: fixed;
  right: 1.25rem;
  bottom: calc(var(--r-bottom-nav-offset) + .75rem);
  z-index: 1105;
  width: 3.25rem;
  height: 3.25rem;
  padding: 0;
  border: none;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--r-primary);
  color: #fff;
  box-shadow: 0 10px 24px rgba(91, 92, 226, .32);
  transition: transform .15s ease, box-shadow .15s ease, opacity .15s ease;
  pointer-events: auto;
  visibility: visible;
}

.r-registry-fab:hover:not(:disabled) {
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 14px 28px rgba(91, 92, 226, .38);
}

.r-registry-fab:disabled {
  opacity: .72;
  cursor: wait;
}

.r-registry-fab i {
  font-size: 1.5rem;
}

@media (min-width: 1200px) {
  .r-registry-fab {
    bottom: 1.5rem;
  }
}

.r-registry-request-extra,
.r-registry-appt-extra {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.r-registry-extra-appt-section .r-registry-ppk11-appt-feed {
  max-height: 48vh;
  overflow-y: auto;
}

.r-registry-ppk11-appt-feed {
  display: flex;
  flex-direction: column;
}

.r-card-room-visit-banner {
  background: linear-gradient(135deg, rgba(105, 108, 255, 0.08), rgba(3, 195, 236, 0.06));
  border: 1px solid rgba(105, 108, 255, 0.14);
  border-radius: 12px;
  padding: 0.85rem 1rem;
}

.r-card-room-visit-date {
  font-size: 1.15rem;
  color: #4338ca;
  line-height: 1.35;
}

.r-card-room-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: .75rem;
}

.r-card-room-card-header-main {
  display: flex;
  align-items: center;
  gap: .5rem;
  min-width: 0;
  flex: 1 1 auto;
}

.r-card-room-card-title {
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.3;
  min-width: 0;
}

.r-card-room-card-header-badges {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: .35rem;
  flex-shrink: 0;
  max-width: 55%;
}

.r-card-room-hn-row,
.r-card-room-cid-row {
  flex-wrap: wrap;
}

.r-card-room-hn-actions-row {
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 0.25rem;
}

.r-card-room-hn-action-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.r-card-room-hn-action-btn .r-card-room-btn-spinner {
  width: 0.85rem;
  height: 0.85rem;
  border-width: 0.15em;
  flex-shrink: 0;
}

.r-card-room-hn-input-row {
  align-items: center;
  margin-top: 0.15rem;
}

.r-card-room-hn-input {
  width: 9rem;
  max-width: 100%;
}

.r-card-room-hn-value {
  font-size: 1.35rem;
  font-weight: 700;
  color: #047857;
  line-height: 1.2;
}

.r-card-room-hn-pending {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 1.35rem;
  font-weight: 700;
  color: #ea580c;
  line-height: 1.2;
}

.r-card-room-hn-pending .bx {
  font-size: 1.2rem;
  line-height: 1;
}

.r-card-room-cid-value {
  font-size: 1.05rem;
  font-weight: 600;
  color: #334155;
  line-height: 1.2;
  letter-spacing: 0.02em;
}

.r-card-room-copy-btn {
  padding: 0.15rem 0.45rem;
  line-height: 1;
}

.r-card-room-dept-badge {
  max-width: 100%;
  white-space: normal;
  text-align: right;
  line-height: 1.35;
}

#rCardRoomApptOffcanvasBody .r-registry-ppk11-appt-feed {
  max-height: none;
  overflow: visible;
}

.r-card-room-ppk11-section {
  border-top: 1px dashed rgba(67, 89, 113, 0.14);
  padding-top: 0.75rem;
}

.r-card-room-card .r-registry-ppk11-appt-feed {
  max-height: 12rem;
  overflow-y: auto;
}

.r-registry-ppk11-appt-card {
  padding: 0.95rem 0;
  border-bottom: 1px solid rgba(67, 89, 113, 0.1);
}

.r-registry-ppk11-appt-card:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.r-registry-ppk11-appt-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.65rem;
  margin-bottom: 0.45rem;
}

.r-registry-ppk11-appt-card-badge {
  font-size: 0.8125rem;
  font-weight: 600;
  color: #384551;
  line-height: 1.35;
}

.r-registry-ppk11-appt-card-datechip {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.62rem;
  border-radius: 999px;
  background: rgba(105, 108, 255, 0.1);
  color: #5f61e6;
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1.35;
  white-space: nowrap;
}

.r-registry-ppk11-appt-card-patient {
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.35;
  color: #2f3a4a;
  margin-bottom: 0.15rem;
}

.r-registry-ppk11-appt-card-hn {
  font-size: 0.8125rem;
  color: rgba(67, 89, 113, 0.72);
  margin-bottom: 0.45rem;
}

.r-registry-ppk11-appt-card-rows {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.r-registry-ppk11-appt-card-row {
  display: flex;
  align-items: flex-start;
  gap: 0.45rem;
  font-size: 0.8125rem;
  line-height: 1.45;
  color: rgba(67, 89, 113, 0.88);
}

.r-registry-ppk11-appt-card-row .bx {
  flex-shrink: 0;
  font-size: 1rem;
  line-height: 1.2;
  color: rgba(67, 89, 113, 0.55);
  margin-top: 0.1rem;
}

.r-registry-ppk11-appt-api dt {
  font-weight: 500;
}

.r-registry-extra-option {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.85rem 0.9rem;
  border: 1px solid rgba(67, 89, 113, 0.12);
  border-radius: 0.75rem;
  background: #fff;
  cursor: pointer;
}

.r-registry-extra-option.is-active {
  border-color: rgba(105, 108, 255, 0.35);
  background: rgba(105, 108, 255, 0.04);
}

.r-registry-extra-option .form-check-input {
  margin-top: 0.2rem;
  flex-shrink: 0;
}

.r-registry-extra-option-body {
  flex: 1 1 auto;
  min-width: 0;
}

.r-registry-icon-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 0.45rem;
  color: rgba(67, 89, 113, 0.78);
  text-decoration: none;
  line-height: 1;
  transition: background-color 0.12s ease, color 0.12s ease;
}

.r-registry-icon-action:hover,
.r-registry-icon-action:focus {
  color: var(--bs-primary, #696cff);
  background: rgba(105, 108, 255, 0.08);
}

.r-registry-icon-action.is-open {
  color: var(--bs-primary, #696cff);
  background: rgba(105, 108, 255, 0.12);
}

.r-registry-icon-action.is-bookmarked,
.r-registry-icon-action.is-bookmarked:hover,
.r-registry-icon-action.is-bookmarked:focus {
  color: #ea5455;
  background: rgba(234, 84, 85, 0.1);
}

.r-registry-icon-action .bx {
  font-size: 1.25rem;
}

.r-registry-appt-detail dt {
  font-weight: 500;
}

#rRegistryTable .r-registry-status-badge {
  text-align: center;
}

.r-registry-reg-card-cell {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.35rem;
}

.r-registry-reg-card-cell .js-r-registry-open-hn-input {
  cursor: pointer;
  border: 0;
  font: inherit;
  line-height: inherit;
}

.r-registry-reg-card-cell .js-r-registry-open-hn-input:hover,
.r-registry-reg-card-cell .js-r-registry-open-hn-input:focus {
  filter: brightness(0.96);
}

.r-registry-hn-input-wrap {
  width: 100%;
  max-width: 100%;
}

.r-registry-hn-form {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
}

.r-registry-hn-input {
  width: 6.5rem;
  min-width: 5.5rem;
  flex: 0 0 auto;
}

.r-print-page {
  page-break-after: always;
}

@media (max-width: 767px) {
  .r-page-head {
    display: block;
  }
  .r-page-head .btn {
    width: 100%;
    margin-top: .75rem;
  }
}

/* Download / PWA install guide */
.r-download-page {
  max-width: 1180px;
  margin: 0 auto;
}

.r-download-hero {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 2rem;
  align-items: center;
  padding: clamp(1.5rem, 4vw, 3rem);
  border: 0;
  background:
    radial-gradient(circle at 85% 18%, rgba(91, 92, 226, .18), transparent 32%),
    linear-gradient(135deg, #ffffff 0%, #f5f7ff 52%, #eef2ff 100%);
}

.r-download-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  margin-bottom: 1rem;
  padding: .4rem .75rem;
  border-radius: 999px;
  background: rgba(91, 92, 226, .1);
  color: var(--r-primary);
  font-size: .82rem;
  font-weight: 700;
}

.r-download-title {
  max-width: 720px;
  margin: 0;
  color: #111827;
  font-size: clamp(2rem, 5vw, 3.7rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -.03em;
}

.r-download-lead {
  max-width: 640px;
  margin: 1rem 0 0;
  color: #5f6b7a;
  font-size: 1.05rem;
  line-height: 1.75;
}

.r-download-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  margin-top: 1.5rem;
}

.r-download-install-status {
  display: inline-flex;
  align-items: center;
  margin-top: 1rem;
  padding: .5rem .75rem;
  border-radius: 999px;
  font-size: .82rem;
  font-weight: 600;
}

.r-download-install-status.is-muted {
  background: rgba(100, 116, 139, .1);
  color: #64748b;
}

.r-download-install-status.is-success {
  background: rgba(16, 185, 129, .12);
  color: #047857;
}

.r-download-phone {
  display: flex;
  justify-content: center;
}

.r-download-phone__screen {
  width: 230px;
  min-height: 420px;
  padding: 18px;
  border: 10px solid #111827;
  border-radius: 36px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  box-shadow: 0 28px 60px rgba(15, 23, 42, .22);
}

.r-download-phone__top {
  width: 70px;
  height: 6px;
  margin: 0 auto 36px;
  border-radius: 999px;
  background: #111827;
}

.r-download-app-icon {
  width: 82px;
  height: 82px;
  margin: 0 auto 14px;
  border-radius: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  box-shadow: 0 16px 32px rgba(91, 92, 226, .2);
}

.r-download-app-icon img {
  width: 58px;
  height: 58px;
}

.r-download-phone__title {
  color: #111827;
  text-align: center;
  font-weight: 800;
  font-size: 1.08rem;
}

.r-download-phone__line {
  height: 10px;
  margin: 20px auto 0;
  border-radius: 999px;
  background: #e5e7eb;
}

.r-download-phone__line.is-short {
  width: 72%;
  margin-top: 10px;
}

.r-download-phone__card {
  display: flex;
  align-items: center;
  gap: .6rem;
  margin-top: 44px;
  padding: .8rem;
  border: 1px solid #e0e7ff;
  border-radius: 18px;
  background: #eef2ff;
  color: #4338ca;
  font-weight: 700;
  font-size: .86rem;
}

.r-download-phone__card .bx {
  font-size: 1.35rem;
}

.r-download-device {
  padding: 1.35rem;
}

.r-download-device__icon {
  width: 52px;
  height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  border-radius: 16px;
  font-size: 1.65rem;
}

.r-download-device__icon.tone-emerald {
  background: #dcfce7;
  color: #047857;
}

.r-download-device__icon.tone-blue {
  background: #dbeafe;
  color: #1d4ed8;
}

.r-download-device__icon.tone-violet {
  background: #ede9fe;
  color: #6d28d9;
}

.r-download-device h2 {
  margin: 0 0 .9rem;
  color: #111827;
  font-size: 1.1rem;
  font-weight: 800;
}

.r-download-steps {
  margin: 0;
  padding-left: 1.2rem;
  color: #4b5563;
  line-height: 1.65;
}

.r-download-steps li + li {
  margin-top: .55rem;
}

.r-download-help {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
  padding: 1.25rem;
}

.r-download-help__actions {
  display: flex;
  flex-wrap: wrap;
  gap: .65rem;
  justify-content: flex-end;
}

@media (max-width: 991px) {
  .r-download-hero {
    grid-template-columns: 1fr;
  }

  .r-download-phone {
    display: none;
  }
}

@media (max-width: 575px) {
  .r-download-hero,
  .r-download-device,
  .r-download-help {
    border-radius: 18px;
  }

  .r-download-actions,
  .r-download-help,
  .r-download-help__actions {
    display: grid;
  }

  .r-download-actions .btn,
  .r-download-help__actions .btn {
    width: 100%;
  }
}

/* PWA install + notification prompts */
.r-pwa-install-prompt,
.r-pwa-push-prompt {
  position: fixed;
  left: 0;
  right: 0;
  bottom: calc(16px + env(safe-area-inset-bottom));
  z-index: 1090;
  padding: 0 12px;
  pointer-events: none;
}

.r-pwa-install-card {
  pointer-events: auto;
  max-width: 440px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  background: #fff;
  border: 1px solid rgba(91, 92, 226, 0.15);
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.12);
}

.r-pwa-install-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: rgba(91, 92, 226, 0.12);
  color: var(--r-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  flex-shrink: 0;
}

.r-pwa-install-copy {
  flex: 1;
  min-width: 0;
}

.r-pwa-install-title {
  font-weight: 600;
  font-size: 0.92rem;
  color: #1f2937;
}

.r-pwa-install-desc {
  font-size: 0.78rem;
  color: #6b7280;
  margin-top: 2px;
}

.r-pwa-ios-guide {
  color: #374151;
  font-size: 0.92rem;
  line-height: 1.55;
}

.r-pwa-ios-steps {
  padding-left: 1.25rem;
  margin: 0;
}

.r-pwa-ios-steps li + li {
  margin-top: 0.35rem;
}

.r-pwa-noti-swal {
  padding: 0 !important;
  overflow: hidden;
}

.r-pwa-noti-modal {
  text-align: left;
}

.r-pwa-noti-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px 10px;
  border-bottom: 1px solid #eef0f3;
}

.r-pwa-noti-title {
  font-weight: 600;
  font-size: 1rem;
  color: #111827;
}

.r-pwa-noti-close {
  border: 0;
  background: transparent;
  font-size: 1.5rem;
  line-height: 1;
  color: #9ca3af;
  padding: 0 4px;
}

.r-pwa-noti-body {
  padding: 14px 16px 16px;
}

.r-pwa-noti-meta {
  font-size: 0.78rem;
  color: #6b7280;
  margin-bottom: 8px;
}

.r-pwa-noti-message {
  font-size: 0.92rem;
  color: #374151;
  line-height: 1.5;
  white-space: pre-wrap;
}

.r-pwa-noti-card {
  border: 1px solid #e5e7eb;
  border-radius: 18px;
  padding: 14px;
  background: #f8fafc;
}

.r-pwa-noti-case-head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: flex-start;
  margin-bottom: 10px;
}

.r-pwa-noti-case-status {
  color: #4f46e5;
  font-size: 0.78rem;
  font-weight: 700;
}

.r-pwa-noti-registry {
  color: #111827;
  font-size: 1rem;
  font-weight: 700;
}

.r-pwa-noti-pill {
  flex: 0 0 auto;
  border-radius: 999px;
  background: #ede9fe;
  color: #5b21b6;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 5px 9px;
}

.r-pwa-noti-patient {
  color: #111827;
  font-size: 1.02rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.r-pwa-noti-detail {
  color: #4b5563;
  font-size: 0.84rem;
  line-height: 1.45;
  margin-bottom: 12px;
}

.r-pwa-noti-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 12px;
}

.r-pwa-noti-grid div {
  background: #fff;
  border: 1px solid #edf2f7;
  border-radius: 12px;
  padding: 8px 10px;
  min-width: 0;
}

.r-pwa-noti-grid span {
  display: block;
  color: #94a3b8;
  font-size: 0.7rem;
  margin-bottom: 2px;
}

.r-pwa-noti-grid strong {
  display: block;
  color: #1f2937;
  font-size: 0.82rem;
  font-weight: 700;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.r-pwa-noti-sender {
  display: flex;
  gap: 10px;
  align-items: center;
  background: #fff;
  border: 1px solid #edf2f7;
  border-radius: 14px;
  padding: 10px;
}

.r-pwa-noti-sender-img {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  flex: 0 0 auto;
}

.r-pwa-noti-sender-fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #e0e7ff;
  color: #4338ca;
  font-weight: 700;
}

.r-pwa-noti-sender-label {
  color: #9ca3af;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1.2;
  margin-bottom: 2px;
  text-transform: uppercase;
}

.r-pwa-noti-sender-name {
  color: #111827;
  font-weight: 700;
  font-size: 0.9rem;
}

.r-pwa-noti-sender-meta {
  color: #6b7280;
  font-size: 0.76rem;
  line-height: 1.35;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.r-pwa-noti-actions {
  margin-top: 14px;
}

@media (display-mode: standalone) {
  .r-pwa-install-prompt {
    display: none !important;
  }
}

.refer-date-sticky-header {
  position: sticky;
  top: 4.5rem;
  z-index: 1015;
  width: fit-content;
  max-width: calc(100% - 1rem);
  padding: .35rem .65rem .35rem .5rem !important;
  margin-bottom: .25rem;
  border: 1px solid rgba(91, 92, 226, .28);
  border-radius: 999px;
  background: #ffffff;
  box-shadow: 0 2px 12px rgba(67, 89, 113, .12);
  backdrop-filter: blur(6px);
}

@keyframes r-skeleton-shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.r-skeleton {
  display: block;
  border-radius: 8px;
  background-color: #e8ebf0;
  background-image: linear-gradient(90deg, #e8ebf0 0%, #f4f6f9 45%, #e8ebf0 90%);
  background-size: 200% 100%;
  animation: r-skeleton-shimmer 1.35s ease-in-out infinite;
}

.r-skeleton-line {
  height: .75rem;
  width: 100%;
}

.r-skeleton-line-sm {
  width: 40%;
}

.r-skeleton-line-md {
  width: 65%;
}

.r-skeleton-line-lg {
  height: 1.1rem;
  width: 75%;
}

.r-skeleton-circle {
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  flex-shrink: 0;
}

.r-skeleton-pill {
  width: 4.5rem;
  height: 1.35rem;
  border-radius: 999px;
  flex-shrink: 0;
}

.r-skeleton-pill-sm {
  width: 3.25rem;
  height: 1.25rem;
}

.r-skeleton-btn {
  width: 5.5rem;
  height: 2rem;
  border-radius: .375rem;
}

.r-skeleton-card {
  pointer-events: none;
  user-select: none;
}

.r-refer-table-loading .r-skeleton-card {
  min-height: 280px;
}

.r-page-transition {
  position: absolute;
  inset: 0;
  z-index: 30;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  min-height: min(360px, calc(100vh - 7rem));
  padding: 1rem 0;
  background: linear-gradient(180deg, rgba(237, 240, 245, .62) 0%, rgba(237, 240, 245, .28) 70%, rgba(237, 240, 245, 0) 100%);
  opacity: 0;
  pointer-events: none;
  transition: opacity .18s ease;
}

.r-page-transition.is-active {
  opacity: 1;
  pointer-events: auto;
}

.r-page-transition-card {
  width: auto;
  min-width: min(220px, 100%);
  margin-top: 0;
  padding: .9rem 1.15rem;
  border: 1px solid rgba(212, 218, 228, .85);
  border-radius: 999px;
  background: rgba(255, 255, 255, .94);
  box-shadow: 0 12px 30px rgba(31, 41, 55, .12);
}

.r-page-transition-head {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .7rem;
  color: var(--r-text);
  font-weight: 700;
}

.r-page-transition-link.is-loading,
.r-page-transition-submit.is-loading {
  pointer-events: none;
}

.r-page-transition-link.is-loading {
  opacity: .72;
}

.r-page-transition-submit.is-loading {
  position: relative;
}

.r-page-transition-submit.is-loading::after {
  content: "";
  display: inline-block;
  width: .9rem;
  height: .9rem;
  margin-left: .45rem;
  vertical-align: -.125em;
  border: .14em solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: spinner-border .75s linear infinite;
}

@media (max-width: 575.98px) {
  .r-page-transition {
    align-items: flex-start;
    min-height: min(300px, calc(100vh - var(--r-bottom-nav-offset, 0px) - 5rem));
  }

  .r-page-transition-card {
    margin-bottom: 0;
    min-width: min(200px, 100%);
  }
}

.r-refer-month-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  color: var(--r-text);
  font-weight: 600;
  font-size: .9375rem;
  line-height: 1.4;
  background: transparent;
  border: 0;
  box-shadow: none;
  outline: none;
  padding: 0.25rem;
  cursor: pointer;
}

.r-refer-month-toggle:hover,
.r-refer-month-toggle:focus,
.r-refer-month-toggle:focus-visible,
.r-refer-month-toggle.show {
  color: var(--r-primary-strong);
  background: transparent;
  border: 0;
  box-shadow: none;
  outline: none;
}

.r-refer-month-toggle::after {
  border-top-color: var(--r-text);
}

.refer-table-card-list {
  margin-bottom: 0;
}

.refer-table-card-list li {
  line-height: 1.45;
}

.refer-table-badge-dept {
  background: #233446 !important;
  color: #fff !important;
  border: 1px solid rgba(35, 52, 70, 0.18);
}

.refer-table-card-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: .5rem;
  width: 100%;
}

.refer-table-card-actions-start {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .4rem;
  min-width: 0;
  flex: 1 1 auto;
}

.refer-table-checklist-badge {
  display: inline-flex;
  align-items: center;
  gap: .15rem;
  padding: .45rem .8rem;
  font-size: .78rem;
  font-weight: 600;
  line-height: 1.2;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, opacity .15s ease;
  -webkit-tap-highlight-color: transparent;
}

.refer-table-checklist-badge i {
  font-size: 1rem;
  line-height: 1;
}

.refer-table-checklist-badge:hover,
.refer-table-checklist-badge:focus {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.08);
}

.refer-table-checklist-badge:active {
  transform: translateY(0);
}

.refer-table-checklist-badge.bg-label-primary:hover,
.refer-table-checklist-badge.bg-label-primary:focus {
  opacity: .92;
}

.refer-table-manage-badge {
  display: inline-flex;
  align-items: center;
  gap: .15rem;
  padding: .45rem .8rem;
  font-size: .78rem;
  font-weight: 600;
  line-height: 1.2;
  color: var(--r-primary-strong) !important;
  background: #fff !important;
  border-color: rgba(91, 92, 226, .28) !important;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background-color .15s ease;
  -webkit-tap-highlight-color: transparent;
}

.refer-table-manage-badge i {
  font-size: 1rem;
  line-height: 1;
}

.refer-table-manage-badge:hover,
.refer-table-manage-badge:focus {
  background: var(--r-primary-soft) !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(91, 92, 226, .12);
}

.refer-table-manage-badge:active {
  transform: translateY(0);
}

.refer-table-registry-badge {
  display: inline-flex;
  align-items: center;
  gap: .15rem;
  padding: .45rem .8rem;
  font-size: .78rem;
  font-weight: 600;
  line-height: 1.2;
  color: #0f766e !important;
  background: #fff !important;
  border-color: rgba(15, 118, 110, .28) !important;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background-color .15s ease;
  -webkit-tap-highlight-color: transparent;
}

.refer-table-registry-badge i {
  font-size: 1rem;
  line-height: 1;
}

.refer-table-registry-badge:hover,
.refer-table-registry-badge:focus {
  background: rgba(15, 118, 110, .08) !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(15, 118, 110, .12);
}

.refer-table-registry-badge:active {
  transform: translateY(0);
}

.refer-table-card-menu {
  position: relative;
}

.refer-table-card-menu-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  margin: 0;
  padding: 0;
  border: 1px solid var(--r-line);
  border-radius: 999px;
  background: #fff;
  color: var(--r-primary-strong);
  box-shadow: 0 4px 14px rgba(67, 89, 113, .08);
  transition: background .15s ease, border-color .15s ease, transform .15s ease, box-shadow .15s ease;
}

.refer-table-card-menu-btn:hover,
.refer-table-card-menu-btn.show {
  background: var(--r-primary-soft);
  border-color: rgba(91, 92, 226, .28);
  color: var(--r-primary-strong);
  transform: translateX(2px);
  box-shadow: 0 6px 18px rgba(91, 92, 226, .16);
}

.refer-table-card-menu-btn i {
  font-size: 1.35rem;
  line-height: 1;
}

.refer-table-card-menu-list {
  min-width: 12.5rem;
  padding: .35rem;
  margin-bottom: .35rem !important;
}

.refer-table-card-menu-list .refer-table-menu-item {
  display: flex;
  align-items: center;
  gap: .55rem;
  width: 100%;
  padding: .55rem .75rem;
  border-radius: .65rem;
  font-size: .875rem;
  font-weight: 600;
  line-height: 1.3;
  color: var(--r-text);
}

.refer-table-card-menu-list .refer-table-menu-item i {
  font-size: 1.1rem;
  flex-shrink: 0;
  width: 1.25rem;
  text-align: center;
}

.refer-table-card-menu-list .refer-table-menu-item span {
  min-width: 0;
}

.refer-table-card-menu-list .refer-table-menu-item.disabled,
.refer-table-card-menu-list .refer-table-menu-item:disabled {
  opacity: .55;
  pointer-events: none;
}

.refer-table-card-menu-list .refer-table-btn-pdf i {
  color: var(--r-muted);
}

.refer-table-card-menu-list .refer-table-btn-detail i {
  color: var(--r-primary);
}

.refer-table-card-menu-list .refer-table-btn-manage i {
  color: var(--r-primary-strong);
}

.refer-table-card-menu-list a.refer-table-menu-item {
  text-decoration: none;
}

.refer-table-card-menu-list a.refer-table-menu-item:hover,
.refer-table-card-menu-list button.refer-table-menu-item:hover,
.refer-table-card-menu-list button.refer-table-menu-item:focus {
  background: #f8f9fc;
  color: var(--r-text);
}

.refer-table-card-menu-list .refer-table-btn-manage:hover,
.refer-table-card-menu-list .refer-table-btn-manage:focus {
  background: var(--r-primary-soft);
  color: var(--r-primary-strong);
}

.refer-table-card-files {
  display: flex;
  flex-wrap: nowrap;
  gap: .5rem .65rem;
  max-width: 100%;
  min-width: 0;
  overflow-x: auto;
  overflow-y: hidden;
  overscroll-behavior-x: contain;
  -webkit-overflow-scrolling: touch;
  margin-top: .75rem;
  padding-top: .75rem;
  padding-bottom: .2rem;
  border-top: 1px solid rgba(15, 23, 42, .08);
}

.refer-table-file-icon {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .25rem;
  width: 4.25rem;
  flex: 0 0 4.25rem;
  text-decoration: none;
  color: var(--r-text);
  transition: transform .15s ease, opacity .15s ease;
}

.refer-table-file-icon:hover {
  color: var(--r-primary);
  transform: translateY(-1px);
}

.refer-table-file-icon-symbol,
.refer-table-file-icon-thumb {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: .5rem;
  background: rgba(15, 23, 42, .04);
  overflow: hidden;
}

.refer-table-file-icon-symbol .bx {
  font-size: 1.35rem;
  line-height: 1;
}

.refer-table-file-icon-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.refer-table-file-icon-label {
  width: 100%;
  font-size: .68rem;
  line-height: 1.25;
  text-align: center;
  color: var(--r-muted);
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  line-clamp: 2;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.refer-table-file-icon:hover .refer-table-file-icon-label {
  color: var(--r-primary);
}

.r-admin-fab {
  position: fixed;
  right: 1.25rem;
  bottom: calc(5.5rem + env(safe-area-inset-bottom, 0px));
  z-index: 1080;
  width: 3.25rem;
  height: 3.25rem;
  padding: 0;
  border: none;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--bs-primary, #696cff);
  color: #fff;
  box-shadow: 0 10px 24px rgba(67, 89, 113, .28);
  text-decoration: none;
  transition: transform .15s ease, box-shadow .15s ease;
}

.r-admin-fab:hover {
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 14px 28px rgba(67, 89, 113, .32);
}

.r-admin-fab i {
  font-size: 1.5rem;
}

.r-admin-fab--secondary {
  bottom: calc(9.25rem + env(safe-area-inset-bottom, 0px));
  background: #8592a3;
}

@media (min-width: 1200px) {
  .r-admin-fab--secondary {
    bottom: calc(5.25rem + env(safe-area-inset-bottom, 0px));
  }
}

@media (min-width: 1200px) {
  .r-admin-fab {
    bottom: 1.5rem;
  }
}

.r-refer-offcanvas {
  width: min(100vw, 720px);
}

.r-refer-detail-offcanvas--fixed-footer {
  display: flex;
  flex-direction: column;
}

.r-refer-detail-offcanvas--fixed-footer .offcanvas-body {
  flex: 1 1 auto;
}

.r-refer-detail-footer {
  flex: 0 0 auto;
  padding: 0.75rem 1rem calc(0.75rem + env(safe-area-inset-bottom, 0px));
  background: #fff;
  box-shadow: 0 -0.5rem 1rem rgba(67, 89, 113, 0.08);
}

.r-refer-detail-footer-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.r-refer-detail-footer-actions .btn {
  flex: 1 1 0;
  min-width: 8.5rem;
}

.r-refer-case-offcanvas {
  --bs-offcanvas-width: 100vw;
  width: 100vw;
  max-width: 100vw;
}

.r-refer-case-offcanvas .offcanvas-body {
  position: relative;
  padding: 0;
  overflow: hidden;
  height: calc(100vh - 3.5rem);
  height: calc(100dvh - 3.5rem);
}

.r-refer-case-offcanvas-frame {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  background: #fff;
}

.r-refer-case-offcanvas-content {
  height: 100%;
  overflow-y: auto;
  background: #f5f5f9;
  padding: .75rem;
}

.r-case-manage-panel {
  max-width: 720px;
  margin-inline: auto;
}

.r-refer-case-offcanvas-loading {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.92);
}

.r-case-manage-panel .r-manage-status-options {
  display: flex;
  flex-direction: column;
  gap: .65rem;
}

.r-case-manage-panel .r-manage-status-option {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  width: fit-content;
  max-width: 100%;
  min-height: 0;
  margin: 0;
  padding: 0;
  border: 0 !important;
  border-radius: 0;
  background: none !important;
  box-shadow: none !important;
  cursor: pointer;
  user-select: none;
}

.r-case-manage-panel .r-manage-status-radio {
  width: 1.1rem;
  height: 1.1rem;
  margin: 0;
  flex-shrink: 0;
  accent-color: var(--r-primary);
  cursor: pointer;
}

.r-case-manage-panel .r-manage-status-option .badge {
  font-size: .78rem;
  font-weight: 600;
  border: 0;
}

.r-case-manage-panel .r-patient-rec-accordion {
  display: flex;
  flex-direction: column;
  gap: .5rem;
}

.r-case-manage-panel .r-patient-rec-acc-item {
  border: 1px solid var(--r-border, #e8ecf1);
  border-radius: .65rem;
  background: #fff;
  overflow: hidden;
}

.r-case-manage-panel .r-patient-rec-acc-item.is-open {
  border-color: var(--r-primary, #696cff);
  box-shadow: 0 0 0 1px rgba(105, 108, 255, .08);
}

.r-case-manage-panel .r-patient-rec-acc-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .65rem;
  width: 100%;
  border: 0;
  background: transparent;
  padding: .7rem .8rem;
  text-align: left;
  cursor: pointer;
}

.r-case-manage-panel .r-patient-rec-acc-item.is-open .r-patient-rec-acc-head {
  background: rgba(105, 108, 255, .04);
}

.r-case-manage-panel .r-patient-rec-acc-chevron {
  font-size: 1.15rem;
  color: #6c757d;
  transition: transform .2s ease;
}

.r-case-manage-panel .r-patient-rec-acc-item.is-open .r-patient-rec-acc-chevron {
  transform: rotate(180deg);
  color: var(--r-primary, #696cff);
}

.r-case-manage-panel .r-patient-rec-acc-body {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows .22s ease;
}

.r-case-manage-panel .r-patient-rec-acc-item.is-open .r-patient-rec-acc-body {
  grid-template-rows: 1fr;
}

.r-case-manage-panel .r-patient-rec-acc-body-inner {
  overflow: hidden;
  min-height: 0;
}

.r-case-manage-panel .r-patient-rec-acc-advice {
  padding: .65rem .8rem .5rem;
  line-height: 1.5;
  white-space: pre-wrap;
  color: #4b5563;
  border-top: 1px solid var(--r-border, #e8ecf1);
}

.r-case-manage-panel #rReferManageMessageForm textarea[name="message_text"] {
  white-space: pre-wrap;
  line-height: 1.5;
  font-family: inherit;
}

/* ---------- Case flow tracker ---------- */
.r-case-flow-tracks {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.65rem 0.85rem;
}

.r-case-flow-track {
  min-width: 0;
}

.r-case-flow-track-label {
  display: block;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: #9ca3af;
  margin-bottom: 0.3rem;
}

.r-case-flow-track-body {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.r-case-flow-track-hint {
  font-size: 0.75rem;
  color: #9ca3af;
  line-height: 1.35;
}

.r-case-flow-track-details {
  font-size: 0.75rem;
  color: #6b7280;
  line-height: 1.4;
}

.r-case-flow-track-details li + li {
  margin-top: 0.15rem;
}

.r-case-flow-card .r-registry-chip {
  font-size: 0.75rem;
  padding: 0.2rem 0.5rem;
}

@media (max-width: 991.98px) {
  .r-case-flow-tracks {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 575.98px) {
  .r-case-flow-tracks {
    grid-template-columns: 1fr;
  }
}

.r-case-manage-panel .r-patient-rec-acc-body-inner > .btn {
  margin: 0 .8rem .8rem;
}

.r-checklist-admin-offcanvas,
.r-manage-status-admin-offcanvas {
  width: min(100vw, 960px);
}

.r-manage-status-admin-root .table th {
  font-size: .8125rem;
  white-space: nowrap;
}

.r-checklist-admin-root .table th {
  font-size: .8125rem;
  white-space: nowrap;
}

#rReferChecklistOffcanvas .r-checklist-offcanvas-header {
  gap: 0;
  padding-bottom: 1rem;
}

#rReferChecklistOffcanvas .r-checklist-offcanvas-header-meta {
  margin-top: .75rem;
  padding-top: .75rem;
  border-top: 1px solid var(--r-line);
}

#rReferChecklistOffcanvas .r-checklist-offcanvas-header-patient {
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.35;
  color: var(--r-text);
}

#rReferChecklistOffcanvas .r-checklist-offcanvas-header-diagnosis {
  margin-top: .2rem;
  font-size: .8125rem;
  font-weight: 500;
  line-height: 1.35;
  color: var(--r-primary);
}

#rReferChecklistOffcanvas .r-checklist-offcanvas-header-list {
  margin-top: .5rem;
  padding-left: 1rem;
  font-size: .75rem;
  line-height: 1.45;
  color: var(--r-muted);
}

#rReferChecklistOffcanvas .r-checklist-add-more {
  border: 1px solid rgba(91, 92, 226, .18);
  background: linear-gradient(180deg, rgba(240, 240, 255, .55) 0%, #fff 100%);
}

#rReferChecklistOffcanvas .r-checklist-add-more--empty {
  border-color: var(--r-line);
  background: var(--app-surface);
}

#rReferChecklistOffcanvas .js-r-checklist-available-row {
  background: #fff;
  transition: border-color .15s ease, box-shadow .15s ease;
}

#rReferChecklistOffcanvas .js-r-checklist-available-row:has(input:checked) {
  border-color: rgba(91, 92, 226, .35) !important;
  box-shadow: 0 4px 12px rgba(91, 92, 226, .08);
}

#rReferChecklistOffcanvas .r-checklist-items {
  display: flex;
  flex-direction: column;
  gap: 0;
}

#rReferChecklistOffcanvas .r-checklist-item {
  padding: .85rem 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

#rReferChecklistOffcanvas .r-checklist-item + .r-checklist-item {
  border-top: 1px solid var(--r-line);
}

#rReferChecklistOffcanvas .r-checklist-item-check {
  display: flex;
  align-items: center;
  gap: .75rem;
  margin: 0;
  min-height: 2.5rem;
  cursor: pointer;
  user-select: none;
}

#rReferChecklistOffcanvas .r-checklist-item-check + .r-checklist-item-check {
  margin-top: .25rem;
}

#rReferChecklistOffcanvas .r-checklist-item-check--ok .r-checklist-item-text {
  font-size: .9375rem;
  font-weight: 600;
  line-height: 1.45;
  color: var(--r-text);
}

#rReferChecklistOffcanvas .r-checklist-item-check--missing .r-checklist-item-text {
  font-size: .875rem;
  font-weight: 500;
  line-height: 1.45;
  color: var(--r-muted);
}

#rReferChecklistOffcanvas .r-checklist-item-check--missing:has(input:checked) .r-checklist-item-text {
  color: var(--r-danger);
  font-weight: 600;
}

#rReferChecklistOffcanvas .r-checklist-item-check input[type="checkbox"] {
  width: var(--r-checklist-check-size);
  height: var(--r-checklist-check-size);
  margin: 0;
  flex-shrink: 0;
  border: 1px solid #d5dae3;
  border-radius: .35rem;
  background-color: #fff;
  background-repeat: no-repeat;
  background-position: center;
  background-size: 72% 72%;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  accent-color: var(--r-primary);
  transition: background-color .15s ease, border-color .15s ease, box-shadow .15s ease;
}

#rReferChecklistOffcanvas .r-checklist-item-check input[type="checkbox"]:focus {
  outline: 0;
  box-shadow: 0 0 0 .2rem rgba(91, 92, 226, .16);
}

#rReferChecklistOffcanvas .r-checklist-item-check--missing input[type="checkbox"]:focus {
  box-shadow: 0 0 0 .2rem rgba(224, 79, 95, .18);
}

#rReferChecklistOffcanvas .r-checklist-item-check--ok input[type="checkbox"]:checked {
  background-color: var(--r-primary) !important;
  border-color: var(--r-primary) !important;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3e%3cpath fill='none' stroke='%23fff' stroke-linecap='round' stroke-linejoin='round' stroke-width='3' d='m6 10 3 3 6-6'/%3e%3c/svg%3e");
}

#rReferChecklistOffcanvas .r-checklist-item-check--missing input[type="checkbox"]:checked {
  background-color: var(--r-danger) !important;
  border-color: var(--r-danger) !important;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3e%3cpath fill='none' stroke='%23fff' stroke-linecap='round' stroke-linejoin='round' stroke-width='3' d='m6 10 3 3 6-6'/%3e%3c/svg%3e");
}

#rReferChecklistOffcanvas .r-checklist-item-note {
  margin-top: .65rem;
  font-size: .875rem;
}

#rReferChecklistOffcanvas .r-checklist-item-readonly-label {
  font-size: .9375rem;
  font-weight: 600;
  line-height: 1.45;
}

#rReferChecklistOffcanvas .r-checklist-sent-docs {
  border-color: rgba(67, 89, 113, .12) !important;
}

#rReferChecklistOffcanvas .r-checklist-sent-doc-list,
#rReferChecklistOffcanvas .r-checklist-sent-file-list {
  display: flex;
  flex-direction: column;
  gap: .5rem;
}

#rReferChecklistOffcanvas .r-checklist-sent-doc-item {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: .75rem;
  padding: .55rem .65rem;
  border: 1px solid rgba(67, 89, 113, .1);
  border-radius: .5rem;
  background: rgba(67, 89, 113, .02);
}

#rReferChecklistOffcanvas .r-checklist-sent-doc-label {
  font-size: .8125rem;
  font-weight: 600;
  line-height: 1.4;
}

#rReferChecklistOffcanvas .r-checklist-sent-file-item {
  border: 1px solid rgba(67, 89, 113, .1);
  border-radius: .5rem;
  overflow: hidden;
}

#rReferChecklistOffcanvas .r-checklist-sent-file-link {
  display: flex;
  align-items: center;
  gap: .65rem;
  padding: .65rem .75rem;
  color: inherit;
  text-decoration: none;
  background: #fff;
}

#rReferChecklistOffcanvas .r-checklist-sent-file-link:hover {
  background: rgba(105, 108, 255, .04);
  color: var(--r-primary);
}

#rReferChecklistOffcanvas .r-checklist-sent-file-link > .bx:first-child {
  font-size: 1.35rem;
  line-height: 1;
}

#rReferChecklistOffcanvas .r-refer-image-gallery {
  margin-bottom: 0;
}

@media (max-width: 767px) {
  #rReferChecklistOffcanvas .r-checklist-item {
    padding: 1rem 0;
  }

  :root {
    --r-checklist-check-size: 1.35rem;
  }

  #rReferChecklistOffcanvas .r-checklist-item-check {
    gap: .85rem;
    min-height: 2.75rem;
  }

  #rReferChecklistOffcanvas .r-checklist-item-check--ok .r-checklist-item-text {
    font-size: 1rem;
  }
}

.r-checklist-admin-root .js-r-checklist-dept-select {
  width: 100%;
}

.r-checklist-admin-offcanvas .select2-container {
  z-index: 1095;
}

.r-checklist-admin-root .js-r-checklist-item-row .form-control {
  min-width: 0;
}

@media (max-width: 767px) {
  .r-checklist-admin-offcanvas .table td,
  .r-checklist-admin-offcanvas .table th {
    font-size: .8125rem;
  }

  .r-checklist-admin-root .js-r-checklist-item-row {
    flex-wrap: wrap;
  }

  .r-checklist-admin-root .js-r-checklist-item-row .js-r-checklist-item-sort {
    max-width: 100% !important;
    flex: 1 1 100%;
  }
}

.r-registry-case-cell {
  min-width: 0;
  max-width: none;
}

.r-registry-case-name-row {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  min-width: 0;
}

.r-registry-case-inline-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-top: 0.4rem;
}

.r-registry-label-action {
  display: inline-flex;
  align-items: center;
  gap: 0.28rem;
  min-height: 1.8rem;
  padding: 0.28rem 0.62rem !important;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
}

.r-registry-label-action:hover,
.r-registry-label-action:focus {
  color: var(--r-primary) !important;
  background: rgba(105, 108, 255, 0.18) !important;
  text-decoration: none;
}

.r-registry-label-action .bx {
  font-size: 1rem;
  line-height: 1;
}

.r-registry-icon-action.is-busy,
.r-inbox-queue-action-btn.is-busy,
.r-card-room-hn-action-btn.is-busy {
  opacity: 0.65;
  pointer-events: none;
}

tr[data-registry-case-id].is-refreshing .r-registry-case-name,
.r-registry-list-card.is-refreshing .r-inbox-queue-card-name {
  color: rgba(67, 89, 113, 0.62);
}

.r-registry-list-card.is-refreshing .r-inbox-queue-card-head {
  align-items: center;
}

.r-registry-case-refresh-spinner {
  flex-shrink: 0;
  width: 0.95rem;
  height: 0.95rem;
  border-width: 0.15em;
}

.r-registry-pagination .page-link {
  border-color: var(--r-line);
  color: var(--r-text);
  min-width: 2rem;
  text-align: center;
}

.r-registry-pagination .page-item.active .page-link {
  background: var(--r-primary);
  border-color: var(--r-primary);
  color: #fff;
}

.r-registry-pagination .page-item.disabled .page-link {
  color: var(--r-muted);
  background: #fff;
}

.r-registry-case-name-row .r-registry-case-name {
  min-width: 0;
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.r-registry-case-num {
  flex-shrink: 0;
}

.r-registry-case-bookmark {
  flex-shrink: 0;
  width: 1.65rem;
  height: 1.65rem;
}

.r-registry-case-name-text {
  min-width: 0;
}

.r-registry-patient-status-wrap {
  flex-shrink: 0;
}

.r-registry-patient-status-badge {
  font-size: 0.72rem;
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
}

.r-registry-icon-action.r-registry-refer-inline {
  flex-shrink: 0;
  width: 1.65rem;
  height: 1.65rem;
}

.r-registry-case-name {
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.35;
  color: #384551;
}

#rRegistryTable .r-registry-table-actions.r-inbox-queue-card-actions {
  flex-shrink: 0;
  align-items: flex-end;
}

#rRegistryTable .r-registry-table-actions .r-inbox-queue-action-btn {
  width: 2.15rem;
  height: 2.15rem;
}

.r-registry-case-meta {
  font-size: 0.8125rem;
  line-height: 1.45;
  color: rgba(67, 89, 113, 0.72);
  margin-top: 0.2rem;
}

.r-registry-case-dx {
  font-size: 0.8125rem;
  line-height: 1.4;
  color: var(--bs-primary, #696cff);
  margin-top: 0.2rem;
  max-width: 100%;
}

.r-registry-case-sep {
  color: rgba(67, 89, 113, .45);
}

.r-registry-refer-toggle {
  display: inline;
  padding: 0;
  font-size: inherit;
  color: inherit;
  font-weight: inherit;
  text-decoration: none;
  border: 0;
  background: transparent;
  line-height: inherit;
  vertical-align: baseline;
}

.r-registry-refer-toggle:hover,
.r-registry-refer-toggle:focus {
  text-decoration: underline;
}

.r-registry-refer-toggle.is-open {
  font-weight: 600;
}

.r-registry-refer-detail {
  background: var(--r-soft-slate, #f8fafc);
}

.r-registry-refer-detail-head {
  display: flex;
  justify-content: flex-end;
  padding: 0.5rem 0.75rem 0;
}

.r-registry-refer-detail-body {
  padding: 0.25rem 0.75rem 0.75rem;
}

.r-registry-case-offcanvas {
  width: 100vw;
  max-width: 100vw;
}

.r-registry-case-offcanvas .offcanvas-body {
  padding-top: .75rem;
}

.r-registry-case-offcanvas .r-registry-case-section {
  padding-bottom: 1.25rem;
}

.r-registry-case-offcanvas .js-r-reg-card-form .r-registry-case-section + .r-registry-case-section,
.r-registry-case-offcanvas .js-r-reg-card-form + .r-registry-case-section,
.r-registry-case-offcanvas .r-registry-case-section + .r-registry-case-section {
  border-top: 1px solid var(--r-line, #e8ecf1);
  padding-top: 1.25rem;
}

.r-registry-case-offcanvas .r-reg-send-card-room-switch {
  display: flex;
  align-items: center;
  gap: .85rem;
  min-height: 1.75rem;
  padding-left: 0;
}

.r-registry-case-offcanvas .r-reg-send-card-room-switch .form-check-input {
  float: none;
  margin: 0;
  flex-shrink: 0;
}

.r-registry-case-offcanvas .r-reg-send-card-room-switch .form-check-label {
  margin: 0;
  line-height: 1.3;
}

.r-registry-case-offcanvas .js-r-reg-send-card-room {
  width: 2.5rem;
  height: 1.35rem;
  cursor: pointer;
}

.r-registry-case-offcanvas .js-r-reg-send-card-room:disabled {
  cursor: not-allowed;
  opacity: .45;
}

.r-registry-case-offcanvas .r-reg-send-card-room-switch:has(.js-r-reg-send-card-room:disabled) .form-check-label {
  color: rgba(67, 89, 113, .45);
}

.r-registry-case-offcanvas .r-card {
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.r-registry-case-offcanvas .r-reg-card-doc-row {
  border-color: rgba(67, 89, 113, .1);
  background: var(--r-soft-slate, #f8fafc);
}

.r-registry-case-offcanvas .r-manage-status-options {
  display: flex;
  flex-direction: column;
  gap: .65rem;
}

.r-registry-case-offcanvas .r-manage-status-option {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  width: fit-content;
  max-width: 100%;
  min-height: 0;
  margin: 0;
  padding: 0;
  border: 0 !important;
  border-radius: 0;
  background: none !important;
  box-shadow: none !important;
  cursor: pointer;
  user-select: none;
}

.r-registry-case-offcanvas .r-manage-status-radio {
  width: 1.1rem;
  height: 1.1rem;
  margin: 0;
  flex-shrink: 0;
  accent-color: var(--r-primary);
  cursor: pointer;
}

.r-registry-case-offcanvas .r-manage-status-option .badge {
  font-size: .78rem;
  font-weight: 600;
  border: 0;
}

.r-registry-status-reason-tags {
  display: flex;
  flex-wrap: wrap;
  gap: .45rem;
}

.r-registry-status-reason-tag {
  border: 1px solid var(--r-border, #e8ecf1);
  border-radius: 999px;
  background: #fff;
  color: var(--r-text, #334155);
  font-size: .78rem;
  line-height: 1.2;
  padding: .35rem .7rem;
  cursor: pointer;
  transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}

.r-registry-status-reason-tag.is-active {
  border-color: var(--r-primary);
  background: rgba(var(--r-primary-rgb, 105, 108, 255), .1);
  color: var(--r-primary);
  font-weight: 600;
}

.r-registry-done-switch .btn {
  min-width: 5.5rem;
}

.r-reg-card-doc-list {
  display: flex;
  flex-direction: column;
  gap: .75rem;
}

.r-reg-card-doc-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: .5rem;
  padding: .65rem .75rem;
  border: 1px solid rgba(67, 89, 113, .12);
  border-radius: .5rem;
  background: #fff;
}

.r-reg-card-doc-label {
  font-size: .875rem;
  font-weight: 500;
}

.r-reg-card-doc-actions {
  flex-wrap: wrap;
  justify-content: flex-end;
}

.r-reg-card-doc-actions .btn-warning {
  --bs-btn-color: #9a3412;
  --bs-btn-bg: #ffedd5;
  --bs-btn-border-color: #fdba74;
  --bs-btn-hover-color: #7c2d12;
  --bs-btn-hover-bg: #fed7aa;
  --bs-btn-hover-border-color: #fb923c;
}

.r-reg-card-doc-request-note textarea {
  border-color: #fdba74;
  background: #fff7ed;
}

.r-reg-card-doc-request-note textarea:focus {
  border-color: #f97316;
  box-shadow: 0 0 0 .2rem rgba(249, 115, 22, .15);
}

.r-reg-card-dept-chips {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
}

.r-reg-card-dept-chip {
  border: 1px solid rgba(67, 89, 113, .18);
  border-radius: 999px;
  background: #fff;
  color: #566a7f;
  font-size: .8125rem;
  font-weight: 500;
  line-height: 1.2;
  padding: .45rem .85rem;
  transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}

.r-reg-card-dept-chip:hover,
.r-reg-card-dept-chip:focus {
  border-color: rgba(105, 108, 255, .45);
  color: #696cff;
}

.r-reg-card-dept-chip.is-active {
  border-color: #696cff;
  background: rgba(105, 108, 255, .12);
  color: #696cff;
}

.r-registry-dept-user-picker {
  border: 1px solid rgba(67, 89, 113, .12);
  border-radius: .75rem;
  background: #f8f9ff;
  padding: .75rem;
}

.r-registry-dept-user-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
}

.r-registry-dept-user-chip {
  max-width: 100%;
}

.r-registry-dept-user-position {
  color: #8592a3;
  font-weight: 400;
}

.r-registry-dept-user-chip.is-active .r-registry-dept-user-position {
  color: inherit;
  opacity: .75;
}

.r-registry-case-offcanvas .r-registry-eval-doctor-chip {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  max-width: 100%;
  cursor: default;
}

.r-registry-case-offcanvas .r-registry-eval-doctor-chip > span:first-child {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.r-registry-case-offcanvas .r-registry-eval-doctor-chip-remove {
  border: 0;
  background: transparent;
  color: inherit;
  font-size: 1.1rem;
  line-height: 1;
  padding: 0;
  margin-left: .1rem;
  opacity: .65;
}

.r-registry-case-offcanvas .r-registry-eval-doctor-chip-remove:hover,
.r-registry-case-offcanvas .r-registry-eval-doctor-chip-remove:focus {
  opacity: 1;
  color: #ff3e1d;
}

.r-registry-case-offcanvas .r-registry-eval-doctor-suggest {
  position: absolute;
  top: calc(100% + .35rem);
  left: 0;
  right: 0;
  z-index: 20;
  max-height: 11rem;
  overflow-y: auto;
  border: 1px solid var(--r-line, #e8ecf1);
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(31, 41, 55, .1);
}

.r-registry-case-offcanvas .r-registry-eval-doctor-suggest-item,
.r-registry-case-offcanvas .r-registry-eval-doctor-suggest-empty {
  display: block;
  width: 100%;
  border: 0;
  border-bottom: 1px solid rgba(67, 89, 113, .06);
  background: #fff;
  color: var(--r-text, #334155);
  font-size: .8125rem;
  padding: .6rem .75rem;
  text-align: left;
}

.r-registry-case-offcanvas .r-registry-eval-doctor-suggest-item:last-child,
.r-registry-case-offcanvas .r-registry-eval-doctor-suggest-empty:last-child {
  border-bottom: 0;
}

.r-registry-case-offcanvas .r-registry-eval-doctor-suggest-item:hover,
.r-registry-case-offcanvas .r-registry-eval-doctor-suggest-item:focus {
  background: rgba(var(--r-primary-rgb, 105, 108, 255), .08);
  color: var(--r-primary, #696cff);
}

.r-departments-admin-list {
  display: flex;
  flex-direction: column;
  gap: .65rem;
}

.r-departments-admin-item {
  display: flex;
  align-items: center;
  gap: .75rem;
  margin: 0;
  padding: .75rem .85rem;
  border: 1px solid rgba(67, 89, 113, .12);
  border-radius: .5rem;
  background: #fff;
  cursor: pointer;
}

.r-departments-admin-item-body {
  flex: 1 1 auto;
  min-width: 0;
}

.r-registry-refer-detail .r-refer-detail-sheet {
  background: #fff;
}

.r-refer-detail-sheet {
  font-size: .9375rem;
  line-height: 1.55;
}

.r-refer-detail-sheet .fw-semibold {
  color: var(--r-text, #334155);
}

.r-refer-detail-file-strip {
  padding-bottom: .85rem;
  border-bottom: 1px solid var(--r-line);
}

.r-refer-detail-files {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}

.r-refer-detail-section + .r-refer-detail-section {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--r-line);
}

.js-r-refer-pe-text,
.js-r-refer-lab-text,
.js-r-refer-clinical-text,
.js-r-refer-clinical-sections .small {
  white-space: pre-line;
  word-break: break-word;
}

.r-refer-image-gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .75rem;
}

.r-refer-image-item {
  display: block;
  border: 1px solid var(--r-line);
  border-radius: .75rem;
  overflow: hidden;
  background: #fff;
  text-decoration: none;
  color: inherit;
  transition: box-shadow .15s ease, border-color .15s ease;
}

.r-refer-image-item:hover {
  border-color: rgba(91, 92, 226, .35);
  box-shadow: 0 4px 14px rgba(67, 89, 113, .1);
}

.r-refer-image-item img {
  display: block;
  width: 100%;
  height: 140px;
  object-fit: cover;
  background: #f8fafc;
}

.r-refer-image-caption {
  padding: .5rem .625rem;
  font-size: .75rem;
  color: var(--r-muted, #64748b);
  border-top: 1px solid var(--r-line);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

@media (max-width: 575.98px) {
  .r-refer-image-gallery {
    grid-template-columns: 1fr;
  }

  .r-refer-image-item img {
    height: 180px;
  }
}

.refer-table-card.is-refer-highlighted {
  border-color: var(--r-primary) !important;
  box-shadow: 0 0 0 .2rem rgba(91, 92, 226, .16), 0 .5rem 1.25rem rgba(67, 89, 113, .12) !important;
}

#rRegistryNewCards {
  position: relative;
}

#rRegistryNewCards .r-registry-table-overlay {
  position: absolute;
  inset: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, .72);
  border-radius: .5rem;
}

#rRegistryNewCards .r-registry-table-overlay-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

#rRegistryNewCardsContent.is-loading,
.r-registry-mobile-cards.is-loading {
  opacity: .45;
  pointer-events: none;
}

.r-registry-responsive-list .r-registry-desktop-table.is-loading .r-registry-table {
  opacity: .45;
  pointer-events: none;
}

.r-registry-new-case .refer-table-card {
  margin-bottom: 0;
}

.r-registry-list-card .r-registry-list-card-name-text {
  min-width: 0;
}

.r-registry-list-card .r-registry-list-card-num {
  margin-right: 0.2rem;
}

.r-registry-list-card-bookmark {
  line-height: 1;
  color: #ea5455;
  text-decoration: none;
}

.r-registry-list-card-bookmark:hover,
.r-registry-list-card-bookmark:focus {
  color: #d63031;
}

.r-registry-list-card-bookmark .bx {
  font-size: 1.15rem;
}

.r-registry-list-card-bookmark.is-bookmarked {
  color: #ea5455;
}

.r-registry-list-card-tracks {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.5rem 0.75rem;
  margin-top: 0.35rem;
  padding-top: 0.55rem;
  border-top: 1px solid rgba(15, 23, 42, 0.06);
}

.r-registry-list-card-track {
  min-width: 0;
}

.r-registry-list-card-track-label {
  display: block;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: #9ca3af;
  margin-bottom: 0.25rem;
}

.r-registry-list-card-track-stack {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.r-registry-list-card .r-registry-status {
  flex-wrap: wrap;
  gap: 0.25rem;
}

.r-registry-list-card .r-registry-chip {
  font-size: 0.75rem;
  padding: 0.2rem 0.5rem;
}

.r-registry-list-card-primary-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin-top: auto;
  padding-top: 0.65rem;
}

.r-registry-list-card-primary-actions .r-inbox-queue-action-btn {
  width: 2.65rem;
  height: 2.65rem;
  border-radius: 12px;
}

.r-registry-list-card-primary-actions .r-inbox-queue-action-btn .bx {
  font-size: 1.35rem;
}

@media (max-width: 767.98px) {
  .r-registry-list-card-tracks {
    grid-template-columns: 1fr;
  }
}

/* ---------- Inbox queue card (horizontal layout) ---------- */
.card.r-inbox-queue-card,
.refer-table-card.r-inbox-queue-card,
.r-card.r-inbox-queue-card,
.r-inbox-queue-card {
  background: var(--r-queue-card-bg);
  border: 1px solid var(--r-queue-card-border);
  border-radius: 16px;
  box-shadow: var(--r-queue-card-shadow);
  overflow: hidden;
}

.r-inbox-queue-card-body {
  display: flex;
  align-items: stretch;
  gap: 0.65rem;
  padding: 1rem 0.85rem 1rem 1.1rem;
  background: var(--r-queue-card-bg);
}

.r-inbox-queue-card-main {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.r-inbox-queue-card-files-slot {
  margin-top: auto;
  padding-top: 0.35rem;
  max-width: 100%;
  min-width: 0;
}

.r-inbox-queue-card-files-slot:empty {
  display: none;
}

.r-inbox-queue-card-files-slot .refer-table-card-files {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
  justify-content: flex-start;
  width: 100%;
}

.r-inbox-queue-card-head {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  margin-bottom: 0.45rem;
}

.r-inbox-queue-card-head .avatar {
  flex-shrink: 0;
}

.r-inbox-queue-card-head-text {
  min-width: 0;
  flex: 1 1 auto;
}

.r-inbox-queue-card-name {
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.35;
  color: var(--r-text);
}

.r-inbox-queue-card-sub {
  margin-top: 0.15rem;
  font-size: 0.8125rem;
  color: #7b8496;
  line-height: 1.45;
}

.r-inbox-queue-card-sub .refer-table-badge-dept,
.r-inbox-queue-card-sub .js-refer-care-unit {
  font-size: 0.6875rem;
  font-weight: 600;
  padding: 0.18rem 0.55rem;
}

.r-inbox-queue-card-sub .js-refer-care-unit.text-bg-primary,
.r-inbox-queue-card-sub .js-refer-care-unit.text-bg-warning {
  background: var(--r-queue-badge-bg) !important;
  color: var(--r-primary-strong) !important;
  border: 1px solid rgba(105, 108, 255, 0.08);
}

.r-inbox-queue-card-sub .js-refer-care-unit.text-bg-warning {
  background: #fff4df !important;
  color: #c27803 !important;
  border-color: rgba(194, 120, 3, 0.12);
}

.r-inbox-queue-card-status {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.5rem;
  margin-bottom: 0.4rem;
  font-size: 0.8125rem;
  color: #8b93a7;
  line-height: 1.4;
}

.r-inbox-queue-card-status-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.15rem 0.6rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1.3;
  background: var(--r-queue-badge-bg);
  color: var(--r-primary-strong);
  border: 1px solid rgba(105, 108, 255, 0.08);
}

.r-inbox-queue-card-details {
  list-style: none;
  padding: 0;
  margin: 0 0 0.35rem;
  font-size: 0.8125rem;
  color: #5f677a;
}

.r-inbox-queue-card-details li {
  display: flex;
  align-items: flex-start;
  gap: 0.35rem;
  margin-bottom: 0.2rem;
  line-height: 1.45;
}

.r-inbox-queue-card-details li:last-child {
  margin-bottom: 0;
}

.r-inbox-queue-card-details .bx-edit {
  font-size: 0.95rem;
  color: #9ca3af;
  flex-shrink: 0;
  margin-top: 0.08rem;
}

.r-inbox-queue-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-top: 0.35rem;
}

.r-inbox-queue-card-tags .badge {
  font-size: 0.6875rem;
  font-weight: 600;
}

.r-inbox-queue-card-tags .text-bg-primary,
.r-inbox-queue-card-tags .text-bg-warning {
  background-color: var(--r-queue-badge-bg) !important;
  color: var(--r-primary-strong) !important;
}

.r-inbox-queue-card-tags .text-bg-warning {
  background-color: #fff4df !important;
  color: #c27803 !important;
}

.row.g-2:has(.r-inbox-queue-card) {
  --bs-gutter-y: 0.85rem;
}

.r-inbox-queue-card-actions {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  flex-shrink: 0;
  align-self: stretch;
  min-height: 100%;
}

.r-inbox-queue-card-actions-main,
.r-inbox-queue-card-actions-bottom {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.r-inbox-queue-card-actions .js-r-open-refer-detail,
.r-registry-list-card-primary-actions .js-r-open-refer-detail {
  order: -10;
}

.r-inbox-queue-card-actions-bottom {
  margin-top: auto;
}

.r-inbox-queue-action-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.35rem;
  height: 2.35rem;
  margin: 0;
  padding: 0;
  border: none;
  border-radius: 10px;
  background: var(--r-queue-action-bg);
  color: var(--r-primary-strong);
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.15s ease, opacity 0.15s ease, box-shadow 0.15s ease;
  -webkit-tap-highlight-color: transparent;
}

.r-inbox-queue-action-btn .bx {
  font-size: 1.15rem;
  line-height: 1;
}

.r-inbox-queue-action-btn:hover,
.r-inbox-queue-action-btn:focus {
  background: #dfe3ff;
  color: var(--r-primary-strong);
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(105, 108, 255, 0.12);
}

.r-inbox-queue-action-btn:active {
  transform: translateY(0);
}

.r-inbox-queue-action-btn.is-disabled,
.r-inbox-queue-action-btn:disabled {
  opacity: 0.42;
  pointer-events: none;
  cursor: default;
}

.r-inbox-queue-action-btn--danger {
  color: #ea5455;
  background: rgba(234, 84, 85, 0.1);
}

.r-inbox-queue-action-btn--pdf {
  color: #ff3e1d;
  background: #ffe8e6;
}

.r-inbox-queue-action-btn--pdf:hover,
.r-inbox-queue-action-btn--pdf:focus {
  background: #ffd9d5;
  color: #ff3e1d;
  box-shadow: 0 4px 10px rgba(255, 62, 29, 0.12);
}

.r-inbox-queue-action-btn--danger:hover,
.r-inbox-queue-action-btn--danger:focus {
  background: rgba(234, 84, 85, 0.16);
  color: #ea5455;
}

.r-inbox-queue-action-btn--success {
  color: #0f9d76;
  background: #e7f8f1;
}

.r-inbox-queue-action-btn--success:hover,
.r-inbox-queue-action-btn--success:focus {
  background: #d7f2e8;
  color: #0f9d76;
  box-shadow: 0 4px 10px rgba(15, 157, 118, 0.12);
}

.r-inbox-queue-card .r-registry-new-doc-chips {
  padding-top: 0;
  margin-bottom: 0;
}

.r-inbox-queue-card .refer-table-card-files {
  margin-top: 0.35rem;
  padding-top: 0;
  border-top: none;
  width: 100%;
}

@media (max-width: 575.98px) {
  .r-inbox-queue-card-body {
    padding: 0.85rem;
    gap: 0.55rem;
  }

  .r-inbox-queue-action-btn {
    width: 2.15rem;
    height: 2.15rem;
  }

  .r-inbox-queue-card-name {
    font-size: 1rem;
  }
}

/* ---------- Inbox page (contrast + section rhythm) ---------- */
.r-inbox-page {
  --r-inbox-section-divider: #c8d0dc;
}

.r-inbox-page .r-card {
  border-color: #bcc6d4;
  box-shadow: 0 3px 14px rgba(31, 41, 55, 0.1);
}

.r-inbox-page .r-inbox-queue-card {
  border-color: #b8c4d4;
  box-shadow: 0 3px 16px rgba(15, 23, 42, 0.11);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.r-inbox-page .r-inbox-queue-card:hover {
  border-color: #a3b0c4;
  box-shadow: 0 6px 22px rgba(15, 23, 42, 0.13);
}

.r-inbox-page .r-inbox-empty-state {
  border: 1px dashed #a8b4c6;
  background: linear-gradient(180deg, #f3f6fa 0%, #ffffff 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.r-inbox-page .r-inbox-empty-state .bx {
  color: #6b7588;
}

.r-inbox-page .r-inbox-empty-state-text {
  color: #374151;
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.55;
}

.r-inbox-page .r-inbox-date-section {
  margin-top: 1.5rem;
}

.r-inbox-page .r-inbox-date-section:first-child {
  margin-top: 0.35rem;
}

.r-inbox-page .r-inbox-date-section + .r-inbox-date-section {
  padding-top: 1.35rem;
  border-top: 1px solid var(--r-inbox-section-divider);
}

.r-inbox-page .refer-date-sticky-header {
  border-color: rgba(91, 92, 226, 0.34);
  background: #ffffff;
  box-shadow: 0 2px 14px rgba(67, 89, 113, 0.14);
}

.r-inbox-page .refer-date-sticky-header h6 {
  font-weight: 700;
  color: #1f2937;
  letter-spacing: -0.01em;
}

.r-inbox-page #inboxCaseContent,
.r-inbox-page #rRegistryNewCards {
  margin-top: 0.25rem;
}

.r-registry-new-doc-chips {
  padding-top: .15rem;
}

.r-registry-new-doc-chip {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  max-width: 100%;
  padding: .2rem .45rem;
  border: 1px solid rgba(67, 89, 113, .14);
  border-radius: 999px;
  background: rgba(67, 89, 113, .04);
  color: inherit;
  font-size: .6875rem;
  line-height: 1.3;
  text-decoration: none;
  transition: background .15s ease, border-color .15s ease, color .15s ease;
}

.r-registry-new-doc-chip:hover {
  background: rgba(105, 108, 255, .08);
  border-color: rgba(105, 108, 255, .28);
  color: var(--r-primary);
}

.r-registry-new-doc-chip > .bx {
  font-size: .875rem;
  line-height: 1;
  flex-shrink: 0;
}

.r-registry-new-doc-chip-label {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 9.5rem;
  font-weight: 500;
}

/* ---------- Admin users ---------- */
.admin-users-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: .75rem 1rem;
  margin-bottom: 1.25rem;
}

.admin-users-search {
  width: min(360px, 100%);
  flex: 1 1 240px;
}

.admin-users-search .input-group-text,
.admin-users-search .form-control {
  background: #fff;
  border-color: var(--r-line);
}

.admin-users-search .input-group-text {
  border-right: none;
  padding-left: .95rem;
  padding-right: .35rem;
}

.admin-users-search .input-group-text .bx {
  font-size: 1.15rem;
  line-height: 1;
}

.admin-users-search .form-control {
  border-left: none;
  padding-left: .35rem;
  min-height: 42px;
  font-size: .94rem;
}

.admin-users-search .form-control:focus {
  border-color: #b9bcff;
  box-shadow: none;
}

.admin-users-search:focus-within .input-group-text {
  border-color: #b9bcff;
}

.admin-users-search:focus-within {
  box-shadow: 0 0 0 .2rem rgba(91, 92, 226, .12);
  border-radius: 12px;
}

.admin-role-filter {
  display: flex;
  align-items: center;
  gap: .4rem;
  overflow-x: auto;
  padding: .1rem;
  flex: 1 1 auto;
  scrollbar-width: none;
}

.admin-role-filter::-webkit-scrollbar {
  display: none;
}

.admin-role-switch {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  border: 1px solid var(--r-line);
  background: #fff;
  color: var(--r-muted);
  border-radius: 999px;
  padding: .42rem .85rem;
  font-size: .82rem;
  font-weight: 600;
  line-height: 1.1;
  white-space: nowrap;
  transition: color .15s ease, background .15s ease, border-color .15s ease, box-shadow .15s ease;
}

.admin-role-switch:hover {
  color: var(--r-primary);
  border-color: rgba(91, 92, 226, .35);
}

.admin-role-switch.active {
  color: #fff;
  background: var(--r-primary);
  border-color: var(--r-primary);
  box-shadow: 0 .25rem .55rem rgba(91, 92, 226, .22);
}

.admin-role-notify-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.35rem;
  height: 1.35rem;
  padding: 0 .35rem;
  border-radius: 999px;
  font-size: .72rem;
  font-weight: 700;
  line-height: 1;
  background: rgba(67, 89, 113, .08);
  color: inherit;
}

.admin-role-switch.active .admin-role-notify-badge {
  background: rgba(255, 255, 255, .22);
  color: #fff;
}

.admin-users-grid {
  display: grid;
  gap: .85rem;
}

@media (min-width: 768px) {
  .admin-users-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1400px) {
  .admin-users-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.admin-user-item {
  border: 1px solid var(--r-line);
  border-radius: .9rem;
  background: #fff;
  padding: .9rem 1rem;
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.admin-user-item:hover {
  border-color: rgba(91, 92, 226, .28);
  box-shadow: 0 8px 20px rgba(67, 89, 113, .08);
  transform: translateY(-1px);
}

.admin-user-action-btn,
.admin-user-message-btn {
  width: 2.25rem;
  height: 2.25rem;
  padding: 0;
  border: 0;
  border-radius: 0.5rem;
  font-size: 1.35rem;
  line-height: 1;
  background: transparent;
  transition: color .15s ease, background-color .15s ease;
}

.admin-user-message-btn {
  color: var(--r-primary);
}

.admin-user-action-btn {
  color: var(--r-muted);
}

.admin-user-message-btn:hover,
.admin-user-message-btn:focus-visible {
  color: var(--r-primary-strong);
  background: var(--r-primary-soft);
}

.admin-user-action-btn:hover,
.admin-user-action-btn:focus-visible {
  color: var(--r-primary);
  background: var(--r-primary-soft);
}

.r-admin-table-actions {
  display: inline-flex;
  align-items: center;
  gap: 0.15rem;
}

.r-admin-table-action-btn {
  width: 2.25rem;
  height: 2.25rem;
  padding: 0;
  border: 0;
  background: transparent;
  border-radius: 0.5rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  line-height: 1;
  transition: color .15s ease, background-color .15s ease;
}

.r-admin-table-action-btn--edit {
  color: var(--r-primary);
}

.r-admin-table-action-btn--edit:hover,
.r-admin-table-action-btn--edit:focus-visible {
  color: var(--r-primary-strong);
  background: var(--r-primary-soft);
}

.r-admin-table-action-btn--delete {
  color: var(--r-danger);
}

.r-admin-table-action-btn--delete:hover,
.r-admin-table-action-btn--delete:focus-visible {
  color: #e63515;
  background: var(--r-danger-soft);
}

.admin-user-avatar {
  width: 48px;
  height: 48px;
}

.admin-user-avatar-btn {
  border: 0;
  padding: 0;
  background: transparent;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease;
}

.admin-user-avatar-btn:hover,
.admin-user-avatar-btn:focus-visible {
  transform: scale(1.04);
  box-shadow: 0 4px 14px rgba(67, 89, 113, .16);
  outline: none;
}

.admin-user-avatar .avatar-initial {
  width: 100%;
  height: 100%;
  font-size: 1.1rem;
}

.admin-user-avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.admin-user-avatar-modal-dialog {
  max-width: min(92vw, 420px);
}

.admin-user-avatar-modal-img {
  width: min(72vw, 320px);
  height: min(72vw, 320px);
  max-width: 100%;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 8px 24px rgba(67, 89, 113, .18);
}

.admin-user-meta {
  margin-top: .65rem;
  display: flex;
  gap: .45rem;
  flex-wrap: wrap;
  align-items: center;
}

.admin-user-meta .badge {
  border-radius: 999px;
  padding: .28rem .55rem;
  font-weight: 600;
}

.admin-name-status-badge {
  font-size: .62rem;
  font-weight: 700;
  letter-spacing: .03em;
  padding: .14rem .38rem;
  border-radius: 999px;
  line-height: 1.1;
  flex-shrink: 0;
}

.admin-name-pending-badge {
  color: #8a5800;
  background: var(--r-soft-amber) !important;
}

.admin-name-active-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.15rem;
  height: 1.15rem;
  padding: 0;
  color: #fff !important;
  background: var(--r-primary) !important;
}

.admin-provider-badge {
  display: inline-flex;
  align-items: center;
  gap: .32rem;
}

.admin-user-meta-text {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  background: var(--r-soft-blue);
  padding: .24rem .55rem;
  font-size: .78rem;
}

.admin-user-extra {
  margin-top: .65rem;
  display: grid;
  gap: .45rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.admin-user-extra-item {
  background: var(--r-bg);
  border: 1px solid var(--r-line);
  border-radius: .7rem;
  padding: .48rem .6rem;
  min-width: 0;
}

.admin-user-extra-label {
  display: block;
  font-size: .72rem;
  color: var(--r-muted);
  line-height: 1.1;
  margin-bottom: .15rem;
}

.admin-user-extra-value {
  display: block;
  font-size: .86rem;
  font-weight: 600;
  color: var(--r-text);
  line-height: 1.3;
}

.admin-user-footer {
  margin-top: .55rem;
}

.admin-user-staff-badge {
  display: inline-flex;
  align-items: center;
  gap: .25rem;
}

.admin-manage-avatar-wrap {
  display: flex;
  justify-content: center;
  margin-bottom: .85rem;
}

.admin-manage-avatar {
  box-shadow: 0 6px 16px rgba(67, 89, 113, .12);
}

.admin-manage-avatar.admin-user-avatar-btn:hover,
.admin-manage-avatar.admin-user-avatar-btn:focus-visible {
  box-shadow: 0 8px 20px rgba(67, 89, 113, .2);
}

.admin-manage-avatar img,
.admin-manage-avatar .avatar-initial {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

#userManageOffcanvas .r-admin-user-dept-chips {
  min-height: 2rem;
  align-items: center;
  gap: .45rem;
  padding: .55rem;
  border: 1px solid var(--r-line);
  border-radius: .8rem;
  background: #f8f9ff;
}

#userManageOffcanvas .r-admin-user-dept-chips .js-admin-user-dept-empty {
  padding: .1rem .2rem;
}

#userManageOffcanvas .r-admin-user-dept-chips .r-registry-eval-doctor-chip {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  max-width: 100%;
  border-color: rgba(105, 108, 255, .28);
  background: rgba(105, 108, 255, .1);
  color: var(--r-primary);
  box-shadow: none;
}

#userManageOffcanvas .r-admin-user-dept-chips .r-registry-eval-doctor-chip > span:first-child {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#userManageOffcanvas .r-admin-user-dept-chips .r-registry-eval-doctor-chip-remove {
  display: inline-flex;
  width: 1.1rem;
  height: 1.1rem;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 999px;
  background: rgba(105, 108, 255, .12);
  color: inherit;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1;
  padding: 0;
  margin-left: .1rem;
  opacity: .75;
  transition: background-color .15s ease, color .15s ease, opacity .15s ease;
}

#userManageOffcanvas .r-admin-user-dept-chips .r-registry-eval-doctor-chip-remove:hover,
#userManageOffcanvas .r-admin-user-dept-chips .r-registry-eval-doctor-chip-remove:focus {
  background: var(--r-danger-soft);
  color: var(--r-danger);
  opacity: 1;
}

#userManageOffcanvas .r-registry-eval-doctor-suggest {
  position: absolute;
  top: calc(100% + .35rem);
  left: 0;
  right: 0;
  z-index: 5;
  max-height: 12rem;
  overflow-y: auto;
  border: 1px solid var(--r-line);
  border-radius: .8rem;
  background: #fff;
  box-shadow: 0 10px 28px rgba(31, 41, 55, .12);
}

#userManageOffcanvas .r-registry-eval-doctor-suggest-item,
#userManageOffcanvas .r-registry-eval-doctor-suggest-empty {
  display: block;
  width: 100%;
  border: 0;
  border-bottom: 1px solid rgba(67, 89, 113, .07);
  background: #fff;
  color: var(--r-text);
  font-size: .86rem;
  line-height: 1.35;
  padding: .65rem .85rem;
  text-align: left;
}

#userManageOffcanvas .r-registry-eval-doctor-suggest-item:last-child,
#userManageOffcanvas .r-registry-eval-doctor-suggest-empty:last-child {
  border-bottom: 0;
}

#userManageOffcanvas .r-registry-eval-doctor-suggest-item:hover,
#userManageOffcanvas .r-registry-eval-doctor-suggest-item:focus {
  background: var(--r-primary-soft);
  color: var(--r-primary);
}

#userManageOffcanvas .js-admin-user-dept-search {
  min-height: 42px;
  border-radius: .8rem;
}

#userManageOffcanvas .js-admin-user-dept-search:focus {
  border-color: #b9bcff;
  box-shadow: 0 0 0 .2rem rgba(91, 92, 226, .12);
}

.chip-group {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
}

.chip-btn {
  border: 1px solid var(--r-line);
  background: #fff;
  color: var(--r-muted);
  border-radius: 999px;
  padding: .38rem .85rem;
  font-size: .84rem;
  line-height: 1.2;
  cursor: pointer;
  transition: all .15s ease;
}

.chip-btn:hover {
  border-color: var(--r-primary);
  color: var(--r-primary);
}

.chip-btn.active {
  border-color: var(--r-primary);
  background: var(--r-primary);
  color: #fff;
  box-shadow: 0 .2rem .45rem rgba(91, 92, 226, .24);
}

.lookup-offcanvas {
  width: min(460px, 94vw);
}

.lookup-offcanvas .offcanvas-header {
  border-bottom: 1px solid var(--r-line);
  background: #fff;
  padding: 1rem 1.15rem .85rem;
}

@media (max-width: 767.98px) {
  .admin-users-toolbar {
    flex-direction: column;
    align-items: stretch;
  }

  .admin-users-search {
    width: 100%;
    flex: 0 0 auto;
  }

  .admin-role-filter {
    width: 100%;
  }

  .admin-user-item {
    padding: .75rem .85rem;
  }

  .admin-user-item:hover {
    transform: none;
  }

  .admin-user-extra {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* ---------- Mobile bottom nav (เหมือน /o/) ---------- */
@media (max-width: 1199.98px) {
  html {
    overflow-x: hidden;
    max-width: 100%;
  }

  body {
    overflow-x: hidden;
    max-width: 100%;
  }

  .layout-wrapper,
  .layout-container,
  .layout-page,
  .content-wrapper,
  .container-xxl,
  .container-xxl.container-p-y {
    overflow-x: clip;
    max-width: 100%;
  }

  .layout-page,
  .content-wrapper {
    padding-bottom: calc(var(--r-bottom-nav-offset) + 6px);
  }

  #layout-menu,
  .layout-overlay,
  .content-backdrop,
  .drag-target {
    display: none !important;
    visibility: hidden !important;
    pointer-events: none !important;
    width: 0 !important;
    height: 0 !important;
    z-index: -1 !important;
    opacity: 0 !important;
  }

  .layout-wrapper.layout-content-navbar .layout-page {
    padding-left: 0 !important;
  }

  .bottom-nav a,
  .bottom-nav .bottom-nav-more-trigger {
    touch-action: manipulation;
  }

  html:has(.bottom-nav),
  body:has(.bottom-nav) {
    overflow-x: hidden;
    max-width: 100%;
  }
}

.bottom-nav {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1041;
  display: flex;
  justify-content: flex-start;
  align-items: stretch;
  box-sizing: border-box;
  overflow: hidden;
  background: var(--app-surface);
  border-top: 1px solid var(--app-border);
  padding: var(--r-bottom-nav-pad-y) 4px calc(var(--r-bottom-nav-pad-y) + env(safe-area-inset-bottom, 0px));
  box-shadow: 0 -4px 12px rgba(15, 23, 42, 0.06);
}

.bottom-nav a,
.bottom-nav .bottom-nav-more-trigger {
  position: relative;
  flex: 1 1 0;
  align-self: stretch;
  min-width: 0;
  min-height: var(--r-bottom-nav-item-h);
  height: var(--r-bottom-nav-item-h);
  max-height: var(--r-bottom-nav-item-h);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  color: var(--app-muted);
  font-size: .72rem;
  font-weight: 500;
  line-height: 1.15;
  padding: 4px 2px;
  border-radius: 12px;
  border: 0 !important;
  outline: none;
  background: transparent;
  box-shadow: none !important;
  transition: color .2s ease, background-color .2s ease;
  text-decoration: none;
  cursor: pointer;
  -webkit-tap-highlight-color: rgba(91, 92, 226, 0.12);
}

.bottom-nav a > *,
.bottom-nav .bottom-nav-more-trigger > * {
  pointer-events: none;
}

.bottom-nav .bottom-nav-icon-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  flex: 0 0 30px;
}

.bottom-nav .bottom-nav-label {
  display: block;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  line-height: 1.15;
}

.bottom-nav a i,
.bottom-nav .bottom-nav-more-trigger i {
  font-size: 1.35rem;
  line-height: 1;
  width: 30px;
  height: 30px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform .2s ease, background-color .2s ease;
}

.bottom-nav a.active,
.bottom-nav .bottom-nav-more-trigger.active {
  color: var(--r-primary) !important;
  font-weight: 600;
  background: rgba(91, 92, 226, 0.08);
}

.bottom-nav a.active i,
.bottom-nav .bottom-nav-more-trigger.active i {
  color: var(--r-primary) !important;
  background: rgba(91, 92, 226, 0.14);
}

.bottom-nav a.is-loading i {
  opacity: 0.55;
}

.r-mobile-more-offcanvas.offcanvas-bottom {
  border-top-left-radius: 16px;
  border-top-right-radius: 16px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  max-height: calc(100vh - 10px);
  height: calc(100vh - 10px);
}

@supports (height: 100dvh) {
  .r-mobile-more-offcanvas.offcanvas-bottom {
    max-height: calc(100dvh - 10px);
    height: calc(100dvh - 10px);
  }
}

.r-mobile-more-offcanvas .offcanvas-header {
  flex-shrink: 0;
}

.r-mobile-more-offcanvas .offcanvas-body {
  overflow-y: auto;
  overflow-x: hidden;
  flex: 1 1 auto;
  min-height: 0;
  max-height: 100%;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  touch-action: pan-y;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding-bottom: calc(1rem + env(safe-area-inset-bottom));
}

.r-mobile-more-offcanvas .offcanvas-body::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}

.mobile-more-grid .col-6 {
  min-width: 0;
}

.mobile-more-card {
  display: block;
  border-radius: 12px;
  border: 1px solid var(--app-border);
  padding: .75rem;
  min-height: 108px;
  background: var(--app-surface);
  color: inherit;
  transition: transform .15s ease, box-shadow .15s ease;
}

.mobile-more-card:active,
.mobile-more-card:hover,
.mobile-more-card:focus {
  transform: translateY(-1px);
  box-shadow: 0 6px 14px rgba(15, 23, 42, 0.08);
  color: inherit;
}

.mobile-more-card-icon {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: .45rem;
  font-size: 1.1rem;
}

.mobile-more-card-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .35rem;
  font-size: .86rem;
  font-weight: 700;
  line-height: 1.2;
  color: var(--app-ink);
}

.mobile-more-card-desc {
  display: block;
  font-size: .72rem;
  line-height: 1.25;
  color: var(--app-muted);
  margin-top: .2rem;
}

.mobile-more-card.tone-blue { background: #eff6ff; border-color: #bfdbfe; }
.mobile-more-card.tone-blue .mobile-more-card-icon { background: #dbeafe; color: #1d4ed8; }
.mobile-more-card.tone-emerald { background: #ecfdf5; border-color: #a7f3d0; }
.mobile-more-card.tone-emerald .mobile-more-card-icon { background: #d1fae5; color: #047857; }
.mobile-more-card.tone-rose { background: #fff1f2; border-color: #fecdd3; }
.mobile-more-card.tone-rose .mobile-more-card-icon { background: #ffe4e6; color: #be123c; }
.mobile-more-card.tone-indigo { background: #eef2ff; border-color: #c7d2fe; }
.mobile-more-card.tone-indigo .mobile-more-card-icon { background: #e0e7ff; color: #4338ca; }
.mobile-more-card.tone-violet { background: #f5f3ff; border-color: #ddd6fe; }
.mobile-more-card.tone-violet .mobile-more-card-icon { background: #ede9fe; color: #6d28d9; }
.mobile-more-card.tone-sky { background: #f0f9ff; border-color: #bae6fd; }
.mobile-more-card.tone-sky .mobile-more-card-icon { background: #e0f2fe; color: #0369a1; }
.mobile-more-card.tone-slate { background: #f8fafc; border-color: #cbd5e1; }
.mobile-more-card.tone-slate .mobile-more-card-icon { background: #e2e8f0; color: #334155; }
.mobile-more-card.tone-coral { background: #fff7ed; border-color: #fed7aa; }
.mobile-more-card.tone-coral .mobile-more-card-icon { background: #ffedd5; color: #c2410c; }
.mobile-more-card.tone-amber { background: #fffbeb; border-color: #fde68a; }
.mobile-more-card.tone-amber .mobile-more-card-icon { background: #fef3c7; color: #a16207; }

.content-footer.footer {
  border-top: 1px solid var(--app-border);
  background: var(--app-surface);
}

.content-footer a.text-muted {
  color: var(--app-muted) !important;
}

.content-footer a.text-muted:hover {
  color: var(--r-primary) !important;
}

@media (max-width: 1199.98px) {
  .r-pwa-install-prompt,
  .r-pwa-push-prompt {
    bottom: calc(var(--r-bottom-nav-offset) + 12px);
  }

  .refer-date-sticky-header {
    top: 0.75rem;
  }
}

.r-doctor-eval-offcanvas {
  --bs-offcanvas-width: min(28rem, 100vw);
}

.r-doctor-eval-offcanvas .offcanvas-body {
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.r-doctor-eval-panel {
  display: flex;
  flex-direction: column;
  gap: 0;
  min-height: 100%;
  padding: 1rem 1rem 0;
}

.r-doctor-eval-section {
  padding-bottom: 1rem;
  margin-bottom: 1rem;
  border-bottom: 1px solid var(--app-border);
}

.r-doctor-eval-section:last-of-type {
  border-bottom: 0;
  margin-bottom: 0;
}

.r-doctor-eval-extra-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.r-doctor-eval-extra-option {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin: 0;
  padding: 0.85rem 0;
  border: 0;
  border-bottom: 1px solid var(--app-border);
  border-radius: 0;
  background: transparent;
  cursor: pointer;
}

.r-doctor-eval-extra-option:first-child {
  padding-top: 0;
}

.r-doctor-eval-extra-option:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.r-doctor-eval-extra-option.is-active {
  background: transparent;
}

.r-doctor-eval-extra-option.is-active .r-doctor-eval-extra-option-body {
  color: inherit;
}

.r-doctor-eval-extra-option .form-check-input {
  margin-top: 0.2rem;
  flex-shrink: 0;
}

.r-doctor-eval-extra-option-body {
  flex: 1 1 auto;
  min-width: 0;
}

.r-doctor-eval-status-options .r-manage-status-option {
  margin: 0;
}

.r-doctor-eval-events {
  max-height: 220px;
  overflow-y: auto;
}

.r-doctor-eval-event {
  padding: 0.65rem 0;
  border-bottom: 1px solid var(--app-border);
}

.r-doctor-eval-event:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.r-doctor-eval-footer {
  position: sticky;
  bottom: 0;
  margin: auto -1rem 0;
  padding: 0.75rem 1rem 1rem;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, #fff 28%);
  border-top: 1px solid var(--app-border);
}

.r-doctor-request-chips .r-registry-chip {
  font-size: 0.78rem;
}

.r-doctor-request-fulfill-row {
  padding: 0.85rem 0;
  border: 0;
  border-bottom: 1px solid var(--app-border);
  border-radius: 0;
  background: transparent;
}

.r-doctor-request-fulfill-row:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.r-inbox-queue-card.r-doctor-eval-card .r-doctor-eval-card-diagnosis {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: #566a7f;
  line-height: 1.5;
}

.r-inbox-queue-card.r-doctor-eval-card .r-inbox-queue-card-name {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.r-doctor-eval-day-count {
  font-size: 0.75rem;
  font-weight: 700;
}

.r-doctor-eval-card-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.55rem;
  height: 1.55rem;
  padding: 0 0.35rem;
  border-radius: 999px;
  background: rgba(105, 108, 255, 0.12);
  color: var(--bs-primary, #696cff);
  font-size: 0.75rem;
  font-weight: 800;
  line-height: 1;
}

.r-doctor-eval-hn-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1.2;
  vertical-align: middle;
}

.r-doctor-eval-inline-status-badge {
  display: inline-flex;
  align-items: center;
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1.2;
  vertical-align: middle;
}

.r-refer-reply-status-switch {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.35rem;
  padding: 0.25rem;
  border: 1px solid var(--app-border);
  border-radius: 999px;
  background: #f7f9fb;
}

.r-refer-reply-status-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  min-height: 2rem;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  color: #566a7f;
  font-size: 0.8125rem;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}

.r-refer-reply-status-btn:hover,
.r-refer-reply-status-btn:focus-visible {
  color: var(--bs-primary, #696cff);
  background: rgba(105, 108, 255, 0.08);
}

.r-refer-reply-status-btn.is-active {
  color: #fff;
  box-shadow: 0 0.25rem 0.65rem rgba(67, 89, 113, 0.12);
}

.r-refer-reply-status-btn.is-active.is-pending {
  background: var(--bs-primary, #696cff);
}

.r-refer-reply-status-btn.is-active.is-sent {
  background: var(--bs-success, #71dd37);
}

.r-doctor-eval-hn-badge.border-0 {
  cursor: pointer;
}

.r-doctor-eval-hn-badge.border-0:hover,
.r-doctor-eval-hn-badge.border-0:focus-visible {
  box-shadow: 0 0 0 0.15rem rgba(3, 195, 236, 0.16);
}

.r-doctor-eval-meta-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.28rem;
  font-size: 0.6875rem;
  font-weight: 600;
  line-height: 1.2;
  vertical-align: middle;
}

.r-doctor-eval-meta-badge .bx {
  font-size: 0.95em;
  line-height: 1;
  flex-shrink: 0;
}

.r-inbox-queue-card.r-doctor-eval-card .r-doctor-eval-card-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 0.5rem 0.75rem;
  margin-top: auto;
  padding-top: 0.65rem;
}

.r-inbox-queue-card.r-doctor-eval-card .r-doctor-eval-card-footer .refer-table-card-files {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
  flex: 1 1 12rem;
  min-width: 0;
}

.r-inbox-queue-card.r-doctor-eval-card .r-doctor-eval-card-footer .r-doctor-request-chips {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
  flex: 1 1 auto;
  min-width: 0;
}

.r-inbox-queue-card.r-doctor-eval-card .r-doctor-eval-card-footer .r-doctor-request-chips .r-registry-chip {
  font-size: 0.8125rem;
  font-weight: 600;
  padding: 0.35rem 0.75rem;
  line-height: 1.3;
}

.r-doctor-ppk11-modal .modal-body {
  background: #f7f9fb;
}

.r-doctor-ppk11-modal .r-doctor-ppk11-patient {
  background: #fff;
}

.r-doctor-ppk11-modal .r-registry-ppk11-appt-card {
  background: #fff;
}

.r-registry-extra-status-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.r-registry-extra-status-row {
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--app-border);
}

.r-registry-extra-status-row:first-child {
  padding-top: 0;
}

.r-registry-extra-status-row:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.r-registry-extra-status-segment {
  display: flex;
  gap: 0;
  padding: 0.2rem;
  border: 1px solid var(--app-border);
  border-radius: 0.6rem;
  background: #f8f9fb;
}

.r-registry-extra-status-option {
  flex: 1;
  margin: 0;
  text-align: center;
  cursor: pointer;
}

.r-registry-extra-status-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.r-registry-extra-status-option span {
  display: block;
  padding: 0.4rem 0.5rem;
  border-radius: 0.45rem;
  font-size: 0.84rem;
  font-weight: 500;
  color: var(--app-muted);
}

.r-registry-extra-status-option.is-active span {
  background: #fff;
  color: var(--bs-body-color);
  box-shadow: 0 1px 3px rgba(67, 89, 113, 0.12);
}

/* LIFF refer list (mobile) */
.r-liff-refer-body {
  background: #f5f5f9;
  min-height: 100dvh;
}

.r-liff-refer-app {
  max-width: 640px;
  margin: 0 auto;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

.r-liff-refer-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: #fff;
  border-bottom: 1px solid rgba(67, 89, 113, 0.12);
  padding: calc(0.75rem + env(safe-area-inset-top, 0)) 1rem 0.75rem;
  box-shadow: 0 2px 12px rgba(67, 89, 113, 0.06);
}

.r-liff-refer-header-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.r-liff-refer-brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  min-width: 0;
}

.r-liff-refer-logo {
  width: 36px;
  height: 36px;
  border-radius: 0.65rem;
  object-fit: contain;
  flex-shrink: 0;
}

.r-liff-refer-title {
  font-size: 1.05rem;
  font-weight: 700;
  margin: 0;
  line-height: 1.25;
}

.r-liff-refer-subtitle {
  font-size: 0.78rem;
  color: var(--app-muted);
  margin: 0.1rem 0 0;
  line-height: 1.3;
}

.r-liff-refer-search-wrap {
  display: grid;
  gap: 0.35rem;
}

.r-liff-refer-search .input-group-text,
.r-liff-refer-search .form-control,
.r-liff-refer-search .btn {
  border-color: rgba(67, 89, 113, 0.18);
}

.r-liff-refer-search .form-control {
  font-size: 0.92rem;
}

.r-liff-refer-range {
  padding-left: 0.15rem;
}

.r-liff-refer-main {
  flex: 1;
  padding: 0.75rem 1rem calc(1rem + env(safe-area-inset-bottom, 0));
}

.r-liff-refer-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 3rem 1rem;
}

.r-liff-refer-list {
  display: grid;
  gap: 0.65rem;
}

.r-liff-refer-card {
  border: 0;
  box-shadow: 0 2px 10px rgba(67, 89, 113, 0.08);
}

.r-liff-refer-card .card-body {
  padding: 0.9rem 0.95rem;
}

.r-liff-refer-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.65rem;
  margin-bottom: 0.55rem;
}

.r-liff-refer-patient {
  font-size: 0.98rem;
  font-weight: 700;
  line-height: 1.35;
  margin-bottom: 0.25rem;
}

.r-liff-refer-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.78rem;
}

.r-liff-refer-status {
  flex-shrink: 0;
  max-width: 42%;
  text-align: right;
  white-space: normal;
  line-height: 1.25;
}

.r-liff-refer-details {
  list-style: none;
  margin: 0 0 0.65rem;
  padding: 0;
  display: grid;
  gap: 0.28rem;
}

.r-liff-refer-details li {
  display: flex;
  align-items: flex-start;
  gap: 0.4rem;
  font-size: 0.82rem;
  color: var(--bs-body-color);
}

.r-liff-refer-details i {
  color: #8592a3;
  font-size: 1rem;
  line-height: 1.2;
  flex-shrink: 0;
}

.r-liff-refer-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.45rem;
  padding-top: 0.15rem;
  border-top: 1px solid rgba(67, 89, 113, 0.08);
}

.r-liff-refer-action-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.35rem;
  height: 2.35rem;
  border-radius: 0.65rem;
  border: 1px solid rgba(67, 89, 113, 0.14);
  background: #fff;
  color: #697a8d;
  text-decoration: none;
}

.r-liff-refer-action-btn i {
  font-size: 1.25rem;
}

.r-liff-refer-action-btn--primary {
  background: #696cff;
  border-color: #696cff;
  color: #fff;
}

.r-liff-refer-action-btn.is-disabled {
  opacity: 0.45;
  pointer-events: none;
}

.r-liff-refer-empty {
  border: 0;
  box-shadow: 0 2px 10px rgba(67, 89, 113, 0.06);
}

.r-liff-refer-toast-wrap {
  z-index: 1080;
  padding-bottom: calc(0.75rem + env(safe-area-inset-bottom, 0)) !important;
}

/* LIFF staff login */
.r-liff-staff-body {
  min-height: 100dvh;
  background:
    radial-gradient(circle at top left, rgba(6, 199, 85, 0.16), transparent 32rem),
    #f5f5f9;
}

.r-liff-staff-app {
  min-height: 100dvh;
  max-width: 520px;
  margin: 0 auto;
  padding: calc(1rem + env(safe-area-inset-top, 0)) 1rem calc(1.25rem + env(safe-area-inset-bottom, 0));
  display: flex;
  align-items: center;
}

.r-liff-staff-card {
  width: 100%;
  border: 0;
  border-radius: 1.25rem;
  box-shadow: 0 1rem 2.5rem rgba(67, 89, 113, 0.16);
}

.r-liff-staff-card .card-body {
  padding: 1.25rem;
}

.r-liff-staff-head,
.r-liff-staff-brand {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.r-liff-staff-head {
  justify-content: space-between;
  margin-bottom: 1rem;
}

.r-liff-staff-logo {
  width: 44px;
  height: 44px;
  border-radius: 0.9rem;
  object-fit: contain;
  flex-shrink: 0;
}

.r-liff-staff-title {
  margin: 0;
  font-size: 1.18rem;
  font-weight: 700;
  line-height: 1.3;
}

.r-liff-staff-subtitle {
  color: var(--app-muted);
  font-size: 0.85rem;
  line-height: 1.4;
}

.r-liff-staff-note {
  font-size: 0.88rem;
  line-height: 1.55;
}

.r-liff-staff-form .form-label {
  font-weight: 600;
}

.r-liff-staff-form .form-control,
.r-liff-staff-form .input-group-text {
  min-height: 3rem;
}

.r-liff-staff-submit {
  min-height: 3rem;
  font-weight: 700;
}

.r-liff-staff-result {
  text-align: center;
  padding: 1.25rem 0 0.5rem;
}

.r-liff-staff-result-icon {
  width: 4rem;
  height: 4rem;
  margin: 0 auto 1rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: #06c755;
  box-shadow: 0 0.75rem 1.5rem rgba(6, 199, 85, 0.26);
}

.r-liff-staff-result-icon i {
  font-size: 2.1rem;
}

.r-liff-staff-result h2 {
  font-size: 1.15rem;
  font-weight: 700;
  margin: 0 0 0.35rem;
}

.r-user-profile-offcanvas {
  --bs-offcanvas-width: min(100vw, 420px);
}

.r-user-profile-card {
  background: #fff;
  border: 1px solid rgba(67, 89, 113, 0.08);
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(67, 89, 113, 0.06);
  padding: 1.25rem;
}

.r-user-profile-head {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  margin-bottom: 1.25rem;
}

.r-user-profile-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.r-user-profile-avatar--fallback {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(105, 108, 255, 0.12);
  color: #696cff;
  font-size: 1.75rem;
  font-weight: 700;
}

.r-user-profile-name {
  font-size: 1.125rem;
  font-weight: 700;
  color: #233446;
  margin-bottom: 0.35rem;
}

.r-user-profile-fields {
  display: grid;
  gap: 0.875rem;
}

.r-user-profile-field-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: #8592a3;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  margin-bottom: 0.15rem;
}

.r-user-profile-field-value {
  font-size: 0.95rem;
  color: #233446;
  line-height: 1.45;
  word-break: break-word;
}

.r-handover-scope-pill {
  display: inline-flex;
  align-items: center;
  margin-left: 0.35rem;
  padding: 0.12rem 0.55rem;
  border-radius: 999px;
  background: var(--r-primary-soft);
  color: var(--r-primary-strong);
  font-size: 0.78rem;
  font-weight: 600;
  vertical-align: middle;
}

.r-handover-shell {
  max-width: 720px;
  margin: 0 auto;
  padding: 0.25rem 0 1.5rem;
}

.r-handover-compose {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.r-handover-compose__input {
  border-radius: 12px;
  border-color: var(--r-line);
  min-height: 46px;
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.04);
}

.r-handover-compose__btn {
  border-radius: 12px;
  min-width: 46px;
  flex-shrink: 0;
}

.r-handover-list {
  display: grid;
  gap: 0.65rem;
}

.r-handover-list--completed.is-collapsed {
  display: none;
}

.r-handover-completed-toggle {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  width: 100%;
  margin: 1rem 0 0.65rem;
  padding: 0.7rem 0.9rem;
  border: 0;
  border-radius: 12px;
  background: #dbeafe;
  color: #1e3a8a;
  font-weight: 600;
  text-align: left;
}

.r-handover-completed-toggle__icon {
  transition: transform 0.2s ease;
}

.r-handover-completed-toggle.is-open .r-handover-completed-toggle__icon {
  transform: rotate(180deg);
}

.r-handover-card {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 0.75rem;
  align-items: start;
  padding: 0.95rem 1rem;
  border-radius: 14px;
  background: var(--r-card);
  box-shadow: var(--r-queue-card-shadow);
  border: 1px solid rgba(212, 218, 228, 0.65);
}

.r-handover-card.is-done {
  opacity: 0.82;
}

.r-handover-card__check,
.r-handover-card__star {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #94a3b8;
  padding: 0;
}

.r-handover-card__actions {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  flex-shrink: 0;
}

.r-handover-card__edit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  background: transparent;
  color: var(--r-primary);
  padding: 0;
  font-size: 1.15rem;
  line-height: 1;
}

.r-handover-card__edit:hover,
.r-handover-card__edit:focus-visible {
  color: var(--r-primary-strong);
}

.r-handover-card__check {
  font-size: 1.45rem;
}

.r-handover-card__check.is-checked {
  background: var(--r-primary);
  color: #fff;
}

.r-handover-card__star {
  font-size: 1.15rem;
}

.r-handover-card__star.is-active {
  color: #f59e0b;
}

.r-handover-card__body-wrap {
  min-width: 0;
  padding-top: 0.15rem;
}

.r-handover-card__author {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--r-muted);
  margin-bottom: 0.2rem;
}

.r-handover-card__body {
  margin: 0;
  font-size: 0.98rem;
  line-height: 1.5;
  color: var(--r-text);
  word-break: break-word;
}

.r-handover-card.is-done .r-handover-card__body {
  color: var(--r-muted);
  text-decoration: line-through;
}

.r-handover-empty {
  margin-top: 2rem;
  text-align: center;
  color: var(--r-muted);
}

.r-handover-empty i {
  display: block;
  font-size: 2rem;
  margin-bottom: 0.5rem;
  opacity: 0.55;
}

.r-dept-alert-shell {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.r-dept-alert-compose {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 1rem;
  background: #fff;
  border: 1px solid rgba(67, 89, 113, 0.12);
  border-radius: 0.875rem;
  box-shadow: 0 0.125rem 0.375rem rgba(67, 89, 113, 0.06);
}

.r-dept-alert-compose__body {
  display: flex;
  gap: 0.5rem;
  align-items: stretch;
}

.r-dept-alert-compose__input {
  flex: 1;
  min-width: 0;
  border-radius: 0.625rem;
}

.r-dept-alert-compose__btn {
  flex-shrink: 0;
  border-radius: 0.625rem;
  min-width: 2.75rem;
}

.r-dept-alert-list {
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
}

.r-dept-alert-list--completed.is-collapsed {
  display: none;
}

.r-dept-alert-completed-toggle {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  width: 100%;
  padding: 0.5rem 0;
  border: 0;
  background: transparent;
  color: #697a8d;
  font-size: 0.875rem;
}

.r-dept-alert-completed-toggle__icon {
  transition: transform 0.2s ease;
}

.r-dept-alert-completed-toggle.is-open .r-dept-alert-completed-toggle__icon {
  transform: rotate(180deg);
}

.r-dept-alert-card {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.875rem 1rem;
  background: #fff;
  border: 1px solid rgba(67, 89, 113, 0.12);
  border-radius: 0.875rem;
  box-shadow: 0 0.125rem 0.375rem rgba(67, 89, 113, 0.05);
}

.r-dept-alert-card.is-done {
  opacity: 0.72;
}

.r-dept-alert-card__check,
.r-dept-alert-card__edit,
.r-dept-alert-card__delete {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #697a8d;
}

.r-dept-alert-card__actions {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.r-dept-alert-card__check {
  color: #71dd37;
}

.r-dept-alert-card__check.is-checked {
  background: rgba(113, 221, 55, 0.12);
  color: #56b92f;
}

.r-dept-alert-card__body-wrap {
  flex: 1;
  min-width: 0;
}

.r-dept-alert-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.5rem;
  margin-bottom: 0.25rem;
}

.r-dept-alert-card__target {
  display: inline-flex;
  align-items: center;
  padding: 0.1rem 0.5rem;
  border-radius: 999px;
  background: rgba(105, 108, 255, 0.1);
  color: #696cff;
  font-size: 0.75rem;
  font-weight: 600;
}

.r-dept-alert-card__time {
  font-size: 0.75rem;
  color: #a1acb8;
}

.r-dept-alert-card__author {
  display: block;
  font-size: 0.75rem;
  color: #697a8d;
  margin-bottom: 0.15rem;
}

.r-dept-alert-card__body {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.45;
  color: #566a7f;
  word-break: break-word;
}

.r-dept-alert-card.is-done .r-dept-alert-card__body {
  text-decoration: line-through;
  color: #a1acb8;
}

.r-dept-alert-empty {
  text-align: center;
  padding: 2rem 1rem;
  color: #a1acb8;
}

.r-dept-alert-empty i {
  display: block;
  font-size: 2rem;
  margin-bottom: 0.5rem;
  opacity: 0.55;
}

.r-dept-alert-swal {
  overflow: hidden;
}

.r-dept-alert-popup {
  padding: 1rem 1rem 0.875rem;
  text-align: left;
}

.r-dept-alert-popup__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.r-dept-alert-popup__head-main {
  flex: 1;
  min-width: 0;
}

.r-dept-alert-popup__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.5rem;
  margin-top: 0.15rem;
}

.r-dept-alert-popup__close {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  margin: -0.25rem -0.25rem 0 0;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #a1acb8;
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
}

.r-dept-alert-popup__close:hover,
.r-dept-alert-popup__close:focus {
  background: rgba(67, 89, 113, 0.08);
  color: #566a7f;
}

.r-dept-alert-closures {
  margin: 0 0 0.75rem;
  padding: 0.55rem 0.65rem;
  border-radius: 0.5rem;
  background: rgba(113, 168, 79, 0.08);
  border: 1px solid rgba(113, 168, 79, 0.15);
}

.r-dept-alert-closures__title {
  font-size: 0.72rem;
  font-weight: 600;
  color: #71a84f;
  margin-bottom: 0.25rem;
  text-transform: none;
}

.r-dept-alert-closures__row {
  font-size: 0.78rem;
  color: #566a7f;
  line-height: 1.4;
}

.r-dept-alert-closures__name {
  font-weight: 600;
}

.r-dept-alert-closures__time {
  color: #697a8d;
}

.r-dept-alert-closures--open {
  background: rgba(255, 171, 0, 0.08);
  border: 1px solid rgba(255, 171, 0, 0.16);
}

.r-dept-alert-closures--open .r-dept-alert-closures__title {
  color: #cc9a00;
}

.r-dept-alert-card__check--idle {
  opacity: 0.35;
  cursor: default;
}

.r-dept-alert-card__close-btn {
  width: 100%;
  margin-bottom: 0.35rem;
  border-radius: 0.5rem;
  font-size: 0.8rem;
  font-weight: 600;
}

.r-dept-alert-card--sent .r-dept-alert-card__actions {
  min-width: 5.5rem;
}

.r-dept-alert-popup__title {
  font-size: 1rem;
  font-weight: 700;
  color: #566a7f;
}

.r-dept-alert-popup__target {
  display: inline-flex;
  padding: 0.1rem 0.5rem;
  border-radius: 999px;
  background: rgba(105, 108, 255, 0.1);
  color: #696cff;
  font-size: 0.75rem;
  font-weight: 600;
}

.r-dept-alert-popup__time {
  font-size: 0.75rem;
  color: #a1acb8;
}

.r-dept-alert-popup__author {
  font-size: 0.8rem;
  color: #697a8d;
  margin-bottom: 0.35rem;
}

.r-dept-alert-popup__body {
  margin: 0 0 0.875rem;
  font-size: 0.95rem;
  line-height: 1.5;
  color: #566a7f;
  white-space: pre-wrap;
  word-break: break-word;
}

.r-dept-alert-popup__actions {
  padding-top: 0.25rem;
}

.r-dept-alert-section-title {
  margin: 0 0 0.75rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: #566a7f;
}

.r-dept-alert-sent-section {
  margin-top: 0.5rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(67, 89, 113, 0.1);
}

.r-dept-alert-card--sent {
  padding-left: 1rem;
}

.r-dept-alert-sent-empty {
  text-align: center;
  padding: 0.75rem 0 0.25rem;
}

.r-dept-alert-card__closures {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  margin-top: 0.45rem;
}

.r-dept-alert-card__closure {
  font-size: 0.78rem;
  color: #71a84f;
  line-height: 1.35;
}

.r-dept-alert-card.is-done .r-dept-alert-card__closure {
  color: #697a8d;
}

.r-auth-google-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  width: 100%;
  background: #fff;
  border: 1px solid rgba(67, 89, 113, 0.2);
  color: #566a7f;
  font-weight: 600;
}

.r-auth-google-btn:hover,
.r-auth-google-btn:focus {
  background: #f8f9fa;
  border-color: rgba(67, 89, 113, 0.28);
  color: #566a7f;
}

/* Treatment result offcanvas (MOPH refer reply) */
.r-treatment-result-offcanvas {
  --bs-offcanvas-width: 100vw;
  width: 100vw;
  max-width: 100vw;
  z-index: 1095;
}

.r-treatment-result-offcanvas.show,
.r-treatment-result-offcanvas.showing {
  display: flex;
  flex-direction: column;
}

.r-treatment-result-offcanvas .offcanvas-body {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-height: 0;
  padding: 0;
  overflow: hidden;
  height: calc(100dvh - 3.5rem);
}

.r-treatment-result-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1;
  min-height: 12rem;
}

.r-treatment-result-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) min(22rem, 34vw);
  flex: 1;
  min-height: 0;
  background: #f5f5f9;
}

.r-treatment-result-form-pane {
  overflow-y: auto;
  padding: 0.75rem;
  min-height: 0;
}

.r-treatment-result-preset-panel {
  display: flex;
  flex-direction: column;
  min-height: 0;
  background: #fff;
  border-left: 1px solid var(--app-border);
}

.r-treatment-result-ai-panel {
  background: linear-gradient(180deg, rgba(105, 108, 255, 0.06) 0%, #fff 100%);
}

.r-treatment-result-ai-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  max-height: 11rem;
  overflow-y: auto;
}

.r-treatment-result-ai-btn {
  text-align: left;
  white-space: normal;
  line-height: 1.3;
  max-width: 100%;
}

.r-treatment-result-ai-btn.active {
  background: rgba(105, 108, 255, 0.12);
  border-color: #696cff;
}

.r-treatment-result-ai-instruct textarea {
  font-size: 0.82rem;
  resize: vertical;
  min-height: 2.6rem;
}

.r-treatment-result-ai-field-group {
  margin-bottom: 0.65rem;
}

.r-treatment-result-ai-field-group:last-child {
  margin-bottom: 0;
}

.r-treatment-result-ai-field-group-title {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--app-muted);
  margin-bottom: 0.35rem;
}

.r-treatment-result-ai-field-group-items {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.r-treatment-result-preset-section-label {
  font-size: 0.78rem;
  font-weight: 600;
  color: #696cff;
}

.r-treatment-result-preset-item.is-ai {
  cursor: pointer;
  border-radius: 0.5rem;
  margin: 0 0.35rem;
  padding: 0.55rem 0.35rem;
  background: linear-gradient(90deg, rgba(105, 108, 255, 0.06) 0%, transparent 100%);
  border-bottom: 1px solid rgba(67, 89, 113, 0.08);
}

.r-treatment-result-preset-item.is-ai:hover,
.r-treatment-result-preset-item.is-ai:focus-visible {
  background: rgba(105, 108, 255, 0.1);
  outline: none;
}

.r-treatment-result-preset-item.is-ai.active {
  background: rgba(105, 108, 255, 0.14);
}

.r-treatment-result-preset-ai-icon {
  flex-shrink: 0;
  width: 1.35rem;
  color: #696cff;
  margin-top: 0.1rem;
}

.r-treatment-result-preset-ai-use {
  flex-shrink: 0;
  color: #696cff;
  font-size: 1.1rem;
  line-height: 1;
  align-self: center;
}

.r-treatment-result-preset-head {
  padding: 0.85rem 1rem 0.5rem;
  border-bottom: 1px solid var(--app-border);
}

.r-treatment-result-preset-list {
  flex: 1;
  overflow-y: auto;
  padding: 0.5rem;
  min-height: 0;
}

.r-treatment-result-preset-item {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  padding: 0.55rem 0.35rem;
  border-bottom: 1px solid rgba(67, 89, 113, 0.08);
}

.r-treatment-result-preset-item:last-child {
  border-bottom: 0;
}

.r-treatment-result-preset-item-body {
  flex: 1;
  min-width: 0;
}

.r-treatment-result-preset-item-label {
  font-size: 0.84rem;
  font-weight: 600;
  margin-bottom: 0.15rem;
}

.r-treatment-result-preset-item-text {
  font-size: 0.78rem;
  color: var(--app-muted);
  white-space: pre-wrap;
  word-break: break-word;
}

.r-treatment-result-preset-actions {
  display: flex;
  gap: 0.25rem;
  flex-shrink: 0;
}

.r-treatment-result-preset-actions .btn {
  padding: 0.1rem 0.35rem;
  font-size: 0.75rem;
}

.r-treatment-result-draft-card {
  background: linear-gradient(180deg, rgba(3, 195, 236, 0.05) 0%, #fff 100%);
  border: 1px solid rgba(3, 195, 236, 0.18);
}

.r-treatment-result-draft-list {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  max-height: 12rem;
  overflow-y: auto;
}

.r-treatment-result-draft-item {
  display: flex;
  align-items: stretch;
  gap: 0.35rem;
}

.r-treatment-result-draft-item-main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  border: 1px solid var(--app-border);
  border-radius: 0.5rem;
  background: #fff;
  padding: 0.45rem 0.65rem;
  cursor: pointer;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.r-treatment-result-draft-item-main:hover {
  border-color: #03c3ec;
  box-shadow: 0 0 0 0.12rem rgba(3, 195, 236, 0.1);
}

.r-treatment-result-draft-item.is-active .r-treatment-result-draft-item-main {
  border-color: #03c3ec;
  background: rgba(3, 195, 236, 0.06);
}

.r-treatment-result-draft-item-title {
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--app-text);
  width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.r-treatment-result-draft-item-meta {
  font-size: 0.72rem;
  color: var(--app-muted);
  margin-top: 0.1rem;
}

.r-treatment-result-draft-item .btn-outline-danger {
  flex-shrink: 0;
  align-self: center;
}

.r-treatment-result-field {
  margin-bottom: 0.75rem;
}

.r-treatment-result-field textarea {
  min-height: 5.5rem;
  resize: vertical;
}

.r-treatment-result-field.is-active textarea,
.r-treatment-result-field.is-active .form-control {
  border-color: #696cff;
  box-shadow: 0 0 0 0.15rem rgba(105, 108, 255, 0.12);
}

.r-treatment-result-collapse-head {
  cursor: pointer;
}

.r-treatment-result-icd-row,
.r-treatment-result-allergy-row {
  padding: 0.65rem 0;
  border-bottom: 1px solid var(--app-border);
}

.r-treatment-result-icd-row:last-child,
.r-treatment-result-allergy-row:last-child {
  border-bottom: 0;
}

.r-treatment-result-icd-suggest {
  position: relative;
}

.r-treatment-result-icd-dropdown {
  position: absolute;
  z-index: 20;
  left: 0;
  right: 0;
  top: 100%;
  max-height: 12rem;
  overflow-y: auto;
  background: #fff;
  border: 1px solid var(--app-border);
  border-radius: 0.5rem;
  box-shadow: 0 4px 16px rgba(67, 89, 113, 0.12);
}

.r-treatment-result-icd-dropdown button {
  display: block;
  width: 100%;
  text-align: left;
  border: 0;
  background: transparent;
  padding: 0.45rem 0.65rem;
  font-size: 0.82rem;
}

.r-treatment-result-icd-dropdown button:hover {
  background: rgba(105, 108, 255, 0.08);
}

.r-treatment-result-file-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.r-treatment-result-file-tab {
  border: 1px solid var(--app-border);
  background: #fff;
  border-radius: 999px;
  padding: 0.25rem 0.65rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--app-muted);
}

.r-treatment-result-file-tab.is-active {
  background: #71dd37;
  border-color: #71dd37;
  color: #fff;
}

.r-treatment-result-summary {
  font-size: 0.84rem;
  line-height: 1.55;
  background: #f8f9fb;
}

.r-treatment-result-footer {
  background: #fff;
}

@media (max-width: 991.98px) {
  .r-treatment-result-layout {
    grid-template-columns: 1fr;
    grid-template-rows: minmax(0, 1fr) auto;
  }

  .r-treatment-result-preset-panel {
    border-left: 0;
    border-top: 1px solid var(--app-border);
    max-height: 40vh;
  }
}

.r-doctor-eval-assignee-badge.js-r-assignee-profile-open {
  cursor: pointer;
}

.r-doctor-eval-assignee-badge.js-r-assignee-profile-open:hover,
.r-doctor-eval-assignee-badge.js-r-assignee-profile-open:focus-visible {
  filter: brightness(0.96);
}

.r-user-assignee-profile-modal .modal-body {
  padding: 1.25rem;
}

.r-user-assignee-profile-modal .r-user-profile-head--modal {
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.r-user-assignee-profile-modal .r-user-profile-avatar--modal {
  width: 128px;
  height: 128px;
}

.r-user-assignee-profile-modal .r-user-profile-avatar--fallback.r-user-profile-avatar--modal {
  width: 128px;
  height: 128px;
  font-size: 2.75rem;
}

.r-user-assignee-profile-modal .r-user-profile-context-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: #8592a3;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  margin-bottom: 0.25rem;
}

.r-user-assignee-profile-modal .r-user-profile-name {
  max-width: 100%;
}

.r-user-assignee-profile-modal .r-user-profile-card {
  box-shadow: none;
  border: 0;
  padding: 0;
}

.r-doctor-eval-treatment-replied-badge {
  cursor: pointer;
}

.r-doctor-eval-treatment-replied-badge:hover,
.r-doctor-eval-treatment-replied-badge:focus-visible {
  filter: brightness(0.96);
}

.r-treatment-result-list-modal .modal-body {
  min-height: 12rem;
}

.r-treatment-result-list-table th {
  font-size: 0.75rem;
  font-weight: 600;
  white-space: nowrap;
}

.r-treatment-result-detail-field + .r-treatment-result-detail-field {
  margin-top: 0.85rem;
  padding-top: 0.85rem;
  border-top: 1px solid var(--app-border, rgba(67, 89, 113, 0.12));
}

.r-treatment-result-detail-label {
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: #8592a3;
  margin-bottom: 0.25rem;
}

.r-treatment-result-detail-value {
  font-size: 0.875rem;
  line-height: 1.55;
  color: #566a7f;
  white-space: pre-wrap;
}

.r-treatment-result-file-list a {
  font-weight: 600;
}

.r-inbox-queue-action-btn--has-count {
  position: relative;
  overflow: visible;
}

.r-action-count-badge {
  position: absolute;
  top: -0.35rem;
  right: -0.35rem;
  min-width: 1.1rem;
  height: 1.1rem;
  padding: 0 0.28rem;
  border-radius: 999px;
  background: #ff3e1d;
  color: #fff;
  font-size: 0.625rem;
  font-weight: 700;
  line-height: 1.1rem;
  text-align: center;
  box-shadow: 0 0 0 2px #fff;
  pointer-events: none;
}

.r-treatment-result-list-summary {
  font-size: 0.8125rem;
  line-height: 1.55;
  resize: vertical;
  min-height: 8rem;
  background: #f8f9fa;
}

.r-appt-search-shell {
  max-width: 960px;
  margin: 0 auto;
  padding: 0.25rem 0 1.5rem;
}

.r-appt-search-compose {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.r-appt-search-compose__input {
  border-radius: 12px;
  border-color: var(--r-line);
  min-height: 46px;
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.04);
}

.r-appt-search-compose__btn {
  border-radius: 12px;
  min-width: 46px;
  flex-shrink: 0;
}

.r-appt-search-meta {
  margin-bottom: 0.85rem;
}

.r-appt-search-meta__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.r-appt-search-print-btn {
  white-space: nowrap;
  min-width: 8.5rem;
}

.r-appt-search-print-btn.is-busy {
  pointer-events: none;
  opacity: 0.92;
}

.r-appt-search-print-btn .spinner-border-sm {
  width: 0.95rem;
  height: 0.95rem;
  border-width: 0.14em;
  vertical-align: -0.12em;
}

.r-appt-search-meta__pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.45rem 0.75rem;
  border-radius: 999px;
  background: #ecfdf5;
  color: #047857;
  font-size: 0.875rem;
  font-weight: 600;
}

.r-appt-search-results {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.r-appt-search-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  padding: 2.5rem 1rem;
  text-align: center;
  color: var(--r-muted, #697a8d);
}

.r-appt-search-empty .bx {
  font-size: 2.25rem;
  opacity: 0.55;
}

.r-appt-search-tabs {
  margin-bottom: 1rem;
}

.r-appt-search-tabs__label {
  font-size: 0.8125rem;
  font-weight: 700;
  color: #697a8d;
  margin-bottom: 0.55rem;
}

.r-appt-search-tab-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.r-appt-search-tab-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.75rem;
  border: 1px solid rgba(67, 89, 113, 0.12);
  border-radius: 999px;
  background: #fff;
  color: #384551;
  font-size: 0.8125rem;
  font-weight: 600;
  line-height: 1.35;
  transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}

.r-appt-search-tab-btn:hover {
  border-color: rgba(105, 108, 255, 0.35);
  background: rgba(105, 108, 255, 0.04);
}

.r-appt-search-tab-btn.is-active {
  border-color: #696cff;
  background: rgba(105, 108, 255, 0.1);
  color: #5f61e6;
  box-shadow: 0 0 0 1px rgba(105, 108, 255, 0.25);
}

.r-appt-search-tab-btn-label {
  white-space: nowrap;
}

.r-appt-search-tab-btn-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.35rem;
  padding: 0.05rem 0.35rem;
  border-radius: 999px;
  background: rgba(67, 89, 113, 0.08);
  color: #697a8d;
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1.3;
}

.r-appt-search-tab-btn.is-active .r-appt-search-tab-btn-count {
  background: rgba(105, 108, 255, 0.16);
  color: #5f61e6;
}

.r-appt-search-results .r-registry-ppk11-appt-card {
  height: 100%;
  padding: 0.95rem 1rem;
  border: 1px solid rgba(67, 89, 113, 0.1);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.04);
}

.r-appt-search-area-card {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  margin: 0.55rem 0 0.75rem;
  padding: 0.7rem 0.8rem;
  border-radius: 12px;
  background: rgba(105, 108, 255, 0.07);
  border: 1px solid rgba(105, 108, 255, 0.14);
}

.r-appt-search-area-card .bx {
  flex-shrink: 0;
  font-size: 1.15rem;
  line-height: 1.2;
  color: #696cff;
  margin-top: 0.1rem;
}

.r-appt-search-area-card-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: rgba(67, 89, 113, 0.72);
  margin-bottom: 0.1rem;
}

.r-appt-search-area-card-value {
  font-size: 0.875rem;
  font-weight: 700;
  line-height: 1.4;
  color: #384551;
}
