@charset "utf-8";

body {
	margin: 0;
}

/* ============================================ CONTENT ==============================*/
.header {
  padding: 10px;
	text-align: center;
	color: #0077b6;
  background-color: #f1f1f1;
  z-index: 100;
}
.title {
  font-family: Roboto-Bold;
  margin-bottom: 0.2em; /* reduce space below h1 */
  line-height: 1.2;     /* tighter line height */
}
.subtitle {
  margin-top: 0;        /* remove default top margin */
  line-height: 1.2;
}
.container{
  display: flex;
  align-items: stretch;   /* makes both equal height */
  width: 100%;
}
/* Style the tab */
.tab {
  position: sticky;
  top: 65px;             /* stick just under topnav */
  align-self: flex-start; /* important inside flex/grid */
  margin: 10px;
  margin-bottom: 40px;
  border-radius: 8px;
  padding: 10px 0px;
  box-shadow: 0px 5px 10px #13131323;
  text-align:center;
  font-family: Roboto-Regular;
  background-color: #ffffff;
}
/* Style the buttons inside the tab */
.tab button {
  display: block;
  background-color: inherit;
  color: #0077b6;
  padding: 17px 15px;
  width: 100%;
  border: none;
  outline: none;
  text-align: left;
  cursor: pointer;
  transition: 0.3s;
  font-size: 15px;
}
.tab button:hover {
  background-color: rgb(190, 222, 255);
}
.tab button.active {
  background-color: dodgerblue;
  color: #ffffff;
}

/* Style the tab content */
.tabcontent {
  float: left;
  flex: 1; 
  width: 80%;
  border-left: none;
  border-radius: 8px;
  padding: 10px 0px;
  margin: 10px;
  box-shadow: 0px 5px 10px #13131323;
  height: 100%;
  overflow-y: auto;  /* scroll inside if content too tall */
  padding: 20px;
  background: rgb(255, 255, 255);
  z-index: 11;
  font-size: 17px;
  font-family: Roboto-Regular;
}
.chart-rekap {
  display: flex;
  flex-direction: row;
  justify-content: center;
  margin: 40px 0px;
}
.chart {
  background-color: #646464;
  margin: auto;
  box-shadow: 0px 0px 10px #13131323;
}

.top-bar {
  display:flex;
  margin-left: 20px;
  margin-top: 50px;
}
.top-bar form { 
  display:flex; 
  gap: 10px;
  font-size: 17px;
} 
.top-bar input {
    padding: 10px;
    border:1px solid #ccc;
    font-size: 17px;
    width: 300px;
}   
.top-bar button {
    padding: 10px 50px;
    font-size: 17px;
    border:none;
    background:#3498db;
    color:white;
    cursor:pointer;
}
.top-bar button:hover { 
    background:#2980b9; 
}
.tableJafung { 
    margin:20px;
    font-family: Roboto-Regular;
}
.tableJFMerangin{
  margin-top: 50px;
}
.row_part {
  display: table;
  clear: both;
}
.left {
  float: left;
  width: 50%;
  padding: 10px;
  background-color: #dfdfdf;
}
.right {
  float: right;
  width: 50%;
  padding: 10px;
  background-color: #eeeeee;
}

@media screen and (max-width: 1080px) {
  .chart-rekap {
    flex-direction: column;
    align-items: center;
  }
  .tab{
    width: 30%;
  }
  .tabcontent {
    margin: auto;
    width: 90%;
  }
}
@media screen and (max-width: 600px) {
  .row_part {
    display: flex;
    flex-direction: column;
  }
  .left, .right{
    width: 100%;
  }
}

#tab6{
  display: flex;
  flex-direction: row;
}
.tabcontent .tab6Left {
  width: 35%;
  float: left;
  padding-right: 20px;
}
.tabcontent .tab6Right {
  width: 65%;
  float: right;
}
#myInput, #myInput2 {
  width: 35%;
  font-size: 16px;
  padding: 15px;
  border: 1px solid #ddd;
  margin-bottom: 12px;
}

@media screen and (max-width: 1080px) {
  .tabcontent .tab6Left {
    width: 100%;
  }
  .tabcontent .tab6Right {
    width: 100%;
  }
  #myInput, #myInput2 {
    width: 100%;
  }
}
.pagination {
  display: flex;
  justify-content: center;
  gap: 8px;          /* space between buttons */
  margin: 20px 0;
  flex-wrap: wrap;   /* so it won’t break layout on small screens */
  font-family: Roboto-Regular;
    font-weight: bold;
}
.page-link {
  display: inline-block;
  padding: 6px 12px;
  text-decoration: none;
  color: #3498db;
  border: 1px solid #3498db;
  border-radius: 6px;
  transition: all 0.2s;
}
.page-link:hover {
  background: #3498db;
  color: white;
}
.page-link.active {
  background: #3498db;
  color: white;
  font-weight: bold;
  cursor: default;
}
.lihatBtn {
  padding: 10px 20px;
  background-color: #3498db;
  color: white;
  font-family: Roboto-Regular;
  font-size: 15px;
  cursor: pointer;
  border: none;
}
.lihatBtn:hover {
  background-color: #1b71aa;
}
.detailBtn {
  padding: 10px 20px;
  background-color: #3498db;
  color: white;
  font-family: Roboto-Regular;
  font-size: 15px;
  cursor: pointer;
  border: none;
}
.detailBtn:hover{
  background-color: #1b71aa;
}
.downloadBtn {
  padding: 10px 20px;
  background-color: #34db3c;
  color: white;
  font-family: Roboto-Regular;
  font-size: 15px;
  cursor: pointer;
  border: none;
  opacity: 1;
  transition: opacity 0.25s ease;
}
.downloadBtn:hover{
  background-color: #1ea325;
}
.downloadBtn.hidden {
  opacity: 0;
  pointer-events: none;
}


.closeBtn {
  padding: 10px 20px;
  background-color: #db3434;
  color: white;
  font-family: Roboto-Regular;
  font-size: 15px;
  cursor: pointer;
  border: none;
}
.closeBtn:hover{
  background-color: #a81f1f;
}

#imageModal {
  display: none;
  opacity: 0;
  transition: opacity 0.3s ease;  
  position: fixed !important;
  z-index: 999999 !important;
}
#imageModal.show {
  display: flex;
  opacity: 1;
}

/* Lightbox overlay */
.lightbox {
  position: fixed !important;
  z-index: 99999 !important;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0, 0, 0, 0.85) !important;
  display: none;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: opacity 0.3s ease;
  cursor: zoom-out;
}

/* Show lightbox with fade-in */
.lightbox.show {
  display: flex;
  opacity: 1;
}

/* Image styling */
.lightbox-content img {
  max-width: 90vw;
  max-height: 85vh;
  border-radius: 10px;
  box-shadow: 0 0 20px rgba(255,255,255,0.2);
  transform: scale(0.95);
  transition: transform 0.3s ease;
  cursor: default;
}

/* Zoom animation when shown */
.lightbox.show img {
  transform: scale(1);
}

/* Optional: fade-in animation */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}



/* ---------------------- */
/* MOBILE SLIDE tab       */
/* ---------------------- */
.tab-float-btn {
    display: none;
    position: fixed;
    top: 90px;
    right: 10px;            /* keep the toggle on the left (slightly inset) */
    background: #61b600;
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 10px;
    font-size: 16px;
    font-family: Roboto-Regular;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    z-index: 9999;
}
.tab-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.4);
    z-index: 9990;
}
#mobiletab {
    transition: transform .35s ease-in-out;
}

/* Mobile Mode -------------------------------- */
@media (max-width: 768px) {

    /* Show Floating Button (hamburger) on left */
    .tab-float-btn {
        display: block;
    }

    /* tab becomes sliding panel FROM THE LEFT */
    #mobiletab {
        position: fixed;
        top: 0;
        left: -10px;                      /* <-- changed to left */
        width: 280px;
        height: 100vh;
        background: #fff;
        overflow-y: auto;
        /* shadow flipped to right side so it reads naturally */
        box-shadow: 4px 0 10px rgba(0,0,0,0.2);
        padding: 20px;
        transform: translateX(-100%); /* hidden off-screen to the left */
        z-index: 9998;
    }

    /* When active, slide in */
    #mobiletab.active {
        transform: translateX(0);
    }

    .tab-overlay.active {
        display: block;
    }

    /* Content becomes full width */
    .content {
        flex-direction: column;
    }

    /* tab becomes full width in document flow (non-slide) if used outside slide panel */
    .tab {
        position: relative;
        top: 0;
        width: 100%;
        margin-top: 20px;
    }
}


/* ---------- MOBILE RESPONSIVE ---------- */
@media (max-width: 768px) {
  .share-box {
    font-size: 15px;
  }
  .download {
    font-size: 15px;
  }
  .share-btn {
    width: 40px;
    height: 40px;
    justify-content: right;
    align-items: right;
  }
    /* Stack content vertically on mobile */
    .content {
        flex-direction: column;
    }

    /* tab becomes full width */
    .tab {
        position: relative;   /* remove sticky */
        width: 100%;
        top: 0;
        margin-top: 80px;
    }

    .tab-box {
        width: 100%;
    }
}