/**
 * css/analisis.css
 * Stylesheet Visualisasi & Analisis Eksekutif Sub Kegiatan RKA
 * Berstandar Modern BI (Business Intelligence) & UI Pemerintahan Premium
 */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&family=JetBrains+Mono:wght@400;500;600&display=swap');

:root {
  --primary-navy: #0f172a;
  --primary-blue: #2563eb;
  --primary-blue-hover: #1d4ed8;
  --primary-blue-subtle: #eff6ff;
  --accent-cyan: #06b6d4;
  --accent-indigo: #6366f1;
  --success-emerald: #10b981;
  --success-emerald-subtle: #ecfdf5;
  --warning-amber: #f59e0b;
  --warning-amber-subtle: #fffbeb;
  --danger-rose: #f43f5e;
  --danger-rose-subtle: #fff1f2;
  --purple-amethyst: #8b5cf6;
  --purple-subtle: #f5f3ff;
  --slate-dark: #1e293b;
  --slate-medium: #475569;
  --slate-light: #94a3b8;
  --slate-border: #e2e8f0;
  --bg-canvas: #f8fafc;
  --card-bg: #ffffff;
  --card-border: rgba(226, 232, 240, 0.8);
  --shadow-card: 0 4px 20px -2px rgba(15, 23, 42, 0.05), 0 2px 6px -1px rgba(15, 23, 42, 0.03);
  --shadow-card-hover: 0 12px 30px -4px rgba(15, 23, 42, 0.09), 0 4px 10px -2px rgba(15, 23, 42, 0.04);
  --radius-xl: 18px;
  --radius-lg: 14px;
  --radius-md: 10px;
  --radius-sm: 6px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background-color: var(--bg-canvas);
  color: var(--slate-dark);
  line-height: 1.6;
  font-size: 14.5px;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

/* -------------------------------------------------------------
   TOP NAVIGATION BAR
   ------------------------------------------------------------- */
.analisis-nav {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(15, 23, 42, 0.96);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  color: #ffffff;
  padding: 12px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
  width: 100%;
}

.brand-section {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand-logo-wrap {
  width: 42px;
  height: 42px;
  background: linear-gradient(135deg, #2563eb, #06b6d4);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.35);
}

.brand-logo-wrap i {
  font-size: 22px;
  color: #ffffff;
}

.brand-info h1 {
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -0.3px;
  margin: 0;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 8px;
}

.brand-info p {
  font-size: 12px;
  color: var(--slate-light);
  margin: 0;
}

.brand-badge {
  font-size: 10.5px;
  font-weight: 700;
  background: linear-gradient(135deg, #10b981, #059669);
  color: #ffffff;
  padding: 2px 8px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.nav-controls {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 16px;
  font-size: 13px;
  font-weight: 600;
  border-radius: 30px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.08);
  color: #f1f5f9;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s ease;
}

.nav-btn:hover {
  background: rgba(255, 255, 255, 0.18);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-1px);
}

.nav-btn.btn-primary-action {
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  border-color: #3b82f6;
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.35);
}

.nav-btn.btn-primary-action:hover {
  background: linear-gradient(135deg, #1d4ed8, #1e40af);
  box-shadow: 0 6px 18px rgba(37, 99, 235, 0.45);
}

.nav-btn.btn-danger-action {
  background: linear-gradient(135deg, #dc2626, #b91c1c);
  border-color: #ef4444;
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(220, 38, 38, 0.35);
}

.nav-btn.btn-danger-action:hover {
  background: linear-gradient(135deg, #b91c1c, #991b1b);
  box-shadow: 0 6px 18px rgba(220, 38, 38, 0.45);
  color: #ffffff;
  transform: translateY(-1px);
}

/* -------------------------------------------------------------
   MAIN CONTAINER & HERO BANNER
   ------------------------------------------------------------- */
.analisis-main {
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding: 20px 24px 60px;
}

@media (min-width: 1600px) {
  .analisis-main {
    padding: 24px 32px 60px;
  }
}

.hero-banner {
  background: linear-gradient(135deg, #0f172a 0%, #1e3a8a 55%, #1e293b 100%);
  border-radius: var(--radius-xl);
  padding: 26px 32px;
  color: #ffffff;
  margin-bottom: 24px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 10px 30px -5px rgba(15, 23, 42, 0.18);
}

.hero-banner::before {
  content: '';
  position: absolute;
  top: -40%;
  right: -10%;
  width: 450px;
  height: 450px;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.28) 0%, rgba(6, 182, 212, 0.1) 60%, transparent 80%);
  border-radius: 50%;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}

.hero-text h2 {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.4px;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.hero-text p {
  color: #cbd5e1;
  font-size: 13.5px;
  margin-bottom: 0;
  max-width: 800px;
}

.data-source-pill {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(255, 255, 255, 0.1);
  padding: 8px 18px;
  border-radius: 40px;
  border: 1px solid rgba(255, 255, 255, 0.16);
}

.data-source-pill span {
  font-size: 12.5px;
  color: #e2e8f0;
}

.storage-select {
  background: rgba(15, 23, 42, 0.8);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.25);
  padding: 5px 14px;
  border-radius: 20px;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  outline: none;
}

.storage-select option {
  background: #0f172a;
  color: #ffffff;
}

/* -------------------------------------------------------------
   EXECUTIVE KPI SUMMARY CARDS
   ------------------------------------------------------------- */
.kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
  margin-bottom: 24px;
  width: 100%;
}

@media (min-width: 1300px) {
  .kpi-grid {
    grid-template-columns: repeat(5, 1fr);
  }
}

.kpi-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  padding: 20px 22px;
  box-shadow: var(--shadow-card);
  transition: all 0.25s ease;
  position: relative;
  overflow: hidden;
}

.kpi-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-card-hover);
  border-color: rgba(37, 99, 235, 0.25);
}

.kpi-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3.5px;
  background: linear-gradient(90deg, var(--kpi-accent, #2563eb), transparent);
}

.kpi-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.kpi-title {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--slate-medium);
}

.kpi-icon-wrap {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  background: var(--kpi-bg, var(--primary-blue-subtle));
  color: var(--kpi-accent, var(--primary-blue));
}

.kpi-value {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: var(--slate-dark);
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.kpi-subtext {
  font-size: 12px;
  color: var(--slate-light);
  display: flex;
  align-items: center;
  gap: 6px;
}

/* -------------------------------------------------------------
   FILTER & SEARCH TOOLBAR PANEL
   ------------------------------------------------------------- */
.filter-panel {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  padding: 20px 24px;
  box-shadow: var(--shadow-card);
  margin-bottom: 24px;
}

.filter-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
  flex-wrap: wrap;
  gap: 12px;
}

.filter-title {
  font-size: 14.5px;
  font-weight: 700;
  color: var(--slate-dark);
  display: flex;
  align-items: center;
  gap: 8px;
}

.filter-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.btn-reset-filter {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--danger-rose);
  background: var(--danger-rose-subtle);
  border: 1px solid rgba(244, 63, 94, 0.2);
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-reset-filter:hover {
  background: var(--danger-rose);
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(244, 63, 94, 0.25);
  transform: translateY(-1px);
}

.btn-reset-filter:active {
  transform: scale(0.96);
}

.filter-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  align-items: end;
}

@media (max-width: 1280px) {
  .filter-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .filter-grid {
    grid-template-columns: 1fr;
  }
}

.filter-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.filter-label {
  font-size: 12px;
  font-weight: 700;
  color: var(--slate-medium);
  display: flex;
  align-items: center;
  gap: 6px;
}

.search-box-wrap {
  position: relative;
}

.search-box-wrap i {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--slate-light);
  font-size: 15px;
}

.search-input {
  width: 100%;
  padding: 9px 14px 9px 38px;
  border-radius: var(--radius-md);
  border: 1px solid var(--slate-border);
  background: #ffffff;
  font-size: 13px;
  font-weight: 500;
  color: var(--slate-dark);
  outline: none;
  transition: all 0.2s ease;
}

.search-input:focus {
  border-color: var(--primary-blue);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.filter-select {
  width: 100%;
  padding: 9px 14px;
  border-radius: var(--radius-md);
  border: 1px solid var(--slate-border);
  background: #ffffff;
  font-size: 13px;
  font-weight: 500;
  color: var(--slate-dark);
  outline: none;
  transition: all 0.2s ease;
  cursor: pointer;
}

.filter-select:focus {
  border-color: var(--primary-blue);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.filter-chips {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px dashed var(--slate-border);
}

.filter-chips-label {
  font-size: 11.5px;
  font-weight: 700;
  color: var(--slate-medium);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.chip-btn {
  background: var(--bg-canvas);
  border: 1px solid var(--slate-border);
  color: var(--slate-dark);
  font-size: 12px;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.chip-btn:hover {
  background: var(--primary-blue-subtle);
  color: var(--primary-blue);
  border-color: rgba(37, 99, 235, 0.3);
}

.chip-btn.active {
  background: var(--primary-blue);
  color: #ffffff;
  border-color: var(--primary-blue);
}

/* -------------------------------------------------------------
   CHARTS GRID & CARDS (PROPORTIONAL & BALANCED)
   ------------------------------------------------------------- */
.charts-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  margin-bottom: 30px;
  width: 100%;
}

.chart-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-xl);
  padding: 24px;
  box-shadow: var(--shadow-card);
  transition: all 0.25s ease;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  box-sizing: border-box;
}

.chart-card:hover {
  box-shadow: var(--shadow-card-hover);
  border-color: rgba(37, 99, 235, 0.25);
}

.chart-card.full-width,
.chart-card.col-12 {
  grid-column: 1 / -1 !important;
  width: 100% !important;
}

.chart-card.col-6 {
  width: 100% !important;
}

@media (max-width: 1100px) {
  .charts-grid {
    grid-template-columns: 1fr;
  }
  .chart-card,
  .chart-card.col-6,
  .chart-card.col-12 {
    grid-column: 1 / -1 !important;
  }
}

.chart-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 18px;
  gap: 14px;
}

.chart-title-wrap {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.chart-title {
  font-size: 15.5px;
  font-weight: 700;
  color: var(--slate-dark);
  display: flex;
  align-items: center;
  gap: 8px;
  letter-spacing: -0.2px;
}

.chart-subtitle {
  font-size: 12px;
  color: var(--slate-light);
  line-height: 1.4;
}

.chart-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.chart-tool-btn {
  background: var(--bg-canvas);
  border: 1px solid var(--slate-border);
  color: var(--slate-medium);
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 13px;
}

.chart-tool-btn:hover {
  background: var(--primary-blue-subtle);
  color: var(--primary-blue);
  border-color: rgba(37, 99, 235, 0.3);
}

.chart-body {
  position: relative;
  flex-grow: 1;
  min-height: 320px;
  width: 100%;
}

.chart-center-badge {
  position: absolute;
  top: 48%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  pointer-events: none;
}

.chart-center-badge .total-val {
  font-size: 17px;
  font-weight: 800;
  color: var(--slate-dark);
  line-height: 1.2;
}

.chart-center-badge .total-lbl {
  font-size: 10.5px;
  font-weight: 700;
  color: var(--slate-light);
  text-transform: uppercase;
}

/* -------------------------------------------------------------
   EXECUTIVE CHART INSIGHT & INTELLIGENCE BOX
   ------------------------------------------------------------- */
.chart-insight-box {
  margin-top: 14px;
  background: linear-gradient(135deg, rgba(248, 250, 252, 0.98), rgba(241, 245, 249, 0.98));
  border: 1px solid #e2e8f0;
  border-left: 4px solid #2563eb;
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 12px;
  line-height: 1.5;
  color: #334155;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
}

.chart-insight-box .insight-icon {
  font-size: 16px;
  color: #2563eb;
  flex-shrink: 0;
  margin-top: 1px;
}

.chart-insight-box .insight-title {
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #1e293b;
  margin-bottom: 3px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.chart-insight-box .insight-content {
  flex-grow: 1;
}

.chart-insight-box strong {
  color: #0f172a;
}

.radar-legend-guide {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  transition: all 0.2s ease;
}

.radar-legend-guide:hover {
  border-color: #cbd5e1;
}

/* -------------------------------------------------------------
   DATA TABLE & PAGINATION SECTION
   ------------------------------------------------------------- */
.table-section-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  margin-bottom: 30px;
}

.table-header-bar {
  padding: 20px 24px;
  background: #ffffff;
  border-bottom: 1px solid var(--slate-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
}

.table-header-title {
  font-size: 16px;
  font-weight: 800;
  color: var(--slate-dark);
  display: flex;
  align-items: center;
  gap: 10px;
}

.table-controls {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.entries-select-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  color: var(--slate-medium);
}

.entries-select {
  padding: 5px 10px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--slate-border);
  font-size: 12.5px;
  font-weight: 600;
  color: var(--slate-dark);
  background: #ffffff;
  outline: none;
}

.btn-export-excel {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 16px;
  font-size: 12.5px;
  font-weight: 700;
  color: #ffffff;
  background: linear-gradient(135deg, #10b981, #059669);
  border: none;
  border-radius: 20px;
  cursor: pointer;
  box-shadow: 0 3px 10px rgba(16, 185, 129, 0.25);
  transition: all 0.2s ease;
}

.btn-export-excel:hover {
  background: linear-gradient(135deg, #059669, #047857);
  box-shadow: 0 5px 14px rgba(16, 185, 129, 0.35);
  transform: translateY(-1px);
}

.table-responsive-wrap {
  width: 100%;
  overflow-x: auto;
}

.subkeg-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 13px;
}

.subkeg-table thead {
  background: #f8fafc;
  border-bottom: 2px solid var(--slate-border);
}

.subkeg-table th {
  padding: 13px 16px;
  font-weight: 700;
  color: var(--slate-medium);
  text-transform: uppercase;
  font-size: 11px;
  letter-spacing: 0.6px;
  white-space: nowrap;
}

.subkeg-table th.sortable {
  cursor: pointer;
  user-select: none;
}

.subkeg-table th.sortable:hover {
  color: var(--primary-blue);
}

.subkeg-table tbody tr {
  border-bottom: 1px solid var(--slate-border);
  transition: background-color 0.15s ease;
}

.subkeg-table tbody tr:hover {
  background-color: #f1f5f9;
}

.subkeg-table td {
  padding: 14px 16px;
  vertical-align: middle;
  color: var(--slate-dark);
}

.kode-subkeg-badge {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11.5px;
  font-weight: 600;
  background: var(--primary-blue-subtle);
  color: var(--primary-blue);
  padding: 3px 8px;
  border-radius: 6px;
  display: inline-block;
}

.subkeg-name-wrap {
  display: flex;
  flex-direction: column;
  gap: 2px;
  max-width: 380px;
}

.subkeg-name {
  font-weight: 700;
  color: var(--slate-dark);
  line-height: 1.35;
}

.subkeg-prog-keg {
  font-size: 11.5px;
  color: var(--slate-light);
  line-height: 1.3;
}

.currency-text {
  font-family: 'JetBrains Mono', monospace;
  font-weight: 700;
  color: var(--slate-dark);
  white-space: nowrap;
}

.trend-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}

.trend-badge.trend-up {
  background: var(--success-emerald-subtle);
  color: var(--success-emerald);
}

.trend-badge.trend-down {
  background: var(--danger-rose-subtle);
  color: var(--danger-rose);
}

.trend-badge.trend-stable {
  background: var(--bg-canvas);
  color: var(--slate-medium);
  border: 1px solid var(--slate-border);
}

/* Mini Bar Composition in Table Cell */
.mini-comp-bar {
  width: 100px;
  height: 8px;
  border-radius: 4px;
  background: var(--slate-border);
  display: flex;
  overflow: hidden;
  margin-top: 4px;
}

.comp-seg-bj { background: var(--primary-blue); }
.comp-seg-mod { background: var(--success-emerald); }
.comp-seg-peg { background: var(--warning-amber); }
.comp-seg-lain { background: var(--purple-amethyst); }

.action-btn-detail {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 600;
  border-radius: 8px;
  background: var(--primary-blue-subtle);
  color: var(--primary-blue);
  border: 1px solid rgba(37, 99, 235, 0.2);
  cursor: pointer;
  transition: all 0.2s ease;
}

.action-btn-detail:hover {
  background: var(--primary-blue);
  color: #ffffff;
  box-shadow: 0 4px 10px rgba(37, 99, 235, 0.3);
}

.action-btn-rincian {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 600;
  border-radius: 8px;
  background: rgba(16, 185, 129, 0.1);
  color: #059669;
  border: 1px solid rgba(16, 185, 129, 0.25);
  cursor: pointer;
  transition: all 0.2s ease;
}

.action-btn-rincian:hover {
  background: #059669;
  color: #ffffff;
  box-shadow: 0 4px 10px rgba(16, 185, 129, 0.3);
}

.rincian-expand-row {
  background-color: #f8fafc;
  transition: all 0.2s ease;
}

.rincian-item-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-left: 3px solid #059669;
  border-radius: 8px;
  padding: 12px 16px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}

.rincian-meta-label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  color: #64748b;
  margin-bottom: 3px;
  display: flex;
  align-items: center;
  gap: 4px;
}

.rincian-meta-value {
  font-size: 12.5px;
  color: #1e293b;
  font-weight: 500;
  word-break: break-word;
}


/* -------------------------------------------------------------
   PAGINATION CONTROLS
   ------------------------------------------------------------- */
.table-footer-bar {
  padding: 16px 24px;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  border-top: 1px solid var(--slate-border);
}

.pagination-info {
  font-size: 13px;
  color: var(--slate-medium);
}

.pagination-nav {
  display: flex;
  align-items: center;
  gap: 5px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.page-btn {
  min-width: 34px;
  height: 34px;
  padding: 0 8px;
  border-radius: 8px;
  border: 1px solid var(--slate-border);
  background: #ffffff;
  color: var(--slate-dark);
  font-size: 12.5px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
}

.page-btn:hover:not(.disabled):not(.active) {
  background: var(--primary-blue-subtle);
  color: var(--primary-blue);
  border-color: rgba(37, 99, 235, 0.3);
}

.page-btn.active {
  background: var(--primary-blue);
  color: #ffffff;
  border-color: var(--primary-blue);
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.3);
}

.page-btn.disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

/* -------------------------------------------------------------
   MODAL DETAIL SUB KEGIATAN & UPLOAD
   ------------------------------------------------------------- */
.custom-modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(15, 23, 42, 0.7);
  backdrop-filter: blur(8px);
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.custom-modal-backdrop.active {
  display: flex;
}

.custom-modal-card {
  background: #ffffff;
  border-radius: var(--radius-xl);
  width: 100%;
  max-width: 1100px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 25px 50px -12px rgba(15, 23, 42, 0.35);
  animation: modalPop 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.custom-modal-card-wide {
  max-width: 1440px !important;
  width: 96% !important;
  max-height: 94vh !important;
}

.rincian-subtable-wrap {
  border-left: 4px solid #2563eb !important;
  box-shadow: 0 4px 12px -2px rgba(15, 23, 42, 0.08);
}

@keyframes modalPop {
  0% { transform: scale(0.94); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

.modal-header-custom {
  padding: 20px 28px;
  background: var(--slate-dark);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal-header-custom h3 {
  font-size: 17px;
  font-weight: 800;
  margin: 0;
}

.modal-close-btn {
  background: rgba(255, 255, 255, 0.15);
  border: none;
  color: #ffffff;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.modal-close-btn:hover {
  background: rgba(255, 255, 255, 0.3);
}

.modal-body-custom {
  padding: 24px 28px;
  overflow-y: auto;
  flex-grow: 1;
}

.modal-footer-custom {
  padding: 16px 28px;
  background: #f8fafc;
  border-top: 1px solid var(--slate-border);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
}

/* Upload Dropzone inside Modal */
.upload-dropzone-wrap {
  border: 2px dashed #cbd5e1;
  border-radius: var(--radius-lg);
  padding: 40px 20px;
  text-align: center;
  background: #f8fafc;
  cursor: pointer;
  transition: all 0.25s ease;
}

.upload-dropzone-wrap:hover,
.upload-dropzone-wrap.dragover {
  border-color: var(--primary-blue);
  background: var(--primary-blue-subtle);
}

.upload-dropzone-wrap i {
  font-size: 42px;
  color: var(--primary-blue);
  margin-bottom: 12px;
}

/* -------------------------------------------------------------
   MULTI-DIMENSIONAL ANALYSIS SECTION (PROPORTIONAL BI & ANALYTICS)
   ------------------------------------------------------------- */
.dimension-section-card {
  background: #ffffff;
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: var(--radius-xl);
  padding: 26px 30px;
  margin-bottom: 30px;
  box-shadow: 0 8px 30px -4px rgba(15, 23, 42, 0.06), 0 2px 8px -2px rgba(15, 23, 42, 0.03);
  transition: all 0.25s ease;
  width: 100%;
}

.dimension-header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 20px;
  padding-bottom: 18px;
  border-bottom: 1px solid #f1f5f9;
}

.dimension-icon-badge {
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, #2563eb, #06b6d4);
  color: #ffffff;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.3);
  flex-shrink: 0;
}

.dimension-title {
  font-size: 20px;
  font-weight: 800;
  color: var(--primary-navy);
  margin: 0;
  letter-spacing: -0.4px;
}

.dimension-subtitle {
  font-size: 13px;
  color: var(--slate-medium);
  margin: 3px 0 0 0;
}

/* 9 Pills Navigation Bar */
.dimension-nav-wrap {
  overflow-x: auto;
  margin-bottom: 22px;
  padding-bottom: 6px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}

.dimension-nav {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: max-content;
  padding: 3px 1px;
}

.dim-tab-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 18px;
  background: #f8fafc;
  border: 1.5px solid #e2e8f0;
  border-radius: 50rem;
  color: #475569;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  white-space: nowrap;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.03);
}

.dim-tab-btn i {
  font-size: 14.5px;
  color: #3b82f6;
  transition: color 0.2s ease;
}

.dim-tab-btn:hover {
  background: #f1f5f9;
  border-color: #cbd5e1;
  color: #0f172a;
  transform: translateY(-1px);
}

.dim-tab-btn.active {
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  border-color: #2563eb;
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.35);
}

.dim-tab-btn.active i {
  color: #ffffff;
}

.dim-count-badge {
  background: rgba(15, 23, 42, 0.08);
  border-radius: 50rem;
  padding: 2px 8px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2px;
}

.dim-tab-btn.active .dim-count-badge {
  background: rgba(255, 255, 255, 0.25);
  color: #ffffff;
}

/* Balanced 2-Column Layout (50% / 50%) */
.dimension-content-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: stretch;
  width: 100%;
}

@media (max-width: 1100px) {
  .dimension-content-grid {
    grid-template-columns: 1fr;
  }
}

.dimension-chart-card,
.dimension-table-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-lg);
  padding: 22px;
  display: flex;
  flex-direction: column;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.04);
  min-height: 600px;
}

.dim-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid #f1f5f9;
}

.dim-card-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--primary-navy);
  letter-spacing: -0.2px;
}

.dim-card-subtitle {
  font-size: 12px;
  color: var(--slate-medium);
  margin-top: 2px;
}

.dimension-chart-body {
  position: relative;
  min-height: 540px;
  width: 100%;
  flex-grow: 1;
}

.dim-table-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}

.dim-search-wrap {
  max-width: 320px;
  flex-grow: 1;
}

.dim-table-wrap {
  flex-grow: 1;
  max-height: 420px;
  overflow-y: auto;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  box-shadow: inset 0 1px 3px rgba(15, 23, 42, 0.02);
}

.dim-table {
  font-size: 12.5px;
  width: 100%;
  margin-bottom: 0;
}

.dim-table th {
  position: sticky;
  top: 0;
  background: #f8fafc;
  z-index: 2;
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  color: #475569;
  padding: 10px 12px;
  border-bottom: 2px solid #e2e8f0;
}

.dim-table td {
  padding: 10px 12px;
  vertical-align: middle;
  border-bottom: 1px solid #f1f5f9;
}

.dim-table tbody tr:hover {
  background-color: #f8fafc;
}

.dim-table-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 14px;
  padding-top: 10px;
  border-top: 1px solid #f1f5f9;
  flex-wrap: wrap;
  gap: 10px;
}

.porsi-bar-container {
  display: flex;
  align-items: center;
  gap: 8px;
  justify-content: flex-end;
}

.porsi-bar-bg {
  width: 65px;
  height: 7px;
  background: #e2e8f0;
  border-radius: 50rem;
  overflow: hidden;
  flex-shrink: 0;
}

.porsi-bar-fill {
  height: 100%;
  border-radius: 50rem;
  background: linear-gradient(90deg, #3b82f6, #06b6d4);
}

/* Active Dimension Filter Banner */
.active-dim-filter-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  border-radius: 12px;
  padding: 10px 18px;
  margin-bottom: 20px;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.08);
  animation: fadeInDown 0.25s ease-out;
}

.tier-card-interactive {
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.tier-card-interactive:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.08);
  border-color: #2563eb !important;
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Print Styling */
@media print {
  .analisis-nav,
  .filter-panel,
  .table-controls,
  .pagination-nav,
  .chart-actions,
  .nav-btn {
    display: none !important;
  }

  body {
    background: #ffffff !important;
    color: #000000 !important;
  }

  .chart-card,
  .kpi-card,
  .table-section-card {
    box-shadow: none !important;
    border: 1px solid #ccc !important;
    break-inside: avoid;
    page-break-inside: avoid;
  }
}

/* Modal Overlay & Card General for AI Analyzer */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  z-index: 3000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  animation: fadeInDown 0.2s ease-out;
}

.modal-card {
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.25);
  overflow: hidden;
  max-height: 94vh;
}

/* AI Analyzer Styles */
.ai-glow-btn {
  background: linear-gradient(135deg, #eff6ff 0%, #f5f3ff 100%);
  border: 1px solid #c7d2fe !important;
  color: #4338ca !important;
  transition: all 0.25s ease;
}

.ai-glow-btn:hover {
  background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%) !important;
  color: #ffffff !important;
  border-color: #6366f1 !important;
  box-shadow: 0 4px 14px rgba(99, 102, 241, 0.35) !important;
  transform: translateY(-1px);
}

.ai-glow-btn:hover i,
.ai-glow-btn:hover span.badge {
  color: #ffffff !important;
}

.preset-tag-btn {
  transition: all 0.2s ease;
  font-size: 11.5px;
  line-height: 1.3;
}

.preset-tag-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 2px 6px rgba(37, 99, 235, 0.15);
}

.ai-score-card {
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
  border-radius: 16px;
  border: 1px solid #e2e8f0;
}

.ai-progress-stacked {
  height: 22px;
  border-radius: 9999px;
  overflow: hidden;
  font-size: 11px;
  font-weight: 600;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1);
}

/* AI Export Buttons (PDF & Word) */
.ai-export-pdf-btn {
  background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%) !important;
  color: #ffffff !important;
  border: none !important;
  transition: all 0.22s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 2px 8px rgba(220, 38, 38, 0.32);
}

.ai-export-pdf-btn:hover:not(:disabled) {
  background: linear-gradient(135deg, #b91c1c 0%, #991b1b 100%) !important;
  color: #ffffff !important;
  transform: translateY(-1.5px);
  box-shadow: 0 4px 14px rgba(220, 38, 38, 0.45);
}

.ai-export-pdf-btn:active:not(:disabled) {
  transform: translateY(0);
  box-shadow: 0 2px 6px rgba(220, 38, 38, 0.3);
}

.ai-export-word-btn {
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%) !important;
  color: #ffffff !important;
  border: none !important;
  transition: all 0.22s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.32);
}

.ai-export-word-btn:hover:not(:disabled) {
  background: linear-gradient(135deg, #1d4ed8 0%, #1e40af 100%) !important;
  color: #ffffff !important;
  transform: translateY(-1.5px);
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.45);
}

.ai-export-word-btn:active:not(:disabled) {
  transform: translateY(0);
  box-shadow: 0 2px 6px rgba(37, 99, 235, 0.3);
}

.ai-export-pdf-btn:disabled,
.ai-export-word-btn:disabled {
  opacity: 0.65;
  cursor: not-allowed;
  transform: none !important;
  box-shadow: none !important;
}

/* AI Autocomplete Search Component */
.ai-autocomplete-container {
  position: relative;
}

.ai-autocomplete-dropdown {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  background: #ffffff;
  border: 1px solid #93c5fd;
  border-radius: 10px;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.16), 0 4px 10px rgba(15, 23, 42, 0.06);
  max-height: 290px;
  overflow-y: auto;
  z-index: 1065;
  display: none;
}

.ai-autocomplete-item {
  padding: 9px 13px;
  border-bottom: 1px solid #f1f5f9;
  cursor: pointer;
  transition: all 0.15s ease;
}

.ai-autocomplete-item:last-child {
  border-bottom: none;
}

.ai-autocomplete-item:hover,
.ai-autocomplete-item.active {
  background-color: #eff6ff;
  border-left: 3px solid #2563eb;
  padding-left: 10px;
}

.ai-autocomplete-item mark {
  background: #fef08a;
  color: #854d0e;
  padding: 0 2px;
  border-radius: 2px;
  font-weight: 700;
}

/* ==========================================================================
   Modern Executive App Footer
   ========================================================================== */
.app-footer {
  margin-top: 2rem;
  margin-bottom: 1.5rem;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  box-shadow: 0 4px 20px -2px rgba(15, 23, 42, 0.05), 0 2px 6px -1px rgba(15, 23, 42, 0.03);
  position: relative;
  overflow: hidden;
}

/* Glowing Multi-color accent bar on top */
.app-footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3.5px;
  background: linear-gradient(90deg, #2563eb 0%, #06b6d4 30%, #fe2c55 70%, #25f4ee 100%);
  border-radius: 16px 16px 0 0;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
  gap: 20px;
  flex-wrap: wrap;
}

.footer-brand-wrap {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.footer-app-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14.5px;
  font-weight: 700;
  color: #0f172a;
}

.footer-badge-status {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 600;
  color: #16a34a;
  background: #dcfce7;
  padding: 2px 8px;
  border-radius: 20px;
  border: 1px solid #bbf7d0;
}

.footer-badge-status .pulse-dot {
  width: 6px;
  height: 6px;
  background-color: #16a34a;
  border-radius: 50px;
  display: inline-block;
  box-shadow: 0 0 0 2px rgba(22, 163, 74, 0.25);
  animation: pulseGreen 2s infinite;
}

@keyframes pulseGreen {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(22, 163, 74, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(22, 163, 74, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(22, 163, 74, 0); }
}

.footer-tagline {
  font-size: 12px;
  color: #64748b;
  margin: 0;
}

/* Center Creator Capsule - TikTok Aesthetic */
.footer-creator-center {
  display: flex;
  align-items: center;
  justify-content: center;
}

.tiktok-creator-pill {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: #09090b;
  color: #ffffff !important;
  padding: 8px 18px;
  border-radius: 9999px;
  text-decoration: none !important;
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.2);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}

.tiktok-creator-pill::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(37, 244, 238, 0.18), rgba(254, 44, 85, 0.18));
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.tiktok-creator-pill:hover {
  transform: translateY(-2.5px) scale(1.02);
  box-shadow: 0 10px 25px -3px rgba(254, 44, 85, 0.35), 0 4px 14px -2px rgba(37, 244, 238, 0.35);
  border-color: rgba(254, 44, 85, 0.55);
}

.tiktok-creator-pill:hover::after {
  opacity: 1;
}

.tiktok-icon-wrap {
  width: 34px;
  height: 34px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: #ffffff;
  filter: drop-shadow(-1.5px -1.5px 0px rgba(37, 244, 238, 0.85)) drop-shadow(1.5px 1.5px 0px rgba(254, 44, 85, 0.85));
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.tiktok-creator-pill:hover .tiktok-icon-wrap {
  transform: rotate(-10deg) scale(1.15);
}

.tiktok-creator-text {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
  text-align: left;
}

.tiktok-creator-text .creator-label {
  font-size: 10px;
  color: #94a3b8;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  font-weight: 600;
}

.tiktok-creator-text .creator-handle {
  font-size: 13.5px;
  font-weight: 700;
  color: #ffffff;
  font-family: 'JetBrains Mono', Consolas, monospace, sans-serif;
  letter-spacing: -0.2px;
}

.tiktok-badge-action {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: linear-gradient(135deg, #fe2c55, #ff0050);
  color: #ffffff;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 20px;
  box-shadow: 0 2px 8px rgba(254, 44, 85, 0.4);
  transition: all 0.25s ease;
}

.tiktok-creator-pill:hover .tiktok-badge-action {
  background: linear-gradient(135deg, #ff0050, #25f4ee);
  color: #09090b;
  transform: translateX(2px);
}

/* Meta wrap on right */
.footer-meta-wrap {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
}

.footer-copyright {
  font-size: 12px;
  color: #475569;
}

.footer-meta-links {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11.5px;
  color: #64748b;
}

.meta-sep {
  color: #cbd5e1;
}

.btn-scroll-top {
  border: 1px solid #cbd5e1;
  background: #f8fafc;
  color: #475569;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
  padding: 2px 10px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  transition: all 0.2s ease;
}

.btn-scroll-top:hover {
  background: #e2e8f0;
  color: #0f172a;
  border-color: #94a3b8;
}

/* Mobile Bottom Navigation Bar (App-style) */
.mobile-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 64px;
  background: rgba(15, 23, 42, 0.96);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  align-items: center;
  justify-content: space-around;
  z-index: 10000;
  box-shadow: 0 -4px 25px rgba(0, 0, 0, 0.35);
  padding: 0 4px;
  padding-bottom: env(safe-area-inset-bottom, 0px);
}

.mobile-nav-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #94a3b8;
  text-decoration: none;
  padding: 6px 2px;
  border-radius: 10px;
  transition: all 0.18s ease;
  min-height: 52px;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  background: transparent;
  border: none;
}

.mobile-nav-item:hover,
.mobile-nav-item:focus {
  color: #38bdf8;
}

.mobile-nav-item.active {
  color: #38bdf8;
  font-weight: 700;
}

.mobile-nav-icon {
  font-size: 19px;
  line-height: 1.1;
  margin-bottom: 2px;
  transition: transform 0.18s ease;
}

.mobile-nav-item.active .mobile-nav-icon {
  transform: translateY(-2px);
  color: #38bdf8;
}

.mobile-nav-label {
  font-size: 10px;
  letter-spacing: -0.2px;
  white-space: nowrap;
}

html, body {
  overflow-x: hidden !important;
  width: 100% !important;
  max-width: 100vw !important;
  box-sizing: border-box;
}

@media (max-width: 991px) {
  body {
    padding-bottom: 74px !important;
  }
  .analisis-nav {
    flex-direction: row !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 10px;
    padding: 10px 14px;
    width: 100%;
    box-sizing: border-box;
  }
  .brand-section {
    flex: 1;
    min-width: 0;
  }
  .brand-info {
    min-width: 0;
  }
  .brand-info h1 {
    font-size: 14px !important;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .brand-info p {
    font-size: 10px !important;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  .brand-logo-wrap {
    width: 34px !important;
    height: 34px !important;
    border-radius: 9px !important;
  }
  .brand-logo-wrap i {
    font-size: 18px !important;
  }
  .brand-badge {
    font-size: 9px !important;
    padding: 1px 6px !important;
  }
  /* Sembunyikan deretan menu horizontal atas di mobile (dipindahkan ke bottom nav) */
  .nav-controls {
    display: none !important;
  }
  .analisis-main {
    padding: 12px 10px 80px 10px !important;
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: hidden !important;
  }
  .hero-banner {
    padding: 14px !important;
    border-radius: 12px !important;
  }
  .hero-banner h2 {
    font-size: 16px !important;
  }
  .hero-banner p {
    font-size: 11px !important;
  }
  .data-source-pill {
    width: 100% !important;
    box-sizing: border-box !important;
    margin-top: 10px !important;
  }
  .storage-select {
    width: 100% !important;
    max-width: 100% !important;
  }
  .chart-card {
    padding: 12px !important;
    border-radius: 12px !important;
  }
  .chart-body {
    height: 290px !important;
  }
  .footer-inner {
    flex-direction: column;
    text-align: center;
    justify-content: center;
    gap: 16px;
    padding-bottom: 20px;
  }
  .footer-brand-wrap {
    align-items: center;
  }
  .footer-meta-wrap {
    align-items: center;
  }
}

@media (min-width: 992px) {
  .mobile-bottom-nav {
    display: none !important;
  }
}

