body.pharmacy-hub-open {
  overflow: hidden !important;
}

button.department .nfmr-card-tag {
  display: none !important;
}

#rifd-pharmacy-hub[hidden] {
  display: none !important;
}

#rifd-pharmacy-hub {
  position: fixed;
  inset: 0;
  z-index: 8990;
  overflow: auto;
  color: #f7fbff;
  background:
    radial-gradient(circle at 18% 15%, rgba(26, 159, 255, .18), transparent 34rem),
    radial-gradient(circle at 82% 84%, rgba(34, 211, 169, .13), transparent 30rem),
    linear-gradient(145deg, #06143d 0%, #071c50 48%, #04102f 100%);
  font-family: "Tajawal", "IBM Plex Sans Arabic", Tahoma, "Segoe UI", Arial, sans-serif;
}

.pharmacy-hub-topbar {
  position: sticky;
  top: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 78px;
  padding: 0 5vw;
  border-bottom: 1px solid rgba(255, 255, 255, .10);
  background: rgba(4, 16, 47, .78);
  backdrop-filter: blur(18px);
}

.pharmacy-hub-brand,
.pharmacy-hub-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.pharmacy-hub-brand-mark {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(97, 201, 255, .35);
  border-radius: 14px;
  color: #eaf9ff;
  background: linear-gradient(145deg, rgba(31, 159, 255, .30), rgba(22, 211, 168, .18));
  box-shadow: inset 0 1px rgba(255, 255, 255, .16);
  font-size: 18px;
  font-weight: 900;
}

.pharmacy-hub-brand strong,
.pharmacy-hub-brand small {
  display: block;
}

.pharmacy-hub-brand strong {
  font-size: 15px;
}

.pharmacy-hub-brand small {
  margin-top: 4px;
  color: rgba(226, 238, 255, .62);
  font-size: 10px;
  letter-spacing: .08em;
}

.pharmacy-hub-close,
.pharmacy-hub-back {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  height: 42px;
  padding: 0 15px;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 13px;
  color: #f8fbff;
  background: rgba(255, 255, 255, .07);
  cursor: pointer;
  font: 800 13px/1 Tahoma, "Segoe UI", Arial, sans-serif;
}

.pharmacy-hub-back {
  gap: 8px;
}

.pharmacy-hub-back > span:first-child {
  font-size: 18px;
  line-height: 1;
}

.pharmacy-hub-close:hover,
.pharmacy-hub-back:hover {
  border-color: rgba(89, 200, 255, .48);
  background: rgba(89, 200, 255, .13);
}

.pharmacy-hub-main {
  width: min(1160px, 90vw);
  margin: 0 auto;
  padding: clamp(56px, 8vh, 90px) 0 70px;
}

.pharmacy-hub-heading {
  max-width: 780px;
  margin-bottom: 44px;
}

.pharmacy-hub-kicker {
  display: inline-flex;
  align-items: center;
  min-height: 29px;
  padding: 0 12px;
  border: 1px solid rgba(70, 196, 255, .24);
  border-radius: 999px;
  color: #7de2c8;
  background: rgba(18, 199, 157, .08);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.pharmacy-hub-heading h1 {
  margin: 18px 0 12px;
  font-size: clamp(37px, 5.2vw, 72px);
  line-height: 1.08;
  letter-spacing: -.04em;
}

.pharmacy-hub-heading p {
  max-width: 670px;
  margin: 0;
  color: rgba(226, 238, 255, .70);
  font-size: clamp(14px, 1.5vw, 18px);
  line-height: 1.9;
}

.pharmacy-hub-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.pharmacy-hub-card {
  --pharmacy-card-accent: #33d6a6;
  --pharmacy-card-icon: url("/assets/icons/departments/pill.svg");
  --pharmacy-card-position: 50% 44%;

  isolation: isolate;
  position: relative;
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) 36px;
  align-items: center;
  column-gap: 8px;
  row-gap: 0;
  min-height: 248px;
  padding: 54px 20px 22px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .34);
  border-radius: 24px;
  color: #fff;
  text-align: start;
  background:
    linear-gradient(
      132deg,
      rgba(27, 58, 107, .96) 0%,
      rgba(27, 58, 107, .86) 55%,
      rgba(51, 214, 166, .68) 145%
    ),
    url("/hospital.jpeg") var(--pharmacy-card-position) / cover no-repeat;
  box-shadow:
    0 14px 28px rgba(7, 23, 80, .18),
    inset 0 1px 0 rgba(255, 255, 255, .16);
  cursor: pointer;
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease;
}

.pharmacy-hub-card::before,
.pharmacy-hub-card::after {
  display: none;
}

.pharmacy-hub-card:hover,
.pharmacy-hub-card:focus-visible {
  z-index: 2;
  border-color: rgba(51, 214, 166, .72);
  outline: none;
  box-shadow:
    0 18px 36px rgba(7, 23, 80, .26),
    0 0 0 3px rgba(51, 214, 166, .13);
  transform: translateY(-4px);
}

.pharmacy-hub-card.nfmr {
  --pharmacy-card-accent: #e8b84b;
  --pharmacy-card-icon: url("/assets/icons/departments/pill.svg");
  --pharmacy-card-position: 62% 44%;
}

.pharmacy-hub-card.roster {
  --pharmacy-card-accent: #33d6a6;
  --pharmacy-card-icon: url("/assets/icons/manager/calendar-days.svg");
  --pharmacy-card-position: 34% 44%;
}

.pharmacy-hub-card.narcotic-group {
  --pharmacy-card-accent: #4aa6d9;
  --pharmacy-card-icon: url("/assets/icons/departments/shield-check.svg");
  --pharmacy-card-position: 78% 44%;
}

.pharmacy-hub-card.zero-list {
  --pharmacy-card-accent: #ff6b6b;
  --pharmacy-card-icon: url("/assets/icons/pharmacy/zero-list.svg");
  --pharmacy-card-position: 20% 48%;
}

.pharmacy-hub-card.pharmacy-requisitions {
  --pharmacy-card-accent: #7c65d5;
  --pharmacy-card-icon: url("/assets/icons/departments/pill.svg");
  --pharmacy-card-position: 70% 44%;
}

.pharmacy-hub-card.requisition-opd {
  --pharmacy-card-accent: #7c65d5;
  --pharmacy-card-icon: url("/assets/icons/departments/pill.svg");
  --pharmacy-card-position: 70% 44%;
}

.pharmacy-hub-card.requisition-er {
  --pharmacy-card-accent: #e86f6f;
  --pharmacy-card-icon: url("/assets/icons/departments/ambulance.svg");
  --pharmacy-card-position: 28% 44%;
}

.pharmacy-hub-card.requisition-centers,
.pharmacy-hub-card.center-bathna,
.pharmacy-hub-card.center-mushairif,
.pharmacy-hub-card.center-hay-khalid,
.pharmacy-hub-card.center-sumairi {
  --pharmacy-card-accent: #33d6a6;
  --pharmacy-card-icon: url("/assets/icons/manager/layout-grid.svg");
}
.pharmacy-hub-card.requisition-centers { --pharmacy-card-position: 44% 44%; }
.pharmacy-hub-card.center-bathna { --pharmacy-card-position: 18% 48%; }
.pharmacy-hub-card.center-mushairif { --pharmacy-card-position: 38% 48%; }
.pharmacy-hub-card.center-hay-khalid { --pharmacy-card-position: 62% 48%; }
.pharmacy-hub-card.center-sumairi { --pharmacy-card-position: 82% 48%; }

.pharmacy-hub-card.narcotic-main {
  --pharmacy-card-accent: #4aa6d9;
  --pharmacy-card-icon: url("/assets/icons/departments/pill.svg");
  --pharmacy-card-position: 62% 44%;
}

.pharmacy-hub-card.narcotic-opd {
  --pharmacy-card-accent: #e8b84b;
  --pharmacy-card-icon: url("/assets/icons/manager/layout-grid.svg");
  --pharmacy-card-position: 44% 44%;
}

.pharmacy-hub-card.narcotic-er {
  --pharmacy-card-accent: #e86f6f;
  --pharmacy-card-icon: url("/assets/icons/departments/ambulance.svg");
  --pharmacy-card-position: 28% 44%;
}

.pharmacy-hub-number {
  position: absolute;
  top: 16px;
  right: 16px;
  left: auto;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 39px;
  min-height: 25px;
  padding: 4px 9px;
  border-radius: 999px;
  color: #33d6a6;
  background: #1b3a6b;
  box-shadow: 0 4px 12px rgba(5, 18, 53, .22);
  font-family: "IBM Plex Sans Arabic", "Tajawal", Arial, sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  line-height: 1;
}

.pharmacy-hub-icon,
.pharmacy-hub-card-copy,
.pharmacy-hub-arrow {
  position: relative;
  z-index: 1;
}

.pharmacy-hub-icon {
  display: grid;
  place-items: center;
  width: 82px;
  height: 82px;
  border: 1px solid rgba(255, 255, 255, .19);
  border-radius: 24px;
  color: #fff;
  background: rgba(255, 255, 255, .10);
  box-shadow: inset 0 1px rgba(255, 255, 255, .14);
  font-size: 25px;
  font-weight: 900;
}

.pharmacy-hub-card .pharmacy-hub-icon {
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 12px;
  color: transparent;
  background: var(--pharmacy-card-accent);
  box-shadow: 0 6px 16px rgba(5, 18, 53, .24);
  font-size: 0;
}

.pharmacy-hub-card .pharmacy-hub-icon::before {
  content: "";
  display: block;
  width: 25px;
  height: 25px;
  background-color: #fff;
  -webkit-mask: var(--pharmacy-card-icon) center / contain no-repeat;
  mask: var(--pharmacy-card-icon) center / contain no-repeat;
}

.pharmacy-hub-card .pharmacy-hub-icon > b,
.pharmacy-hub-card .pharmacy-hub-icon > small {
  display: none;
}

.pharmacy-hub-card-copy {
  min-width: 0;
  align-self: center;
}

.pharmacy-hub-card-copy small,
.pharmacy-hub-card-copy strong,
.pharmacy-hub-card-copy span {
  display: block;
}

.pharmacy-hub-card-copy small {
  color: rgba(255, 255, 255, .74);
  font-size: 10px;
  font-weight: 500;
  line-height: 1.45;
}

.pharmacy-hub-card-copy strong {
  margin-top: 6px;
  color: #fff;
  font-size: clamp(17px, 1.55vw, 20px);
  font-weight: 800;
  line-height: 1.35;
  text-shadow: 0 2px 10px rgba(5, 18, 53, .24);
}

.pharmacy-hub-card-copy span {
  margin-top: 8px;
  color: rgba(255, 255, 255, .70);
  font-size: 11px;
  line-height: 1.65;
}

.pharmacy-hub-arrow {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 12px;
  color: #fff;
  background: rgba(255, 255, 255, .12);
  font-size: 18px;
  font-weight: 800;
}

.pharmacy-roster-placeholder {
  display: grid;
  place-items: center;
  min-height: 430px;
  padding: 50px 28px;
  border: 1px solid rgba(255, 255, 255, .13);
  border-radius: 32px;
  text-align: center;
  background: rgba(255, 255, 255, .065);
  box-shadow: inset 0 1px rgba(255, 255, 255, .12);
}

.pharmacy-roster-placeholder .pharmacy-hub-icon {
  width: 98px;
  height: 98px;
  margin-bottom: 22px;
  color: #85efd3;
  font-size: 27px;
}

.pharmacy-roster-placeholder h2 {
  margin: 0 0 12px;
  font-size: clamp(28px, 4vw, 48px);
}

.pharmacy-roster-placeholder p {
  max-width: 560px;
  margin: 0;
  color: rgba(226, 238, 255, .68);
  font-size: 15px;
  line-height: 1.9;
}

@media (max-width: 1020px) {
  .pharmacy-hub-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
  }
}

@media (max-width: 650px) {
  .pharmacy-hub-topbar {
    min-height: 68px;
    padding: 0 18px;
  }

  .pharmacy-hub-brand small {
    display: none;
  }

  .pharmacy-hub-main {
    width: min(100% - 24px, 620px);
    padding-top: 38px;
  }

  .pharmacy-hub-heading {
    margin-bottom: 28px;
  }

  .pharmacy-hub-grid {
    grid-template-columns: 1fr;
    gap: 13px;
  }

  .pharmacy-hub-card {
    min-height: 210px;
    padding: 50px 17px 17px;
    border-radius: 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .pharmacy-hub-card {
    transition: none;
  }
}
