.mdi {
    display: inline-block;
    position: relative;
    background-size: cover;
    align-items: center;
}
.textid {
    font-family: 'Gill Sans', 'Gill Sans MT', 'Calibri', 'Trebuchet MS', 'sans-serif';
    color: #6b7280;
}
.header-gradient {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 16px;
    color: white;
    padding: 2rem;
    margin-bottom: 1.5rem;
    position: relative;
    overflow: hidden;
}

    .header-gradient::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="1" fill="white" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
        opacity: 0.3;
    }

.header-content {
    position: relative;
    z-index: 1;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.scope-icon {
    font-size: 4rem;
    margin-right: 1rem;
    padding-left: 1rem;
}

.stats-badge {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    padding: 0.5rem 1rem;
    border: 1px solid rgba(255, 255, 255, 0.3);
    display: flex;
    align-items: center;
}

.scope-card {
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    overflow: hidden;
}

    .scope-card:hover {
        transform: translateY(-2px);
        box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
    }

.scope-table {
    background: transparent;
}

    .scope-table .mud-table-head {
        background: #f8fafc;
        border-bottom: 2px solid #e2e8f0;
    }

        .scope-table .mud-table-head th {
            font-weight: 600;
            color: #334155;
            padding: 1rem 0.75rem;
        }

    .scope-table .mud-table-row {
        border-bottom: 1px solid #f1f5f9;
        transition: background-color 0.2s ease;
    }

        .scope-table .mud-table-row:hover {
            background-color: #f8fafc;
        }

    .scope-table .mud-table-cell {
        padding: 1rem 0.75rem;
        vertical-align: middle;
    }

.action-buttons {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.add-scope-btn {
    background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
    border: none;
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.3);
    transition: all 0.3s ease;
}

    .add-scope-btn:hover {
        transform: translateY(-1px);
        box-shadow: 0 6px 20px rgba(79, 70, 229, 0.4);
    }

.resource-chip {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: white;
    border: none;
    font-weight: 500;
}

.dialog-content {
    background: #fafbfc;
    border-radius: 12px;
    padding: 1.5rem;
    margin: 1rem 0;
}

.resource-selection {
    background: white;
    border-radius: 8px;
    padding: 1rem;
    border: 1px solid #e2e8f0;
}

.selected-resource-chip {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    color: white;
    margin: 0.25rem;
}