.dpk-wrapper {
    width: 100%;
    margin: 20px 0;
    font-family: inherit;
}

.dpk-header .dpk-title {
    margin: 0 0 10px;
    font-size: 1.3em;
}

.dpk-toolbar {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.dpk-toolbar label {
    font-weight: 600;
}

.dpk-toolbar select.dpk-semester {
    padding: 4px 8px;
}

.dpk-toolbar .dpk-refresh {
    cursor: pointer;
    padding: 6px 16px;
    background: #1976d2;
    color: #fff;
    border: none;
    border-radius: 4px;
}

.dpk-toolbar .dpk-refresh:hover {
    background: #125ea3;
}

.dpk-loading {
    padding: 16px;
    font-style: italic;
    color: #555;
}

.dpk-error {
    padding: 14px 16px;
    background: #fdecea;
    border: 1px solid #f5c2c0;
    color: #842029;
    border-radius: 4px;
    margin: 10px 0;
}

.dpk-table-scroll {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
}

.dpk-table {
    width: 100%;
    min-width: 600px;
    border-collapse: collapse;
}

.dpk-table th {
    background: #1976d2;
    color: #fff;
    white-space: nowrap;
    padding: 8px 10px;
    position: sticky;
    top: 0;
}

.dpk-table td {
    white-space: nowrap;
    padding: 6px 10px;
}

.dpk-table td.dpk-col-total,
.dpk-table th.dpk-col-total {
    font-weight: 700;
    background: #f5f9fd;
}

.dataTables_wrapper {
    margin-top: 15px;
    width: 100%;
}

.dataTables_wrapper .dataTables_scroll,
.dataTables_wrapper .dataTables_scrollBody {
    overflow-x: auto;
}
