/* ================================================================
   HMIS — Custom Stylesheet
   Bootstrap 5 base + HMIS overrides
   Teal & White theme
   ================================================================ */

/* ── Variables ── */
:root {
  --teal-50:  #f0fdfa;
  --teal-100: #ccfbf1;
  --teal-200: #99f6e4;
  --teal-400: #2dd4bf;
  --teal-500: #14b8a6;
  --teal-600: #0d9488;
  --teal-700: #0f766e;
  --teal-800: #115e59;
  --teal-900: #134e4a;

  --slate-50:  #f8fafc;
  --slate-100: #f1f5f9;
  --slate-200: #e2e8f0;
  --slate-300: #cbd5e1;
  --slate-400: #94a3b8;
  --slate-500: #64748b;
  --slate-600: #475569;
  --slate-700: #334155;
  --slate-800: #1e293b;
  --slate-900: #0f172a;

  --sb-width:   258px;
  --topbar-h:   62px;
  --radius:     10px;
  --radius-lg:  14px;
  --radius-xl:  20px;

  --shadow-sm: 0 1px 3px rgba(0,0,0,.08);
  --shadow:    0 4px 16px rgba(13,148,136,.12), 0 1px 4px rgba(0,0,0,.06);
  --shadow-lg: 0 12px 40px rgba(0,0,0,.18);

  --font-body:    'DM Sans', sans-serif;
  --font-display: 'Fraunces', serif;
}

/* ── Reset & base ── */
*, *::before, *::after { box-sizing: border-box; }

body {
  font-family: var(--font-body);
  font-size: 14.5px;
  color: var(--slate-700);
  background: var(--slate-100);
  line-height: 1.55;
  margin: 0;
}

h1,h2,h3,h4,h5,h6 { font-family: var(--font-display); font-weight: 400; }

/* ================================================================
   LAYOUT — two-column on desktop, stacked on mobile
   ================================================================ */
.hmis-layout {
  display: flex;
  min-height: 100vh;
  position: relative;
}

.hmis-main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* ================================================================
   SIDEBAR  — THE KEY SECTION
   We build this from scratch, NOT using Bootstrap's offcanvas.
   Desktop: always visible, fixed left column.
   Mobile:  slides in from left, hidden by default.
   ================================================================ */
.hmis-sidebar {
  /* Always teal — never let Bootstrap touch this */
  background-color: var(--teal-900) !important;
  color: #fff;

  width: var(--sb-width);
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden;
  transition: none; /* Desktop: no transition needed */
  z-index: 200;
}

/* ── Mobile: sidebar becomes a slide-in drawer ── */
@media (max-width: 991.98px) {
  .hmis-sidebar {
    position: fixed !important;
    top: 0; left: 0; bottom: 0;
    width: min(280px, 85vw);
    transform: translateX(-100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1045;
    min-height: 100%;
    height: 100%;
    overflow-y: auto;
  }
  .hmis-sidebar.sb-open {
    transform: translateX(0);
    box-shadow: var(--shadow-lg);
  }

  /* Body shifted to right on desktop but NOT on mobile */
  .hmis-layout {
    display: block;
  }
  .hmis-main {
    width: 100%;
  }
}

/* ── Overlay behind open sidebar on mobile ── */
.sb-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 1044;
  backdrop-filter: blur(2px);
}
.sb-overlay.active { display: block; }

/* ── Sidebar Brand ── */
.sb-brand {
  background: rgba(0,0,0,0.2);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  flex-shrink: 0;
  min-height: 66px;
}
.sb-logo-icon {
  width: 38px; height: 38px;
  background: var(--teal-600);
  border-radius: 10px;
  display: grid; place-items: center;
  font-size: 17px; color: #fff;
  flex-shrink: 0;
}
.sb-logo-name {
  font-family: var(--font-display);
  font-size: 18px; font-weight: 500;
  color: #fff; line-height: 1.1;
}
.sb-logo-sub {
  font-size: 10px; color: var(--teal-400);
  text-transform: uppercase; letter-spacing: .06em;
}
/* Close button inside sidebar — mobile only */
.sb-close-btn {
  background: rgba(255,255,255,0.1);
  border: none;
  color: rgba(255,255,255,0.7);
  width: 32px; height: 32px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; font-size: 15px;
  transition: background 0.2s, color 0.2s;
  flex-shrink: 0;
}
.sb-close-btn:hover { background: rgba(255,255,255,0.2); color: #fff; }

/* ── User chip ── */
.sb-user {
  background: rgba(255,255,255,0.07);
  border-radius: var(--radius);
  flex-shrink: 0;
}
.sb-avatar {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--teal-600);
  display: grid; place-items: center;
  font-size: 13px; font-weight: 700; color: #fff;
  flex-shrink: 0;
}
.sb-uname { font-size: 13px; font-weight: 500; color: #fff; }
.sb-urole {
  font-size: 10.5px; color: var(--teal-400);
  text-transform: uppercase; letter-spacing: .04em;
}

/* ── Section label ── */
.sb-section-label {
  font-size: 10px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .08em;
  color: rgba(255,255,255,0.3);
  margin-top: 8px; margin-bottom: 4px;
}

/* ── Nav links ── */
.sb-link {
  border-radius: var(--radius);
  color: rgba(255,255,255,0.65) !important;
  text-decoration: none !important;
  font-size: 13.5px;
  transition: background 0.18s, color 0.18s;
}
.sb-link:hover { background: rgba(255,255,255,0.09); color: #fff !important; }
.sb-link.active { background: var(--teal-600) !important; color: #fff !important; font-weight: 600; }
.sb-icon { width: 18px; text-align: center; font-size: 14px; flex-shrink: 0; }

.sb-link-logout { color: rgba(255,255,255,0.5) !important; }
.sb-link-logout:hover { background: rgba(239,68,68,0.15) !important; color: #fca5a5 !important; }

/* ── Sidebar footer ── */
.sb-footer { border-top: 1px solid rgba(255,255,255,0.08); flex-shrink: 0; }

/* ── Hamburger toggle button ── */
.sb-toggle-btn {
  background: #fff;
  border: 1.5px solid var(--slate-200);
  border-radius: var(--radius);
  color: var(--slate-600);
  width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; font-size: 16px;
  flex-shrink: 0;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.sb-toggle-btn:hover { background: var(--slate-100); color: var(--teal-700); border-color: var(--teal-300); }

/* ================================================================
   TOPBAR
   ================================================================ */
.hmis-topbar {
  height: var(--topbar-h);
  background: #fff;
  border-bottom: 1.5px solid var(--slate-200);
  box-shadow: var(--shadow-sm);
  position: sticky; top: 0; z-index: 100;
  flex-shrink: 0;
}

.topbar-title {
  font-family: var(--font-display);
  font-size: clamp(14px, 2.5vw, 18px);
  font-weight: 400; color: var(--slate-800);
}
.topbar-date {
  font-size: 12.5px; color: var(--slate-400);
  white-space: nowrap;
}
.topbar-alert {
  color: #d97706;
  text-decoration: none;
  font-size: 19px;
  display: inline-flex;
}
.topbar-alert:hover { color: #b45309; }
.topbar-alert-badge {
  position: absolute; top: -5px; right: -8px;
  background: #dc2626; color: #fff;
  font-size: 9px; font-weight: 700;
  width: 17px; height: 17px; border-radius: 50%;
  display: grid; place-items: center;
}
.topbar-avatar {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--teal-700);
  display: grid; place-items: center;
  font-size: 12px; font-weight: 700; color: #fff;
  flex-shrink: 0;
}
.topbar-user-btn {
  background: none; border: none; cursor: pointer; padding: 4px;
}
.topbar-username {
  font-size: 13.5px; font-weight: 500; color: var(--slate-700);
}
.topbar-chevron { font-size: 10px; color: var(--slate-400); }

.hmis-dropdown {
  border-radius: 12px !important;
  border: 1px solid var(--slate-200) !important;
  padding: 4px !important;
  min-width: 180px;
}
.hmis-dropdown .dropdown-item {
  border-radius: 8px;
  font-size: 13.5px;
  padding: 8px 12px;
}
.hmis-dropdown .dropdown-item:hover { background: var(--slate-100); }

/* ================================================================
   PAGE CONTENT
   ================================================================ */
.hmis-content { flex: 1; min-width: 0; }

/* ================================================================
   PAGE HEADER
   ================================================================ */
.page-header { margin-bottom: 1.5rem; }
.page-header h1 {
  font-size: clamp(18px, 3vw, 24px);
  color: var(--slate-800); line-height: 1.2; margin-bottom: 3px;
}
.page-header p { color: var(--slate-400); font-size: 13.5px; margin: 0; }

/* ================================================================
   CARDS
   ================================================================ */
.hmis-card {
  background: #fff;
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  margin-bottom: 1.25rem;
}
.hmis-card-header {
  padding: 14px 18px;
  border-bottom: 1px solid var(--slate-100);
  display: flex; align-items: center;
  justify-content: space-between; gap: 10px;
  flex-wrap: wrap;
}
.hmis-card-title {
  font-family: var(--font-display);
  font-size: 15px; color: var(--slate-800); font-weight: 400;
}
.hmis-card-body { padding: 18px; }
.hmis-card-footer {
  padding: 12px 18px;
  background: var(--slate-50);
  border-top: 1px solid var(--slate-100);
}

/* ================================================================
   STAT CARDS
   ================================================================ */
.stat-card {
  background: #fff;
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-lg);
  padding: 18px 16px;
  box-shadow: var(--shadow-sm);
  display: flex; align-items: center;
  justify-content: space-between; gap: 12px;
  height: 100%;
  transition: transform 0.2s, box-shadow 0.2s;
}
.stat-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.stat-label {
  font-size: 11.5px; font-weight: 600;
  text-transform: uppercase; letter-spacing: .06em;
  color: var(--slate-400); margin-bottom: 4px;
}
.stat-value {
  font-family: var(--font-display);
  font-size: clamp(24px, 4vw, 32px);
  color: var(--slate-800); line-height: 1.1;
}
.stat-sub { font-size: 11.5px; color: var(--slate-400); margin-top: 3px; }
.stat-icon {
  width: 48px; height: 48px; border-radius: var(--radius);
  display: grid; place-items: center;
  font-size: 20px; flex-shrink: 0;
}
.stat-icon.teal  { background: #ccfbf1; color: #0f766e; }
.stat-icon.green { background: #dcfce7; color: #16a34a; }
.stat-icon.amber { background: #fef3c7; color: #d97706; }
.stat-icon.red   { background: #fee2e2; color: #dc2626; }
.stat-icon.blue  { background: #dbeafe; color: #2563eb; }

/* ================================================================
   TABLES
   ================================================================ */
.hmis-table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.hmis-table {
  width: 100%; border-collapse: collapse;
  min-width: 480px; margin: 0;
}
.hmis-table thead th {
  background: var(--slate-50);
  border-bottom: 1.5px solid var(--slate-200);
  padding: 10px 14px;
  font-size: 11.5px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .05em;
  color: var(--slate-500); white-space: nowrap;
  text-align: left;
}
.hmis-table tbody td {
  padding: 11px 14px;
  border-bottom: 1px solid var(--slate-100);
  font-size: 13.5px; color: var(--slate-700);
  vertical-align: middle;
}
.hmis-table tbody tr:last-child td { border-bottom: none; }
.hmis-table tbody tr:hover { background: var(--teal-50); }

/* ================================================================
   STATUS PILLS / BADGES
   ================================================================ */
.status-pill {
  display: inline-flex; align-items: center;
  padding: 3px 10px; border-radius: 99px;
  font-size: 11.5px; font-weight: 600;
  letter-spacing: .02em; white-space: nowrap;
}
.pill-registered  { background: #dbeafe; color: #1d4ed8; }
.pill-screened    { background: #fef3c7; color: #b45309; }
.pill-with_doctor { background: #ccfbf1; color: #0f766e; }
.pill-referred    { background: #ede9fe; color: #6d28d9; }
.pill-discharged  { background: #dcfce7; color: #15803d; }
.pill-admitted    { background: #fee2e2; color: #b91c1c; }
.pill-on_duty     { background: #dcfce7; color: #15803d; }
.pill-on_leave    { background: #fef3c7; color: #b45309; }
.pill-overtime    { background: #fee2e2; color: #b91c1c; }
.pill-off_duty    { background: #f1f5f9; color: #64748b; }
.role-pill        { background: rgba(13,148,136,.12); color: var(--teal-700); }

/* ================================================================
   FORMS — Override Bootstrap defaults with our theme
   ================================================================ */
.form-label {
  font-size: 12.5px; font-weight: 600;
  color: var(--slate-600); margin-bottom: 5px;
}
.req { color: #dc2626; margin-left: 2px; }

.form-control,
.form-select {
  border: 1.5px solid var(--slate-300) !important;
  border-radius: var(--radius) !important;
  font-family: var(--font-body) !important;
  font-size: 14px !important;
  color: var(--slate-800) !important;
  padding: 9px 13px !important;
  background-color: #fff !important;
  transition: border-color .2s, box-shadow .2s !important;
}
.form-control:focus,
.form-select:focus {
  border-color: var(--teal-500) !important;
  box-shadow: 0 0 0 3px rgba(13,148,136,0.15) !important;
  outline: none !important;
}
.form-control::placeholder { color: var(--slate-300) !important; }
textarea.form-control { resize: vertical; min-height: 80px !important; }

.input-group-text {
  border: 1.5px solid var(--slate-300) !important;
  background: #fff !important;
  color: var(--slate-400) !important;
}

/* ================================================================
   BUTTONS — Our custom btn-teal + fix Bootstrap defaults
   ================================================================ */

/* Base btn override — ensure font is consistent */
.btn {
  font-family: var(--font-body) !important;
  border-radius: var(--radius) !important;
  font-weight: 500 !important;
  font-size: 13.5px !important;
  transition: all .18s !important;
}

/* Primary teal button */
.btn-teal {
  background-color: var(--teal-600) !important;
  border-color: var(--teal-600) !important;
  color: #fff !important;
}
.btn-teal:hover,
.btn-teal:focus,
.btn-teal:active {
  background-color: var(--teal-700) !important;
  border-color: var(--teal-700) !important;
  color: #fff !important;
  box-shadow: 0 4px 14px rgba(13,148,136,.35) !important;
}

/* Outline teal */
.btn-outline-teal {
  background-color: transparent !important;
  border: 1.5px solid var(--teal-600) !important;
  color: var(--teal-700) !important;
}
.btn-outline-teal:hover,
.btn-outline-teal:focus {
  background-color: var(--teal-50) !important;
  color: var(--teal-700) !important;
  border-color: var(--teal-600) !important;
}

/* Make sure Bootstrap's default outline buttons show borders */
.btn-outline-secondary {
  border: 1.5px solid var(--slate-300) !important;
  color: var(--slate-600) !important;
  background: #fff !important;
}
.btn-outline-secondary:hover {
  background: var(--slate-100) !important;
  border-color: var(--slate-400) !important;
  color: var(--slate-700) !important;
}
.btn-outline-danger {
  border: 1.5px solid #dc2626 !important;
  color: #dc2626 !important;
  background: transparent !important;
}
.btn-outline-danger:hover {
  background: #fee2e2 !important;
  color: #b91c1c !important;
}
.btn-outline-success {
  border: 1.5px solid #16a34a !important;
  color: #16a34a !important;
  background: transparent !important;
}
.btn-outline-success:hover {
  background: #dcfce7 !important;
  color: #15803d !important;
}

/* Danger filled */
.btn-danger {
  background-color: #dc2626 !important;
  border-color: #dc2626 !important;
  color: #fff !important;
}
.btn-danger:hover { background-color: #b91c1c !important; border-color: #b91c1c !important; }

/* Success filled */
.btn-success {
  background-color: #16a34a !important;
  border-color: #16a34a !important;
  color: #fff !important;
}
.btn-success:hover { background-color: #15803d !important; }

/* Touch target minimum on mobile */
@media (max-width: 767.98px) {
  .btn:not(.btn-sm) { min-height: 42px; }
  .btn-sm { min-height: 34px; }
}

/* ================================================================
   WARD PROGRESS BARS
   ================================================================ */
.ward-progress {
  height: 7px; border-radius: 99px;
  background: var(--slate-200); overflow: hidden;
  margin-top: 8px;
}
.ward-bar {
  height: 100%; border-radius: 99px;
  background: var(--teal-500);
  transition: width .7s ease;
}
.ward-bar.warn { background: #d97706; }
.ward-bar.full { background: #dc2626; }

/* ================================================================
   PATIENT FLOW PIPELINE
   ================================================================ */
.flow-pipeline {
  display: flex; align-items: center;
  overflow-x: auto; -webkit-overflow-scrolling: touch;
  flex-wrap: nowrap; gap: 0; padding-bottom: 4px;
}
.flow-step {
  display: flex; align-items: center; gap: 6px;
  padding: 9px 14px;
  background: var(--slate-100);
  font-size: 12.5px; white-space: nowrap; flex-shrink: 0;
  color: var(--slate-600);
}
.flow-step:first-child { border-radius: var(--radius) 0 0 var(--radius); }
.flow-step:last-child  { border-radius: 0 var(--radius) var(--radius) 0; }
.flow-step.active { background: var(--teal-600); color: #fff; }
.flow-count { font-weight: 700; font-size: 15px; }
.flow-arrow { color: var(--slate-300); font-size: 11px; flex-shrink: 0; }

/* ================================================================
   VITAL BOXES (screening form)
   ================================================================ */
.vital-box {
  background: var(--slate-50);
  border: 1.5px solid var(--slate-200);
  border-radius: var(--radius-lg);
  padding: 14px 10px 10px;
  text-align: center;
  transition: border-color .2s, background .2s;
}
.vital-box:focus-within {
  border-color: var(--teal-500);
  background: var(--teal-50);
}
.vital-emoji { font-size: 24px; margin-bottom: 6px; line-height: 1; }
.vital-box .form-control {
  text-align: center !important;
  font-size: 16px !important;
  font-weight: 600 !important;
  padding: 7px 6px !important;
}
.vital-unit { font-size: 11px; color: var(--slate-400); margin-top: 4px; }

/* ================================================================
   CHARTS
   ================================================================ */
.chart-container {
  position: relative; width: 100%; height: 220px;
}
@media (max-width: 575.98px) { .chart-container { height: 180px; } }

/* ================================================================
   PRESCRIPTION MED ROWS
   ================================================================ */
.rx-badge {
  background: var(--teal-600); color: #fff;
  font-size: 11px; font-weight: 700;
  padding: 3px 10px; border-radius: 99px;
}
.med-grid-header {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 80px 40px;
  gap: 8px; padding: 6px 0;
  font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .05em;
  color: var(--slate-400);
  border-bottom: 1.5px solid var(--slate-200);
}
.med-grid-row {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 80px 40px;
  gap: 8px; align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid var(--slate-100);
}
@media (max-width: 767.98px) {
  .med-grid-header { display: none; }
  .med-grid-row {
    grid-template-columns: 1fr 1fr;
    row-gap: 6px;
    border: 1px solid var(--slate-200);
    border-radius: var(--radius);
    padding: 10px; margin-bottom: 10px;
  }
  .med-grid-row > select { grid-column: 1/-1; }
  .med-grid-row > *:last-child { grid-column: 1/-1; }
}

/* ================================================================
   PATIENT BANNER (view page)
   ================================================================ */
.patient-banner {
  background: var(--teal-900); color: #fff;
  padding: 22px 20px;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}
.patient-banner h2 { font-size: clamp(16px, 3vw, 20px); margin: 0; }
.patient-banner p  { color: var(--teal-200); font-size: 13px; margin: 4px 0 0; }
.patient-avatar-lg {
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--teal-600);
  font-size: 20px; font-weight: 700;
  display: grid; place-items: center;
  flex-shrink: 0; color: #fff;
}

/* ================================================================
   AUTH / LOGIN PAGE
   ================================================================ */
.hmis-auth-bg {
  background: linear-gradient(135deg, var(--teal-900) 0%, var(--teal-700) 55%, var(--teal-500) 100%);
  min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
}
.auth-card {
  background: #fff;
  border-radius: var(--radius-xl);
  padding: clamp(24px, 5vw, 44px) clamp(18px, 5vw, 40px);
  width: 100%; max-width: 420px;
  box-shadow: var(--shadow-lg);
  animation: fadeUp .45s ease both;
}
.auth-logo-icon {
  width: 60px; height: 60px;
  background: var(--teal-600); border-radius: 16px;
  display: inline-flex; align-items: center; justify-content: center;
  color: #fff; font-size: 26px;
}
.auth-card h1 { font-size: 24px; color: var(--slate-800); }

.demo-table .demo-row {
  display: flex; justify-content: space-between;
  padding: 6px 0;
  border-bottom: 1px solid var(--teal-100);
  font-size: 12.5px; color: var(--slate-600);
  cursor: pointer; transition: color .15s;
}
.demo-table .demo-row:last-child { border-bottom: none; }
.demo-table .demo-row:hover { color: var(--teal-700); }
.demo-table .demo-row strong { color: var(--slate-800); }

/* ================================================================
   UTILITIES
   ================================================================ */
.fw-500 { font-weight: 500 !important; }
.fw-600 { font-weight: 600 !important; }
.text-teal  { color: var(--teal-700) !important; }
.font-display { font-family: var(--font-display) !important; }
.low-stock-cell { color: #dc2626; font-weight: 600; }
.highlight-row td { background: var(--teal-50) !important; font-weight: 600; }

.empty-state {
  text-align: center; padding: 48px 20px; color: var(--slate-400);
}
.empty-state i { font-size: 44px; opacity: .3; margin-bottom: 12px; display: block; }
.empty-state p { font-size: 14px; margin: 0; }

/* ================================================================
   ANIMATIONS
   ================================================================ */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}
.fade-up { animation: fadeUp .35s ease both; }

/* ================================================================
   MATERNITY MODULE STYLES
   ================================================================ */

/* Maternity sub-nav tabs */
.mat-tab {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 8px 16px;
  background: #fff;
  border: 1.5px solid var(--slate-200);
  border-radius: 99px;
  color: var(--slate-600);
  text-decoration: none;
  font-size: 13px; font-weight: 500;
  transition: all .18s;
  white-space: nowrap;
}
.mat-tab:hover {
  background: var(--teal-50);
  border-color: var(--teal-400);
  color: var(--teal-700);
}
.mat-tab.active {
  background: var(--teal-600);
  border-color: var(--teal-600);
  color: #fff;
}

/* FHR warning highlight in partograph */
.table-warning td { background: #fffbeb !important; }

/* APGAR score colours */
.apgar-high   { color: #15803d; font-weight: 700; }
.apgar-medium { color: #d97706; font-weight: 700; }
.apgar-low    { color: #dc2626; font-weight: 700; }

/* Danger sign pill */
.danger-pill {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 2px 8px; border-radius: 99px;
  background: #fee2e2; color: #b91c1c;
  font-size: 11px; font-weight: 600;
}

/* ================================================================
   PRINT
   ================================================================ */
@media print {
  .hmis-sidebar, .hmis-topbar, .sb-toggle-btn,
  .dropdown, .btn { display: none !important; }
  .hmis-layout { display: block; }
  .hmis-main { width: 100%; }
  .hmis-content { padding: 0 !important; }
  .hmis-card { box-shadow: none; border: 1px solid #ccc; }
  body { background: #fff; font-size: 12px; }
}
