/* DoctorsHub24 — Dynamic Diagnostic Investigations, Filters, Presets & Quotation Basket */

.dh-inv-hero {
  background: linear-gradient(135deg, #0B2D5B 0%, #0f4c5c 58%, #0D9488 100%);
  color: #ffffff;
  border-radius: 20px;
  padding: 1.65rem 1.75rem;
  margin-bottom: 1.35rem;
  box-shadow: 0 10px 28px rgba(11, 45, 91, 0.14);
}
.dh-inv-hero-top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
}
.dh-inv-hero h1 {
  margin: 0.35rem 0 0.45rem;
  font-size: clamp(1.45rem, 2.8vw, 2rem);
  font-weight: 800;
  color: #ffffff;
  line-height: 1.2;
}
.dh-inv-hero-sub {
  margin: 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.94rem;
  max-width: 680px;
  line-height: 1.5;
}
.dh-inv-hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  padding: 0.28rem 0.85rem;
  font-size: 0.77rem;
  font-weight: 700;
  color: #ccfbf1;
}
.dh-inv-kpis {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 1.1rem;
}
.dh-inv-kpi {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 12px;
  padding: 0.55rem 0.95rem;
  min-width: 132px;
}
.dh-inv-kpi strong {
  display: block;
  font-size: 1.15rem;
  font-weight: 800;
  color: #ffffff;
}
.dh-inv-kpi span {
  font-size: 0.75rem;
  color: #ccfbf1;
  font-weight: 600;
}

/* Search & Toolbar */
.dh-inv-toolbar {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 0.9rem 1rem;
  margin-bottom: 1rem;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.04);
}
.dh-inv-search-row {
  display: grid;
  grid-template-columns: 1fr 205px auto;
  gap: 0.65rem;
  align-items: center;
}
@media (max-width: 820px) {
  .dh-inv-search-row {
    grid-template-columns: 1fr;
  }
}
.dh-inv-ac-wrap {
  position: relative;
}
.dh-inv-ac-wrap > i.bi {
  position: absolute;
  left: 0.9rem;
  top: 50%;
  transform: translateY(-50%);
  color: #64748b;
  pointer-events: none;
}
[dir="rtl"] .dh-inv-ac-wrap > i.bi {
  left: auto;
  right: 0.9rem;
}
.dh-inv-ac-wrap input[type="search"] {
  width: 100%;
  padding: 0.7rem 2.2rem 0.7rem 2.45rem;
  border: 1px solid #cbd5e1;
  border-radius: 11px;
  font-size: 0.93rem;
  font-family: inherit;
  background: #f8fafc;
  color: #0f172a;
}
[dir="rtl"] .dh-inv-ac-wrap input[type="search"] {
  padding: 0.7rem 2.45rem 0.7rem 2.2rem;
}
.dh-inv-ac-wrap input[type="search"]:focus {
  outline: none;
  border-color: #0d9488;
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.14);
}
.dh-inv-sort {
  width: 100%;
  padding: 0.7rem 0.8rem;
  border: 1px solid #cbd5e1;
  border-radius: 11px;
  font-size: 0.88rem;
  font-weight: 600;
  color: #0b2d5b;
  background: #ffffff;
  font-family: inherit;
}

.dh-inv-ac-menu {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  max-height: 360px;
  overflow-y: auto;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 14px;
  box-shadow: 0 18px 42px rgba(11, 45, 91, 0.18);
  z-index: 60;
  padding: 0.45rem;
  display: none;
}
.dh-inv-ac-menu.is-open {
  display: block;
}
.dh-inv-ac-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.55rem 0.7rem;
  border-radius: 10px;
  cursor: pointer;
  transition: background 0.14s;
}
.dh-inv-ac-item:hover {
  background: #f0fdfa;
}
.dh-inv-ac-title {
  font-size: 0.88rem;
  font-weight: 700;
  color: #0b2d5b;
}
.dh-inv-ac-sub {
  font-size: 0.75rem;
  color: #64748b;
}
.dh-inv-ac-right {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  flex-shrink: 0;
}
.dh-inv-ac-price {
  font-size: 0.85rem;
  font-weight: 800;
  color: #0d9488;
}
.dh-inv-ac-add {
  border: 1px solid #0d9488;
  background: #f0fdfa;
  color: #0f766e;
  border-radius: 8px;
  padding: 0.25rem 0.55rem;
  font-size: 0.74rem;
  font-weight: 700;
  cursor: pointer;
}
.dh-inv-ac-add:hover {
  background: #0d9488;
  color: #ffffff;
}

/* Quick Preset Screening Panels */
.dh-inv-presets {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px dashed #e2e8f0;
}
.dh-inv-preset-lbl {
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #64748b;
}
.dh-inv-preset-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.34rem 0.78rem;
  border-radius: 999px;
  border: 1px solid #99f6e4;
  background: #f0fdfa;
  color: #0f766e;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.15s;
}
.dh-inv-preset-btn:hover {
  background: #0d9488;
  border-color: #0d9488;
  color: #ffffff;
}

/* 2-Column Workspace (Left Filter Sidebar + Main Grid) */
.dh-inv-layout {
  display: grid;
  grid-template-columns: 270px minmax(0, 1fr);
  gap: 1.25rem;
  align-items: start;
}
@media (max-width: 960px) {
  .dh-inv-layout {
    grid-template-columns: 1fr;
  }
}

.dh-inv-mobile-filter-bar {
  display: none;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
}
@media (max-width: 960px) {
  .dh-inv-mobile-filter-bar {
    display: flex;
  }
  .dh-inv-sidebar {
    display: none;
  }
  .dh-inv-sidebar.is-open {
    display: block;
  }
}
.dh-inv-mob-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.52rem 0.95rem;
  border-radius: 10px;
  border: 1px solid #cbd5e1;
  background: #ffffff;
  color: #0b2d5b;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
}

.dh-inv-sidebar {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 1rem;
  position: sticky;
  top: 84px;
}
@media (max-width: 960px) {
  .dh-inv-sidebar {
    position: static;
  }
}
.dh-inv-sb-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.75rem;
  padding-bottom: 0.6rem;
  border-bottom: 1px solid #e2e8f0;
}
.dh-inv-sb-head h2 {
  margin: 0;
  font-size: 0.96rem;
  font-weight: 800;
  color: #0b2d5b;
}
.dh-inv-sb-reset {
  border: 0;
  background: transparent;
  color: #0d9488;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
}
.dh-inv-filter-group {
  margin-bottom: 1rem;
  padding-bottom: 0.9rem;
  border-bottom: 1px solid #f1f5f9;
}
.dh-inv-filter-group:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: 0;
}
.dh-inv-filter-title {
  font-size: 0.74rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #64748b;
  margin-bottom: 0.55rem;
}
.dh-inv-cat-list {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  max-height: 255px;
  overflow-y: auto;
  scrollbar-width: thin;
}
.dh-inv-cat-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  width: 100%;
  text-align: left;
  padding: 0.42rem 0.6rem;
  border-radius: 9px;
  border: 1px solid transparent;
  background: transparent;
  color: #334155;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.14s;
}
.dh-inv-cat-btn:hover {
  background: #f8fafc;
  color: #0b2d5b;
}
.dh-inv-cat-btn.is-active {
  background: #f0fdfa;
  border-color: #99f6e4;
  color: #0f766e;
  font-weight: 700;
}
.dh-inv-cat-cnt {
  font-size: 0.72rem;
  background: #f1f5f9;
  color: #475569;
  padding: 0.1rem 0.45rem;
  border-radius: 999px;
}
.dh-inv-cat-btn.is-active .dh-inv-cat-cnt {
  background: #0d9488;
  color: #ffffff;
}
.dh-inv-prep-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}
.dh-inv-prep-btn {
  padding: 0.34rem 0.65rem;
  border-radius: 999px;
  border: 1px solid #cbd5e1;
  background: #ffffff;
  color: #334155;
  font-size: 0.76rem;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
}
.dh-inv-prep-btn.is-active {
  background: #0b2d5b;
  border-color: #0b2d5b;
  color: #ffffff;
}
.dh-inv-price-inp {
  width: 100%;
  accent-color: #0d9488;
}

/* Main Area Results Header */
.dh-inv-results-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.85rem;
  font-size: 0.85rem;
  color: #475569;
}
.dh-inv-results-bar strong {
  color: #0b2d5b;
}

/* Enriched Test Card */
.dh-cat-grid-inv {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1rem;
}
.dh-inv-card--rich {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 15px;
  padding: 1.05rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 0.65rem;
  transition: border-color 0.16s, box-shadow 0.16s, transform 0.16s;
}
.dh-inv-card--rich:hover {
  border-color: #0d9488;
  box-shadow: 0 10px 24px rgba(11, 45, 91, 0.08);
  transform: translateY(-2px);
}
.dh-inv-card--rich[hidden] {
  display: none !important;
}
.dh-inv-card-top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 0.35rem;
}
.dh-inv-cat-tag {
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.18rem 0.55rem;
  border-radius: 999px;
  background: #eff6ff;
  color: #1d4ed8;
  max-width: 68%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.dh-inv-disc-tag {
  font-size: 0.71rem;
  font-weight: 800;
  padding: 0.18rem 0.52rem;
  border-radius: 999px;
  background: #dcfce7;
  color: #15803d;
}
.dh-inv-code-tag {
  font-size: 0.69rem;
  font-weight: 700;
  color: #64748b;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}
.dh-inv-card--rich .dh-inv-name {
  margin: 0.2rem 0 0.15rem;
  font-size: 1rem;
  font-weight: 800;
  color: #0b2d5b;
  line-height: 1.32;
}
.dh-inv-lab-line {
  font-size: 0.79rem;
  color: #475569;
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
  align-items: center;
}
.dh-inv-specs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-top: 0.2rem;
}
.dh-inv-spec-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.28rem;
  padding: 0.2rem 0.5rem;
  border-radius: 7px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  font-size: 0.72rem;
  color: #334155;
  font-weight: 600;
}
.dh-inv-spec-pill--home {
  background: #f0fdfa;
  border-color: #99f6e4;
  color: #0f766e;
}
.dh-inv-spec-pill--fast {
  background: #fffbeb;
  border-color: #fde68a;
  color: #b45309;
}

.dh-inv-price-box {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.5rem;
  padding-top: 0.4rem;
  border-top: 1px solid #f1f5f9;
}
.dh-inv-price-box .cur {
  font-size: 1.18rem;
  font-weight: 800;
  color: #0d9488;
}
.dh-inv-price-box .was {
  font-size: 0.84rem;
  color: #94a3b8;
  text-decoration: line-through;
}
.dh-inv-save-txt {
  font-size: 0.72rem;
  font-weight: 700;
  color: #15803d;
}
.dh-inv-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}
.dh-inv-add-btn {
  flex: 1 1 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.5rem 0.75rem;
  border-radius: 10px;
  border: 1px solid #0d9488;
  background: #f0fdfa;
  color: #0f766e;
  font-size: 0.81rem;
  font-weight: 800;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.15s;
}
.dh-inv-add-btn:hover,
.dh-inv-add-btn.is-added {
  background: #0d9488;
  color: #ffffff;
}

/* Floating Basket Pill & Drawer */
.dh-inv-fab {
  position: fixed;
  right: 1.25rem;
  bottom: 4.9rem;
  z-index: 95;
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.75rem 1.15rem;
  border-radius: 999px;
  border: 0;
  background: linear-gradient(135deg, #0B2D5B 0%, #0D9488 100%);
  color: #ffffff;
  font-size: 0.88rem;
  font-weight: 800;
  box-shadow: 0 12px 28px rgba(11, 45, 91, 0.28);
  cursor: pointer;
  font-family: inherit;
}
[dir="rtl"] .dh-inv-fab {
  right: auto;
  left: 1.25rem;
}
.dh-inv-fab-badge {
  background: #ffffff;
  color: #0b2d5b;
  border-radius: 999px;
  min-width: 24px;
  height: 24px;
  display: inline-grid;
  place-items: center;
  font-size: 0.78rem;
  font-weight: 800;
  padding: 0 0.35rem;
}

.dh-inv-drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.45);
  z-index: 10040;
  display: none;
}
.dh-inv-drawer-backdrop.is-open {
  display: block;
}
.dh-inv-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(470px, 100vw);
  background: #ffffff;
  z-index: 10050;
  box-shadow: -12px 0 36px rgba(11, 45, 91, 0.22);
  display: flex;
  flex-direction: column;
  transform: translateX(102%);
  transition: transform 0.22s ease;
}
.dh-inv-drawer.is-open {
  transform: translateX(0);
}
.dh-inv-drawer-head {
  padding: 1rem 1.2rem;
  border-bottom: 1px solid #e2e8f0;
  background: #0b2d5b;
  color: #ffffff;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.dh-inv-drawer-head h2 {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 800;
  color: #ffffff;
}
.dh-inv-drawer-close {
  border: 0;
  background: rgba(255, 255, 255, 0.15);
  color: #ffffff;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 1.1rem;
}
.dh-inv-drawer-body {
  padding: 1rem 1.2rem 2.25rem;
  overflow-y: auto;
  flex: 1 1 auto;
}
.dh-inv-basket-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.6rem;
  padding: 0.65rem 0;
  border-bottom: 1px solid #f1f5f9;
}
.dh-inv-basket-item-info strong {
  display: block;
  font-size: 0.87rem;
  color: #0b2d5b;
}
.dh-inv-basket-item-info small {
  color: #64748b;
  font-size: 0.74rem;
}
.dh-inv-qty-ctrl {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}
.dh-inv-qty-ctrl button {
  width: 24px;
  height: 24px;
  border: 1px solid #cbd5e1;
  background: #f8fafc;
  border-radius: 6px;
  font-weight: 800;
  cursor: pointer;
}
.dh-inv-summary-box {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 0.85rem;
  margin: 0.9rem 0;
}
.dh-inv-sum-line {
  display: flex;
  justify-content: space-between;
  font-size: 0.84rem;
  color: #475569;
  margin-bottom: 0.3rem;
}
.dh-inv-sum-line.is-total {
  border-top: 1px solid #cbd5e1;
  padding-top: 0.45rem;
  margin-top: 0.35rem;
  margin-bottom: 0;
  font-size: 1rem;
  font-weight: 800;
  color: #0b2d5b;
}
.dh-inv-mode-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
  margin-bottom: 0.85rem;
}
.dh-inv-mode-btn {
  padding: 0.5rem 0.65rem;
  border-radius: 10px;
  border: 1px solid #cbd5e1;
  background: #ffffff;
  color: #334155;
  font-size: 0.81rem;
  font-weight: 700;
  cursor: pointer;
}
.dh-inv-mode-btn.is-active {
  background: #f0fdfa;
  border-color: #0d9488;
  color: #0f766e;
}
.dh-inv-drawer-form .form-row {
  margin-bottom: 0.6rem;
}
.dh-inv-drawer-form label {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  color: #475569;
  margin-bottom: 0.22rem;
}
.dh-inv-drawer-form input,
.dh-inv-drawer-form select {
  width: 100%;
  padding: 0.5rem 0.65rem;
  border: 1px solid #cbd5e1;
  border-radius: 9px;
  font-size: 0.85rem;
  font-family: inherit;
}
.dh-inv-drawer-btns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.6rem;
  margin-top: 0.85rem;
}
.dh-inv-btn-quote {
  padding: 0.65rem 0.75rem;
  border-radius: 10px;
  border: 1px solid #0b2d5b;
  background: #ffffff;
  color: #0b2d5b;
  font-size: 0.82rem;
  font-weight: 800;
  cursor: pointer;
}
.dh-inv-btn-quote:hover {
  background: #eff6ff;
}
.dh-inv-btn-book {
  padding: 0.65rem 0.75rem;
  border-radius: 10px;
  border: 0;
  background: #0d9488;
  color: #ffffff;
  font-size: 0.82rem;
  font-weight: 800;
  cursor: pointer;
}
.dh-inv-btn-book:hover {
  background: #0f766e;
}
.dh-inv-drawer-feedback {
  margin-top: 0.75rem;
}
