.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 28px;
}

.page-title {
    font-size: 34px;
    font-weight: 800;
    color: var(--primary);
    margin: 0;
}

.page-subtitle {
    color: var(--text-light);
    margin-top: 6px;
}

.page-actions {
    display: flex;
    gap: 10px;
}

.card {
    background: var(--card);
    border-radius: var(--radius);
    padding: 26px;
    box-shadow: var(--shadow);
}

.btn-primary,
.btn-secondary {
    padding: 12px 20px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 700;
    display: inline-block;
}

.btn-primary {
    background: var(--primary);
    color: white;
}

.btn-primary:hover {
    background: var(--primary-light);
}

.btn-secondary {
    background: white;
    color: var(--primary);
    border: 1px solid var(--border);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
    margin-bottom: 26px;
}

.stat-card {
    background: white;
    border-radius: var(--radius);
    padding: 22px;
    box-shadow: var(--shadow);
}

.stat-card span {
    color: var(--text-light);
    font-size: 14px;
}

.stat-card strong {
    display: block;
    margin-top: 10px;
    font-size: 30px;
    color: var(--primary);
}

.table-toolbar {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 20px;
}

.filters {
    display: flex;
    gap: 10px;
}

.search-input {
    width: 100%;
    max-width: 360px;
    padding: 13px 16px;
    border: 1px solid var(--border);
    border-radius: 12px;
}

.filter-select {
    padding: 12px 14px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: white;
}

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

.table th {
    text-align: left;
    color: var(--text-light);
    font-size: 13px;
    text-transform: uppercase;
    padding: 14px;
    background: #F8FAFC;
}

.table td {
    padding: 16px 14px;
    border-bottom: 1px solid var(--border);
    color: var(--text);
}

.table tr:hover {
    background: #F8FAFC;
}

.text-right {
    text-align: right !important;
}

.user-cell {
    display: flex;
    align-items: center;
    gap: 14px;
}

.avatar {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: var(--primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
}

.user-cell small {
    display: block;
    margin-top: 4px;
    color: var(--text-light);
}

.badge {
    padding: 7px 12px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 700;
}

.badge-success {
    background: #DCFCE7;
    color: #166534;
}

.badge-danger {
    background: #FEE2E2;
    color: #991B1B;
}

.badge-role {
    background: #E0ECFF;
    color: var(--primary);
}

.dropdown {
    position: relative;
    display: inline-block;
}

.action-button {
    background: #F1F5F9;
    border: none;
    color: var(--primary);
    padding: 8px 12px;
    border-radius: 9px;
    font-weight: 900;
    cursor: pointer;
}

.dropdown-menu {
    display: none;
    position: absolute;
    right: 0;
    top: 36px;
    min-width: 170px;
    background: white;
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    border-radius: 12px;
    z-index: 20;
    overflow: hidden;
}

.dropdown:hover .dropdown-menu {
    display: block;
}

.dropdown-menu a {
    display: block;
    padding: 12px 14px;
    color: var(--text);
    text-decoration: none;
    font-weight: 600;
}

.dropdown-menu a:hover {
    background: #F8FAFC;
}

.table-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-light);
    margin-top: 18px;
}

.pagination {
    display: flex;
    gap: 8px;
}

.pagination button {
    border: 1px solid var(--border);
    background: white;
    padding: 8px 12px;
    border-radius: 8px;
}

.pagination .active {
    background: var(--primary);
    color: white;
}
.form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
}

.form-grid input,
.form-grid select {
    padding: 13px 16px;
    border: 1px solid var(--border);
    border-radius: 12px;
}

.form-grid button {
    border: none;
    cursor: pointer;
}
.form-group {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.form-group label {
    font-size: 13px;
    font-weight: 800;
    color: var(--primary);
}

.full-width {
    grid-column: 1 / -1;
}

.checkbox-label {
    display: flex !important;
    flex-direction: row !important;
    align-items: center;
    gap: 10px;
}

.form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}
.notifications {
    margin-bottom: 22px;
}

.notification {
    padding: 14px 18px;
    border-radius: 12px;
    font-weight: 700;
    margin-bottom: 10px;
}

.notification-success {
    background: #DCFCE7;
    color: #166534;
    border: 1px solid #BBF7D0;
}

.notification-error {
    background: #FEE2E2;
    color: #991B1B;
    border: 1px solid #FECACA;
}

.notification-warning {
    background: #FEF3C7;
    color: #92400E;
    border: 1px solid #FDE68A;
}
.btn-danger {
    background: var(--danger);
    color: white;
    padding: 12px 20px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 700;
    display: inline-block;
}

.profile-layout {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 26px;
}

.profile-card {
    background: white;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 30px;
    text-align: center;
    height: fit-content;
}

.profile-avatar {
    width: 92px;
    height: 92px;
    border-radius: 28px;
    background: var(--primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 34px;
    font-weight: 900;
    margin: 0 auto 18px;
}

.profile-card h2 {
    margin: 0;
    color: var(--primary);
}

.profile-card p {
    color: var(--text-light);
    margin-bottom: 18px;
}

.profile-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 24px;
}

.profile-details {
    display: flex;
    flex-direction: column;
    gap: 22px;
}

.detail-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 22px;
    margin-top: 18px;
}

.detail-grid label {
    display: block;
    color: var(--text-light);
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
    margin-bottom: 6px;
}

.detail-grid strong {
    color: var(--text);
}

.activity-list {
    margin-top: 18px;
}

.activity-item {
    display: flex;
    gap: 14px;
}

.activity-item span {
    width: 12px;
    height: 12px;
    background: var(--primary-light);
    border-radius: 50%;
    margin-top: 6px;
}

.activity-item p {
    margin: 6px 0 0;
    color: var(--text-light);
}

@media(max-width: 900px) {
    .profile-layout {
        grid-template-columns: 1fr;
    }

    .detail-grid {
        grid-template-columns: 1fr;
    }
}
.profile-header-card {
    background: white;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 28px;
    display: flex;
    align-items: center;
    gap: 22px;
    margin-bottom: 24px;
}

.profile-avatar-large {
    width: 88px;
    height: 88px;
    border-radius: 26px;
    background: var(--primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    font-weight: 900;
}

.profile-header-card h2 {
    margin: 0;
    color: var(--primary);
}

.profile-header-card p {
    color: var(--text-light);
    margin: 6px 0 12px;
}

.tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 22px;
    border-bottom: 1px solid var(--border);
}

.tab-button {
    background: transparent;
    border: none;
    padding: 14px 18px;
    font-weight: 800;
    color: var(--text-light);
    cursor: pointer;
    border-bottom: 3px solid transparent;
}

.tab-button.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

.section-actions {
    display: flex;
    gap: 12px;
    margin-top: 24px;
}

.empty-text {
    color: var(--text-light);
}
.workspace-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 26px;
}

.breadcrumb-link {
    color: var(--primary-light);
    text-decoration: none;
    font-weight: 800;
    display: inline-block;
    margin-bottom: 8px;
}

.entity-workspace {
    display: grid;
    grid-template-columns: 280px 1fr 320px;
    gap: 24px;
    align-items: start;
}

.workspace-summary,
.communication-panel {
    background: white;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 24px;
}

.workspace-summary {
    text-align: center;
}

.workspace-summary h2 {
    color: var(--primary);
    margin-bottom: 6px;
}

.workspace-summary p {
    color: var(--text-light);
}

.workspace-main {
    min-width: 0;
}

.communication-panel h3 {
    margin-top: 0;
    color: var(--primary);
}

.comm-block {
    border-top: 1px solid var(--border);
    padding-top: 16px;
    margin-top: 16px;
}

.comm-block h4 {
    margin: 0 0 8px;
    color: var(--primary);
}

.comm-block p {
    color: var(--text-light);
    margin-bottom: 12px;
}

@media(max-width: 1200px) {
    .entity-workspace {
        grid-template-columns: 1fr;
    }
}