/* ── LAPORAN: LAYOUT ── */
.lap-layout { display: flex; height: 100%; overflow: hidden; position: relative; }

/* ── LIST PANEL ── */
.lap-list-panel {
  width: 300px; flex-shrink: 0;
  display: flex; flex-direction: column;
  border-right: 1px solid var(--border-card);
  height: 100%; background: var(--bg-page);
}
.lap-list-header { padding: 20px 16px 12px; flex-shrink: 0; }
.lap-list-title { font-size: 15px; font-weight: 700; color: var(--text-primary); }

.lap-list-scroll {
  flex: 1; overflow-y: auto; overflow-x: hidden;
  scrollbar-width: none; padding: 4px 16px 16px;
  display: flex; flex-direction: column; gap: 8px;
}
.lap-list-scroll::-webkit-scrollbar { display: none; }

.lap-item {
  display: flex; align-items: center; gap: 12px;
  padding: 13px 14px;
  background: var(--bg-card); border: 1px solid var(--border-card);
  border-radius: 14px; cursor: pointer;
  transition: all var(--transition-fast);
}
.lap-item:hover { box-shadow: 0 2px 10px var(--shadow-sm); transform: translateY(-1px); }
.lap-item.active { border-color: var(--brand-mid); background: var(--brand-pale); }
.lap-item-icon {
  width: 38px; height: 38px; flex-shrink: 0;
  border-radius: 10px; background: var(--brand-pale); color: var(--brand-primary);
  display: flex; align-items: center; justify-content: center; font-size: 14px;
}
.lap-item.active .lap-item-icon { background: var(--brand-primary); color: #fff; }
.lap-item-judul { font-size: 13px; font-weight: 600; color: var(--text-primary); flex: 1; }
.lap-item-arrow { font-size: 11px; color: var(--text-muted); flex-shrink: 0; transition: transform var(--transition-fast); }
.lap-item.expanded .lap-item-arrow { transform: rotate(180deg); }

.lap-group { display: flex; flex-direction: column; }

.lap-sublist {
  display: flex; flex-direction: column; gap: 4px;
  margin-top: 6px; padding-left: 14px;
}
.lap-sub-item {
  display: flex; align-items: center; justify-content: space-between;
  gap: 10px; padding: 10px 12px;
  background: var(--bg-page); border: 1px solid var(--border-card);
  border-radius: 10px; cursor: pointer; font-size: 12.5px; color: var(--text-primary);
  transition: all var(--transition-fast);
}
.lap-sub-item:hover { background: var(--bg-hover); }
.lap-sub-item.active { border-color: var(--brand-mid); background: var(--brand-pale); color: var(--brand-primary); font-weight: 600; }
.lap-sub-arrow { font-size: 10px; color: var(--text-muted); flex-shrink: 0; }
.lap-sub-loading { font-size: 12px; color: var(--text-muted); padding: 10px 12px 10px 26px; }

/* ── DETAIL WRAPPER ── */
.lap-detail-wrapper {
  flex:1;
  padding:12px;
  background:var(--bg-card);
  border-left:1px solid var(--border-card);
  overflow:hidden;
}
.lap-detail-panel {
  display:flex;
  flex-direction:column;
  height:100%;
  overflow:hidden;
  background:var(--bg-page);
  border-radius:16px;
}

/* ── EMPTY STATE ── */
.lap-detail-empty {
  flex: 1; display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 12px; padding: 40px;
}
.lap-empty-icon {
  width: 72px; height: 72px;
  background: linear-gradient(135deg, var(--brand-pale), #f5e0c8);
  border-radius: 22px;
  display: flex; align-items: center; justify-content: center;
  font-size: 30px; color: var(--brand-mid);
}
.lap-empty-title { font-size: 15px; font-weight: 700; color: var(--text-primary); }
.lap-empty-sub { font-size: 12.5px; color: var(--text-muted); text-align: center; max-width: 320px; }

/* ── DETAIL CONTENT ── */
.lap-detail-content { display: flex; flex-direction: column; height: 100%; overflow: hidden; }
.lap-detail-header {
  background: linear-gradient(135deg, var(--brand-dark) 0%, var(--brand-primary) 70%, var(--brand-mid) 100%);
  padding: 18px 20px; flex-shrink: 0;
  border-bottom: 1px solid var(--border-card);
}
.lap-detail-title { font-size: 15px; font-weight: 700; color: var(--text-white); }

/* ── TABS ── */
.lap-tabs {
  display: flex; gap: 4px;
  padding: 0 20px;
  border-bottom: 1px solid var(--border-card);
  flex-shrink: 0;
  overflow-x: auto; scrollbar-width: none;
}
.lap-tabs::-webkit-scrollbar { display: none; }
.lap-tab {
  padding: 11px 16px;
  border: none; background: none; cursor: pointer;
  font-size: 12.5px; font-weight: 600; color: var(--text-muted);
  font-family: 'Poppins', sans-serif;
  border-bottom: 2px solid transparent;
  white-space: nowrap;
  transition: color var(--transition-fast);
}
.lap-tab:hover { color: var(--text-primary); }
.lap-tab.active { color: var(--brand-primary); border-bottom-color: var(--brand-primary); }

.lap-detail-body {
  flex: 1; overflow-y: auto; padding: 20px; scrollbar-width: none;
}
.lap-detail-body::-webkit-scrollbar { display: none; }

.lap-body-empty {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 12px; padding: 60px 20px;
  background: var(--bg-card); border: 1px dashed var(--border-card);
  border-radius: 16px;
}

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  .lap-list-panel { width: 100%; border-right: none; }
  .lap-detail-wrapper {
    position: absolute; inset: 0; z-index: 10;
    padding: 0;
    transform: translateX(100%);
    transition: transform var(--transition-slow);
    background: var(--bg-page);
  }
  .lap-detail-wrapper.show { transform: translateX(0); }
  .lap-detail-panel { height: 100%; border-radius: 0; }
}