/*
|--------------------------------------------------------------------------
| Sean B Shop
| Reusable Tables Component
|--------------------------------------------------------------------------
*/

/* ======================================================
   TABLE WRAPPER
====================================================== */

.table-responsive{

    width:100%;

    overflow-x:auto;

    -webkit-overflow-scrolling:touch;

    margin:1.5rem 0;

}



/* ======================================================
   BASE TABLE
====================================================== */

.table{

    width:100%;

    min-width:700px;

    border-collapse:collapse;

    background:#fff;

    border-radius:16px;

    overflow:hidden;

    box-shadow:0 6px 20px rgba(0,0,0,.06);

}



/* ======================================================
   TABLE HEAD
====================================================== */

.table thead{

    background:#0b1f3a;

    color:#fff;

}



.table thead th{

    padding:16px 18px;

    text-align:left;

    font-size:14px;

    font-weight:600;

    white-space:nowrap;

    letter-spacing:.3px;

}



/* ======================================================
   TABLE BODY
====================================================== */

.table tbody td{

    padding:16px 18px;

    border-bottom:1px solid #eef2f7;

    color:#444;

    font-size:14px;

    vertical-align:middle;

}



.table tbody tr{

    transition:.25s ease;

}



.table tbody tr:hover{

    background:#f8fbff;

}



.table tbody tr:last-child td{

    border-bottom:none;

}



/* ======================================================
   TABLE FOOTER
====================================================== */

.table tfoot{

    background:#f8f9fb;

}



.table tfoot td{

    padding:16px 18px;

    font-weight:600;

}



/* ======================================================
   ALIGNMENT
====================================================== */

.table .text-left{

    text-align:left;

}

.table .text-center{

    text-align:center;

}

.table .text-right{

    text-align:right;

}



/* ======================================================
   PRODUCT CELL
====================================================== */

.table-product{

    display:flex;

    align-items:center;

    gap:14px;

}



.table-product img{

    width:60px;

    height:60px;

    object-fit:cover;

    border-radius:10px;

    background:#f5f7fa;

    flex-shrink:0;

}



.table-product h4{

    margin:0;

    font-size:15px;

    color:#0b1f3a;

    font-weight:600;

}



.table-product p{

    margin:4px 0 0;

    font-size:13px;

    color:#777;

}



/* ======================================================
   PRICE
====================================================== */

.table-price{

    color:#e60000;

    font-weight:700;

    white-space:nowrap;

}



/* ======================================================
   STATUS BADGES
====================================================== */

.status{

    display:inline-flex;

    align-items:center;

    justify-content:center;

    padding:6px 12px;

    border-radius:999px;

    font-size:12px;

    font-weight:600;

}



.status-success{

    background:#e9f8ef;

    color:#0b8f43;

}



.status-warning{

    background:#fff7e6;

    color:#c87b00;

}



.status-danger{

    background:#fdecec;

    color:#d93025;

}



.status-info{

    background:#eaf4ff;

    color:#1565c0;

}



.status-dark{

    background:#eef2f7;

    color:#333;

}



/* ======================================================
   STOCK
====================================================== */

.stock-in{

    color:#0b8f43;

    font-weight:600;

}



.stock-low{

    color:#f39c12;

    font-weight:600;

}



.stock-out{

    color:#d93025;

    font-weight:600;

}



/* ======================================================
   ACTION BUTTONS
====================================================== */

.table-actions{

    display:flex;

    gap:8px;

    flex-wrap:wrap;

}



.table-btn{

    display:inline-flex;

    align-items:center;

    justify-content:center;

    gap:6px;

    padding:8px 12px;

    border:none;

    border-radius:8px;

    text-decoration:none;

    font-size:13px;

    font-weight:600;

    cursor:pointer;

    transition:.25s ease;

}



.table-btn-primary{

    background:#0b1f3a;

    color:#fff;

}



.table-btn-primary:hover{

    background:#14345f;

}



.table-btn-success{

    background:#198754;

    color:#fff;

}



.table-btn-success:hover{

    background:#157347;

}



.table-btn-warning{

    background:#f39c12;

    color:#fff;

}



.table-btn-warning:hover{

    background:#d68910;

}



.table-btn-danger{

    background:#dc3545;

    color:#fff;

}



.table-btn-danger:hover{

    background:#bb2d3b;

}



.table-btn-light{

    background:#f5f7fa;

    color:#333;

}



.table-btn-light:hover{

    background:#e8edf3;

}



/* ======================================================
   STRIPED TABLE
====================================================== */

.table-striped tbody tr:nth-child(even){

    background:#fafbfd;

}



/* ======================================================
   BORDERED TABLE
====================================================== */

.table-bordered{

    border:1px solid #e6eaf0;

}



.table-bordered th,

.table-bordered td{

    border:1px solid #e6eaf0;

}



/* ======================================================
   COMPACT TABLE
====================================================== */

.table-sm thead th,

.table-sm tbody td{

    padding:10px 12px;

    font-size:13px;

}



/* ======================================================
   MOBILE
====================================================== */

@media (max-width:768px){

.table{

    min-width:640px;

}

.table thead th,

.table tbody td{

    padding:12px;

    font-size:13px;

}

.table-product img{

    width:50px;

    height:50px;

}

.table-product h4{

    font-size:14px;

}

.table-actions{

    flex-direction:column;

}

.table-btn{

    width:100%;

}

}