/*==========================================================
LicitaAI.club

Arquivo:
table.css

Versão:
1.0.0

Última atualização:
16/07/2026

Autor:
OpenAI + Carlos Rosa

Descrição:
Biblioteca oficial de Tabelas do Design System.

==========================================================*/


/*==========================================================
TABLE RESPONSIVE
==========================================================*/

.table-responsive{

    width:100%;

    overflow-x:auto;

    border-radius:var(--card-radius);

}


/*==========================================================
TABLE
==========================================================*/

.table{

    width:100%;

    border-collapse:collapse;

    background:var(--bg-card);

    border:1px solid var(--border-color);

    border-radius:var(--card-radius);

    overflow:hidden;

}


/*==========================================================
HEADER
==========================================================*/

.table thead{

    background:var(--color-gray-100);

}

.table th{

    padding:16px 20px;

    text-align:left;

    font-size:.875rem;

    font-weight:600;

    color:var(--text-primary);

    white-space:nowrap;

    border-bottom:1px solid var(--border-color);

}


/*==========================================================
BODY
==========================================================*/

.table td{

    padding:16px 20px;

    font-size:.95rem;

    color:var(--text-secondary);

    border-bottom:1px solid var(--border-color);

    vertical-align:middle;

}


/*==========================================================
LAST ROW
==========================================================*/

.table tbody tr:last-child td{

    border-bottom:none;

}


/*==========================================================
HOVER
==========================================================*/

.table tbody tr{

    transition:var(--transition-fast);

}

.table tbody tr:hover{

    background:var(--color-gray-50);

}


/*==========================================================
ACTIVE
==========================================================*/

.table tbody tr.active{

    background:rgba(15,76,129,.08);

}


/*==========================================================
ZEBRA
==========================================================*/

.table-striped tbody tr:nth-child(even){

    background:rgba(15,23,42,.02);

}


/*==========================================================
COMPACT
==========================================================*/

.table-compact th,
.table-compact td{

    padding:12px 16px;

}


/*==========================================================
CENTER
==========================================================*/

.table-center th,
.table-center td{

    text-align:center;

}


/*==========================================================
RIGHT
==========================================================*/

.table-right th,
.table-right td{

    text-align:right;

}


/*==========================================================
STATUS COLUMN
==========================================================*/

.table-status{

    display:inline-flex;

    align-items:center;

    gap:8px;

}


/*==========================================================
AVATAR
==========================================================*/

.table-avatar{

    display:flex;

    align-items:center;

    gap:12px;

}

.table-avatar img{

    width:40px;

    height:40px;

    border-radius:50%;

    object-fit:cover;

}


/*==========================================================
ACTIONS
==========================================================*/

.table-actions{

    display:flex;

    justify-content:flex-end;

    align-items:center;

    gap:8px;

}


/*==========================================================
ACTION BUTTON
==========================================================*/

.table-action{

    display:flex;

    align-items:center;

    justify-content:center;

    width:36px;

    height:36px;

    border-radius:10px;

    transition:var(--transition-fast);

    cursor:pointer;

}

.table-action:hover{

    background:var(--color-gray-100);

}

.table-action svg{

    width:18px;

    height:18px;

}


/*==========================================================
EMPTY
==========================================================*/

.table-empty{

    text-align:center;

    padding:64px 24px;

    color:var(--text-secondary);

}


/*==========================================================
LOADING
==========================================================*/

.table-loading{

    opacity:.6;

    pointer-events:none;

}


/*==========================================================
PAGINATION
==========================================================*/

.table-pagination{

    display:flex;

    justify-content:space-between;

    align-items:center;

    gap:16px;

    padding:20px;

    border-top:1px solid var(--border-color);

}

.table-pagination-info{

    font-size:.875rem;

    color:var(--text-secondary);

}

.table-pagination-nav{

    display:flex;

    align-items:center;

    gap:8px;

}


/*==========================================================
RESPONSIVO
==========================================================*/

@media(max-width:768px){

.table{

    min-width:720px;

}

.table th,
.table td{

    padding:14px 16px;

}

.table-pagination{

    flex-direction:column;

    align-items:flex-start;

}

}

/* Coluna Objeto */

.table .col-objeto{

    max-width:420px;
    min-width:320px;

    white-space:nowrap;
    overflow:hidden;
    text-overflow:ellipsis;

    cursor:pointer;

}