/* --- CSS KHUSUS TAB PERTUMBUHAN (INTEGRASI V14) --- */
:root {
  --primary-score: #0f172a;
  --real-score: #6366f1;
  --target-score: #10b981;
}

.score-card {
  border: none;
  border-radius: 24px;
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.05);
}

.annual-box {
  border-radius: 16px;
  padding: 1.5rem;
  border: 1px solid #e2e8f0;
  height: 100%;
  transition: 0.3s;
}

.annual-box:hover {
  border-color: var(--real-score);
  transform: translateY(-5px);
}

.label-sm-score {
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  color: #94a3b8;
  letter-spacing: 1px;
}

.v-money-score {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--primary-score);
}

.growth-tag {
  font-size: 10px;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 4px;
}

.up {
  background: #dcfce7;
  color: #15803d;
}
.down {
  background: #fee2e2;
  color: #b91c1c;
}

.table-growth {
  /* Atur lebar minimal tabel agar kolom tidak terhimpit di mobile */
  min-width: 900px !important;
  border-collapse: separate;
  border-spacing: 0;
}

.table-growth thead th {
  background: #f1f5f9;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #64748b;
  border: none;
  padding: 12px;
  position: sticky;
  top: 0;
  z-index: 11;
}

.table-growth td {
  font-size: 11px;
  border-bottom: 1px solid #f1f5f9;
  padding: 12px;
}

.sync-tooltip {
  border-radius: 12px;
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
  border: 1px solid #e2e8f0;
  padding: 15px;
  min-width: 280px;
}

/* Skeleton Loading Shimmer Effect */
.sk-loading {
  background: #f6f7f8;
  background: linear-gradient(110deg, #ececec 8%, #f5f5f5 18%, #ececec 33%);
  background-size: 200% 100%;
  animation: 1.5s shine linear infinite;
  border-radius: 8px;
}

@keyframes shine {
  to {
    background-position-x: -200%;
  }
}

.sk-text-sm {
  height: 10px;
  width: 40%;
  margin-bottom: 12px;
}
.sk-text-lg {
  height: 24px;
  width: 70%;
  margin-bottom: 15px;
}
.sk-badge {
  height: 15px;
  width: 25%;
}
.sk-chart {
  height: 350px;
  width: 100%;
}

@media (max-width: 768px) {
  .v-money-score {
    font-size: 1rem;
  }
  .annual-box {
    padding: 1rem !important;
  }
  .table-growth td,
  .table-growth th {
    font-size: 10px;
    padding: 8px 4px;
  }
}

.table-growth td {
  padding: 12px 8px !important;
  vertical-align: middle;
}

.table-growth tbody tr:hover {
  background-color: rgba(232, 38, 70, 0.03) !important;
  transition: 0.2s;
}

.badge {
  letter-spacing: 0.5px;
  font-weight: 700;
}

#chart-realisasi-tren {
  touch-action: pan-y !important; 
}

.apexcharts-canvas, .apexcharts-canvas svg {
  touch-action: pan-y !important;
  pointer-events: auto;
}

@media (max-width: 768px) {
  .chart-container-wrapper {
    overflow-x: scroll !important; 
    padding-bottom: 15px !important;
    -webkit-overflow-scrolling: touch; /* Momentum scroll agar smooth */
  }

  .chart-container-wrapper::-webkit-scrollbar {
    height: 15px !important;
    display: block !important;
  }

  .chart-container-wrapper::-webkit-scrollbar-thumb {
    background-color: #e82646 !important; /* Merah Bapenda */
    border-radius: 20px;
    /* Beri border putih solid agar sistem mobile tidak menyembunyikannya */
    border: 2px solid #ffffff; 
  }

  .chart-container-wrapper::-webkit-scrollbar-track {
    background: #f8f9fa !important;
    border-radius: 20px;
  }
}
