:root {
  --bg: #f7f5f0;
  --surface: rgba(255, 255, 255, 0.94);
  --surface-solid: #ffffff;
  --surface-soft: #fbfaf7;
  --border: rgba(51, 51, 51, 0.08);
  --border-strong: rgba(51, 51, 51, 0.14);
  --text: #333333;
  --text-soft: #5f5a54;
  --text-muted: #8a837a;
  --primary: #333333;
  --primary-2: #4a4540;
  --primary-3: #b0732b;
  --primary-4: #c88e4a;
  --success: #00a76e;
  --danger: #7e4c8b;
  --warning: #d39b26;
  --error: #b55f5f;
  --shadow-soft: 0 18px 40px rgba(51, 51, 51, 0.08);
  --shadow-card: 0 26px 60px rgba(51, 51, 51, 0.1);
  --shadow-hover: 0 30px 70px rgba(51, 51, 51, 0.14);
  --radius-xl: 34px;
  --radius-lg: 28px;
  --radius-md: 22px;
  --radius-sm: 16px;
  --container: 1320px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  font-family: "Open Sans", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(176, 115, 43, 0.1), transparent 24%),
    radial-gradient(circle at top right, rgba(51, 51, 51, 0.05), transparent 28%),
    linear-gradient(180deg, #f7f5f0 0%, #f4f1eb 100%);
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

.w-container {
  width: min(calc(100% - 32px), var(--container));
  margin: 0 auto;
}
.site-header {
  position: relative;
  z-index: 200;
  padding: 18px 24px 20px;
}

.navbar-wrapper {
  width: 100%;
}

.main-navbar {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 4px;
}

.navbar-shell {
  border-radius: 28px;
  border: 1px solid rgba(255, 255, 255, 0.8);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 14px 40px rgba(51, 51, 51, 0.06);
  backdrop-filter: blur(16px);
}

.navbar-container {
  min-height: 92px;
  padding: 0 34px;
  display: flex;
  align-items: center;
  gap: 26px;
}

/* =========================================================
   5) NAVBAR BRAND / MOBILE MENU BUTTON
   ========================================================= */
.navbar-brand {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
}

.navbar-brand img {
  width: 128px;
  height: auto;
  object-fit: contain;
}

.menu-button {
  display: none;
  width: 48px;
  height: 48px;
  border: 1px solid var(--border);
  border-radius: 16px;
  color: var(--text);
  background: linear-gradient(180deg, #ffffff, #f7f4ef);
  box-shadow: 0 8px 22px rgba(51, 51, 51, 0.06);
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    color 0.2s ease;
}

.menu-button:hover {
  transform: translateY(-1px);
  color: var(--primary-3);
  box-shadow: 0 12px 24px rgba(51, 51, 51, 0.1);
}

/* =========================================================
   6) NAVBAR LAYOUT / LINKS
   ========================================================= */
.navbar-right {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.nav-center {
  display: flex;
  align-items: center;
  gap: 34px;
  margin: 0 auto;
}

.nav-link,
.dropdown-toggle,
.user-trigger {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #333333;
  font-size: 16px;
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  transition: color 0.2s ease, opacity 0.2s ease;
}

.nav-link:hover,
.dropdown-toggle:hover,
.user-trigger:hover,
.nav-link:focus-visible,
.dropdown-toggle:focus-visible,
.user-trigger:focus-visible {
  color: var(--primary-3);
  outline: none;
}

.join-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 24px;
  border-radius: 999px;
  text-decoration: none;
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.01em;
  background: linear-gradient(135deg, #333333, #4a4540);
  box-shadow:
    0 14px 24px rgba(51, 51, 51, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  transition:
    transform 0.22s ease,
    box-shadow 0.22s ease,
    filter 0.22s ease;
}

.join-btn:hover,
.join-btn:focus-visible {
  transform: translateY(-1px);
  filter: brightness(1.05);
  box-shadow:
    0 18px 30px rgba(51, 51, 51, 0.2),
    0 10px 20px rgba(176, 115, 43, 0.12);
  outline: none;
}

/* =========================================================
   7) DROPDOWNS
   ========================================================= */
.dropdown,
.user-dropdown-container {
  position: relative;
}

.dropdown-content,
.user-dropdown-menu {
  position: absolute;
  top: calc(100% + 16px);
  min-width: 240px;
  margin: 0;
  padding: 12px 0;
  list-style: none;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.97);
  box-shadow: 0 24px 50px rgba(51, 51, 51, 0.12);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition:
    opacity 0.22s ease,
    transform 0.22s ease,
    visibility 0.22s ease;
  z-index: 50;
}

.dropdown-content {
  left: 0;
}

.user-dropdown-menu {
  right: 0;
}

.dropdown-content a,
.user-dropdown-menu a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 18px;
  text-decoration: none;
  color: #333333;
  font-size: 15px;
  font-weight: 600;
  white-space: nowrap;
  transition: background 0.2s ease, color 0.2s ease;
}

.dropdown-content a:hover,
.user-dropdown-menu a:hover,
.dropdown-content a:focus-visible,
.user-dropdown-menu a:focus-visible {
  background: #f7f4ef;
  color: var(--primary-3);
  outline: none;
}

.user-dropdown-menu .divider {
  height: 1px;
  margin: 8px 14px;
  background: rgba(51, 51, 51, 0.08);
}

.dropdown:hover .dropdown-content,
.dropdown:focus-within .dropdown-content,
.dropdown.is-open .dropdown-content,
.user-dropdown-container:hover .user-dropdown-menu,
.user-dropdown-container:focus-within .user-dropdown-menu,
.user-dropdown-container.is-open .user-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.hello-label {
  color: var(--text-muted);
  font-weight: 400;
}

#username {
  color: #333333;
  font-weight: 700;
}

.dropdown-icon {
  font-size: 13px;
  color: var(--text-muted);
  transition: transform 0.2s ease;
}

.dropdown.is-open .dropdown-icon,
.user-dropdown-container.is-open .dropdown-icon {
  transform: rotate(180deg);
}

.prescriptions-section {
  padding: 56px 20px 72px;
}

.prescriptions-shell {
  width: min(calc(100% - 32px), var(--container));
  margin: 0 auto;
}

.prescriptions-panel {
  padding: 36px;
  border: 1px solid rgba(255, 255, 255, 0.84);
  border-radius: var(--radius-xl);
  background: rgba(255, 255, 255, 0.72);
  box-shadow: var(--shadow-card);
  backdrop-filter: blur(16px);
}

.page-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px;
}

.section-heading {
  max-width: 760px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 14px;
  border-radius: 999px;
  background: rgba(176, 115, 43, 0.08);
  color: var(--primary-3);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.section-heading h1 {
  margin: 14px 0 12px;
  font-family: "Montserrat", sans-serif;
  font-size: clamp(28px, 4vw, 40px);
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.section-heading p {
  margin: 0;
  color: var(--text-soft);
  font-size: 15px;
  line-height: 1.7;
}

.primary-btn,
.secondary-btn,
.btn-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 22px;
  border-radius: 18px;
  border: 1px solid transparent;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.01em;
  transition: all 0.2s ease;
}

.primary-btn {
  color: #fff;
  background: linear-gradient(135deg, var(--primary-3), var(--primary-4));
  box-shadow: 0 18px 34px rgba(176, 115, 43, 0.26);
}

.primary-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 22px 40px rgba(176, 115, 43, 0.32);
}

.secondary-btn {
  color: var(--text);
  border-color: var(--border);
  background: rgba(247, 245, 240, 0.9);
}

.secondary-btn:hover {
  border-color: rgba(176, 115, 43, 0.24);
  color: var(--primary-3);
  background: rgba(176, 115, 43, 0.08);
}

.filter-card,
.table-card {
  border: 1px solid rgba(51, 51, 51, 0.08);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.88);
  box-shadow: var(--shadow-soft);
}

.filter-card {
  display: grid;
  gap: 18px;
  padding: 24px;
  margin-bottom: 24px;
}

.filter-grid {
  display: grid;
  grid-template-columns: 170px 170px 170px minmax(280px, 1fr);
  gap: 16px;
}

.field {
  display: grid;
  gap: 9px;
}

.field span {
  color: var(--text-soft);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.search-field {
  min-width: 0;
}

.pt-input {
  width: 80%;
  min-height: 52px;
  padding: 0 16px;
  border: 1px solid var(--border);
  border-radius: 18px;
  outline: none;
  background: #fff;
  color: var(--text);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.pt-input:focus {
  border-color: rgba(176, 115, 43, 0.34);
  box-shadow: 0 0 0 4px rgba(176, 115, 43, 0.1);
}

.date-input {
  position: relative;
}

.date-input i {
  position: absolute;
  top: 50%;
  left: 16px;
  transform: translateY(-50%);
  color: var(--text-muted);
  pointer-events: none;
}

.date-input .pt-input {
  padding-left: 46px;
}

.filter-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  flex-wrap: wrap;
}

.table-card {
  overflow: hidden;
}

.table-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 24px 24px 12px;
}

.table-card-head h2 {
  margin: 0 0 6px;
  font-family: "Montserrat", sans-serif;
  font-size: 22px;
  letter-spacing: -0.02em;
}

.table-card-head p {
  margin: 0;
  color: var(--text-soft);
  font-size: 14px;
}

.pt-loading,
.pt-empty {
  padding: 18px 24px;
  font-size: 14px;
  color: var(--text-soft);
}

.pt-empty {
  display: none;
  border-top: 1px solid rgba(51, 51, 51, 0.06);
}

.table-scroll {
  overflow-x: auto;
  padding: 0 16px 18px;
}

.pt-table {
  width: 100%;
  min-width: 960px;
  border-collapse: separate;
  border-spacing: 0;
}

.pt-table thead th {
  padding: 16px 18px;
  border-bottom: 1px solid rgba(51, 51, 51, 0.08);
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  background: rgba(247, 245, 240, 0.86);
}

.pt-table thead th:first-child {
  border-top-left-radius: 18px;
}

.pt-table thead th:last-child {
  border-top-right-radius: 18px;
}

.pt-table tbody tr {
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.pt-table tbody tr:hover {
  background: rgba(176, 115, 43, 0.04);
}

.pt-table td {
  padding: 18px;
  border-bottom: 1px solid rgba(51, 51, 51, 0.06);
  color: var(--text);
  font-size: 14px;
  vertical-align: middle;
}

.pt-table tbody tr:last-child td {
  border-bottom: none;
}

.btn-chip {
  min-height: 40px;
  padding: 0 16px;
  border-color: rgba(176, 115, 43, 0.18);
  background: rgba(176, 115, 43, 0.08);
  color: var(--primary-3);
  box-shadow: none;
}

.btn-chip:hover {
  background: rgba(176, 115, 43, 0.14);
}

.pt-status {
  display: inline-flex;
  align-items: center;
  padding: 7px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  text-transform: capitalize;
  letter-spacing: 0.01em;
}

.pt-status-issued,
.pt-status-active {
  background: rgba(0, 167, 110, 0.12);
  color: #0d6e4d;
}

.pt-status-dispensed,
.pt-status-fully_dispensed {
  background: rgba(126, 76, 139, 0.12);
  color: #7e4c8b;
}

.pt-status-cancelled {
  background: rgba(181, 95, 95, 0.12);
  color: #9e4f4f;
}

.pt-status-expired {
  background: rgba(95, 90, 84, 0.12);
  color: #5f5a54;
}

.rx-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(51, 51, 51, 0.42);
  backdrop-filter: blur(6px);
}

.rx-modal {
  width: min(980px, 100%);
  max-height: 90vh;
  overflow: auto;
  border: 1px solid rgba(255, 255, 255, 0.84);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.97);
  box-shadow: var(--shadow-hover);
}

.rx-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 24px;
  border-bottom: 1px solid rgba(51, 51, 51, 0.08);
}

.rx-modal-header h3 {
  margin: 0;
  font-family: "Montserrat", sans-serif;
  font-size: 24px;
  letter-spacing: -0.02em;
}

.rx-modal-close {
  width: 46px;
  height: 46px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: rgba(247, 245, 240, 0.9);
  color: var(--text);
  font-size: 28px;
  line-height: 1;
}

.rx-modal-close:hover {
  color: var(--primary-3);
  border-color: rgba(176, 115, 43, 0.24);
}

.rx-modal-body {
  padding: 24px;
}

.rx-grid {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 12px 18px;
  margin-bottom: 24px;
}

.rx-grid div:nth-child(odd) {
  color: var(--text-soft);
  font-weight: 700;
}

.rx-modal-body h4 {
  margin: 24px 0 12px;
  font-family: "Montserrat", sans-serif;
  font-size: 18px;
}

.rx-items-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  overflow: hidden;
}

.rx-items-table th,
.rx-items-table td {
  padding: 12px 14px;
  border-bottom: 1px solid rgba(51, 51, 51, 0.08);
  text-align: left;
  font-size: 14px;
}

.rx-items-table th {
  background: rgba(247, 245, 240, 0.86);
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.rx-items-table tr:last-child td {
  border-bottom: none;
}

.rx-footer {
  padding: 18px 24px 28px;
}

.rx-footer-shell {
  position: relative;
  max-width: var(--container);
  margin: 0 auto;
  padding: 36px 36px 22px;
  overflow: hidden;
  border-radius: 34px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(135deg, rgba(51, 51, 51, 0.98), rgba(0, 0, 0, 0.96));
  box-shadow:
    0 28px 60px rgba(51, 51, 51, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.rx-footer-shell::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background:
    radial-gradient(circle at 12% 18%, rgba(176, 115, 43, 0.12), transparent 24%),
    radial-gradient(circle at 88% 14%, rgba(255, 255, 255, 0.08), transparent 18%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02) 36%, rgba(255, 255, 255, 0.01));
}

.rx-footer-shell::after {
  content: "";
  position: absolute;
  right: -80px;
  bottom: -80px;
  width: 240px;
  height: 240px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(176, 115, 43, 0.14), transparent 68%);
  pointer-events: none;
}

.rx-footer-top,
.rx-footer-bottom {
  position: relative;
  z-index: 1;
}

.rx-footer-top {
  display: grid;
  grid-template-columns: minmax(280px, 1.1fr) minmax(0, 2fr);
  gap: 34px;
  padding-bottom: 28px;
}

.rx-footer-logo-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 154px;
  min-height: 76px;
  padding: 16px 20px;
  background: #ffffff;
}

.rx-footer-logo {
  max-width: 118px;
  height: auto;
}

.rx-footer-description {
  max-width: 390px;
  margin: 24px 0 28px;
  color: rgba(240, 236, 230, 0.88);
  font-size: 15px;
  line-height: 1.85;
}

.rx-footer-emergency {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.04));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.rx-footer-emergency-icon {
  width: 52px;
  height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  color: #b0732b;
  background: linear-gradient(180deg, rgba(176, 115, 43, 0.18), rgba(176, 115, 43, 0.12));
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.rx-footer-emergency-label {
  display: block;
  margin-bottom: 4px;
  color: rgba(255, 255, 255, 0.68);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.rx-footer-emergency-number {
  text-decoration: none;
  color: #ffffff;
  font-size: 1.05rem;
  font-weight: 700;
}

.rx-footer-links {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 30px;
}

.rx-footer-column h4 {
  margin: 8px 0 18px;
  padding-bottom: 14px;
  color: #ffffff;
  font-family: "Montserrat", sans-serif;
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1.2;
  position: relative;
}

.rx-footer-column h4::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 46px;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(176, 115, 43, 0.95), rgba(176, 115, 43, 0));
}

.rx-footer-column a,
.rx-contact-item a {
  text-decoration: none;
  color: rgba(240, 236, 230, 0.9);
  font-size: 15px;
  line-height: 1.8;
  transition: color 0.2s ease, opacity 0.2s ease;
}

.rx-footer-column a:hover,
.rx-contact-item a:hover,
.rx-footer-column a:focus-visible,
.rx-contact-item a:focus-visible {
  color: #b0732b;
  outline: none;
}

.rx-footer-column:not(.rx-footer-contact):not(.rx-footer-form-col) {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.rx-contact-item {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 12px;
  align-items: start;
}

.rx-contact-item + .rx-contact-item {
  margin-top: 14px;
}

.rx-contact-icon {
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  color: #b0732b;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.rx-contact-phones {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.rx-footer-form {
  display: grid;
  gap: 14px;
  max-width: 240px;
}

.rx-footer-input {
  height: 52px;
  width: 100%;
  padding: 0 18px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #ffffff;
  background: rgba(255, 255, 255, 0.07);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.rx-footer-input::placeholder {
  color: rgba(240, 236, 230, 0.6);
}

.rx-footer-submit {
  height: 50px;
  border: 0;
  border-radius: 999px;
  color: #ffffff;
  font-size: 1rem;
  font-weight: 700;
  background: linear-gradient(135deg, #333333, #333333);
  box-shadow: 0 14px 22px rgba(0, 0, 0, 0.22);
  transition: transform 0.22s ease, box-shadow 0.22s ease, filter 0.22s ease;
}

.rx-footer-submit:hover,
.rx-footer-submit:focus-visible {
  transform: translateY(-1px);
  filter: brightness(1.05);
  box-shadow: 0 18px 30px rgba(0, 0, 0, 0.26);
  outline: none;
}

.footer-form-feedback {
  min-height: 18px;
  margin: 0;
  color: rgba(176, 115, 43, 0.96);
  font-size: 0.85rem;
  line-height: 1.5;
}

.rx-footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.rx-footer-copy {
  margin: 0;
  color: rgba(240, 236, 230, 0.74);
  font-size: 0.95rem;
}

.rx-footer-socials {
  display: flex;
  align-items: center;
  gap: 10px;
}

.rx-social-link {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  text-decoration: none;
  color: #f0ece6;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: transform 0.22s ease, background 0.22s ease, color 0.22s ease;
}

.rx-social-link:hover,
.rx-social-link:focus-visible {
  transform: translateY(-2px);
  color: #b0732b;
  background: rgba(255, 255, 255, 0.12);
  outline: none;
}

@media (max-width: 1180px) {
  .filter-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .flex-box.space-between {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 991px) {
  .site-header,
  .footer {
    padding-left: 14px;
    padding-right: 14px;
  }

  .navbar-shell,
  .prescriptions-shell,
  .footer .w-container {
    width: min(calc(100% - 8px), var(--container));
  }

  .navbar-container {
    padding: 14px 16px;
    flex-wrap: wrap;
    min-height: auto;
  }

  .menu-button {
    display: inline-grid;
    place-items: center;
    margin-left: auto;
  }

  .navbar-right {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
    padding-top: 12px;
  }

  .navbar-right.open {
    display: flex;
  }

  .nav-center {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    margin-left: 0;
  }

  .nav-link,
  .dropdown-toggle,
  .user-trigger {
    width: 100%;
    justify-content: space-between;
    min-height: 50px;
  }

  .dropdown-content,
  .user-dropdown-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    display: none;
    margin-top: 8px;
    box-shadow: none;
  }

  .dropdown-content.show,
  .user-dropdown-menu.show {
    display: block;
  }

  .prescriptions-panel {
    padding: 26px 20px;
  }

  .page-head {
    flex-direction: column;
    align-items: stretch;
  }

  .filter-grid {
    grid-template-columns: 1fr;
  }

  .filter-actions {
    justify-content: stretch;
  }

  .filter-actions .primary-btn,
  .filter-actions .secondary-btn,
  .page-head .primary-btn {
    width: 100%;
  }

  .rx-grid {
    grid-template-columns: 1fr;
  }

  .emergency-wrapper {
    flex-direction: column;
    text-align: center;
    margin-bottom: -20px;
  }
}

@media (max-width: 767px) {
  .prescriptions-section {
    padding: 36px 14px 56px;
  }

  .prescriptions-panel {
    border-radius: 26px;
  }

  .section-heading h1 {
    font-size: 30px;
  }

  .table-card-head,
  .pt-loading,
  .pt-empty,
  .rx-modal-header,
  .rx-modal-body {
    padding-left: 18px;
    padding-right: 18px;
  }

  .table-scroll {
    padding-left: 10px;
    padding-right: 10px;
  }

  .pt-table td,
  .pt-table th,
  .rx-items-table td,
  .rx-items-table th {
    padding-left: 12px;
    padding-right: 12px;
  }

  .flex-box.space-between {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .footer::before {
    inset: 96px 12px 0;
  }
}
