:root {
    --ads-primary: #6B2D9B;
    --ads-primary-light: #F3EAF8;
    --ads-border: #e2e8f0;
    --ads-border-light: #f1f5f9;
    --ads-radius-md: 8px;
    --ads-radius-lg: 12px;
    --ads-spacing-4: 16px;
    --ads-spacing-5: 20px;
    --ads-spacing-6: 24px;
    --ads-shadow-card: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.ads-form-card {
    background: #fff;
    border-radius: var(--ads-radius-lg);
    box-shadow: var(--ads-shadow-card);
    border: 1px solid var(--ads-border-light);
    margin-bottom: var(--ads-spacing-6);
    overflow: hidden;
}

.ads-form-card__header {
    padding: var(--ads-spacing-5) var(--ads-spacing-6);
    border-bottom: 1px solid var(--ads-border-light);
    background: #fafbfc;
}

.ads-form-card__title {
    font-size: 1.125rem;
    font-weight: 600;
    margin: 0;
}

.ads-form-card__title::before {
    content: '';
    width: 4px;
    height: 20px;
    background: var(--ads-primary);
    border-radius: 2px;
    display: inline-block;
    margin-right: 8px;
    vertical-align: middle;
}

.ads-form-card__subtitle {
    font-size: 0.875rem;
    color: #64748b;
    margin: 0.5rem 0 0 0;
}

.ads-form-card__body {
    padding: var(--ads-spacing-6);
}

.ads-action-bar {
    padding: var(--ads-spacing-5) 0;
    margin-top: var(--ads-spacing-6);
    border-top: 1px solid var(--ads-border-light);
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
}

.novus-stat-card .card-body {
    padding: 1.25rem;
}

.novus-stat-card .stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}

.novus-chart-card canvas {
    max-height: 320px;
}

/* Header layout */
.header .logo img {
    max-height: 36px;
    width: auto;
}

.header .nav-search-inputs .header-context-spacer {
    min-height: 1px;
}

.header .header-user .user-menu {
    flex-wrap: nowrap;
}

.header .child-selector-box > .child-selector-toggle,
.header .child-selector-box > a.child-selector-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #F6F6F6;
    color: #262A2A;
    border-radius: 5px;
    min-width: 36px;
    height: 36px;
    padding: 0 10px;
    gap: 6px;
    border: 0;
}

.header .child-selector-box > .child-selector-toggle:hover,
.header .child-selector-box > a.child-selector-toggle:hover {
    background: #EAEAEA;
    color: #262A2A;
}

@media (min-width: 1200px) {
    .header .child-selector-box > .child-selector-toggle,
    .header .child-selector-box > a.child-selector-toggle {
        min-width: auto;
        padding: 0 12px;
    }

    .header .child-selector-label {
        font-size: 13px;
        font-weight: 500;
        max-width: 120px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
}

.header .child-selector-menu {
    min-width: 220px;
}

.header .nav-item-box > a .badge.rounded-pill {
    position: absolute;
    top: -4px;
    right: -4px;
    font-size: 10px;
    min-width: 18px;
    height: 18px;
    line-height: 18px;
    padding: 0 4px;
}

.header .user-info .badge.badge-success.rounded-pill {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 10px;
    height: 10px;
    padding: 0;
    border: 2px solid #fff;
}

.header .user-info .user-letter {
    background: var(--ads-primary);
    overflow: hidden;
}

.header .user-info .user-letter img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 5px;
}

.crms-avatar-initials {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    background: var(--ads-primary);
    color: #fff;
    font-weight: 600;
    font-size: 14px;
    border-radius: 5px;
}

.crms-avatar-sidebar {
    width: 42px;
    height: 42px;
    min-width: 42px;
    border-radius: 8px;
    object-fit: cover;
}

.sidebar .clinicdropdown > a .crms-avatar-sidebar.crms-avatar-initials {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
}

.page-header .page-title {
    margin-bottom: 0;
}

.page-header p.text-muted {
    margin-top: 0.25rem;
    font-size: 13px;
}

.page-wrapper .pagination {
    margin-bottom: 0;
}

.empty-state-card {
    padding: 3rem 1.5rem;
    text-align: center;
}

.empty-state-card .empty-icon {
    font-size: 2.5rem;
    color: #94a3b8;
    margin-bottom: 1rem;
}

.table-actions .btn + .btn {
    margin-left: 0.25rem;
}

.detail-label {
    font-size: 0.8125rem;
    color: #64748b;
    margin-bottom: 0.25rem;
}

.detail-value {
    font-weight: 500;
    margin-bottom: 1rem;
}
