/* =========================================================
   GLOBAL FILTER
========================================================= */

.order-filter,
.topup-filter {
    margin-bottom: 24px;
    padding: 18px;

    background: #ffffff;

    border: 1px solid #e7e9fb;
    border-radius: 12px;

    box-shadow:
        0 4px 18px rgba(43, 49, 74, 0.05);
}


.order-filter .form-label,
.topup-filter .form-label {
    margin-bottom: 7px;

    font-size: 13px;
    font-weight: 600;
}


.order-filter .form-control,
.order-filter .form-select,
.order-filter .btn,
.topup-filter .form-control,
.topup-filter .form-select,
.topup-filter .btn {
    min-height: 42px;
}


/* =========================================================
   TABLE CARD
========================================================= */

.order-table-card,
.topup-table-card {
    overflow: hidden;

    background: #ffffff;

    border: 0;
    border-radius: 12px;

    box-shadow:
        0 4px 18px rgba(43, 49, 74, 0.06);
}


.order-table-card .card-header,
.topup-table-card .card-header {
    padding: 18px 20px;

    background: #ffffff;

    border-bottom: 1px solid #edf0f5;
}


.order-table-card .card-body,
.topup-table-card .card-body {
    padding: 18px;
}


/* =========================================================
   TABLE
========================================================= */

.data-table th,
.data-table td {
    vertical-align: middle;

    white-space: nowrap;
}


.table-responsive {
    width: 100%;

    overflow-x: auto;
    overflow-y: hidden;

    -webkit-overflow-scrolling: touch;
}


/* =========================================================
   SUCCESS BUTTON
========================================================= */

.btn-success {
    color: #ffffff;

    background: #10b981;
    border-color: #10b981;
}


.btn-success:hover {
    color: #ffffff;

    background: #059669;
    border-color: #059669;
}


.btn-success:focus,
.btn-success:active {
    color: #ffffff !important;

    background: #047857 !important;
    border-color: #047857 !important;

    box-shadow:
        0 0 0 0.2rem
        rgba(16, 185, 129, 0.25);
}


/* =========================================================
   STATUS BADGE
========================================================= */

.status-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-height: 24px;

    padding: 3px 14px;

    border-radius: 999px;

    font-size: 10px;
    font-weight: 600;

    line-height: 1.2;

    white-space: nowrap;
}


/* =========================
   PENDING
========================= */

.badge-pending {
    color: #b45309;

    background: #fef3c7;

    border: 1px solid #fde68a;
}


/* =========================
   APPROVED
========================= */

.badge-approved {
    color: #065f46;

    background: #d1fae5;

    border: 1px solid #6ee7b7;
}


/* =========================
   REJECTED
========================= */

.badge-rejected {
    color: #991b1b;

    background: #fee2e2;

    border: 1px solid #fca5a5;
}


/* =========================
   PENDING SMOOTH
========================= */

.badge-pending-smooth {
    color: #6d6b68;

    background: #cecece;

    border: 1px solid #e8e2c8;
}


/* =========================
   APPROVED SMOOTH
========================= */

.badge-approved-smooth {
    color: #166534;

    background: #f0fdf4;

    border: 1px solid #dcfce7;
}


/* =========================
   REJECTED SMOOTH
========================= */

.badge-rejected-smooth {
    color: #b91c1c;

    background: #fef2f2;

    border: 1px solid #fee2e2;
}


/* =========================
   ICE
========================= */

.badge-ice {
    color: #1d4ed8;

    background: #f0f9ff;

    border: 1px solid #dbeafe;
}


/* =========================================================
   ACTION BUTTONS
========================================================= */

.action-buttons {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;

    flex-wrap: nowrap;

    min-width: 195px;
}


.action-btn {
    min-width: 90px;
    height: 34px;

    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;

    padding: 0 12px;

    border-radius: 6px;

    font-size: 13px;
    font-weight: 600;

    white-space: nowrap;
}


.action-btn i {
    font-size: 15px;
    line-height: 1;
}


/* =========================================================
   PAGE HEADER
========================================================= */

.page-header {
    width: 100%;
}


.page-title {
    margin: 0;

    font-weight: 700;
}


/* =========================================================
   PLAYER USERS FIX
========================================================= */


/* =========================
   MAIN CONTENT
========================= */

.main-content {
    min-width: 0;
}


/* =========================
   PLAYER PAGE HEADER
========================= */

.page-header {
    width: 100%;
    max-width: 100%;
}


/* =========================
   PLAYER CARD
========================= */

.order-table-card {
    width: 100% !important;
    max-width: 100% !important;

    min-width: 0;

    overflow: hidden;
}


.order-table-card .card-header,
.order-table-card .card-body {
    width: 100%;
    max-width: 100%;

    min-width: 0;
}


/* =========================
   TABLE WRAPPER
========================= */

.order-table-card .table-responsive {
    display: block;

    width: 100%;
    max-width: 100%;

    min-width: 0;

    overflow-x: auto !important;
    overflow-y: hidden;

    -webkit-overflow-scrolling: touch;

    scrollbar-width: thin;
}


/* =========================
   PLAYER TABLE
========================= */

#playerTable {
    width: max-content !important;

    min-width: 1450px !important;

    margin-bottom: 0;
}


#playerTable th,
#playerTable td {
    white-space: nowrap;

    vertical-align: middle;
}


/* =========================
   DETAIL COLUMN
========================= */

#playerTable th:nth-child(4),
#playerTable td:nth-child(4) {
    min-width: 230px;
}


/* =========================
   ENROLL COLUMN
========================= */

#playerTable th:nth-child(7),
#playerTable td:nth-child(7) {
    min-width: 250px;
}


/* =========================
   USER COLUMN
========================= */

#playerTable th:nth-child(8),
#playerTable td:nth-child(8) {
    min-width: 250px;
}


/* =========================
   ACTION COLUMN
========================= */

#playerTable th:last-child,
#playerTable td:last-child {
    min-width: 120px;
}


/* =========================================================
   DATATABLES
========================================================= */

#playerTable_wrapper,
#playerTable_wrapper .row {
    width: 100% !important;
    max-width: 100% !important;

    min-width: 0;
}


#playerTable_wrapper .dataTables_length,
#playerTable_wrapper .dataTables_filter,
#playerTable_wrapper .dataTables_info,
#playerTable_wrapper .dataTables_paginate {
    max-width: 100%;
}


/* =========================================================
   TABLET / MOBILE
========================================================= */

@media (max-width: 991.98px) {

    /* =========================
       MAIN CONTENT
    ========================= */

    .main-content {
        width: 100% !important;
        max-width: 100%;

        min-width: 0;

        margin-left: 0 !important;

        overflow-x: hidden;
    }


    /* =========================
       CARD
    ========================= */

    .order-table-card {
        width: 100% !important;
        max-width: 100% !important;
    }


    /* =========================
       TABLE SCROLL
    ========================= */

    .order-table-card .table-responsive {
        width: 100%;

        overflow-x: auto !important;

        touch-action: pan-x pan-y;
    }


    /*
     * PENTING:
     * tabel tetap lebar.
     * HP hanya menjadi viewport.
     */

    #playerTable {
        width: max-content !important;

        min-width: 1450px !important;
    }


    /* =========================
       DATATABLE TOP
    ========================= */

    #playerTable_wrapper > .row:first-child {
        display: flex;
        flex-wrap: wrap;

        gap: 10px;
    }


    #playerTable_wrapper .dataTables_length,
    #playerTable_wrapper .dataTables_filter {
        width: 100%;

        text-align: left !important;
    }


    #playerTable_wrapper .dataTables_filter label {
        width: 100%;
    }


    #playerTable_wrapper .dataTables_filter input {
        width: 100% !important;

        max-width: 100%;

        margin-left: 0 !important;
        margin-top: 6px;
    }


    /* =========================
       DATATABLE BOTTOM
    ========================= */

    #playerTable_wrapper .dataTables_info,
    #playerTable_wrapper .dataTables_paginate {
        width: 100%;

        text-align: left !important;
    }

}


/* =========================================================
   SMALL MOBILE
========================================================= */

@media (max-width: 575.98px) {

    .order-table-card .card-header {
        padding: 12px;
    }


    .order-table-card .card-body {
        padding: 10px;
    }


    #playerTable {
        min-width: 1450px !important;
    }

}