/* =========================
   FINAL RESPONSIVE LUX TABLE
========================= */

html,
body {
    overflow-x: hidden;
}

.dash-page-shell,
.dash-page-shell > section,
.tblbox,
.tblwrap {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
}

.tblbox {
    margin-top: 24px;
    padding: 24px 20px;
    border-radius: 24px;
    background:
        radial-gradient(circle at top right, rgba(110,168,255,.14), transparent 28%),
        linear-gradient(180deg, rgba(24,32,52,.96), rgba(17,24,41,.97));
    border: 1px solid rgba(255,255,255,.08);
    box-shadow: 0 18px 45px rgba(0,0,0,.22);
    overflow: hidden;
}

.tblbox-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
    margin-bottom: 18px;
}

.tblbox-kicker {
    display: inline-block;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: #8fa4c7;
    margin-bottom: 8px;
}

.tblbox-title {
    margin: 0;
    font-size: 24px;
    line-height: 1.2;
    color: #f8fbff;
    font-weight: 800;
}

.tblbox-link {
    color: #9fb0d0;
    text-decoration: none;
    font-size: 13px;
    font-weight: 700;
    transition: .2s ease;
}

.tblbox-link:hover {
    color: #fff;
}

/* WRAPPER SCROLL YANG BENAR */
.tblwrap {
    position: relative;
    overflow: hidden;
    border-radius: 18px;
}

.tblscroll {
    display: block;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-x pan-y;
    scrollbar-width: thin;
    scrollbar-color: rgba(255,255,255,.30) rgba(255,255,255,.08);
    padding-bottom: 8px;
}

.tblscroll::-webkit-scrollbar {
    height: 8px;
}

.tblscroll::-webkit-scrollbar-track {
    background: rgba(255,255,255,.08);
    border-radius: 999px;
}

.tblscroll::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,.32);
    border-radius: 999px;
}

/* TABLE */
.tbl {
    border-collapse: separate;
    border-spacing: 0;
    width: max-content;
    max-width: none;
    table-layout: auto;
}

.tbl--orders {
    min-width: 1040px;
}

.tbl--downloads {
    min-width: 860px;
}

.tbl thead th {
    text-align: left;
    padding: 16px 14px;
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: #9fb0d0;
    background: rgba(255,255,255,.03);
    border-bottom: 1px solid rgba(255,255,255,.10);
    white-space: nowrap;
}

.tbl thead th:first-child {
    border-top-left-radius: 16px;
}

.tbl thead th:last-child {
    border-top-right-radius: 16px;
}

.tbl tbody td {
    padding: 16px 14px;
    font-size: 14px;
    color: #e5ecff;
    border-bottom: 1px solid rgba(255,255,255,.07);
    vertical-align: middle;
    white-space: nowrap;
    background: transparent;
}

.tbl tbody tr:hover td {
    background: rgba(255,255,255,.025);
}

.tbl tbody tr:last-child td {
    border-bottom: 0;
}

.tbl tbody tr:last-child td:first-child {
    border-bottom-left-radius: 16px;
}

.tbl tbody tr:last-child td:last-child {
    border-bottom-right-radius: 16px;
}

.tbl strong {
    color: #fff;
    font-weight: 800;
}

.tblhint {
    margin-top: 8px;
    font-size: 11px;
    color: #8ea0c1;
    text-align: right;
}

.tblbadge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    padding: 0 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
    line-height: 1;
    white-space: nowrap;
    border: 1px solid transparent;
}

.tblbadge-pending {
    background: rgba(255,193,7,.14);
    color: #ffd76a;
    border-color: rgba(255,193,7,.24);
}

.tblbadge-success {
    background: rgba(34,197,94,.14);
    color: #86efac;
    border-color: rgba(34,197,94,.24);
}

.tblbadge-process {
    background: rgba(59,130,246,.14);
    color: #93c5fd;
    border-color: rgba(59,130,246,.24);
}

.tblbadge-danger {
    background: rgba(239,68,68,.14);
    color: #fca5a5;
    border-color: rgba(239,68,68,.24);
}

.tblactions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: nowrap;
}

.tblbtn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 36px;
    padding: 0 12px;
    border-radius: 10px;
    font-size: 12px;
    font-weight: 800;
    white-space: nowrap;
    text-decoration: none;
    color: #fff;
    background: linear-gradient(135deg,#6ea8ff,#4f7cff);
    box-shadow: 0 10px 24px rgba(79,124,255,.22);
    transition: .2s ease;
}

.tblbtn:hover {
    transform: translateY(-1px);
    box-shadow: 0 14px 28px rgba(79,124,255,.30);
}

.tblproduct-title {
    display: block;
    font-weight: 800;
    color: #fff;
    line-height: 1.45;
    white-space: normal;
}

.tblproduct-sub {
    display: block;
    margin-top: 4px;
    font-size: 12px;
    color: #92a2c2;
    line-height: 1.55;
    white-space: normal;
}

.tblempty {
    padding: 28px 8px;
    text-align: center;
    color: #9fb0d0;
    font-size: 14px;
    line-height: 1.8;
}

@media (max-width: 768px) {
    .tblbox {
        padding: 18px 14px;
        border-radius: 20px;
    }

    .tblbox-title {
        font-size: 20px;
    }

    .tbl--orders {
        min-width: 980px;
    }

    .tbl--downloads {
        min-width: 820px;
    }

    .tbl thead th,
    .tbl tbody td {
        padding: 13px 10px;
        font-size: 12px;
    }

    .tblbadge {
        min-height: 30px;
        padding: 0 10px;
        font-size: 11px;
    }

    .tblbtn {
        min-height: 32px;
        padding: 0 10px;
        font-size: 11px;
    }
}
/* ===== RAPIIKAN TABEL AGAR TIDAK MEPET ===== */

.tblbox {
    margin-top: 0 !important;
}

.tblwrap {
    margin-top: 10px;
}

.tblscroll {
    border-radius: 16px;
}

.tbl thead th:first-child,
.tbl tbody td:first-child {
    padding-left: 18px;
}

.tbl thead th:last-child,
.tbl tbody td:last-child {
    padding-right: 18px;
}

.tblhint {
    padding-right: 4px;
}

@media (max-width: 768px) {
    .tbl thead th:first-child,
    .tbl tbody td:first-child {
        padding-left: 14px;
    }

    .tbl thead th:last-child,
    .tbl tbody td:last-child {
        padding-right: 14px;
    }
}