.roles-card-header {
    background: #fff !important;
}

.role-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.role-actions .btn {
    margin: 0 !important;
}

.role-btn i {
    font-size: 15px;
}

.role-id {
    width: 90px;
}

.role-name {
    font-size: 16px;
}

/* hover jak lista pracowników */
.roles-table tbody tr:hover {
    background: #fafafa;
}

/* równa wysokość */
.roles-table tbody td {
    min-height: 82px;
}

/* ================================
   ROLES TABLE — PREMIUM STYLE
================================ */

.roles-card {
    border: 0;
    border-radius: 22px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 18px 50px rgba(15, 23, 42, .10);
}

.roles-card .card-header {
    background: #fff;
    border-bottom: 1px solid #eef2f6;
    padding: 24px 28px;
}

.roles-card .card-title {
    margin: 0;
    font-size: 24px;
    font-weight: 900;
    color: #111827;
}

.roles-card .card-body {
    background: #fff;
}

.roles-table {
    margin: 0;
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}

.roles-table thead th {
    background: #f6f8fb;
    color: #64748b;
    font-size: 14px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .02em;
    padding: 20px 28px;
    border: 0;
    white-space: nowrap;
}

.roles-table tbody td {
    padding: 22px 28px;
    vertical-align: middle;
    border-bottom: 1px solid #f1f5f9;
    color: #64748b;
    font-size: 15px;
    font-weight: 600;
}

.roles-table tbody tr:last-child td {
    border-bottom: 0;
}

.roles-table tbody tr {
    transition: .22s ease;
}

.roles-table tbody tr:hover {
    background: #fafafa;
}

.roles-table .role-id {
    color: #111827;
    font-weight: 900;
}

.roles-table .role-name {
    color: #111827;
    font-weight: 900;
}

.roles-table .role-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* BUTTONS */
.role-btn {
    min-height: 42px;
    padding: 0 18px;
    border-radius: 12px !important;
    font-size: 14px;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border: 0 !important;
}

.role-edit-btn {
    background: #6f7a83 !important;
    color: #fff !important;
}

.role-edit-btn:hover {
    background: #4b5563 !important;
    transform: translateY(-1px);
}

.role-delete-btn {
    background: #e73346 !important;
    color: #fff !important;
}

.role-delete-btn:hover {
    background: #c91f32 !important;
    transform: translateY(-1px);
}

/* MOBILE */
@media (max-width: 768px) {
    .roles-card {
        border-radius: 20px;
    }

    .roles-card .card-header {
        padding: 20px;
    }

    .roles-card .card-title {
        font-size: 21px;
    }

    .roles-table thead {
        display: none;
    }

    .roles-table tbody tr {
        display: block;
        padding: 18px;
        border-bottom: 1px solid #f1f5f9;
    }

    .roles-table tbody td {
        display: flex;
        justify-content: space-between;
        gap: 16px;
        padding: 10px 0;
        border: 0;
    }

    .roles-table tbody td::before {
        font-weight: 900;
        color: #94a3b8;
    }

    .roles-table tbody td:nth-child(1)::before {
        content: "#";
    }

    .roles-table tbody td:nth-child(2)::before {
        content: "Nazwa pozycji";
    }

    .roles-table tbody td:nth-child(3)::before {
        content: "Akcje";
    }
}