@import url("https://fonts.googleapis.com/css2?family=Nunito:ital,wght@0,200..1000;1,200..1000&display=swap");

:root {
  --light-green: #e8f4f0;
  --cream: #fff7ee;
  --light-mehron: #c3263f;
  --dark-mehron: #9c2941;
  --light-grey: #f2f2f2;
  --dark-blue: #0a143f;
  --dark-blue-2: #0a143fd5;
  --light-black: #444;
  --box-shadow: 0px 5px 20px rgba(0, 0, 0, 0.1);
}

/* ===== Chrome, Edge, Safari ===== */
::-webkit-scrollbar {
  width: 12px;
  /* scrollbar width */
}

::-webkit-scrollbar-track {
  background: transparent;
  /* transparent track */
  border-radius: 10px;
  /* rounded track */
}

::-webkit-scrollbar-thumb {
  background: #888;
  /* thumb color */
  border-radius: 10px;
  /* rounded edges */
  border: 3px solid transparent;
  /* side padding effect */
  background-clip: content-box;
}

::-webkit-scrollbar-thumb:hover {
  background: #555;
  background-clip: content-box;
}

/* ===== Firefox ===== */
* {
  scrollbar-width: thin;
  /* "auto" or "thin" */
  scrollbar-color: #888 transparent;
  /* thumb color | track color */
}

*::-webkit-scrollbar-thumb:hover {
  background: #555;
}

/* ===== Optional smooth scrolling ===== */
html {
  scroll-behavior: smooth;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: "Nunito", sans-serif;
  /* font-weight: 500; */
}

body {
  background-color: #f2f2f2;
}

/* Base Typography Utility Styles (Desktop Defaults) */
.fs-10 {
  font-size: 10px;
}

.fs-12 {
  font-size: 12px;
}

.fs-14 {
  font-size: 14px;
}

.fs-16 {
  font-size: 16px;
}

.fs-18 {
  font-size: 18px;
}

.fs-20 {
  font-size: 20px;
}

.fs-24 {
  font-size: 24px;
}

.fs-28 {
  font-size: 28px;
}

.fs-32 {
  font-size: 32px;
}

.fs-40 {
  font-size: 40px;
}

.fs-48 {
  font-size: 48px;
}

/* Font Weight Classes */
.fw-light {
  font-weight: 300;
}

.fw-normal {
  font-weight: 400;
}

.fw-medium {
  font-weight: 500;
}

.fw-semibold {
  font-weight: 600;
}

.fw-bold {
  font-weight: 700;
}

.fw-extrabold {
  font-weight: 800;
}

/* Line Height Helpers */
.lh-tight {
  line-height: 1.2;
}

.lh-normal {
  line-height: 1.5;
}

.lh-loose {
  line-height: 1.8;
}

/* Text Alignment & Case */
.text-uppercase {
  text-transform: uppercase;
}

.text-lowercase {
  text-transform: lowercase;
}

.text-capitalize {
  text-transform: capitalize;
}

.text-muted {
  color: #6c757d;
}

/* Heading Classes */
h1,
.h1 {
  font-size: 40px;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 20px;
}

h2,
.h2 {
  font-size: 32px;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 16px;
}

h3,
.h3 {
  font-size: 28px;
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 14px;
}

h4,
.h4 {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 12px;
}

h5,
.h5 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 10px;
}

h6,
.h6 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 8px;
}

.material-symbols-outlined {
  font-size: 20px;
  font-weight: 300;
  color: #999;
  vertical-align: middle;
  cursor: pointer;
}

.material-symbols-outlined.white {
  color: white;
}

/* ------------------navbar style------------------ */

.menu-icon .material-symbols-outlined {
  font-size: 22px;
  color: #fff;
}

.navbar {
  position: sticky;
  top: 20px;
  /* margin: 0 auto; */
  width: calc(100% - 10px);
  max-width: 1100px;
  background-color: var(--dark-blue);
  border-radius: 999px;
  padding: 10px 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: var(--box-shadow);
  /* z-index: 1050; */
  z-index: 1045;
  /* higher than overlay and drawer */
  /* margin-top: 20px; */
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 25px;
}

.nav-links a {
  text-decoration: none;
  color: white;
  font-weight: 500;
}

.brand-logo {
  width: 135px;
}

.menu-icon {
  display: none;
}

/* Drawer */
.drawer {
  position: fixed;
  top: 105px;
  right: 20px;
  background-color: #fff;
  border-radius: 25px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  padding: 20px 5px;
  transform: translateX(120%);
  transition: all 0.3s ease;
  z-index: 1040;
  /* just below navbar */
}

.scroll-container {
  width: 220px;
  height: 400px;
  overflow: auto;
  padding: 10px;
  margin-top: 20px;
}

.drawer.open {
  transform: translateX(0);
}

.drawer .close-btn {
  position: absolute;
  top: 10px;
  right: 15px;
  /* font-size: 24px; */
  cursor: pointer;
}

.drawer nav a,
.dropdown-toggle {
  display: block;
  padding: 7px 15px;
  border-radius: 6px;
  margin: 0;
  font-size: 16px;
  color: black;
  text-decoration: none;
  font-weight: 500;
  cursor: pointer;
}

.dropdown-item:active ,
.dropdown-item.active {
  background-color: var(--light-mehron);
  color: white !important;
}

.drawer nav a:hover,
.dropdown-toggle:hover {
  background-color: var(--light-grey);
}

.dropdown-arrow {
  transition: transform 0.3s ease-in-out;
}

.dropdown-content {
  max-height: 0;
  overflow: hidden;
  transition:
    max-height 0.3s ease,
    padding 0.3s ease;
  padding-left: 16px;
}

/* Optional overlay behind drawer */
.overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(5px);
  z-index: 1030;
  /* behind both drawer and navbar */
  display: none;
}

.overlay.show {
  display: block;
}

/* ------------------navbar style end------------------ */

.page-container {
  display: flex;
  flex-direction: column;
  justify-content: start;
  /* justify-content: space-between; */
  align-items: center;
  min-height: 100svh;
  gap: 20px;
}

button,
.button {
  font-size: 14px;
  padding: 0.7rem 1.4rem;
  background-color: var(--light-mehron);
  color: white;
  border: none;
  border-radius: 8px;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.3s ease;
  display: inline-flex;
  gap: 8px;
  justify-content: center;
}

button span.material-symbols-outlined,
.button span.material-symbols-outlined {
  color: white;
}

button.small,
.button.small {
  padding: 0.5rem 0.8rem;
  font-size: 13px;
  font-weight: 500;
}

button.small span.material-symbols-outlined,
.button.small span.material-symbols-outlined {
  font-size: 16px;
  color: white;
}

button:hover,
.button:hover {
  background-color: #9c2941;
  color: var(--cream);
}

.input-group {
  /* margin-bottom: 1rem; */
  position: relative;
}

.input-group label {
  font-size: 15px;
  display: block;
  margin-bottom: 0.3rem;
  color: #444;
  font-weight: 500;
}

.input-group input,
.input-group select,
.input-group textarea {
  font-size: 14px;
  width: 100%;
  padding: 0.5rem 0.8rem;
  padding-left: 36px;
  border: 1px solid #ccc;
  border-radius: 8px !important;
  transition: border-color 0.3s ease;
  appearance: none;
  /* hide native arrow */
  -webkit-appearance: none;
  -moz-appearance: none;
}

.input-group select {
  cursor: pointer;
  text-overflow: ellipsis;
  white-space: nowrap;
  overflow: hidden;
}

.field-spinner {
  display: none;
  position: absolute;
  right: 12px;
  top: 50%;
  width: 15px;
  height: 15px;
  margin-top: -7.5px;
  border: 2px solid #d8dbe0;
  border-top-color: var(--dark-blue);
  border-radius: 50%;
  animation: field-spin 0.8s linear infinite;
}

.input-group select:disabled ~ .field-spinner {
  display: block;
}

.input-group input:disabled ~ .field-spinner {
  display: block;
}

.med-search {
  position: relative;
}

.med-search-panel {
  display: none;
  position: absolute;
  z-index: 20;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  max-height: 320px;
  overflow-y: auto;
  background: #fff;
  border: 1px solid #e0e2e7;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(20, 20, 30, 0.12);
  padding: 6px 0;
}

.med-search-panel.open {
  display: block;
}

.med-group-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #9aa0a8;
  font-weight: 700;
  padding: 10px 16px 4px;
}

.med-option {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 9px 16px;
  font-size: 14px;
  color: #222;
  cursor: pointer;
}

.med-option:hover,
.med-option.active {
  background: #f4f6fb;
}

.med-option .med-name {
  font-weight: 600;
}

.med-option .med-strength {
  color: #6b7280;
  font-size: 13px;
  white-space: nowrap;
}

.med-empty {
  padding: 16px;
  font-size: 13.5px;
  color: #8a8f98;
  text-align: center;
}

.med-selected-chip {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  margin-top: 4px;
  background: #eef1fb;
  border: 1px solid #d7dcf5;
  border-radius: 10px;
}

.med-selected-chip .material-symbols-outlined:first-child {
  color: var(--dark-blue);
  font-size: 20px;
}

.med-selected-chip #med_selected_text {
  flex-grow: 1;
  font-size: 14px;
  font-weight: 600;
  color: var(--dark-blue);
}

.med-selected-chip button {
  border: none;
  background: transparent;
  padding: 0;
  cursor: pointer;
  color: #6b7280;
  display: flex;
  align-items: center;
}

.link-button {
  border: none;
  background: none;
  padding: 0;
  margin-top: 8px;
  margin-right: 14px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--dark-blue);
  text-decoration: underline;
  cursor: pointer;
  display: inline-block;
}

.link-button:hover {
  background: none;
  color: var(--dark-blue);
  cursor: pointer;
}

@keyframes field-spin {
  to { transform: rotate(360deg); }
}

.retry-link {
  border: none;
  background: none;
  padding: 0;
  margin-top: 6px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--dark-blue);
  text-decoration: underline;
  cursor: pointer;
}

.retry-link:hover {
  background: none;
  color: var(--dark-blue);
  cursor: pointer;
}

.field-helptext {
  display: block;
  font-size: 12.5px;
  color: #5b6472;
  margin-top: 6px;
  line-height: 1.4;
}

.med-option-hidden {
  display: none;
}

.input-group input:focus,
.input-group select:focus,
.input-group textarea:focus {
  outline: none;
  border-color: var(--dark-blue);
}

.input-icon {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  left: 10px;
  cursor: pointer;
  user-select: none;
  pointer-events: none;
}

.right-icon {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  cursor: pointer;
  user-select: none;
}

.input-group select + .right-icon,
.right-icon:not([onclick]) {
  pointer-events: none;
}

a {
  color: var(--dark-blue);
  text-decoration: none;
  font-weight: 600;
  cursor: pointer;
}

/* ------------------------------------ */

input,
select,
textarea {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  background: #fff;
  border: 1px solid #ccc;
  border-radius: 6px;
  padding: 10px 12px;
  font-size: 16px;
  font-family: inherit;
  color: #333;
  outline: none;
  width: 100%;
  box-sizing: border-box;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

select {
  /* background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 140 140' xmlns='http://www.w3.org/2000/svg'%3E%3Cpolyline points='20,50 70,100 120,50' stroke='%23666' stroke-width='15' fill='none' stroke-linecap='round'/%3E%3C/svg%3E"); */
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 16px;
  padding-right: 36px;
}

/* Remove extra inner padding in Firefox on select elements */
select:-moz-focusring {
  color: transparent;
  text-shadow: 0 0 0 #333;
}

.next-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background-color: var(--dark-blue);
  border: none;
  padding: 0.7rem 1.4rem;
  border-radius: 12px;
  color: white;
  font-size: 14px;
  cursor: pointer;
  font-weight: 600;
  box-shadow: 0 7px 20px 0 rgba(0, 0, 0, 0.2);
}

.next-button:hover {
  background-color: var(--dark-blue-2);
}

.back-button {
  background-color: #f7f7f7;
  border: none;
  padding: 0.7rem 1.4rem;
  border-radius: 12px;
  color: #333;
  font-size: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
}

.back-button:hover {
  background-color: #eaeaea;
  color: #333;
}

.back-button .material-symbols-outlined {
  color: #333;
}

.is-invalid {
  border-color: var(--light-mehron) !important;
  box-shadow: 0 0 0 0.2rem rgba(227, 52, 47, 0.25);
}

.field-label {
  font-size: 12px;
  padding-bottom: 4px;
}

.signup-link {
  margin-top: 1rem;
  color: #666;
  font-size: 16px;
}

.form-container {
  background: white;
  padding: 30px;
  border-radius: 12px;
  box-shadow: var(--box-shadow);
  width: 100%;
  max-width: 700px;
  margin: 20px 0;
}

.radio-pill-group, .checkbox-pill-group {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.radio-pill-group input[type="radio"], .checkbox-pill-group input[type="checkbox"] {
  display: none;
}

.radio-pill-group label, .checkbox-pill-group label {
  padding: 10px 20px;
  margin: 0;
  border: 1px solid #ccc;
  border-radius: 25px;
  cursor: pointer;
  transition: background-color 0.3s, color 0.3s, border-color 0.3s;
  font-weight: 500;
  font-size: 14px;
  padding: 0.6rem 1rem;
}

.radio-pill-group input[type="radio"]:checked+label, .checkbox-pill-group input[type="checkbox"]:checked+label {
  background-color: var(--light-mehron);
  color: white;
  border-color: var(--light-mehron);
  font-weight: 600;
}

.radio-pill-group label:hover, .checkbox-pill-group label:hover {
  border-color: var(--light-mehron);
}

input[type="radio"]:disabled+label, input[type="checkbox"]:disabled+label {
  opacity: 0.5;
  cursor: not-allowed;
}

/* General Tooltip Style */
.tooltip .tooltip-inner {
  background-color: var(--cream);
  color: var(--dark-blue);
  font-size: 12px;
  padding: 8px 12px;
  border-radius: 8px;
  max-width: 250px;
}

/* Customize Card */
.customize-card {
  border-radius: 20px;
  overflow: hidden;
  border: none;
  height: 100%;
}

.customize-card > .card-header {
  background-color: white;
  padding: 12px 24px;
}

/* Table Styling */
.table td,
.table th {
  vertical-align: middle !important;
}

.table th.th-name {
  width: 150px;
}

/* Sidebar Styles */
.sidebar {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 8px;
  width: 200px;
  height: 100%;
  position: fixed;
  background-color: white;
  /* box-shadow: var(--box-shadow); */
  overflow: hidden;
}

.sidebar-nav-links {
  flex-grow: 1;
  overflow-y: auto;
  margin: 10px 0;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

/* Sidebar Links */
.sidebar div a {
  display: flex;
  align-items: center;
  justify-content: start;
  color: var(--dark-blue);
  padding: 8px 16px;
  text-decoration: none;
  border-radius: 6px;
  gap: 10px;
}

.sidebar div a .material-symbols-outlined {
  color: inherit;
  transition: color 0.2s ease;
}

/* Active Sidebar Link */
.sidebar div a.active {
  background-color: var(--dark-blue);
  color: white;
}

.sidebar div a.active .material-symbols-outlined {
  color: inherit;
}

/* Hover Effects */
.sidebar div a:hover:not(.active) {
  background-color: var(--dark-blue);
  color: white;
}

.sidebar div a:hover:not(.active) .material-symbols-outlined {
  color: inherit;
}

/* Main Content */
.content {
  margin-left: 200px;
  height: 100%;
}

/* Mobile Footer */
.m-footer {
  display: none;
}

.m-footer {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: #ffffff;
  padding: 10px;
  min-width: 280px;
  border-top: 0.5px solid #e5e5e7;
  z-index: 1000;
}

.m-footer-nav {
  display: flex;
  justify-content: space-around;
  align-items: center;
  max-width: 400px;
  margin: 0 auto;
}

.m-nav-item {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: #8e8e93;
  cursor: pointer;
  padding: 8px 16px;
  border-radius: 20px;
  transition: all 0.2s ease;
  justify-content: center;
  gap: 5px;
}

.m-nav-item.active {
  background-color: var(--dark-blue) !important;
  color: #ffffff;
}

.m-nav-item.active .material-symbols-outlined {
  color: white;
}

.m-nav-item:not(.active) .material-symbols-outlined {
  color: #8e8e93;
}

.m-nav-item:hover:not(.active) {
  color: #48484a;
}

.m-nav-icon {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}

.m-nav-label {
  font-size: 11px;
  font-weight: 500;
  white-space: nowrap;
}

.m-nav-item:not(.active) .m-nav-label {
  display: none;
}

.m-nav-item.active .m-nav-label {
  display: block;
}

/* Sidebar Dropdown */
.sidebar-dropdown {
  display: flex;
  flex-direction: column;
}

.sidebar-dropdown-content {
  display: none;
  flex-direction: column;
  /* padding-left: 8px; */
  padding: 8px;
  /* padding: 8px 0 0 8px; */
  /* border-left: 2px solid var(--dark-blue); */
  transition:
    max-height 0.3s ease,
    opacity 0.3s ease;
  background-color: var(--cream);
  border-radius: 6px;
  overflow: hidden;
}

.sidebar-dropdown.open .sidebar-dropdown-content {
  display: flex;
  gap: 5px;
}

.sidebar-dropdown-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.sidebar-dropdown.open .dropdown-arrow {
  transform: rotate(180deg);
}

/* Profile Card Styles */
.sidebar-profile-card,
.profile-card {
  display: flex;
  align-items: center;
  gap: 10px;
  background-color: var(--light-grey);
  border-radius: 12px;
  padding: 10px;
  transition: box-shadow 0.3s ease;
  cursor: pointer;
  margin: 10px 0;
}

.profile-card:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.profile-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.sidebar-profile-card p,
.profile-info p {
  margin: 0;
  font-weight: 600;
  font-size: 13px;
  color: #333;
}

.profile-info small {
  font-size: 12px !important;
  color: #666;
}

.profile-icon {
  display: flex;
  align-items: center;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.profile-icon:hover {
  transform: scale(1.05);
}

.responsive-container {
  width: 100%;
  padding: 16px;
}

/* Request record Table styles   */
.badge-status {
  padding: 3px 7px;
  /* font-size: 12px; */
  border-radius: 20px;
  font-weight: 600;
  text-transform: capitalize;
}

td > .badge-status {
  font-size: 12px;
}

.card-header > small {
  font-size: 10px;
}

.yellow {
  /* #ffe9b8 */
  /* pending  */
  background-color: #ffe9b8;
  color: #a15e00;
  border: 1px solid;
}

.light-blue {
  /* #d4f0ff */
  /* assign  */
  background-color: #d4f0ff;
  color: #007aa3;
  border: 1px solid;
}

.light-red {
  /* #ffd4d4 */
  /* incomplete, disapprove */
  background-color: #ffd4d4;
  color: #ff2323;
  border: 1px solid;
}

.light-green {
  /* #c6f7d4 */
  /* complete, approve  */
  background-color: #c6f7d4;
  color: #1b6e3c;
  border: 1px solid;
}

.th-description,
td.detail-table-description {
  min-width: 150px;
  width: 30%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-wrap: wrap;
}

/* .small-mehron-button {
  font-size: 12px;
  color: white;
  background-color: var(--dark-mehron);
  padding: 6px;
  border-radius: 4px;
  text-wrap: nowrap;
  vertical-align: super;

  &:hover {
    background-color: var(--light-mehron);
  }
}

.small-mehron-button>span {
  color: white;
  font-size: 20px;
} */

.table-card-header {
  display: flex;
  align-items: start;
  gap: 10px;
  justify-content: space-between;
}

.action-button {
  display: inline-grid;
  align-items: center;
  gap: 2px;
  /* padding: 5px 12px; */
  font-size: 12px;
  color: var(--dark-blue);
  background-color: none;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  color: #999;
}

.action-button:hover {
  background-color: var(--light-grey);
  color: black;
}

.action-button > .material-symbols-outlined {
  color: #999;
}

.action-button:hover > .material-symbols-outlined {
  color: black;
}

.action-button-plain {
  background-color: none;
  border: none;
  cursor: pointer;
  color: #999;
  border-radius: 100px !important;
  padding: 5px;
}

.action-button-plain:hover {
  border-radius: 100px !important;
  background-color: var(--light-grey);
}

.action-button-plain:hover > .material-symbols-outlined {
  color: black;
}

.request-detail-card {
  padding: 16px;
  height: 100%;
}

.request-detail-card > h5 {
  border-bottom: 1px solid var(--light-grey);
  color: var(--dark-blue-2);
  padding-bottom: 8px;
}

.request-detail-card > div {
  color: var(--light-black);
  padding: 4px 0;
}

.request-detail-card > div > span {
  font-size: 14px;
}

.signature {
  object-fit: contain;
  width: 120px;
}

.details-section {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  width: 100%;
}

.details-box {
  background-color: #fff;
  padding: 20px;
  flex: 1 1 calc(33% - 20px);
  min-width: 300px;
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.details-box > h5 {
  border-bottom: 1px solid var(--light-grey);
  padding-bottom: 8px;
}

.details-box > div {
  color: var(--light-black);
  padding: 4px 0;
}

.details-box > div > span {
  font-size: 14px;
}

/* =====================================================
Address Suggestions Dropdown (Google-style)
===================================================== */

/* Hide native Google Places autocomplete dropdown (using custom) */
.pac-container {
  display: none !important;
}

.address-dropdown {
  position: absolute;
  z-index: 1050;
  width: 100%;
  max-height: 300px;
  overflow-y: auto;
  background: #fff;
  border-radius: 0 0 8px 8px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.address-dropdown-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 14px;
  cursor: pointer;
  border-bottom: 1px solid #f0f0f0;
}

.address-dropdown-item:last-child {
  border-bottom: none;
}

.address-dropdown-item:hover {
  background: #f5f5f5;
}

.address-dropdown-item .sug-icon {
  flex-shrink: 0;
  color: #9aa0a6;
  font-size: 20px;
}

.address-dropdown-item:hover .sug-icon {
  color: #70757a;
}

.sug-content {
  flex: 1;
  min-width: 0;
}

.address-dropdown-item .sug-main {
  font-size: 13px;
  font-weight: 500;
  color: #202124;
  line-height: 1.3;
}

.address-dropdown-item .sug-secondary {
  font-size: 12px;
  color: #70757a;
  line-height: 1.3;
}

.address-dropdown-item .sug-tags {
  display: inline;
  font-size: 12px;
  color: #70757a;
}

.sug-tag {
  font-size: 12px;
  font-weight: 400;
  color: #70757a;
}

.sug-tag::after {
  content: ", ";
}

.sug-tag:last-child::after {
  content: "";
}

/* Suggestions summary after selection */
.address-suggestions-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 8px 0 4px 0;
}

.address-suggestions-summary .suggestion-item {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  padding: 3px 10px;
  background: #f1f3f4;
  border-radius: 12px;
}

.address-suggestions-summary .suggestion-label {
  font-weight: 600;
  font-size: 11px;
  color: #5f6368;
}

.address-suggestions-summary .suggestion-value {
  font-weight: 500;
  color: #202124;
}

.address-suggestions-summary .suggestion-optional {
  opacity: 0.7;
}

@media (min-width: 1000px) {
  .responsive-container {
    /* max-width: 1300px; */
    margin: 0 auto;
  }
}

/* Responsive Font Scaling */

/* Responsive */
@media (max-width: 1000px) {
  .nav-links {
    display: none;
  }

  .menu-icon {
    display: block;
  }

  .navbar {
    padding: 7px 21px;
  }

  .brand-logo {
    width: 120px;
  }

  .responsive-container {
    /* padding-bottom: 100px; */
    padding: 0px 20px 76px;
  }

  .navbar {
    margin-top: 20px;
  }

  #profileBtn {
    display: none;
  }

  .m-footer {
    display: block;
  }

  .sidebar {
    display: none;
  }

  .content {
    margin-left: 0;
    margin-bottom: 60px;
  }
}

/* Tablets (≥600px and ≤1024px) */
@media (max-width: 1024px) and (min-width: 600px) {
  h1,
  .h1 {
    font-size: 32px;
  }

  h2,
  .h2 {
    font-size: 28px;
  }

  h3,
  .h3 {
    font-size: 24px;
  }

  h4,
  .h4 {
    font-size: 20px;
  }

  h5,
  .h5 {
    font-size: 18px;
  }

  .fs-48 {
    font-size: 40px;
  }

  .fs-40 {
    font-size: 32px;
  }

  .fs-32 {
    font-size: 28px;
  }

  .fs-28 {
    font-size: 24px;
  }

  .fs-24 {
    font-size: 20px;
  }
}

/* Mobile (≤599px) */
@media (max-width: 599px) {
  h1,
  .h1 {
    font-size: 28px;
  }

  h2,
  .h2 {
    font-size: 24px;
  }

  h3,
  .h3 {
    font-size: 20px;
  }

  h4,
  .h4 {
    font-size: 18px;
  }

  h5,
  .h5 {
    font-size: 16px;
  }

  h6,
  .h6 {
    font-size: 14px;
  }

  .fs-48 {
    font-size: 32px;
  }

  .fs-40 {
    font-size: 28px;
  }

  .fs-32 {
    font-size: 24px;
  }

  .fs-28 {
    font-size: 20px;
  }

  .fs-24 {
    font-size: 18px;
  }
}

@media (max-width: 320px) {
  .m-footer {
    padding: 12px 16px 24px 16px;
  }

  .m-nav-item {
    padding: 6px 12px;
    min-height: 40px;
  }

  .m-nav-icon {
    width: 22px;
    height: 22px;
    font-size: 18px;
  }
}

/* OTP MODAL STYLE  */

.otp-form {
  position: relative;
  width: 100%;
  max-width: 400px;
  margin: 0 auto;
  overflow: hidden;
  /* hide off-screen panel */
}

.slider {
  display: flex;
  width: 200%;
  /* two children at 100% each */
  transition: transform 0.5s ease;
}

.slider.shifted {
  transform: translateX(-50%);
}

.mobile-otp,
.email-otp {
  width: 50%;
  padding: 20px;
  box-sizing: border-box;
}

.mobile-otp h2,
.email-otp h2 {
  font-size: 1.25rem;
  margin-bottom: 1rem;
  text-align: center;
  color: #333;
}

.otp-container,
.email-otp-container {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.otp-input,
.email-otp-input {
  width: 3rem;
  height: 3rem;
  font-size: 1.25rem;
  text-align: center;
  border: 1px solid #ccc;
  border-radius: 0.25rem;
  transition: border-color 0.3s;
  outline: none;
}

.otp-input:focus,
.email-otp-input:focus {
  border-color: #0d6efd;
}

.slider:not(.shifted) .email-otp #verifyEmailOTP {
  display: none;
}

.slider.shifted .mobile-otp #verifyMobileOTP {
  display: none;
}

.resend-row {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
}

.countdown {
  font-variant-numeric: tabular-nums;
  color: #6c757d;
}

/* ===================================== */
/* Dashboard Analytics & Statistics     */
/* ===================================== */

/* Analytics Section */
.analytics-section {
  margin-bottom: 20px;
}

.analytics-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  flex-wrap: wrap;
  gap: 12px;
}

.analytics-title {
  font-size: 20px;
  font-weight: 700;
  color: #212529;
  margin: 0;
}

.date-range-input {
  padding: 8px 14px;
  border: 2px solid #e9ecef;
  border-radius: 8px;
  font-size: 13px;
  cursor: pointer;
  background: white;
  min-width: 220px;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s;
  font-weight: 500;
}

.date-range-input:hover {
  border-color: #ff5722;
  background: #fff5f2;
}

.date-range-input .material-symbols-outlined {
  font-size: 18px;
  color: #ff5722;
}

/* Two Column Layout for Analytics */
.analytics-content {
  display: grid;
  grid-template-columns: 400px 1fr;
  gap: 16px;
  margin-bottom: 16px;
}

/* Left Column - Stats */
.stats-column {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.stats-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.stats-row.single {
  grid-template-columns: 1fr;
}

/* Stat Card Styles */
.stat-card {
  background: #fff;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  transition:
    transform 0.2s,
    box-shadow 0.2s;
  display: flex;
  align-items: center;
  gap: 16px;
  border: none;
}

.stat-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.stat-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  flex-shrink: 0;
}

.stat-icon.blue {
  background: rgba(102, 126, 234, 0.1);
  color: #667eea;
}

.stat-icon.green {
  background: rgba(240, 147, 251, 0.1);
  color: #f093fb;
}

.stat-icon.orange {
  background: rgba(79, 172, 254, 0.1);
  color: #4facfe;
}

.stat-icon.purple {
  background: rgba(67, 233, 123, 0.1);
  color: #43e97b;
}

.stat-icon.teal {
  background: rgba(250, 112, 154, 0.1);
  color: #fa709a;
}

.stat-icon.red {
  background: rgba(244, 67, 54, 0.1);
  color: #f44336;
}

.stat-content {
  flex: 1;
  min-width: 0;
}

.stat-value {
  font-size: 28px;
  font-weight: 700;
  color: #212529;
  line-height: 1;
  margin-bottom: 6px;
}

.stat-label {
  font-size: 13px;
  color: #6c757d;
  font-weight: 500;
  line-height: 1;
}

/* Chart Column */
.chart-column {
  background: #fff;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.chart-container {
  position: relative;
  height: 100%;
  min-height: 200px;
}

/* ===================================== */
/* Price Card Styles                    */
/* ===================================== */

.price-card {
  background: #fff;
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 20px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.price-card h6 {
  color: #ff5722;
  font-weight: 600;
  margin-bottom: 15px;
}

.price-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid #f0f0f0;
}

.price-row:last-child {
  border-bottom: none;
}

.price-label {
  font-weight: 500;
  color: #333;
}

.price-value {
  font-size: 18px;
  font-weight: 600;
  color: #ff5722;
}

.price-subtitle {
  font-size: 12px;
  color: #666;
  margin-top: 2px;
}

.profit-margin {
  display: inline-block;
  background: #e8f5e9;
  color: #2e7d32;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 500;
  margin-left: 8px;
}

/* ===================================== */
/* Badge Variants                        */
/* ===================================== */

.badge-paid {
  background-color: #28a745;
  color: white;
  padding: 4px 12px;
  border-radius: 4px;
  font-size: 12px;
}

.badge-pending {
  background-color: #ffc107;
  color: #000;
  padding: 4px 12px;
  border-radius: 4px;
  font-size: 12px;
}

.badge-unread {
  min-width: 1.25rem;
}

/* ===================================== */
/* Image Utility Classes                 */
/* ===================================== */

.avatar-thumbnail {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 50%;
  border: 2px solid #eee;
}

.signature-image {
  max-width: 180px;
  border: 1px solid #eee;
  border-radius: 4px;
}

/* ===================================== */
/* Action Card                           */
/* ===================================== */

.action-card {
  background: #fff;
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 20px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* ===================================== */
/* Utility Classes                       */
/* ===================================== */

.load-more-link {
  cursor: pointer;
  text-decoration: underline;
}

.sidebar-footer-info {
  display: flex;
  gap: 4px;
  align-items: center;
  justify-content: center;
  font-size: 12px;
}

.medicine-list {
  font-size: 0.85rem;
  color: #666;
}

.referral-type {
  font-size: 0.85rem;
  font-weight: 500;
}

/* Input icon z-index for modals */
.input-icon {
  z-index: 6;
}

/* Visual state for open dropdown toggle */
.sidebar-dropdown.open > .sidebar-dropdown-toggle,
.sidebar-dropdown-toggle.active {
  color: white !important;
}

/* =====================================================
   Bootstrap Modal Overrides (Match customMedModal)
===================================================== */
.modal-content {
  background: #fff;
  border-radius: 14px !important;
  padding: 28px !important;
  border: none !important;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.18) !important;
}

.modal-header {
  border-bottom: none !important;
  padding: 0 !important;
  margin-bottom: 1.5rem !important;
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
}

.modal-header .modal-title {
  color: #0a143f;
  margin: 0 !important;
  font-weight: 700 !important;
  font-size: 20px !important;
}

.modal-header .btn-close {
  background: none !important;
  border: none !important;
  /* font-size: 22px !important; */
  cursor: pointer !important;
  color: #666 !important;
  /* opacity: 1 !important; */
  padding: 5px !important;
  /* margin: 0 !important; */
  /* line-height: 1 !important;
  height: auto !important; */
  /* width: auto !important; */
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}
.modal-header .btn-close:hover {
  border-radius: 100px !important;
  background-color: var(--light-grey) !important;
}

.modal-header .btn-close::before {
  content: "\2715" !important;
  display: block !important;
}

.modal-header .btn-close:focus {
  box-shadow: none !important;
  outline: none !important;
}

.modal-body {
  padding: 0 !important;
}

.modal-footer {
  border-top: none !important;
  padding: 0 !important;
  margin-top: 1.5rem !important;
  gap: 12px !important;
  justify-content: flex-end !important;
}

/* Modal Buttons - Overriding standard Bootstrap buttons inside modals */
.modal-content .btn-primary,
.modal-content .btn-next {
  background-color: var(--dark-blue) !important;
  border: none !important;
  padding: 0.7rem 1.4rem !important;
  border-radius: 12px !important;
  color: white !important;
  font-size: 14px !important;
  cursor: pointer !important;
  font-weight: 600 !important;
  box-shadow: 0 7px 20px 0 rgba(0, 0, 0, 0.2) !important;
}

.modal-content .btn-primary:hover,
.modal-content .btn-next:hover {
  background-color: var(--dark-blue-2) !important;
  color: white !important;
}

.modal-content .btn-secondary,
.modal-content .btn-back {
  background-color: #f7f7f7 !important;
  border: none !important;
  padding: 0.7rem 1.4rem !important;
  border-radius: 12px !important;
  color: #333 !important;
  font-size: 14px !important;
  cursor: pointer !important;
  font-weight: 600 !important;
}

.modal-content .btn-secondary:hover,
.modal-content .btn-back:hover {
  background-color: #eaeaea !important;
  color: #333 !important;
}

.modal-content .btn-danger {
  background-color: var(--light-mehron) !important;
  border: none !important;
  padding: 0.7rem 1.4rem !important;
  border-radius: 12px !important;
  color: white !important;
  font-size: 14px !important;
  cursor: pointer !important;
  font-weight: 600 !important;
}

.modal-content .btn-danger:hover {
  background-color: var(--dark-mehron) !important;
  color: white !important;
}

/* Modal Input Styling */
.modal-content .input-group {
  margin-bottom: 0 !important; /* Managed by grid gap/margins */
}

/* .modal-content .input-group input,
.modal-content .input-group select,
.modal-content .input-group textarea,
.modal-content .form-control,
.modal-content .form-select {
  border-radius: 8px !important;
  font-size: 14px !important;
  padding: 0.5rem 0.8rem;
  padding-left: 36px;
  border: 1px solid #ccc !important;
} */

.modal-content .input-group input:focus,
.modal-content .form-control:focus {
  border-color: var(--dark-blue) !important;
  box-shadow: none !important;
}

.modal-content .field-label {
  font-weight: 500;
  color: #444;
  margin-bottom: 4px;
  display: block;
}

.required-asterisk {
  color: red;
}

/* ===================================== */
/* Responsive Styles for Analytics      */
/* ===================================== */

@media (max-width: 1200px) {
  .analytics-content {
    grid-template-columns: 350px 1fr;
  }

  .stat-value {
    font-size: 24px;
  }

  .stat-icon {
    width: 44px;
    height: 44px;
    font-size: 22px;
  }
}

@media (max-width: 992px) {
  .analytics-content {
    grid-template-columns: 1fr;
  }

  .chart-container {
    min-height: 300px;
  }

  .price-card {
    padding: 15px;
  }

  .price-value {
    font-size: 16px;
  }
}

@media (max-width: 768px) {
  .analytics-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .date-range-input {
    width: 100%;
  }

  .stat-card {
    padding: 16px;
  }

  .stat-value {
    font-size: 22px;
  }

  .stat-icon {
    width: 40px;
    height: 40px;
    font-size: 20px;
  }
}

/* Print Styles for Analytics */
@media print {
  .sidebar,
  .m-footer,
  .card-header,
  .action-card,
  .navbar,
  .analytics-section,
  .modal-header,
  .modal-footer,
  .btn {
    display: none !important;
  }

  .container {
    max-width: 100% !important;
  }

  .modal-dialog {
    max-width: 100% !important;
    margin: 0 !important;
  }
}
/* Profile & Signature Upload UI/UX */
.profile-upload-container {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  width: 100%;
  max-width: 150px;
  height: auto;
  aspect-ratio: 1 / 1;
  margin: 0 auto;
}

.avatar-wrapper {
  position: relative;
  width: 100%;
  height: 100%;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.avatar-wrapper img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: contain;
  background: #ddd;
  border: 3px solid #fff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.floating-icon {
  position: absolute;
  bottom: 30px;
  background: var(--dark-blue); /* WhatsApp green */
  color: white;
  width: 35px;
  height: 35px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
  border: 3px solid #fff;
  cursor: pointer;
  transition:
    transform 0.2s ease,
    background-color 0.2s ease;
  z-index: 2;
}

.floating-icon:hover {
  /* transform: scale(1.1); */
  background-color: var(--dark-blue-2);
}

.floating-icon.right {
  /* right: 35px; */
  right: 0px;
}

.floating-icon.left {
  left: 0px;
}

.floating-icon.blue {
  background-color: var(--dark-blue);
}

.floating-icon.blue:hover {
  background-color: var(--dark-blue-2);
}

.floating-icon span {
  color: white;
  font-size: 18px;
}
