@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/PlusJakartaSans-Italic-400.ttf') format('truetype');
}

@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/PlusJakartaSans-Regular-400.ttf') format('truetype');
}

@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../fonts/PlusJakartaSans-Medium-500.ttf') format('truetype');
}

@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../fonts/PlusJakartaSans-SemiBold-600.ttf') format('truetype');
}

@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/PlusJakartaSans-Bold-700.ttf') format('truetype');
}

* {
  font-family: 'Plus Jakarta Sans', sans-serif;
}

/* ── Login Modern ── */
body.login {
  background: linear-gradient(135deg, #f0f2f5 0%, #e8ebf0 50%, #f5f0f0 100%) !important;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  position: relative;
  overflow: hidden;
}
body.login::before {
  content: '';
  position: absolute;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(211,47,47,0.08) 0%, transparent 70%);
  top: -150px;
  right: -150px;
  pointer-events: none;
}
body.login::after {
  content: '';
  position: absolute;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(6,182,212,0.06) 0%, transparent 70%);
  bottom: -100px;
  left: -100px;
  pointer-events: none;
}
body.login > .login_wrapper {
  position: relative;
  z-index: 1;
}
.login-bg-blob {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}
.login-bg-blob.blob-1 {
  width: 280px;
  height: 280px;
  background: radial-gradient(circle, rgba(211,47,47,0.06) 0%, transparent 70%);
  bottom: 10%;
  right: 15%;
}
.login-bg-blob.blob-2 {
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(6,182,212,0.05) 0%, transparent 70%);
  top: 20%;
  left: 10%;
}
body.login, body.login * {
  box-sizing: border-box;
}
body.login .login_wrapper,
body.login .login_form,
body.login .login_content {
  all: unset;
  display: block;
  width: 100%;
  max-width: 420px;
}
body.login .login_card {
  background: transparent;
  perspective: 1000px;
  width: 100%;
  max-width: 420px;
}
body.login .card_inner {
  background: #fff;
  border-radius: 24px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.08), 0 8px 20px rgba(0,0,0,0.06);
  padding: 48px 40px 40px;
  transition: transform 0.6s cubic-bezier(0.23, 1, 0.32, 1);
  transform-style: preserve-3d;
  position: relative;
}
body.login .login_card.flipped .card_inner {
  transform: rotateY(180deg);
}
body.login .card_face {
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}
body.login .card_front {
  display: block;
}
body.login .card_back {
  display: block;
  position: absolute;
  top: 0; left: 0; right: 0;
  padding: 48px 40px 40px;
  transform: rotateY(180deg);
}
body.login .login_card:hover .card_inner {
  transform: none;
}
body.login .login_card.flipped:hover .card_inner {
  transform: rotateY(180deg);
}
body.login .login_logo {
  text-align: center;
  margin-bottom: 8px;
}
body.login .login_logo img {
  height: 48px;
  width: auto;
}
body.login .login_title {
  text-align: center;
  font-size: 14px;
  font-weight: 500;
  color: #6b7280;
  letter-spacing: 0.3px;
  margin-bottom: 32px;
}
body.login .login_title strong {
  color: #D32F2F;
  font-weight: 700;
}
body.login .form_group {
  margin-bottom: 20px;
}
body.login .form_group label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: #374151;
  margin-bottom: 6px;
  letter-spacing: 0.2px;
}
body.login .form_group .input_wrap {
  position: relative;
}
body.login .form_group .input_wrap .fa {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: #9ca3af;
  font-size: 16px;
  pointer-events: none;
}
body.login .form_group .form-control {
  height: 48px;
  border-radius: 12px;
  border: 1.5px solid #e5e7eb;
  padding: 0 14px 0 42px;
  font-size: 14px;
  font-weight: 400;
  color: #111827;
  background: #f9fafb;
  transition: all 0.2s ease;
  box-shadow: none;
}
body.login .form_group .form-control:focus {
  border-color: #D32F2F;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(211,47,47,0.1);
}
body.login .form_group .form-control::placeholder {
  color: #9ca3af;
  font-weight: 400;
}
body.login .form_group select.form-control {
  padding: 0 14px 0 42px;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%239ca3af' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
}
body.login .btn-login {
  width: 100%;
  height: 48px;
  border-radius: 12px;
  border: none;
  background: #D32F2F;
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.3px;
  cursor: pointer;
  transition: all 0.2s ease;
}
body.login .btn-login:hover {
  background: #b71c1c;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(211,47,47,0.3);
}
body.login .btn-login:active {
  transform: translateY(0);
}
body.login .card_switch {
  text-align: center;
  margin-top: 20px;
}
body.login .card_switch a {
  font-size: 12px;
  font-weight: 600;
  color: #9ca3af;
  text-decoration: none;
  transition: color 0.2s;
}
body.login .card_switch a:hover {
  color: #D32F2F;
}
body.login .login_footer {
  text-align: center;
  margin-top: 32px;
}
body.login .login_footer .brand {
  font-size: 13px;
  font-weight: 600;
  color: #374151;
}
body.login .login_footer .brand .fa {
  color: #D32F2F;
  margin-right: 4px;
}
body.login .login_footer .copy {
  font-size: 11px;
  color: #9ca3af;
  margin-top: 4px;
}
@media (max-width: 480px) {
  body.login .login_card { padding: 32px 24px 28px; }
}

/* ── Override Gentelella default ── */
body.login .login_wrapper {
  width: auto;
  margin: 0;
  max-width: none;
}

/* ── Dashboard Cards ── */
.x_panel {
  border: none !important;
  border-radius: 16px !important;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04), 0 4px 16px rgba(0,0,0,0.04) !important;
  margin-bottom: 24px;
  overflow: hidden;
}
.x_panel .x_title {
  border-bottom: 1px solid #f0f0f0 !important;
  padding: 20px 24px 16px !important;
}
.x_panel .x_title h2 {
  font-size: 16px;
  font-weight: 600;
  color: #111827;
}
.x_panel .x_title h2 small {
  font-size: 13px;
  color: #6b7280;
  font-weight: 400;
}
.x_panel .x_content {
  padding: 16px 24px 24px !important;
}

/* Stat cards (SB Admin style overrides) */
.right_col .row a[style*="text-decoration:none"] > .card {
  border: none !important;
  border-radius: 16px !important;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04), 0 4px 16px rgba(0,0,0,0.04) !important;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  background: #fff !important;
}
.right_col .row a[style*="text-decoration:none"] > .card:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.06), 0 12px 32px rgba(0,0,0,0.06) !important;
}
.right_col .row a[style*="text-decoration:none"] > .card .card-body {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px !important;
}
.right_col .row a[style*="text-decoration:none"] > .card .card-body .col.mr-2 {
  margin-right: 0;
  padding: 0;
  flex: 1;
}
.right_col .row a[style*="text-decoration:none"] > .card .count_top h5 {
  font-size: 12px;
  font-weight: 600;
  color: #6b7280;
  letter-spacing: 0.3px;
  text-transform: uppercase;
  margin: 0 0 4px;
}
.right_col .row a[style*="text-decoration:none"] > .card .count.green h3,
.right_col .row a[style*="text-decoration:none"] > .card .count.green h3 small {
  font-size: 24px;
  font-weight: 700;
  color: #111827;
  margin: 0;
}
.right_col .row a[style*="text-decoration:none"] > .card .count_bottom h6 {
  font-size: 12px;
  font-weight: 500;
  color: #6b7280;
  margin: 4px 0 0;
}
.right_col .row a[style*="text-decoration:none"] > .card .count_bottom .green,
.right_col .row a[style*="text-decoration:none"] > .card .count_bottom i.green {
  color: #059669;
}
.right_col .row a[style*="text-decoration:none"] > .card .count_bottom .red,
.right_col .row a[style*="text-decoration:none"] > .card .count_bottom i.red {
  color: #dc2626;
}
.right_col .row a[style*="text-decoration:none"] > .card .col-auto i.fas {
  font-size: 28px;
  color: #e5e7eb;
}

/* Progres table */
.right_col .tile_info td p {
  margin: 0;
  font-size: 13px;
  color: #374151;
}

/* Last order list */
.media.event {
  border-bottom: 1px solid #f3f4f6;
  padding: 8px 0;
}
.media.event:last-child {
  border-bottom: none;
}
.media.event a.title {
  font-size: 13px;
  color: #374151;
  text-decoration: none;
}
.media.event a.title:hover {
  color: #D32F2F;
}
.media.event .green { color: #059669; font-weight: 600; }
.media.event .red { color: #dc2626; font-weight: 600; }

/* Page content spacing */
.right_col {
  padding: 24px !important;
}

/* ── Modern Form Fields ── */
.x_content .form_group {
  margin-bottom: 20px;
}
.x_content .form_group label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: #374151;
  margin-bottom: 6px;
  letter-spacing: 0.2px;
}
.x_content .form_group .input_wrap {
  position: relative;
}
.x_content .form_group .input_wrap .fa {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: #9ca3af;
  font-size: 16px;
  pointer-events: none;
  z-index: 2;
}
.x_content .form_group .form-control,
.x_content .form_group select.form-control {
  height: 44px;
  border-radius: 12px;
  border: 1.5px solid #e5e7eb;
  padding: 0 14px 0 42px;
  font-size: 14px;
  font-weight: 400;
  color: #111827;
  background: #f9fafb;
  transition: all 0.2s ease;
  box-shadow: none;
  width: 100%;
}
.x_content .form_group .form-control:focus {
  border-color: #D32F2F;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(211,47,47,0.1);
}
.x_content .form_group .form-control::placeholder {
  color: #9ca3af;
  font-weight: 400;
}
.x_content .form_group select.form-control {
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%239ca3af' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
}
.x_content .form_group .form-control[readonly] {
  background: #f3f4f6;
  cursor: not-allowed;
  opacity: 0.8;
}

/* ── Modern Tabs ── */
.nav-tabs.modern-tabs {
  border-bottom: 1px solid #f0f0f0;
  padding: 0;
  margin-bottom: 20px;
}
.nav-tabs.modern-tabs .nav-item {
  margin-bottom: -1px;
}
.nav-tabs.modern-tabs .nav-link {
  border: none;
  border-bottom: 2px solid transparent;
  padding: 12px 20px;
  font-size: 13px;
  font-weight: 600;
  color: #6b7280;
  background: none;
  transition: all 0.2s ease;
}
.nav-tabs.modern-tabs .nav-link:hover {
  color: #D32F2F;
  border-bottom-color: #e5e7eb;
}
.nav-tabs.modern-tabs .nav-link.active {
  color: #D32F2F;
  border-bottom-color: #D32F2F;
  background: none;
}
.nav-tabs.modern-tabs .nav-link .badge-tab {
  font-size: 10px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 10px;
  vertical-align: top;
  margin-left: 4px;
  background: #D32F2F;
  color: #fff;
}

/* ── Status Badge Pills ── */
.badge-status {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.2px;
}
.badge-status.badge-danger {
  background: #fef2f2;
  color: #dc2626;
}
.badge-status.badge-warning {
  background: #fffbeb;
  color: #d97706;
}
.badge-status.badge-success {
  background: #f0fdf4;
  color: #059669;
}
.badge-status.badge-info {
  background: #eff6ff;
  color: #2563eb;
}

/* ── Cito Badge ── */
.badge-cito {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fef3c7;
  color: #d97706;
  font-size: 10px;
  font-weight: 700;
  margin-left: 4px;
}

/* ── Modern Action Buttons ── */
.btn-action {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  border: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  cursor: pointer;
  text-decoration: none !important;
}
.btn-action:hover {
  transform: translateY(-1px);
}
.btn-action.btn-edit {
  background: #fffbeb;
  color: #d97706;
}
.btn-action.btn-edit:hover {
  background: #fef3c7;
  color: #b45309;
}
.btn-action.btn-view {
  background: #eff6ff;
  color: #2563eb;
}
.btn-action.btn-view:hover {
  background: #dbeafe;
  color: #1d4ed8;
}
.btn-action.btn-generate {
  background: #f0fdf4;
  color: #059669;
}
.btn-action.btn-generate:hover {
  background: #dcfce7;
  color: #047857;
}
.btn-action.btn-review {
  background: #f0fdf4;
  color: #059669;
}
.btn-action.btn-review:hover {
  background: #dcfce7;
  color: #047857;
}

/* ── Modern Table ── */
.table-modern {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
}
.table-modern thead th {
  padding: 12px 16px;
  font-size: 11px;
  font-weight: 700;
  color: #6b7280;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  background: #f9fafb;
  border-bottom: 2px solid #f0f0f0;
  white-space: nowrap;
}
.table-modern tbody td {
  padding: 12px 16px;
  font-size: 13px;
  color: #374151;
  border-bottom: 1px solid #f3f4f6;
  vertical-align: middle;
}
.table-modern tbody tr:hover {
  background: #fafafa;
}
.table-modern tbody tr:last-child td {
  border-bottom: none;
}

/* ── Patient Info Card ── */
.patient-card {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04), 0 4px 16px rgba(0,0,0,0.04);
  overflow: hidden;
  margin-bottom: 24px;
}
.patient-card .patient-header {
  padding: 20px 24px;
  background: linear-gradient(135deg, #f8f9fa 0%, #fff 100%);
  border-bottom: 1px solid #f0f0f0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.patient-card .patient-header h5 {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
  color: #111827;
}
.patient-card .patient-header .no-order {
  font-size: 12px;
  color: #6b7280;
  font-weight: 500;
}
.patient-card .patient-body {
  padding: 24px;
}
.patient-info-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px 40px;
}
.patient-info-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.patient-info-item .label {
  font-size: 11px;
  font-weight: 600;
  color: #9ca3af;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}
.patient-info-item .value {
  font-size: 14px;
  font-weight: 500;
  color: #111827;
}

/* ── Results Table ── */
.table-results {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
}
.table-results thead th {
  padding: 10px 16px;
  font-size: 11px;
  font-weight: 700;
  color: #6b7280;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  background: #f9fafb;
  border-bottom: 2px solid #f0f0f0;
  white-space: nowrap;
}
.table-results tbody td {
  padding: 10px 16px;
  font-size: 13px;
  color: #374151;
  border-bottom: 1px solid #f3f4f6;
  vertical-align: middle;
}
.table-results tbody tr:hover {
  background: #fafafa;
}
.input-result {
  height: 36px;
  border-radius: 8px;
  border: 1.5px solid #e5e7eb;
  padding: 0 12px;
  font-size: 13px;
  color: #111827;
  background: #fff;
  transition: all 0.2s ease;
  min-width: 140px;
}
.input-result:focus {
  border-color: #D32F2F;
  box-shadow: 0 0 0 3px rgba(211,47,47,0.1);
  outline: none;
}
select.input-result {
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 10 10'%3E%3Cpath fill='%239ca3af' d='M5 7L1 3h8z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  padding-right: 28px;
}

/* ── Modern Review Button ── */
.btn-review-lg {
  height: 40px;
  border-radius: 10px;
  border: none;
  padding: 0 24px;
  font-size: 13px;
  font-weight: 600;
  background: #059669;
  color: #fff;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s ease;
  cursor: pointer;
  text-decoration: none !important;
}
.btn-review-lg:hover {
  background: #047857;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(5,150,105,0.25);
  color: #fff;
}

/* ── Page Header ── */
.page-header-modern {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  flex-wrap: wrap;
  gap: 12px;
}
.page-header-modern h1 {
  font-size: 20px;
  font-weight: 700;
  color: #111827;
  margin: 0;
}

/* ── Action Group ── */
.action-group {
  display: flex;
  gap: 6px;
  justify-content: center;
}

/* ── Modern Tab Content ── */
.tab-content-modern {
  padding-top: 4px;
}
.tab-content-modern .tab-pane {
  animation: fadeIn 0.2s ease;
}
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* ── Add Button ── */
.btn-add-modern {
  height: 36px;
  border-radius: 10px;
  border: none;
  padding: 0 16px;
  font-size: 13px;
  font-weight: 600;
  background: #D32F2F;
  color: #fff;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
  cursor: pointer;
  text-decoration: none !important;
}
.btn-add-modern:hover {
  background: #b71c1c;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(211,47,47,0.25);
  color: #fff;
}

/* ── Back Button ── */
.btn-back-modern {
  height: 36px;
  border-radius: 10px;
  border: 1.5px solid #e5e7eb;
  padding: 0 16px;
  font-size: 13px;
  font-weight: 600;
  color: #6b7280;
  background: #fff;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
  cursor: pointer;
  text-decoration: none !important;
}
.btn-back-modern:hover {
  border-color: #d1d5db;
  color: #374151;
  background: #f9fafb;
}

/* ── Flash Alert Modern ── */
.alert-modern {
  border: none;
  border-radius: 12px;
  padding: 14px 20px;
  font-size: 13px;
  font-weight: 500;
}
.alert-modern.alert-success {
  background: #f0fdf4;
  color: #059669;
}
.alert-modern.alert-danger {
  background: #fef2f2;
  color: #dc2626;
}

/* ── Body & Container Background ── */
body {
  background: #f3f4f6 !important;
}
body .container.body .right_col {
  background: #f3f4f6 !important;
}

/* ── Welcome Banner ── */
.welcome-card {
  background: linear-gradient(135deg, #D32F2F 0%, #b71c1c 100%);
  border-radius: 16px;
  box-shadow: 0 4px 16px rgba(211,47,47,0.2);
  margin-bottom: 24px;
  overflow: hidden;
}
.welcome-card-body {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 28px;
}
.welcome-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: rgba(255,255,255,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  color: #fff;
  flex-shrink: 0;
}
.welcome-text {
  flex: 1;
}
.welcome-label {
  font-size: 12px;
  font-weight: 500;
  color: rgba(255,255,255,0.75);
  letter-spacing: 0.3px;
  text-transform: uppercase;
}
.welcome-name {
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  margin-top: 1px;
}

/* ── Dashboard Stat Cards Modern ── */
.stat-card {
  border: none !important;
  border-radius: 16px !important;
  overflow: hidden;
  position: relative;
  background: #fff !important;
  box-shadow: 0 1px 2px rgba(0,0,0,0.04), 0 4px 16px rgba(0,0,0,0.04) !important;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
a[style*="text-decoration:none"] > .stat-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.06), 0 12px 32px rgba(0,0,0,0.06) !important;
}
.stat-card-body {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 24px !important;
}
.stat-card-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}
.stat-icon-blue { background: #eff6ff; color: #3b82f6; }
.stat-icon-indigo { background: #eef2ff; color: #6366f1; }
.stat-icon-emerald { background: #f0fdf4; color: #059669; }
.stat-icon-purple { background: #f5f3ff; color: #7c3aed; }
.stat-icon-red { background: #fef2f2; color: #D32F2F; }
.stat-icon-amber { background: #fffbeb; color: #f59e0b; }
.stat-icon-cyan { background: #ecfeff; color: #06b6d4; }
.stat-icon-pink { background: #fdf2f8; color: #ec4899; }
.stat-icon-teal { background: #f0fdfa; color: #14b8a6; }
.stat-icon-violet { background: #f5f3ff; color: #8b5cf6; }
.stat-card-info {
  flex: 1;
  min-width: 0;
}
.stat-card-label {
  font-size: 11px;
  font-weight: 600;
  color: #6b7280;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  margin-bottom: 2px;
}
.stat-card-value {
  font-size: 22px;
  font-weight: 700;
  color: #111827;
  line-height: 1.2;
}
.stat-card-value small {
  font-size: 13px;
  font-weight: 600;
  color: #6b7280;
}
.stat-card-change {
  font-size: 12px;
  font-weight: 500;
  margin-top: 4px;
  display: flex;
  align-items: center;
  gap: 3px;
}
.stat-card-change.is-up { color: #059669; }
.stat-card-change.is-down { color: #dc2626; }
.stat-card-change.is-neutral { color: #6b7280; }
.stat-card-change i { font-size: 11px; }

/* Accent top border */
.stat-accent-blue    { border-top: 3px solid #3b82f6 !important; }
.stat-accent-indigo  { border-top: 3px solid #6366f1 !important; }
.stat-accent-emerald { border-top: 3px solid #059669 !important; }
.stat-accent-purple  { border-top: 3px solid #7c3aed !important; }
.stat-accent-red     { border-top: 3px solid #D32F2F !important; }
.stat-accent-amber   { border-top: 3px solid #f59e0b !important; }
.stat-accent-cyan    { border-top: 3px solid #06b6d4 !important; }
.stat-accent-pink    { border-top: 3px solid #ec4899 !important; }
.stat-accent-teal    { border-top: 3px solid #14b8a6 !important; }
.stat-accent-violet  { border-top: 3px solid #8b5cf6 !important; }
.stat-accent-orange  { border-top: 3px solid #f97316 !important; }

/* Dashboard greeting */
.dashboard-greeting {
  font-size: 13px;
  color: #6b7280;
}
.dashboard-greeting strong {
  color: #111827;
  font-weight: 700;
}

/* Timeline for progress panel */
.timeline-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 12px 0;
  border-bottom: 1px solid #f3f4f6;
}
.timeline-item:last-child {
  border-bottom: none;
}
.timeline-icon {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  margin-top: 6px;
  flex-shrink: 0;
}
.timeline-icon.icon-hema    { background: #D32F2F; }
.timeline-icon.icon-kimia   { background: #f59e0b; }
.timeline-icon.icon-imun    { background: #06b6d4; }
.timeline-icon.icon-mikro   { background: #ec4899; }
.timeline-body {
  flex: 1;
  min-width: 0;
}
.timeline-body .timeline-title {
  font-size: 13px;
  font-weight: 600;
  color: #111827;
  margin-bottom: 2px;
}
.timeline-body .timeline-meta {
  font-size: 12px;
  color: #9ca3af;
}
.timeline-body .timeline-status {
  font-size: 11px;
  font-weight: 600;
  display: inline-block;
  margin-top: 4px;
}
.timeline-body .timeline-status.done { color: #059669; }
.timeline-body .timeline-status.progress { color: #f59e0b; }
.timeline-body .timeline-status.waiting { color: #dc2626; }

/* ── Sidebar Light Theme ── */
.left_col {
  background: #d1d5db !important;
}
.main_menu_side {
  background: #d1d5db !important;
}
.nav_title {
  background: #d1d5db !important;
  border-bottom: 1px solid #9ca3af !important;
}
.site_title {
  color: #D32F2F !important;
  font-weight: 700 !important;
}
.site_title i {
  color: #D32F2F !important;
}
.site_title:hover {
  color: #b71c1c !important;
}

/* Section headers */
.menu_section > h3 {
  color: #9ca3af !important;
  font-size: 11px !important;
  font-weight: 600 !important;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 20px 20px 8px !important;
  margin: 0 !important;
}

/* Side menu base */
.nav.side-menu {
  background: #d1d5db !important;
}
.nav.side-menu > li {
  border-bottom: none !important;
}
.nav.side-menu > li > a {
  color: #111827 !important;
  font-size: 13px !important;
  font-weight: 500 !important;
  padding: 12px 20px !important;
  border-bottom: none !important;
  transition: all 0.15s ease;
}
.nav.side-menu > li > a:hover {
  color: #D32F2F !important;
  background: #fef2f2 !important;
}
.nav.side-menu > li > a i {
  color: #6b7280 !important;
  font-size: 15px !important;
  width: 24px !important;
  transition: color 0.15s ease;
}
.nav.side-menu > li > a:hover i {
  color: #D32F2F !important;
}
.nav.side-menu > li > a .fa-chevron-down {
  color: #9ca3af !important;
  font-size: 10px !important;
}

/* Active top-level menu */
.nav.side-menu > li.active > a {
  background: #D32F2F !important;
  color: #fff !important;
}
.nav.side-menu > li.active > a i {
  color: #fff !important;
}
.nav.side-menu > li.active > a .fa-chevron-down {
  color: rgba(255,255,255,0.7) !important;
}

/* Child submenu */
.nav.child_menu {
  background: #f9fafb !important;
  padding: 4px 0 !important;
}
.nav.child_menu > li {
  padding: 0 !important;
}
.nav.child_menu > li > a {
  color: #111827 !important;
  font-size: 12px !important;
  font-weight: 500 !important;
  padding: 8px 20px 8px 52px !important;
  transition: all 0.15s ease;
  border-bottom: none !important;
}
.nav.child_menu > li > a:hover {
  color: #D32F2F !important;
  background: #fef2f2 !important;
}
.nav.child_menu > li.active > a {
  color: #D32F2F !important;
  font-weight: 600 !important;
  background: #fef2f2 !important;
}

/* Sub-sub menu (Excel Data > sub items) */
.nav.child_menu .nav.child_menu {
  padding-left: 16px !important;
}
.nav.child_menu .nav.child_menu > li > a {
  padding-left: 52px !important;
}

/* Sidebar footer */
.sidebar-footer {
  background: #D32F2F !important;
  border-top: none !important;
}
.sidebar-footer a {
  color: #fff !important;
  border-right: 1px solid rgba(255,255,255,0.15) !important;
  transition: all 0.15s ease;
}
.sidebar-footer a:hover {
  color: #fff !important;
  background: #b71c1c !important;
}
.sidebar-footer a:last-child {
  border-right: none !important;
}

/* Scrollbar in sidebar */
.left_col .scroll-view::-webkit-scrollbar {
  width: 4px;
}
.left_col .scroll-view::-webkit-scrollbar-track {
  background: #f1f1f1;
}
.left_col .scroll-view::-webkit-scrollbar-thumb {
  background: #d1d5db;
  border-radius: 2px;
}

/* Toggle icon (hamburger) in sidebar */
.left_col .nav.toggle a i {
  color: #6b7280 !important;
}
.left_col .nav.toggle a:hover i {
  color: #D32F2F !important;
}

/* Profile area in sidebar if any */
.profile_info {
  background: #d1d5db !important;
  border-bottom: 1px solid #9ca3af !important;
}
.profile_info h2 {
  color: #111827 !important;
}
.profile_info .profile_pic {
  border: none !important;
}

/* Override Gentelella default dark sidebar hover */
.nav.side-menu > li > a:focus {
  color: #111827 !important;
  background: transparent !important;
}
.nav.side-menu > li.active > a:focus {
  color: #fff !important;
  background: #D32F2F !important;
}

/* Menu collapsed state when mini */
.nav-sm .nav.side-menu > li > a {
  color: #111827 !important;
}
.nav-sm .nav.side-menu > li.active > a {
  background: #D32F2F !important;
  color: #fff !important;
}

