/* Permissions Section */
.permissions-section {
    direction: rtl;
}

/* Title */
.permissions-title {
    font-size: 26px;
    font-weight: bold;
    color: #273a41;
    margin-bottom: 24px;
}

/* Card */
.permissions-card {
    background: #fff;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

/* Labels */
.form-label {
    font-size: 14px;
    color: #555;
    margin-bottom: 8px;
    display: block;
}

/* Select */
.permissions-select {
    width: 100%;
    padding: 12px 14px;
    border-radius: 10px;
    border: 1px solid #e5e5e5;
    font-size: 14px;
    background: #fff;
}

/* Grid */
.permissions-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px 30px;
}

/* Permission Item */
.permission-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: #333;
}

/* Checkbox */
.permission-item input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: #d6a84a;
    cursor: pointer;
}

/* Checked text color */
.permission-item.checked span {
    color: #d6a84a;
    font-weight: 500;
}

/* Responsive */
@media (max-width: 992px) {
    .permissions-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .permissions-grid {
        grid-template-columns: 1fr;
    }
}

/* Roles Section */
.roles-section {
    direction: rtl;
}

/* Title */
.roles-title {
    font-size: 26px;
    font-weight: bold;
    color: #273a41;
    margin-bottom: 24px;
}

/* Card */
.roles-card {
    background: #fff;
    border-radius: 20px;
    padding: 24px;
    box-shadow: 0 14px 35px rgba(0, 0, 0, 0.1);
}

/* Table */
.roles-table {
    width: 100%;
    border-collapse: collapse;
}

.roles-table thead th {
    text-align: right;
    font-size: 13px;
    color: #888;
    padding-bottom: 16px;
}

.roles-table tbody tr {
    border-top: 1px solid #eee;
}

.roles-table td {
    padding: 18px 0;
    vertical-align: top;
    font-size: 14px;
    color: #333;
}

/* Columns */
.actions-col {
    width: 60px;
    text-align: center;
}

.name-col {
    width: 220px;
}

.role-desc {
    line-height: 1.7;
    color: #555;
}

/* Dots */
.dots {
    font-size: 20px;
    cursor: pointer;
}

/* User */
.user-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.user-info img {
    width: 36px;
    height: 36px;
    border-radius: 50%;
}

.user-info span {
    display: block;
    font-size: 12px;
    color: #888;
}

/* Footer */
.roles-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 20px;
    font-size: 13px;
    color: #777;
}

/* Pagination */
.pagination {
    display: flex;
    align-items: center;
    gap: 10px;
}

.pagination span {
    cursor: pointer;
}

.pagination .active {
    color: #d6a84a;
    font-weight: bold;
}

.pages {
    margin-right: 10px;
}

/* Responsive */
@media (max-width: 992px) {
    .roles-table thead {
        display: none;
    }

    .roles-table tr {
        display: block;
        margin-bottom: 20px;
    }

    .roles-table td {
        display: block;
        padding: 8px 0;
    }

    .actions-col {
        text-align: right;
    }
}

/* Edit Permissions Page */
.edit-permissions-page {
    direction: rtl;
}

/* Title */
.page-title {
    font-size: 26px;
    font-weight: bold;
    color: #273a41;
    margin-bottom: 28px;
}

/* Actions */
.actions-row {
    display: flex;
    justify-content: flex-end;
    margin-top: 30px;
}

.update-btn {
    background: #d6a84a;
    color: #fff;
    border: none;
    border-radius: 999px;
    padding: 14px 48px;
    font-size: 16px;
    cursor: pointer;
    box-shadow: 0 8px 20px rgba(214, 168, 74, 0.35);
}

@media (max-width: 576px) {
    .actions-row {
        justify-content: center;
    }
}