/*# sourceMappingURL=custom.min.css.map */
/* ===== GLOBAL LOADING OVERLAY ===== */
#overlay-spinner {
  position: fixed;
  inset: 0;
  z-index: 20000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at top, rgba(20, 184, 166, 0.18), transparent 34%), rgba(15, 23, 42, 0.58);
  backdrop-filter: blur(7px);
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

#overlay-spinner.d-none {
  display: none !important;
}

.spinner-center {
  position: relative;
  min-width: 220px;
  padding: 28px 30px 24px;
  overflow: hidden;
  text-align: center;
  color: #0f172a;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.78);
  border-radius: 22px;
  box-shadow: 0 24px 70px rgba(15, 23, 42, 0.34);
  animation: spinnerFade 0.24s ease-out;
}

.spinner-center::before {
  position: absolute;
  inset: -60% auto auto -20%;
  width: 170px;
  height: 170px;
  content: "";
  background: rgba(37, 99, 235, 0.13);
  border-radius: 999px;
}

.spinner-orbit {
  position: relative;
  width: 62px;
  height: 62px;
  margin: 0 auto 14px;
  border: 3px solid rgba(37, 99, 235, 0.13);
  border-top-color: #2563eb;
  border-right-color: #14b8a6;
  border-radius: 50%;
  animation: spinnerRotate 0.82s linear infinite;
}

.spinner-orbit::after {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 18px;
  height: 18px;
  content: "";
  background: linear-gradient(135deg, #2563eb, #14b8a6);
  border-radius: 50%;
  box-shadow: 0 0 22px rgba(37, 99, 235, 0.42);
  transform: translate(-50%, -50%);
}

.spinner-text {
  position: relative;
  margin: 0;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.01em;
  color: #0f172a;
}

.spinner-subtext {
  position: relative;
  margin-top: 5px;
  font-size: 12px;
  color: #64748b;
}

@keyframes spinnerFade {
  from { opacity: 0; transform: translateY(8px) scale(0.96); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes spinnerRotate {
  to { transform: rotate(360deg); }
}

.ribbon {
  padding-right: 15px;
}

.select2-container .select2-selection--single {
  height: 38px !important;
  /* tinggi standar form-control */
  line-height: 38px !important;
}

.select2-selection__rendered {
  line-height: 36px !important;
}

.select2-selection__arrow {
  height: 36px !important;
}

.select2-container--disabled .select2-selection {
  background-color: #f8f9fa !important;
  cursor: not-allowed !important;
}

/* === Submenu ke kiri === */
.dropdown-submenu {
  position: relative;
}

.dropdown-submenu > .dropdown-menu {
  top: 0;
  right: 100%;
  /* arah ke kiri */
  left: auto;
  margin-top: -0.125rem;
  margin-right: 0.1rem;
}

/* Tanda panah kanan untuk item yang punya submenu */
.dropdown-item.dropdown-toggle::after {
  float: right;
  content: "›";
}

/* Hover agar submenu langsung muncul */
.dropdown-submenu:hover > .dropdown-menu {
  display: block;
}

.modal-xxl {
  max-width: 95% !important; /* Hampir full-screen */
}
.soap-cell {
  font-size: 0.9rem;
  line-height: 1.6;
}

.soap-block {
  margin-bottom: 12px;
}

.soap-title {
  font-weight: 600;
  color: #0d6efd;
  margin-bottom: 4px;
}

.soap-label {
  font-weight: normal;
  color: #6c757d;
  font-size: 0.85rem;
}

.soap-content {
  padding-left: 12px;
  white-space: normal;
}

.pin-container {
  display: flex;
  justify-content: center;
  gap: 10px;
}

.pin-box {
  width: 45px;
  height: 55px;
  border: 2px solid #ddd;
  text-align: center;
  font-size: 24px;
  border-radius: 6px;
}

.pin-box:focus {
  border-color: #4CAF50;
  outline: none;
}

.soap-entry {
  border-left: 4px solid #066b5e;
}

.soap-title {
  font-size: 13px;
  letter-spacing: 0.5px;
}

.soap-content {
  padding: 4px 0 6px 0;
  line-height: 1.5;
  white-space: normal;
}

.med-section {
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  background: #fff;
  margin-bottom: 18px;
}

.med-header {
  background: #f8fafc;
  border-bottom: 1px solid #e5e7eb;
  font-weight: 700;
  padding: 12px 16px;
  font-size: 18px;
  color: #1e293b;
}

.med-body {
  padding: 16px;
  font-size: 16px;
}

.med-row {
  display: flex;
  margin-bottom: 10px;
}

.med-label {
  width: 40%;
  font-weight: 600;
  color: #475569;
}

.med-value {
  width: 60%;
  font-weight: 500;
  color: #0f172a;
}

.vital-box {
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 16px;
  background: #f9fafb;
}

.vital-value {
  font-size: 28px;
  font-weight: 700;
}

.vital-label {
  font-size: 14px;
  color: #64748b;
}

.table {
  font-size: 15px;
}

.lab-report-card {
  border: 0;
  border-radius: 16px;
  box-shadow: 0 10px 28px rgba(15, 23, 42, .08);
}

.lab-report-header {
  background: linear-gradient(135deg, #066b5e, #0aa58f);
  color: #fff;
  border-radius: 16px 16px 0 0;
  padding: 18px 22px;
}

.filter-panel {
  background: #f8fafc;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  padding: 14px;
}

.order-group-row td {
  background: linear-gradient(90deg, #e7f8f5, #ffffff);
  color: #065f52;
  font-weight: 700;
  border-top: 2px solid #0c8f7b !important;
  padding: 12px 14px !important;
}

.patient-title {
  font-weight: 700;
  color: #111827;
}

.patient-meta,
.item-meta {
  font-size: 12px;
  color: #6b7280;
}

.item-title {
  font-weight: 700;
  color: #0f172a;
}

.hasil-value {
  font-weight: 800;
  font-size: 15px;
}

.flag-H {
  background: #fee2e2;
  color: #991b1b;
}

.flag-L {
  background: #dbeafe;
  color: #1e40af;
}

.flag-N {
  background: #dcfce7;
  color: #166534;
}

.flag-empty {
  background: #f3f4f6;
  color: #6b7280;
}

@media print {
  .no-print {
      display: none !important;
  }

  .lab-report-card {
      box-shadow: none;
  }
}

/* Wider horizontal navbar dropdowns */
@media (min-width: 1024.1px) {
  [data-layout=horizontal] .navbar-menu .navbar-nav .nav-item .menu-dropdown {
    min-width: 14rem;
  }

  [data-layout=horizontal] .navbar-menu .navbar-nav .nav-sm .nav-link {
    white-space: nowrap;
  }
}

