﻿
.table-link{
    text-decoration:none;
}

.enterprise-table-wrapper {
    background: white;
    border-radius: 28px;
    padding: 28px;
    box-shadow: 0 10px 35px rgba(15,23,42,.06);
    overflow: visible;
}
th{
    cursor:pointer;
}

.table-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

    .table-header h3 {
        margin: 0;
        font-size: 28px;
        font-weight: 800;
        color: #0f172a;
    }

    .table-header p {
        margin-top: 6px;
        color: #64748b;
    }

.table-search {
    margin-bottom: 24px;
}

.search-input {
    width: 320px;
    height: 52px;
    border: none;
    outline: none;
    padding: 0 20px;
    border-radius: 18px;
    background: #f8fafc;
    font-size: 15px;
}

.enterprise-table {
    width: 100%;
    border-collapse: collapse;
}

.table-responsive {
    overflow: visible;
}

    .enterprise-table thead th {
        padding: 18px;
        background: #f8fafc;
        color: #475569;
        font-size: 14px;
        font-weight: 700;
        text-align: left;
    }

    .enterprise-table tbody td {
        position: relative;
        padding: 18px;
        border-bottom: 1px solid #e2e8f0;
        color: #0f172a;
        overflow: visible;
    }

    .enterprise-table tbody tr {
        position: relative;
    }

    .enterprise-table tbody tr:hover {
        z-index: 20;
        background: #f8fafc;
    }

.table-footer {
    margin-top: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.pagination-wrapper {
    display: flex;
    align-items: center;
    gap: 14px;
}

.page-btn {
    border: none;
    background: #4f46e5;
    color: white;
    padding: 10px 18px;
    border-radius: 14px;
    font-weight: 600;
}

    .page-btn:disabled {
        opacity: .5;
    }

.page-number {
    font-weight: 700;
}

.empty-state {
    padding: 60px 20px;
    text-align: center;
}

.empty-icon {
    font-size: 64px;
    margin-bottom: 18px;
}

.table-loading {
    height: 240px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
}

.mini-spinner {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 4px solid #e2e8f0;
    border-top-color: #4f46e5;
    animation: spin .8s linear infinite;
}

@keyframes spin {

    to {
        transform: rotate(360deg);
    }
}

.table-actions-group {
    position: relative;
    z-index: 5;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    background: #f8fafc;
    box-shadow: 0 8px 22px rgba(15, 23, 42, .05);
}

.table-actions-group:hover,
.table-actions-group:focus-within {
    z-index: 100;
}

.table-action-btn {
    position: relative;
    width: 34px;
    min-width: 34px;
    height: 34px;
    border: none;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background .2s ease, color .2s ease, transform .2s ease, box-shadow .2s ease;
    font-size: 13px;
    font-weight: 800;
    text-decoration:none;
    line-height: 1;
}

.table-action-btn::before,
.table-action-btn::after {
    position: absolute;
    left: 50%;
    z-index: 50;
    opacity: 0;
    pointer-events: none;
    transform: translate(-50%, 4px);
    transition: opacity .16s ease, transform .16s ease;
}

.table-action-btn::before {
    content: attr(data-tooltip);
    bottom: calc(100% + 9px);
    min-width: max-content;
    max-width: 140px;
    padding: 7px 9px;
    border-radius: 8px;
    background: #0f172a;
    color: #fff;
    font-size: 11px;
    font-weight: 800;
    line-height: 1;
    text-align: center;
    box-shadow: 0 12px 24px rgba(15, 23, 42, .18);
}

.table-action-btn::after {
    content: "";
    bottom: calc(100% + 4px);
    width: 9px;
    height: 9px;
    background: #0f172a;
    border-radius: 2px;
    transform: translate(-50%, 4px) rotate(45deg);
}

.table-action-btn:hover::before,
.table-action-btn:hover::after,
.table-action-btn:focus-visible::before,
.table-action-btn:focus-visible::after {
    opacity: 1;
    transform: translate(-50%, 0);
}

.table-action-btn:hover::after,
.table-action-btn:focus-visible::after {
    transform: translate(-50%, 0) rotate(45deg);
}

.table-action-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 16px rgba(15, 23, 42, .10);
}

.table-action-btn:focus-visible {
    outline: 3px solid rgba(79, 70, 229, .22);
    outline-offset: 2px;
}

.table-action-icon {
    display: grid;
    place-items: center;
    font-size: 13px;
}

.table-action-text {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.edit-btn {
    background: #fff;
    color: #4f46e5;
}

    .edit-btn:hover {
        background: #4f46e5;
        color: white;
    }

.delete-btn {
    background: #fff;
    color: #dc2626;
}

    .delete-btn:hover {
        background: #dc2626;
        color: white;
    }

.download-btn {
    background: #fff;
    color: #0891b2;
}

    .download-btn:hover {
        background: #0891b2;
        color: white;
    }

.view-btn {
    background: #fff;
    color: #2563eb;
}

    .view-btn:hover {
        background: #2563eb;
        color: white;
    }

@media(max-width: 640px) {
    .table-responsive {
        overflow-x: auto;
        overflow-y: visible;
    }

    .table-actions-group {
        gap: 4px;
        padding: 3px;
    }

    .table-action-btn {
        width: 32px;
        min-width: 32px;
        height: 32px;
    }
}
