/* =========================================
   table.css
========================================= */

/* ==========================
    Table
========================== */

table{

    width:100%;

    border-collapse:collapse;

    background:#ffffff;

}

/* ==========================
    Header
========================== */

thead{

    background:#f8fafc;

}

thead tr{

    border-bottom:

        2px solid #e5e7eb;

}

thead th{

    padding:

        16px 18px;

    text-align:left;

    font-size:14px;

    font-weight:600;

    color:#475569;

    white-space:nowrap;

    user-select:none;
}

/* ==========================
    Body
========================== */

tbody tr{

    border-bottom:

        1px solid #edf2f7;

    transition:.15s;

}

tbody tr:hover{

    background:#f8fbff;

}

tbody td{

    padding:

        16px 18px;

    font-size:14px;

    color:#1f2937;

    vertical-align:middle;

}

/* ==========================
    Zebra
========================== */

tbody tr:nth-child(even){

    background:#fcfcfd;

}

tbody tr:nth-child(even):hover{

    background:#f8fbff;

}

/* ==========================
    Align
========================== */

td.center,

th.center{

    text-align:center;

}

td.right,

th.right{

    text-align:right;

}

/* ==========================
    Order Id
========================== */

.order-id{

    font-family:

        Consolas,

        monospace;

    font-size:13px;

    color:#2563eb;

}

/* ==========================
    User Id
========================== */

.user-id{

    font-family:

        Consolas,

        monospace;

    color:#374151;

}

/* ==========================
    Money
========================== */

.money{

    font-weight:600;

    color:#059669;

}

/* ==========================
    Status
========================== */

.status-cell{

    white-space:nowrap;

}

/* ==========================
    Action
========================== */

.action{

    display:flex;

    gap:8px;

    flex-wrap:wrap;

}

/* ==========================
    Small Button
========================== */

.table-btn{

    border:none;

    background:#2563eb;

    color:white;

    padding:

        6px 12px;

    border-radius:6px;

    cursor:pointer;

    font-size:12px;

    transition:.15s;

}

.table-btn:hover{

    background:#1d4ed8;

}

.table-btn.red{

    background:#dc2626;

}

.table-btn.red:hover{

    background:#b91c1c;

}

.table-btn.gray{

    background:#64748b;

}

.table-btn.gray:hover{

    background:#475569;

}

/* ==========================
    Empty
========================== */

.table-empty{

    padding:40px;

    text-align:center;

    color:#94a3b8;

    font-size:15px;

}

/* ==========================
    Loading
========================== */

.table-loading{

    padding:40px;

    text-align:center;

    color:#94a3b8;

}

/* ==========================
    Pagination
========================== */

.table-footer{

    display:flex;

    justify-content:space-between;

    align-items:center;

    margin-top:20px;

}

.table-info{

    color:#64748b;

    font-size:14px;

}

.pagination{

    display:flex;

    gap:8px;

}

.page-btn{

    width:36px;

    height:36px;

    border:none;

    border-radius:8px;

    background:white;

    border:1px solid #dbe3ec;

    cursor:pointer;

    transition:.15s;

}

.page-btn:hover{

    background:#eff6ff;

}

.page-btn.active{

    background:#2563eb;

    color:white;

    border-color:#2563eb;

}

/* ==========================
    Search
========================== */

.table-toolbar{

    display:flex;

    justify-content:space-between;

    align-items:center;

    margin-bottom:20px;

}

.table-search{

    width:260px;

    height:40px;

    border:1px solid #dbe3ec;

    border-radius:8px;

    padding:0 14px;

    outline:none;

    transition:.15s;

}

.table-search:focus{

    border-color:#2563eb;

}

/* ==========================
    Responsive
========================== */

.table-responsive{

    overflow-x:auto;

}

@media (max-width:900px){

    table{

        min-width:900px;

    }

}