/* ============================
   Panel Bar (atas) - Desktop
   ============================ */
   #panel-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #356f6b;
    padding: 10px 12px;
    color: white;
    font-size: 12px;
    width: 100%;
    z-index: 9999;  
  }
  
  #left-panel {
    display: flex;
    align-items: center;
    gap: 12px;
  }
  
  #logo img {
    height: 32px;
  }
  
  #menu {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-left: auto;
    margin-right: 17px;
  }
  
  #menu a {
    color: white;
    text-decoration: none;
    padding: 6px 8px;
    transition: background-color 0.2s;
  }
  
  #menu a:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
  }
  
  #logout-btn {
    background-color: #dc3545;
    color: #fff;
    border: none;
    padding: 6px 12px;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.2s;
    margin-left: auto;
  }
  
  #logout-btn:hover {
    background-color: #c82333;
  }
  
  #toggle-menu-btn {
    display: none;
  }
  
  /* ============================
     Layout Utama - Desktop
     ============================ */
  #dashboard {
    display: flex;
    height: calc(100vh - 50px);
    overflow: hidden;
  }
  
  /* ======= SIDEBAR FINAL ======= */
  #sidebar {
    width: 280px;
    background-color: #ffffff;
    border-right: 1px solid #cce6e3;
    padding: 15px;
    overflow-y: auto;
    position: absolute;
    top: 52px;
    bottom: 0;
    left: 0;
    transition: left 0.3s ease;
    z-index: 1000;
  }
  
  #sidebar.sidebar-closed {
    left: -280px;
  }
  
  /* Tombol toggle sidebar di luar sidebar */
  #sidebar-toggle {
    position: absolute;
    top: 50%;
    left: 280px;
    transform: translateY(-50%);
    background-color: #fff;
    border: 1px solid #ccc;
    border-radius: 0 5px 5px 0;
    width: 30px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 1001;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.2);
    transition: left 0.3s ease;
  }
  
  #sidebar.sidebar-closed + #sidebar-toggle {
    left: 0;
  }
  
  #toggle-icon {
    font-size: 20px;
  }
  
  /* ============================
     Konten Utama
     ============================ */
  #main-content {
    flex-grow: 1;
    position: relative;
    background-color: #effafa;
  }
  
  /* ============================
     Tombol Toggle Lama (nonaktifkan)
     ============================ */
  #toggle-sidebar-btn {
    display: none !important;
  }
  
  /* ============================
     Panel Info
     ============================ */
  #info-cabang {
    position: absolute;
    top: 20px;
    right: 50px;
    width: 300px;
    max-height: calc(100% - 40px);
    background: #ffffff;
    border: 1px solid #cce6e3;
    border-radius: 8px;
    padding: 15px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    overflow-y: auto;
    z-index: 1001;
    display: none;
    flex-direction: column;
  }
  
  #info-cabang h3 {
    margin-bottom: 10px;
    color: #356f6b;
  }
  
  .close-info {
    position: absolute;
    top: 10px;
    right: 10px;
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    color: #48a39e;
  }
  
  #info-cabang img {
    margin-bottom: 10px;
    border-radius: 6px;
  }
  
  #detail-cabang {
    margin-bottom: 15px;
    line-height: 1.6;
  }
  
  .button-group {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
  }
  
  #pdf-modal {
    position: fixed;
    inset: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    background: rgba(0, 0, 0, 0.6);
    z-index: 9999;
  }
  
  #pdf-modal .modal-content {
    width: 90vw;
    height: 90vh;
    background: rgba(255, 255, 255, 0.305);
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    position: relative;
  }
  
  #close-pdf {
    position: absolute;
    top: calc(5vh - 12px);
    right: calc(5vw - 12px);
    z-index: 10000;
    background-color: #ffffffc4;
    border: 1px solid #ccc;
    border-radius: 50%;
    font-size: 14px;
    padding: 4px 8px;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  }
  
  /* ============================
     Leaflet Optimization
     ============================ */
  .leaflet-marker-icon,
  .leaflet-marker-shadow {
    will-change: transform;
    transform-origin: center;
  }

  /* ============================
     Iframe Display Optimization
     ============================ */
  body.in-iframe #panel-bar {
    display: none !important;
  }
  body.in-iframe #dashboard {
    height: 100vh !important;
  }
  body.in-iframe #sidebar {
    top: 0 !important;
  }



  

  