:root {
  --bg: #0f1117;
  --surface: #181c27;
  --surface2: #1f2435;
  --border: rgba(255,255,255,0.07);
  --accent: #4f9cf9;
  --green: #34d399;
  --amber: #fbbf24;
  --red: #f87171;
  --purple: #a78bfa;
  --teal: #2dd4bf;
  --text: #e8eaf0;
  --text-muted: #8892b2;
  --sidebar-w: 240px;
  --topbar-h: 60px;
  --radius: 12px;
  --radius-sm: 10px;
  --focus-ring: 0 0 0 3px rgba(79, 156, 249, 0.35);
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  line-height: 1.4;
}

.font-mono,
.patient-id,
.stat-value.font-mono,
#kpiLastDate,
#kpiYearRange,
#rows .date-pill,
.timeline-date,
.appointment-day {
  font-family: "DM Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  font-variant-numeric: tabular-nums;
}

h1,
h2,
h3,
.brand-title,
.topbar-title,
.panel-title {
  font-family: "Playfair Display", Georgia, serif;
  letter-spacing: 0.01em;
}

a,
button,
input,
select,
textarea {
  transition: background-color 150ms ease, border-color 150ms ease, color 150ms ease, transform 150ms ease;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 0;
  box-shadow: var(--focus-ring);
}

.app-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: var(--sidebar-w) minmax(0, 1fr);
  background: var(--bg);
}

.app-sidebar {
  width: var(--sidebar-w);
  min-width: var(--sidebar-w);
  background: var(--surface);
  border-right: 1px solid var(--border);
  position: sticky;
  top: 0;
  height: 100vh;
  padding: 14px 12px;
  overflow-y: auto;
  color: var(--text);
}

.app-sidebar-head {
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}

.brand {
  display: flex;
  align-items: center;
  gap: 9px;
}

.brand-icon {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--accent), var(--purple));
  color: #fff;
  font-size: 15px;
  font-weight: 700;
}

.brand-title {
  color: var(--text);
  font-size: 20px;
  font-weight: 700;
  line-height: 1.05;
}

.brand-sub {
  color: var(--text-muted);
  font-size: 11px;
}

.patient-chip {
  margin-top: 12px;
  border: 1px solid var(--border);
  background: var(--surface2);
  border-radius: var(--radius);
  padding: 10px;
  display: flex;
  align-items: center;
  gap: 9px;
}

.patient-avatar {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--teal), var(--accent));
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}

.patient-name {
  color: var(--text);
  font-size: 13px;
  font-weight: 700;
}

.patient-id {
  color: var(--text-muted);
  font-size: 11px;
}

.sidebar-section {
  padding: 14px 2px 8px;
  color: var(--text-muted);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.sidebar-link {
  border: 1px solid transparent;
  border-radius: 10px;
  background: transparent;
  color: var(--text);
  width: 100%;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 8px 10px;
  font-size: 13px;
  font-weight: 600;
  text-align: left;
}

.sidebar-link:hover {
  background: rgba(255,255,255,0.05);
  border-color: var(--border);
}

.sidebar-link.active {
  border-color: rgba(79,156,249,0.5);
  background: rgba(79,156,249,0.16);
  box-shadow: inset 0 0 0 1px rgba(79,156,249,0.25);
}

.sidebar-link .ico {
  width: 18px;
  text-align: center;
  opacity: 0.95;
}

.nav-badge {
  margin-left: auto;
  min-width: 22px;
  height: 20px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  padding: 0 7px;
}

.nav-badge-docs {
  color: #e9f4ff;
  background: rgba(79,156,249,0.26);
  border: 1px solid rgba(79,156,249,0.5);
}

.nav-badge-lab {
  color: #fff8db;
  background: rgba(251,191,36,0.28);
  border: 1px solid rgba(251,191,36,0.55);
}

.nav-badge-danger {
  color: #ffe4e4;
  background: rgba(248,113,113,0.26);
  border: 1px solid rgba(248,113,113,0.55);
}

.sidebar-card {
  margin-top: 10px;
  border: 1px solid var(--border);
  background: var(--surface2);
  border-radius: var(--radius);
  padding: 10px;
}

.sidebar-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.sidebar-card-title {
  color: var(--text);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 700;
}

.sidebar-card-sub {
  margin-top: 6px;
  color: var(--text-muted);
  font-size: 12px;
}

.sidebar-list {
  margin-top: 8px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.sidebar-placeholder {
  color: var(--text-muted);
  font-size: 12px;
}

.sidebar-med-item,
.sidebar-lab-item {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: rgba(255,255,255,0.02);
  color: var(--text);
  padding: 8px;
}

.sidebar-med-item:hover,
.sidebar-lab-item:hover {
  border-color: rgba(79,156,249,0.5);
  background: rgba(79,156,249,0.12);
}

.sidebar-footer {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 11px;
  display: flex;
  align-items: center;
  gap: 7px;
}

.sidebar-footer .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
}

.app-main {
  min-width: 0;
  display: grid;
  grid-template-rows: var(--topbar-h) minmax(0, 1fr);
}

.app-topbar {
  height: var(--topbar-h);
  border-bottom: 1px solid var(--border);
  background: var(--surface);
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 14px;
  position: sticky;
  top: 0;
  z-index: 1020;
}

.topbar-title {
  color: var(--text);
  font-size: 20px;
  font-weight: 700;
  line-height: 1;
}

.topbar-sub {
  color: var(--text-muted);
  font-size: 12px;
}

.topbar-search {
  flex: 1;
  min-width: 180px;
  max-width: 560px;
  position: relative;
}

.topbar-search .search-ico {
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 12px;
}

.topbar-search .form-control {
  padding-left: 30px;
  background: var(--surface2);
  border: 1px solid var(--border);
  color: var(--text);
}

.topbar-search .form-control::placeholder {
  color: #8f95af;
}

.topbar-search .form-control:focus {
  border-color: rgba(79,156,249,0.7);
  background: #232a3f;
  color: #f3f6ff;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: nowrap;
}

.topbar-actions .btn {
  white-space: nowrap;
}

.app-content {
  overflow: auto;
  padding: 14px 16px !important;
}

.dashboard-view {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.stats-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.stat-card {
  border: 1px solid var(--border);
  border-top: 4px solid var(--accent);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 11px 12px;
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-areas:
    "icon meta"
    "trend trend";
  gap: 8px;
  min-height: 122px;
}

.stat-card:hover {
  transform: translateY(-1px);
  border-color: rgba(79,156,249,0.45);
  background: #1b2231;
}

.stat-docs { border-top-color: var(--accent); }
.stat-lab { border-top-color: var(--amber); }
.stat-med { border-top-color: var(--purple); }
.stat-since { border-top-color: var(--green); }

.stat-icon {
  grid-area: icon;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.06);
  font-size: 17px;
}

.stat-meta {
  grid-area: meta;
}

.stat-label {
  color: var(--text-muted);
  font-size: 12px;
  margin-bottom: 2px;
}

.stat-value {
  color: var(--text);
  font-size: 31px;
  font-weight: 700;
  line-height: 1.05;
}

.stat-sub {
  color: var(--text-muted);
  font-size: 12px;
  margin-top: 3px;
}

.trend-badge {
  grid-area: trend;
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 6px;
  width: max-content;
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 600;
  border: 1px solid transparent;
}

.trend-info {
  background: rgba(79,156,249,0.14);
  color: #d6e8ff;
  border-color: rgba(79,156,249,0.45);
}

.trend-warn {
  background: rgba(251,191,36,0.14);
  color: #fff1c5;
  border-color: rgba(251,191,36,0.45);
}

.trend-neutral {
  background: rgba(167,139,250,0.14);
  color: #ece3ff;
  border-color: rgba(167,139,250,0.45);
}

.trend-ok {
  background: rgba(52,211,153,0.14);
  color: #d7ffe8;
  border-color: rgba(52,211,153,0.45);
}

.dashboard-alert {
  border: 1px solid rgba(251,191,36,0.5);
  border-radius: var(--radius);
  background: rgba(251,191,36,0.14);
  color: #fff2c7;
  padding: 10px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.dashboard-alert-text {
  font-size: 13px;
}

.dashboard-alert-actions {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-shrink: 0;
}

.dashboard-content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 12px;
  align-items: start;
}

.dashboard-right-col,
.dashboard-left-col {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.panel-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 11px 12px;
}

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

.panel-head.compact {
  align-items: center;
}

.panel-title {
  margin: 0;
  color: var(--text);
  font-size: 20px;
  font-weight: 700;
}

.panel-subtitle {
  color: var(--text-muted);
  font-size: 13px;
  line-height: 1.35;
  margin: 0;
}

.timeline-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 10px;
}

.timeline-filter {
  border: 1px solid var(--border);
  background: var(--surface2);
  color: var(--text);
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 600;
}

.timeline-filter:hover {
  border-color: rgba(79,156,249,0.45);
  background: rgba(79,156,249,0.12);
}

.timeline-filter.active {
  border-color: rgba(79,156,249,0.6);
  background: rgba(79,156,249,0.24);
  color: #e9f2ff;
}

.timeline-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.timeline-item {
  display: grid;
  grid-template-columns: 112px 12px 1fr auto;
  gap: 10px;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 8px 10px;
  background: rgba(255,255,255,0.01);
}

.timeline-item:hover {
  border-color: rgba(79,156,249,0.45);
  background: rgba(79,156,249,0.1);
}

.timeline-item.is-newest {
  background: rgba(79,156,249,0.16);
  border-color: rgba(79,156,249,0.5);
}

.timeline-date {
  color: #c5d5ff;
  font-size: 12px;
}

.timeline-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
}

.timeline-dot-labor { background: var(--teal); }
.timeline-dot-arzt { background: var(--accent); }
.timeline-dot-entlassung { background: var(--green); }
.timeline-dot-notaufnahme { background: var(--red); }
.timeline-dot-default { background: var(--purple); }

.timeline-main {
  min-width: 0;
}

.timeline-title {
  color: var(--text);
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.timeline-sub {
  color: var(--text-muted);
  font-size: 12px;
  line-height: 1.4;
  margin-top: 2px;
}

.timeline-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 5px;
}

.timeline-chip {
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 2px 7px;
  font-size: 11px;
  color: #c6cbdf;
  background: rgba(255,255,255,0.03);
}

.timeline-arrow {
  color: var(--accent);
  font-size: 20px;
  opacity: 0;
}

.timeline-item:hover .timeline-arrow {
  opacity: 1;
}

.open-points-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.open-point {
  border: 1px solid var(--border);
  border-left: 4px solid var(--amber);
  border-radius: 10px;
  background: var(--surface2);
  padding: 8px 10px;
}

.open-point.priority-red { border-left-color: var(--red); }
.open-point.priority-amber { border-left-color: var(--amber); }
.open-point.priority-purple { border-left-color: var(--purple); }

.open-point-title {
  color: var(--text);
  font-size: 13px;
  font-weight: 700;
}

.open-point-desc {
  color: var(--text-muted);
  font-size: 12px;
  line-height: 1.4;
  margin-top: 3px;
}

.open-point-actions {
  margin-top: 7px;
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.open-point-actions .btn {
  font-size: 12px;
  padding: 3px 8px;
}

.vitals-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.vital-card {
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface2);
  padding: 8px;
}

.vital-label {
  color: var(--text-muted);
  font-size: 11px;
  margin-bottom: 3px;
}

.vital-value {
  color: var(--text);
  font-size: 20px;
  font-weight: 700;
  line-height: 1.1;
}

.vital-state {
  margin-top: 3px;
  font-size: 11px;
  font-weight: 600;
}

.vital-state.ok { color: var(--green); }
.vital-state.warn { color: var(--amber); }
.vital-state.crit { color: var(--red); }
.vital-state.info { color: var(--accent); }

.risk-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.risk-row {
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 7px 8px;
  background: var(--surface2);
}

.risk-row-head {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 5px;
}

.risk-label {
  color: var(--text);
  font-size: 12px;
  font-weight: 600;
}

.risk-value {
  color: var(--text-muted);
  font-size: 12px;
}

.risk-bar {
  width: 100%;
  height: 8px;
  border-radius: 999px;
  background: rgba(255,255,255,0.06);
  overflow: hidden;
}

.risk-fill {
  height: 100%;
  border-radius: inherit;
  background: var(--accent);
}

.risk-fill.red { background: var(--red); }
.risk-fill.amber { background: var(--amber); }
.risk-fill.green { background: var(--green); }
.risk-fill.blue { background: var(--accent); }

.appointments-list {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.appointment-item {
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface2);
  padding: 8px;
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 8px;
  align-items: center;
}

.appointment-date {
  border-radius: 8px;
  border: 1px solid rgba(79,156,249,0.4);
  background: rgba(79,156,249,0.13);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 44px;
}

.appointment-day {
  color: #eaf3ff;
  font-size: 15px;
  font-weight: 700;
  line-height: 1;
}

.appointment-month {
  color: #c2d7ff;
  font-size: 11px;
  text-transform: uppercase;
}

.appointment-title {
  color: var(--text);
  font-size: 12px;
  font-weight: 700;
}

.appointment-sub {
  color: var(--text-muted);
  font-size: 11px;
  line-height: 1.4;
}

.appointment-time {
  color: #b8cef5;
  font-size: 11px;
  margin-top: 2px;
}

.allergy-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.allergy-item {
  border: 1px solid var(--border);
  background: var(--surface2);
  border-radius: 10px;
  padding: 7px 8px;
  color: var(--text);
  font-size: 12px;
}

.empty-state {
  color: var(--text-muted);
  font-size: 12px;
}

/* Documents / shared components */
.card {
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: var(--radius);
  color: var(--text);
  box-shadow: none;
}

.card-header {
  border-bottom: 1px solid var(--border);
  background: transparent !important;
  color: var(--text);
}

.card-body,
.card-footer {
  color: var(--text);
}

.text-secondary,
.form-text {
  color: var(--text-muted) !important;
}

.small {
  color: inherit;
}

.table {
  color: var(--text);
}

.table > :not(caption) > * > * {
  border-bottom-color: var(--border);
}

.table-light {
  --bs-table-bg: rgba(255,255,255,0.03);
  --bs-table-color: var(--text);
}

.form-control,
.form-select {
  background: var(--surface2);
  border: 1px solid var(--border);
  color: var(--text);
}

.form-control:focus,
.form-select:focus {
  background: #252c40;
  border-color: rgba(79,156,249,0.7);
  color: var(--text);
}

.btn-outline-secondary {
  --bs-btn-color: #cfd5eb;
  --bs-btn-border-color: var(--border);
  --bs-btn-hover-bg: rgba(255,255,255,0.06);
  --bs-btn-hover-border-color: rgba(255,255,255,0.2);
  --bs-btn-hover-color: #f3f5ff;
}

.btn-outline-primary {
  --bs-btn-color: #d7e9ff;
  --bs-btn-border-color: rgba(79,156,249,0.52);
  --bs-btn-hover-bg: rgba(79,156,249,0.16);
  --bs-btn-hover-border-color: rgba(79,156,249,0.75);
  --bs-btn-hover-color: #eef6ff;
}

.btn-primary {
  --bs-btn-bg: var(--accent);
  --bs-btn-border-color: var(--accent);
  --bs-btn-hover-bg: #76b1fa;
  --bs-btn-hover-border-color: #76b1fa;
}

.badge.text-bg-light {
  background: rgba(255,255,255,0.12) !important;
  color: var(--text) !important;
  border: 1px solid var(--border);
}

/* Medication dose badge: force high contrast on dark theme */
.table .badge.text-bg-light.font-monospace {
  background: #e2e8f0 !important;
  color: #0f172a !important;
  border-color: #94a3b8 !important;
  font-weight: 700;
}

.offcanvas {
  background: var(--surface);
  color: var(--text);
}

.offcanvas .list-group-item {
  background: var(--surface2);
  color: var(--text);
  border-color: var(--border);
}

.offcanvas .list-group-item.active {
  background: rgba(79,156,249,0.24);
  border-color: rgba(79,156,249,0.6);
}

.docviewer-sticky {
  position: sticky;
  top: 74px;
}

/* Utility for quick medication list dots */
.med-quick-item {
  display: grid;
  grid-template-columns: 10px 1fr auto;
  gap: 7px;
  align-items: start;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 7px;
  background: rgba(255,255,255,0.02);
}

.med-quick-item:hover {
  border-color: rgba(79,156,249,0.5);
  background: rgba(79,156,249,0.12);
}

.med-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-top: 5px;
}

.med-dot-red { background: var(--red); }
.med-dot-blue { background: var(--accent); }
.med-dot-amber { background: var(--amber); }

.med-name {
  color: var(--text);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.25;
}

.med-type {
  color: var(--text-muted);
  font-size: 10px;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 1px 6px;
  white-space: nowrap;
}

.med-dose {
  grid-column: 2 / span 2;
  color: var(--text-muted);
  font-size: 11px;
}

/* Responsive */
@media (max-width: 1399.98px) {
  .stats-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

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

  .dashboard-right-col {
    grid-template-columns: 1fr;
  }

  .docviewer-sticky {
    position: static;
    top: auto;
  }
}

@media (max-width: 991.98px) {
  .app-shell {
    grid-template-columns: 1fr;
  }

  .app-main {
    grid-template-rows: auto minmax(0, 1fr);
  }

  .app-topbar {
    height: auto;
    min-height: var(--topbar-h);
    flex-wrap: wrap;
    padding-top: 8px;
    padding-bottom: 8px;
  }

  .topbar-search {
    order: 3;
    min-width: 100%;
    max-width: 100%;
  }

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

  .dashboard-alert {
    flex-direction: column;
    align-items: flex-start;
  }

  .timeline-item {
    grid-template-columns: 1fr;
  }

  .timeline-arrow {
    display: none;
  }

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

.docs-actions-col { width: 220px; }
.docs-empty-icon { font-size: 28px; margin-bottom: 0.5rem; }
#docFrame { display: none; border: 0; }
#summaryPdfFrame { height: 72vh; border: 0; }
.ix-col-combo { width: 200px; }
.ix-col-level { width: 140px; }
.ix-col-evidence { width: 80px; }
#drugInfoChecklistWrap { display: none; }

@media print {
  @page {
    size: A4 portrait;
    margin: 12mm;
  }

  body.print-medication {
    background: #fff !important;
    color: #111 !important;
  }

  body.print-medication .app-sidebar,
  body.print-medication .app-topbar,
  body.print-medication #viewDashboard,
  body.print-medication #viewDocuments,
  body.print-medication #viewInteractions,
  body.print-medication .offcanvas,
  body.print-medication .modal {
    display: none !important;
  }

  body.print-medication .app-shell,
  body.print-medication .app-main,
  body.print-medication .app-content {
    display: block !important;
    background: #fff !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  body.print-medication #viewMedication {
    display: block !important;
  }

  body.print-medication #viewMedication .card,
  body.print-medication #viewMedication .card-header,
  body.print-medication #viewMedication .card-body {
    background: #fff !important;
    color: #111 !important;
    border-color: #c8ced8 !important;
    box-shadow: none !important;
  }

  body.print-medication #viewMedication .btn {
    display: none !important;
  }

  body.print-medication #viewMedication .table {
    color: #111 !important;
    font-size: 10.5pt;
  }

  body.print-medication #viewMedication .table-light {
    --bs-table-bg: #f5f7fa;
    --bs-table-color: #111;
  }

  body.print-medication #viewMedication .table > :not(caption) > * > * {
    border-bottom-color: #c8ced8 !important;
  }

  body.print-medication #viewMedication .text-secondary,
  body.print-medication #viewMedication .small,
  body.print-medication #viewMedication .form-text {
    color: #475569 !important;
  }
}
