/* Version 76 - Responsif gambar Early Warning BMKG, mobile scaling & tabel tetap scroll */

/* Base */
html { overflow-x: hidden; }
body.petani-body {
  font-family:"Montserrat",system-ui,-apple-system;
  background:linear-gradient(180deg,#e5f8ff,#ccefff 40%,#b3e5ff);
  color:#1f3026;
  margin:0;
  padding-bottom:78px;
  -webkit-font-smoothing:antialiased;
  overflow-x:hidden;
}

.tab-panel { display:none; }
.tab-panel.active { display:block; }

/* Tema */
.theme-cuacax,.theme-water,.theme-production {
  padding:8px 10px 28px;
  border-radius:32px;
  margin-top:20px;
}
.theme-cuacax { background:linear-gradient(180deg,#f8fdff,#eefaff); }
.theme-water { background:linear-gradient(180deg,#f6fffa,#ecfdf4); }
.theme-production { background:linear-gradient(180deg,#fffaf7,#fff3e6); }

.section-title {
  font-size:16px; font-weight:700; letter-spacing:.4px;
  margin:4px 6px 18px; color:#035a25; display:flex; align-items:center;
}

/* Elevations */
.elevation-2 { }
.elevation-3 { box-shadow:0 6px 18px -4px rgba(0,0,0,.26),0 2px 4px rgba(0,0,0,.12); }
.elevation-4 { box-shadow:0 10px 30px -6px rgba(0,0,0,.32),0 4px 10px rgba(0,0,0,.18); }

/* Header, Search, Map */
.app-header { color:#fff; position:sticky; top:0; z-index:1000; box-shadow:0 4px 20px -6px rgba(0,0,0,.4); }
.app-header .icon-and-title { padding:9px; background:#057C70; }

.search-box { padding-left:5px; padding-right:5px; }
.logo-circle { width:62px; height:62px; display:flex; align-items:center; justify-content:center; font-size:30px; color:#fff; }

.search-dropdown { position:absolute; left:0; top:calc(100% + 8px); background:#fff; width:100%; max-height:300px; overflow:auto; border-radius:16px; box-shadow:0 14px 34px -10px rgba(0,0,0,.4); border:1px solid #d8e9dc; z-index:2000; animation:fadeIn .18s ease; }
.search-dropdown div.item { padding:10px 14px; cursor:pointer; font-size:13px; display:flex; justify-content:space-between; align-items:center; border-bottom:1px solid #f1f6f2; }
.search-dropdown div.item:hover { background:#def6e5; }

.map-box { width:100%; height:240px; background:#eef3f0; border-bottom:2px solid #dbe9e2; }
.map-box.leaflet-container { border-radius:0 0 26px 26px; }

.content-wrapper { padding:24px 18px 40px; max-width:1100px; margin:0 auto; }

/* Default grids */
.weather-grid,.water-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(280px,1fr)); gap:22px; }
.production-grid-two-col { display:flex; flex-direction:column; gap:24px; }
.production-grid-two-col .grid-row { display:grid; gap:24px; grid-template-columns:repeat(auto-fit,minmax(280px,1fr)); }

/* Cards */
.glass-card { display:flex; flex-direction:column; position:relative; }
.glass-card:hover { transform:translateY(-2px); }
.card-title-small {
  font-size:12.5px; font-weight:700;
  letter-spacing:.7px; margin-bottom:14px; color:#035a25;
  display:flex; align-items:center; gap:8px;
}
.card-title-small i { font-size:14px; color:#07c35a; }

/* Pills */
.small-pill { padding:6px 10px; border-radius:16px; font-size:11.8px; background:#f0faf3; border:1px solid #d1e7d7; display:inline-block; margin:5px 5px 0 0; box-shadow:0 1px 2px rgba(0,0,0,.06), inset 0 1px 0 rgba(255,255,255,.6); }
.small-pill.warn { background:#fff6e1; border-color:#f3d28c; }
.small-pill.error { background:#ffe5e5; border-color:#ffb5b5; }
.small-pill.info { background:#e7f3ff; border-color:#b7dafb; }

/* Bottom nav */
.bottom-nav { position:fixed; bottom:0; left:0; right:0; background:#057C70; display:flex; justify-content:space-around; padding:10px 0 9px; z-index:1500; box-shadow:0 -4px 14px -6px rgba(0,0,0,.25); }
.nav-btn { background:transparent; color:#fff; border:0; flex:1; padding:6px 4px; font-size:11.5px; display:flex; flex-direction:column; align-items:center; gap:4px; opacity:.65; transition:opacity .2s, transform .2s; }
.nav-btn.active { opacity:1; transform:translateY(-2px); }
.nav-btn i { font-size:18px; }

/* Chat */
.chat-widget { position:fixed; bottom:95px; right:20px; z-index:1600; }
.chat-toggle { width:60px; height:60px; background:linear-gradient(135deg,#07c35a,#048d3a); border-radius:18px; color:#fff; display:flex; align-items:center; justify-content:center; font-size:26px; cursor:pointer; box-shadow:0 8px 20px -6px rgba(0,0,0,.4), inset 0 2px 6px rgba(255,255,255,.4); transition:transform .25s; }
.chat-toggle:hover { transform:scale(1.07); }
.chat-window { width:340px; background:#fff; border-radius:26px; overflow:hidden; display:flex; flex-direction:column; animation:popIn .28s ease; position:relative; }

/* Chat */
.chat-window { width:340px; background:#fff; border-radius:26px; overflow:hidden; display:flex; flex-direction:column; animation:popIn .28s ease; position:relative; box-shadow:0 10px 30px -6px rgba(0,0,0,.32),0 4px 10px rgba(0,0,0,.18); }
@keyframes popIn { 0% { transform:scale(.85); opacity:0; } 100% { transform:scale(1); opacity:1; } }
.chat-header { background:linear-gradient(135deg,#048d3a,#035a25); color:#fff; padding:12px 18px; font-size:13px; box-shadow:0 3px 10px -3px rgba(0,0,0,.35); }
.chat-body { padding:14px 14px 12px; height:270px; overflow:auto; font-size:12.8px; background:#f7fbf8; }
.chat-msg { margin-bottom:10px; }
.chat-msg.user { text-align:right; }
.chat-msg.user .bubble { background:linear-gradient(135deg,#07c35a,#048d3a); color:#fff; }
.chat-msg.assistant .bubble { background:#e9f9ef; color:#093a1c; }
.bubble { display:inline-block; padding:8px 12px; border-radius:18px; max-width:82%; box-shadow:0 2px 6px rgba(0,0,0,.15); white-space:pre-wrap; font-weight:500; }

.typing-bubble { background:#e9f9ef !important; color:#093a1c; }
.typing-dots span { display:inline-block; width:6px; height:6px; margin:0 2px; background:#07c35a; border-radius:50%; animation:dotBlink 1s infinite ease-in-out; }
.typing-dots span:nth-child(2){ animation-delay:.2s; }
.typing-dots span:nth-child(3){ animation-delay:.4s; }
@keyframes dotBlink { 0%,80%,100% { opacity:.2; transform:translateY(0); } 40% { opacity:1; transform:translateY(-3px); } }

.chat-input-area { padding:10px 12px; background:#f5faf6; border-top:1px solid #e1eee4; }

/* Anim */
@keyframes fadeIn { 0% {opacity:0; transform:translateY(4px);} 100% {opacity:1; transform:translateY(0);} }
.fade-slide-in { animation:fadeSlide .35s ease; }
@keyframes fadeSlide { 0% { opacity:0; transform:translateY(12px); } 100% { opacity:1; transform:translateY(0); } }

/* ===== Tab Cuaca layout ===== */
#tab-cuaca .weather-grid { display:flex !important; flex-direction:column !important; gap:26px !important; width:100%; }

/* Scaler (desktop) */
.section-scale-outer { width:100%; position:relative; overflow:visible; }
.section-scale-inner { position:absolute; top:0; left:50%; width:960px; transform-origin: top center; -webkit-font-smoothing:antialiased; }

/* Info Cuaca (current) */
.info-cuaca-card { border:1px solid #d9e7f4; background:#fff; border-radius:24px; padding:18px 20px; }
.info-cuaca-header { display:flex; align-items:center; justify-content:center; font-size:12px; color:#035a25; margin-bottom:10px; font-weight:600; }
.info-cuaca-main { display:flex; flex-direction:column; align-items:center; justify-content:center; gap:8px; padding:6px 0; }
.info-cuaca-main .big-icon { width:86px; height:86px; object-fit:contain; }
.info-cuaca-temp { font-size:20px; font-weight:700; color:#1b2f3a; }
.info-cuaca-desc { font-size:12.3px; color:#1b2f3a; font-weight:500; }
.info-cuaca-metrics { margin-top:8px; display:flex; gap:10px; justify-content:center; flex-wrap:nowrap; }
.metric-item { flex:1 1 0; max-width:220px; background:#ffffff; border:1px solid #dbe6f1; border-radius:16px; padding:9px 8px; display:flex; flex-direction:column; align-items:center; text-align:center; gap:6px; }
.metric-item img { width:34px; height:34px; object-fit:contain; }
.metric-item .metric-text { font-size:12px; line-height:1.22; font-weight:500; }

/* Harian 3 hari - STRIP 1 BARIS */
.curah-6-card { border:1px solid #d9e7f4; background:#fff; border-radius:24px; padding:16px 18px; }
.curah-6-header { display:flex; align-items:center; justify-content:space-between; font-size:12px; color:#035a25; margin-bottom:8px; font-weight:700; }
#weatherDailyInner .daily-strip { display:flex; gap:12px; overflow-x:auto; padding-bottom:6px; }
#weatherDailyInner .daily-item { min-width:130px; border:1px solid #dbe6f1; background:#ffffff; border-radius:14px; padding:10px; text-align:center; }
#weatherDailyInner .daily-item img { width:40px; height:40px; object-fit:contain; }
#weatherDailyInner .daily-item .date { font-weight:700; font-size:12px; color:#1b2f3a; margin-bottom:6px; }
#weatherDailyInner .daily-item .temp { font-weight:700; font-size:13px; color:#1b2f3a; }
#weatherDailyInner .daily-item .desc { font-size:12px; color:#1b2f3a; }

/* 6 Bulan - STRIP mirip harian */
#weatherSeasonInner .season-strip { display:flex; gap:12px; overflow-x:auto; padding-bottom:6px; }
#weatherSeasonInner .season-item { min-width:130px; border:1px solid #dbe6f1; background:#ffffff; border-radius:14px; padding:10px; text-align:center; }
#weatherSeasonInner .season-item img { width:40px; height:40px; object-fit:contain; }
#weatherSeasonInner .season-item .date { font-weight:700; font-size:12px; color:#1b2f3a; margin-bottom:6px; }
#weatherSeasonInner .season-item .desc { font-size:12px; color:#1b2f3a; }
#weatherSeasonInner .season-item .temp { font-weight:700; font-size:12px; color:#1b2f3a; }

/* Early warning desc putih */
.bmkg-white-block { background:#fff; border:1px solid #e5eef2; border-radius:16px; padding:12px; color:#0e2c1b; }

/* ===== Gambar Early Warning BMKG: responsif & tidak terpotong ===== */
#bmkgEarlyWarnInner .bmkg-grid {
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(260px,1fr));
  gap:12px;
}
#bmkgEarlyWarnInner .bmkg-card {
  border:1px solid #e4efe6;
  border-radius:18px;
  background:#fff;
  padding:12px;
}
#bmkgEarlyWarnInner .bmkg-image-wrap {
  width:100%;
  border-radius:14px;
  background:#f5f7f9;
}
#bmkgEarlyWarnInner .bmkg-image {
  display:block;
  width:100%;
  height:auto;
  max-width:100%;
  object-fit:contain; /* Hindari crop */
}
#bmkgEarlyWarnInner .bmkg-caption {
  font-size:14px;
  margin-top:8px;
  font-weight:700;
  color:#000;
}
@media (max-width:520px){
  #bmkgEarlyWarnInner .bmkg-grid { grid-template-columns:1fr; }
}

/* Extreme Weather */
#bmkgExtremeInner .grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(260px,1fr)); gap:12px; }
.extreme-card { border:1px solid #e4efe6; border-radius:18px; background:#fff; padding:12px; }
.extreme-badge { display:inline-flex; align-items:center; gap:6px; font-size:11px; font-weight:700; background:#fff0e5; color:#9b4d00; border:1px solid #ffd6a8; padding:4px 8px; border-radius:999px; }
.extreme-grid-warn { display:grid; grid-template-columns:repeat(auto-fit,minmax(200px,1fr)); gap:10px; }
.warn-item { border:2px solid #ffe1b8; background:#fffdf8; border-radius:16px; padding:10px; display:flex; align-items:flex-start; gap:8px; }
.warn-item img { width:28px; height:28px; object-fit:contain; }

/* Tables */
.table-scroll { width:100%; overflow:auto; -webkit-overflow-scrolling:touch; touch-action: pan-x; }
.table-flat { width:100%; border-collapse:collapse; background:#fff; border-radius:18px; }
.table-flat th, .table-flat td { padding:10px 12px; font-size:12px; border-top:1px solid #dfe7e2; white-space:nowrap; }
.table-flat thead th { background:#f7faf8; border-top:none; font-weight:700; }
.table-flat caption { caption-side:top; padding:8px 6px; font-weight:700; font-size:12.5px; text-transform:uppercase; color:#035a25; text-align:left; }

/* MOBILE <=520px */
@media (max-width:520px){
  .section-scale-outer, .section-scale-inner { position:static; width:auto; transform:none; height:auto !important; }
  .glass-card { padding:12px !important; border-radius:18px !important; }
  .card-title-small { margin-bottom:10px !important; }
}

/* Sticky first two columns (banjir/opt) */
:root{
  --sticky-col-1: 180px;  /* KEC/PROV */
  --sticky-col-2: 330px;  /* + KAB/KOTA */
}
@media (max-width:520px){
  :root{ --sticky-col-1: 120px; --sticky-col-2: 220px; }
}
.table-flat.sticky-first-2 th.sticky-1,
.table-flat.sticky-first-2 td.sticky-1{
  position:sticky; left:0; z-index:2; background:#fff;
}
.table-flat.sticky-first-2 th.sticky-2,
.table-flat.sticky-first-2 td.sticky-2{
  position:sticky; left:var(--sticky-col-1); z-index:2; background:#fff;
}

/* OPT compact columns */
.opt-table th.month { text-align:center; min-width: 68px; }
.opt-table th.sub { font-weight:600; font-size:11px; color:#65736c; }
.opt-table td { min-width: 56px; }

/* Banjir compact */
.banjir-compact th,
.banjir-compact td { min-width: 120px; }
@media (max-width:520px){
  .banjir-compact th,
  .banjir-compact td { min-width: 96px; }
}
.banjir-compact th.sticky-1,
.banjir-compact td.sticky-1 { min-width: var(--sticky-col-1); }
.banjir-compact th.sticky-2,
.banjir-compact td.sticky-2 { min-width: calc(var(--sticky-col-2) - var(--sticky-col-1)); }

/* Standing Crop table */
#standingCropInner .table-scroll { width:100%; overflow-x:auto; -webkit-overflow-scrolling:touch; }
.table-flat.standing-table { width: 100%; border-collapse: collapse; }
.table-flat.standing-table th:first-child,
.table-flat.standing-table td:first-child { min-width: 200px; }
.table-flat.standing-table th,
.table-flat.standing-table td { white-space: nowrap; min-width: 120px; }
@media (max-width:520px){
  #standingCropInner .table-scroll { width:100%; overflow-x:auto; }
}

/* Tab Water grid (2 kolom di desktop -> 1 kolom di mobile) */
#tab-water .water-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(360px, 1fr));
  gap: 22px;
}
.water-grid .wide-card { grid-column: 1 / -1; }
@media (max-width: 920px) {
  #tab-water .water-grid { grid-template-columns: 1fr !important; }
}

/* Kemarau & Banjir table content area scroll */
#banjirTableInner .table-scroll,
#kemarauTableInner .table-scroll {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

/* Produksi: layout 3 kolom desktop + mobile combined table */
.production-3col {
  display: grid;
  grid-template-columns: repeat(3, minmax(280px, 1fr));
  gap: 16px;
}
.production-3col .prod-col { display:block; }
@media (max-width:520px){
  .production-3col { grid-template-columns: 1fr !important; }
  #prodRow1 .content-area { padding: 0 !important; }
}

/* Fertilizer form layout */
.fert-form .fert-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(160px, 1fr));
  gap: 12px;
}
.fert-form .fert-col { display: block; }
.fert-table { width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
@media (max-width:520px){
  .fert-form .fert-row { grid-template-columns: 1fr !important; }
}

/* Produksi combined table widths */
.table-scroll.prod-mobile { width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.table-flat.prod-combined { width: 100%; border-collapse: collapse; }
.table-flat.prod-combined th,
.table-flat.prod-combined td { white-space: nowrap; }

/* Lebar minimal agar kolom tidak terlalu sempit */
.table-flat.prod-combined th:nth-child(1),
.table-flat.prod-combined td:nth-child(1) { min-width: 140px; }
.table-flat.prod-combined th:nth-child(2),
.table-flat.prod-combined td:nth-child(2) { min-width: 120px; }
.table-flat.prod-combined th:nth-child(3),
.table-flat.prod-combined td:nth-child(3) { min-width: 140px; }
.table-flat.prod-combined th:nth-child(4),
.table-flat.prod-combined td:nth-child(4) { min-width: 140px; }

/* ApexCharts host responsif */
.apex-host { width:100%; min-height:240px; }
#waterAvailInner .apexcharts-canvas,
#waterAvailInner .apexcharts-svg { max-width:100% !important; }

/* ===== Stability overrides — memastikan scroll tabel tetap aktif setelah render ===== */
.table-scroll { position: relative; display: block; overflow-x: auto; }
.mobile-native .table-scroll { position: relative; display: block; overflow-x: auto; max-width: 320px;}

/* ===== Tambahan penting untuk mobile ===== */
/* 1) Wadah scroll horizontal khusus Chart ketersediaan air */
.chart-x-scroll { width:100%; overflow-x:auto; -webkit-overflow-scrolling:touch; }
.chart-x-scroll .apex-host { min-width:720px; } /* agar bisa di-drag saat layar kecil */

/* 2) Izinkan wrapping pada kolom nama wilayah agar tidak “memakan” lebar tabel */
.banjir-compact .sticky-1,
.table-flat.standing-table .sticky-1 {
  white-space: normal;
  word-break: break-word;
  line-height: 1.2;
}

/* ====== MOBILE MEDIUM: <= 920px ====== */
@media (max-width:920px){
  /* Matikan scaler (konten dibuat native) */
  .section-scale-outer, .section-scale-inner { position:static; width:auto; transform:none; height:auto !important; }

  /* Kecilkan sticky kolom agar tidak makan lebar */
  :root{ --sticky-col-1: 140px; --sticky-col-2: 260px; }

  /* Standing table sedikit dipersempit */
  .table-flat.standing-table th:first-child,
  .table-flat.standing-table td:first-child { min-width: 160px; }
  .table-flat.standing-table th,
  .table-flat.standing-table td { min-width: 96px; }

  /* Banjir compact lebih sempit */
  .banjir-compact th, .banjir-compact td { min-width: 96px; }

  /* Pastikan wrapper scroll aktif */
  #standingCropInner .table-scroll,
  #banjirTableInner .table-scroll,
  #kemarauTableInner .table-scroll,
  #waterAvailInner .chart-x-scroll { overflow-x:auto !important; }
}

/* ====== MOBILE KECIL: <= 520px (tambahan spesifik) ====== */
@media (max-width:520px){
  .table-flat.standing-table th:first-child,
  .table-flat.standing-table td:first-child { min-width: 140px; }
  .banjir-compact th, .banjir-compact td { min-width: 88px; }
}

.bmkg-warning-table {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: 12px;
  background: #ffffff;
  padding: 6px;
  box-sizing: border-box;
}
.bmkg-warning-table table {
  width: 100%;
  border-collapse: collapse;
}
.bmkg-warning-table th {
  text-align: left;
  vertical-align: top;
  padding: 8px 10px;
  font-weight: 700;
  background: transparent;
  color: #035a25;
  border-top: 1px solid #eef3f0;
  white-space: nowrap;
  width: 36%;
}
.bmkg-warning-table td {
  padding: 8px 10px;
  border-top: 1px solid #eef3f0;
  color: #0e2c1b;
  word-break: break-word;
}
.bmkg-white-block .bmkg-desc-raw {
  padding: 10px;
  background: #fff;
  border-radius: 12px;
  border: 1px solid #e8f1ec;
}
@media (max-width: 520px) {
  .bmkg-warning-table th { display: block; width: 100%; }
  .bmkg-warning-table td { display: block; width: 100%; }
}
#bmkgEarlyWarnInner .bmkg-white-block + .bmkg-white-block {
  margin-top: 12px;
}
/* <-- REPLACE the old mobile rule that set .bmkg-warning-table th/td to display:block with this --> */

/* BMKG warning table: keep two-column layout on mobile, allow wrapping and set column proportions */
#bmkgEarlyWarnInner .bmkg-warning-table .table-flat {
  table-layout: fixed;
  width: 100%;
}
#bmkgEarlyWarnInner .bmkg-warning-table .table-flat col:first-child { width: 36%; }
#bmkgEarlyWarnInner .bmkg-warning-table .table-flat col:last-child { width: 64%; }

#bmkgEarlyWarnInner .bmkg-warning-table .table-flat th,
#bmkgEarlyWarnInner .bmkg-warning-table .table-flat td {
  white-space: normal;
  word-break: break-word;
  vertical-align: top;
  display: table-cell; /* ensure normal table rendering */
}

/* Keep header labels compact (no wrap) */
#bmkgEarlyWarnInner .bmkg-warning-table .table-flat thead th {
  white-space: nowrap;
}

/* Slight padding tweak for readability */
#bmkgEarlyWarnInner .bmkg-warning-table .table-flat td {
  padding-top: 12px;
  padding-bottom: 12px;
}

/* Mobile adjustments: gentle column proportion tweak for very small screens */
@media (max-width: 420px) {
  #bmkgEarlyWarnInner .bmkg-warning-table .table-flat col:first-child { width: 38%; }
  #bmkgEarlyWarnInner .bmkg-warning-table .table-flat col:last-child { width: 62%; }
}

#bmkgEarlyWarnInner .bmkg-map-embed {
  width: 100%;
  height: 540px;
  border-radius: 18px;
  overflow: hidden;
  background: #e5edf3;
  border: 1px solid #e0e9ef;
  margin-bottom: 12px;
}
#bmkgEarlyWarnInner .bmkg-map-embed iframe.bmkg-map-iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

/* Link kecil ke viewer ArcGIS */
.arcgis-viewer-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
  background: #f1f8ff;
  color: #0b63a5;
  border: 1px solid #cfe3f6;
  padding: 4px 10px;
  border-radius: 999px;
}

/* Tabel air & ATI: spacing lembut */
#airAvailCuacaInner .table-flat th,
#airAvailCuacaInner .table-flat td {
  white-space: nowrap;
  min-width: 120px;
}
#bmkgAtiInner .daily-item {
  min-width: 160px;
}
.bmkg-open-btn {
  font-weight: 700;
  background: #0d6efd;
  border-color: #0d6efd;
}
.bmkg-open-btn:hover {
  background: #0b5ed7;
  border-color: #0b5ed7;
}
.bmkg-warning-table {
  width: 100%;
  /* HANYA izinkan scroll horizontal bila perlu, biarkan vertikal diteruskan ke halaman */
  overflow-x: auto;
  overflow-y: visible;                 /* penting: jangan blok vertikal */
  -webkit-overflow-scrolling: touch;   /* native momentum scroll di iOS */
  touch-action: pan-y;                 /* izinkan gestur vertikal */
  border-radius: 12px;
  background: #ffffff;
  padding: 6px;
  box-sizing: border-box;
}

/* (Tetap pertahankan dua kolom, wrapping rapi, dan fixed layout seperti sebelumnya) */
#bmkgEarlyWarnInner .bmkg-warning-table .table-flat {
  table-layout: fixed;
  width: 100%;
}
#bmkgEarlyWarnInner .bmkg-warning-table .table-flat col:first-child { width: 36%; }
#bmkgEarlyWarnInner .bmkg-warning-table .table-flat col:last-child { width: 64%; }

#bmkgEarlyWarnInner .bmkg-warning-table .table-flat th,
#bmkgEarlyWarnInner .bmkg-warning-table .table-flat td {
  white-space: normal;
  word-break: break-word;
  vertical-align: top;
  display: table-cell;
}

/* Header tetap compact */
#bmkgEarlyWarnInner .bmkg-warning-table .table-flat thead th {
  white-space: nowrap;
}

/* Padding sedikit untuk keterbacaan */
#bmkgEarlyWarnInner .bmkg-warning-table .table-flat td {
  padding-top: 12px;
  padding-bottom: 12px;
}

/* Mobile sangat kecil: tweak sedikit proporsi kolom */
@media (max-width: 420px) {
  #bmkgEarlyWarnInner .bmkg-warning-table .table-flat col:first-child { width: 38%; }
  #bmkgEarlyWarnInner .bmkg-warning-table .table-flat col:last-child { width: 62%; }
}
.production-4col {
  display: grid;
  grid-template-columns: repeat(4, minmax(240px, 1fr));
  gap: 16px;
}
.production-4col .prod-col { display:block; }
@media (max-width:920px){
  .production-4col { grid-template-columns: repeat(2, minmax(240px, 1fr)); }
}
@media (max-width:520px){
  .production-4col { grid-template-columns: 1fr !important; }
  #prodRow1 .content-area { padding: 0 !important; }
}
