.permission-page .page-header {
    margin-bottom: 1.5rem;
}

.permission-page .page-header h2 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.tab-toolbar {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 0.75rem;
}

.table-responsive {
    overflow-x: auto;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
}

.data-table th,
.data-table td {
    padding: 0.75rem 1rem;
    text-align: left;
    border-bottom: 1px solid var(--border);
    font-size: 0.875rem;
}

.data-table th {
    background: var(--bg);
    font-weight: 600;
    white-space: nowrap;
}

.data-table tbody tr:hover {
    background-color: var(--bg);
}

.data-table code {
    background: var(--bg);
    padding: 0.15rem 0.4rem;
    border-radius: var(--radius);
    font-size: 0.8125rem;
}

.actions-cell {
    white-space: nowrap;
}

.actions-cell .btn {
    margin-right: 0.25rem;
}

.badge-info {
    display: inline-block;
    padding: 0.2rem 0.5rem;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: var(--radius);
    background-color: #dbeafe;
    color: #1e40af;
}

.required {
    color: #dc2626;
}


/* Group permissions checkbox list */
.group-permissions-list {
    max-height: 300px;
    overflow-y: auto;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 0.75rem;
}

.group-perm-category {
    margin-bottom: 0.75rem;
}

.group-perm-category:last-child {
    margin-bottom: 0;
}

.group-perm-category-title {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 0.375rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.group-perm-items {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 0.25rem;
}

.group-perm-items label {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.875rem;
    cursor: pointer;
    padding: 0.2rem 0;
}

.group-theme-access-list {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 0.75rem;
}

.theme-access-toolbar {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    flex-wrap: wrap;
}

.theme-access-category {
    padding: 0.3rem 0.5rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-size: 0.8125rem;
    background: var(--bg-card, #fff);
    cursor: pointer;
}

.theme-access-search {
    flex: 1;
    min-width: 120px;
    padding: 0.3rem 0.6rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-size: 0.8125rem;
}

.theme-access-batch {
    display: flex;
    gap: 0.25rem;
}

.btn-xs {
    padding: 0.2rem 0.5rem;
    font-size: 0.75rem;
}

#group-theme-access-items {
    max-height: 280px;
    overflow-y: auto;
}

.theme-access-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.375rem 0;
    border-bottom: 1px solid var(--border);
    font-size: 0.875rem;
}

.theme-access-item:last-child {
    border-bottom: none;
}

.theme-access-item .theme-name {
    flex: 1;
    font-weight: 500;
}

.theme-access-radios {
    display: flex;
    gap: 0.75rem;
}

.theme-access-radios label {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    cursor: pointer;
    font-size: 0.8125rem;
}
