/* =========================================================
   IME MEDICAL CENTER - DEFAULT THEME OVERRIDES
   Imported & matched from MEDIC-IMEROLEPLAY
   ========================================================= */

:root {
  /* Theme Default Dark Sky Blue Medis (from MEDIC-IMEROLEPLAY) */
  --ml-bg-start: #0c4a6e;   /* sky-900 */
  --ml-bg-mid: #075985;     /* sky-800 */
  --ml-bg-end: #0369a1;     /* sky-700 */

  --ml-primary: #0ea5e9;    /* sky-500 */
  --ml-primary-700: #0284c7;/* sky-600 */
  --ml-secondary: #059669;  /* emerald-600 */
  --ml-accent: #06b6d4;     /* cyan-500 */
  --ml-success: #10b981;    /* emerald-500 */
  --ml-warning: #f59e0b;    /* amber-500 */
  --ml-danger: #ef4444;     /* red-500 */
  --ml-muted: #94a3b8;      /* slate-400 */
  --ml-surface: rgba(12, 74, 110, 0.92);
  --ml-surface-card: rgba(7, 89, 133, 0.88);
  --ml-border: rgba(14, 165, 233, 0.35);

  --ems-line: rgba(56, 189, 248, 0.25);
  --ems-line-strong: rgba(56, 189, 248, 0.45);
  --ems-head: rgba(14, 165, 233, 0.18);
}

/* =========================================================
   GLOBAL BODY & TYPOGRAPHY
   ========================================================= */
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
  background: linear-gradient(180deg, var(--ml-bg-start) 0%, var(--ml-bg-mid) 50%, var(--ml-bg-end) 100%) fixed !important;
  min-height: 100vh;
  color: #f8fafc !important;
  -webkit-font-smoothing: antialiased;
}

.ems-app {
  background: transparent !important;
  min-height: 100vh;
}

.main-content {
  background: transparent !important;
  color: #f8fafc !important;
}

/* =========================================================
   TOPBAR NAVIGATION (Solid dark #0b1329 with cyan border)
   ========================================================= */
.topbar,
nav.topbar,
header.topbar {
  background: #0b1329 !important;
  background-color: #0b1329 !important;
  border-bottom: 1px solid rgba(14, 165, 233, 0.35) !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4) !important;
}

.topbar .topbar-title {
  color: #ffffff !important;
  font-weight: 800 !important;
  letter-spacing: -0.01em;
}

.topbar .topbar-subtitle {
  color: #38bdf8 !important;
  font-size: 11px;
}

.topbar-clock {
  background: rgba(12, 74, 110, 0.6) !important;
  border: 1px solid rgba(14, 165, 233, 0.3) !important;
  border-radius: 12px !important;
  color: #ffffff !important;
  padding: 4px 12px !important;
}

.topbar-clock-time {
  color: #38bdf8 !important;
  font-weight: 700 !important;
}

.notif-btn,
.inbox-btn,
.menu-btn {
  background: rgba(12, 74, 110, 0.6) !important;
  border: 1px solid rgba(14, 165, 233, 0.35) !important;
  color: #bae6fd !important;
  border-radius: 12px !important;
  transition: all 0.2s ease;
}

.notif-btn:hover,
.inbox-btn:hover,
.menu-btn:hover {
  background: rgba(14, 165, 233, 0.25) !important;
  border-color: #38bdf8 !important;
  color: #ffffff !important;
}

.inbox-badge {
  background: #ef4444 !important;
  color: #ffffff !important;
  font-weight: 800 !important;
}

/* =========================================================
   SIDEBAR (Identical to IME Medic Navigation)
   ========================================================= */
.sidebar {
  background: #0b1329 !important;
  border-right: 1px solid rgba(14, 165, 233, 0.35) !important;
  box-shadow: 4px 0 25px rgba(0, 0, 0, 0.4) !important;
}

.sidebar .sidebar-header {
  border-bottom: 1px solid rgba(14, 165, 233, 0.2) !important;
  background: transparent !important;
}

.sidebar .brand-text strong {
  color: #ffffff !important;
  font-weight: 700 !important;
}

.sidebar .brand-text span {
  color: #38bdf8 !important;
}

.sidebar-group-title {
  color: #7dd3fc !important;
  font-weight: 800 !important;
  font-size: 11px !important;
  letter-spacing: 0.08em !important;
  text-transform: uppercase !important;
  padding-left: 12px;
  margin-top: 14px;
  margin-bottom: 6px;
}

.sidebar-menu a {
  color: #bae6fd !important;
  border-radius: 12px !important;
  transition: all 0.2s ease !important;
  margin: 2px 8px !important;
  padding: 8px 12px !important;
}

.sidebar-menu a:hover {
  background: rgba(14, 165, 233, 0.18) !important;
  color: #ffffff !important;
  border: 1px solid rgba(56, 189, 248, 0.3) !important;
}

.sidebar-menu a.active {
  background: linear-gradient(90deg, #0ea5e9, #06b6d4) !important;
  color: #ffffff !important;
  font-weight: 700 !important;
  box-shadow: 0 4px 14px rgba(14, 165, 233, 0.45) !important;
  border: 1px solid rgba(56, 189, 248, 0.5) !important;
}

.sidebar-menu a.logout {
  color: #fda4af !important;
}

.sidebar-menu a.logout:hover {
  background: rgba(239, 68, 68, 0.2) !important;
  color: #ffffff !important;
  border-color: rgba(239, 68, 68, 0.4) !important;
}

.sidebar-footer {
  border-top: 1px solid rgba(14, 165, 233, 0.2) !important;
  color: #7dd3fc !important;
  background: transparent !important;
}

/* =========================================================
   PAGE HEADERS & LAYOUT CONTAINER (UNIFIED THEME)
   Removes the awkward stacked translucent white container
   so all pages blend seamlessly into the Dark Sky Blue theme.
   ========================================================= */
.page,
.page-shell,
.page-shell-md,
.page-shell-sm,
.content,
.main-content,
section.content {
  background: transparent !important;
  background-color: transparent !important;
  border: none !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

.page,
.page-shell,
.page-shell-md,
.page-shell-sm {
  width: 100% !important;
  max-width: 1360px !important;
  margin: 0 auto !important;
  padding: 0 6px !important;
}

.page-title {
  color: #ffffff !important;
  font-weight: 900 !important;
  font-size: 1.75rem !important;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4) !important;
  letter-spacing: -0.02em !important;
  margin-bottom: 4px !important;
  -webkit-text-fill-color: #ffffff !important;
  background: none !important;
}

.page-subtitle {
  color: #bae6fd !important;
  font-weight: 500 !important;
  font-size: 13.5px !important;
  margin-bottom: 20px !important;
}

.section-title {
  color: #ffffff !important;
  font-weight: 800 !important;
  font-size: 1rem !important;
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  margin-top: 24px !important;
  margin-bottom: 14px !important;
}

/* =========================================================
   CARDS & GLASSMORPHISM SURFACES (BRIGHT TRANSLUCENT BLUE / CYAN GLASS)
   ========================================================= */
.card,
.public-panel,
.stat-card,
.request-card,
.request-approval-card {
  background: linear-gradient(135deg, rgba(7, 89, 133, 0.85) 0%, rgba(14, 116, 178, 0.78) 100%) !important;
  backdrop-filter: blur(16px) !important;
  -webkit-backdrop-filter: blur(16px) !important;
  border: 1px solid rgba(56, 189, 248, 0.45) !important;
  border-radius: 18px !important;
  box-shadow: 0 10px 30px rgba(3, 105, 161, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.25) !important;
  color: #ffffff !important;
  padding: 20px !important;
  margin-bottom: 20px !important;
}

.card-header,
.request-card-title,
.card-header-actions-title {
  color: #ffffff !important;
  border-bottom: 1px solid rgba(56, 189, 248, 0.35) !important;
  font-weight: 800 !important;
  font-size: 15px !important;
  padding-bottom: 12px !important;
  margin-bottom: 16px !important;
}

.card-muted {
  background: rgba(12, 74, 110, 0.75) !important;
}

/* Dashboard Statistics Cards Grid */
.dashboard-grid {
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(175px, 1fr)) !important;
  gap: 14px !important;
  margin-bottom: 24px !important;
}

.dashboard-grid .card {
  background: linear-gradient(135deg, rgba(14, 116, 178, 0.78) 0%, rgba(3, 105, 161, 0.85) 100%) !important;
  border: 1px solid rgba(56, 189, 248, 0.45) !important;
  border-radius: 14px !important;
  padding: 14px 16px !important;
  margin-bottom: 0 !important;
  box-shadow: 0 6px 20px rgba(2, 132, 199, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.2) !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: space-between !important;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease !important;
}

.dashboard-grid .card:hover {
  transform: translateY(-2px) !important;
  border-color: rgba(56, 189, 248, 0.75) !important;
  box-shadow: 0 8px 24px rgba(14, 165, 233, 0.4) !important;
}

.dashboard-grid .card .card-header {
  font-size: 11px !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.05em !important;
  color: #7dd3fc !important;
  border-bottom: none !important;
  margin-bottom: 6px !important;
  padding-bottom: 0 !important;
}

.dashboard-grid .card h2 {
  font-size: 20px !important;
  font-weight: 800 !important;
  color: #ffffff !important;
  margin: 0 !important;
  letter-spacing: -0.01em !important;
}

/* =========================================================
   SEARCH & FILTER PANELS (BRIGHT TRANSLUCENT BLUE)
   ========================================================= */
.search-panel,
.search-form-inline,
.card-section.search-panel,
.filter-bar.search-panel,
.filter-bar {
  background: rgba(7, 89, 133, 0.65) !important;
  border: 1px solid rgba(56, 189, 248, 0.45) !important;
  border-radius: 14px !important;
  padding: 14px 16px !important;
  color: #ffffff !important;
  margin-bottom: 16px !important;
}

.card-header-actions {
  border-bottom: 1px solid rgba(56, 189, 248, 0.3) !important;
  padding-bottom: 12px !important;
  margin-bottom: 16px !important;
}

/* =========================================================
   TABLES & DATATABLES (BRIGHT BLUE TRANSLUCENT GLASS)
   ========================================================= */
.table-wrapper,
.table-wrapper-sm,
.request-table-card .table-wrapper,
.request-table-card .table-wrapper-sm,
.card .table-wrapper,
.card .table-wrapper-sm {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid rgba(56, 189, 248, 0.5) !important;
  border-radius: 16px !important;
  background: rgba(3, 105, 161, 0.45) !important;
  backdrop-filter: blur(14px) !important;
  -webkit-backdrop-filter: blur(14px) !important;
  box-shadow: 0 8px 30px rgba(2, 132, 199, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.2) !important;
  margin-top: 12px;
  margin-bottom: 16px;
}

/* Custom Slim Scrollbar for Tables */
.table-wrapper::-webkit-scrollbar,
.table-wrapper-sm::-webkit-scrollbar {
  height: 8px;
  width: 8px;
}

.table-wrapper::-webkit-scrollbar-track,
.table-wrapper-sm::-webkit-scrollbar-track {
  background: rgba(7, 89, 133, 0.5);
  border-radius: 8px;
}

.table-wrapper::-webkit-scrollbar-thumb,
.table-wrapper-sm::-webkit-scrollbar-thumb {
  background: rgba(14, 165, 233, 0.4);
  border-radius: 8px;
  border: 2px solid transparent;
  background-clip: padding-box;
}

.table-wrapper::-webkit-scrollbar-thumb:hover,
.table-wrapper-sm::-webkit-scrollbar-thumb:hover {
  background: rgba(56, 189, 248, 0.7);
}

table,
table.table-custom,
table.dataTable,
.user-batch-table {
  width: 100% !important;
  border-collapse: separate !important;
  border-spacing: 0 !important;
  background: transparent !important;
  color: #f1f5f9 !important;
  font-size: 13px !important;
  margin: 0 !important;
}

table thead th,
table.table-custom thead th,
table.dataTable thead th,
.user-batch-table thead th {
  background: linear-gradient(180deg, rgba(14, 165, 233, 0.55) 0%, rgba(7, 89, 133, 0.75) 100%) !important;
  color: #ffffff !important;
  font-weight: 800 !important;
  font-size: 12px !important;
  text-transform: uppercase !important;
  letter-spacing: 0.05em !important;
  border-top: none !important;
  border-bottom: 2px solid #38bdf8 !important;
  border-right: 1px solid rgba(255, 255, 255, 0.15) !important;
  border-left: none !important;
  white-space: nowrap;
  padding: 13px 16px !important;
  line-height: 1.4 !important;
  text-align: left;
}

table thead th:last-child,
table.table-custom thead th:last-child,
table.dataTable thead th:last-child {
  border-right: none !important;
}

table th,
table td,
table.table-custom th,
table.table-custom td,
table.dataTable th,
table.dataTable td,
.user-batch-table th,
.user-batch-table td {
  padding: 12px 16px !important;
  border-bottom: 1px solid rgba(56, 189, 248, 0.22) !important;
  border-right: 1px solid rgba(56, 189, 248, 0.12) !important;
  border-left: none !important;
  vertical-align: middle !important;
  color: #ffffff !important;
  font-size: 13px !important;
  line-height: 1.45 !important;
}

table td:last-child,
table.table-custom td:last-child,
table.dataTable td:last-child {
  border-right: none !important;
}

table.table-custom tbody tr:last-child td,
table.dataTable tbody tr:last-child td {
  border-bottom: none !important;
}

/* Zebra striping for improved scanning */
table.table-custom tbody tr:nth-child(even),
table.dataTable tbody tr:nth-child(even) {
  background: rgba(255, 255, 255, 0.06) !important;
}

table.table-custom tbody tr:hover,
table.dataTable tbody tr:hover,
.table-row-hover:hover {
  background: rgba(56, 189, 248, 0.22) !important;
  transition: background-color 0.15s ease-in-out !important;
}

/* Footer Totals */
table.table-custom tfoot th,
table.table-custom tfoot td,
table.dataTable tfoot th,
table.dataTable tfoot td {
  background: rgba(12, 74, 110, 0.8) !important;
  border-top: 2px solid rgba(56, 189, 248, 0.5) !important;
  border-bottom: none !important;
  color: #38bdf8 !important;
  font-weight: 800 !important;
  font-size: 13px !important;
  letter-spacing: 0.02em !important;
  padding: 14px 16px !important;
}

/* Table Alignment Utilities */
.table-align-right,
th.table-align-right,
td.table-align-right,
.text-right {
  text-align: right !important;
}

.table-align-center,
th.table-align-center,
td.table-align-center,
.text-center {
  text-align: center !important;
}

/* Checkbox Column */
.checkbox-col,
th.checkbox-col,
td.checkbox-col {
  width: 44px !important;
  text-align: center !important;
  padding: 10px 8px !important;
}

.checkbox-col input[type="checkbox"] {
  width: 18px !important;
  height: 18px !important;
  margin: 0 !important;
  accent-color: #0ea5e9 !important;
  cursor: pointer !important;
  vertical-align: middle !important;
}

/* Compact Table Buttons */
.btn-compact,
.btn-sm,
table td .btn,
table td .btn-compact,
table td .btn-danger,
table td .btn-secondary,
table td .btn-primary {
  padding: 6px 12px !important;
  font-size: 11.5px !important;
  font-weight: 700 !important;
  border-radius: 8px !important;
  min-height: unset !important;
  line-height: 1.2 !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
}

/* Empty Table States */
.empty-copy,
td.dataTables_empty {
  text-align: center !important;
  padding: 28px 16px !important;
  color: #7dd3fc !important;
  font-size: 13.5px !important;
  font-weight: 500 !important;
}

/* DataTables Container & Controls */
.dt-container,
.dataTables_wrapper {
  display: flex !important;
  flex-direction: column !important;
  gap: 14px !important;
  width: 100% !important;
  color: #f1f5f9 !important;
  margin-top: 10px !important;
  margin-bottom: 14px !important;
}

.dt-layout-row {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  flex-wrap: wrap !important;
  gap: 12px !important;
}

.dt-container .dt-search,
.dataTables_filter {
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
}

.dt-container .dt-search label,
.dataTables_filter label {
  color: #bae6fd !important;
  font-size: 12.5px !important;
  font-weight: 600 !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  margin-bottom: 0 !important;
}

.dt-container .dt-search input,
.dataTables_filter input {
  background: rgba(11, 19, 41, 0.75) !important;
  border: 1px solid rgba(56, 189, 248, 0.35) !important;
  color: #ffffff !important;
  border-radius: 10px !important;
  padding: 8px 14px !important;
  font-size: 13px !important;
  min-width: 200px !important;
  outline: none !important;
  transition: all 0.2s ease !important;
}

.dt-container .dt-search input:focus,
.dataTables_filter input:focus {
  border-color: #38bdf8 !important;
  background: rgba(8, 14, 30, 0.95) !important;
  box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.3) !important;
}

.dt-container .dt-length,
.dataTables_length {
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
}

.dt-container .dt-length label,
.dataTables_length label {
  color: #bae6fd !important;
  font-size: 12.5px !important;
  font-weight: 600 !important;
  margin-bottom: 0 !important;
}

.dt-container .dt-length select,
.dataTables_length select {
  background: rgba(11, 19, 41, 0.75) !important;
  border: 1px solid rgba(56, 189, 248, 0.35) !important;
  color: #ffffff !important;
  border-radius: 8px !important;
  padding: 6px 12px !important;
  font-size: 12.5px !important;
  outline: none !important;
}

.dt-container .dt-length select option,
.dataTables_length select option {
  background: #0b1329 !important;
  color: #ffffff !important;
}

.dt-container .dt-info,
.dataTables_info {
  color: #7dd3fc !important;
  font-size: 12.5px !important;
  font-weight: 500 !important;
  padding: 6px 0 !important;
}

.dt-paging,
.dataTables_paginate {
  display: inline-flex !important;
  align-items: center !important;
  gap: 5px !important;
  flex-wrap: wrap !important;
}

.dt-paging .dt-paging-button,
.dataTables_paginate .paginate_button {
  padding: 6px 13px !important;
  border-radius: 10px !important;
  color: #bae6fd !important;
  background: rgba(12, 74, 110, 0.35) !important;
  border: 1px solid rgba(56, 189, 248, 0.25) !important;
  cursor: pointer !important;
  font-weight: 600 !important;
  font-size: 12.5px !important;
  transition: all 0.2s ease !important;
  user-select: none !important;
}

.dt-paging .dt-paging-button:hover:not(.disabled):not(.current),
.dataTables_paginate .paginate_button:hover:not(.disabled):not(.current) {
  background: rgba(14, 165, 233, 0.25) !important;
  border-color: rgba(56, 189, 248, 0.55) !important;
  color: #ffffff !important;
  transform: translateY(-1px);
}

.dt-paging .dt-paging-button.current,
.dataTables_paginate .paginate_button.current {
  background: linear-gradient(135deg, #0ea5e9, #06b6d4) !important;
  color: #ffffff !important;
  font-weight: 800 !important;
  border: 1px solid rgba(56, 189, 248, 0.6) !important;
  box-shadow: 0 4px 14px rgba(14, 165, 233, 0.4) !important;
}

.dt-paging .dt-paging-button.disabled,
.dataTables_paginate .paginate_button.disabled {
  opacity: 0.35 !important;
  cursor: not-allowed !important;
}

/* =========================================================
   BUTTONS (IME MEDIC CYAN-SKY GRADIENT SIGNATURE)
   ========================================================= */
.btn-primary,
.btn-success,
button.btn-primary,
a.btn-primary,
button.btn-success,
a.btn-success {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: linear-gradient(90deg, #0ea5e9, #06b6d4) !important;
  color: #ffffff !important;
  border: 1px solid rgba(56, 189, 248, 0.5) !important;
  border-radius: 12px !important;
  font-weight: 700 !important;
  font-size: 13.5px !important;
  padding: 10px 20px !important;
  box-shadow: 0 4px 14px rgba(14, 165, 233, 0.35) !important;
  transition: all 0.2s ease !important;
  text-decoration: none;
  cursor: pointer;
}

.btn-primary:hover,
.btn-success:hover,
button.btn-primary:hover,
a.btn-primary:hover,
button.btn-success:hover,
a.btn-success:hover {
  background: linear-gradient(90deg, #0284c7, #0ea5e9) !important;
  box-shadow: 0 6px 20px rgba(14, 165, 233, 0.5) !important;
  transform: translateY(-1px);
  color: #ffffff !important;
}

.btn-secondary,
button.btn-secondary,
a.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.35) 0%, rgba(7, 89, 133, 0.6) 100%) !important;
  color: #ffffff !important;
  border: 1px solid rgba(56, 189, 248, 0.55) !important;
  border-radius: 12px !important;
  padding: 10px 18px !important;
  font-size: 13.5px !important;
  font-weight: 700 !important;
  box-shadow: 0 4px 14px rgba(3, 105, 161, 0.25) !important;
  transition: all 0.2s ease !important;
  text-decoration: none;
  cursor: pointer;
}

.btn-secondary:hover,
button.btn-secondary:hover,
a.btn-secondary:hover {
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.55) 0%, rgba(7, 89, 133, 0.8) 100%) !important;
  border-color: #38bdf8 !important;
  color: #ffffff !important;
  box-shadow: 0 6px 20px rgba(14, 165, 233, 0.4) !important;
  transform: translateY(-1px);
}

.btn-warning,
button.btn-warning {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: linear-gradient(135deg, #f59e0b, #d97706) !important;
  color: #ffffff !important;
  border: 1px solid rgba(245, 158, 11, 0.5) !important;
  border-radius: 12px !important;
  padding: 10px 18px !important;
  font-weight: 700 !important;
  font-size: 13.5px !important;
  box-shadow: 0 4px 14px rgba(245, 158, 11, 0.35) !important;
  transition: all 0.2s ease !important;
  cursor: pointer;
}

.btn-warning:hover,
button.btn-warning:hover {
  background: linear-gradient(135deg, #d97706, #b45309) !important;
  box-shadow: 0 6px 18px rgba(245, 158, 11, 0.5) !important;
  transform: translateY(-1px);
}

.btn-danger,
button.btn-danger,
a.btn-danger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: linear-gradient(135deg, #ef4444, #dc2626) !important;
  color: #ffffff !important;
  border: 1px solid rgba(239, 68, 68, 0.5) !important;
  border-radius: 12px !important;
  padding: 10px 18px !important;
  font-weight: 700 !important;
  font-size: 13.5px !important;
  box-shadow: 0 4px 14px rgba(239, 68, 68, 0.35) !important;
  transition: all 0.2s ease !important;
  cursor: pointer;
}

.btn-danger:hover,
button.btn-danger:hover,
a.btn-danger:hover {
  background: linear-gradient(135deg, #dc2626, #b91c1c) !important;
  box-shadow: 0 6px 18px rgba(239, 68, 68, 0.5) !important;
  transform: translateY(-1px);
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: transparent !important;
  color: #38bdf8 !important;
  border: 1px solid #38bdf8 !important;
  border-radius: 12px !important;
  padding: 9px 18px !important;
  font-weight: 600;
  transition: all 0.2s ease;
}

.btn-outline:hover {
  background: rgba(14, 165, 233, 0.2) !important;
  color: #ffffff !important;
}

.btn-disabled,
button:disabled,
input:disabled {
  opacity: 0.5 !important;
  cursor: not-allowed !important;
  box-shadow: none !important;
  transform: none !important;
}

.btn-danger-soft,
.btn-reject-soft,
.btn-resign-soft {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 12px;
  border: 1px solid rgba(251, 113, 133, 0.45) !important;
  background: rgba(225, 29, 72, 0.2) !important;
  color: #fecdd3 !important;
  padding: 8px 14px;
  font-weight: 600;
  transition: all 0.2s ease;
}

.btn-danger-soft:hover,
.btn-reject-soft:hover,
.btn-resign-soft:hover {
  background: rgba(225, 29, 72, 0.35) !important;
  border-color: rgba(225, 29, 72, 0.6) !important;
  color: #ffffff !important;
}

/* =========================================================
   FORM LAYOUT, INPUTS, SELECTS & CONTROLS (TIDY & CRISP)
   ========================================================= */
form {
  margin: 0;
}

.form-group,
.form > div:not(.row-form-1):not(.row-form-2):not(.action-row-wrap):not(.modal-actions) {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 14px;
}

.row-form-1 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-bottom: 14px;
}

.row-form-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 16px;
  margin-bottom: 14px;
}

.col {
  display: flex;
  flex-direction: column;
  gap: 6px;
  width: 100%;
}

label,
.form-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #e0f2fe !important;
  font-weight: 700 !important;
  font-size: 12.5px !important;
  letter-spacing: 0.03em !important;
  text-transform: uppercase !important;
  margin-bottom: 3px !important;
}

label i,
.form-label i {
  color: #38bdf8 !important;
}

/* Uniform Clean Input Styling */
input[type="text"],
input[type="number"],
input[type="password"],
input[type="email"],
input[type="date"],
input[type="time"],
input[type="datetime-local"],
input[type="search"],
input[type="tel"],
input[type="url"],
select,
textarea,
.form-input,
.form-select,
.input-custom {
  width: 100% !important;
  box-sizing: border-box !important;
  min-height: 42px !important;
  background: rgba(11, 19, 41, 0.75) !important;
  border: 1px solid rgba(56, 189, 248, 0.35) !important;
  color: #ffffff !important;
  border-radius: 12px !important;
  padding: 9px 14px !important;
  font-size: 13.5px !important;
  line-height: 1.5 !important;
  font-family: inherit !important;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease !important;
}

input:hover:not(:disabled):not([readonly]),
select:hover:not(:disabled),
textarea:hover:not(:disabled):not([readonly]) {
  border-color: rgba(56, 189, 248, 0.6) !important;
  background: rgba(11, 19, 41, 0.88) !important;
}

input:focus,
select:focus,
textarea:focus,
.form-input:focus,
.form-select:focus {
  border-color: #38bdf8 !important;
  background: rgba(8, 14, 30, 0.95) !important;
  box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.28), 0 4px 14px rgba(0, 0, 0, 0.3) !important;
  outline: none !important;
}

input::placeholder,
textarea::placeholder {
  color: #94a3b8 !important;
  font-weight: 400 !important;
  opacity: 0.8;
}

/* Custom Styled Select with SVG Chevron Arrow */
select,
.form-select {
  appearance: none !important;
  -webkit-appearance: none !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%2338bdf8'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2.5' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-position: right 14px center !important;
  background-size: 16px 16px !important;
  padding-right: 40px !important;
  cursor: pointer !important;
}

select option,
select optgroup {
  background: #0b1329 !important;
  color: #f8fafc !important;
  padding: 10px 14px !important;
}

textarea {
  min-height: 95px !important;
  resize: vertical !important;
}

/* Readonly & Disabled Inputs */
input[readonly],
input:disabled,
select:disabled,
textarea:disabled {
  background: rgba(15, 23, 42, 0.45) !important;
  color: #94a3b8 !important;
  border-color: rgba(56, 189, 248, 0.2) !important;
  cursor: not-allowed !important;
  box-shadow: none !important;
}

/* Custom File Upload */
input[type="file"] {
  padding: 6px 10px !important;
  min-height: 42px !important;
  cursor: pointer !important;
  background: rgba(11, 19, 41, 0.75) !important;
  color: #bae6fd !important;
  border: 1px solid rgba(56, 189, 248, 0.35) !important;
}

input[type="file"]::file-selector-button {
  background: linear-gradient(135deg, #0ea5e9, #0284c7) !important;
  color: #ffffff !important;
  border: 1px solid rgba(56, 189, 248, 0.4) !important;
  border-radius: 8px !important;
  padding: 6px 14px !important;
  font-weight: 700 !important;
  font-size: 12px !important;
  cursor: pointer !important;
  margin-right: 12px !important;
  transition: all 0.2s ease !important;
}

input[type="file"]::file-selector-button:hover {
  background: linear-gradient(135deg, #0284c7, #0369a1) !important;
}

/* Checkboxes and Radios */
input[type="checkbox"],
input[type="radio"] {
  width: 18px !important;
  height: 18px !important;
  accent-color: #0ea5e9 !important;
  cursor: pointer !important;
  vertical-align: middle !important;
}

.checkbox-label,
label:has(input[type="checkbox"]),
label:has(input[type="radio"]) {
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  text-transform: none !important;
  font-weight: 500 !important;
  font-size: 13px !important;
  cursor: pointer !important;
  user-select: none !important;
}

/* Form Helper Texts */
small,
.hint-info,
.helper-note,
.meta-text,
.meta-text-xs {
  color: #7dd3fc !important;
  font-size: 11.5px !important;
  line-height: 1.4 !important;
  font-weight: 400 !important;
  margin-top: 4px;
}

/* Action Buttons Wrap */
.action-row-wrap,
.form-actions,
.modal-actions {
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  margin-top: 18px !important;
  flex-wrap: wrap !important;
}

/* Filter Bars and Search Panels */
.filter-bar,
.search-panel {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 12px !important;
  align-items: center !important;
  background: rgba(11, 19, 41, 0.6) !important;
  border: 1px solid rgba(56, 189, 248, 0.3) !important;
  border-radius: 16px !important;
  padding: 14px 18px !important;
  margin-bottom: 18px !important;
  backdrop-filter: blur(10px) !important;
}

.filter-group {
  flex: 1;
  min-width: 170px;
}

/* Overriding Hardcoded Tailwind Light Surfaces in Form Panels */
.rounded-xl.border.border-slate-200.bg-slate-50,
.rounded-2xl.border.border-slate-200,
.bg-slate-50\/70,
.bg-slate-50,
.bg-slate-100 {
  background: rgba(11, 19, 41, 0.65) !important;
  border-color: rgba(56, 189, 248, 0.25) !important;
  color: #f8fafc !important;
}

.text-slate-900,
.text-slate-800,
.text-slate-700 {
  color: #ffffff !important;
}

.text-slate-600,
.text-slate-500 {
  color: #bae6fd !important;
}

/* Cashier / Farmasi Total Display */
.total-item-info,
.total-item-info.bg-white {
  background: rgba(11, 19, 41, 0.75) !important;
  border: 1px solid rgba(56, 189, 248, 0.35) !important;
  border-radius: 18px !important;
  padding: 18px !important;
  margin: 16px 0 !important;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3) !important;
}

.badge-counter {
  background: rgba(14, 165, 233, 0.25) !important;
  border: 1px solid rgba(56, 189, 248, 0.5) !important;
  color: #38bdf8 !important;
  font-weight: 800 !important;
  padding: 6px 14px !important;
  border-radius: 999px !important;
  font-size: 12px !important;
}

.total-display,
.total-display.border-emerald-200.bg-emerald-50 {
  background: linear-gradient(135deg, rgba(6, 78, 59, 0.45) 0%, rgba(12, 74, 110, 0.65) 100%) !important;
  border: 1px solid rgba(16, 185, 129, 0.55) !important;
  border-radius: 18px !important;
  padding: 20px !important;
  margin: 16px 0 !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35) !important;
}

.total-display-label {
  color: #a7f3d0 !important;
  font-size: 12.5px !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.05em !important;
}

.total-amount {
  color: #34d399 !important;
  font-size: 32px !important;
  font-weight: 900 !important;
  text-shadow: 0 0 20px rgba(52, 211, 153, 0.35) !important;
}

/* Consumer Similar Autocomplete Box */
.consumer-similar-box,
.search-dropdown-menu,
.autocomplete-items {
  background: #0b1329 !important;
  border: 1px solid rgba(56, 189, 248, 0.45) !important;
  border-radius: 14px !important;
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.5) !important;
  color: #ffffff !important;
  overflow: hidden;
  margin-top: 4px;
}

.consumer-similar-box > div,
.search-dropdown-menu > div {
  padding: 9px 14px !important;
  cursor: pointer !important;
  border-bottom: 1px solid rgba(56, 189, 248, 0.15) !important;
  transition: all 0.15s ease !important;
}

.consumer-similar-box > div:hover,
.search-dropdown-menu > div:hover {
  background: rgba(14, 165, 233, 0.25) !important;
  color: #ffffff !important;
}

/* Rich Text Editor (Quill) Theme Styling */
.ql-toolbar.ql-snow {
  background: rgba(11, 19, 41, 0.85) !important;
  border: 1px solid rgba(56, 189, 248, 0.35) !important;
  border-radius: 14px 14px 0 0 !important;
}

.ql-toolbar.ql-snow .ql-stroke {
  stroke: #bae6fd !important;
}

.ql-toolbar.ql-snow .ql-fill {
  fill: #bae6fd !important;
}

.ql-toolbar.ql-snow .ql-picker {
  color: #bae6fd !important;
}

.ql-toolbar.ql-snow button:hover .ql-stroke,
.ql-toolbar.ql-snow button.ql-active .ql-stroke {
  stroke: #38bdf8 !important;
}

.ql-toolbar.ql-snow button:hover .ql-fill,
.ql-toolbar.ql-snow button.ql-active .ql-fill {
  fill: #38bdf8 !important;
}

.ql-container.ql-snow {
  background: rgba(11, 19, 41, 0.7) !important;
  border: 1px solid rgba(56, 189, 248, 0.35) !important;
  border-top: none !important;
  border-radius: 0 0 14px 14px !important;
  color: #f8fafc !important;
  font-family: inherit !important;
}

.ql-editor {
  min-height: 180px !important;
  font-size: 14px !important;
  line-height: 1.6 !important;
  color: #f8fafc !important;
}

/* =========================================================
   MODALS & OVERLAYS
   ========================================================= */
.modal-overlay,
.inbox-modal-overlay {
  background: rgba(11, 19, 41, 0.75) !important;
  backdrop-filter: blur(8px) !important;
  -webkit-backdrop-filter: blur(8px) !important;
}

.modal-box,
.inbox-modal-box {
  background: rgba(12, 74, 110, 0.96) !important;
  backdrop-filter: blur(20px) !important;
  -webkit-backdrop-filter: blur(20px) !important;
  border: 1px solid rgba(14, 165, 233, 0.45) !important;
  border-radius: 24px !important;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5) !important;
  color: #f8fafc !important;
}

.modal-head,
.inbox-header {
  border-bottom: 1px solid rgba(14, 165, 233, 0.3) !important;
  background: transparent !important;
}

.modal-title {
  color: #ffffff !important;
  font-weight: 800 !important;
}

/* =========================================================
   TABS & REQUEST CARDS (Cuti, Resign, Farmasi, etc.)
   ========================================================= */
.request-tab-shell {
  padding: 8px;
  border: 1px solid rgba(14, 165, 233, 0.35) !important;
  border-radius: 20px;
  background: rgba(12, 74, 110, 0.6) !important;
}

.request-tab-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.request-tab-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 16px;
  border-radius: 14px;
  border: 1px solid transparent;
  color: #bae6fd !important;
  font-weight: 700;
  transition: 0.2s ease;
}

.request-tab-link:hover {
  background: rgba(14, 165, 233, 0.2) !important;
  color: #ffffff !important;
}

.request-tab-link.is-active {
  background: linear-gradient(135deg, #0ea5e9, #0284c7) !important;
  border-color: rgba(14, 165, 233, 0.5) !important;
  color: #ffffff !important;
  box-shadow: 0 10px 25px rgba(14, 165, 233, 0.3) !important;
}

.request-info-box {
  border: 1px solid rgba(56, 189, 248, 0.4) !important;
  background: rgba(14, 165, 233, 0.2) !important;
  color: #f0f9ff !important;
  border-radius: 18px;
  padding: 16px;
}

.request-danger-box {
  border: 1px solid rgba(248, 113, 113, 0.4) !important;
  background: rgba(225, 29, 72, 0.2) !important;
  color: #fff1f2 !important;
  border-radius: 18px;
  padding: 16px;
}

.request-detail-hero {
  background: rgba(12, 74, 110, 0.8) !important;
  border: 1px solid rgba(14, 165, 233, 0.4) !important;
  color: #ffffff !important;
  border-radius: 20px;
  padding: 18px;
}

.request-detail-panel,
.request-detail-block,
.request-detail-stat {
  background: rgba(7, 89, 133, 0.6) !important;
  border: 1px solid rgba(14, 165, 233, 0.3) !important;
  border-radius: 18px;
  padding: 16px;
  color: #ffffff !important;
}

.request-detail-label {
  color: #7dd3fc !important;
  font-weight: 800 !important;
  font-size: 11px !important;
  text-transform: uppercase !important;
}

.request-detail-value {
  color: #ffffff !important;
  font-weight: 600 !important;
}

/* =========================================================
   STATUS BADGES
   ========================================================= */
.request-status-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 0 12px;
  border-radius: 999px;
  font-size: 11px;
  line-height: 1;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border: 1px solid transparent;
  white-space: nowrap;
}

.request-status-pending {
  background: rgba(245, 158, 11, 0.25) !important;
  border-color: rgba(245, 158, 11, 0.5) !important;
  color: #fde68a !important;
}

.request-status-approved {
  background: rgba(16, 185, 129, 0.25) !important;
  border-color: rgba(16, 185, 129, 0.5) !important;
  color: #a7f3d0 !important;
}

.request-status-rejected {
  background: rgba(239, 68, 68, 0.25) !important;
  border-color: rgba(239, 68, 68, 0.5) !important;
  color: #fecdd3 !important;
}

/* =========================================================
   REKAP GAJI - SUMMARY HERO & METRIC TILES
   Fixes washed out white cards & invisible text
   ========================================================= */
.salary-summary {
  background: rgba(8, 22, 48, 0.85) !important;
  border: 1px solid rgba(56, 189, 248, 0.25) !important;
  border-radius: 18px !important;
  overflow: hidden !important;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.35) !important;
}

.salary-summary-hero {
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.18) 0%, rgba(8, 22, 48, 0.6) 100%) !important;
  border-bottom: 1px solid rgba(56, 189, 248, 0.2) !important;
  padding: 20px !important;
}

.salary-summary-title {
  color: #7dd3fc !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.05em !important;
}

.salary-summary-value {
  color: #ffffff !important;
  font-size: 28px !important;
  font-weight: 900 !important;
  letter-spacing: -0.02em !important;
}

.salary-summary-sub {
  color: #94a3b8 !important;
  font-size: 13px !important;
  margin-top: 4px !important;
}

.salary-progress-track {
  background: rgba(15, 23, 42, 0.8) !important;
  border: 1px solid rgba(56, 189, 248, 0.25) !important;
  height: 8px !important;
  border-radius: 999px !important;
}

.salary-progress-bar {
  background: linear-gradient(90deg, #10b981, #06b6d4) !important;
  border-radius: 999px !important;
}

.salary-progress-meta {
  color: #bae6fd !important;
  font-weight: 600 !important;
  font-size: 12px !important;
}

.salary-metrics {
  background: transparent !important;
  padding: 16px !important;
}

.metric-tile {
  background: rgba(11, 27, 58, 0.75) !important;
  border: 1px solid rgba(56, 189, 248, 0.2) !important;
  border-radius: 14px !important;
  padding: 16px !important;
  color: #f8fafc !important;
}

.metric-label {
  color: #7dd3fc !important;
  font-weight: 700 !important;
  font-size: 11.5px !important;
  text-transform: uppercase !important;
  letter-spacing: 0.04em !important;
}

.metric-value {
  color: #ffffff !important;
  font-size: 22px !important;
  font-weight: 800 !important;
}

.metric-icon {
  color: #38bdf8 !important;
}

/* =========================================================
   REKAP FARMASI - AKTIVITAS & MEDIS ONLINE SIDE GRID
   High contrast text and unified dark glass panels
   ========================================================= */
.activity-feed-card,
.activity-feed-container {
  background: rgba(8, 22, 48, 0.85) !important;
  border: 1px solid rgba(56, 189, 248, 0.25) !important;
  border-radius: 18px !important;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.35) !important;
  color: #f8fafc !important;
  overflow: hidden !important;
}

.activity-feed-header {
  border-bottom: 1px solid rgba(56, 189, 248, 0.2) !important;
  background: rgba(14, 165, 233, 0.12) !important;
  color: #ffffff !important;
  padding: 12px 16px !important;
}

.activity-feed-title {
  color: #ffffff !important;
  font-weight: 700 !important;
  font-size: 14px !important;
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
}

.activity-feed-list {
  background: transparent !important;
}

.activity-feed-item {
  border-bottom: 1px solid rgba(56, 189, 248, 0.1) !important;
  color: #f1f5f9 !important;
  padding: 12px 14px !important;
  display: flex !important;
  align-items: flex-start !important;
  gap: 12px !important;
  transition: background 0.15s ease !important;
}

.activity-feed-item:hover {
  background: rgba(14, 165, 233, 0.12) !important;
}

/* Activity Feed Text Fixes (No more invisible black/dark gray text) */
.activity-medic {
  color: #ffffff !important;
  font-weight: 700 !important;
  font-size: 13.5px !important;
  line-height: 1.4 !important;
}

.activity-description {
  color: #bae6fd !important;
  font-size: 12.5px !important;
  line-height: 1.4 !important;
  margin-top: 2px !important;
}

.activity-time {
  color: #7dd3fc !important;
  font-size: 11px !important;
  margin-top: 4px !important;
  opacity: 0.85 !important;
}

.activity-icon {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 38px !important;
  height: 38px !important;
  min-width: 38px !important;
  border-radius: 50% !important;
  font-weight: 800 !important;
  font-size: 11px !important;
  letter-spacing: 0.03em !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3) !important;
}

.activity-icon.type-transaction {
  background: rgba(14, 165, 233, 0.25) !important;
  color: #38bdf8 !important;
  border: 1px solid rgba(56, 189, 248, 0.45) !important;
}

.activity-icon.type-online {
  background: rgba(16, 185, 129, 0.25) !important;
  color: #34d399 !important;
  border: 1px solid rgba(52, 211, 153, 0.45) !important;
}

.activity-icon.type-offline {
  background: rgba(148, 163, 184, 0.2) !important;
  color: #94a3b8 !important;
  border: 1px solid rgba(148, 163, 184, 0.35) !important;
}

.activity-icon.type-force_offline,
.activity-icon.type-delete {
  background: rgba(239, 68, 68, 0.25) !important;
  color: #f87171 !important;
  border: 1px solid rgba(248, 113, 113, 0.45) !important;
}

/* Medis Online Hari Ini - Card & Rows */
.card-online-medics {
  background: rgba(8, 22, 48, 0.85) !important;
  border: 1px solid rgba(56, 189, 248, 0.25) !important;
  border-radius: 18px !important;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.35) !important;
}

.card-online-medics .card-header-between {
  color: #ffffff !important;
  font-weight: 700 !important;
  font-size: 14px !important;
}

.card-online-medics .badge-counter {
  background: rgba(14, 165, 233, 0.25) !important;
  border: 1px solid rgba(56, 189, 248, 0.4) !important;
  color: #38bdf8 !important;
  font-weight: 700 !important;
  font-size: 11px !important;
  padding: 3px 10px !important;
  border-radius: 999px !important;
}

.online-medic-row {
  background: rgba(11, 27, 58, 0.75) !important;
  border: 1px solid rgba(56, 189, 248, 0.2) !important;
  border-radius: 14px !important;
  color: #f8fafc !important;
  padding: 14px !important;
  margin-bottom: 10px !important;
}

.online-medic-row:hover {
  border-color: rgba(56, 189, 248, 0.45) !important;
  background: rgba(11, 27, 58, 0.95) !important;
}

.online-medic-identity strong {
  color: #ffffff !important;
  font-size: 14px !important;
  font-weight: 700 !important;
}

.online-medic-subtitle {
  color: #38bdf8 !important;
  font-size: 12px !important;
  font-weight: 600 !important;
}

.online-medic-inline-meta {
  color: #94a3b8 !important;
  font-size: 11.5px !important;
  margin-top: 4px !important;
}

.online-medic-inline-meta strong {
  color: #f1f5f9 !important;
  font-weight: 700 !important;
}

.online-medic-inline-meta span {
  color: #bae6fd !important;
}

.weekly-badge-muted {
  background: rgba(14, 165, 233, 0.15) !important;
  border: 1px solid rgba(56, 189, 248, 0.3) !important;
  color: #38bdf8 !important;
  border-radius: 999px !important;
  font-size: 10.5px !important;
  font-weight: 700 !important;
  padding: 2px 8px !important;
}

/* 4 Mini Stat Cards in Online Medis Row (No more white boxes!) */
.online-medic-stats {
  display: grid !important;
  gap: 8px !important;
}

.online-medic-stat-card,
.online-medic-stat-card-success {
  background: rgba(6, 15, 34, 0.75) !important;
  border: 1px solid rgba(56, 189, 248, 0.2) !important;
  border-radius: 12px !important;
  padding: 8px 12px !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
}

.online-medic-stat-card:hover,
.online-medic-stat-card-success:hover {
  border-color: rgba(56, 189, 248, 0.4) !important;
  background: rgba(6, 15, 34, 0.9) !important;
}

.online-medic-stat-label {
  color: #7dd3fc !important;
  font-size: 10px !important;
  font-weight: 700 !important;
  letter-spacing: 0.04em !important;
  text-transform: uppercase !important;
  line-height: 1.2 !important;
}

.online-medic-stat-card strong,
.online-medic-stat-card-success strong {
  color: #ffffff !important;
  font-size: 13.5px !important;
  font-weight: 800 !important;
  margin-top: 3px !important;
}

/* =========================================================
   RINGKASAN ITEM & KASIR TOTAL DISPLAY (REKAP FARMASI)
   No more mismatched light mint boxes or dark unreadable text
   ========================================================= */
.total-item-info,
.total-item-info.bg-white {
  background: rgba(6, 15, 34, 0.7) !important;
  border: 1px solid rgba(56, 189, 248, 0.22) !important;
  border-radius: 16px !important;
  padding: 16px !important;
  color: #f8fafc !important;
  margin-top: 14px !important;
}

.total-item-info .grid > div {
  background: rgba(11, 27, 58, 0.75) !important;
  border: 1px solid rgba(56, 189, 248, 0.2) !important;
  border-radius: 12px !important;
  padding: 12px !important;
}

.total-item-info .meta-text-xs {
  color: #7dd3fc !important;
  font-size: 11.5px !important;
}

.total-item-info .font-semibold {
  color: #ffffff !important;
  font-size: 14px !important;
  font-weight: 700 !important;
}

/* Mode Paket Aktif card inside Ringkasan Item */
.total-item-info .border-emerald-200,
.total-item-info .bg-emerald-50 {
  background: rgba(16, 185, 129, 0.14) !important;
  border: 1px solid rgba(52, 211, 153, 0.4) !important;
}

.total-item-info .text-emerald-700 {
  color: #34d399 !important;
}

/* Kasir Total Display (Clean, Glowing Emerald Header) */
.total-display,
.total-display.border-emerald-200,
.total-display.bg-emerald-50 {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.15) 0%, rgba(6, 44, 38, 0.5) 100%) !important;
  border: 1px solid rgba(52, 211, 153, 0.4) !important;
  border-radius: 16px !important;
  padding: 16px 20px !important;
  margin-top: 14px !important;
  margin-bottom: 16px !important;
}

.total-display-label,
.total-display .text-emerald-700 {
  color: #6ee7b7 !important;
  font-size: 12.5px !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.04em !important;
}

.total-amount,
.total-display .total-amount {
  color: #34d399 !important;
  font-size: 32px !important;
  font-weight: 900 !important;
  letter-spacing: -0.02em !important;
  text-shadow: 0 0 20px rgba(16, 185, 129, 0.25) !important;
}

/* =========================================================
   FORM LABELS & HELPER TEXT (GLOBAL HIGH CONTRAST)
   ========================================================= */
.col label,
.form-group label,
form label,
label {
  color: #bae6fd !important;
  font-size: 12.5px !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.04em !important;
  margin-bottom: 6px !important;
}

.col small,
.form-group small,
form small,
.meta-text-xs,
.meta-text {
  color: #bae6fd !important;
  font-size: 11.5px !important;
  line-height: 1.4 !important;
}

/* Titles and Headers on Cards */
.section-title,
.section-title-compact,
.section-title-tight,
.card-header,
.request-card-title,
.card-header-actions-title,
.access-title,
.force-offline-label,
.card h2,
.card h3,
.card h4 {
  color: #ffffff !important;
  font-weight: 800 !important;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3) !important;
}

.section-title-compact svg,
.section-title-tight svg,
.card-header svg {
  color: #38bdf8 !important;
}

/* Switcher Caption & Muted Copy (Clear, Bright Ice Blue) */
.switcher-caption {
  color: #bae6fd !important;
  font-size: 13px !important;
  font-weight: 500 !important;
  margin-top: 4px !important;
}

.switcher-caption strong {
  color: #ffffff !important;
  font-weight: 800 !important;
}

.muted-copy,
.muted-copy-tight,
.section-intro,
.card-subnote,
.helper-note,
.access-copy,
.clock-text {
  color: #e0f2fe !important;
  font-size: 13px !important;
}

.muted-copy strong,
.muted-copy-tight strong,
.section-intro strong {
  color: #38bdf8 !important;
  font-weight: 700 !important;
}

/* Empty State Copy */
.empty-copy {
  color: #bae6fd !important;
  font-weight: 600 !important;
  font-size: 14px !important;
  text-align: center !important;
  padding: 24px 16px !important;
}

.empty-copy strong {
  color: #ffffff !important;
  font-weight: 800 !important;
}

/* Inputs, Selects, and Form Fields */
input[type="text"],
input[type="search"],
input[type="date"],
input[type="time"],
input[type="number"],
input[type="password"],
select,
textarea {
  background: rgba(12, 74, 110, 0.8) !important;
  border: 1px solid rgba(56, 189, 248, 0.45) !important;
  color: #ffffff !important;
  border-radius: 10px !important;
}

input:focus,
select:focus,
textarea:focus {
  border-color: #38bdf8 !important;
  box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.3) !important;
  outline: none !important;
}

select option {
  background: #075985 !important;
  color: #ffffff !important;
}

/* Prevent any dark text classes from Tailwind from ruining contrast */
.card .text-slate-900,
.card .text-slate-800,
.card .text-slate-700,
.page .text-slate-900,
.page .text-slate-800,
.page .text-slate-700 {
  color: #ffffff !important;
}

.card .text-slate-600,
.card .text-slate-500,
.page .text-slate-600,
.page .text-slate-500 {
  color: #bae6fd !important;
}

.card .bg-slate-50,
.card .bg-slate-100,
.page .bg-slate-50,
.page .bg-slate-100 {
  background-color: rgba(7, 89, 133, 0.6) !important;
  border-color: rgba(56, 189, 248, 0.35) !important;
}

/* =========================================================
   MANAGEMENT TOOLBAR CONTROLS (MANAJEMEN USER, ETC.)
   ========================================================= */
.card-toolbar {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  flex-wrap: wrap !important;
  gap: 12px !important;
}

.toolbar-group {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  flex-wrap: wrap !important;
}

.toolbar-select,
select.toolbar-select {
  background: rgba(11, 27, 58, 0.8) !important;
  border: 1px solid rgba(56, 189, 248, 0.3) !important;
  color: #ffffff !important;
  border-radius: 10px !important;
  padding: 8px 32px 8px 12px !important;
  font-size: 13px !important;
  min-height: 38px !important;
}

.toolbar-input,
input.toolbar-input {
  background: rgba(11, 27, 58, 0.8) !important;
  border: 1px solid rgba(56, 189, 248, 0.3) !important;
  color: #ffffff !important;
  border-radius: 10px !important;
  padding: 8px 14px !important;
  font-size: 13px !important;
  min-width: 200px !important;
  min-height: 38px !important;
}

.toolbar-input:focus,
.toolbar-select:focus {
  border-color: #38bdf8 !important;
  box-shadow: 0 0 0 2px rgba(14, 165, 233, 0.3) !important;
}

/* =========================================================
   SETTING AKUN & DOCUMENT UPLOAD DARK/CYBER THEMING
   ========================================================= */

/* Section Form Title & Dividers */
.section-form-title {
  color: #38bdf8 !important;
  font-size: 16px !important;
  font-weight: 700 !important;
  letter-spacing: 0.02em !important;
  margin-top: 24px !important;
  margin-bottom: 12px !important;
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  text-transform: uppercase !important;
}

.section-divider {
  border: 0 !important;
  border-top: 1px solid rgba(56, 189, 248, 0.25) !important;
  margin: 24px 0 !important;
}

/* Helper text, notes & descriptions */
.text-muted,
.doc-upload-meta,
.doc-hint,
.card .text-muted,
.page .text-muted {
  color: #94a3b8 !important;
  font-size: 13px !important;
  line-height: 1.5 !important;
}

.hint-warning {
  color: #fde047 !important; /* Soft bright yellow */
  font-size: 12px !important;
  display: block !important;
  margin-top: 4px !important;
}

.hint-info {
  color: #7dd3fc !important; /* Soft bright sky blue */
  font-size: 12px !important;
  display: block !important;
  margin-top: 4px !important;
}

.hint-locked {
  color: #cbd5e1 !important;
  font-size: 12px !important;
  display: block !important;
  margin-top: 4px !important;
}

.doc-hint {
  color: #94a3b8 !important;
  font-size: 12px !important;
  display: block !important;
  margin-top: 6px !important;
}

/* Info Box */
.info-box {
  background: rgba(11, 27, 58, 0.8) !important;
  border: 1px solid rgba(56, 189, 248, 0.4) !important;
  border-radius: 12px !important;
  color: #e0f2fe !important;
  padding: 12px 16px !important;
  margin-bottom: 18px !important;
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  font-size: 13.5px !important;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25) !important;
}

.info-box .info-icon {
  color: #38bdf8 !important;
  flex-shrink: 0 !important;
}

/* Document Upload Wrapper Panel */
.doc-upload-wrapper {
  background: rgba(8, 22, 48, 0.65) !important;
  border: 1px solid rgba(56, 189, 248, 0.3) !important;
  border-radius: 14px !important;
  padding: 18px !important;
  margin-bottom: 16px !important;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25) !important;
  transition: border-color 0.25s ease, box-shadow 0.25s ease !important;
}

.doc-upload-wrapper:hover {
  border-color: rgba(56, 189, 248, 0.6) !important;
  box-shadow: 0 6px 20px rgba(14, 165, 233, 0.15) !important;
}

.doc-upload-dashed {
  border-style: dashed !important;
  border-color: rgba(56, 189, 248, 0.4) !important;
}

.doc-upload-header {
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  flex-wrap: wrap !important;
  gap: 10px !important;
  margin-bottom: 12px !important;
}

.doc-upload-header-stack {
  flex-direction: column !important;
  align-items: flex-start !important;
  gap: 4px !important;
}

.doc-label {
  font-size: 13.5px !important;
  font-weight: 700 !important;
  color: #e0f2fe !important;
  letter-spacing: 0.04em !important;
  text-transform: uppercase !important;
  margin: 0 !important;
}

/* Status Badges */
.badge-muted-mini {
  display: inline-flex !important;
  align-items: center !important;
  padding: 4px 12px !important;
  border-radius: 999px !important;
  background: rgba(30, 41, 59, 0.85) !important;
  color: #94a3b8 !important;
  font-size: 12px !important;
  font-weight: 600 !important;
  border: 1px solid rgba(100, 116, 139, 0.45) !important;
}

.badge-success-mini {
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  padding: 4px 12px !important;
  border-radius: 999px !important;
  background: rgba(16, 185, 129, 0.2) !important;
  color: #34d399 !important;
  font-size: 12px !important;
  font-weight: 600 !important;
  border: 1px solid rgba(16, 185, 129, 0.45) !important;
}

.btn-preview-doc {
  color: #38bdf8 !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  text-decoration: underline !important;
  transition: color 0.2s ease !important;
}

.btn-preview-doc:hover {
  color: #7dd3fc !important;
}

/* File Upload Drag & Drop Area (Uniform Dark Cyber Style) */
.file-upload-label {
  display: flex !important;
  align-items: center !important;
  gap: 14px !important;
  padding: 12px 18px !important;
  border: 2px dashed rgba(56, 189, 248, 0.45) !important;
  border-radius: 12px !important;
  background: rgba(11, 19, 41, 0.75) !important;
  cursor: pointer !important;
  transition: all 0.2s ease !important;
  margin: 0 !important;
  text-transform: none !important;
}

.file-upload-label:hover {
  border-color: #38bdf8 !important;
  background: rgba(14, 165, 233, 0.15) !important;
  box-shadow: 0 0 16px rgba(14, 165, 233, 0.25) !important;
}

.file-icon {
  display: inline-flex !important;
  height: 42px !important;
  width: 42px !important;
  align-items: center !important;
  justify-content: center !important;
  border-radius: 10px !important;
  background: rgba(14, 165, 233, 0.2) !important;
  color: #38bdf8 !important;
  border: 1px solid rgba(56, 189, 248, 0.35) !important;
  flex-shrink: 0 !important;
}

.file-text {
  display: flex !important;
  flex-direction: column !important;
  gap: 2px !important;
}

.file-text strong {
  color: #ffffff !important;
  font-size: 13.5px !important;
  font-weight: 600 !important;
  text-transform: none !important;
}

.file-text small {
  color: #94a3b8 !important;
  font-size: 12px !important;
  text-transform: none !important;
}

.file-selected-name {
  margin-top: 8px !important;
  font-size: 13px !important;
}

.selected-file-info {
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  border-radius: 8px !important;
  background: rgba(14, 165, 233, 0.2) !important;
  border: 1px solid rgba(56, 189, 248, 0.4) !important;
  color: #f8fafc !important;
  padding: 6px 12px !important;
  font-size: 12.5px !important;
}

.selected-file-info strong {
  color: #38bdf8 !important;
}

.selected-file-info small {
  color: #cbd5e1 !important;
}

/* Academy Doc Row & Grid */
.academy-doc-row {
  background: rgba(11, 27, 58, 0.5) !important;
  border: 1px solid rgba(56, 189, 248, 0.25) !important;
  border-radius: 12px !important;
  padding: 16px !important;
  margin-bottom: 12px !important;
}

.academy-doc-row label {
  color: #e0f2fe !important;
  font-size: 12.5px !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  margin-bottom: 6px !important;
  display: block !important;
}

/* Add Academy Doc Button */
#btnAddAcademyDoc {
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%) !important;
  border: 1px solid rgba(56, 189, 248, 0.5) !important;
  color: #ffffff !important;
  padding: 9px 18px !important;
  border-radius: 10px !important;
  font-weight: 600 !important;
  font-size: 13px !important;
  cursor: pointer !important;
  transition: all 0.2s ease !important;
  box-shadow: 0 4px 14px rgba(2, 132, 199, 0.3) !important;
}

#btnAddAcademyDoc:hover {
  background: linear-gradient(135deg, #0ea5e9 0%, #0284c7 100%) !important;
  box-shadow: 0 6px 20px rgba(14, 165, 233, 0.45) !important;
  transform: translateY(-1px) !important;
}

/* Disabled inputs styling */
input:disabled,
select:disabled {
  background: rgba(15, 23, 42, 0.6) !important;
  color: #94a3b8 !important;
  border-color: rgba(56, 189, 248, 0.2) !important;
  cursor: not-allowed !important;
}


