/* AEM Labs Limited - Table CSS */
/* ============================ */

.table {
    width: 100%;
    border-collapse: collapse;
    margin: 0;
}

.table th,
.table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #e9ecef;
}

.table th {
    font-weight: 600;
    color: #495057;
    background: #f8f9fa;
    font-size: 13px;
}

.table td {
    color: #212529;
    font-size: 12px;
    font-weight: 500;
}

.table tbody tr:hover {
    background: #f8f9fa;
}

.table button {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border: 1px solid #bbb;
    color: #333;
    border-radius: 8px;
    font-size: 11px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    white-space: nowrap;
}

.table button:hover {
    background: #e8f5e8;
    border-color: #4caf50;
    color: #4caf50;
}

@media (max-width: 1440px) {
    .table th,
    .table td {
        padding: 10px 8px;
    }
}

@media (max-width: 992px) {
    .table th,
    .table td {
        padding: 6px;
        width: fit-content;
        -webkit-line-clamp: 1;
        line-clamp: 1;
        overflow: visible;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .table th {
        font-size: 12px;
    }

    .table td {
        font-size: 11px;
    }
}

@media (max-width: 480px) {
    .table th,
    .table td {
        font-size: 10px;
    }

    .table button {
        padding: 4px 8px;
        font-size: 9px;
        gap: 3px;
    }

    .table button i {
        font-size: 8px;
    }
}