.stat-card {
  background: #fff;
  border-radius: 14px;
  padding: 24px;
  height: 100%;
  transition: all .3s ease;
  box-shadow: 0 10px 30px rgba(0,0,0,.05);
}

.stat-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(0,0,0,.08);
}

.stat-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.stat-title {
  font-size: 14px;
  font-weight: 600;
  color: #6c757d;
  letter-spacing: .5px;
}

.stat-number {
  font-size: 32px;
  font-weight: 700;
  margin: 12px 0 4px;
  color: #212529;
}

.stat-desc {
  font-size: 13px;
}



/* STATISTIK CARD */
.bg-soft {
  background: #f4f7fb;
}

.stat-chart-card {
  background: #ffffff;
  border-radius: 16px;
  padding: 20px 20px 24px;
  height: 100%;
  box-shadow: 0 15px 35px rgba(0,0,0,.06);
  transition: all .3s ease;
}

.stat-chart-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 25px 50px rgba(0,0,0,.1);
}

.stat-chart-title {
  font-size: 16px;
  font-weight: 600;
  color: #1f2937;
  text-align: center;
  margin-bottom: 16px;
}

.chart-wrapper {
  height: 300px;
}

.chart-footer {
  text-align: center;
  font-size: 12px;
  color: #9ca3af;
  margin-top: 10px;
}

.highcharts-credits {
  display: none;
}

.section-padding{
  padding: 30px 0 !important;
}


/* TABLE Sebaran Per Eselonisasi jenis kelamin menurut jenis pegawai */
.stat-table-card {
  background: #ffffff;
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 20px 45px rgba(0,0,0,.06);
}

.stat-table-title {
  font-size: 22px;
  font-weight: 700;
  text-align: center;
  margin-bottom: 4px;
}

.stat-table-subtitle {
  text-align: center;
  font-size: 14px;
  color: #6b7280;
  margin-bottom: 20px;
}

.stat-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 14px;
}

.stat-table thead th {
  background: #16a34a;
  color: #ffffff;
  text-align: center;
  padding: 12px;
  font-weight: 600;
  border-right: 1px solid rgba(255,255,255,.3);
}

.stat-table thead tr:first-child th:first-child {
  border-top-left-radius: 10px;
}

.stat-table thead tr:first-child th:last-child {
  border-top-right-radius: 10px;
}

.stat-table tbody td {
  padding: 12px;
  text-align: center;
  border-bottom: 1px solid #e5e7eb;
}

.stat-table tbody td:first-child {
  text-align: left;
  font-weight: 600;
}

.stat-table tbody tr:nth-child(even) {
  background: #f9fafb;
}

.stat-table tbody tr:hover {
  background: #ecfdf5;
}

.stat-table tfoot td {
  background: #14532d;
  color: #ffffff;
  font-weight: 700;
  padding: 12px;
  text-align: center;
}

.stat-table tfoot td:first-child {
  text-align: left;
}

.table-responsive {
  overflow-x: auto;
}






.stat-table-card {
  background: #ffffff;
  border-radius: 18px;
  padding: 20px;
  box-shadow: 0 20px 45px rgba(0,0,0,.06);
}

.stat-table-title {
  font-size: 22px;
  font-weight: 700;
  text-align: center;
}

.stat-table-subtitle {
  text-align: center;
  font-size: 13px;
  color: #6b7280;
  margin-bottom: 16px;
}

/* WRAPPER: MATIIN SCROLL KANAN */
.table-wrapper {
  overflow-x: hidden;
}

/* TABLE: PAKSA MASUK 1 LAYAR */
.stat-table-wide {
  width: 100%;
  table-layout: fixed;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 11px;
}

/* HEADER */
.stat-table-wide thead th {
  background: #16a34a;
  color: #ffffff;
  text-align: center;
  padding: 6px 4px;
  font-weight: 600;
  border-right: 1px solid rgba(255,255,255,.25);
  white-space: nowrap;
}

.stat-table-wide thead tr:nth-child(2) th {
  background: #22c55e;
  font-size: 10px;
}

/* BODY */
.stat-table-wide tbody td {
  padding: 5px 4px;
  text-align: center;
  border-bottom: 1px solid #e5e7eb;
  background: #ffffff;
  font-variant-numeric: tabular-nums; /* angka rapi */
}

.stat-table-wide tbody tr:nth-child(even) td {
  background: #f9fafb;
}

.stat-table-wide tbody tr:hover td {
  background: #ecfdf5;
}

/* KOLOM NAMA (TIDAK STICKY LAGI, BIAR MUAT) */
.sticky-col {
  position: relative;
  left: auto;
  background: #f0fdf4;
  text-align: left !important;
  font-weight: 600;
  width: 180px;
  min-width: 180px;
  max-width: 180px;
  white-space: normal;
}

/* TOTAL */
.stat-table-wide tbody td:last-child {
  font-weight: 700;
  background: #dcfce7;
}

/* TANDA DASH */
.stat-table-wide td.dash {
  color: #9ca3af;
}




/* Statistik */
.dashboard-sidebar {
  background: #020617;
  color: #e5e7eb;
  border-radius: 14px;
  padding: 16px;
}

.kpi-main {
  display: flex;
  justify-content: space-between;
  align-items: end;
  border-bottom: 1px solid #e5e7eb;
  padding-bottom: 8px;
}

.kpi-value {
  font-size: 32px;
  font-weight: 800;
}

.kpi-card {
  background: #fff;
  border-radius: 12px;
  padding: 12px;
  box-shadow: 0 4px 14px rgba(0,0,0,.04);
}

.dashboard-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 24px;
}

/* SIDEBAR */
.dashboard-sidebar {
  background: #0f172a;
  color: #e5e7eb;
  border-radius: 16px;
  padding: 20px;
}

.sidebar-title {
  font-size: 13px;
  text-transform: uppercase;
  color: #9ca3af;
  margin-bottom: 12px;
}

.satker-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.satker-list li {
  padding: 10px 12px;
  border-radius: 10px;
  cursor: pointer;
  font-size: 14px;
  margin-bottom: 6px;
}

.satker-list li:hover {
  background: #1f2937;
}

.satker-list li.active {
  background: #16a34a;
  color: #ffffff;
  font-weight: 600;
}

/* CONTENT */
.dashboard-content {
  min-height: 400px;
}

.dashboard-compact {
  display: flex;
  flex-direction: column;
  gap: 16px;
  font-size: 13px;
}

/* KPI UTAMA */
.kpi-main {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  padding-bottom: 12px;
  border-bottom: 1px solid #e5e7eb;
}

.kpi-label {
  color: #6b7280;
  font-size: 13px;
}

.kpi-value {
  font-size: 36px;
  font-weight: 800;
}

/* KPI ROW */
.kpi-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.kpi-card {
  background: #ffffff;
  border-radius: 12px;
  padding: 12px;
  box-shadow: 0 4px 14px rgba(0,0,0,.04);
}

.kpi-card span {
  display: block;
  font-size: 12px;
  color: #6b7280;
  margin-bottom: 4px;
}

/* PANEL */
.panel {
  background: #ffffff;
  border-radius: 14px;
  padding: 16px;
  box-shadow: 0 4px 14px rgba(0,0,0,.04);
}

.panel h5 {
  margin-bottom: 10px;
}

/* GENERASI */
.gen-row {
  display: grid;
  grid-template-columns: 60px 1fr 60px;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.gen-bar {
  background: #e5e7eb;
  height: 6px;
  border-radius: 999px;
  overflow: hidden;
}

.gen-bar i {
  display: block;
  height: 100%;
  background: #16a34a;
  border-radius: 999px;
}

/* GOLONGAN */
.kpi-footer {
  display: flex;
  gap: 16px;
  font-size: 13px;
}

.kpi-footer div {
  background: #f0fdf4;
  padding: 8px 12px;
  border-radius: 999px;
}


.kpi-main {
  background: #ffffff;
  border-radius: 14px;
  padding: 14px 16px;
  display: flex;
  justify-content: space-between;
  align-items: end;
  border: 1px solid #e5e7eb;
}

.kpi-label {
  font-size: 12px;
  color: #6b7280;
}

.kpi-value {
  font-size: 28px;
  font-weight: 800;
}

.kpi-card {
  background: #ffffff;
  border-radius: 12px;
  padding: 12px 14px;
  border: 1px solid #e5e7eb;
  font-size: 13px;
}

.kpi-card span {
  display: block;
  font-size: 12px;
  color: #6b7280;
  margin-bottom: 4px;
}

/* MAP */
.map-card {
  background: #ffffff;
  border-radius: 14px;
  border: 1px solid #e5e7eb;
  padding: 10px;
}

.map-container {
  width: 100%;
  height: 100%;
  min-height: 360px;
  border-radius: 10px;
  background: #f3f4f6; /* placeholder */
}


.mini-chart {
  width: 100%;
  height: 160px;
  cursor: pointer;
}

.kpi-card small {
  font-size: 12px;
  color: #374151;
}

.highcharts-legend text {
  font-size: 10px !important;
}

.highcharts-legend-item {
  cursor: pointer;
}

.kpi-table td {
  padding: 2px 0;
  font-size: 12px;
}

.kpi-table .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
  margin-right: 6px;
}

.bg-pink {
  background-color: #f472b6;
}

.kpi-table tr {
  cursor: pointer;
}

.kpi-table tr:hover {
  background: #f3f4f6;
}

.kpi-table tr.text-muted {
  opacity: .5;
}

.kpi-table .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
  margin-right: 6px;
}

.bg-pink {
  background-color: #f472b6;
}


.map-container {
  width: 100%;
  height: 100%;
  min-height: 420px;
  border-radius: 0.375rem;
}

.map-short {
  min-height: 320px;   /* ⬅️ ini yang bikin landscape */
  max-height: 360px;
}

@media (max-width: 992px) {
  .map-short {
    min-height: 260px;
  }
}


.contact-card {
  transition: all 0.3s ease;
}

.contact-card:hover {
  transform: translateY(-5px);
}

.bg-soft-primary {
  background: rgba(13,110,253,0.1);
  color: #0d6efd;
  font-size: 11px;
  padding: 4px 8px;
  border-radius: 20px;
}
.chart-modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.85);

  display: flex;
  align-items: center;
  justify-content: center;

  visibility: hidden;
  opacity: 0;
  transition: opacity .2s ease;

  z-index: 9999;
}

.chart-modal.show {
  visibility: visible;
  opacity: 1;
}

.chart-modal-content {
  width: 95%;
  height: 95vh;
  background: #fff;
  border-radius: 12px;
  padding: 20px;
  display: flex;
  flex-direction: column;
}