table.dataTable td.dt-control-2 {
  cursor: pointer;
  text-align: center;
}

table.dataTable td.dt-control-2:before {
  height: 1em;
  width: 1em;
  margin-top: -9px;
  display: inline-block;
  box-sizing: content-box;
  text-align: center;
  text-indent: 0 !important;
  font-family: "tabler-icons";
  line-height: 1em;
  content: "\eb5f";
}

table.dataTable tr.dt-hasChild td.dt-control-2:before {
  content: "\eb5d";
}

.alert-container {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translate(-50%, 0%);
  padding: 20px;
  border-radius: 5px;
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.5s;
  z-index: 9999;
}

.alert-container.visible {
  visibility: visible;
  opacity: 1;
}

.twitter-typeahead,
.tt-hint,
.tt-input,
.tt-menu {
  width: 100%;
}

.table-docked-last td:last-child,
.table-docked-last th:last-child {
  position: sticky !important;
  right: 0;
  z-index: 1;
  background-color: #eaebec;
}

.table-docked-first td:nth-child(1),
.table-docked-first th:nth-child(1) {
  position: sticky !important;
  left: 0;
  z-index: 2;
  background-color: white;
}

#table01 td:nth-child(5),
#table01 th:nth-child(5) {
  background-color: rgba(255, 159, 67, 0.5);
}

.tt-menu {
  max-height: 200px;
  overflow-y: auto;
}

.hidden-container {
  display: none;
}

.light-chart {
  background-color: #fff;
}

.grid-container {
  display: grid;
  grid-template-columns: 50% 50%;
  width: 50%;
}

/* overlay di dalam tbody */
.table-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
}

.table-overlay .spinner {
  border: 4px solid #f3f3f3;
  border-top: 4px solid #3498db;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  animation: spin 1s linear infinite;
}

#modalLoader {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #4b465c;
  z-index: 1095;
  opacity: 0.5;
  display: flex;
  align-items: center;
  justify-content: center;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

.loading-overlay {
  position: absolute !important;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
}

.loading-content {
  text-align: center;
}

/* ===============================
   MODERN DASHBOARD STYLES
   =============================== */

/* Vibrant Gradients */
.bg-gradient-emerald {
  background: linear-gradient(135deg, #0f5132 0%, #198754 100%) !important;
  color: #fff;
}

.bg-gradient-teal {
  background: linear-gradient(135deg, #0d9488 0%, #14b8a6 100%) !important;
  color: #fff;
}

.bg-gradient-primary {
  background: linear-gradient(135deg, #7367f0 0%, #9e95f5 100%) !important;
  color: #fff;
}

.bg-gradient-soft-teal {
  background: linear-gradient(135deg, #10b981 0%, #34d399 100%) !important;
}

/* Ensure avatar icon flexbox centering */
.avatar {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
}

/* Glassmorphism overlays */
.glassmorphism-card {
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 0.75rem;
}

.glassmorphism-dark {
  background: rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Metric Cards Hover & Shadows */
.metric-card {
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  border: none;
  border-radius: 1rem;
}

.metric-card:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 10px 20px -5px rgba(0, 0, 0, 0.1);
}

/* Widget Tab Active Glowing State */
.widget-nav-tabs .nav-link {
  transition: all 0.3s ease;
  border: 1px solid transparent;
}

.widget-nav-tabs .nav-link.active {
  background-color: #fff !important;
  border-color: #10b981 !important;
  box-shadow: 0 0 15px rgba(16, 185, 129, 0.2) !important;
  transform: translateY(-2px);
}

.widget-nav-tabs .nav-link.active .badge {
  background-color: #10b981 !important;
  color: #fff !important;
}

/* Modern Soft Table Row Indicators */
.table-row-warning {
  background-color: rgba(245, 158, 11, 0.05) !important;
}

.table-row-warning td:first-child {
  border-left: 4px solid #f59e0b !important;
}

.table-row-danger {
  background-color: rgba(239, 68, 68, 0.05) !important;
}

.table-row-danger td:first-child {
  border-left: 4px solid #ef4444 !important;
}

/* Soft icon backgrounds */
.bg-soft-primary {
  background-color: rgba(105, 108, 255, 0.15) !important;
  color: #696cff !important;
}

.bg-soft-info {
  background-color: rgba(3, 195, 236, 0.15) !important;
  color: #03c3ec !important;
}

.bg-soft-warning {
  background-color: rgba(255, 171, 0, 0.15) !important;
  color: #ffab00 !important;
}

.bg-soft-danger {
  background-color: rgba(255, 62, 29, 0.15) !important;
  color: #ff3e1d !important;
}

.bg-soft-success {
  background-color: rgba(113, 221, 55, 0.15) !important;
  color: #71dd37 !important;
}

/* Custom global table-light head styling */
.table-light th,
.table-light thead th {
  background-color: #f6f5f7 !important;
  color: #4b465c !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  font-size: 0.75rem !important;
  letter-spacing: 0.8px;
  padding: 12px 16px !important;
}

/* Custom styling for bordered + hoverable tables */
.table-bordered.table-hover th,
.table-bordered.table-hover td {
  border: 1px solid #dbdade !important;
}

.table-bordered.table-hover tbody td {
  padding: 12px 16px !important;
  font-size: 0.85rem !important;
  color: #5d596c;
}

.table-bordered.table-hover tbody tr:hover {
  background-color: rgba(115, 103, 240, 0.05) !important;
  transition: all 0.2s ease-in-out;
}

/* ========================================================
   GLOBAL FONT CONFIGURATION (Comment / Uncomment as needed)
   ======================================================== */

/* Pilihan 1: Plus Jakarta Sans (Aktif secara default) */
html,
body,
.layout-wrapper,
.layout-menu,
.card,
input,
select,
textarea,
button {
  font-family: 'Plus Jakarta Sans', sans-serif !important;
}

/* Pilihan 2: Mulish (Aktifkan dengan menghapus tanda komentar di bawah ini) */
/* 
html,
body,
.layout-wrapper,
.layout-menu,
.card,
input,
select,
textarea,
button {
  font-family: 'Mulish', sans-serif !important;
} */
/* Pilihan 3: Manrope (Aktifkan dengan menghapus tanda komentar di bawah ini) */
/* 
html,
body,
.layout-wrapper,
.layout-menu,
.card,
input,
select,
textarea,
button {
  font-family: 'Manrope', sans-serif !important;
} 

/* ==========================================================================
   Auth Login Page Styles (Database Kultur Jaringan)
   ========================================================================== */
.auth-page-body,
.auth-page-wrapper {
  background-color: #ffffff !important;
}

.auth-left-panel {
  background-color: #F5F7FA;
  min-height: 100vh;
}

.auth-brand-logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.auth-brand-title {
  color: #387E34;
  font-weight: 700;
  font-size: 1.35rem;
  letter-spacing: -0.3px;
}

.auth-illustration-card {
  background-color: #ffffff;
  border-radius: 0px 0px 200px 0px;
  border: none !important;
  box-shadow: none !important;
  width: 100%;
  max-width: 540px;
  min-height: 460px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  position: relative;
}

.auth-illustration-card img {
  max-height: 380px;
  width: auto;
  object-fit: contain;
  mix-blend-mode: multiply;
}

.auth-input-group {
  border: 1.5px solid #E2E8F0 !important;
  border-radius: 10px !important;
  background-color: #ffffff !important;
  transition: all 0.2s ease;
  overflow: hidden;
}

.auth-input-group:focus-within {
  border-color: #387E34 !important;
  box-shadow: 0 0 0 3px rgba(56, 126, 52, 0.12) !important;
}

.auth-input-group.has-error {
  border-color: #E53E3E !important;
  background-color: #FFF5F5 !important;
}

.auth-input-group.has-error .form-control {
  color: #C53030 !important;
}

.auth-input-group.has-error .input-group-text i {
  color: #E53E3E !important;
}

.auth-input-group .input-group-text {
  background-color: transparent !important;
  border: none !important;
  color: #94A3B8 !important;
  padding-left: 1rem;
  padding-right: 0.5rem;
}

.auth-input-group:focus-within .input-group-text i {
  color: #387E34 !important;
}

.auth-input-group .form-control {
  background-color: transparent !important;
  border: none !important;
  color: #1E293B !important;
  font-weight: 500;
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
  padding-left: 0.25rem;
  box-shadow: none !important;
  font-size: 0.925rem;
}

.auth-input-group .form-control::placeholder {
  color: #CBD5E1 !important;
  font-weight: 400;
}

.auth-error-alert {
  background-color: #F8D7DA;
  color: #721C24;
  border: 1px solid #F5C2C7;
  border-radius: 10px;
  padding: 0.85rem 1rem;
  font-size: 0.85rem;
  line-height: 1.45;
  margin-bottom: 1.25rem;
}

.btn-kuljar-primary {
  background-color: #387E34 !important;
  border-color: #387E34 !important;
  border-radius: 10px !important;
  padding: 0.8rem 1.5rem !important;
  font-weight: 600 !important;
  font-size: 1.05rem !important;
  box-shadow: 0 4px 14px rgba(56, 126, 52, 0.25) !important;
  transition: all 0.25s ease !important;
}

.btn-kuljar-primary:hover {
  background-color: #2E682B !important;
  border-color: #2E682B !important;
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(56, 126, 52, 0.35) !important;
}

.text-kuljar-green {
  color: #387E34 !important;
}

.form-check-input:checked {
  background-color: #387E34 !important;
  border-color: #387E34 !important;
}

/* ============================================================
   REKAPAN GUDANG — Shared Minimalist Styles
   (sisa-stok, barang-masuk, barang-keluar, tahunan)
   ============================================================ */

/* ── Page Header ── */
.rekapan-page-header {
    border-bottom: 1px solid #e5e7eb;
    padding-bottom: 1.25rem;
    margin-bottom: 1.5rem;
}
.rekapan-page-header h4 {
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    color: #111827;
    margin: 0;
}
.rekapan-page-header p {
    font-size: 0.8rem;
    color: #6b7280;
    margin: 0;
}

/* ── Filter Card ── */
.filter-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
}
.filter-card .form-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 4px;
}
.filter-card .form-select {
    font-size: 0.85rem;
    border-color: #d1d5db;
    border-radius: 6px;
    color: #374151;
}
.filter-card .form-select:focus {
    border-color: #6b7280;
    box-shadow: 0 0 0 2px rgba(107, 114, 128, 0.12);
}

/* ── Buttons ── */
.btn-filter-apply {
    background: #111827;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    padding: 0.45rem 1.1rem;
    transition: background 0.15s;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.btn-filter-apply:hover {
    background: #1f2937;
    color: #fff;
}
.btn-export-minimal {
    background: #fff;
    color: #374151;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 0.82rem;
    font-weight: 600;
    padding: 0.42rem 0.9rem;
    transition: all 0.15s;
    cursor: pointer;
}
/* When inside btn-group, flatten right side */
.btn-group .btn-export-minimal {
    border-radius: 6px 0 0 6px;
}
.btn-export-minimal:hover {
    background: #f3f4f6;
    border-color: #9ca3af;
    color: #111827;
}
.btn-export-dd {
    background: #fff;
    color: #374151;
    border: 1px solid #d1d5db;
    border-left: none;
    border-radius: 0 6px 6px 0;
    font-size: 0.82rem;
    padding: 0.42rem 0.65rem;
    cursor: pointer;
    transition: all 0.15s;
}
.btn-export-dd:hover {
    background: #f3f4f6;
}

/* ── KPI Cards ── */
.kpi-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 1rem 1.25rem;
    transition: box-shadow 0.15s;
}
.kpi-card:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}
.kpi-card .kpi-label {
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #9ca3af;
    margin-bottom: 6px;
}
.kpi-card .kpi-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: #111827;
    line-height: 1;
}
.kpi-card .kpi-sub {
    font-size: 0.72rem;
    color: #9ca3af;
    font-weight: 500;
    margin-top: 4px;
}
.kpi-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
    margin-right: 6px;
}
.kpi-dot-neutral { background: #6b7280; }
.kpi-dot-ok      { background: #10b981; }
.kpi-dot-warn    { background: #f59e0b; }
.kpi-dot-alert   { background: #ef4444; }
.kpi-dot-info    { background: #3b82f6; }

/* ── Table (Rekapan) ── */
.table-rekapan thead th {
    background: #f9fafb !important;
    color: #374151 !important;
    font-weight: 700 !important;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    border-top: 2px solid #e5e7eb !important;
    border-bottom: 2px solid #e5e7eb !important;
    border-left: 1px solid #f3f4f6 !important;
    border-right: 1px solid #f3f4f6 !important;
    vertical-align: middle;
    text-align: center;
    padding: 10px 8px;
}
.table-rekapan thead th.sub-th-masuk {
    background: #ecfdf5 !important;
    color: #065f46 !important;
    border-color: #d1fae5 !important;
}
.table-rekapan thead th.sub-th-keluar {
    background: #fff1f2 !important;
    color: #881337 !important;
    border-color: #ffe4e6 !important;
}
.table-rekapan thead th.th-total {
    background: #f1f5f9 !important;
    color: #334155 !important;
    border-color: #e2e8f0 !important;
}
.table-rekapan tbody td {
    vertical-align: middle;
    font-size: 0.82rem;
    color: #374151;
    border: none !important;
    border-bottom: 1px solid #f3f4f6 !important;
    border-right: 1px solid #f3f4f6 !important;
    padding: 9px 8px;
}
.table-rekapan tbody tr:hover td {
    background: #f9fafb;
}
.table-rekapan.table-bordered {
    border: none !important;
}
.cell-zero {
    color: #d1d5db !important;
}

/* ── Table Card Wrapper ── */
.table-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    overflow: hidden;
}
.table-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.9rem 1.25rem;
    border-bottom: 1px solid #f3f4f6;
}
.table-card-header h6 {
    font-size: 0.85rem;
    font-weight: 700;
    color: #111827;
    margin: 0;
}

/* ── Rekapan Tabs (Tahunan) ── */
.rekapan-tabs {
    display: flex;
    gap: 2px;
    padding: 0.75rem 1rem 0;
    border-bottom: 1px solid #e5e7eb;
    background: #f9fafb;
}
.rekapan-tab-btn {
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    padding: 0.5rem 0.9rem;
    font-size: 0.8rem;
    font-weight: 600;
    color: #6b7280;
    cursor: pointer;
    transition: color 0.15s, border-color 0.15s;
    border-radius: 4px 4px 0 0;
    margin-bottom: -1px;
}
.rekapan-tab-btn.active {
    color: #111827;
    border-bottom-color: #111827;
    background: #fff;
}
.rekapan-tab-btn:hover:not(.active) {
    color: #374151;
}

/* ── Legend badges (Tahunan) ── */
.badge-masuk {
    background: #ecfdf5;
    color: #065f46;
    font-weight: 600;
    font-size: 0.72rem;
}
.badge-keluar {
    background: #fff1f2;
    color: #881337;
    font-weight: 600;
    font-size: 0.72rem;
}