/* ============================================================================
   Client Intake Panel Styles
   BEM Naming: client-intake-panel, client-intake-badge, timeline-item, etc.
   ============================================================================ */

/* Intake Panel Container */
.client-intake-panel {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border: 1px solid var(--border-color, #e5e7eb);
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.client-intake-panel__error {
    color: var(--error-color, #ef4444);
    padding: 1rem;
    text-align: center;
    font-style: italic;
}

/* Intake Panel Header */
.client-intake-panel__header {
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--border-color, #e5e7eb);
}

.client-intake-panel__status {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
}

.client-intake-panel__description {
    margin: 0;
    color: var(--text-secondary, #6b7280);
    font-size: 0.9rem;
}

/* Intake Status Badges */
.client-intake-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 4px 10px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.75rem;
    white-space: nowrap;
    background: transparent;
}

.client-intake-badge--clickable {
    cursor: pointer;
    transition: all 0.2s ease;
}

.client-intake-badge--clickable:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    filter: brightness(0.95);
}

.client-intake-badge--prospect {
    background: #f3e8ff;
    color: #7c3aed;
    border: 1px solid #c084fc;
}

.client-intake-badge--intake_pending {
    background: #fef3c7;
    color: #b45309;
    border: 1px solid #fbbf24;
}

.client-intake-badge--intake_in_progress {
    background: #fed7aa;
    color: #c2410c;
    border: 1px solid #fb923c;
}

.client-intake-badge--form_received {
    background: #dbeafe;
    color: #1e40af;
    border: 1px solid #60a5fa;
}

.client-intake-badge--onboarding_in_progress {
    background: #dbeafe;
    color: #1e40af;
    border: 1px solid #60a5fa;
}

.client-intake-badge--active {
    background: #d1fae5;
    color: #047857;
    border: 1px solid #10b981;
}

.client-intake-badge--on_hold_not_paying {
    background: #fed7aa;
    color: #c2410c;
    border: 1px solid #fb923c;
}

.client-intake-badge--inactive {
    background: #f3f4f6;
    color: #4b5563;
    border: 1px solid #9ca3af;
}

.client-intake-badge--archived {
    background: #e5e7eb;
    color: #374151;
    border: 1px solid #9ca3af;
}

.client-intake-form-status {
    padding: 0.25rem 0.75rem;
    background: var(--background-secondary, #f9fafb);
    border-radius: 12px;
    font-size: 0.85rem;
    color: var(--text-secondary, #6b7280);
}

/* Timeline */
.client-intake-timeline {
    margin: 1.5rem 0;
    position: relative;
    padding-left: 2.5rem;
}

.timeline-item {
    position: relative;
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
}

.timeline-item:not(:last-child)::before {
    content: '';
    position: absolute;
    left: -1.75rem;
    top: 2rem;
    width: 2px;
    height: calc(100% - 1rem);
    background: var(--border-color, #e5e7eb);
}

.timeline-item__marker {
    position: absolute;
    left: -2.15rem;
    top: 0.25rem;
    width: 1.75rem;
    height: 1.75rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    z-index: 1;
}

/* Timeline item states */
.timeline-item--completed .timeline-item__marker {
    background: var(--success-color, #22c55e);
    color: white;
}

.timeline-item--active .timeline-item__marker {
    background: var(--primary-color, #3b82f6);
    color: white;
    animation: pulse 2s infinite;
}

.timeline-item--pending .timeline-item__marker {
    background: var(--background-secondary, #f3f4f6);
    color: var(--text-tertiary, #9ca3af);
    border: 2px solid var(--border-color, #e5e7eb);
}

.timeline-item--followup .timeline-item__marker {
    background: var(--warning-color, #f59e0b);
    color: white;
}

@keyframes pulse {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(59, 130, 246, 0.4);
    }
    50% {
        box-shadow: 0 0 0 8px rgba(59, 130, 246, 0);
    }
}

.timeline-item__content {
    min-height: 1.75rem;
}

.timeline-item__title {
    font-weight: 600;
    color: var(--text-primary, #111827);
    margin-bottom: 0.25rem;
}

.timeline-item__date {
    font-size: 0.875rem;
    color: var(--text-secondary, #6b7280);
    margin-bottom: 0.125rem;
}

.timeline-item__detail {
    font-size: 0.85rem;
    color: var(--text-tertiary, #9ca3af);
    font-style: italic;
}

/* Intake Panel Actions */
.client-intake-panel__actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    align-items: center;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color, #e5e7eb);
}

.client-intake-panel__actions .btn {
    padding: 0.625rem 1.25rem;
    border-radius: 6px;
    font-weight: 500;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.2s;
}

.client-intake-panel__actions .btn i {
    font-size: 0.9rem;
}

.client-intake-panel__actions .btn--primary {
    background: var(--primary-color, #3b82f6);
    color: white;
    border: none;
}

.client-intake-panel__actions .btn--primary:hover {
    background: var(--primary-color-hover, #2563eb);
    transform: translateY(-1px);
    box-shadow: 0 4px 6px rgba(59, 130, 246, 0.2);
}

.client-intake-panel__actions .btn--secondary {
    background: white;
    color: var(--text-primary, #111827);
    border: 1px solid var(--border-color, #d1d5db);
}

.client-intake-panel__actions .btn--secondary:hover {
    background: var(--background-secondary, #f9fafb);
    border-color: var(--border-color-hover, #9ca3af);
}

.client-intake-panel__actions .btn--success {
    background: var(--success-color, #22c55e);
    color: white;
    border: none;
}

.client-intake-panel__actions .btn--success:hover {
    background: var(--success-color-hover, #16a34a);
    transform: translateY(-1px);
    box-shadow: 0 4px 6px rgba(34, 197, 94, 0.2);
}

.client-intake-panel__actions .btn--danger {
    background: var(--error-color, #ef4444);
    color: white;
    border: none;
}

.client-intake-panel__actions .btn--danger:hover {
    background: var(--error-color-hover, #dc2626);
    transform: translateY(-1px);
    box-shadow: 0 4px 6px rgba(239, 68, 68, 0.2);
}

.client-intake-panel__actions .btn--small {
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
}

/* Intake Services Grid (for form received modal) */
.intake-services-grid {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin: 1rem 0;
}

.intake-services-category {
    border: 1px solid var(--border-color, #e5e7eb);
    border-radius: 8px;
    padding: 1rem;
    background: var(--background-secondary, #f9fafb);
}

.intake-services-category__title {
    margin: 0 0 0.75rem 0;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-primary, #111827);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.intake-service-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.625rem;
    margin-bottom: 0.5rem;
    background: white;
    border: 1px solid var(--border-color, #e5e7eb);
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
}

.intake-service-item:hover {
    background: var(--background-hover, #f3f4f6);
    border-color: var(--primary-color, #3b82f6);
}

.intake-service-item--selected {
    background: #eff6ff;
    border-color: var(--primary-color, #3b82f6);
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.1);
}

.intake-service-checkbox {
    width: 1.125rem;
    height: 1.125rem;
    cursor: pointer;
}

.intake-service-name {
    flex: 1;
    font-size: 0.9rem;
    color: var(--text-primary, #111827);
}

.intake-service-name strong {
    color: var(--primary-color, #3b82f6);
    font-weight: 600;
}

/* Modal-specific styles */
.modal__info-box {
    padding: 0.875rem;
    border-radius: 6px;
    margin: 1rem 0;
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.modal__info-box--info {
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    color: #1e40af;
}

.modal__info-box--warning {
    background: #fef3c7;
    border: 1px solid #fde68a;
    color: #92400e;
}

.modal__info-box i {
    margin-top: 0.125rem;
}

.modal__section-title {
    font-weight: 600;
    font-size: 1rem;
    margin: 1.5rem 0 1rem 0;
    color: var(--text-primary, #111827);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .client-intake-panel {
        padding: 1rem;
    }

    .client-intake-panel__actions {
        flex-direction: column;
    }

    .client-intake-panel__actions .btn {
        width: 100%;
        justify-content: center;
    }

    .client-intake-timeline {
        padding-left: 2rem;
    }

    .timeline-item__marker {
        left: -1.9rem;
        width: 1.5rem;
        height: 1.5rem;
        font-size: 0.7rem;
    }

    .timeline-item:not(:last-child)::before {
        left: -1.6rem;
    }
}

/* ============================================================================
   Service Activation Modal Styles
   ============================================================================ */

.activation-header {
    margin-bottom: 1.5rem;
}

.activation-header h3 {
    margin: 0 0 0.5rem 0;
    font-size: 1.25rem;
    color: var(--text-primary, #111827);
}

.activation-description {
    margin: 0;
    color: var(--text-secondary, #6b7280);
    font-size: 0.9rem;
}

.activation-services-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin: 1rem 0;
}

.activation-service-row {
    display: flex;
    gap: 1.5rem;
    padding: 1rem;
    background: white;
    border: 1px solid var(--border-color, #e5e7eb);
    border-radius: 8px;
}

.activation-service-info {
    flex: 1;
}

.activation-service-name {
    font-weight: 600;
    margin-bottom: 0.25rem;
    color: var(--text-primary, #111827);
}

.activation-service-name strong {
    color: var(--primary-color, #3b82f6);
}

.activation-service-meta {
    font-size: 0.85rem;
    color: var(--text-secondary, #6b7280);
    margin-bottom: 0.25rem;
}

.activation-service-warning {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.375rem 0.625rem;
    background: #fef3c7;
    border: 1px solid #fde68a;
    border-radius: 4px;
    font-size: 0.85rem;
    color: #92400e;
    margin-top: 0.5rem;
}

.activation-service-notes {
    margin-top: 0.5rem;
    font-size: 0.85rem;
    font-style: italic;
    color: var(--text-tertiary, #9ca3af);
}

.activation-service-controls {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    min-width: 240px;
}

.activation-service-label {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-primary, #111827);
}

.activation-required {
    color: var(--error-color, #ef4444);
}

.activation-service-assignee {
    padding: 0.5rem;
    border: 1px solid var(--border-color, #d1d5db);
    border-radius: 4px;
    font-size: 0.9rem;
}

.activation-service-checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: var(--text-secondary, #6b7280);
    cursor: pointer;
}

.activation-service-onboarding {
    cursor: pointer;
}

.activation-backlog-btn {
    padding: 0.5rem 0.75rem;
    font-size: 0.85rem;
}

/* ============================================================================
   Bulk Period Task Modal Styles
   ============================================================================ */

.bulk-period-header {
    margin-bottom: 1.5rem;
}

.bulk-period-header h3 {
    margin: 0 0 0.5rem 0;
    font-size: 1.25rem;
    color: var(--text-primary, #111827);
}

.bulk-period-description {
    margin: 0 0 0.5rem 0;
    color: var(--text-primary, #111827);
}

.bulk-period-info {
    margin: 0;
    color: var(--text-secondary, #6b7280);
    font-size: 0.9rem;
}

.bulk-period-controls {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.bulk-period-list {
    max-height: 400px;
    overflow-y: auto;
    border: 1px solid var(--border-color, #e5e7eb);
    border-radius: 6px;
    padding: 0.75rem;
    background: var(--background-secondary, #f9fafb);
}

.bulk-period-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.625rem;
    margin-bottom: 0.5rem;
    background: white;
    border: 1px solid var(--border-color, #e5e7eb);
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s;
}

.bulk-period-item:hover {
    background: var(--background-hover, #f3f4f6);
    border-color: var(--primary-color, #3b82f6);
}

.bulk-period-checkbox {
    cursor: pointer;
}

.bulk-period-label {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
}

.bulk-period-label strong {
    color: var(--text-primary, #111827);
}

.bulk-period-dates {
    font-size: 0.85rem;
    color: var(--text-secondary, #6b7280);
}

.bulk-period-options {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin: 1.5rem 0;
    padding: 1rem;
    background: var(--background-secondary, #f9fafb);
    border: 1px solid var(--border-color, #e5e7eb);
    border-radius: 6px;
}

.bulk-period-option-label {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-primary, #111827);
}

.bulk-period-option-label input[type="checkbox"] {
    width: auto;
}

/* Responsive: activation and bulk modals */
@media (max-width: 768px) {
    .activation-service-row {
        flex-direction: column;
    }

    .activation-service-controls {
        min-width: unset;
    }
}

/* ============================================================================
   Onboarding Checklist in Task View Modal
   ============================================================================ */

.task-view__onboarding-checklist {
    background: linear-gradient(135deg, #eff6ff 0%, #ffffff 100%);
    border: 2px solid #3b82f6;
    border-radius: 8px;
    padding: 1.5rem;
    margin: 1.5rem 0;
}

.onboarding-checklist__header {
    margin-bottom: 1.25rem;
}

.onboarding-checklist__title {
    margin: 0 0 1rem 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary, #111827);
    display: flex;
    align-items: center;
    gap: 0.625rem;
}

.onboarding-checklist__title i {
    color: var(--primary-color, #3b82f6);
}

.onboarding-checklist__progress {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.onboarding-checklist__progress-text {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-secondary, #6b7280);
}

.onboarding-checklist__progress-bar {
    width: 100%;
    height: 8px;
    background: var(--background-secondary, #e5e7eb);
    border-radius: 4px;
    overflow: hidden;
}

.onboarding-checklist__progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #22c55e 0%, #16a34a 100%);
    transition: width 0.3s ease;
}

.onboarding-checklist__items {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin: 0 0 1rem 0;
}

.onboarding-checklist__item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem;
    background: white;
    border: 1px solid var(--border-color, #e5e7eb);
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
}

.onboarding-checklist__item:hover {
    background: var(--background-hover, #f9fafb);
    border-color: var(--primary-color, #3b82f6);
}

.onboarding-checklist__item--completed {
    background: #f0fdf4;
    border-color: #22c55e;
}

.onboarding-checklist__item--completed .onboarding-checklist__item-text {
    text-decoration: line-through;
    color: var(--text-tertiary, #9ca3af);
}

.onboarding-checklist__checkbox {
    width: 1.25rem;
    height: 1.25rem;
    cursor: pointer;
    flex-shrink: 0;
}

.onboarding-checklist__item-text {
    flex: 1;
    font-size: 0.9rem;
    color: var(--text-primary, #111827);
}

.onboarding-checklist__required {
    color: var(--error-color, #ef4444);
    font-weight: 700;
    margin-left: 0.25rem;
}

.onboarding-checklist__completed-at {
    font-size: 0.8rem;
    color: var(--success-color, #22c55e);
    font-weight: 500;
    white-space: nowrap;
}

.onboarding-checklist__footer {
    padding-top: 0.75rem;
    border-top: 1px solid var(--border-color, #e5e7eb);
}

.onboarding-checklist__hint {
    font-size: 0.85rem;
    color: var(--text-secondary, #6b7280);
    font-style: italic;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.onboarding-checklist__hint i {
    color: var(--primary-color, #3b82f6);
}

/* ============================================================================
   Details Form Header with Intake Badge
   ============================================================================ */

.client__form-intake-badge {
    display: flex;
    align-items: center;
    margin-left: auto;
}

/* Responsive */
@media (max-width: 768px) {
    .task-view__onboarding-checklist {
        padding: 1rem;
    }

    .onboarding-checklist__item {
        padding: 0.625rem;
    }

    .onboarding-checklist__item-text {
        font-size: 0.85rem;
    }

    .client__form-header {
        flex-wrap: wrap;
        gap: 0.5rem;
    }

    .client__form-intake-badge {
        margin-left: 0;
    }
}

/* ============================================================================
   Status & Actions Panel Styles
   ============================================================================ */

.status-actions-panel {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.status-actions-panel__header {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 1.5rem;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border: 1px solid var(--border-color, #e5e7eb);
    border-radius: 8px;
}

.status-actions-panel__title {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary, #111827);
}

.status-actions-panel__status {
    display: flex;
    align-items: center;
}

.status-actions-panel__description {
    margin: 0;
    color: var(--text-secondary, #6b7280);
    font-size: 0.9rem;
}

.status-actions-panel__section {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.status-actions-panel__section-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary, #111827);
}

.status-actions-panel__section-title i {
    color: var(--primary-color, #3b82f6);
}

/* ============================================================================
   Status Change Modal Styles
   ============================================================================ */

.status-change-modal__section {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.status-change-modal__label {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-primary, #111827);
}

.status-change-modal__current-status {
    padding: 0.5rem 0;
}

.status-change-modal__warning {
    margin-top: 1.5rem;
    padding: 1.25rem;
    background: #fef3c7;
    border: 2px solid #f59e0b;
    border-radius: 8px;
}

.status-change-modal__warning-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
    color: #92400e;
}

.status-change-modal__warning-header i {
    font-size: 1.5rem;
    color: #f59e0b;
}

.status-change-modal__warning-header strong {
    font-size: 1.1rem;
}

.status-change-modal__warning-text {
    margin: 0 0 1rem 0;
    color: #92400e;
    font-size: 0.95rem;
}

.status-change-modal__task-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin: 1rem 0 1.5rem 0;
    padding: 1rem;
    background: white;
    border: 1px solid #fde68a;
    border-radius: 6px;
    max-height: 200px;
    overflow-y: auto;
}

.status-change-modal__task-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem;
    color: var(--text-primary, #111827);
    font-size: 0.9rem;
}

.status-change-modal__task-item i {
    color: #f59e0b;
    font-size: 0.75rem;
}

.status-change-modal__override {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    background: white;
    border: 1px solid #fde68a;
    border-radius: 6px;
    cursor: pointer;
    margin-bottom: 1rem;
    transition: all 0.2s ease;
}

.status-change-modal__override:hover {
    background: #fffbeb;
}

.status-change-modal__override span {
    font-size: 0.95rem;
    font-weight: 600;
    color: #92400e;
}

.status-change-modal__checkbox {
    width: 1.25rem;
    height: 1.25rem;
    cursor: pointer;
    accent-color: #f59e0b;
}

/* Quick Action Button */
.status-change-modal__quick-action {
    margin-bottom: 1rem;
    text-align: center;
}

.status-change-modal__quick-action .btn--full {
    width: 100%;
    padding: 0.875rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
}

.status-change-modal__quick-action-hint {
    margin: 0.5rem 0 0 0;
    font-size: 0.85rem;
    color: var(--text-secondary, #6b7280);
}

.status-change-modal__divider {
    display: flex;
    align-items: center;
    margin: 1.5rem 0;
    gap: 1rem;
}

.status-change-modal__divider::before,
.status-change-modal__divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border-color, #e5e7eb);
}

.status-change-modal__divider span {
    font-size: 0.85rem;
    color: var(--text-tertiary, #9ca3af);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.status-change-modal__warning-note {
    margin: 0.75rem 0 0 0;
    font-size: 0.85rem;
    color: #92400e;
    font-style: italic;
}

/* Status History Section */
.status-change-modal__history {
    margin-top: 1.5rem;
    border: 1px solid var(--border-color, #e5e7eb);
    border-radius: 6px;
}

.status-change-modal__history-toggle {
    padding: 0.75rem 1rem;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-primary, #111827);
    cursor: pointer;
    list-style: none;
    background: var(--background-secondary, #f9fafb);
    border-radius: 6px;
}

.status-change-modal__history-toggle::-webkit-details-marker {
    display: none;
}

.status-change-modal__history-toggle::before {
    content: '▶';
    display: inline-block;
    margin-right: 0.5rem;
    font-size: 0.75rem;
    transition: transform 0.2s;
}

.status-change-modal__history[open] .status-change-modal__history-toggle::before {
    transform: rotate(90deg);
}

.status-history__list {
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    max-height: 250px;
    overflow-y: auto;
}

.status-history__item {
    padding: 0.75rem;
    background: white;
    border: 1px solid var(--border-color, #e5e7eb);
    border-radius: 6px;
}

.status-history__change {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.status-history__from {
    color: var(--text-secondary, #6b7280);
}

.status-history__arrow {
    color: var(--text-tertiary, #9ca3af);
}

.status-history__to {
    color: var(--primary-color, #3b82f6);
}

.status-history__meta {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    color: var(--text-tertiary, #9ca3af);
    margin-bottom: 0.375rem;
}

.status-history__reason {
    font-size: 0.85rem;
    color: var(--text-secondary, #6b7280);
    font-style: italic;
    line-height: 1.4;
}

.status-history__empty {
    margin: 0;
    text-align: center;
    color: var(--text-tertiary, #9ca3af);
    font-style: italic;
}

/* ============================================================================
   Form Send History Styles
   ============================================================================ */

.form-send-history {
    margin-top: 1.5rem;
    border: 1px solid var(--border-color, #e5e7eb);
    border-radius: 6px;
}

.form-send-history__toggle {
    padding: 0.75rem 1rem;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-primary, #111827);
    cursor: pointer;
    list-style: none;
    background: var(--background-secondary, #f9fafb);
    border-radius: 6px;
}

.form-send-history__toggle::-webkit-details-marker {
    display: none;
}

.form-send-history__toggle::before {
    content: '▶';
    display: inline-block;
    margin-right: 0.5rem;
    font-size: 0.75rem;
    transition: transform 0.2s;
}

.form-send-history[open] .form-send-history__toggle::before {
    transform: rotate(90deg);
}

.form-send-history__list {
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    max-height: 200px;
    overflow-y: auto;
}

.form-send-history__item {
    padding: 0.75rem;
    background: white;
    border: 1px solid var(--border-color, #e5e7eb);
    border-radius: 6px;
}

.form-send-history__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.375rem;
}

.form-send-history__date {
    font-weight: 600;
    color: var(--text-primary, #111827);
}

.form-send-history__method {
    font-size: 0.8rem;
    padding: 0.125rem 0.5rem;
    background: var(--background-secondary, #f3f4f6);
    border-radius: 4px;
    color: var(--text-secondary, #6b7280);
}

.form-send-history__meta {
    font-size: 0.8rem;
    color: var(--text-tertiary, #9ca3af);
}

.form-send-history__notes {
    margin-top: 0.5rem;
    font-size: 0.85rem;
    color: var(--text-secondary, #6b7280);
    font-style: italic;
    line-height: 1.4;
}

/* ============================================================================
   Onboarding Questions Wizard Styles
   ============================================================================ */

.onboarding-wizard {
    max-width: 600px;
    margin: 0 auto;
}

.onboarding-wizard__header {
    margin-bottom: 2rem;
    text-align: center;
}

.onboarding-wizard__header h3 {
    margin: 0 0 0.5rem 0;
    color: var(--text-primary, #1f2937);
    font-size: 1.5rem;
}

.onboarding-wizard__description {
    margin: 0;
    color: var(--text-secondary, #6b7280);
    font-size: 0.95rem;
    line-height: 1.5;
}

.onboarding-wizard__form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.onboarding-wizard__question {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 1.25rem;
    background: var(--bg-secondary, #f9fafb);
    border: 1px solid var(--border-color, #e5e7eb);
    border-radius: 8px;
    transition: all 0.2s ease;
}

.onboarding-wizard__question:hover {
    background: var(--bg-primary, #ffffff);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.onboarding-wizard__label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    color: var(--text-primary, #1f2937);
    font-size: 0.95rem;
    margin-bottom: 0.25rem;
}

.onboarding-wizard__label i {
    color: var(--primary-color, #3b82f6);
    font-size: 1rem;
}

.onboarding-wizard__select {
    padding: 0.75rem;
    border: 1px solid var(--border-color, #d1d5db);
    border-radius: 6px;
    font-size: 0.95rem;
    background: var(--bg-primary, #ffffff);
    transition: all 0.2s ease;
}

.onboarding-wizard__select:focus {
    outline: none;
    border-color: var(--primary-color, #3b82f6);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.onboarding-wizard__checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 4px;
    transition: background 0.2s ease;
}

.onboarding-wizard__checkbox-label:hover {
    background: rgba(59, 130, 246, 0.05);
}

.onboarding-wizard__checkbox-label span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    color: var(--text-primary, #1f2937);
}

.onboarding-wizard__checkbox-label i {
    color: var(--primary-color, #3b82f6);
}

.onboarding-wizard__checkbox {
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: var(--primary-color, #3b82f6);
}

.onboarding-wizard__textarea {
    padding: 0.75rem;
    border: 1px solid var(--border-color, #d1d5db);
    border-radius: 6px;
    font-size: 0.95rem;
    font-family: inherit;
    resize: vertical;
    min-height: 100px;
    transition: all 0.2s ease;
}

.onboarding-wizard__textarea:focus {
    outline: none;
    border-color: var(--primary-color, #3b82f6);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.onboarding-wizard__hint {
    margin: 0;
    color: var(--text-tertiary, #9ca3af);
    font-size: 0.85rem;
    font-style: italic;
}

.onboarding-wizard__footer {
    margin-top: 1rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color, #e5e7eb);
}

.onboarding-wizard__footer-note {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0;
    color: var(--text-secondary, #6b7280);
    font-size: 0.9rem;
}

.onboarding-wizard__footer-note i {
    color: var(--primary-color, #3b82f6);
}

/* ============================================================================
   Intake Modal Tabs Styles
   ============================================================================ */

.intake-modal__tabs {
    display: flex;
    gap: 0.5rem;
    border-bottom: 2px solid var(--border-color, #e5e7eb);
    margin-bottom: 1.5rem;
}

.intake-modal__tab {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border: none;
    background: none;
    color: var(--text-secondary, #6b7280);
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    border-bottom: 3px solid transparent;
    transition: all 0.2s ease;
}

.intake-modal__tab:hover {
    color: var(--text-primary, #1f2937);
    background: var(--bg-secondary, #f9fafb);
}

.intake-modal__tab--active {
    color: var(--primary-color, #3b82f6);
    border-bottom-color: var(--primary-color, #3b82f6);
}

.intake-modal__tab i {
    font-size: 1rem;
}

.intake-modal__content {
    position: relative;
}

.intake-modal__panel {
    display: none;
}

.intake-modal__panel--active {
    display: block;
}

/* ============================================================================
   Timeline View Styles (for Timeline tab)
   ============================================================================ */

.timeline-view {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.timeline-view__header {
    padding: 1.5rem;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border: 1px solid var(--border-color, #e5e7eb);
    border-radius: 8px;
    text-align: center;
}

.timeline-view__title {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    margin: 0 0 0.75rem 0;
    color: var(--text-primary, #1f2937);
    font-size: 1.35rem;
    font-weight: 600;
}

.timeline-view__title i {
    color: var(--primary-color, #3b82f6);
    font-size: 1.5rem;
}

.timeline-view__description {
    margin: 0;
    color: var(--text-secondary, #6b7280);
    font-size: 0.95rem;
    line-height: 1.5;
}

/* ============================================================================
   Onboarding Progress Styles
   ============================================================================ */

.onboarding-progress {
    min-height: 400px;
}

.onboarding-progress__loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 400px;
    color: var(--text-secondary, #6b7280);
    gap: 1rem;
}

.onboarding-progress__loading i {
    font-size: 2rem;
    color: var(--primary-color, #3b82f6);
}

.onboarding-progress__error {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 2rem;
    color: var(--error-color, #ef4444);
    background: var(--error-bg, #fef2f2);
    border: 1px solid var(--error-border, #fee2e2);
    border-radius: 8px;
}

.onboarding-progress__empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 400px;
    text-align: center;
    color: var(--text-secondary, #6b7280);
}

.onboarding-progress__empty i {
    font-size: 3rem;
    color: var(--success-color, #10b981);
    margin-bottom: 1rem;
}

.onboarding-progress__empty h3 {
    margin: 0 0 0.5rem 0;
    color: var(--text-primary, #1f2937);
}

.onboarding-progress__empty p {
    margin: 0;
    color: var(--text-secondary, #6b7280);
}

.onboarding-progress__summary {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border: 1px solid var(--border-color, #e5e7eb);
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.onboarding-progress__title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0 0 1.5rem 0;
    color: var(--text-primary, #1f2937);
    font-size: 1.25rem;
}

.onboarding-progress__title i {
    color: var(--primary-color, #3b82f6);
}

.onboarding-progress__stats {
    display: flex;
    gap: 2rem;
    margin-bottom: 1.5rem;
}

.onboarding-progress__stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
}

.onboarding-progress__stat-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color, #3b82f6);
}

.onboarding-progress__stat-label {
    font-size: 0.85rem;
    color: var(--text-secondary, #6b7280);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.onboarding-progress__bar {
    width: 100%;
    height: 12px;
    background: var(--bg-secondary, #f3f4f6);
    border-radius: 6px;
    overflow: hidden;
}

.onboarding-progress__bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color, #3b82f6), var(--primary-color-dark, #2563eb));
    transition: width 0.3s ease;
    border-radius: 6px;
}

.onboarding-progress__section {
    margin-bottom: 2rem;
}

.onboarding-progress__section-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0 0 1rem 0;
    color: var(--text-primary, #1f2937);
    font-size: 1.1rem;
}

.onboarding-progress__section-title i {
    color: var(--primary-color, #3b82f6);
}

.onboarding-progress__tasks {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.onboarding-task {
    display: flex;
    gap: 1rem;
    padding: 1rem;
    background: var(--bg-primary, #ffffff);
    border: 1px solid var(--border-color, #e5e7eb);
    border-radius: 8px;
    transition: all 0.2s ease;
}

.onboarding-task:hover {
    border-color: var(--primary-color, #3b82f6);
    box-shadow: 0 2px 4px rgba(59, 130, 246, 0.1);
}

.onboarding-task--completed {
    opacity: 0.7;
}

.onboarding-task__status {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    flex-shrink: 0;
}

.onboarding-task__icon--completed {
    color: var(--success-color, #10b981);
    font-size: 1.5rem;
}

.onboarding-task__icon--pending {
    color: var(--text-tertiary, #9ca3af);
    font-size: 1.5rem;
}

.onboarding-task__content {
    flex: 1;
    min-width: 0;
}

.onboarding-task__header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
}

.onboarding-task__name {
    font-weight: 600;
    color: var(--text-primary, #1f2937);
    font-size: 0.95rem;
}

.onboarding-task__state {
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.onboarding-task__meta {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    font-size: 0.85rem;
    color: var(--text-secondary, #6b7280);
}

.onboarding-task__assignee,
.onboarding-task__due {
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.onboarding-task__assignee i,
.onboarding-task__due i {
    color: var(--text-tertiary, #9ca3af);
}
