/* ==========================================================================
   JADWAL SIDANG WIDGET — jadwal-sidang-widget.css
   ========================================================================== */

/* ── Widget Box ── */
.pnbyw-js-widget{
  width:100%;
  max-width:100%;
  margin:0 0 12px;
  padding:0;

  background:#fff;
  border:1px solid #ececec;
  border-radius:10px;
  overflow:hidden;

  box-shadow:0 2px 8px rgba(0,0,0,.05);
  box-sizing:border-box;
}

/* ── Header Utama ── */
.pnbyw-js-header{
  display:flex;
  align-items:center;
  gap:9px;
  min-height:0;
  margin:0 14px 12px;
  padding:14px 0 10px;
  border-bottom:1px solid #e2e7ec;
  background:transparent;
  color:#27303c;
  font-family:var(--pnbyw-font-main,system-ui,-apple-system,"Segoe UI",Roboto,Arial,sans-serif);
  font-size:15px;
  font-weight:700;
  line-height:1.35;
  letter-spacing:0;
  text-transform:none;
  box-sizing:border-box;
}

.pnbyw-js-header-icon{
  flex-shrink:0;
  color:#9a2109;
  font-size:15px;
  line-height:1;
}

.pnbyw-js-title{
  flex:1;
  min-width:0;
  margin:0;
  padding:0;
  color:#27303c;
  font-family:var(--pnbyw-font-main,system-ui,-apple-system,"Segoe UI",Roboto,Arial,sans-serif);
  font-size:15px;
  font-weight:700;
  line-height:1.35;
  letter-spacing:0;
  text-transform:none;
}

.pnbyw-js-date{
  flex-shrink:0;

  color:#687385;
  font-size:11px;
  font-weight:600;
  line-height:1.3;
  text-transform:none;
  opacity:.92;
}

/* ==========================================================================
   TAB LAMA — DISEMBUNYIKAN
   ========================================================================== */

.pnbyw-js-tabs,
.pnbyw-js-tab,
.pnbyw-js-panel{
  display:none !important;
}


/* ==========================================================================
   GRID 2 KOLOM PERDATA & PIDANA
   ========================================================================== */

.pnbyw-js-sidang-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:16px;
  padding:16px;
  background:#fff;
  box-sizing:border-box;
}

.pnbyw-js-sidang-col{
  background:#fff;
  border:1px solid #ece7e2;
  border-radius:12px;
  overflow:hidden;
  box-shadow:0 2px 10px rgba(0,0,0,.04);
  box-sizing:border-box;
}

/* Header Kolom */
.pnbyw-js-sidang-col-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;

  min-height:42px;
  padding:10px 14px;

  background:#f8f3f1;
  border-bottom:1px solid #ece7e2;

  box-sizing:border-box;
}

.pnbyw-js-sidang-col-head span{
  color:#9a2109;
  font-size:13px;
  font-weight:800;
  line-height:1.3;
  text-transform:uppercase;
  letter-spacing:.25px;
}

.pnbyw-js-sidang-col-head strong{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  flex-shrink:0;

  min-width:26px;
  height:26px;
  padding:0 8px;

  background:#9a2109;
  color:#fff;

  border-radius:999px;

  font-size:12px;
  font-weight:800;
  line-height:1;
}

.pnbyw-js-sidang-col-pidana .pnbyw-js-sidang-col-head strong{
  background:#374151;
}


/* ==========================================================================
   MARQUEE JADWAL SIDANG
   ========================================================================== */

.pnbyw-js-marquee{
  position:relative;
  height:260px;
  overflow:hidden;
  background:#fff;
}

.pnbyw-js-marquee-inner{
  display:flex;
  flex-direction:column;
  animation:pnbywSidangMarquee 35s linear infinite;
}

.pnbyw-js-marquee:hover .pnbyw-js-marquee-inner{
  animation-play-state:paused;
}

.pnbyw-js-marquee-item{
  padding:10px 12px;
  background:#fff;
  border-bottom:1px dashed #ece7e2;
  box-sizing:border-box;
}

.pnbyw-js-marquee-top{
  display:flex;
  align-items:flex-start;
  gap:8px;
}

.pnbyw-js-no{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  flex-shrink:0;

  width:22px;
  height:22px;

  background:#f8ece7;
  color:#9a2109;

  border-radius:50%;

  font-size:11px;
  font-weight:800;
  line-height:1;
}

.pnbyw-js-perkara{
  flex:1;
  min-width:0;

  color:#111827;
  font-size:12.5px;
  font-weight:700;
  line-height:1.35;
}

.pnbyw-js-meta{
  display:flex;
  flex-wrap:wrap;
  gap:8px;

  margin:5px 0 3px 30px;

  color:#6b7280;
  font-size:11.5px;
  line-height:1.35;
}

.pnbyw-js-agenda{
  margin-left:30px;

  color:#374151;
  font-size:12px;
  line-height:1.45;
}

@keyframes pnbywSidangMarquee{
  0%{
    transform:translateY(0);
  }

  100%{
    transform:translateY(-50%);
  }
}


/* ==========================================================================
   TABLE FALLBACK / KOMPATIBILITAS
   ========================================================================== */

.pnbyw-js-table-wrap{
  width:100%;
  overflow:auto;
  border:1px solid #eee;
  border-radius:8px;
}

.pnbyw-js-sidang-col .pnbyw-js-table-wrap{
  margin:0;
  border:none;
  border-radius:0;
}

.pnbyw-js-table{
  width:100%;
  min-width:760px;
  border-collapse:collapse;
  background:#fff;
}

.pnbyw-js-sidang-col .pnbyw-js-table{
  min-width:100%;
}

.pnbyw-js-table th{
  padding:10px 12px;
  background:#f8f3f1;
  border-bottom:1px solid #eadbd7;

  color:#7f1d1d;
  font-size:12px;
  font-weight:800;
  line-height:1.35;
  text-align:left;
  text-transform:uppercase;
  letter-spacing:.2px;
}

.pnbyw-js-table td{
  padding:10px 12px;
  border-bottom:1px solid #f0f0f0;

  color:#374151;
  font-size:13px;
  line-height:1.45;
  vertical-align:top;
}

.pnbyw-js-table tr:last-child td{
  border-bottom:none;
}

.pnbyw-td-no{
  width:48px;
  color:#9a2109;
  font-weight:800;
  text-align:center;
}

.pnbyw-td-perkara{
  color:#111827;
  font-weight:700;
}

.pnbyw-td-jam,
.pnbyw-td-ruang{
  white-space:nowrap;
}


/* ==========================================================================
   EMPTY / NOTICE / FOOTER
   ========================================================================== */

.pnbyw-js-empty-row,
.pnbyw-js-notice{
  margin:14px;
  padding:14px;

  background:#fff7ed;
  border:1px solid #fed7aa;
  border-radius:8px;

  color:#7c2d12;
  font-size:13px;
  line-height:1.6;
}

.pnbyw-js-sidang-col .pnbyw-js-empty-row{
  margin:14px;
}

.pnbyw-js-notice pre{
  margin:8px 0 0;
  padding:10px;

  background:#fff;
  border:1px solid #f3d6c4;
  border-radius:6px;

  font-size:12px;
  white-space:pre-wrap;
}

.pnbyw-js-footer,
.pnbyw-js-cache-note{
  padding:0 16px 14px;
  color:#777;
  font-size:12px;
  line-height:1.4;
}


/* ==========================================================================
   RESPONSIVE
   ========================================================================== */

@media(max-width:768px){
  .pnbyw-js-header{
    align-items:center;
    flex-wrap:wrap;
    min-height:0;
    margin:0 12px 10px;
    padding:12px 0 9px;
    font-size:15px;
  }

  .pnbyw-js-title{
    font-size:15px;
  }

  .pnbyw-js-date{
    width:auto;
    margin-left:auto;
    font-size:11px;
  }

  .pnbyw-js-sidang-grid{
    grid-template-columns:1fr;
    gap:14px;
    padding:14px;
  }

  .pnbyw-js-marquee{
    height:240px;
  }

  .pnbyw-js-table{
    min-width:680px;
  }
}
.wp-block-pnbyw-jadwal-sidang{min-width:0}
