:root{--navy:#07162f;--blue:#1474e8;--cyan:#17c2c7;--yellow:#ffd335;--green:#20b783;--red:#ef6a6a;--ink:#17233b;--muted:#748099;--line:#e5eaf1;--bg:#f4f6fa}*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--ink);font:14px 'DM Sans',sans-serif}button,input,select,textarea{font:inherit}button{cursor:pointer}.hide{display:none!important}.brand{font:800 18px Manrope;display:flex;align-items:center;gap:7px}.brand b{display:grid;place-items:center;width:38px;height:38px;border-radius:10px;background:var(--yellow);color:var(--navy)}.brand span{color:var(--cyan)}.login{min-height:100vh;display:grid;grid-template-columns:1.15fr .85fr;background:#fff}.hero{padding:42px 64px 56px;background:radial-gradient(circle at 80% 30%,#15519a 0,transparent 28%),linear-gradient(145deg,#061128,#0b2d60);color:#fff;display:flex;flex-direction:column;justify-content:flex-start;gap:46px}.hero small,.page small,.intro small,.head small{font-size:10px;letter-spacing:1.6px;color:var(--blue);font-weight:800}.hero h1{font:800 64px/1.06 Manrope;margin:15px 0}.hero h1 em{color:var(--yellow);font-style:normal}.hero p{font-size:18px;color:#b9c8dc;max-width:520px;line-height:1.65}.hero footer{font-size:10px;color:#99abc3}.hero footer span{float:right}.loginbox{display:grid;place-items:center;padding:45px}.loginbox form{width:min(410px,100%)}.loginbox h2{font:800 36px Manrope;margin:8px 0}.loginbox p{color:var(--muted)}label{display:block;font-size:12px;font-weight:700;color:#46536b;margin-top:20px}input,select,textarea{width:100%;border:1px solid var(--line);border-radius:8px;background:#fff;padding:12px 13px;outline:none;color:var(--ink)}label input,label select,label textarea{margin-top:7px}input:focus,select:focus,textarea:focus{border-color:var(--blue);box-shadow:0 0 0 3px #1474e817}button,.intro>button,.form footer button{border:0;border-radius:8px;background:var(--blue);color:#fff;padding:12px 17px;font-weight:700}.loginbox form>button{width:100%;margin-top:20px}.loginbox i{display:block;color:var(--red);font-style:normal;min-height:20px;font-size:12px;margin-top:8px}.loginbox aside{margin-top:24px;border:1px solid var(--line);border-radius:9px;background:#f5f7fa;padding:13px;display:grid;grid-template-columns:1fr 1.5fr;gap:4px;font-size:11px;color:var(--muted)}.loginbox aside b{grid-row:span 3;color:var(--ink)}.app{display:grid;grid-template-columns:245px 1fr;min-height:100vh}.sidebar{position:fixed;inset:0 auto 0 0;width:245px;background:var(--navy);color:#9db0cb;padding:27px 18px;display:flex;flex-direction:column;z-index:9}.sidebar .brand{color:white;padding:0 10px 35px}.sidebar nav{display:flex;flex-direction:column;gap:5px}.sidebar nav>small{margin:18px 13px 5px;color:#536987;font-size:9px;letter-spacing:1.5px}.sidebar nav button{background:transparent;color:#aebbd0;text-align:left;padding:11px 13px}.sidebar nav button:hover,.sidebar nav button.active{background:#142c51;color:#fff}.sidebar nav i{float:right;background:#203a61;padding:2px 7px;border-radius:10px;font-style:normal}.sidebar footer{margin-top:auto;border-top:1px solid #1b3151;padding-top:18px;display:grid;grid-template-columns:36px 1fr 28px;align-items:center;gap:9px}.sidebar footer>b,.avatar{width:36px;height:36px;border-radius:50%;display:grid;place-items:center;background:var(--cyan);color:var(--navy);font-size:10px}.sidebar footer strong,.sidebar footer small{display:block;color:white;font-size:10px}.sidebar footer small{color:#8294ae;margin-top:3px}.sidebar footer button{background:transparent;padding:5px;color:#8193ad}main{grid-column:2}main>header{height:78px;background:#fff;border-bottom:1px solid var(--line);padding:0 34px;display:flex;align-items:center;position:sticky;top:0;z-index:5}main>header h3{font:700 17px Manrope;margin:4px 0}main>header>div>small{font-size:9px;letter-spacing:1.2px;color:#9aa5b7}main>header>label{position:relative;margin:0 15px 0 auto}main>header>label input{width:220px;padding:10px 12px 10px 30px}main>header time{border-left:1px solid var(--line);padding-left:15px}main>header time small,main>header time b{display:block;font-size:9px}#menu{display:none;background:#fff;color:var(--ink);border:1px solid var(--line);margin-right:13px}.content{padding:32px 14px 50px;max-width:none;width:100%;margin:0}.page{display:none}.page.active{display:block}.intro{display:flex;justify-content:space-between;align-items:end;margin-bottom:27px}.intro h1{font:800 30px Manrope;margin:3px 0}.intro h1 em{font-style:normal;color:var(--blue)}.intro p{color:var(--muted);margin:4px 0}.stats{display:grid;grid-template-columns:repeat(4,1fr);gap:15px;margin-bottom:17px}.stat{background:#fff;border:1px solid var(--line);border-radius:10px;padding:18px;display:grid;grid-template-columns:42px 1fr;gap:12px;align-items:center}.stat>i{width:42px;height:42px;border-radius:9px;display:grid;place-items:center;background:#edf4fe;color:var(--blue);font-style:normal}.stat span{font-size:9px;letter-spacing:1px;color:var(--muted);font-weight:800;display:block}.stat b{font:800 25px Manrope}.grid{display:grid;grid-template-columns:1.3fr .7fr;gap:17px;margin-bottom:17px}.card{background:#fff;border:1px solid var(--line);border-radius:10px}.chart,.present{padding:21px}.head{display:flex;justify-content:space-between;align-items:start}.head h3{font:700 16px Manrope;margin:3px 0}.head button{background:transparent;color:var(--blue);padding:5px}.head select{width:auto;padding:7px}.chartbody{display:flex;align-items:center;justify-content:space-around;padding:23px 10px 4px}.donut{width:145px;height:145px;border-radius:50%;background:conic-gradient(#1474e8 0 36%,#17c2c7 36% 57%,#ffd335 57% 70%,#ff974a 70% 85%,#6e79db 85%);display:grid;place-items:center}.donut:before{content:'';position:absolute;width:90px;height:90px;border-radius:50%;background:#fff}.donut span{z-index:1;text-align:center}.donut span>*{display:block}.donut b{font:800 23px Manrope}.donut small{font-size:8px;color:var(--muted)}#legend{min-width:180px}.legend{display:grid;grid-template-columns:9px 1fr auto;gap:9px;padding:5px;font-size:11px}.legend i{width:7px;height:7px;border-radius:2px}.present h2{font:800 38px Manrope;margin:22px 0 8px}.present h2 small{font:400 11px 'DM Sans';color:var(--muted);letter-spacing:0}.present progress{width:100%;accent-color:var(--green)}#miniPeople{display:grid;grid-template-columns:1fr;gap:0;margin-top:16px}#miniPeople .avatar{color:#fff;width:35px;height:35px}.table{overflow:hidden}.table>.head{padding:19px 21px 11px}.scroll{overflow:auto}table{width:100%;border-collapse:collapse;min-width:760px}th{background:#f8f9fb;color:#8d99ad;font-size:8px;letter-spacing:1px;text-align:left;padding:11px 17px}td{border-top:1px solid #edf0f4;padding:13px 17px;font-size:11px}td strong,td small{display:block}td small{color:var(--muted);margin-top:3px}.tag,.status{display:inline-block;padding:5px 8px;border-radius:5px;font-size:9px;font-weight:700}.tag{background:#edf4fe;color:var(--blue)}.status{background:#e7f8f1;color:#15946a}.status.selesai{background:#e8f1ff;color:#3477da}.status.terjadwal{background:#fff5dc;color:#ad7606}.status.inaktif{background:#f0f1f4;color:#7c8493}.prog{display:flex;align-items:center;gap:7px}.prog i,.pct i{display:block;width:70px;height:5px;background:#edf0f4;border-radius:5px;overflow:hidden}.prog i:after,.pct i:after{content:'';display:block;width:var(--p);height:100%;background:var(--blue)}.form{max-width:930px;padding:26px;display:grid;grid-template-columns:1fr 1fr;gap:0 21px}.form .wide,.form footer{grid-column:1/-1}.form select[multiple]{height:115px}.form label>small{display:block;color:var(--muted);margin-top:5px}.form footer{border-top:1px solid var(--line);margin-top:24px;padding-top:20px;text-align:right}.form footer .light{background:#eef2f7;color:#44516a;margin-right:7px}.range{display:flex;align-items:center;gap:10px;margin-top:8px}.range input{padding:0;border:0;box-shadow:none}.range output{color:var(--blue);font-weight:800}.filters{display:grid;grid-template-columns:1fr 210px 190px;gap:11px;padding:13px;margin-bottom:14px}.date{background:#fff!important;color:var(--ink)!important;border:1px solid var(--line)!important}.person{display:flex;align-items:center;gap:9px}.person .avatar{margin:0;color:#fff}.attSelect{width:120px;padding:7px}.pct{display:flex;gap:8px;align-items:center}.pct i:after{background:var(--green)}.users{display:grid;grid-template-columns:repeat(3,1fr);gap:15px}.user{padding:20px}.user>div{display:flex;align-items:center;gap:12px}.user .avatar{color:white;width:44px;height:44px}.user strong,.user small{display:block}.user small{color:var(--muted)}.user>span{display:inline-block;margin-top:17px;background:#edf4fe;color:var(--blue);padding:5px 8px;border-radius:5px;font-size:9px;font-weight:700}.user footer{border-top:1px solid var(--line);margin-top:15px;padding-top:12px;font-size:9px;color:var(--muted)}#toast{position:fixed;right:24px;bottom:24px;background:var(--navy);color:#fff;padding:13px 18px;border-radius:8px;opacity:0;transform:translateY(20px);transition:.25s;z-index:30}#toast.show{opacity:1;transform:none}
@media(max-width:1000px){.login{grid-template-columns:1fr}.hero{display:none}.loginbox{min-height:100vh}.app{grid-template-columns:1fr}.sidebar{transform:translateX(-100%);transition:.2s}.sidebar.open{transform:none}main{grid-column:1}#menu{display:block}.grid{grid-template-columns:1fr}.users{grid-template-columns:repeat(2,1fr)}}@media(max-width:650px){.content{padding:24px 15px}.stats{grid-template-columns:1fr 1fr}.form{grid-template-columns:1fr}.form .wide,.form footer{grid-column:1}.filters{grid-template-columns:1fr}.users{grid-template-columns:1fr 1fr}.intro h1{font-size:24px}main>header{padding:0 14px}main>header>label,main>header time{display:none}.chartbody{flex-direction:column;gap:18px}.hero h1{font-size:45px}}.chart .chartbody{
  padding-top:50px !important;
}


/* Checkbox kategori grafik: kategori yang dimatikan tetap ada dan bernilai 0 */
.legend.category-off{opacity:.55}
.series-legend{display:flex;flex-wrap:wrap;justify-content:center;gap:10px 16px;margin:8px 15px 0;padding-top:10px;border-top:1px solid #edf0f4}
.series-legend label.series-toggle{display:inline-flex;align-items:center;gap:6px;margin:0;cursor:pointer;font-size:9px;font-weight:700;color:#667287;user-select:none}
.series-legend label.series-toggle input{position:absolute;opacity:0;pointer-events:none;width:1px;height:1px;padding:0;margin:0}
.series-legend .series-check{display:grid;place-items:center;width:15px;height:15px;border-radius:3px;background:#1474e8;color:#fff;font:800 10px/1 Arial;transition:.15s}
.series-legend label.series-toggle.is-off .series-check{background:#fff;color:transparent;border:1.5px solid #b7c1cf}
.series-legend label.series-toggle i{display:inline-block;width:16px;height:3px;border-radius:3px;flex:0 0 auto}
.series-legend label.series-toggle.is-off>i{opacity:.45}
.series-legend label.series-toggle.is-off>span:last-child{opacity:.6}
.category-line-chart path.series-line.series-zero{opacity:.42;stroke-width:1.6}


/* Perbaikan posisi logo dan judul hero */
.hero-brand{display:block;margin:0}.hero-brand img{display:block;width:min(300px,75%);height:auto}.hero-copy{margin-top:0;max-width:650px}.hero-copy small{display:block;margin:0 0 10px 0}.hero-copy h1{margin:0 0 18px}.hero-copy p{margin:0}
@media(max-width:650px){.hero-brand img{width:min(220px,80%)}}

#miniPeople .rank-person{padding:10px 0;}
.attendance-mini-empty{margin:10px 0 0;color:var(--muted);font-size:12px;}

/* v18: daftar pelaksana dashboard tetap ringkas, daftar hadir menampilkan seluruh pelaksana */
.present #miniPeople{max-height:250px;overflow:hidden;margin-top:12px}
.present .rank-person{padding:7px 0!important}
.present .rank-person div strong{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:150px}
@media(max-width:1000px){.present #miniPeople{max-height:270px}.present .rank-person div strong{max-width:none}}

/* V19: isi bubble kehadiran lebih penuh */
#miniPeople{margin-top:14px}
.rank-person{padding:9px 0}
.present h2{margin:18px 0 6px}

/* V20: bubble TERJADWAL pada statistik dashboard */
.stats{grid-template-columns:repeat(5,minmax(0,1fr))}
@media(max-width:1250px){.stats{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:800px){.stats{grid-template-columns:repeat(2,minmax(0,1fr))}}


/* V21: daftar kehadiran tidak terpotong */
.present #miniPeople{max-height:none!important;overflow:visible!important;height:auto!important}
.present{overflow:visible}


/* V23: filter bulan dan tahun pada Daftar Pekerjaan */
.filters{grid-template-columns:minmax(260px,1fr) repeat(4,minmax(145px,190px));align-items:center}
.filters input,.filters select{height:56px;margin:0;border-radius:11px}
#jobMonth,#jobYear{background-color:#fff}
@media(max-width:1250px){.filters{grid-template-columns:1fr 1fr 1fr}.filters #jobSearch{grid-column:1/-1}}
@media(max-width:760px){.filters{grid-template-columns:1fr 1fr}.filters #jobSearch{grid-column:1/-1}}
@media(max-width:520px){.filters{grid-template-columns:1fr}.filters #jobSearch{grid-column:auto}}

/* V27: download WO sekarang button asli; otomatis mengikuti .sidebar nav button */
#downloadWO{font:inherit}


/* V28 STABIL: toggle kategori grafik tanpa animasi ulang */
.series-legend button.series-toggle{
  display:inline-flex;
  align-items:center;
  gap:6px;
  margin:0;
  padding:2px 0;
  border:0;
  border-radius:0;
  background:transparent;
  color:#667287;
  cursor:pointer;
  font:700 11px 'DM Sans',sans-serif!important;
  user-select:none;
  box-shadow:none;
}
.series-legend button.series-toggle:hover{background:transparent;color:#46536b}
.series-legend button.series-toggle:focus-visible{outline:2px solid #1474e8;outline-offset:4px;border-radius:3px}
.series-legend button.series-toggle .series-check{
  display:grid;
  place-items:center;
  width:15px;
  height:15px;
  border-radius:3px;
  background:#1474e8;
  color:#fff;
  font:800 10px/1 Arial;
}
.series-legend button.series-toggle.is-off .series-check{background:#fff;color:transparent;border:1.5px solid #b7c1cf}
.series-legend button.series-toggle i{display:inline-block;width:16px;height:3px;border-radius:3px;flex:0 0 auto}
.series-legend button.series-toggle.is-off>i{opacity:.45}
.series-legend button.series-toggle.is-off>span:last-child{opacity:.6}


/* V29: Download Working Order identik dengan menu sidebar lain */
.sidebar nav #downloadWO{
  display:block!important;
  width:100%!important;
  margin:0!important;
  padding:11px 13px!important;
  border:0!important;
  border-radius:8px!important;
  background:transparent!important;
  color:#aebbd0!important;
  text-align:left!important;
  font-family:'DM Sans',sans-serif!important;
  font-size:14px!important;
  font-weight:700!important;
  line-height:normal!important;
  box-shadow:none!important;
}
.sidebar nav #downloadWO:hover,.sidebar nav #downloadWO:focus-visible{background:#142c51!important;color:#fff!important;}
@media(max-width:650px){.sidebar nav #downloadWO{font-size:13px!important}}



/* V29 MANUAL V2: animasi hanya saat kategori dicentang/dimatikan */
@keyframes seriesDraw{from{stroke-dashoffset:1}to{stroke-dashoffset:0}}
@keyframes pointPop{from{opacity:0;transform:scale(0)}to{opacity:1;transform:scale(1)}}

/* V29 MANUAL FIX: animasi grafik hanya ketika kategori dicentang/dimatikan */
.category-line-chart path.series-line{
  stroke-dashoffset:0 !important;
  animation:none !important;
}
.category-line-chart circle.series-point{
  opacity:1 !important;
  transform:scale(1) !important;
  animation:none !important;
}
.line-chart-wrap.chart-toggle-animate .category-line-chart path.series-line{
  stroke-dashoffset:1 !important;
  animation:seriesDraw .9s ease forwards !important;
  animation-delay:var(--delay) !important;
}
.line-chart-wrap.chart-toggle-animate .category-line-chart circle.series-point{
  animation:pointPop .35s ease both !important;
  animation-delay:var(--delay) !important;
}


/* V3 FIX: dropdown filter Daftar Pekerjaan */
#jobs .filters select,#jobs .filters input{pointer-events:auto!important;position:relative;z-index:2;opacity:1!important;}
#jobs .filters{overflow:visible!important;}


/* Animasi grafik V29 statis: hanya dipicu saat toggle kategori */
#categoryBars .category-line-chart path.series-line{
  stroke-dasharray:1 !important;
  stroke-dashoffset:0;
  animation:none !important;
}
#categoryBars .category-line-chart circle.series-point{
  opacity:1;
  transform:scale(1);
  transform-box:fill-box;
  transform-origin:center;
  animation:none !important;
}


/* V31 FIX: kontrol periode grafik selalu dapat diklik */
.chart .head{position:relative;z-index:30;overflow:visible!important}
.chart .period-wrap{
  display:flex!important;
  align-items:center;
  gap:8px;
  position:relative!important;
  z-index:60!important;
  pointer-events:auto!important;
  overflow:visible!important;
}
.chart .period-wrap select{
  display:block!important;
  width:auto!important;
  min-width:138px;
  height:40px;
  margin:0!important;
  padding:7px 34px 7px 11px!important;
  position:relative!important;
  z-index:61!important;
  pointer-events:auto!important;
  opacity:1!important;
  cursor:pointer!important;
  background-color:#fff!important;
}
@media(max-width:650px){
  .chart .head{gap:10px;flex-wrap:wrap}
  .chart .period-wrap{width:100%;display:grid!important;grid-template-columns:1fr 1fr}
  .chart .period-wrap select{width:100%!important;min-width:0}
}

/* V31 FIX: jangan blokir transisi JS pada garis/titik grafik */
#categoryBars .category-line-chart path.series-line{
  animation:none!important;
}
#categoryBars .category-line-chart circle.series-point{
  animation:none!important;
}
\n\n/* V32 - animasi grafik dikembalikan seperti app.js referensi pengguna.\n   Hanya aktif ketika render(true) dipicu oleh toggle kategori. */\n@keyframes v32SeriesDraw{from{stroke-dashoffset:1}to{stroke-dashoffset:0}}\n@keyframes v32PointPop{from{opacity:0;transform:scale(0)}to{opacity:1;transform:scale(1)}}\n\n/* Kondisi normal: grafik statis, tidak beranimasi saat klik menu/filter lain. */\n#categoryBars .category-line-chart path.series-line{\n  fill:none;\n  stroke:var(--series);\n  stroke-width:2.8;\n  stroke-linecap:round;\n  stroke-linejoin:round;\n  stroke-dasharray:1!important;\n  stroke-dashoffset:0!important;\n  animation:none!important;\n}\n#categoryBars .category-line-chart circle.series-point{\n  fill:#fff;\n  stroke:var(--series);\n  stroke-width:2.5;\n  opacity:1!important;\n  transform:scale(1)!important;\n  transform-box:fill-box;\n  transform-origin:center;\n  animation:none!important;\n}\n\n/* Animasi asli: garis menggambar 0,9 dtk + titik pop bertahap. */\n#categoryBars .line-chart-wrap.chart-toggle-animate .category-line-chart path.series-line{\n  stroke-dasharray:1!important;\n  stroke-dashoffset:1!important;\n  animation:v32SeriesDraw .9s ease forwards!important;\n  animation-delay:var(--delay)!important;\n}\n#categoryBars .line-chart-wrap.chart-toggle-animate .category-line-chart circle.series-point{\n  opacity:0;\n  transform:scale(0);\n  animation:v32PointPop .35s ease both!important;\n  animation-delay:var(--delay)!important;\n}\n

/* V33: grafik selalu tampil semua; tanpa animasi, toggle kategori, atau filter periode. */
.chart .period-wrap,.series-legend,.chart-series-picker{display:none!important}
#categoryBars .category-line-chart path.series-line{
  fill:none!important;
  stroke:var(--series)!important;
  stroke-width:2.8!important;
  stroke-linecap:round!important;
  stroke-linejoin:round!important;
  stroke-dasharray:none!important;
  stroke-dashoffset:0!important;
  opacity:1!important;
  animation:none!important;
  transition:none!important;
}
#categoryBars .category-line-chart circle.series-point{
  fill:#fff!important;
  stroke:var(--series)!important;
  stroke-width:2.5!important;
  opacity:1!important;
  transform:none!important;
  animation:none!important;
  transition:none!important;
}
#donut{animation:none!important;transition:none!important;transform:none!important}


/* V47 - dashboard 5 bubble: Total, Aktif, Terjadwal, Selesai, Inaktif */
#dashboard .stats{grid-template-columns:repeat(5,minmax(0,1fr));gap:9px;margin-bottom:14px}
#dashboard .stat{min-height:70px;padding:10px 11px;grid-template-columns:32px minmax(0,1fr);gap:8px;border-radius:9px}
#dashboard .stat>i{width:32px;height:32px;border-radius:8px}
#dashboard .stat>i svg{width:19px;height:19px}
#dashboard .stat span{font-size:9px;line-height:1.15;letter-spacing:.65px}
#dashboard .stat b{font-size:21px;line-height:1}
main>header{position:sticky!important;top:0!important;z-index:9999!important;background:#fff!important}
.content{position:relative;z-index:1}
@media(max-width:1250px){#dashboard .stats{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:800px){#dashboard .stats{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}}


/* V47: TOTAL HAPUS dihilangkan; 5 bubble dashboard */
#dashboard .stats{grid-template-columns:repeat(5,minmax(0,1fr))!important;}
@media(max-width:1250px){#dashboard .stats{grid-template-columns:repeat(3,minmax(0,1fr))!important;}}
@media(max-width:800px){#dashboard .stats{grid-template-columns:repeat(2,minmax(0,1fr))!important;}}

/* V48 - dashboard diperlebar sampai mendekati ujung area konten */
.content{
  width:100%!important;
  max-width:none!important;
  margin:0!important;
  padding-left:14px!important;
  padding-right:14px!important;
}

#dashboard{
  width:100%!important;
}

#dashboard .stats{
  width:100%!important;
  grid-template-columns:repeat(5,minmax(0,1fr))!important;
  gap:10px!important;
}

@media(max-width:1250px){
  #dashboard .stats{
    grid-template-columns:repeat(3,minmax(0,1fr))!important;
  }
}

@media(max-width:800px){
  .content{
    padding-left:10px!important;
    padding-right:10px!important;
  }
  #dashboard .stats{
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
    gap:8px!important;
  }
}

/* V50 - Kolom Deskripsi Pekerjaan pada tabel Aktivitas Lapangan dashboard */
#dashboard .recent-jobs-table{
  width:100%;
  table-layout:fixed;
  min-width:1050px;
}
#dashboard .recent-jobs-table th:nth-child(1){width:20%}
#dashboard .recent-jobs-table th:nth-child(2){width:29%}
#dashboard .recent-jobs-table th:nth-child(3){width:14%}
#dashboard .recent-jobs-table th:nth-child(4){width:13%}
#dashboard .recent-jobs-table th:nth-child(5){width:13%}
#dashboard .recent-jobs-table th:nth-child(6){width:11%}
#dashboard .recent-jobs-table .job-name-cell strong{
  display:block;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}
#dashboard .recent-jobs-table .job-description-cell{
  padding-right:24px;
  color:#64748b;
  line-height:1.45;
  vertical-align:middle;
}
#dashboard .recent-jobs-table .job-description-cell span{
  display:-webkit-box;
  -webkit-box-orient:vertical;
  -webkit-line-clamp:2;
  overflow:hidden;
  text-overflow:ellipsis;
  word-break:break-word;
}
@media(max-width:900px){
  #dashboard .recent-jobs-table{min-width:980px}
  #dashboard .recent-jobs-table th:nth-child(1){width:190px}
  #dashboard .recent-jobs-table th:nth-child(2){width:270px}
  #dashboard .recent-jobs-table th:nth-child(3){width:150px}
  #dashboard .recent-jobs-table th:nth-child(4){width:140px}
  #dashboard .recent-jobs-table th:nth-child(5){width:130px}
  #dashboard .recent-jobs-table th:nth-child(6){width:120px}
}



/* =========================================================
   V51 - Popup konfirmasi bubble di tengah web
   Dipakai untuk Status Selesai/Inaktif, Hapus Pekerjaan,
   dan Hapus Semua Pekerjaan.
   ========================================================= */
.web-confirm-overlay{
  position:fixed;
  inset:0;
  z-index:20000;
  display:grid;
  place-items:center;
  padding:20px;
  background:rgba(7,22,47,.48);
  backdrop-filter:blur(4px);
  -webkit-backdrop-filter:blur(4px);
  opacity:0;
  transition:opacity .15s ease;
}
.web-confirm-overlay.show{opacity:1}
.web-confirm-bubble{
  width:min(440px,calc(100vw - 32px));
  background:#fff;
  border:1px solid #e5eaf1;
  border-radius:18px;
  box-shadow:0 24px 70px rgba(7,22,47,.24);
  padding:24px;
  transform:translateY(10px) scale(.985);
  transition:transform .15s ease;
}
.web-confirm-overlay.show .web-confirm-bubble{transform:translateY(0) scale(1)}
.web-confirm-icon{
  width:48px;
  height:48px;
  border-radius:14px;
  display:grid;
  place-items:center;
  margin-bottom:16px;
  background:#edf4fe;
  color:#1474e8;
}
.web-confirm-bubble.is-danger .web-confirm-icon{
  background:#fff0ed;
  color:#df5a54;
}
.web-confirm-icon svg{
  width:25px;
  height:25px;
  fill:none;
  stroke:currentColor;
  stroke-width:1.8;
  stroke-linecap:round;
  stroke-linejoin:round;
}
.web-confirm-copy small{
  display:block;
  margin-bottom:5px;
  color:#1474e8;
  font-size:10px;
  font-weight:800;
  letter-spacing:1.4px;
}
.web-confirm-bubble.is-danger .web-confirm-copy small{color:#df5a54}
.web-confirm-copy h3{
  margin:0 0 9px;
  color:#17233b;
  font:800 21px/1.25 Manrope,'DM Sans',sans-serif;
}
.web-confirm-copy p{
  margin:0;
  color:#66758c;
  font-size:13px;
  line-height:1.65;
}
.web-confirm-actions{
  display:flex;
  justify-content:flex-end;
  gap:9px;
  margin-top:22px;
  padding-top:17px;
  border-top:1px solid #edf0f4;
}
.web-confirm-actions button{
  min-width:100px;
  padding:11px 15px;
  border-radius:10px;
  font-weight:800;
  border:1px solid transparent;
}
.web-confirm-cancel{
  background:#f2f5f8!important;
  color:#53627a!important;
  border-color:#e4e9ef!important;
}
.web-confirm-ok{
  background:#1474e8!important;
  color:#fff!important;
  box-shadow:0 7px 18px rgba(20,116,232,.18);
}
.web-confirm-bubble.is-danger .web-confirm-ok{
  background:#df5a54!important;
  box-shadow:0 7px 18px rgba(223,90,84,.18);
}
.web-confirm-actions button:focus-visible{
  outline:3px solid rgba(20,116,232,.18);
  outline-offset:2px;
}
@media(max-width:520px){
  .web-confirm-bubble{padding:20px;border-radius:15px}
  .web-confirm-actions{display:grid;grid-template-columns:1fr 1fr}
  .web-confirm-actions button{min-width:0;width:100%}
}


/* =========================================================
   V56 - SISTEM BUBBLE ELEGAN GLOBAL + NILAI KEHADIRAN MINUS
   ========================================================= */
:root{
  --elev-1:0 8px 24px rgba(23,35,59,.055),0 1px 3px rgba(23,35,59,.035);
  --elev-2:0 14px 36px rgba(20,116,232,.08),0 2px 8px rgba(23,35,59,.045);
  --bubble-border:#e5edf6;
  --bubble-bg:linear-gradient(180deg,#ffffff 0%,#fbfdff 100%);
}

/* Semua card/bubble utama */
#dashboard .card,#input .card,#jobs .card,#attendance .card,#users .card,
#dashboard .stat,#attendance .stat,#users .user,
.person-att-summary>div,.person-job-item,.description-bubble,.detail-grid>div,
.team-attendance-card,.attendance-matrix,.category-picker>summary,.multi-select>summary{
  border-color:var(--bubble-border)!important;
  border-radius:18px!important;
  background:var(--bubble-bg)!important;
  box-shadow:var(--elev-1)!important;
}

#dashboard .card,#input .card,#jobs .card,#attendance .card,#users .card,
#dashboard .stat,#attendance .stat,.person-job-item,.detail-grid>div{
  transition:transform .18s ease,box-shadow .2s ease,border-color .2s ease!important;
}
@media(hover:hover) and (pointer:fine){
  #dashboard .stat:hover,#attendance .stat:hover,.person-job-item:hover{
    transform:translateY(-2px);
    border-color:#d4e3f5!important;
    box-shadow:var(--elev-2)!important;
  }
}

/* Bubble statistik */
#dashboard .stat,#attendance .stat{
  position:relative;
  overflow:hidden;
}
#dashboard .stat:after,#attendance .stat:after{
  content:"";
  position:absolute;
  left:12px;right:12px;bottom:0;
  height:2px;
  border-radius:2px;
  background:linear-gradient(90deg,rgba(20,116,232,.55),rgba(23,194,199,.22),transparent);
  opacity:.55;
}
#attendance .attendance-stat-negative:after{background:linear-gradient(90deg,#ef6a6a,rgba(239,106,106,.15),transparent)}
#attendance .attendance-stat-negative b{color:#d94f4f!important}

/* Filter Daftar Pekerjaan */
#jobs .filters{
  display:grid;
  grid-template-columns:minmax(320px,1.25fr) repeat(4,minmax(170px,.78fr));
  gap:14px;
  align-items:center;
  padding:14px!important;
  margin-bottom:18px!important;
  border:1px solid var(--bubble-border)!important;
  border-radius:22px!important;
  background:linear-gradient(180deg,#fff 0%,#f8fbff 100%)!important;
  box-shadow:var(--elev-1)!important;
  overflow:visible!important;
}
#jobs .filters input,#jobs .filters select{
  appearance:none;-webkit-appearance:none;
  width:100%;height:62px!important;margin:0!important;
  border:1px solid #dfe8f3!important;border-radius:17px!important;
  background-color:#fff!important;color:#17233b!important;
  font-weight:600!important;
  box-shadow:0 4px 14px rgba(20,116,232,.045)!important;
  transition:border-color .2s ease,box-shadow .2s ease,transform .18s ease!important;
}
#jobs .filters input{
  padding-left:50px!important;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%23748099' stroke-width='2.2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-3.5-3.5'/%3E%3C/svg%3E")!important;
  background-repeat:no-repeat!important;background-position:18px center!important;background-size:18px!important;
}
#jobs .filters select{
  padding:0 46px 0 18px!important;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%23748099' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E")!important;
  background-repeat:no-repeat!important;background-position:right 16px center!important;background-size:18px!important;
}
#jobs .filters input:focus,#jobs .filters select:focus{
  border-color:#1474e8!important;
  box-shadow:0 0 0 4px rgba(20,116,232,.10),0 12px 26px rgba(20,116,232,.08)!important;
  transform:translateY(-1px);
}

/* Search kehadiran */
.attendance-search-wrap{
  padding:10px!important;
  border:1px solid var(--bubble-border)!important;
  border-radius:18px!important;
  background:var(--bubble-bg)!important;
  box-shadow:var(--elev-1)!important;
}
.attendance-search-wrap input{
  border-radius:14px!important;
  border-color:#e1e9f3!important;
  box-shadow:none!important;
}

/* Tabel lebih lembut */
.table{border-radius:18px!important}
.table>.head{border-bottom:1px solid #edf2f7}
th{background:#f7faff!important}
.job-row:hover{background:#f7faff!important}

/* Popup detail */
.job-panel{
  border:1px solid var(--bubble-border)!important;
  border-radius:24px!important;
  box-shadow:0 30px 90px rgba(7,22,47,.22)!important;
}
.description-bubble{
  background:linear-gradient(135deg,#f4f8ff,#fbfdff)!important;
}
.detail-grid>div{
  padding:15px!important;
}

/* Bubble popup konfirmasi */
.web-confirm-bubble{
  border-radius:22px!important;
  border-color:var(--bubble-border)!important;
  box-shadow:0 30px 90px rgba(7,22,47,.24)!important;
}

/* Urutan kehadiran dashboard: bar nilai + / - */
.present .rank-person{
  grid-template-columns:22px 36px minmax(0,1fr) minmax(94px,112px)!important;
  gap:10px!important;
  padding:10px 0!important;
}
.rank-person-copy{min-width:0}
.rank-score{display:grid;grid-template-columns:minmax(48px,1fr) auto;gap:8px;align-items:center;min-width:0}
.rank-score-bar{display:block;width:100%;height:7px;border-radius:999px;background:#edf1f5;overflow:hidden}
.rank-score-bar i{display:block;width:var(--p);height:100%;border-radius:inherit;background:#20b783;transition:width .25s ease}
.rank-score b{min-width:42px;text-align:right;font-size:12px!important;color:#20b783!important}
.rank-person.is-negative .rank-score-bar i{background:#ef6a6a}
.rank-person.is-negative .rank-score b{color:#df5555!important}
.rank-person.is-neutral .rank-score-bar i{background:#aab4c2}
.rank-person.is-neutral .rank-score b{color:#7d899c!important}

/* Tabel kehadiran: bar merah jika minus */
.attendance-score-pct i{--score-color:#20b783}
.attendance-score-pct i:after{background:var(--score-color)!important}
.attendance-score-pct.is-negative{color:#df5555}
.attendance-score-pct.is-negative i{--score-color:#ef6a6a}
.attendance-score-pct.is-negative b{color:#df5555!important}
.attendance-score-pct.is-positive b{color:#15946a!important}
.attendance-score-pct.is-neutral i{--score-color:#aab4c2}
.attendance-score-pct.is-neutral b{color:#7d899c!important}
.attendance-result-col.is-negative{background:#fff5f4!important;color:#df5555!important}
.attendance-result-col.is-negative b{color:#df5555!important}
.podium-art-score.is-negative{color:#df5555!important}

/* Person detail */
.person-att-summary>div{padding:14px!important}
.attendance-formula{
  border:1px solid #dce8f8!important;
  border-radius:13px!important;
  background:linear-gradient(135deg,#edf5ff,#f8fbff)!important;
}
.person-job-item{border-radius:15px!important}

/* Input dan kontrol form */
#input .form input,#input .form textarea,#input .form select,
.category-picker>summary,.multi-select>summary{
  border-radius:13px!important;
  border-color:#e0e8f2!important;
  box-shadow:0 3px 12px rgba(23,35,59,.035)!important;
}
#input .form input:focus,#input .form textarea:focus,#input .form select:focus{
  box-shadow:0 0 0 4px rgba(20,116,232,.09)!important;
}

@media(max-width:1250px){
  #jobs .filters{grid-template-columns:1fr 1fr 1fr}
  #jobs .filters #jobSearch{grid-column:1/-1}
}
@media(max-width:760px){
  #jobs .filters{grid-template-columns:1fr 1fr;padding:12px!important;border-radius:18px!important}
  #jobs .filters #jobSearch{grid-column:1/-1}
  #jobs .filters input,#jobs .filters select{height:56px!important;border-radius:15px!important}
  .present .rank-person{grid-template-columns:22px 34px minmax(0,1fr)!important}
  .rank-score{grid-column:3;grid-template-columns:1fr auto;margin-top:2px}
}
@media(max-width:520px){
  #jobs .filters{grid-template-columns:1fr;gap:10px}
  #jobs .filters #jobSearch{grid-column:auto}
}


/* =========================================================
   V57 - SATU DESAIN BUBBLE UNTUK SELURUH WEB
   Referensi: putih bersih, radius besar, border tipis,
   shadow lembut seperti filter Daftar Pekerjaan.
   ========================================================= */
:root{
  --v57-surface:#ffffff;
  --v57-border:#dce7f4;
  --v57-shadow:0 10px 28px rgba(25,49,83,.065),0 2px 6px rgba(25,49,83,.035);
  --v57-shadow-hover:0 14px 34px rgba(20,116,232,.09),0 3px 8px rgba(25,49,83,.04);
  --v57-radius:24px;
  --v57-inner-radius:18px;
}

/* Bubble/card utama seluruh halaman */
#dashboard .card,
#input .card,
#jobs .card,
#attendance .card,
#users .card,
#dashboard .stat,
#attendance .stat,
#users .user,
#jobs .filters,
.attendance-search-wrap,
.table,
.job-panel,
.web-confirm-bubble,
.person-att-summary>div,
.person-job-item,
.description-bubble,
.detail-grid>div,
.team-attendance-card,
.attendance-matrix,
.search-suggest,
.category-menu{
  background:var(--v57-surface)!important;
  border:1px solid var(--v57-border)!important;
  border-radius:var(--v57-radius)!important;
  box-shadow:var(--v57-shadow)!important;
}

/* Tidak memakai aksen garis dekoratif lama: dibuat clean seperti contoh */
#dashboard .stat:after,
#attendance .stat:after{
  display:none!important;
}

/* Tabel juga menjadi satu bubble utuh */
.table{
  overflow:hidden!important;
}
.table>.head{
  background:#fff!important;
  border-bottom:1px solid #edf2f8!important;
}
.table .scroll{
  background:#fff!important;
}
.table table{
  background:#fff!important;
}
.table th{
  background:#f9fbfe!important;
  border-bottom:1px solid #edf2f8!important;
}
.table td{
  border-top:1px solid #edf2f8!important;
}
.table tbody tr:last-child td{
  border-bottom:0!important;
}

/* Bubble filter - sama seperti screenshot referensi */
#jobs .filters{
  padding:16px!important;
  gap:16px!important;
  border-radius:26px!important;
  background:#fff!important;
  box-shadow:0 12px 30px rgba(25,49,83,.075),0 2px 6px rgba(25,49,83,.035)!important;
}
#jobs .filters input,
#jobs .filters select{
  height:64px!important;
  border:1px solid var(--v57-border)!important;
  border-radius:20px!important;
  background-color:#fff!important;
  box-shadow:0 3px 12px rgba(25,49,83,.035)!important;
  color:#17233b!important;
  font-weight:600!important;
}
#jobs .filters input:hover,
#jobs .filters select:hover{
  border-color:#cbdced!important;
  box-shadow:0 7px 18px rgba(20,116,232,.07)!important;
}
#jobs .filters input:focus,
#jobs .filters select:focus{
  border-color:#1474e8!important;
  box-shadow:0 0 0 4px rgba(20,116,232,.09),0 8px 20px rgba(20,116,232,.07)!important;
}

/* Input/form dan selector custom menggunakan bahasa visual yang sama */
#input .form input,
#input .form textarea,
#input .form select,
.category-picker>summary,
.multi-select>summary,
.attendance-search-wrap input{
  border:1px solid var(--v57-border)!important;
  border-radius:var(--v57-inner-radius)!important;
  background:#fff!important;
  box-shadow:0 3px 12px rgba(25,49,83,.035)!important;
}

/* Bubble statistik sedikit lebih kecil tetapi tetap seragam */
#dashboard .stat,
#attendance .stat{
  border-radius:20px!important;
}

/* Detail kecil di dalam popup tetap ringan agar tidak terlihat bertumpuk */
.detail-grid>div,
.person-att-summary>div,
.description-bubble,
.team-attendance-card,
.attendance-matrix,
.person-job-item{
  border-radius:18px!important;
  box-shadow:0 4px 14px rgba(25,49,83,.04)!important;
}

/* Popup utama */
.job-panel,
.web-confirm-bubble{
  border-radius:26px!important;
  box-shadow:0 28px 80px rgba(7,22,47,.20)!important;
}

/* Podium: teks statistik ditumpuk vertikal agar tidak bertabrakan */
#donut .podium-art-stats{
  width:118px!important;
  white-space:normal!important;
}
#donut .podium-art-score{
  white-space:normal!important;
  line-height:1.25!important;
}
#donut .podium-art-meta{
  display:flex!important;
  flex-direction:column!important;
  align-items:center!important;
  gap:1px!important;
  white-space:normal!important;
  line-height:1.35!important;
}
#donut .podium-art-meta span{
  display:block!important;
  width:100%!important;
  white-space:normal!important;
}

@media(hover:hover) and (pointer:fine){
  #dashboard .stat:hover,
  #attendance .stat:hover,
  .person-job-item:hover{
    border-color:#cfdeee!important;
    box-shadow:var(--v57-shadow-hover)!important;
  }
}

@media(max-width:760px){
  #jobs .filters{padding:12px!important;gap:11px!important;border-radius:20px!important}
  #jobs .filters input,#jobs .filters select{height:58px!important;border-radius:17px!important}
  .table,#dashboard .card,#input .card,#jobs .card,#attendance .card,#users .card{border-radius:20px!important}
}

@media(max-width:650px){
  #donut .podium-art-stats{width:96px!important}
  #donut .podium-art-score{font-size:9px!important}
  #donut .podium-art-meta{font-size:8px!important;line-height:1.3!important}
}


/* V60 STATUS GARDU LIVE */
#dashboard>.intro.intro-with-gardu-live{display:grid!important;grid-template-columns:minmax(300px,.72fr) minmax(560px,1.28fr);gap:18px;align-items:stretch!important}
#dashboard>.intro.intro-with-gardu-live>div:first-child{align-self:center;min-width:0}
.gardu-live-bubble{display:block;min-width:0;padding:14px 16px;border:1px solid #dbe6f2;border-radius:20px;background:#fff;color:#17233b;text-decoration:none;box-shadow:0 10px 28px rgba(30,75,125,.07);transition:.18s ease}
.gardu-live-bubble:hover{border-color:#bfd3ea;box-shadow:0 14px 34px rgba(30,75,125,.11);transform:translateY(-1px)}
.gardu-live-top{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:10px}.gardu-live-top>div{display:flex;align-items:center;gap:8px}.gardu-live-top strong{font:800 12px Manrope,sans-serif;letter-spacing:.5px}.gardu-live-top small{font-size:9px!important;letter-spacing:0!important;color:#7b8799!important}
.gardu-live-dot{width:8px;height:8px;border-radius:50%;background:#20b783;box-shadow:0 0 0 4px rgba(32,183,131,.11);animation:garduPulse 1.8s ease-in-out infinite}.gardu-live-dot.is-off{background:#9aa6b7;box-shadow:none;animation:none}@keyframes garduPulse{50%{box-shadow:0 0 0 7px rgba(32,183,131,0)}}
.gardu-live-groups{display:grid;grid-template-columns:.78fr 1.22fr;gap:10px}.gardu-live-group{min-width:0;padding:9px 10px;border:1px solid #ffd3d3;border-radius:14px;background:#fff8f8}.gardu-live-group-head{display:flex;justify-content:space-between;align-items:center;gap:8px;margin-bottom:7px}.gardu-live-group-head span{font-size:8px;font-weight:800;letter-spacing:.3px;color:#b62e2e}.gardu-live-group-head b{display:grid;place-items:center;min-width:24px;height:20px;padding:0 6px;border-radius:7px;background:#fff;color:#c63434;font-size:9px}.gardu-live-chips{display:flex;flex-wrap:wrap;gap:5px;max-height:48px;overflow:hidden}.gardu-live-chip{display:inline-flex;align-items:center;gap:4px;padding:5px 7px;border:1px solid #f0caca;border-radius:8px;background:#fff;font-size:8px;line-height:1;white-space:nowrap}.gardu-live-chip b{font-weight:800;color:#9d2727}.gardu-live-chip em{font-style:normal;color:#c43e3e}.gardu-live-more{display:inline-grid;place-items:center;padding:5px 7px;border-radius:8px;background:#fee9e9;color:#c33b3b;font-size:8px;font-weight:800}.gardu-live-safe{display:inline-flex;padding:5px 8px;border-radius:8px;background:#eaf8f3;color:#168b67;font-size:8px;font-weight:800}.gardu-live-loading{min-height:58px;display:flex;align-items:center;justify-content:center;gap:9px;color:#7d899b;font-size:10px}.gardu-live-loading i{width:17px;height:17px;border:2px solid #e1e9f3;border-top-color:#1474e8;border-radius:50%;animation:garduSpin .8s linear infinite}@keyframes garduSpin{to{transform:rotate(360deg)}}.gardu-live-fallback{min-height:55px;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 12px;border:1px solid #e4ebf4;border-radius:13px;background:#f8fbff;color:#748099;font-size:10px}.gardu-live-fallback b{color:#1474e8;white-space:nowrap}@media(max-width:1250px){#dashboard>.intro.intro-with-gardu-live{grid-template-columns:1fr!important}.gardu-live-groups{grid-template-columns:1fr 1fr}}@media(max-width:700px){.gardu-live-groups{grid-template-columns:1fr}.gardu-live-bubble{border-radius:18px}.gardu-live-top{align-items:flex-start;flex-direction:column;gap:5px}}


/* =========================================================
   V61 - Bubble STATUS GARDU di sidebar bawah + slider otomatis
   ========================================================= */
#dashboard>.intro.intro-with-gardu-live{display:flex!important;grid-template-columns:none!important}
#sidebarBottomStack.sidebar-bottom-stack{
  margin-top:auto;
  display:grid;
  gap:14px;
}
#sidebarBottomStack.sidebar-bottom-stack>footer{
  margin-top:0!important;
}
.sidebar-gardu-live-slot{
  width:100%;
}
.sidebar .gardu-live-bubble.gardu-live-bubble-sidebar{
  display:block;
  width:100%;
  padding:14px 14px 12px;
  border:1px solid rgba(188,210,236,.22);
  border-radius:18px;
  background:linear-gradient(180deg,rgba(24,53,101,.96) 0%, rgba(12,37,77,.98) 100%);
  color:#fff;
  text-decoration:none;
  box-shadow:0 12px 28px rgba(0,0,0,.22), inset 0 1px 0 rgba(255,255,255,.05);
  transition:transform .18s ease, box-shadow .18s ease, border-color .18s ease;
  overflow:hidden;
}
.sidebar .gardu-live-bubble.gardu-live-bubble-sidebar:hover{
  transform:translateY(-1px);
  border-color:rgba(82,187,255,.34);
  box-shadow:0 16px 34px rgba(0,0,0,.28), inset 0 1px 0 rgba(255,255,255,.05);
}
.sidebar .gardu-live-bubble .gardu-live-top{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:10px;
  margin-bottom:10px;
}
.sidebar .gardu-live-bubble .gardu-live-top>div{display:flex;align-items:center;gap:8px;min-width:0}
.sidebar .gardu-live-bubble .gardu-live-top strong{
  font:800 11px Manrope,sans-serif;
  letter-spacing:.6px;
  color:#fff;
}
.sidebar .gardu-live-bubble .gardu-live-top small{
  color:#9db2cf!important;
  font-size:9px!important;
  letter-spacing:0!important;
  white-space:nowrap;
}
.sidebar .gardu-live-bubble .gardu-live-dot{
  width:8px;
  height:8px;
  border-radius:50%;
  background:#20b783;
  box-shadow:0 0 0 4px rgba(32,183,131,.12);
}
.sidebar .gardu-live-bubble .gardu-live-dot.is-off{background:#8da1bd;box-shadow:none}
.sidebar .gardu-live-slide{
  min-height:96px;
  padding:11px 11px 10px;
  border:1px solid rgba(255,110,110,.18);
  border-radius:14px;
  background:rgba(255,255,255,.045);
}
.sidebar .gardu-live-slide.is-unbalance{
  border-color:rgba(255,138,103,.18);
}
.sidebar .gardu-live-slide-head{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:8px;
  margin-bottom:8px;
}
.sidebar .gardu-live-slide-head span{
  font-size:9px;
  line-height:1.35;
  font-weight:800;
  letter-spacing:.35px;
  color:#ffb1b1;
}
.sidebar .gardu-live-slide.is-unbalance .gardu-live-slide-head span{color:#ffc2a5}
.sidebar .gardu-live-slide-head b{
  display:grid;
  place-items:center;
  min-width:24px;
  height:20px;
  padding:0 6px;
  border-radius:999px;
  background:#fff;
  color:#c63b3b;
  font-size:9px;
}
.sidebar .gardu-live-slide.is-unbalance .gardu-live-slide-head b{color:#d9672b}
.sidebar .gardu-live-bubble .gardu-live-chips{
  display:flex;
  flex-wrap:wrap;
  gap:6px;
  min-height:48px;
  max-height:48px;
  overflow:hidden;
}
.sidebar .gardu-live-bubble .gardu-live-chip{
  display:inline-flex;
  align-items:center;
  gap:4px;
  padding:6px 7px;
  border-radius:9px;
  border:1px solid rgba(255,255,255,.08);
  background:rgba(255,255,255,.92);
  white-space:nowrap;
  font-size:8px;
  line-height:1;
}
.sidebar .gardu-live-bubble .gardu-live-chip b{font-weight:800;color:#9c2c2c}
.sidebar .gardu-live-bubble .gardu-live-chip em{font-style:normal;color:#c33d3d}
.sidebar .gardu-live-bubble .gardu-live-more{
  display:inline-grid;
  place-items:center;
  padding:6px 8px;
  border-radius:9px;
  background:rgba(255,255,255,.10);
  color:#fff;
  font-size:8px;
  font-weight:800;
}
.sidebar .gardu-live-bubble .gardu-live-safe{
  display:inline-flex;
  align-items:center;
  padding:6px 8px;
  border-radius:9px;
  background:rgba(32,183,131,.16);
  color:#8ef2c6;
  font-size:8px;
  font-weight:800;
}
.sidebar .gardu-live-bottomline{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:12px;
  margin-top:10px;
}
.sidebar .gardu-live-bottomline small{
  color:#8fa5c2!important;
  font-size:8px!important;
  letter-spacing:0!important;
}
.sidebar .gardu-live-dots{
  display:flex;
  align-items:center;
  gap:5px;
}
.sidebar .gardu-live-dots i{
  width:7px;
  height:7px;
  border-radius:50%;
  background:rgba(255,255,255,.24);
  transition:transform .18s ease, background-color .18s ease;
}
.sidebar .gardu-live-dots i.active{
  background:#4cc2ff;
  transform:scale(1.15);
}
.sidebar .gardu-live-bubble .gardu-live-loading{
  min-height:94px;
  display:flex;
  align-items:center;
  justify-content:center;
  flex-direction:column;
  gap:10px;
  color:#aac0dc;
  font-size:10px;
}
.sidebar .gardu-live-bubble .gardu-live-loading i{
  width:18px;
  height:18px;
  border:2px solid rgba(255,255,255,.18);
  border-top-color:#4cc2ff;
  border-radius:50%;
  animation:garduSpin .8s linear infinite;
}
.sidebar .gardu-live-bubble .gardu-live-fallback{
  min-height:92px;
  display:flex;
  flex-direction:column;
  align-items:flex-start;
  justify-content:center;
  gap:10px;
  padding:12px;
  border-radius:14px;
  border:1px solid rgba(255,255,255,.08);
  background:rgba(255,255,255,.05);
  color:#a9bdd7;
  font-size:10px;
}
.sidebar .gardu-live-bubble .gardu-live-fallback b{color:#58c6ff}
@media(max-width:1000px){
  #sidebarBottomStack.sidebar-bottom-stack{gap:12px}
  .sidebar-gardu-live-slot{display:none}
}


/* =========================================================
   V62 MOBILE - TAMPILAN KHUSUS HP
   Basis: file terbaru pengguna (fitur MySQL/V56/V61 tetap).
   Desktop/tablet besar tidak diubah.
   ========================================================= */

@media (max-width:768px){

  html,body{
    max-width:100%;
    overflow-x:hidden;
  }

  /* ---------- APP / HEADER ---------- */
  html body .app{
    grid-template-columns:1fr!important;
  }

  html body main{
    grid-column:1!important;
    width:100%!important;
    min-width:0!important;
  }

  /* Header tetap muncul di semua halaman HP agar tombol menu selalu ada.
     Ini mengalahkan style JS yang menyembunyikan header di Input/Pekerjaan/Kehadiran. */
  html body[data-page="dashboard"] main>header,
  html body[data-page="input"] main>header,
  html body[data-page="jobs"] main>header,
  html body[data-page="attendance"] main>header,
  html body[data-page="users"] main>header{
    display:grid!important;
    height:62px!important;
    min-height:62px!important;
    padding:0 10px!important;
    grid-template-columns:42px minmax(0,1fr)!important;
    column-gap:9px!important;
    align-items:center!important;
    background:#fff!important;
    position:sticky!important;
    top:0!important;
    z-index:9999!important;
  }

  html body main>header #menu{
    display:grid!important;
    place-items:center!important;
    width:42px!important;
    height:42px!important;
    min-width:42px!important;
    margin:0!important;
    padding:0!important;
    border-radius:12px!important;
  }

  /* Dashboard: tombol menu + search */
  html body[data-page="dashboard"] main>header.dashboard-head>label{
    display:block!important;
    grid-column:2!important;
    width:100%!important;
    min-width:0!important;
    margin:0!important;
  }

  html body[data-page="dashboard"] main>header.dashboard-head>label input{
    display:block!important;
    width:100%!important;
    min-width:0!important;
    height:42px!important;
    padding:9px 12px 9px 40px!important;
    border-radius:12px!important;
    font-size:13px!important;
  }

  html body[data-page="dashboard"] main>header.dashboard-head>div,
  html body[data-page="dashboard"] main>header.dashboard-head>time{
    display:none!important;
  }

  /* Halaman lain: tombol menu + judul halaman */
  html body:not([data-page="dashboard"]) main>header>div{
    display:block!important;
    min-width:0!important;
  }

  html body:not([data-page="dashboard"]) main>header>div h3{
    margin:2px 0!important;
    font-size:15px!important;
    white-space:nowrap!important;
    overflow:hidden!important;
    text-overflow:ellipsis!important;
  }

  html body:not([data-page="dashboard"]) main>header>div small{
    display:block!important;
    font-size:8px!important;
  }

  html body:not([data-page="dashboard"]) main>header>label,
  html body:not([data-page="dashboard"]) main>header>time{
    display:none!important;
  }

  /* ---------- SIDEBAR HP ---------- */
  html body .sidebar{
    width:min(290px,86vw)!important;
    padding:20px 14px!important;
    transform:translateX(-105%);
    transition:transform .22s ease!important;
    box-shadow:18px 0 45px rgba(7,22,47,.22);
    z-index:15000!important;
  }

  html body .sidebar.open{
    transform:translateX(0)!important;
  }

  html body .sidebar .brand{
    height:86px!important;
    padding:0 4px 16px!important;
  }

  html body .sidebar nav button,
  html body .sidebar nav #downloadWO{
    min-height:44px!important;
    padding:11px 12px!important;
    border-radius:11px!important;
    font-size:13px!important;
  }

  /* Status gardu di sidebar disembunyikan pada HP agar menu tidak terlalu panjang. */
  html body .sidebar-gardu-live-slot{
    display:none!important;
  }

  /* ---------- CONTENT ---------- */
  html body .content{
    width:100%!important;
    max-width:none!important;
    min-width:0!important;
    margin:0!important;
    padding:15px 10px 34px!important;
  }

  html body .page{
    width:100%!important;
    min-width:0!important;
  }

  /* ---------- INTRO DASHBOARD ---------- */
  html body #dashboard>.intro,
  html body #dashboard>.intro.intro-with-gardu-live{
    display:block!important;
    width:100%!important;
    margin:0 0 15px!important;
  }

  html body #dashboard>.intro>div:first-child{
    width:100%!important;
  }

  html body #dashboard>.intro small{
    font-size:8px!important;
    letter-spacing:1.3px!important;
  }

  html body #dashboard>.intro h1{
    font-size:25px!important;
    line-height:1.08!important;
    margin:5px 0 6px!important;
  }

  html body #dashboard>.intro p{
    margin:0!important;
    font-size:12px!important;
    line-height:1.45!important;
  }

  /* ---------- 5 BUBBLE DASHBOARD ---------- */
  html body #dashboard .stats{
    display:grid!important;
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
    width:100%!important;
    max-width:none!important;
    gap:8px!important;
    margin:0 0 10px!important;
  }

  /* TOTAL PEKERJAAN menjadi satu baris penuh */
  html body #dashboard .stats>.stat:first-child{
    grid-column:1/-1!important;
  }

  html body #dashboard .stat{
    min-width:0!important;
    min-height:68px!important;
    padding:9px 10px!important;
    grid-template-columns:31px minmax(0,1fr)!important;
    gap:8px!important;
    border-radius:16px!important;
  }

  html body #dashboard .stat>i{
    width:31px!important;
    height:31px!important;
    border-radius:9px!important;
  }

  html body #dashboard .stat>i svg{
    width:18px!important;
    height:18px!important;
  }

  html body #dashboard .stat span{
    font-size:7.8px!important;
    line-height:1.15!important;
    letter-spacing:.45px!important;
    white-space:normal!important;
  }

  html body #dashboard .stat b{
    font-size:20px!important;
    line-height:1!important;
  }

  /* ---------- PODIUM + KEHADIRAN ---------- */
  html body #dashboard .grid{
    display:grid!important;
    grid-template-columns:minmax(0,1fr)!important;
    gap:10px!important;
    width:100%!important;
    margin-bottom:10px!important;
  }

  html body #dashboard .chart,
  html body #dashboard .present{
    width:100%!important;
    min-width:0!important;
    padding:14px!important;
    border-radius:20px!important;
  }

  html body #dashboard .chart{
    overflow:hidden!important;
  }

  html body #dashboard .present{
    overflow:visible!important;
  }

  html body #dashboard .head h3{
    font-size:14px!important;
  }

  html body .chartbody.podium-image-layout{
    min-width:0!important;
    padding:42px 0 6px!important;
  }

  html body #donut.podium-image-stage{
    width:min(100%,340px)!important;
    height:276px!important;
    max-width:100%!important;
    margin:0 auto!important;
  }

  html body #donut .podium-art-stage{
    width:100%!important;
    height:100%!important;
  }

  html body #donut .podium-art-base{
    width:320px!important;
    max-width:96%!important;
    bottom:59px!important;
  }

  html body #donut .podium-art-person{
    width:96px!important;
  }

  html body #donut .podium-art-person.place-1{top:-29px!important}
  html body #donut .podium-art-person.place-2{top:15px!important}
  html body #donut .podium-art-person.place-3{top:25px!important}

  html body #donut .podium-art-name{
    width:102px!important;
    min-height:24px!important;
    font-size:9px!important;
    margin-bottom:4px!important;
  }

  html body #donut .podium-art-photo{
    width:47px!important;
    height:47px!important;
    font-size:12px!important;
  }

  html body #donut .podium-art-stats{
    width:100px!important;
    bottom:4px!important;
  }

  html body #donut .podium-art-score{
    font-size:9px!important;
  }

  html body #donut .podium-art-meta{
    font-size:7.5px!important;
    line-height:1.25!important;
    white-space:normal!important;
  }

  /* ranking */
  html body #dashboard .present h2{
    font-size:29px!important;
    margin:14px 0 7px!important;
  }

  html body #dashboard .present h2 small{
    font-size:9px!important;
  }

  html body #dashboard .rank-person,
  html body .present .rank-person{
    grid-template-columns:18px 31px minmax(0,1fr)!important;
    gap:7px!important;
    padding:8px 0!important;
  }

  html body #dashboard .rank-person .avatar{
    width:30px!important;
    height:30px!important;
  }

  html body #dashboard .rank-person-copy{
    min-width:0!important;
  }

  html body #dashboard .rank-person-copy strong{
    max-width:none!important;
    font-size:9px!important;
    white-space:nowrap!important;
    overflow:hidden!important;
    text-overflow:ellipsis!important;
  }

  html body #dashboard .rank-person-copy small{
    font-size:7px!important;
    line-height:1.25!important;
  }

  html body #dashboard .rank-score{
    grid-column:3!important;
    display:grid!important;
    grid-template-columns:minmax(0,1fr) auto!important;
    align-items:center!important;
    gap:8px!important;
    margin-top:1px!important;
  }

  html body #dashboard .rank-score b{
    font-size:10px!important;
  }

  /* ---------- GRAFIK KATEGORI ---------- */
  html body #categoryBars{
    width:100%!important;
    max-width:none!important;
    margin:12px 0 0!important;
    overflow-x:auto!important;
    -webkit-overflow-scrolling:touch;
  }

  html body #categoryBars .category-bar-chart-wrap{
    min-width:520px!important;
  }

  /* ---------- AKTIVITAS LAPANGAN ---------- */
  html body #dashboard .table{
    width:100%!important;
    min-width:0!important;
    border-radius:20px!important;
  }

  html body #dashboard .table>.head{
    padding:15px 14px 9px!important;
  }

  html body #dashboard .scroll{
    overflow-x:auto!important;
    -webkit-overflow-scrolling:touch;
  }

  html body #dashboard .recent-jobs-table{
    min-width:900px!important;
  }

  /* ---------- INPUT PEKERJAAN ---------- */
  html body #input .intro,
  html body #jobs .intro,
  html body #attendance .intro{
    display:block!important;
    margin-bottom:15px!important;
  }

  html body #input .intro h1,
  html body #jobs .intro h1,
  html body #attendance .intro h1{
    font-size:24px!important;
  }

  html body #input .form{
    width:100%!important;
    max-width:none!important;
    grid-template-columns:minmax(0,1fr)!important;
    gap:0!important;
    padding:15px!important;
    border-radius:20px!important;
  }

  html body #input .form .wide,
  html body #input .form footer{
    grid-column:1!important;
  }

  html body #input .form label{
    margin-top:14px!important;
  }

  html body #input .form footer{
    display:grid!important;
    grid-template-columns:1fr!important;
    gap:8px!important;
    padding-top:15px!important;
  }

  html body #input .form footer button{
    width:100%!important;
    margin:0!important;
  }

  /* ---------- FILTER PEKERJAAN ---------- */
  html body #jobs .filters{
    display:grid!important;
    grid-template-columns:minmax(0,1fr)!important;
    gap:9px!important;
    width:100%!important;
    padding:10px!important;
    border-radius:18px!important;
  }

  html body #jobs .filters #jobSearch{
    grid-column:1!important;
  }

  html body #jobs .filters input,
  html body #jobs .filters select{
    width:100%!important;
    height:48px!important;
    min-width:0!important;
    margin:0!important;
    border-radius:14px!important;
  }

  html body #jobs .table,
  html body #attendance .table{
    width:100%!important;
    min-width:0!important;
    border-radius:20px!important;
  }

  html body #jobs .scroll,
  html body #attendance .scroll{
    overflow-x:auto!important;
    -webkit-overflow-scrolling:touch;
  }

  html body #jobs table{
    min-width:850px!important;
  }

  html body #attendance table{
    min-width:720px!important;
  }

  /* ---------- KEHADIRAN ---------- */
  html body #attendance .stats{
    display:grid!important;
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
    gap:8px!important;
  }

  html body #attendance .stats>.stat:last-child{
    grid-column:1/-1!important;
  }

  html body #attendance .stat{
    min-width:0!important;
    padding:10px!important;
    border-radius:16px!important;
  }

  html body .attendance-search-wrap{
    width:100%!important;
    margin:0 0 10px!important;
  }

  html body .attendance-search-wrap input{
    height:48px!important;
    border-radius:14px!important;
  }

  /* ---------- MODAL / POPUP ---------- */
  html body .job-modal{
    padding:8px!important;
  }

  html body .job-panel{
    width:100%!important;
    max-width:100%!important;
    max-height:90dvh!important;
    overflow:auto!important;
    padding:16px!important;
    border-radius:20px!important;
  }

  html body .detail-grid{
    grid-template-columns:minmax(0,1fr)!important;
    gap:9px!important;
  }

  html body .detail-grid>.detail-wide{
    grid-column:1!important;
  }

  html body .detail-actions{
    display:grid!important;
    grid-template-columns:1fr!important;
    gap:8px!important;
  }

  html body .detail-actions button{
    width:100%!important;
  }

  html body .web-confirm-overlay{
    padding:12px!important;
  }

  html body .web-confirm-bubble{
    width:100%!important;
    max-width:390px!important;
    padding:18px!important;
    border-radius:18px!important;
  }

  /* Picker dropdown tidak keluar layar */
  html body .multi-menu,
  html body .category-menu{
    max-width:calc(100vw - 28px)!important;
  }

  /* ---------- TOAST ---------- */
  html body #toast{
    left:10px!important;
    right:10px!important;
    bottom:12px!important;
    width:auto!important;
    text-align:center!important;
    border-radius:13px!important;
  }
}

@media (max-width:390px){
  html body .content{
    padding-left:7px!important;
    padding-right:7px!important;
  }

  html body #dashboard .stats{
    gap:6px!important;
  }

  html body #dashboard .stat{
    padding:8px!important;
  }

  html body #dashboard .stat span{
    font-size:7.2px!important;
  }

  html body #dashboard .stat b{
    font-size:19px!important;
  }

  html body #donut.podium-image-stage{
    width:326px!important;
    max-width:100%!important;
  }

  html body #donut .podium-art-base{
    width:307px!important;
  }

  html body #donut .podium-art-name{
    width:95px!important;
    font-size:8.5px!important;
  }

  html body #donut .podium-art-stats{
    width:94px!important;
  }
}

/* =========================================================
   V65 - SIDEBAR KIRI TOGGLE KHUSUS HP
   ========================================================= */
@media (max-width:768px){
  html body .app{
    display:grid!important;
    grid-template-columns:1fr!important;
  }

  html body .app main{
    grid-column:1!important;
    width:100%!important;
    min-width:0!important;
  }

  /* Header harus tetap muncul di HP supaya tombol ☰ selalu tersedia. */
  html body[data-page="input"] main>header,
  html body[data-page="jobs"] main>header,
  html body[data-page="attendance"] main>header,
  html body main>header{
    display:grid!important;
    min-height:62px!important;
    height:62px!important;
    grid-template-columns:42px minmax(0,1fr)!important;
    align-items:center!important;
    gap:9px!important;
    padding:0 10px!important;
  }

  /* Di halaman selain dasbor tampilkan judul halaman; search dan tanggal disembunyikan. */
  html body main>header:not(.dashboard-head)>div{
    display:block!important;
    min-width:0!important;
  }
  html body main>header:not(.dashboard-head)>label,
  html body main>header time{
    display:none!important;
  }

  /* Pada dasbor, tombol ☰ + search tetap muat. */
  html body main>header.dashboard-head{
    grid-template-columns:42px minmax(0,1fr)!important;
  }
  html body main>header.dashboard-head>label{
    display:block!important;
    grid-column:2!important;
    min-width:0!important;
    width:100%!important;
  }
  html body main>header.dashboard-head>label input{
    width:100%!important;
    min-width:0!important;
    height:42px!important;
  }

  html body #menu{
    display:grid!important;
    place-items:center!important;
    position:relative!important;
    z-index:26010!important;
    width:42px!important;
    min-width:42px!important;
    height:42px!important;
    margin:0!important;
    padding:0!important;
    border:1px solid #dfe5ed!important;
    border-radius:10px!important;
    background:#fff!important;
    color:#17233b!important;
    font-size:22px!important;
    line-height:1!important;
    cursor:pointer!important;
    pointer-events:auto!important;
  }

  html body .app .sidebar{
    display:flex!important;
    position:fixed!important;
    inset:0 auto 0 0!important;
    width:min(82vw,306px)!important;
    max-width:306px!important;
    height:100dvh!important;
    z-index:26000!important;
    transform:translate3d(-105%,0,0)!important;
    visibility:visible!important;
    opacity:1!important;
    pointer-events:auto!important;
    transition:transform .24s cubic-bezier(.2,.75,.25,1)!important;
    box-shadow:14px 0 38px rgba(7,22,47,.24)!important;
    overflow-y:auto!important;
    overscroll-behavior:contain!important;
  }

  html body .app .sidebar.open{
    transform:translate3d(0,0,0)!important;
  }

  html body .mobile-sidebar-backdrop{
    position:fixed!important;
    inset:0!important;
    z-index:25990!important;
    display:block!important;
    background:rgba(7,22,47,.45)!important;
    backdrop-filter:blur(2px)!important;
    -webkit-backdrop-filter:blur(2px)!important;
    opacity:0!important;
    visibility:hidden!important;
    pointer-events:none!important;
    transition:opacity .2s ease,visibility .2s ease!important;
  }

  html body .mobile-sidebar-backdrop.show{
    opacity:1!important;
    visibility:visible!important;
    pointer-events:auto!important;
  }

  html body.mobile-nav-open{overflow:hidden!important;}

  html body .mobile-sidebar-close{
    position:absolute!important;
    top:12px!important;
    right:12px!important;
    z-index:5!important;
    display:grid!important;
    place-items:center!important;
    width:36px!important;
    height:36px!important;
    padding:0!important;
    border:1px solid rgba(255,255,255,.16)!important;
    border-radius:10px!important;
    background:rgba(255,255,255,.08)!important;
    color:#fff!important;
    font-size:25px!important;
    line-height:1!important;
  }

  /* Menu Dasbor harus tetap terlihat di sidebar HP. */
  html body .sidebar [data-page="dashboard"],
  html body .sidebar [data-go="dashboard"]{
    display:block!important;
  }
}

@media (min-width:769px){
  .mobile-sidebar-close,
  .mobile-sidebar-backdrop{display:none!important;}
}


/* =========================================================
   V66 - FIX LOGIN / APP TIDAK BOLEH TAMPIL BERSAMAAN
   Penting: override mobile .app{display:grid!important}
   yang sebelumnya mengalahkan class .hide.
   ========================================================= */
html body #app.hide{
  display:none!important;
}

html body #login.hide{
  display:none!important;
}

/* Kondisi awal sebelum user berhasil login */
html body #app.app.hide{
  visibility:hidden!important;
  pointer-events:none!important;
}
