@media print {
    .no-print {
        display: none !important;
    }

    body {
        font-size: 12pt;
    }

    .print-header {
        page-break-after: always;
    }
}

.print-page {
    page-break-after: always;
}

.print-header {
    margin-bottom: 30px;
    border-bottom: 2px solid #000;
    padding-bottom: 15px;
}

.access-code-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 30px;
}

.access-code-table th,
.access-code-table td {
    border: 1px solid #000;
    padding: 8px;
    text-align: left;
}

.access-code-table th {
    background-color: #f2f2f2;
    font-weight: bold;
}

.access-code {
    font-family: 'Courier New', monospace;
    font-weight: bold;
    font-size: 14pt;
    letter-spacing: 2px;
}

.signature-line {
    margin-top: 50px;
    border-top: 1px solid #000;
    width: 200px;
    padding-top: 5px;
}

.status-created {
    color: #198754;
    font-weight: bold;
}

.status-updated {
    color: #0dcaf0;
    font-weight: bold;
}

.status-skipped {
    color: #6c757d;
}

.status-error {
    color: #dc3545;
    font-weight: bold;
}

.result-table {
    font-size: 0.9rem;
}

.result-table th {
    background-color: #f8f9fa;
    position: sticky;
    top: 0;
}

.result-card {
    max-height: 400px;
    overflow-y: auto;
    border: 1px solid #dee2e6;
}

.summary-badge {
    font-size: 1.1rem;
    padding: 0.5rem 1rem;
}

/* Видео */
.video-container {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
    background: #000;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.video-container video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 8px;
}

.timeline-list {
    max-height: 400px;
    overflow-y: auto;
}

.timeline-item {
    padding: 12px 15px;
    border-bottom: 1px solid #eee;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: flex-start;
}

.timeline-item:last-child {
    border-bottom: none;
}

.timeline-item:hover {
    background-color: #f8f9fa;
}

.timeline-item.active {
    background-color: #e7f1ff;
    border-left: 4px solid #0d6efd;
    padding-left: 11px;
}

.timeline-marker {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-right: 12px;
    min-width: 60px;
}

.timeline-marker .badge {
    margin-bottom: 4px;
    font-size: 0.75rem;
    padding: 4px 8px;
}

.timeline-number {
    width: 24px;
    height: 24px;
    background-color: #6c757d;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: bold;
}

.timeline-item.active .timeline-number {
    background-color: #0d6efd;
}

.timeline-content {
    flex: 1;
}

.timeline-title {
    margin-bottom: 4px;
    font-weight: 600;
    font-size: 0.95rem;
}

.timeline-desc {
    font-size: 0.85rem;
    line-height: 1.3;
}

.btn-group .btn {
    flex: 1;
}

.faq-list {
    list-style: none;
    padding-left: 0;
}

.faq-list li a {
    color: #495057;
    transition: color 0.2s;
}

.faq-list li a:hover {
    color: #0d6efd;
}

/* Стили для полосы прокрутки */
.timeline-list::-webkit-scrollbar {
    width: 6px;
}

.timeline-list::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.timeline-list::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 3px;
}

.timeline-list::-webkit-scrollbar-thumb:hover {
    background: #aaa;
}

/* Улучшенные стили для скроллинга */
.timeline-list {
    max-height: 400px;
    overflow-y: auto;
    scroll-behavior: smooth;
    position: relative;
}

.timeline-item {
    padding: 12px 15px;
    border-bottom: 1px solid #eee;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: flex-start;
    user-select: none;
    position: relative;
}

.timeline-item.active {
    background-color: #e7f1ff;
    border-left: 4px solid #0d6efd;
    padding-left: 11px;
}

.timeline-item.active::before {
    content: '▶';
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #0d6efd;
    font-size: 12px;
}

/* Улучшаем видимость при наведении */
.timeline-item:hover {
    background-color: #f8f9fa;
    transform: translateX(2px);
}

.timeline-item.active:hover {
    background-color: #dbeafe;
}

/* Стили для полосы прокрутки */
.timeline-list::-webkit-scrollbar {
    width: 8px;
}

.timeline-list::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.timeline-list::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 4px;
}

.timeline-list::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

/* Гарантируем что контейнер для скролла имеет фиксированную высоту */
.card-body.p-0 {
    display: flex;
    flex-direction: column;
}

.card-body.p-0 .timeline-list {
    flex: 1;
}

.import-modal .modal-lg {
    max-width: 800px;
}

.result-table {
    font-size: 0.85rem;
}

.result-table th {
    background-color: #f8f9fa;
    font-weight: 600;
}

.toast {
    min-width: 250px;
}