.table-card .table {
    margin: 0;
    border-radius: 0;
    box-shadow: none;
}

.table-card .table thead {
    background: linear-gradient(135deg, var(--sedona-blue) 0%, var(--sedona-blue-dark) 100%);
}

.table-card .table thead th {
    color: var(--white);
    font-weight: 600;
    padding: 14px 16px;
    border: none;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.table-card .table tbody tr {
    transition: all 0.2s ease;
}

.table-card .table tbody tr:hover {
    background: var(--sedona-orange-subtle);
}

.table-card .table tbody td {
    padding: 14px 16px;
    vertical-align: middle;
    border-bottom: 1px solid var(--gray-100);
}

.table-card .table tbody tr.row-disabled {
    background: var(--gray-100);
    opacity: 0.7;
}

.table-card .table tbody tr.row-expired {
    background: rgba(220, 53, 69, 0.05);
}

.table-card .table tbody tr.row-expired:hover {
    background: rgba(220, 53, 69, 0.1);
}

.table {
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.table thead {
    background: linear-gradient(135deg, var(--sedona-blue) 0%, var(--sedona-blue-light) 100%);
    color: var(--white);
}

.table thead th {
    border: none;
    padding: 16px;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
}

.table tbody tr {
    transition: all 0.2s ease;
}

.table tbody tr:hover {
    background: var(--sedona-orange-subtle);
    transform: scale(1.01);
}

.table tbody td {
    padding: 16px;
    vertical-align: middle;
    border-bottom: 1px solid var(--gray-200);
}

.license-key {
    font-size: 0.75rem;
    background: var(--gray-100);
    padding: 4px 8px;
    border-radius: 4px;
    word-break: break-all;
    display: inline-block;
    max-width: 200px;
}

.license-key-cell {
    font-size: 0.75rem;
    background: var(--gray-100);
    padding: 4px 8px;
    border-radius: 4px;
    display: inline-block;
    max-width: 150px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.status-dot {
    display: inline-block;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.1);
}

.status-dot.status-active {
    background: var(--success);
    box-shadow: 0 0 0 3px rgba(40, 167, 69, 0.2);
}

.status-dot.status-inactive {
    background: var(--gray-400);
}

.action-buttons {
    display: flex;
    gap: 6px;
}

.action-buttons .btn {
    padding: 6px 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.action-buttons .btn i {
    font-size: 14px;
}

@media (max-width: 1200px) {
    .table-card .table {
        font-size: 0.85rem;
    }

    .table-card .table thead th,
    .table-card .table tbody td {
        padding: 10px 12px;
    }

    .license-key-cell {
        max-width: 100px;
    }
}

/* =============================================
   RESPONSIVE TABLES — Material Design Style
   Sub 992px fiecare rând devine card cu perechi
   label / valoare — fără niciun scroll orizontal.
   ============================================= */

@media (max-width: 991.98px) {
    .table-card {
        overflow: visible;
    }

    .table-card .table-responsive {
        overflow: visible;
    }

    .table-card .table,
    .table-card .table thead,
    .table-card .table tbody,
    .table-card .table th,
    .table-card .table td,
    .table-card .table tr {
        display: block !important;
        width: 100%;
        box-sizing: border-box;
    }

    .table-card .table {
        overflow: visible !important;
        box-shadow: none;
        border-radius: 0;
    }

    .table-card .table thead tr {
        position: absolute;
        top: -9999px;
        left: -9999px;
        visibility: hidden;
    }

    .table-card .table tbody {
        padding: 12px !important;
        background: var(--gray-50);
    }

    .table-card .table tbody tr {
        background: var(--white);
        border: 1px solid var(--gray-200);
        border-radius: var(--border-radius);
        margin-bottom: 12px;
        box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
        transition: box-shadow 0.2s ease;
        overflow: hidden;
    }

    .table-card .table tbody tr:hover {
        box-shadow: 0 4px 14px rgba(0, 0, 0, 0.10);
        transform: none;
        background: var(--white);
    }

    .table-card .table tbody td {
        display: flex !important;
        justify-content: space-between;
        align-items: center;
        padding: 10px 14px !important;
        border: none !important;
        border-bottom: 1px solid var(--gray-100) !important;
        text-align: right;
        min-height: 42px;
        word-break: break-word;
    }

    .table-card .table tbody td:last-child {
        border-bottom: none !important;
    }

    .table-card .table tbody td[data-label]::before {
        content: attr(data-label);
        font-size: 0.72rem;
        font-weight: 700;
        color: var(--gray-400);
        text-transform: uppercase;
        letter-spacing: 0.5px;
        text-align: left;
        flex-shrink: 0;
        margin-right: 12px;
        white-space: nowrap;
    }

    .table-card .table tbody td.text-center {
        justify-content: flex-end;
        gap: 6px;
    }

    .table-card .table tbody td.text-center::before {
        display: none;
    }

    .table tbody tr:hover {
        transform: none;
    }
}
