


/* Стили для Kanban доски задач */
.ar-tasks-kanban {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.ar-tasks-column {
    background: #f8fafc;
    border-radius: 12px;
    padding: 16px;
    border: 1px solid #e2e8f0;
    min-height: 400px;
}

.ar-tasks-column-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 2px solid #e2e8f0;
}

.ar-tasks-column-header h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: #1e293b;
}

.ar-column-count {
    background: #64748b;
    color: white;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}

.ar-tasks-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-height: 200px;
}

/* Стили карточки задачи */
.ar-task-card {
    background: white;
    border-radius: 8px;
    padding: 16px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    cursor: move;
    transition: all 0.2s ease;
}

.ar-task-card:hover {
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transform: translateY(-1px);
}

.ar-task-card.dragging {
    opacity: 0.5;
    transform: rotate(5deg);
}

.ar-task-card.overdue {
    border-left: 4px solid #dc2626;
}

.ar-task-card.completed {
    opacity: 0.7;
    background: #f0fdf4;
    border-left: 4px solid #16a34a;
}

.ar-task-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 12px;
}

.ar-task-title {
    margin: 0;
    font-size: 14px;
    font-weight: 600;
    color: #1e293b;
    flex: 1;
}

.ar-task-actions {
    display: flex;
    gap: 4px;
}

.ar-task-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    font-size: 12px;
    transition: background 0.2s ease;
}

.ar-task-btn:hover {
    background: #f1f5f9;
}

.ar-task-description {
    font-size: 13px;
    color: #64748b;
    line-height: 1.4;
    margin-bottom: 12px;
}

.ar-task-meta {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.ar-task-project-badge {
    background: #e0f2fe;
    color: #0369a1;
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 11px;
    cursor: pointer;
    transition: background 0.2s ease;
}

.ar-task-project-badge:hover {
    background: #bae6fd;
}

.ar-task-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
}

.ar-task-deadline {
    color: #64748b;
}

.ar-task-deadline.overdue {
    color: #dc2626;
    font-weight: 600;
}

.ar-task-overdue-badge {
    background: #fef2f2;
    color: #dc2626;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 10px;
    margin-left: 8px;
}

/* Стили приоритетов */
.ar-priority-badge {
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 600;
}

.ar-priority-badge.low {
    background: #f0fdf4;
    color: #16a34a;
}

.ar-priority-badge.medium {
    background: #fefce8;
    color: #ca8a04;
}

.ar-priority-badge.high {
    background: #fef2f2;
    color: #dc2626;
}

.ar-priority-badge.urgent {
    background: #fef2f2;
    color: #dc2626;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.7; }
    100% { opacity: 1; }
}

/* Стили для drag & drop */
.ar-tasks-column.drag-over {
    background: rgba(255, 121, 0, 0.1);
    border: 2px dashed #ff7900;
}

.ar-empty-column {
    text-align: center;
    padding: 40px 20px;
    color: #94a3b8;
}

.ar-empty-icon {
    font-size: 32px;
    margin-bottom: 8px;
}


/* Стили для кнопки Tascuri */
.btn-tasks {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    transition: all 0.3s ease;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    border: none;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
}

.btn-tasks:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(16, 185, 129, 0.4);
    color: white;
    text-decoration: none;
}

.btn-tasks:active {
    transform: translateY(0);
}

.btn-tasks svg {
    width: 20px;
    height: 20px;
}

/* Адаптивность для кнопок хедера */
@media (max-width: 1024px) {
    .action-buttons {
        flex-wrap: wrap;
        gap: 8px;
    }
    
    .btn-tasks,
    .btn-primary,
    .btn-secondary {
        font-size: 13px;
        padding: 8px 16px;
    }
}

@media (max-width: 768px) {
    .header-actions {
        flex-direction: column;
        gap: 16px;
        width: 100%;
    }
    
    .action-buttons {
        width: 100%;
        justify-content: space-between;
    }
    
    .btn-tasks,
    .btn-primary,
    .btn-secondary {
        flex: 1;
        min-width: 120px;
        justify-content: center;
    }
    
    .btn-tasks span,
    .btn-primary span,
    .btn-secondary span {
        display: none;
    }
    
    .btn-tasks::after {
        content: "📝";
    }
    
    .btn-primary::after {
        content: "👤";
    }
    
    .btn-secondary::after {
        content: "🚪";
    }
}

@media (max-width: 480px) {
    .action-buttons {
        flex-direction: column;
    }
    
    .btn-tasks,
    .btn-primary,
    .btn-secondary {
        width: 100%;
    }
    
    .btn-tasks::after,
    .btn-primary::after,
    .btn-secondary::after {
        content: "";
    }
    
    .btn-tasks span,
    .btn-primary span,
    .btn-secondary span {
        display: inline;
    }
}


/* Стили для деталей заказа */
.ar-order-details {
    color: #334155;
}

.ar-details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.ar-details-section {
    background: white;
    padding: 20px;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.ar-details-section h3 {
    margin: 0 0 16px 0;
    color: #1e293b;
    font-size: 16px;
    font-weight: 600;
    border-bottom: 2px solid #f1f5f9;
    padding-bottom: 8px;
}

.ar-details-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.ar-detail-item {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 8px 0;
    border-bottom: 1px solid #f8fafc;
}

.ar-detail-label {
    color: #64748b;
    font-weight: 500;
    font-size: 14px;
    flex: 1;
}

.ar-detail-value {
    color: #1e293b;
    font-weight: 400;
    font-size: 14px;
    text-align: right;
    flex: 1;
}

.ar-products-table {
    overflow-x: auto;
    margin-top: 16px;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}

.ar-products-table table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
    min-width: 600px;
}

.ar-products-table th {
    background: #f8fafc;
    color: #374151;
    font-weight: 600;
    text-align: left;
    padding: 12px;
    border-bottom: 2px solid #e2e8f0;
}

.ar-products-table td {
    padding: 12px;
    border-bottom: 1px solid #f1f5f9;
    color: #475569;
}

.ar-products-table tr:last-child td {
    border-bottom: none;
}

.ar-products-table tr:nth-child(even) {
    background: #fafafa;
}

.ar-products-table small {
    color: #64748b;
    font-size: 12px;
    display: block;
    margin-top: 4px;
}

.ar-notes {
    background: #f8fafc;
    padding: 16px;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    line-height: 1.5;
    color: #475569;
}

/* Стили для уведомлений в деталях заказа */
.ar-order-details .ar-notification-note {
    background: #fffbeb;
    border: 1px solid #fcd34d;
    border-radius: 8px;
    padding: 12px 16px;
    margin: 16px 0;
}

.ar-order-details .ar-notification-note p {
    margin: 0;
    color: #92400e;
    font-size: 14px;
    line-height: 1.4;
}

/* Адаптивность */
@media (max-width: 768px) {
    .ar-details-grid {
        grid-template-columns: 1fr;
    }
    
    .ar-detail-item {
        flex-direction: column;
        gap: 4px;
    }
    
    .ar-detail-value {
        text-align: left;
    }
    
    .ar-products-table {
        font-size: 12px;
    }
    
    .ar-products-table th,
    .ar-products-table td {
        padding: 8px;
    }
}
/* Стили для вкладок */
.ar-tabs {
    display: flex;
    border-bottom: 1px solid #e2e8f0;
    background: #f8fafc;
    border-radius: 8px 8px 0 0;
    margin-bottom: 20px;
}

.ar-tab-btn {
    flex: 1;
    background: none;
    border: none;
    padding: 12px 16px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-weight: 500;
    color: #64748b;
    border-bottom: 2px solid transparent;
}

.ar-tab-btn.active {
    background: white;
    color: #1e293b;
    border-bottom: 2px solid #ff7900;
}

.ar-tab-btn:hover {
    background: #f1f5f9;
    color: #475569;
}

.ar-tab-content {
    display: none;
}

.ar-tab-content.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Стили для чекбоксов */
.ar-checkbox-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    margin-bottom: 12px;
    color: #374151;
    font-weight: 500;
}

.ar-checkbox-label input[type="checkbox"] {
    display: none;
}

.checkmark {
    width: 20px;
    height: 20px;
    border: 2px solid #d1d5db;
    border-radius: 4px;
    margin-right: 10px;
    position: relative;
    transition: all 0.2s ease;
}

.ar-checkbox-label input[type="checkbox"]:checked + .checkmark {
    background: #ff7900;
    border-color: #ff7900;
}

.ar-checkbox-label input[type="checkbox"]:checked + .checkmark::after {
    content: '✓';
    position: absolute;
    color: white;
    font-size: 14px;
    font-weight: bold;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

/* Стили для списка уведомлений */
.notifications-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-height: 300px;
    overflow-y: auto;
}

.notification-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    transition: all 0.2s ease;
    position: relative;
}

.notification-item.unread {
    background: #f0f9ff;
    border-color: #bae6fd;
}

.notification-item.read {
    background: #f8fafc;
    opacity: 0.8;
}

.notification-icon {
    font-size: 18px;
    flex-shrink: 0;
}

.notification-content {
    flex: 1;
}

.notification-content h4 {
    margin: 0 0 4px 0;
    color: #1e293b;
    font-size: 14px;
    font-weight: 600;
}

.notification-content p {
    margin: 0 0 4px 0;
    color: #475569;
    font-size: 13px;
    line-height: 1.4;
}

.notification-time {
    font-size: 12px;
    color: #94a3b8;
}

.notification-mark-read {
    background: none;
    border: none;
    color: #64748b;
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.notification-mark-read:hover {
    background: #e2e8f0;
    color: #475569;
}

/* Стили для секций форм */
.form-section {
    background: white;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    margin-bottom: 20px;
}

.form-section h3 {
    margin: 0 0 16px 0;
    color: #1e293b;
    font-size: 16px;
    font-weight: 600;
    padding-bottom: 8px;
    border-bottom: 1px solid #f1f5f9;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

@media (max-width: 768px) {
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .ar-tabs {
        flex-direction: column;
    }
}

.description {
    font-size: 12px;
    color: #64748b;
    margin-top: 4px;
    font-style: italic;
}




/* Все CSS стили из оригинального кода */
.ar-crm-container {
    max-width: 100%;
    margin: 0 auto;
    min-height: 100vh;
    color: #334155;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Индикатор уведомлений на кнопке */
.ar-notification-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background: #dc2626;
    color: white;
    border-radius: 12px;
    padding: 2px 6px;
    font-size: 10px;
    font-weight: bold;
    min-width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid white;
    animation: arPulse 2s infinite;
}

.ar-notification-badge.urgent {
    background: #dc2626;
    animation: arPulseUrgent 1s infinite;
}

@keyframes arPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

@keyframes arPulseUrgent {
    0%, 100% { 
        transform: scale(1);
        background: #dc2626;
    }
    50% { 
        transform: scale(1.2);
        background: #ef4444;
    }
}

/* Модальное окно уведомлений */
.ar-notifications-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    z-index: 10003;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.ar-notifications-modal {
    background: white;
    border-radius: 16px;
    max-width: 600px;
    width: 100%;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: arModalSlideIn 0.3s ease-out;
}

.ar-notifications-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #e2e8f0;
    background: #f8fafc;
    border-radius: 16px 16px 0 0;
}

.ar-notifications-header h2 {
    margin: 0;
    color: #1e293b;
}

.ar-notifications-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.ar-notifications-close {
    background: none;
    border: none;
    color: #64748b;
    cursor: pointer;
    padding: 8px;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.ar-notifications-close:hover {
    background: #e2e8f0;
}

.ar-notifications-tabs {
    display: flex;
    border-bottom: 1px solid #e2e8f0;
    background: #f8fafc;
}

.ar-tab-btn {
    flex: 1;
    background: none;
    border: none;
    padding: 12px 16px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-weight: 500;
    color: #64748b;
}

.ar-tab-btn.active {
    background: white;
    color: #1e293b;
    border-bottom: 2px solid #3b82f6;
}

.ar-notifications-content {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
}

.ar-tab-content {
    display: none;
}

.ar-tab-content.active {
    display: block;
}

/* Стили для пропущенных алертов */
.ar-missed-popups-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.ar-missed-popup-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    transition: all 0.2s ease;
}

.ar-missed-popup-item.critical {
    background: #fef2f2;
    border-color: #fecaca;
}

.ar-missed-popup-item.high {
    background: #fffbeb;
    border-color: #fed7aa;
}

.ar-missed-popup-icon {
    font-size: 20px;
    flex-shrink: 0;
}

.ar-missed-popup-content {
    flex: 1;
}

.ar-missed-popup-title {
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 4px;
}

.ar-missed-popup-message {
    color: #64748b;
    font-size: 14px;
    line-height: 1.4;
    margin-bottom: 4px;
}

.ar-missed-popup-time {
    font-size: 12px;
    color: #94a3b8;
}

.ar-btn-small {
    padding: 6px 12px;
    font-size: 12px;
    white-space: nowrap;
}

/* Анимации */
@keyframes arModalSlideIn {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(-20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

@keyframes arPopupSlideOut {
    from {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
    to {
        opacity: 0;
        transform: scale(0.9) translateY(-20px);
    }
}

@keyframes arHighlightTask {
    0%, 100% { background-color: transparent; }
    50% { background-color: rgba(255, 247, 237, 0.8); }
}       
        
 /* В существующие стили .ar-kanban-board добавьте: */
.ar-kanban-board {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
    align-items: start;
    min-width: 0;
    align-items: stretch; /* Добавьте эту строку */
}

.ar-kanban-column {
    background: #ffffff;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
    min-height: 600px;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    scrollbar-gutter: stable;
    height: 100%; /* Добавьте эту строку */
    display: flex;
    flex-direction: column; /* Добавьте эту строку */
}

.ar-column-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 20px;
    border-bottom: 1px solid #f1f5f9;
    position: sticky;
    top: 0;
    background: #ffffff;
    z-index: 1;
    border-radius: 16px 16px 0 0;
    flex-shrink: 0; /* Добавьте эту строку */
}

    
        
        
        
        
        /* Стили для задач */
.ar-tasks-section {
    background: white;
    border-radius: 16px;
    padding: 24px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.ar-task-item {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 12px;
    transition: all 0.3s ease;
}

.ar-task-item:hover {
    border-color: #ff7900;
    box-shadow: 0 4px 12px rgba(255, 121, 0, 0.15);
}

.ar-task-item.overdue {
    border-left: 4px solid #dc2626;
    background: rgba(220, 38, 38, 0.05);
}

.ar-task-item.urgent {
    border-left: 4px solid #f59e0b;
    background: rgba(245, 158, 11, 0.05);
}

.ar-task-item.completed {
    border-left: 4px solid #10b981;
    background: rgba(16, 185, 129, 0.05);
    opacity: 0.7;
}

.ar-task-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 8px;
}

.ar-task-title {
    margin: 0;
    color: #1e293b;
    font-size: 16px;
    font-weight: 600;
    flex: 1;
}

.ar-task-project {
    background: #f1f5f9;
    color: #64748b;
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.ar-task-project:hover {
    background: #ff7900;
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(255, 121, 0, 0.3);
}

.ar-task-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid #f1f5f9;
}

.ar-task-deadline {
    font-size: 14px;
    color: #64748b;
}

.ar-task-deadline.overdue {
    color: #dc2626;
    font-weight: 600;
}

.ar-task-deadline.urgent {
    color: #f59e0b;
    font-weight: 600;
}

.ar-task-actions {
    display: flex;
    gap: 8px;
}

.ar-task-btn {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    padding: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.ar-task-btn:hover {
    background: #ff7900;
    border-color: #ff7900;
    transform: scale(1.05);
}
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        /* СТИЛИ ДЛЯ КАСТОМНОГО СКРОЛЛБАРА */
        .ar-kanban-column::-webkit-scrollbar {
            width: 6px;
        }

        .ar-kanban-column::-webkit-scrollbar-track {
            background: #f1f5f9;
            border-radius: 3px;
        }

        .ar-kanban-column::-webkit-scrollbar-thumb {
            background: #cbd5e1;
            border-radius: 3px;
            transition: all 0.3s ease;
        }

        .ar-kanban-column::-webkit-scrollbar-thumb:hover {
            background: #94a3b8;
        }

        .ar-kanban-column::-webkit-scrollbar-thumb:active {
            background: #64748b;
        }

        /* Для Firefox */
        .ar-kanban-column {
            scrollbar-width: thin;
            scrollbar-color: #cbd5e1 #f1f5f9;
        }

        /* СТИЛИ ДЛЯ СКРОЛЛБАРА В МОДАЛЬНЫХ ОКНАХ */
        .ar-modal-body::-webkit-scrollbar {
            width: 6px;
        }

        .ar-modal-body::-webkit-scrollbar-track {
            background: #f8fafc;
            border-radius: 3px;
        }

        .ar-modal-body::-webkit-scrollbar-thumb {
            background: #cbd5e1;
            border-radius: 3px;
        }

        .ar-modal-body::-webkit-scrollbar-thumb:hover {
            background: #94a3b8;
        }

        /* Для Firefox в модальных окнах */
        .ar-modal-body {
            scrollbar-width: thin;
            scrollbar-color: #cbd5e1 #f8fafc;
        }

        /* СТИЛИ ДЛЯ СКРОЛЛБАРА В ТАБЛИЦАХ */
        .ar-products-table::-webkit-scrollbar {
            height: 6px;
        }

        .ar-products-table::-webkit-scrollbar-track {
            background: #f1f5f9;
            border-radius: 3px;
        }

        .ar-products-table::-webkit-scrollbar-thumb {
            background: #cbd5e1;
            border-radius: 3px;
        }

        .ar-products-table::-webkit-scrollbar-thumb:hover {
            background: #94a3b8;
        }

        /* Улучшаем отображение таблиц с прокруткой */
        .ar-products-table {
            overflow-x: auto;
            scrollbar-width: thin;
            scrollbar-color: #cbd5e1 #f1f5f9;
        }

        /* ПЛАВНЫЙ СКРОЛЛ */
        .ar-kanban-column,
        .ar-modal-body,
        .ar-products-table {
            scroll-behavior: smooth;
        }

        /* ОСНОВНЫЕ СТИЛИ СВЕТЛОЙ ТЕМЫ */
        .ar-crm-container {
            max-width: 100%;
            margin: 0 auto;
            
            min-height: 100vh;
            color: #334155;
            font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
        }

        /* Хедер */
.ar-crm-header {
    background: white !important;
    border-radius: 20px;
    padding: 24px;
    margin-bottom: 24px;
    /*box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);*/
    border: 1px solid #ffffff;
}

.ar-header-main {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 20px;
    gap: 24px;
}

/* Брендинг */
.company-branding {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    flex: 1;
}

.company-logo {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    object-fit: cover;
    border: 2px solid #f8fafc;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

.logo-placeholder {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    box-shadow: 0 2px 12px rgba(102, 126, 234, 0.3);
}

.company-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.company-name {
    font-size: 28px;
    font-weight: 800;
    color: #1e293b;
    margin: 0;
    line-height: 1.1;
    background: linear-gradient(135deg, #1e293b 0%, #475569 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.company-subtitle {
    font-size: 14px;
    color: #64748b;
    margin: 0;
    font-weight: 500;
}

/* Действия */
.header-actions {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-shrink: 0;
}

.quick-stats {
    display: flex;
    align-items: center;
}

.stat-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #f8fafc;
    padding: 8px 16px;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
}

.stat-icon {
    font-size: 16px;
}

.stat-time {
    font-size: 14px;
    font-weight: 600;
    color: #1e293b;
}

.action-buttons {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Кнопки */
.btn-refresh, .btn-primary, .btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 14px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn-refresh {
    background: #f1f5f9;
    color: #475569;
    border: 1.5px solid #e2e8f0;
}

.btn-refresh:hover {
    background: white;
    border-color: #3b82f6;
    color: #3b82f6;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.15);
}

.btn-primary {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    color: white;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(59, 130, 246, 0.4);
}

.btn-secondary {
    background: white;
    color: #64748b;
    border: 1.5px solid #e2e8f0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.btn-secondary:hover {
    border-color: #ef4444;
    color: #ef4444;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.15);
}

/* Компактная статистика */
.ar-stats-compact {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    padding-top: 20px;
    border-top: 1px solid #f1f5f9;
}

.stat-item {
    background: transparent;
    border: none;
    padding: 0;
}

.stat-content {
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}

.stat-label {
    font-size: 13px;
    color: #64748b;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    margin: 0;
}

.stat-number {
    font-size: 18px;
    font-weight: 700;
    color: #1e293b;
    margin: 0;
}

/* Еще более компактный вариант */
.ar-stats-compact.ultra-compact .stat-item {
    gap: 4px;
}

.ar-stats-compact.ultra-compact .stat-label {
    font-size: 12px;
}

.ar-stats-compact.ultra-compact .stat-number {
    font-size: 16px;
}

/* Альтернативный вариант - вертикальное расположение */
.ar-stats-compact.vertical {
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.ar-stats-compact.vertical .stat-item {
    text-align: center;
}

.ar-stats-compact.vertical .stat-content {
    flex-direction: column;
    gap: 4px;
    align-items: center;
}

.ar-stats-compact.vertical .stat-number {
    text-align: center;
    font-size: 20px;
}

/* Адаптивность */
@media (max-width: 768px) {
    .ar-stats-compact {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .stat-content {
        justify-content: space-between;
    }
    
    .stat-label {
        font-size: 12px;
    }
    
    .stat-number {
        font-size: 16px;
    }
}

/* Вариант с минимальным расстоянием */
.ar-stats-compact.compact .stat-content {
    gap: 4px;
}

.ar-stats-compact.compact .stat-label {
    font-size: 12px;
    letter-spacing: 0.2px;
}

.ar-stats-compact.compact .stat-number {
    font-size: 16px;
}

.stat-number {
    font-size: 18px;
    font-weight: 700;
    color: #1e293b;
    margin: 0;
    text-align: right;
    min-width: 80px;
}

/* Адаптивность */
@media (max-width: 1024px) {
    .ar-header-main {
        flex-direction: column;
        gap: 20px;
    }
    
    .header-actions {
        width: 100%;
        justify-content: space-between;
    }
}

@media (max-width: 768px) {
    .ar-crm-header {
        padding: 20px;
    }
    
    .company-name {
        font-size: 24px;
    }
    
    .action-buttons {
        flex-direction: column;
        width: 100%;
    }
    
    .btn-refresh, .btn-primary, .btn-secondary {
        width: 100%;
        justify-content: center;
    }
    
    .ar-stats-compact {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .stat-content {
        justify-content: space-between;
    }
}

@media (max-width: 480px) {
    .company-branding {
        flex-direction: column;
        text-align: center;
        align-items: center;
    }
    
    .header-actions {
        flex-direction: column;
        gap: 16px;
    }
    
    .quick-stats {
        justify-content: center;
    }
}

        .ar-empty-state {
            text-align: center;
            padding: 80px 40px;
            background: #ffffff;
            border-radius: 20px;
            border: 2px dashed #e2e8f0;
            margin: 40px 0;
        }

        .ar-empty-state .ar-empty-icon {
            font-size: 64px;
            margin-bottom: 24px;
            opacity: 0.7;
        }

        .ar-empty-state h3 {
            color: #1e293b;
            margin-bottom: 16px;
            font-size: 20px;
            font-weight: 600;
        }

        .ar-empty-state p {
            color: #64748b;
            font-size: 16px;
            line-height: 1.5;
        }

        .ar-kanban-board {
            display: grid;
            grid-template-columns: repeat(5, 1fr);
            gap: 20px;
            align-items: start;
            min-width: 0;
        }

        .ar-kanban-column {
            background: #ffffff;
            border-radius: 16px;
            border: 1px solid #e2e8f0;
            min-height: 600px;
            max-height: 80vh;
            overflow-y: auto;
            box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
            scrollbar-gutter: stable;
        }

        .ar-column-header {
            display: flex;
            align-items: center;
            gap: 12px;
            padding: 20px;
            border-bottom: 1px solid #f1f5f9;
            position: sticky;
            top: 0;
            background: #ffffff;
            z-index: 1;
            border-radius: 16px 16px 0 0;
        }

        .ar-column-icon {
            font-size: 18px;
        }

        .ar-column-header h3 {
            margin: 0;
            color: #1e293b;
            font-size: 16px;
            font-weight: 700;
            flex: 1;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }

        .ar-column-count {
            background: linear-gradient(135deg, #ff7900 0%, #e56a00 100%);
            color: #fff;
            padding: 4px 10px;
            border-radius: 20px;
            font-size: 12px;
            font-weight: 700;
            min-width: 24px;
            text-align: center;
            box-shadow: 0 2px 8px rgba(255, 121, 0, 0.3);
        }

        .ar-projects-list {
            padding: 16px;
            min-height: 500px;
            transition: all 0.3s ease;
            padding-right: 8px;
        }

        /* СТИЛЬНАЯ СВЕТЛАЯ КАРТОЧКА ПРОЕКТА */
        .ar-project-card {
            background: #ffffff;
            border: 1px solid #959595;
            border-radius: 12px;
            padding: 20px;
            margin-bottom: 16px;
            cursor: move;
            transition: all 0.3s ease;
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
            position: relative;
            overflow: hidden;
        }

        .ar-project-card::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            width: 4px;
            height: 100%;
            background: linear-gradient(135deg, #ff7900 0%, #e56a00 100%);
            opacity: 0;
            transition: opacity 0.3s ease;
        }

        .ar-project-card:hover {
            border-color: #ff7900;
            transform: translateY(-4px);
            box-shadow: 0 8px 25px rgba(255, 121, 0, 0.15);
        }

        .ar-project-card:hover::before {
            opacity: 1;
        }

        .ar-project-card.dragging {
            opacity: 0.6;
            transform: rotate(5deg);
            box-shadow: 0 8px 25px rgba(255, 121, 0, 0.25);
        }

        .ar-project-card-header {
            display: flex;
            justify-content: space-between;
            align-items: flex-start;
            margin-bottom: 16px;
            padding-bottom: 16px;
            border-bottom: 1px solid #f8fafc;
        }

        .ar-project-card-header h4 {
            margin: 0;
            color: #1e293b;
            font-size: 16px;
            line-height: 1.4;
            flex: 1;
            margin-right: 12px;
            font-weight: 600;
        }

        .ar-project-actions {
            display: flex;
            gap: 8px;
            flex-shrink: 0;
        }

        .ar-btn-icon {
            background: #f8fafc;
            border: 1px solid #e2e8f0;
            color: #64748b;
            cursor: pointer;
            padding: 8px;
            border-radius: 8px;
            transition: all 0.2s ease;
            width: 36px;
            height: 36px;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .ar-btn-icon:hover {
            background: linear-gradient(135deg, #ff7900 0%, #e56a00 100%);
            border-color: #ff7900;
            color: #fff;
            transform: scale(1.05);
        }

        .ar-btn-icon svg {
            width: 16px;
            height: 16px;
        }

        .ar-project-card-body {
            display: flex;
            flex-direction: column;
            gap: 12px;
            margin-bottom: 16px;
        }

        .ar-project-field {
            display: flex;
            justify-content: space-between;
            font-size: 14px;
            align-items: flex-start;
            line-height: 1.4;
        }

        .ar-field-label {
            color: #64748b;
            font-weight: 600;
            flex-shrink: 0;
            margin-right: 12px;
            min-width: 90px;
            font-size: 13px;
        }

        .ar-field-value {
            color: #1e293b;
            font-weight: 200;
            text-align: right;
            flex: 1;
            line-height: 1.4;
        }

        .ar-project-card-footer {
            text-align: center;
            padding-top: 16px;
            border-top: 1px solid #f8fafc;
        }

        .ar-btn-details {
            background: transparent;
            color: #ff7900;
            border: 1px solid transparent;
            padding: 8px 14px;
            border-radius: 8px;
            font-size: 13px;
            cursor: pointer;
            transition: all 0.3s ease;
            width: 100%;
            white-space: nowrap;
            font-weight: 600;
            box-shadow: none;
            position: relative;
            background: linear-gradient(white, white) padding-box,
                        linear-gradient(135deg, #ff7900, #e56a00) border-box;
        }

        .ar-btn-details:hover {
            background: linear-gradient(135deg, #ff7900, #e56a00) padding-box,
                        linear-gradient(135deg, #ff7900, #e56a00) border-box;
            color: white;
            transform: translateY(-2px);
            box-shadow: 0 4px 12px rgba(255, 121, 0, 0.3);
        }

        .ar-empty-column {
            text-align: center;
            padding: 40px 20px;
            color: #94a3b8;
        }

        .ar-empty-icon {
            font-size: 32px;
            margin-bottom: 12px;
            opacity: 0.5;
        }

        .ar-empty-column p {
            margin: 0;
            font-size: 14px;
            color: #64748b;
        }

        /* СТИЛЬНЫЕ МОДАЛЬНЫЕ ОКНА */
       /* Модальные окна - исправленные стили */
.ar-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(8px);
    z-index: 10000;
    align-items: center;
    justify-content: center;
    animation: arModalFadeIn 0.3s ease;
}

.ar-modal-content {
    background: #ffffff;
    border-radius: 20px;
    width: 90%;
    max-width: 800px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    border: 1px solid #e2e8f0;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
    animation: arModalSlideIn 0.3s ease;
    color: #1e293b; /* Добавляем цвет текста */
}

.ar-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px;
    border-bottom: 1px solid #f1f5f9;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-radius: 20px 20px 0 0;
}

.ar-modal-header h2 {
    margin: 0;
    color: #1e293b; /* Цвет заголовка */
    font-size: 24px;
    font-weight: 700;
}

.ar-modal-close {
    background: #f1f5f9;
    border: none;
    color: #64748b;
    font-size: 20px;
    cursor: pointer;
    padding: 0;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.ar-modal-close:hover {
    background: #e2e8f0;
    color: #475569;
}

.ar-modal-body {
    padding: 24px;
    overflow-y: auto;
    flex: 1;
    color: #334155; /* Цвет текста в теле модального окна */
    line-height: 1.6;
}

.ar-modal-body h3 {
    color: #1e293b;
    margin: 0 0 16px 0;
    font-size: 18px;
    font-weight: 600;
}

.ar-modal-body p {
    color: #475569;
    margin: 0 0 16px 0;
}

.ar-modal-body .ar-form-group {
    margin-bottom: 20px;
}

.ar-modal-body .ar-form-label {
    display: block;
    color: #374151;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 8px;
}

.ar-modal-body .ar-form-input {
    width: 100%;
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    padding: 12px 16px;
    color: #1f2937; /* Цвет текста в инпутах */
    font-size: 14px;
    transition: all 0.3s ease;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.ar-modal-body .ar-form-input:focus {
    outline: none;
    border-color: #ff7900;
    box-shadow: 0 0 0 3px rgba(255, 121, 0, 0.1);
    background: #fafbfc;
}

.ar-modal-body .ar-form-input::placeholder {
    color: #9ca3af;
}

.ar-modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    padding: 24px;
    border-top: 1px solid #f1f5f9;
    background: #f8fafc;
    border-radius: 0 0 20px 20px;
}

.ar-modal-footer .ar-btn {
    color: #ff7900; /* Цвет текста кнопок */
}

.ar-modal-footer .ar-btn-primary {
    color: #ffffff; /* Белый текст для основной кнопки */
}

/* Стили для таблиц внутри модальных окон */
.ar-modal-body table {
    width: 100%;
    border-collapse: collapse;
    color: #1e293b;
}

.ar-modal-body th {
    background: #f8fafc;
    color: #374151;
    font-weight: 600;
    text-align: left;
    padding: 12px;
    border-bottom: 1px solid #e2e8f0;
}

.ar-modal-body td {
    padding: 12px;
    border-bottom: 1px solid #f1f5f9;
    color: #475569;
}

/* Стили для списков внутри модальных окон */
.ar-modal-body .ar-details-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.ar-modal-body .ar-detail-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid #f8fafc;
}

.ar-modal-body .ar-detail-label {
    color: #64748b;
    font-weight: 500;
    font-size: 14px;
}

.ar-modal-body .ar-detail-value {
    color: #1e293b;
    font-weight: 400;
    font-size: 14px;
    text-align: right;
}

/* Стили для уведомлений внутри модальных окон */
.ar-modal-body .login-message {
    margin: 15px 0;
    padding: 12px 16px;
    border-radius: 8px;
    display: none;
    font-size: 14px;
}

.ar-modal-body .login-message.success {
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid #10b981;
    color: #059669;
}

.ar-modal-body .login-message.error {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid #ef4444;
    color: #dc2626;
}

@keyframes arModalFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes arModalSlideIn {
    from { 
        transform: scale(0.9) translateY(-20px);
        opacity: 0;
    }
    to { 
        transform: scale(1) translateY(0);
        opacity: 1;
    }
}

/* Адаптивность для модальных окон */
@media (max-width: 768px) {
    .ar-modal-content {
        width: 95%;
        margin: 20px;
    }
    
    .ar-modal-header {
        padding: 20px;
    }
    
    .ar-modal-body {
        padding: 20px;
    }
    
    .ar-modal-footer {
        padding: 20px;
        flex-direction: column;
    }
    
    .ar-modal-footer .ar-btn {
        width: 100%;
    }
}

        .ar-btn {
            background: transparent;
            border: 1px solid transparent;
            padding: 10px 22px;
            border-radius: 999px;
            color: #ff7900;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.3s ease;
            position: relative;
            background: linear-gradient(white, white) padding-box,
                        linear-gradient(135deg, #ff7900, #e56a00) border-box;
        }

        .ar-btn:hover {
            background: linear-gradient(135deg, #ff7900, #e56a00) padding-box,
                        linear-gradient(135deg, #ff7900, #e56a00) border-box;
            color: white;
            transform: translateY(-2px);
            box-shadow: 0 4px 12px rgba(255, 121, 0, 0.3);
        }

        .ar-btn-primary {
            background: linear-gradient(135deg, #ff7900 0%, #e56a00 100%);
            color: #fff;
            box-shadow: 0 2px 8px rgba(255, 121, 0, 0.3);
            border: none;
        }

        .ar-btn-primary:hover {
            background: linear-gradient(135deg, #e56a00 0%, #cc5f00 100%);
            transform: translateY(-1px);
            box-shadow: 0 4px 12px rgba(255, 121, 0, 0.4);
        }

        .ar-btn-secondary {
            background: #f1f5f9;
            color: #475569;
            border: 1px solid #e2e8f0;
        }

        .ar-btn-secondary:hover {
            background: #e2e8f0;
            color: #374151;
        }

        .ar-form-group {
            margin-bottom: 24px;
        }

        .ar-form-label {
            display: block;
            color: #374151;
            font-size: 14px;
            font-weight: 600;
            margin-bottom: 8px;
        }

        .ar-form-input {
            width: 100%;
            background: #ffffff;
            border: 1px solid #d1d5db;
            border-radius: 8px;
            padding: 12px 16px;
            color: #1f2937;
            font-size: 14px;
            transition: all 0.3s ease;
            box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
        }

        .ar-form-input:focus {
            outline: none;
            border-color: #ff7900;
            box-shadow: 0 0 0 3px rgba(255, 121, 0, 0.1);
            background: #fafbfc;
        }

        .ar-form-input::placeholder {
            color: #9ca3af;
        }

        /* Стили для формы входа */
        .manufacturer-login-overlay { 
            display:flex; align-items:center; justify-content:center; 
            min-height:60vh; padding:40px 20px;
        }
        .manufacturer-login-form { 
            width:min(400px,90vw); padding:40px 30px; 
            background:#ffffff; border-radius:20px; 
            border:1px solid #e2e8f0; box-shadow:0 20px 60px rgba(0,0,0,.1); 
            text-align:center; 
        }
        .login-header{ margin-bottom:30px; }
        .login-icon{ 
            width:60px;height:60px; 
            background:linear-gradient(135deg,#ff7900 0%,#e56a00 100%); 
            border-radius:15px; margin:0 auto 20px; 
            display:flex; align-items:center; justify-content:center; 
            font-size:24px; color:#fff; 
        }
        .login-header h3{ 
            color:#1e293b; margin:0 0 10px; 
            font-size:22px; font-weight:600; 
        }
        .login-header p{ color:#64748b; margin:0; font-size:14px; }
        .login-message{ 
            margin:15px 0; padding:12px 16px; border-radius:8px; 
            display:none; font-size:14px; 
        }
        .login-message.success{ 
            background:rgba(16,185,129,.1); 
            border:1px solid #10b981; color:#059669; 
        }
        .login-message.error{ 
            background:rgba(239,68,68,.1); 
            border:1px solid #ef4444; color:#dc2626; 
        }
        .login-footer{ color:#64748b; font-size:12px; margin:20px 0 0; }

        /* Стили для загрузки логотипа */
        .logo-upload-container {
            border: 2px dashed #d1d5db;
            border-radius: 12px;
            padding: 30px;
            text-align: center;
            transition: all 0.3s ease;
            background: #fafafa;
        }

        .logo-upload-container:hover {
            border-color: #ff7900;
            background: #f8fafc;
        }

        .logo-upload-container.dragover {
            border-color: #ff7900;
            background: rgba(255, 121, 0, 0.05);
        }

        .logo-preview {
            max-width: 200px;
            max-height: 100px;
            margin: 0 auto 15px;
            display: none;
        }

        .logo-preview img {
            max-width: 100%;
            max-height: 100px;
            border-radius: 8px;
            box-shadow: 0 2px 8px rgba(0,0,0,0.1);
        }

        .upload-btn {
            background: linear-gradient(135deg, #ff7900 0%, #e56a00 100%);
            color: white;
            border: none;
            padding: 10px 20px;
            border-radius: 8px;
            cursor: pointer;
            font-weight: 600;
            transition: all 0.3s ease;
        }

        .upload-btn:hover {
            transform: translateY(-2px);
            box-shadow: 0 4px 12px rgba(255, 121, 0, 0.3);
        }

        .upload-text {
            color: #64748b;
            font-size: 14px;
            margin-top: 10px;
        }

        .form-section {
            background: white;
            padding: 25px;
            border-radius: 12px;
            border: 1px solid #e2e8f0;
            margin-bottom: 20px;
        }

        .form-section h3 {
            margin: 0 0 20px 0;
            color: #1e293b;
            font-size: 18px;
            font-weight: 600;
            padding-bottom: 12px;
            border-bottom: 2px solid #f1f5f9;
        }

        .form-row {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 20px;
        }

        @media (max-width: 768px) {
            .form-row {
                grid-template-columns: 1fr;
            }
        }

        /* Стили для уведомлений */
        .ar-notification {
            position: fixed;
            top: 20px;
            right: 20px;
            z-index: 10001;
            min-width: 300px;
            max-width: 500px;
            animation: arSlideIn 0.3s ease;
        }

        .ar-notification-success {
            background: #22c55e;
            color: white;
        }

        .ar-notification-error {
            background: #dc3545;
            color: white;
        }

        .ar-notification-info {
            background: #3b82f6;
            color: white;
        }

        .ar-notification-content {
            padding: 15px 20px;
            border-radius: 8px;
            display: flex;
            justify-content: space-between;
            align-items: center;
            box-shadow: 0 4px 12px rgba(0,0,0,0.3);
        }

        .ar-notification-close {
            background: none;
            border: none;
            color: white;
            font-size: 18px;
            cursor: pointer;
            margin-left: 15px;
        }

        @keyframes arSlideIn {
            from { transform: translateX(100%); opacity: 0; }
            to { transform: translateX(0); opacity: 1; }
        }

        /* АДАПТИВНОСТЬ */
        @media (max-width: 1400px) {
            .ar-kanban-board {
                grid-template-columns: repeat(5, 1fr);
                gap: 16px;
            }
            
            .ar-kanban-column {
                min-height: 550px;
            }
        }

        @media (max-width: 1200px) {
            .ar-kanban-board {
                grid-template-columns: repeat(3, 1fr);
                gap: 12px;
            }
            
            .ar-project-card {
                padding: 16px;
            }
        }

        @media (max-width: 1024px) {
            .ar-crm-container {
                padding: 20px;
            }
            
            .ar-kanban-board {
                grid-template-columns: repeat(2, 1fr);
                gap: 20px;
            }
            
            .ar-stats {
                grid-template-columns: repeat(2, 1fr);
                gap: 16px;
            }
        }

        @media (max-width: 768px) {
            .ar-kanban-board {
                grid-template-columns: 1fr;
                gap: 20px;
            }
            
            .ar-stats {
                grid-template-columns: repeat(2, 1fr);
                gap: 12px;
            }
            
            .ar-header-main {
                flex-direction: column;
                gap: 16px;
                align-items: stretch;
            }
            
            .ar-crm-header h1 {
                text-align: center;
            }
            
            .header-info {
                justify-content: center;
            }
        }

        @media (max-width: 480px) {
            .ar-crm-container {
                padding: 16px;
            }
            
            .ar-stats {
                grid-template-columns: 1fr;
            }
            
            .ar-project-field {
                flex-direction: column;
                gap: 4px;
                align-items: flex-start;
            }
            
            .ar-field-value {
                text-align: left;
            }
            
            .ar-modal-content {
                width: 95%;
                margin: 20px;
            }
            
            .ar-modal-footer {
                flex-direction: column;
            }
            
            .ar-btn {
                width: 100%;
            }
        }

        /* ДОПОЛНИТЕЛЬНЫЕ УЛУЧШЕНИЯ */
        .ar-kanban-column {
            transition: all 0.3s ease;
        }

        .ar-kanban-column:hover {
            box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
        }

        .ar-project-card:last-child {
            margin-bottom: 0;
        }

        /* Плавные переходы для всех интерактивных элементов */
        .ar-btn, .ar-btn-icon, .ar-project-card, .ar-stat, .ar-kanban-column {
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        }

        /* Улучшенная типографика */
        .ar-crm-container {
            line-height: 1.6;
        }

        .ar-project-card-header h4 {
            line-height: 1.3;
        }

        /* Градиентные акценты */
        .ar-stat-number {
            background: linear-gradient(135deg, #ff7900 0%, #e56a00 100%);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
        }