.leaflet-container{
    background: transparent !important;
  }
  .sppg-map-wrapper {
    position: relative;
    width: 100%;
    border: 4px solid #fff;
    border-radius: 8px;
    background: linear-gradient(110deg, #F3F8FF -1.09%, #F9FAFC 100.84%);
    box-shadow: 0 1px 20px 0 rgba(190, 202, 234, 0.5);
    overflow: hidden;
    margin-bottom: 30px;
  }

  /* Soft colour glows from the Figma "bg" ellipses (red bottom-right, blue bottom-left) */
  .sppg-map-wrapper::before,
  .sppg-map-wrapper::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    pointer-events: none;
  }
  .sppg-map-wrapper::before {
    width: 445px;
    height: 233px;
    right: -255px;
    top: 333px;
    background: rgba(255, 212, 203, 0.7);
  }
  .sppg-map-wrapper::after {
    width: 488px;
    height: 328px;
    left: -350px;
    top: 425px;
    background: rgba(193, 222, 254, 0.7);
  }

  .sppg-map-container {
    width: 100%;
    height: 440px;
    background: transparent;
  }

  .sppg-map-container :global(.leaflet-container) {
    background: transparent !important;
  }

  @media (min-width: 1024px) {
    .sppg-map-container {
      height: 455px;
    }
  }

  /* Make sure map and its elements have no outline or focus ring */
  .sppg-map-container,
  .sppg-map-container :global(.leaflet-container),
  .sppg-map-container :global(.leaflet-interactive),
  .sppg-map-container :global(svg),
  .sppg-map-container :global(path),
  .sppg-map-container :global(.leaflet-marker-icon) { 
    outline: none !important; 
    box-shadow: none !important;
    -webkit-tap-highlight-color: transparent;
  }
.leaflet-marker-icon.leaflet-interactive, .leaflet-image-layer.leaflet-interactive, .leaflet-pane > svg path.leaflet-interactive, svg.leaflet-image-layer.leaflet-interactive path{
  outline: none !important;
  box-shadow: none !important;
}
  .sppg-map-container :global(*:focus),
  .sppg-map-container:focus {
    outline: none !important;
    box-shadow: none !important;
  }

  .sppg-zoom-controls {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 400;
    display: flex;
    flex-direction: column;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  }

  .sppg-zoom-btn {
    width: 36px;
    height: 36px;
    background: white;
    border: none;
    font-size: 22px;
    font-weight: bold;
    color: #3b82f6;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s ease;
  }
  .sppg-zoom-btn:first-child { border-bottom: 1px solid #f1f5f9; }
  .sppg-zoom-btn:hover { background: #f8fafc; color: #1e40af; }
  .sppg-zoom-btn:active { background: #e2e8f0; }

  /* Legend layered over map at bottom */
  .sppg-legend {
    position: absolute;
    bottom: 14px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 400;
    display: flex;
    justify-content: center;
    gap: 32px;
    font-family: 'Inter', ui-sans-serif, system-ui, sans-serif;
  }

  .sppg-legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #1F3368;
    font-weight: 400;
    width:max-content;
  }

  .sppg-legend-icon {
    object-fit: contain;
  }
  
  @media (max-width: 640px) {
    .sppg-legend {
      bottom: 16px;
    }
  }

  /* Data Panel */
  .sppg-data-panel-wrapper {
    background: #F9F9F9;
    border-radius: 8px;
    display: flex;
    font-family: 'Inter', ui-sans-serif, system-ui, sans-serif;
  }

  .sppg-panel-heading {
    font-size: 18px;
    line-height: 24px;
    font-weight: 700;
    color: #1F3368;
    margin: 0;
    padding-top: 11px;
  }

  .sppg-panel-left {
    width: 254px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    gap: 15px;
    padding: 10px 0 18px 18px;
  }

  .sppg-cards-container {
    display: flex;
    flex-direction: column;
    gap: 16px;
  }

  .sppg-stat-card {
    background: linear-gradient(111deg, #F5FAFF 1.83%, #D2E6FF 103.25%);
    border: 0.8px solid #D3E8FF;
    border-radius: 6px;
    padding: 10px 14px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .sppg-card-img-wrapper {
    width: 120px;
    height: 104px;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .sppg-card-icon {
    max-height: 100%;
    object-fit: contain;
  }

  .sppg-card-label {
    font-family: "Montserrat", sans-serif;
    font-size: 14px;
    font-weight: 400;
    color: #232323;
    margin: 0 0 3px 0;
  }

  .sppg-card-count {
    margin: 0;
    font-size: 24px;
    font-weight: 700;
    line-height: normal;
    color: #21409A;
    display: flex;
    align-items: baseline;
    justify-content: center;
  }

  .sppg-card-unit {
    font-size: 12px;
    font-weight: 400;
  }

  /* Right Panel */
  .sppg-panel-right {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 15px;
    padding: 10px 18px 18px;
  }

  .sppg-table-frame {
    overflow-y: auto;
    max-height: 377px;
    -webkit-overflow-scrolling: touch;
  }

  /* Scrollbar styles */
  .sppg-table-frame::-webkit-scrollbar {
    width: 6px;
  }
  .sppg-table-frame::-webkit-scrollbar-track {
    background: #F1F1F1;
    border-radius: 20px;
  }
  .sppg-table-frame::-webkit-scrollbar-thumb {
    background: #D9D9D9;
    border-radius: 20px;
  }

  .sppg-modern-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 12px;
    text-align: center;
  }

  .sppg-modern-table thead {
    position: sticky;
    top: 0;
    z-index: 10;
  }

  .sppg-modern-table tfoot {
    position: sticky;
    bottom: 0;
    z-index: 10;
  }

  .sppg-modern-table th {
    padding: 15px 8px;
    background: #EFEFEF;
    font-weight: 700;
    color: #1F3368;
    text-transform: uppercase;
    border-bottom: 1px solid #333;
  }

  .sppg-modern-table td {
    padding: 10px 8px;
    color: #232323;
    border-bottom: 0.8px solid #E8E8E8;
  }

  /* Hide the Dapur SPPG column (header, body, footer) */
  .sppg-modern-table th:nth-child(2),
  .sppg-modern-table td:nth-child(2) {
    display: none;
  }

  .sppg-modern-table tbody tr:hover {
    background: #f0f7ff;
  }

  .sppg-modern-table tfoot td {
    background: #F0F0F0;
    font-weight: 700;
  }

  /* Msite: map and data panel run edge to edge (cancel content-wrapper's 20px gutter) */
  @media (max-width: 1023px) {
    .sppg-map-wrapper,
    .sppg-data-panel-wrapper {
      margin-left: -20px;
      margin-right: -20px;
      border-radius: 0;
    }

    .sppg-map-wrapper {
      width: auto;
      border: 0;
      box-shadow: none;
      margin-bottom: 25px;
    }

    .sppg-data-panel-wrapper {
      flex-direction: column;
    }

    .sppg-panel-left {
      width: 100%;
      padding: 10px 18px 0;
    }

    .sppg-stat-card {
      width: 100%;
    }
  }

  /* Tooltip styling */
  .sppg-tooltip-custom {
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    padding: 6px 14px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    color: #0f172a;
    font-weight: 600;
    font-family: inherit;
    font-size: 14px;
  }
  .sppg-tooltip-custom::before { display: none; }

  /* Hide Dapur SPPG map markers */
  .sppg-marker-sppg {
    display: none !important;
  }