/*
 * MUKA_PERFORMANCE_REPORT_STYLE_V1
 */

#reports{
  padding-bottom:30px;
}

.murep-shell{
  display:flex;
  flex-direction:column;
  gap:16px;
}

.murep-toolbar{
  background:#fff;
  border:1px solid #e7edf5;
  border-radius:18px;
  padding:16px 18px;
  display:flex;
  align-items:flex-end;
  gap:12px;
  flex-wrap:wrap;
  box-shadow:0 6px 22px rgba(15,23,42,.05);
}

.murep-field{
  display:flex;
  flex-direction:column;
  gap:6px;
  min-width:145px;
}

.murep-field.grow{
  flex:1;
  min-width:210px;
}

.murep-field label{
  font-size:12px;
  font-weight:700;
  color:#64748b;
}

.murep-field input,
.murep-field select{
  height:42px;
  border:1px solid #dbe3ef;
  border-radius:11px;
  background:#fff;
  color:#0f172a;
  padding:0 12px;
  outline:none;
}

.murep-field input:focus,
.murep-field select:focus{
  border-color:#60a5fa;
  box-shadow:0 0 0 3px rgba(59,130,246,.10);
}

#murepApply,
#perfApply{
  height:42px;
  padding:0 18px;
  border:0;
  border-radius:11px;
  background:#2563eb;
  color:#fff;
  font-weight:800;
  cursor:pointer;
}

.murep-kpis{
  display:grid;
  grid-template-columns:repeat(5,minmax(0,1fr));
  gap:14px;
}

.murep-kpi{
  min-height:112px;
  background:#fff;
  border:1px solid #e7edf5;
  border-radius:17px;
  padding:16px;
  display:flex;
  gap:13px;
  align-items:center;
  box-shadow:0 6px 22px rgba(15,23,42,.05);
}

.murep-kpi-icon{
  width:44px;
  height:44px;
  border-radius:13px;
  display:grid;
  place-items:center;
  font-size:19px;
  flex:0 0 auto;
}

.murep-kpi-icon.blue{
  background:#e8f1ff;
}

.murep-kpi-icon.green{
  background:#e8f8ef;
}

.murep-kpi-icon.amber{
  background:#fff4dc;
}

.murep-kpi-icon.cyan{
  background:#e7f8fb;
}

.murep-kpi-icon.purple{
  background:#f1ebff;
}

.murep-kpi div{
  min-width:0;
}

.murep-kpi small{
  display:block;
  font-size:12px;
  color:#64748b;
  margin-bottom:5px;
}

.murep-kpi strong{
  display:block;
  font-size:25px;
  line-height:1.1;
  color:#0f172a;
  overflow:hidden;
  text-overflow:ellipsis;
}

.murep-best strong{
  font-size:15px;
  white-space:nowrap;
}

.murep-kpi em{
  display:block;
  font-style:normal;
  font-size:11px;
  color:#94a3b8;
  margin-top:5px;
}

.murep-grid{
  display:grid;
  grid-template-columns:1.25fr .9fr 1fr;
  gap:14px;
}

.murep-card,
.murep-table-card{
  background:#fff;
  border:1px solid #e7edf5;
  border-radius:18px;
  box-shadow:0 6px 22px rgba(15,23,42,.05);
}

.murep-card{
  padding:17px;
}

.murep-card-head{
  display:flex;
  justify-content:space-between;
  align-items:center;
  margin-bottom:13px;
}

.murep-card-head h3,
.murep-table-head h3{
  margin:0;
  color:#0f172a;
  font-size:15px;
}

.murep-card-head p,
.murep-table-head p{
  margin:4px 0 0;
  color:#94a3b8;
  font-size:11px;
}

.murep-rank-list,
.murep-project-list{
  display:flex;
  flex-direction:column;
}

.murep-rank-row,
.murep-project-row{
  min-height:56px;
  border-top:1px solid #eef2f7;
  display:flex;
  align-items:center;
  gap:10px;
}

.murep-rank-row:first-child,
.murep-project-row:first-child{
  border-top:0;
}

.murep-rank-no{
  width:22px;
  height:22px;
  border-radius:50%;
  background:#eff6ff;
  color:#2563eb;
  display:grid;
  place-items:center;
  font-size:11px;
  font-weight:800;
}

.murep-avatar{
  width:37px;
  height:37px;
  border-radius:50%;
  overflow:hidden;
  position:relative;
  display:grid;
  place-items:center;
  background:#e2e8f0;
  color:#475569;
  font-size:13px;
  font-weight:800;
  flex:0 0 auto;
}

.murep-avatar img{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  object-fit:cover;
}

.murep-rank-name{
  min-width:0;
  flex:1;
}

.murep-rank-name b,
.murep-project-row b{
  display:block;
  color:#1e293b;
  font-size:12px;
}

.murep-rank-name small,
.murep-project-row small{
  display:block;
  margin-top:3px;
  color:#94a3b8;
  font-size:10px;
}

.murep-rank-score{
  display:flex;
  align-items:center;
  gap:8px;
}

.murep-rank-score b{
  color:#0f172a;
}

.murep-grade-a,
.murep-grade-b,
.murep-grade-c,
.murep-grade-d{
  min-width:28px;
  height:25px;
  border-radius:7px;
  display:inline-grid;
  place-items:center;
  padding:0 7px;
  font-size:11px;
  font-weight:900;
}

.murep-grade-a{
  background:#dcfce7;
  color:#15803d;
}

.murep-grade-b{
  background:#dbeafe;
  color:#1d4ed8;
}

.murep-grade-c{
  background:#fef3c7;
  color:#b45309;
}

.murep-grade-d{
  background:#fee2e2;
  color:#b91c1c;
}

.murep-grade-line{
  display:grid;
  grid-template-columns:32px 1fr 40px;
  align-items:center;
  gap:10px;
  margin:13px 0;
}

.murep-grade-line b{
  font-size:11px;
  color:#334155;
}

.murep-grade-line strong{
  text-align:right;
  font-size:11px;
  color:#64748b;
}

.murep-mini-progress{
  height:5px;
  border-radius:999px;
  background:#edf2f7;
  overflow:hidden;
  margin-top:5px;
  min-width:55px;
}

.murep-mini-progress span{
  display:block;
  height:100%;
  border-radius:999px;
  background:#2563eb;
}

.murep-project-row{
  justify-content:space-between;
}

.murep-project-score{
  display:flex;
  align-items:center;
  gap:8px;
}

.murep-project-score strong{
  font-size:14px;
}

.murep-table-card{
  overflow:hidden;
}

.murep-table-head{
  padding:16px 18px;
  display:flex;
  justify-content:space-between;
  align-items:center;
  border-bottom:1px solid #eef2f7;
}

.murep-tabs{
  display:flex;
  background:#f1f5f9;
  border-radius:10px;
  padding:3px;
}

.murep-tabs button{
  border:0;
  background:transparent;
  color:#64748b;
  padding:7px 12px;
  border-radius:8px;
  font-size:11px;
  font-weight:800;
  cursor:pointer;
}

.murep-tabs button.active{
  background:#fff;
  color:#2563eb;
  box-shadow:0 1px 5px rgba(15,23,42,.10);
}

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

.murep-table{
  width:100%;
  border-collapse:collapse;
  min-width:1060px;
}

.murep-table th{
  padding:11px 12px;
  background:#f8fafc;
  color:#64748b;
  font-size:10px;
  text-transform:uppercase;
  letter-spacing:.02em;
  text-align:left;
  white-space:nowrap;
}

.murep-table td{
  padding:11px 12px;
  border-top:1px solid #eef2f7;
  color:#334155;
  font-size:11px;
  vertical-align:middle;
}

.murep-person{
  display:flex;
  align-items:center;
  gap:9px;
  min-width:195px;
}

.murep-person b{
  display:block;
  color:#0f172a;
  font-size:11px;
}

.murep-person small{
  display:block;
  color:#94a3b8;
  margin-top:3px;
  font-size:9px;
}

.murep-worker-type{
  display:inline-block;
  background:#f1f5f9;
  border-radius:999px;
  padding:5px 8px;
  font-size:10px;
  font-weight:700;
  color:#475569;
}

.murep-sub{
  display:block;
  margin-top:3px;
  color:#94a3b8;
}

.murep-score{
  color:#0f172a;
  font-size:13px;
}

.murep-ok{
  color:#15803d;
  font-weight:800;
}

.murep-reject{
  color:#dc2626;
  font-weight:900;
}

.murep-note{
  border-radius:14px;
  padding:12px 15px;
  background:#eff6ff;
  border:1px solid #dbeafe;
  color:#475569;
  font-size:11px;
  display:flex;
  gap:8px;
}

.murep-note b{
  color:#1d4ed8;
  white-space:nowrap;
}

.murep-empty{
  padding:24px;
  text-align:center;
  color:#94a3b8;
}

.murep-error{
  padding:30px;
  text-align:center;
  background:#fff;
  border:1px solid #fecaca;
  border-radius:16px;
}

.murep-error b{
  display:block;
  color:#b91c1c;
}

.murep-error span{
  display:block;
  margin-top:6px;
  color:#64748b;
}

@media(max-width:1200px){

  .murep-kpis{
    grid-template-columns:
      repeat(3,minmax(0,1fr));
  }

  .murep-grid{
    grid-template-columns:1fr 1fr;
  }

  .murep-ranking{
    grid-column:1/-1;
  }
}

@media(max-width:760px){

  .murep-kpis,
  .murep-grid{
    grid-template-columns:1fr;
  }

  .murep-ranking{
    grid-column:auto;
  }

  .murep-toolbar{
    align-items:stretch;
  }

  .murep-field{
    width:100%;
  }

  .murep-table-head{
    align-items:flex-start;
    gap:12px;
    flex-direction:column;
  }
}


/* =========================================================
 * MUKA_PERFORMANCE_APPROVED_LAYOUT_V1
 * Layout mengikuti render yang disetujui.
 * Hanya layout, tidak mengubah data / API.
 * ========================================================= */

#performanceReport{
  display:grid;
  grid-template-columns:
    minmax(0,1.7fr)
    minmax(240px,.82fr)
    minmax(240px,.82fr);
  gap:14px;
  align-items:start;
}


/* KPI selalu penuh di atas */
#performanceReport > .murep-kpis{
  grid-column:1 / -1;
  grid-row:1;
}


/*
 * Pecah wrapper grid V1.
 * Child card ikut grid parent,
 * tanpa mengubah HTML lama.
 */
#performanceReport > .murep-grid{
  display:contents;
}


/* TABLE RANKING BESAR KIRI */
#performanceReport > .murep-table-card{
  grid-column:1;
  grid-row:2 / span 2;
  min-height:510px;
}


/* Distribusi Grade */
#performanceReport > .murep-grid > .murep-card:nth-child(2){
  grid-column:2;
  grid-row:2;
}


/* Top Performance -> Top 5 kanan atas */
#performanceReport > .murep-grid > .murep-card:nth-child(1){
  grid-column:3;
  grid-row:2;
}


/* Performance Proyek */
#performanceReport > .murep-grid > .murep-card:nth-child(3){
  grid-column:2;
  grid-row:3;
}


/* Evaluation */
#performanceReport > .murep-evaluation-card{
  grid-column:3;
  grid-row:3;
}


/* Catatan bawah */
#performanceReport > .murep-note{
  grid-column:1 / -1;
  grid-row:4;
}


/* ---------------------------------------------------------
 * TABLE BESAR KIRI
 * --------------------------------------------------------- */

#performanceReport > .murep-table-card{
  border-radius:15px;
  overflow:hidden;
}

#performanceReport .murep-table-head{
  min-height:64px;
}

#performanceReport .murep-table{
  min-width:860px;
}

#performanceReport .murep-table td{
  padding-top:10px;
  padding-bottom:10px;
}


/* ---------------------------------------------------------
 * TOP PERFORMANCE -> chart/list kanan atas
 * --------------------------------------------------------- */

#performanceReport .murep-ranking{
  min-height:255px;
}

#performanceReport .murep-ranking .murep-rank-row{
  min-height:42px;
}

#performanceReport .murep-ranking .murep-avatar{
  width:31px;
  height:31px;
}

#performanceReport .murep-ranking .murep-rank-name b{
  font-size:10px;
}

#performanceReport .murep-ranking .murep-rank-name small{
  font-size:8px;
}


/* ---------------------------------------------------------
 * DISTRIBUSI GRADE
 * --------------------------------------------------------- */

#performanceReport > .murep-grid > .murep-card:nth-child(2){
  min-height:255px;
}

#performanceReport .murep-grade-line{
  margin:11px 0;
}


/* ---------------------------------------------------------
 * PERFORMANCE PROYEK
 * --------------------------------------------------------- */

#performanceReport > .murep-grid > .murep-card:nth-child(3){
  min-height:245px;
}

#performanceReport .murep-project-row{
  min-height:42px;
}


/* ---------------------------------------------------------
 * CATATAN EVALUASI
 * --------------------------------------------------------- */

.murep-evaluation-card{
  min-height:245px;
}

.murep-evaluation-list{
  display:flex;
  flex-direction:column;
}

.murep-evaluation-row{
  min-height:42px;
  border-top:1px solid #eef2f7;
  display:flex;
  align-items:center;
  gap:8px;
}

.murep-evaluation-row:first-child{
  border-top:0;
}

.murep-evaluation-row .murep-avatar{
  width:30px;
  height:30px;
}

.murep-evaluation-text{
  min-width:0;
  flex:1;
}

.murep-evaluation-text b{
  display:block;
  font-size:9px;
  color:#1e293b;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}

.murep-evaluation-text small{
  display:block;
  margin-top:2px;
  font-size:8px;
  color:#94a3b8;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}


/* ---------------------------------------------------------
 * TAB Per Karyawan / Per Proyek
 * dibuat lebih mirip render
 * --------------------------------------------------------- */

#performanceReport .murep-tabs{
  padding:3px;
  border-radius:9px;
  background:#f1f5f9;
}

#performanceReport .murep-tabs button{
  min-width:88px;
}

#performanceReport .murep-tabs button.active{
  color:#1677f2;
}


/* ---------------------------------------------------------
 * RESPONSIVE
 * --------------------------------------------------------- */

@media(max-width:1450px){

  #performanceReport{
    grid-template-columns:
      minmax(0,1.5fr)
      minmax(230px,1fr);
  }

  #performanceReport > .murep-table-card{
    grid-column:1;
    grid-row:2 / span 4;
  }

  #performanceReport > .murep-grid > .murep-card:nth-child(2){
    grid-column:2;
    grid-row:2;
  }

  #performanceReport > .murep-grid > .murep-card:nth-child(1){
    grid-column:2;
    grid-row:3;
  }

  #performanceReport > .murep-grid > .murep-card:nth-child(3){
    grid-column:2;
    grid-row:4;
  }

  #performanceReport > .murep-evaluation-card{
    grid-column:2;
    grid-row:5;
  }

  #performanceReport > .murep-note{
    grid-column:1 / -1;
    grid-row:6;
  }
}


@media(max-width:1050px){

  #performanceReport{
    display:block;
  }

  #performanceReport > .murep-grid{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:14px;
    margin-top:14px;
  }

  #performanceReport > .murep-table-card,
  #performanceReport > .murep-evaluation-card,
  #performanceReport > .murep-note{
    margin-top:14px;
  }
}


/* ======================================================
 * MUKA_PERFORMANCE_PAGINATION_V1
 * ====================================================== */

.murep-pagination{
  min-height:52px;
  padding:10px 14px;
  border-top:1px solid #edf2f7;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  background:#fff;
}

.murep-pagination-info{
  color:#64748b;
  font-size:10px;
}

.murep-pagination-buttons{
  display:flex;
  align-items:center;
  gap:5px;
}

.murep-page-btn{
  min-width:29px;
  height:29px;
  padding:0 8px;
  border:1px solid #dfe7f1;
  border-radius:7px;
  background:#fff;
  color:#475569;
  font-size:10px;
  font-weight:800;
  cursor:pointer;
}

.murep-page-btn:hover{
  border-color:#93c5fd;
  color:#2563eb;
}

.murep-page-btn.active{
  border-color:#1677f2;
  background:#1677f2;
  color:#fff;
}

.murep-page-btn:disabled{
  opacity:.4;
  cursor:default;
}

.murep-page-dots{
  color:#94a3b8;
  font-size:11px;
  padding:0 3px;
}


/*
 * Tinggi panel kiri dibuat dekat dengan
 * empat panel analitik kanan.
 */
#performanceReport > .murep-table-card{
  min-height:0;
  height:auto;
}

#performanceReport .murep-table td{
  height:43px;
}



/* ======================================================
 * MUKA_PERFORMANCE_VISUAL_V12_FIX
 * ====================================================== */


/* DISTRIBUSI GRADE DONUT */

.murep-grade-card{
  min-height:255px;
}

.murep-donut-wrap{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:24px;
  padding:14px 6px 4px;
}

.murep-donut{
  width:118px;
  height:118px;
  border-radius:50%;
  display:grid;
  place-items:center;
  flex:0 0 auto;
}

.murep-donut-inner{
  width:74px;
  height:74px;
  border-radius:50%;
  background:#fff;
  box-shadow:
    inset 0 0 0 1px #edf2f7;
  display:grid;
  place-content:center;
  text-align:center;
}

.murep-donut-inner strong{
  color:#0f172a;
  font-size:21px;
  line-height:1;
}

.murep-donut-inner span{
  margin-top:4px;
  color:#64748b;
  font-size:9px;
}

.murep-donut-legend{
  min-width:110px;
  display:flex;
  flex-direction:column;
  gap:10px;
}

.murep-donut-legend>div{
  display:grid;
  grid-template-columns:28px 1fr 34px;
  gap:7px;
  align-items:center;
}

.murep-donut-legend b{
  color:#334155;
  font-size:10px;
}

.murep-donut-legend small{
  color:#64748b;
  font-size:9px;
  text-align:right;
}


/* TOP 5 VERTICAL BAR */

.murep-top5-card{
  min-height:255px;
}

.murep-top5-chart{
  height:178px;
  padding:8px 4px 0;
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:7px;
}

.murep-top5-item{
  flex:1;
  min-width:0;
  height:100%;
  display:flex;
  flex-direction:column;
  justify-content:flex-end;
  align-items:center;
}

.murep-top5-item>b{
  margin-bottom:4px;
  color:#0f172a;
  font-size:9px;
  font-weight:900;
}

.murep-top5-track{
  width:30px;
  height:108px;
  border-radius:5px 5px 1px 1px;
  background:#edf2f7;
  display:flex;
  align-items:flex-end;
  overflow:hidden;
}

.murep-top5-track>span{
  width:100%;
  display:block;
  background:
    linear-gradient(
      180deg,
      #2b95ff,
      #1677f2
    );
  border-radius:5px 5px 0 0;
}

.murep-top5-item>small{
  width:58px;
  min-height:28px;
  margin-top:6px;
  color:#64748b;
  font-size:8px;
  line-height:1.2;
  text-align:center;
  overflow:hidden;
}


@media(max-width:1450px){

  .murep-donut{
    width:105px;
    height:105px;
  }

  .murep-donut-inner{
    width:65px;
    height:65px;
  }

  .murep-donut-wrap{
    gap:15px;
  }

  .murep-top5-track{
    width:26px;
  }
}



/* ======================================================
 * MUKA_PERFORMANCE_COMPACT_LAYOUT_V13
 * Rapikan ruang kosong + tabel tanpa ubah data/JS/API
 * ====================================================== */


/* GRID UTAMA */

#performanceReport{
  grid-template-columns:
    minmax(0,1.65fr)
    minmax(250px,.78fr)
    minmax(250px,.78fr);

  grid-template-rows:
    auto
    minmax(255px,auto)
    minmax(255px,auto)
    auto;

  column-gap:14px;
  row-gap:14px;

  align-items:stretch;
}


/* TABLE KIRI */

#performanceReport > .murep-table-card{
  grid-column:1;
  grid-row:2 / span 2;

  height:100%;
  min-height:0;
  align-self:stretch;
}


/* CARD KANAN SEMUA HARUS STRETCH */

#performanceReport > .murep-grid > .murep-card:nth-child(1),
#performanceReport > .murep-grid > .murep-card:nth-child(2),
#performanceReport > .murep-grid > .murep-card:nth-child(3),
#performanceReport > .murep-evaluation-card{
  height:100%;
  min-height:0;
  align-self:stretch;
}


/* POSISI KANAN */

#performanceReport > .murep-grid > .murep-card:nth-child(2){
  grid-column:2;
  grid-row:2;
}

#performanceReport > .murep-grid > .murep-card:nth-child(1){
  grid-column:3;
  grid-row:2;
}

#performanceReport > .murep-grid > .murep-card:nth-child(3){
  grid-column:2;
  grid-row:3;
}

#performanceReport > .murep-evaluation-card{
  grid-column:3;
  grid-row:3;
}


/* ------------------------------------------------------
 * TABLE EMPLOYEE LEBIH KOMPAK
 * ------------------------------------------------------ */

#performanceReport .murep-table-wrap{
  overflow-x:hidden;
}

#performanceReport .murep-table{
  width:100%;
  min-width:0 !important;
  table-layout:fixed;
}


/* ukuran kolom */

#performanceReport .murep-table th:nth-child(1),
#performanceReport .murep-table td:nth-child(1){
  width:4%;
}

#performanceReport .murep-table th:nth-child(2),
#performanceReport .murep-table td:nth-child(2){
  width:23%;
}

#performanceReport .murep-table th:nth-child(3),
#performanceReport .murep-table td:nth-child(3){
  width:9%;
}

#performanceReport .murep-table th:nth-child(4),
#performanceReport .murep-table td:nth-child(4){
  width:18%;
}

#performanceReport .murep-table th:nth-child(5),
#performanceReport .murep-table td:nth-child(5){
  width:8%;
}

#performanceReport .murep-table th:nth-child(6),
#performanceReport .murep-table td:nth-child(6){
  width:9%;
}

#performanceReport .murep-table th:nth-child(7),
#performanceReport .murep-table td:nth-child(7){
  width:8%;
}

#performanceReport .murep-table th:nth-child(8),
#performanceReport .murep-table td:nth-child(8){
  width:8%;
}

#performanceReport .murep-table th:nth-child(9),
#performanceReport .murep-table td:nth-child(9){
  width:6%;
}

#performanceReport .murep-table th:nth-child(10),
#performanceReport .murep-table td:nth-child(10){
  width:7%;
}


/* Grade terakhir kecil */
#performanceReport .murep-table th:last-child,
#performanceReport .murep-table td:last-child{
  width:6%;
}


/* row lebih pendek */

#performanceReport .murep-table td{
  height:46px;
  padding:7px 7px;
  font-size:9px;
}

#performanceReport .murep-table th{
  padding:8px 7px;
  font-size:8px;
}


/* PROJECT jangan pecah 3-4 baris */

#performanceReport .murep-table td:nth-child(4){
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
  line-height:1.2;
}


/* nama karyawan */

#performanceReport .murep-person{
  min-width:0;
}

#performanceReport .murep-person > div{
  min-width:0;
}

#performanceReport .murep-person b{
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}

#performanceReport .murep-person small{
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}


/* avatar sedikit lebih kecil */

#performanceReport .murep-person .murep-avatar{
  width:30px;
  height:30px;
}


/* pagination lebih padat */

#performanceReport .murep-pagination{
  min-height:44px;
  padding:7px 11px;
}


/* ------------------------------------------------------
 * DONUT
 * ------------------------------------------------------ */

.murep-grade-card{
  display:flex;
  flex-direction:column;
}

.murep-grade-card .murep-donut-wrap{
  flex:1;
  padding-top:4px;
}

.murep-donut{
  width:108px;
  height:108px;
}

.murep-donut-inner{
  width:68px;
  height:68px;
}


/* ------------------------------------------------------
 * TOP 5
 * ------------------------------------------------------ */

.murep-top5-card{
  display:flex;
  flex-direction:column;
}

.murep-top5-chart{
  flex:1;
  height:auto;
  min-height:150px;
  padding-top:2px;
}

.murep-top5-track{
  height:100px;
}


/* ------------------------------------------------------
 * PERFORMANCE PROJECT
 * ------------------------------------------------------ */

#performanceReport > .murep-grid > .murep-card:nth-child(3){
  display:flex;
  flex-direction:column;
}

#performanceReport .murep-project-list{
  flex:1;
  display:flex;
  flex-direction:column;
  justify-content:space-evenly;
}

#performanceReport .murep-project-row{
  min-height:36px;
}


/* ------------------------------------------------------
 * EVALUATION
 * ------------------------------------------------------ */

.murep-evaluation-card{
  display:flex;
  flex-direction:column;
}

.murep-evaluation-list{
  flex:1;
  justify-content:space-evenly;
}

.murep-evaluation-row{
  min-height:36px;
}


/* card header sedikit compact */

#performanceReport .murep-card{
  padding:13px;
}

#performanceReport .murep-card-head{
  margin-bottom:8px;
}


/* ------------------------------------------------------
 * NOTE BAWAH
 * ------------------------------------------------------ */

#performanceReport > .murep-note{
  grid-column:1 / -1;
  grid-row:4;
  margin-top:0;
}


/* desktop utama */

@media(min-width:1451px){

  #performanceReport{
    grid-template-rows:
      auto
      255px
      255px
      auto;
  }

}


/* laptop */

@media(max-width:1450px){

  #performanceReport{
    grid-template-columns:
      minmax(0,1.45fr)
      minmax(270px,1fr);

    grid-template-rows:
      auto
      245px
      245px
      245px
      245px
      auto;
  }

  #performanceReport > .murep-table-card{
    grid-column:1;
    grid-row:2 / span 4;
  }

  #performanceReport > .murep-grid > .murep-card:nth-child(2){
    grid-column:2;
    grid-row:2;
  }

  #performanceReport > .murep-grid > .murep-card:nth-child(1){
    grid-column:2;
    grid-row:3;
  }

  #performanceReport > .murep-grid > .murep-card:nth-child(3){
    grid-column:2;
    grid-row:4;
  }

  #performanceReport > .murep-evaluation-card{
    grid-column:2;
    grid-row:5;
  }

  #performanceReport > .murep-note{
    grid-row:6;
  }
}



/* ======================================================
 * MUKA_PERFORMANCE_EXPLAIN_V14
 * Tooltip + pagination visibility
 * ====================================================== */


/* nilai yang punya penjelasan */
.murep-help{
  cursor:help !important;
}

.murep-score.murep-help{
  text-decoration:
    underline dotted #94a3b8;
  text-underline-offset:3px;
}


/*
 * Tinggi tabel dibuat cukup untuk:
 * title + header + 10 karyawan + pagination.
 * Pagination tidak boleh terpotong.
 */

#performanceReport > .murep-table-card{
  min-height:514px !important;
  height:514px !important;
  overflow:hidden !important;
}


/* header tabel lebih compact */
#performanceReport .murep-table-head{
  min-height:50px !important;
  height:50px;
  padding:8px 12px !important;
}


/* header kolom */
#performanceReport .murep-table th{
  height:28px;
  padding:5px 6px !important;
}


/* 10 row × sekitar 38 px */
#performanceReport .murep-table td{
  height:38px !important;
  padding:4px 6px !important;
}


/* pagination HARUS terlihat */
#performanceReport .murep-pagination{
  display:flex !important;
  visibility:visible !important;

  height:42px !important;
  min-height:42px !important;

  padding:5px 10px !important;

  position:relative;
  z-index:5;

  background:#fff;
}


/* table tidak boleh mendorong pagination keluar */
#performanceReport .murep-table-wrap{
  overflow:hidden !important;
}


/* kanan mengikuti tinggi kiri */

@media(min-width:1451px){

  #performanceReport{
    grid-template-rows:
      auto
      250px
      250px
      auto !important;
  }

}


/*
 * Pada ukuran laptop, tabel tetap punya pagination
 * dan panel kanan ditumpuk normal.
 */

@media(max-width:1450px){

  #performanceReport > .murep-table-card{
    min-height:514px !important;
    height:514px !important;
  }

}



/* ======================================================
 * MUKA_PERFORMANCE_PROJECT_NAME_FIX_V15
 * Nama proyek panjang tetap terbaca
 * ====================================================== */

#performanceReport .murep-project-row{
  min-height:48px !important;
  gap:10px;
  align-items:center;
}

#performanceReport .murep-project-row > div:first-child{
  min-width:0;
  flex:1;
}

#performanceReport .murep-project-row > div:first-child b{
  display:-webkit-box;
  -webkit-box-orient:vertical;
  -webkit-line-clamp:2;

  white-space:normal !important;
  overflow:hidden;
  text-overflow:ellipsis;

  line-height:1.25;
  font-size:10px;
  max-width:100%;
}

#performanceReport .murep-project-row > div:first-child small{
  display:block;
  margin-top:3px;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}

#performanceReport .murep-project-score{
  flex:0 0 auto;
  min-width:58px;
  justify-content:flex-end;
}

#performanceReport .murep-project-score strong{
  min-width:32px;
  text-align:right;
}


/* supaya 6 proyek tetap muat rapi */
#performanceReport .murep-project-list{
  justify-content:flex-start !important;
  gap:0;
}



/* ======================================================
 * MUKA_PERFORMANCE_PROJECT_FINAL_FIX_V16
 * Rapikan card proyek + tabel kolom proyek
 * ====================================================== */


/* PROJECT CARD jangan overflow */

#performanceReport > .murep-grid > .murep-card:nth-child(3){
  overflow:hidden !important;
  padding-bottom:10px !important;
}


/* List proyek harus muat semua */

#performanceReport .murep-project-list{
  display:flex !important;
  flex-direction:column !important;
  gap:0 !important;
  justify-content:flex-start !important;
  overflow:hidden !important;
}


/* row proyek dibuat lebih compact */

#performanceReport .murep-project-row{
  min-height:38px !important;
  height:38px !important;
  padding:4px 0 !important;
  box-sizing:border-box;
}


/* nama proyek maksimal 1 baris agar 6 proyek muat */

#performanceReport .murep-project-row > div:first-child b{
  display:block !important;
  white-space:nowrap !important;
  overflow:hidden !important;
  text-overflow:ellipsis !important;
  font-size:9px !important;
  line-height:1.15 !important;
}


/* sub text lebih kecil */

#performanceReport .murep-project-row > div:first-child small{
  margin-top:2px !important;
  font-size:8px !important;
  line-height:1 !important;
}


/* score tetap rapat kanan */

#performanceReport .murep-project-score{
  min-width:54px !important;
  gap:5px !important;
}


/* card proyek sedikit lebih tinggi daripada sebelumnya */

@media(min-width:1451px){

  #performanceReport{
    grid-template-rows:
      auto
      250px
      272px
      auto !important;
  }

}


/* tabel kiri tetap ikut total tinggi kanan */

#performanceReport > .murep-table-card{
  height:536px !important;
  min-height:536px !important;
}


/* kolom proyek tabel sedikit diperlebar */

#performanceReport .murep-table th:nth-child(4),
#performanceReport .murep-table td:nth-child(4){
  width:21% !important;
}


/* sedikit kurangi kolom nama */

#performanceReport .murep-table th:nth-child(2),
#performanceReport .murep-table td:nth-child(2){
  width:21% !important;
}


/* Score / Grade lebih lega */

#performanceReport .murep-table th:nth-child(10),
#performanceReport .murep-table td:nth-child(10){
  width:8% !important;
}

#performanceReport .murep-table th:last-child,
#performanceReport .murep-table td:last-child{
  width:7% !important;
}


/* note bawah jangan tertimpa */

#performanceReport > .murep-note{
  clear:both;
  margin-top:0 !important;
  position:relative;
  z-index:1;
}



/* ======================================================
 * MUKA_PERFORMANCE_PROJECT_SCROLL_V17
 * List proyek scroll di dalam card
 * ====================================================== */

#performanceReport > .murep-grid > .murep-card:nth-child(3){
  overflow:hidden !important;
  display:flex !important;
  flex-direction:column !important;
}

#performanceReport > .murep-grid > .murep-card:nth-child(3) .murep-card-head{
  flex:0 0 auto;
}

#performanceReport .murep-project-list{
  flex:1 1 auto !important;

  min-height:0 !important;

  overflow-y:auto !important;
  overflow-x:hidden !important;

  padding-right:4px;
}


/* scrollbar halus */

#performanceReport .murep-project-list::-webkit-scrollbar{
  width:6px;
}

#performanceReport .murep-project-list::-webkit-scrollbar-track{
  background:#f1f5f9;
  border-radius:999px;
}

#performanceReport .murep-project-list::-webkit-scrollbar-thumb{
  background:#cbd5e1;
  border-radius:999px;
}

#performanceReport .murep-project-list::-webkit-scrollbar-thumb:hover{
  background:#94a3b8;
}


/* item jangan mengecil */

#performanceReport .murep-project-row{
  flex:0 0 auto !important;
}



/* ======================================================
 * MUKA_PERFORMANCE_EMPLOYEE_SCROLL_V18
 * Table karyawan scroll vertical, tanpa pagination
 * ====================================================== */

#performanceReport > .murep-table-card{
  height:536px !important;
  min-height:536px !important;
  overflow:hidden !important;
  display:flex;
  flex-direction:column;
}

#performanceReport .murep-table-head{
  flex:0 0 auto;
}


/* area scroll */
#performanceReport .murep-table-scroll{
  flex:1 1 auto;
  min-height:0;
  overflow-y:auto;
  overflow-x:hidden;
  position:relative;
}


/* header tetap terlihat saat scroll */
#performanceReport .murep-table-scroll thead th{
  position:sticky;
  top:0;
  z-index:4;
  background:#f8fafc;
}


/* footer info */
.murep-scroll-footer{
  position:sticky;
  bottom:0;
  z-index:4;

  background:#fff;
  border-top:1px solid #edf2f7;

  padding:8px 11px;

  color:#64748b;
  font-size:9px;
}


/* scrollbar halus */
#performanceReport .murep-table-scroll::-webkit-scrollbar{
  width:7px;
}

#performanceReport .murep-table-scroll::-webkit-scrollbar-track{
  background:#f1f5f9;
}

#performanceReport .murep-table-scroll::-webkit-scrollbar-thumb{
  background:#cbd5e1;
  border-radius:999px;
}

#performanceReport .murep-table-scroll::-webkit-scrollbar-thumb:hover{
  background:#94a3b8;
}


/* pagination lama jangan tampil */
#performanceReport .murep-pagination{
  display:none !important;
}


/* row tetap compact */
#performanceReport .murep-table td{
  height:38px !important;
  padding:4px 6px !important;
}


/* table tetap full width */
#performanceReport .murep-table{
  width:100%;
  table-layout:fixed;
}

