/* Layout 2 kolom */
.dual-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    /* dua kolom seimbang */
    gap: 20px;
    margin-top: 20px;
}

/* Panel masing-masing */
.panel {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    padding: 10px;
}

/* Kontainer tabel */
.table-container {
    width: 100%;
}

.table-container.scrollable {
    height: calc(100vh - 220px);
    /* sesuaikan tinggi layar */
    overflow-y: hidden;
    padding-right: 10px;
}

/* Tabel umum */
.data-table {
    width: 100%;
    border-collapse: collapse;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    overflow: hidden;
}

.data-table th,
.data-table td {
    padding: 8px 12px;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    font-size: 14px;
}

.data-table th {
    background: rgba(0, 128, 255, 0.3);
    font-weight: bold;
    font-size: 15px;
}

.data-table tr:hover {
    background: rgba(0, 128, 255, 0.15);
}

/* Judul panel */
.panel h2 {
    text-align: center;
    font-size: 20px;
    color: #fff;
    margin-bottom: 10px;
}

/* Header tabel sticky */
.table-container {
    border: 1px solid #444;
}

.table-container table {
    width: 100%;
    border-collapse: collapse;
}

.table-container thead th {
    position: sticky;
    top: 0;
    background: #222;
    color: #fff;
    z-index: 2;
}

/* Kontainer body tabel dengan scroll */
.tbody-container {
    max-height: 400px;
    /* sesuaikan tinggi */
    overflow-y: auto;
}

/* Warna merah untuk jumlah kosong */
.data-table td.kosong {
    color: red;
    font-weight: bold;
}