/*======================================
EIVOX TABLES CSS
Version: 1.0
======================================*/


/*======================================
TABLE WRAPPER
======================================*/

.table-responsive{

    width:100%;

    overflow-x:auto;

    border-radius:var(--radius-lg);

    border:1px solid var(--border);

    background:var(--card);

}


/*======================================
TABLE
======================================*/

.table{

    width:100%;

    border-collapse:collapse;

    min-width:800px;

}

.table th,
.table td{

    padding:16px 18px;

    text-align:left;

    border-bottom:1px solid var(--border);

    vertical-align:middle;

}

.table thead{

    background:var(--surface);

}

.table th{

    color:var(--text);

    font-size:var(--font-sm);

    font-weight:var(--weight-bold);

    white-space:nowrap;

}

.table td{

    color:var(--text-light);

}

.table tbody tr{

    transition:var(--transition);

}

.table tbody tr:hover{

    background:rgba(255,255,255,.03);

}


/*======================================
SORTABLE HEADER
======================================*/

.table-sort{

    display:inline-flex;

    align-items:center;

    gap:8px;

    cursor:pointer;

}

.table-sort i,
.table-sort svg{

    width:14px;

    height:14px;

}


/*======================================
CHECKBOX
======================================*/

.table-check{

    width:18px;

    height:18px;

    cursor:pointer;

}


/*======================================
AVATAR
======================================*/

.table-avatar{

    display:flex;

    align-items:center;

    gap:12px;

}

.table-avatar img{

    width:42px;

    height:42px;

    border-radius:50%;

    object-fit:cover;

}

.table-avatar span{

    font-weight:var(--weight-semibold);

    color:var(--text);

}


/*======================================
STATUS BADGES
======================================*/

.status{

    display:inline-flex;

    align-items:center;

    justify-content:center;

    padding:6px 14px;

    border-radius:999px;

    font-size:12px;

    font-weight:600;

}

.status-success{

    background:rgba(34,197,94,.15);

    color:var(--success);

}

.status-danger{

    background:rgba(239,68,68,.15);

    color:var(--danger);

}

.status-warning{

    background:rgba(245,158,11,.15);

    color:var(--warning);

}

.status-info{

    background:rgba(59,130,246,.15);

    color:var(--primary);

}


/*======================================
ACTION BUTTONS
======================================*/

.table-actions{

    display:flex;

    align-items:center;

    gap:10px;

}

.table-btn{

    width:38px;

    height:38px;

    display:flex;

    align-items:center;

    justify-content:center;

    border-radius:var(--radius);

    background:var(--surface);

    color:var(--text);

    transition:var(--transition);

}

.table-btn:hover{

    background:var(--primary);

    color:#fff;

}

.table-btn.edit:hover{

    background:var(--warning);

}

.table-btn.delete:hover{

    background:var(--danger);

}

.table-btn.view:hover{

    background:var(--success);

}


/*======================================
SEARCH BAR
======================================*/

.table-toolbar{

    display:flex;

    justify-content:space-between;

    align-items:center;

    gap:20px;

    margin-bottom:20px;

    flex-wrap:wrap;

}

.table-search{

    position:relative;

    width:320px;

    max-width:100%;

}

.table-search input{

    width:100%;

    padding-left:45px;

}

.table-search i,
.table-search svg{

    position:absolute;

    left:16px;

    top:50%;

    transform:translateY(-50%);

    color:var(--text-muted);

}


/*======================================
PAGINATION
======================================*/

.table-pagination{

    display:flex;

    justify-content:space-between;

    align-items:center;

    gap:20px;

    margin-top:25px;

    flex-wrap:wrap;

}

.table-pages{

    display:flex;

    gap:10px;

}

.table-pages a{

    width:40px;

    height:40px;

    display:flex;

    align-items:center;

    justify-content:center;

    border-radius:var(--radius);

    background:var(--surface);

    color:var(--text);

    transition:var(--transition);

}

.table-pages a:hover,
.table-pages a.active{

    background:var(--primary);

    color:#fff;

}


/*======================================
EMPTY STATE
======================================*/

.table-empty{

    padding:60px 20px;

    text-align:center;

    color:var(--text-muted);

}

.table-empty i,
.table-empty svg{

    width:70px;

    height:70px;

    margin-bottom:20px;

    color:var(--border);

}


/*======================================
RESPONSIVE
======================================*/

@media(max-width:767px){

    .table-toolbar{

        flex-direction:column;

        align-items:stretch;

    }

    .table-search{

        width:100%;

    }

    .table-pagination{

        flex-direction:column;

        align-items:flex-start;

    }

}