/* ============================================================
   SIMPUS Biaro — Custom Stylesheet
   ============================================================ */

:root {
  --simpus-primary:    #1a6b3c;
  --simpus-dark:       #0d4a28;
  --simpus-light:      #f0faf4;
  --simpus-accent:     #4ade80;
  --simpus-sidebar-bg: #0d2b1a;
}

body {
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  color: #333;
}

/* ---- Sidebar ---- */
.main-sidebar {
  background: var(--simpus-sidebar-bg) !important;
}
.sidebar .nav-link {
  border-radius: 8px;
  margin: 2px 8px;
  padding: 8px 12px;
  transition: all 0.2s;
  font-size: 13px;
}
.sidebar .nav-link:hover,
.sidebar .nav-link.active {
  background: var(--simpus-primary) !important;
  color: #fff !important;
}
.sidebar .nav-link .nav-icon {
  color: rgba(255,255,255,0.6);
  width: 1.4rem;
}
.sidebar .nav-link.active .nav-icon,
.sidebar .nav-link:hover .nav-icon {
  color: #fff;
}
.sidebar .nav-treeview .nav-link {
  padding-left: 2.5rem;
  font-size: 12.5px;
}
.nav-header {
  padding: 8px 16px 4px;
}
.main-sidebar .brand-link {
  border-bottom: 1px solid rgba(255,255,255,0.1) !important;
}

/* ---- Cards ---- */
.card {
  border: none;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.07);
}
.card-header {
  border-radius: 12px 12px 0 0 !important;
  font-weight: 600;
  font-size: 14px;
}
.card-header.bg-success {
  background: linear-gradient(135deg, var(--simpus-primary) 0%, var(--simpus-dark) 100%) !important;
}

/* ---- Stat Cards ---- */
.stat-card {
  border-radius: 14px;
  padding: 1.25rem;
  color: #fff;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,0.12);
}
.stat-card::after {
  content: '';
  position: absolute;
  right: -20px; top: -20px;
  width: 100px; height: 100px;
  background: rgba(255,255,255,0.08);
  border-radius: 50%;
}
.stat-card .stat-icon {
  font-size: 2.5rem;
  opacity: 0.3;
  position: absolute;
  right: 18px; bottom: 10px;
}
.stat-card .stat-value {
  font-size: 2rem;
  font-weight: 700;
  line-height: 1;
}
.stat-card .stat-label {
  font-size: 12px;
  opacity: 0.85;
  margin-top: 4px;
}
.stat-card.green  { background: linear-gradient(135deg, #1a6b3c, #0d4a28); }
.stat-card.teal   { background: linear-gradient(135deg, #0891b2, #0e7490); }
.stat-card.cyan   { background: linear-gradient(135deg, #0f766e, #115e59); }
.stat-card.purple { background: linear-gradient(135deg, #7c3aed, #6d28d9); }
.stat-card.orange { background: linear-gradient(135deg, #ea580c, #c2410c); }
.stat-card.rose   { background: linear-gradient(135deg, #e11d48, #be123c); }

/* ---- Tables ---- */
.table thead th {
  background: var(--simpus-light);
  border-bottom: 2px solid #d1fae5;
  font-weight: 600;
  font-size: 13px;
  color: var(--simpus-dark);
}
.table td {
  vertical-align: middle;
  font-size: 13px;
}
.dataTables_wrapper .dataTables_length select,
.dataTables_wrapper .dataTables_filter input {
  border-radius: 8px;
  border: 1px solid #ced4da;
  padding: 4px 8px;
}
.dataTables_wrapper .dataTables_length label,
.dataTables_wrapper .dataTables_filter label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 0;
}
.dataTables_wrapper .dataTables_length select {
  min-width: 76px;
  height: calc(1.5em + 0.75rem + 2px);
  padding: 0.375rem 2.1rem 0.375rem 0.75rem;
  line-height: 1.5;
  vertical-align: middle;
  background-color: #fff;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 6'%3E%3Cpath fill='%235b6472' d='M0 0l5 6 5-6z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.7rem center;
  background-size: 10px 6px;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
}
.dataTables_wrapper .dataTables_length select::-ms-expand {
  display: none;
}
.dataTables_wrapper .dataTables_filter input {
  min-height: calc(1.5em + 0.75rem + 2px);
  padding: 0.375rem 0.75rem;
}

/* ---- Badges ---- */
.badge-status-menunggu  { background: #fef3c7; color: #92400e; }
.badge-status-diproses  { background: #ede9fe; color: #6d28d9; }
.badge-status-dipanggil { background: #dbeafe; color: #1e40af; }
.badge-status-dilayani  { background: #d1fae5; color: #065f46; }
.badge-status-selesai   { background: #e5e7eb; color: #374151; }
.badge-status-batal     { background: #fee2e2; color: #991b1b; }

/* ---- Forms ---- */
.form-control, .form-select {
  border-radius: 8px;
  font-size: 13px;
}
.form-control:focus {
  border-color: var(--simpus-primary);
  box-shadow: 0 0 0 3px rgba(26,107,60,0.15);
}
label {
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 4px;
}

/* ---- Buttons ---- */
.btn {
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
}
.btn-success, .btn-primary {
  background: linear-gradient(135deg, var(--simpus-primary), var(--simpus-dark)) !important;
  border-color: var(--simpus-dark) !important;
}
.btn-success:hover, .btn-primary:hover {
  opacity: 0.9;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(13,74,40,0.3);
}
.btn-light {
  background: #ffffff !important;
  border-color: rgba(13, 74, 40, 0.16) !important;
  color: var(--simpus-dark) !important;
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.08);
}
.btn-light:hover,
.btn-light:focus {
  background: #f0faf4 !important;
  border-color: rgba(13, 74, 40, 0.28) !important;
  color: var(--simpus-primary) !important;
  box-shadow: 0 10px 22px rgba(13, 74, 40, 0.12);
}
.btn-light i {
  color: inherit;
}
.card-header .btn-light,
.text-white .btn-light {
  color: var(--simpus-dark) !important;
  font-weight: 700;
}
.btn-sm { font-size: 12px; padding: 4px 10px; }

/* ---- Breadcrumb ---- */
.content-header {
  padding: 10px 0 !important;
}
.breadcrumb-item + .breadcrumb-item::before {
  color: #aaa;
}

/* ---- Antrian Number Display ---- */
.antrian-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 50px; height: 50px;
  border-radius: 12px;
  background: var(--simpus-primary);
  color: #fff;
  font-size: 20px;
  font-weight: 700;
  box-shadow: 0 4px 12px rgba(26,107,60,0.3);
}

/* ---- Scrollbar ---- */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: #f1f1f1; }
::-webkit-scrollbar-thumb { background: #c8e6c9; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--simpus-primary); }

/* ---- Responsive ---- */
@media (max-width: 768px) {
  .stat-card .stat-value { font-size: 1.5rem; }
  .content-header h1 { font-size: 16px; }
}

/* ---- Reporting ---- */
.report-hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at top left, rgba(45, 212, 191, 0.28), transparent 34%),
    radial-gradient(circle at right center, rgba(59, 130, 246, 0.18), transparent 28%),
    linear-gradient(135deg, #f7fffd 0%, #edf7ff 48%, #f8fafc 100%);
  border: 1px solid rgba(148, 163, 184, 0.14);
  box-shadow: 0 24px 54px rgba(15, 23, 42, 0.08);
}
.report-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.55) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.5) 1px, transparent 1px);
  background-size: 28px 28px;
  opacity: 0.45;
  pointer-events: none;
}
.report-hero .card-body,
.report-panel .card-body,
.report-table-card .card-body {
  position: relative;
  z-index: 1;
}
.report-kicker {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(15, 118, 110, 0.1);
  color: #0f766e;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.report-hero-title {
  margin: 16px 0 12px;
  font-size: 2.25rem;
  line-height: 1.1;
  font-weight: 800;
  color: #0f172a;
  max-width: 720px;
}
.report-hero-text {
  max-width: 720px;
  color: #475569;
  font-size: 15px;
  line-height: 1.75;
  margin-bottom: 0;
}
.report-hero-meta {
  display: flex;
  flex-wrap: wrap;
  margin-top: 22px;
  gap: 10px;
}
.report-chip {
  display: inline-flex;
  align-items: center;
  padding: 9px 14px;
  border-radius: 999px;
  background: rgba(255,255,255,0.72);
  border: 1px solid rgba(148, 163, 184, 0.18);
  color: #0f172a;
  font-size: 12px;
  font-weight: 600;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.05);
}
.report-chip i {
  margin-right: 8px;
  color: #0f766e;
}
.report-hero-stat {
  height: 100%;
  padding: 18px 18px 16px;
  border-radius: 20px;
  background: rgba(255,255,255,0.76);
  border: 1px solid rgba(148, 163, 184, 0.16);
  backdrop-filter: blur(10px);
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.06);
}
.report-hero-stat-accent {
  background: linear-gradient(135deg, rgba(15, 118, 110, 0.12), rgba(14, 165, 233, 0.08));
}
.report-hero-stat-label {
  color: #64748b;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
}
.report-hero-stat-value {
  margin-top: 8px;
  color: #0f172a;
  font-size: 2rem;
  line-height: 1;
  font-weight: 800;
}
.hero-stat-cluster {
  letter-spacing: -0.02em;
}
.report-hero-stat-note {
  margin-top: 8px;
  color: #475569;
  font-size: 12px;
  line-height: 1.5;
}
.report-filter-card {
  height: 100%;
  padding: 22px;
  border-radius: 24px;
  background: rgba(8, 47, 73, 0.94);
  color: #e2e8f0;
  box-shadow: 0 24px 48px rgba(2, 8, 23, 0.28);
}
.report-filter-head {
  display: flex;
  align-items: center;
  margin-bottom: 18px;
}
.report-filter-icon {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-right: 12px;
  background: rgba(255,255,255,0.12);
  color: #99f6e4;
  font-size: 15px;
}
.report-filter-title {
  color: #fff;
  font-size: 16px;
  font-weight: 700;
}
.report-filter-subtitle {
  color: rgba(226, 232, 240, 0.75);
  font-size: 12px;
  line-height: 1.5;
  margin-top: 2px;
}
.report-filter-card label {
  color: #cbd5e1;
  font-weight: 600;
}
.report-filter-card .form-control {
  background: rgba(255,255,255,0.96);
  border-color: rgba(255,255,255,0.24);
}
.btn-report-primary {
  color: #fff;
  background: linear-gradient(135deg, #14b8a6, #0f766e);
  border-color: #0f766e;
  box-shadow: 0 12px 24px rgba(15, 118, 110, 0.24);
}
.btn-report-primary:hover {
  color: #fff;
}
.executive-metric-card {
  height: 100%;
  padding: 20px 18px;
  border-radius: 20px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  border: 1px solid rgba(226, 232, 240, 0.95);
  box-shadow: 0 16px 34px rgba(15, 23, 42, 0.05);
}
.executive-metric-icon {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  margin-bottom: 16px;
}
.executive-metric-value {
  color: #0f172a;
  font-size: 1.9rem;
  font-weight: 800;
  line-height: 1;
}
.executive-metric-label {
  margin-top: 10px;
  color: #0f172a;
  font-weight: 700;
  font-size: 13px;
}
.executive-metric-note {
  margin-top: 6px;
  color: #64748b;
  font-size: 12px;
  line-height: 1.6;
}
.report-panel,
.report-table-card {
  border: 1px solid rgba(226, 232, 240, 0.85);
  box-shadow: 0 18px 42px rgba(15, 23, 42, 0.05);
}
.report-panel-head,
.report-table-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 24px 0;
}
.report-table-header.compact {
  padding-bottom: 14px;
}
.report-panel-title,
.report-table-header h5 {
  color: #0f172a;
  font-size: 1.35rem;
  font-weight: 800;
  margin-top: 12px;
}
.report-panel-text {
  margin: 10px 0 0;
  color: #64748b;
  font-size: 13px;
  line-height: 1.7;
  max-width: 620px;
}
.report-inline-pill {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  padding: 10px 14px;
  border-radius: 999px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  color: #334155;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}
.report-chart-shell {
  height: 320px;
  padding: 18px;
  border-radius: 22px;
  background:
    linear-gradient(180deg, rgba(248, 250, 252, 0.96), rgba(241, 245, 249, 0.92));
  border: 1px solid rgba(226, 232, 240, 0.92);
}
.executive-insight-card {
  padding: 18px;
  border-radius: 18px;
  background: linear-gradient(135deg, #0f766e, #0f172a);
  color: #fff;
  box-shadow: 0 16px 34px rgba(15, 118, 110, 0.22);
}
.executive-insight-soft {
  background: linear-gradient(180deg, #f8fafc, #eff6ff);
  color: #0f172a;
  box-shadow: none;
  border: 1px solid rgba(226, 232, 240, 0.9);
}
.executive-insight-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.78;
}
.executive-insight-value {
  margin-top: 10px;
  font-size: 2rem;
  font-weight: 800;
  line-height: 1.1;
}
.executive-insight-sm {
  font-size: 1.05rem;
  line-height: 1.45;
}
.executive-insight-note {
  margin-top: 8px;
  font-size: 12px;
  line-height: 1.6;
  opacity: 0.88;
}
.executive-insight-footnote {
  margin-top: 12px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.03em;
  opacity: 0.72;
}
.cluster-rank-list {
  margin-top: 20px;
}
.cluster-rank-item + .cluster-rank-item {
  margin-top: 14px;
}
.cluster-rank-item {
  padding: 16px;
  border-radius: 18px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
}
.cluster-rank-top,
.cluster-rank-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.cluster-rank-title {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #0f172a;
  font-weight: 700;
}
.cluster-rank-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 50px;
  padding: 6px 10px;
  border-radius: 999px;
  color: #fff;
  font-size: 11px;
  font-weight: 800;
}
.cluster-rank-total {
  color: #0f172a;
  font-size: 1.15rem;
  font-weight: 800;
}
.cluster-rank-progress {
  margin: 12px 0 10px;
  height: 8px;
  border-radius: 999px;
  background: #e2e8f0;
  overflow: hidden;
}
.cluster-rank-progress span {
  display: block;
  height: 100%;
  border-radius: 999px;
}
.cluster-rank-meta {
  color: #64748b;
  font-size: 11px;
  font-weight: 700;
}
.report-standard-table tbody td {
  padding-top: 14px;
  padding-bottom: 14px;
}
.report-cluster-head {
  padding: 16px 20px;
  border-bottom: 1px solid rgba(226, 232, 240, 0.85);
  font-size: 14px;
}
.report-status-banner {
  display: flex;
  align-items: flex-start;
  padding: 16px 18px;
  border-radius: 18px;
  background: linear-gradient(135deg, #ecfeff, #f0fdfa);
  border: 1px solid rgba(45, 212, 191, 0.22);
  color: #134e4a;
}
.report-status-icon {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  flex: 0 0 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-right: 14px;
  background: rgba(15, 118, 110, 0.12);
  color: #0f766e;
}

@media (max-width: 991.98px) {
  .report-hero-title {
    font-size: 1.85rem;
  }
  .report-panel-head,
  .report-table-header {
    flex-direction: column;
  }
  .report-inline-pill {
    white-space: normal;
  }
}

@media (max-width: 767.98px) {
  .report-hero-title {
    font-size: 1.55rem;
  }
  .report-hero-stat,
  .executive-metric-card,
  .cluster-rank-item,
  .executive-insight-card,
  .report-filter-card {
    border-radius: 16px;
  }
  .report-chart-shell {
    height: 280px;
    padding: 14px;
  }
  .report-status-banner {
    flex-direction: column;
  }
  .report-status-icon {
    margin-right: 0;
    margin-bottom: 12px;
  }
}

/* ---- Master Lookup ---- */
.simpus-lookup-shell {
  position: relative;
}
.simpus-lookup-inline {
  margin-bottom: 8px;
}
.simpus-lookup-inline label,
.simpus-lookup-helper {
  font-size: 11px;
}
.simpus-lookup-input {
  font-size: 12px;
}
.simpus-master-picker {
  position: relative;
}
.simpus-master-search {
  margin-bottom: 6px;
}
.simpus-master-actions {
  margin-top: 6px;
}
.btn-xs {
  padding: 3px 8px;
  font-size: 11px;
  line-height: 1.2;
}
.simpus-lookup-helper {
  color: #6b7280;
  margin-top: 4px;
}
.simpus-selected-diagnosis,
.simpus-assessment-summary {
  min-height: 42px;
  border: 1px solid #d1d5db;
  border-radius: 10px;
  background: #f8fafc;
  padding: 8px 10px;
}
.simpus-selected-diagnosis.is-empty,
.simpus-assessment-summary.is-empty {
  background: #f9fafb;
}
.simpus-selected-code {
  font-weight: 700;
  color: #166534;
  font-size: 12px;
}
.simpus-selected-name {
  color: #111827;
  font-size: 12px;
  line-height: 1.35;
}
.simpus-diagnosis-chip {
  display: inline-flex;
  align-items: center;
  padding: 4px 8px;
  border-radius: 999px;
  margin: 0 6px 6px 0;
  background: #ecfdf5;
  border: 1px solid #bbf7d0;
  color: #166534;
  font-size: 11px;
  font-weight: 600;
}
.simpus-diagnosis-chip small {
  margin-left: 6px;
  font-size: 11px;
  font-weight: 400;
  color: #065f46;
}
.simpus-lookup-results {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  z-index: 1055;
  background: #fff;
  border: 1px solid #d1d5db;
  border-radius: 10px;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.12);
  max-height: 260px;
  overflow-y: auto;
  display: none;
}
.simpus-lookup-item {
  display: block;
  width: 100%;
  padding: 8px 10px;
  border: 0;
  background: transparent;
  text-align: left;
  font-size: 12px;
  line-height: 1.35;
}
.simpus-lookup-item + .simpus-lookup-item {
  border-top: 1px solid #eef2f7;
}
.simpus-lookup-item:hover,
.simpus-lookup-item:focus {
  background: #f8fafc;
  outline: none;
}
.simpus-lookup-item strong {
  color: #0f172a;
}
.simpus-lookup-empty {
  padding: 10px 12px;
  font-size: 12px;
  color: #475569;
}
.simpus-lookup-empty.is-warning {
  color: #92400e;
  background: #fff7ed;
}

/* ---- Draft Resep Klinik -> Farmasi ---- */
.draft-resep-card {
  overflow: visible;
  border: 1px solid rgba(148, 163, 184, 0.14);
  box-shadow: 0 18px 44px rgba(15, 23, 42, 0.08);
}
.draft-resep-header {
  padding: 18px 20px !important;
  background:
    radial-gradient(circle at top left, rgba(45, 212, 191, 0.16), transparent 34%),
    linear-gradient(135deg, #f6fffc 0%, #effcf8 44%, #f7fbff 100%);
  border-bottom: 1px solid rgba(167, 243, 208, 0.7);
}
.draft-resep-title-wrap {
  display: flex;
  align-items: center;
  gap: 14px;
}
.draft-resep-icon {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #0f766e 0%, #14b8a6 100%);
  color: #fff;
  box-shadow: 0 14px 28px rgba(15, 118, 110, 0.28);
  font-size: 15px;
}
.draft-resep-title {
  display: block;
  color: #064e3b;
  font-size: 1.05rem;
  line-height: 1.2;
}
.draft-resep-subtitle {
  margin-top: 4px;
  color: #64748b;
  font-size: 12px;
  line-height: 1.5;
}
.draft-resep-toggle-wrap {
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,0.78);
  border: 1px solid rgba(148, 163, 184, 0.16);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
}
.draft-resep-pill {
  background: #ecfdf5;
  color: #047857;
  border: 1px solid rgba(52, 211, 153, 0.38);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.03em;
}
.draft-resep-toggle-label {
  padding-top: 2px;
  color: #334155;
  font-size: 13px;
}
.draft-resep-body {
  padding: 20px;
  background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
}
.draft-resep-intro {
  padding: 14px 16px;
  border-radius: 16px;
  background: #f8fafc;
  border: 1px solid rgba(226, 232, 240, 0.9);
  color: #475569;
  font-size: 13px;
  line-height: 1.65;
}
.draft-resep-statusbar {
  padding: 12px 14px;
  border-radius: 16px;
  background: #f8fafc;
  border: 1px solid rgba(226, 232, 240, 0.9);
}
.draft-resep-statusmeta {
  font-size: 12px;
  line-height: 1.6;
}
.draft-resep-link {
  border-width: 1px;
  font-weight: 700;
}
.draft-resep-alert {
  border-radius: 16px;
  font-size: 12px;
  line-height: 1.6;
}
.draft-resep-editor {
  margin-top: 4px;
  overflow: visible;
}
.draft-resep-table-wrap {
  padding: 12px;
  border-radius: 22px;
  background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
  border: 1px solid rgba(226, 232, 240, 0.95);
  overflow: visible;
}
.draft-resep-table {
  margin-bottom: 0;
  border-collapse: separate;
  border-spacing: 0 10px;
}
.draft-resep-table thead th {
  border-top: 0;
  border-bottom: 0;
  padding: 0 14px 6px;
  background: transparent;
  color: #64748b;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.draft-resep-table tbody tr {
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.05);
}
.draft-resep-table tbody td {
  position: relative;
  padding: 14px;
  vertical-align: top;
  background: #fff;
  border-top: 1px solid rgba(226, 232, 240, 0.9);
  border-bottom: 1px solid rgba(226, 232, 240, 0.9);
}
.draft-resep-col-obat {
  overflow: visible !important;
}
.draft-resep-col-obat .simpus-lookup-results {
  top: calc(100% - 2px);
}
.draft-resep-table tbody td:first-child {
  border-left: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: 18px 0 0 18px;
}
.draft-resep-table tbody td:last-child {
  border-right: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: 0 18px 18px 0;
}
.draft-resep-search-group .form-control,
.draft-resep-qty-group .form-control,
.draft-resep-col-aturan .form-control,
.draft-resep-col-catatan .form-control {
  min-height: 42px;
  border-color: #d7e0ea;
  border-radius: 12px;
  box-shadow: none;
}
.draft-resep-search-group .form-control:focus,
.draft-resep-qty-group .form-control:focus,
.draft-resep-col-aturan .form-control:focus,
.draft-resep-col-catatan .form-control:focus {
  border-color: #14b8a6;
  box-shadow: 0 0 0 0.2rem rgba(20, 184, 166, 0.12);
}
.draft-resep-search-icon,
.draft-resep-satuan-label {
  min-width: 44px;
  border-color: #d7e0ea;
  background: #f8fafc;
  color: #64748b;
  font-weight: 700;
}
.draft-resep-search-group .input-group-text {
  border-radius: 12px 0 0 12px;
}
.draft-resep-qty-group .input-group-text {
  border-radius: 0 12px 12px 0;
}
.draft-resep-meta {
  line-height: 1.55;
  font-size: 12px;
  display: block;
  margin-top: 12px !important;
}
.draft-resep-stock-badge {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 8px 10px;
  border-radius: 12px;
  white-space: normal;
  text-align: left;
  line-height: 1.45;
  font-size: 11px;
  font-weight: 700;
}
.draft-resep-remove-btn {
  width: 38px;
  height: 38px;
  padding: 0;
  border-radius: 12px;
  border-width: 1px;
}
.draft-resep-footer {
  margin-top: 14px;
}
.draft-resep-footnote {
  max-width: 760px;
  font-size: 12px;
  line-height: 1.65;
}
.draft-resep-add-btn {
  min-height: 42px;
  padding: 0 16px;
  border-radius: 14px;
  font-weight: 700;
  border-width: 1px;
}

@media (max-width: 991.98px) {
  .draft-resep-header,
  .draft-resep-body {
    padding-left: 16px !important;
    padding-right: 16px !important;
  }
  .draft-resep-toggle-wrap {
    width: 100%;
    justify-content: space-between;
  }
}

@media (max-width: 767.98px) {
  .draft-resep-title-wrap {
    align-items: flex-start;
  }
  .draft-resep-table-wrap {
    padding: 10px;
  }
  .draft-resep-table {
    min-width: 860px;
  }
}

/* ---- Monitoring Pasien ---- */
.monitor-hero,
.monitor-detail-hero {
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  padding: 1.6rem;
  background:
    radial-gradient(circle at top left, rgba(16, 185, 129, 0.18), transparent 32%),
    radial-gradient(circle at right center, rgba(14, 165, 233, 0.14), transparent 28%),
    linear-gradient(135deg, #fcfffd 0%, #f0faf4 45%, #eef8ff 100%);
  box-shadow: 0 16px 34px rgba(13, 74, 40, 0.08);
}
.monitor-kicker {
  color: #0f766e;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  margin-bottom: 8px;
}
.monitor-title {
  color: #0d4a28;
  font-size: 28px;
  font-weight: 800;
  line-height: 1.08;
}
.monitor-subtitle {
  color: #5f6e67;
  font-size: 14px;
  line-height: 1.7;
  max-width: 760px;
}
.monitor-filter-card {
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(13, 74, 40, 0.08);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.75);
  padding: 1rem 1rem 0.85rem;
}
.monitor-stage-card {
  height: 100%;
  border: 1px solid rgba(15, 23, 42, 0.06);
  border-radius: 16px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fcf9 100%);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
  padding: 1rem 1rem 0.95rem;
}
.monitor-stage-label,
.monitor-field-label {
  color: #7a8897;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 6px;
}
.monitor-stage-value {
  color: #102a1c;
  font-size: 24px;
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 6px;
}
.monitor-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  border: 1px solid rgba(13, 74, 40, 0.12);
  background: rgba(255, 255, 255, 0.82);
  border-radius: 999px;
  color: #114b30;
  font-size: 12px;
  font-weight: 600;
  padding: 0.45rem 0.75rem;
  margin: 0 8px 8px 0;
}
.monitor-timeline {
  position: relative;
  padding-left: 18px;
}
.monitor-timeline::before {
  content: '';
  position: absolute;
  left: 14px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, rgba(13, 74, 40, 0.18), rgba(13, 74, 40, 0.05));
}
.monitor-timeline-item {
  position: relative;
  padding-left: 42px;
  margin-bottom: 1.25rem;
}
.monitor-timeline-item:last-child {
  margin-bottom: 0;
}
.monitor-timeline-marker {
  position: absolute;
  left: 0;
  top: 0;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.12);
}
.monitor-timeline-content {
  border: 1px solid rgba(15, 23, 42, 0.06);
  border-radius: 14px;
  background: #fff;
  padding: 0.95rem 1rem;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.04);
}
.monitor-richtext {
  background: #f8fbf9;
  border: 1px solid #edf2ef;
  border-radius: 12px;
  padding: 0.8rem 0.9rem;
  min-height: 52px;
  line-height: 1.65;
}
.monitor-order-card {
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 16px;
  background: linear-gradient(180deg, #ffffff 0%, #fbfffc 100%);
  padding: 1rem;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.05);
}
.monitor-order-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 0.9rem;
}
.monitor-order-title {
  color: #102a1c;
  font-size: 18px;
  font-weight: 800;
  line-height: 1.2;
}
.monitor-mini-list-item {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  border: 1px solid #edf2ef;
  background: #fbfcfd;
  border-radius: 12px;
  padding: 0.75rem 0.85rem;
  margin-bottom: 0.75rem;
}
.monitor-mini-list-item:last-child {
  margin-bottom: 0;
}

@media (max-width: 768px) {
  .monitor-title {
    font-size: 22px;
  }
  .monitor-order-head {
    flex-direction: column;
  }
  .monitor-stage-value {
    font-size: 20px;
  }
}
