@media print {
            body {
                background-color: white;
                color: black;
                font-size: 12pt;
            }
            
            .no-print {
                display: none !important;
            }
            
            .page-break {
                page-break-after: always;
            }
        }
        :root {
            --primary-color: #3498db;
            --success-color: #27ae60;
            --danger-color: #e74c3c;
            --light-gray: #f2f2f2;
            --border-color: #ddd;
        }
        
        body {
            font-family: 'Roboto','Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
            line-height: 1.6;
            margin: 0;
            /* padding: 20px; */
            color: #333;
            min-width: 1300px;
        }
        
        .container {
            max-width: 1400px;
            margin: 20px auto;
        }
        
        h1, h2, h3 {
            color: #2c3e50;
            margin-top: 0;
        }
        
        .section {
            margin-bottom: 30px;
            padding: 20px;
            border: 1px solid var(--border-color);
            border-radius: 5px;
            background-color: #f9f9f9;
        }
        
        button {
            background-color: var(--primary-color);
            color: white;
            border: none;
            padding: 10px 15px;
            border-radius: 4px;
            cursor: pointer;
            font-size: 16px;
            transition: background-color 0.3s;
        }
        
        button:hover {
            opacity: 0.9;
        }
        
        .export-btn {
            background-color: var(--success-color);
        }
        
        .clear-btn {
            background-color: var(--danger-color);
        }
        
        table {
            width: 100%;
            border-collapse: collapse;
            margin: 15px 0;
            font-size: 14px;
        }
        
        th, td {
            border: 1px solid var(--border-color);
            padding: 8px 12px;
            text-align: left;
            white-space: nowrap;
        }
        
        th {
            background-color: var(--light-gray);
            position: sticky;
            top: 0;
            z-index: 10;
        }
        
        tr:nth-child(even) {
            background-color: #f9f9f9;
        }
        
        .file-input {
            margin: 15px 0;
            display: flex;
            gap: 10px;
            flex-wrap: wrap;
        }
        
        .tabs {
            display: flex;
            margin-bottom: 20px;
            flex-wrap: wrap;
            gap: 5px;
        }
        
        .tab {
            padding: 10px 20px;
            cursor: pointer;
            background-color: #eee;
            border: 1px solid var(--border-color);
            border-bottom: none;
            border-radius: 5px 5px 0 0;
        }
        
        .tab.active {
            background-color: #fff;
            border-bottom: 1px solid #fff;
        }
        
        .tab-content {
            display: none;
        }
        
        .tab-content.active {
            display: block;
        }
        
        .chart-container {
            width: 100%;
            height: 400px;
            margin: 20px 0;
        }
        
        .passed {
            color: var(--success-color);
            font-weight: bold;
        }
        
        .failed {
            color: var(--danger-color);
            font-weight: bold;
        }
        
        .table-container {
            max-height: 600px;
            overflow-y: auto;
            margin-bottom: 20px;
            border: 1px solid var(--border-color);
            border-radius: 5px;
        }
        
        .filter-row th {
            padding: 5px;
        }
        
        .filter-row input, 
        .filter-row select {
            width: 100%;
            padding: 5px;
            box-sizing: border-box;
            border: 1px solid var(--border-color);
            border-radius: 3px;
        }
        
        .status-badge {
            display: inline-block;
            padding: 2px 6px;
            border-radius: 3px;
            font-size: 12px;
            font-weight: bold;
        }
        
        .status-passed {
            background-color: rgba(39, 174, 96, 0.2);
            color: var(--success-color);
        }
        
        .status-failed {
            background-color: rgba(231, 76, 60, 0.2);
            color: var(--danger-color);
        }
        
        .upload-status {
            padding: 10px;
            border-radius: 4px;
            margin-top: 10px;
        }
        
        .upload-success {
            background-color: rgba(39, 174, 96, 0.1);
            color: var(--success-color);
            border: 1px solid rgba(39, 174, 96, 0.3);
        }
        
        .upload-error {
            background-color: rgba(231, 76, 60, 0.1);
            color: var(--danger-color);
            border: 1px solid rgba(231, 76, 60, 0.3);
        }
        
        .stats-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
            gap: 20px;
            margin-top: 20px;
        }
        
        .stat-card {
            background: white;
            border: 1px solid var(--border-color);
            border-radius: 5px;
            padding: 15px;
            box-shadow: 0 2px 4px rgba(0,0,0,0.05);
        }
        
        .stat-card h4 {
            margin-top: 0;
            color: #2c3e50;
            border-bottom: 1px solid var(--border-color);
            padding-bottom: 10px;
        }
        
        .no-data {
            color: #7f8c8d;
            font-style: italic;
            padding: 20px;
            text-align: center;
        }
        
        .sticky-header {
            position: sticky;
            top: 0;
            background-color: white;
            z-index: 100;
            box-shadow: 0 2px 5px rgba(0,0,0,0.1);
        }
        
        .sortable-header {
            cursor: pointer;
            position: relative;
            padding-right: 20px;
        }
        
        .sortable-header:hover {
            background-color: #f0f0f0;
        }
        
        .sort-icon {
            position: absolute;
            right: 5px;
            top: 50%;
            transform: translateY(-50%);
        }
        
        .export-buttons {
            display: flex;
            gap: 10px;
            margin-top: 15px;
        }
        
        /* Новые стили для сравнения оценок */
        .grade-comparison-table th {
            position: relative;
            vertical-align: top;
            padding-top: 35px;
        }

        .grade-comparison-table th input,
        .grade-comparison-table th select {
            position: absolute;
            top: 5px;
            left: 0;
            right: 0;
            width: calc(100% - 10px);
            margin: 0 5px;
            padding: 3px;
            box-sizing: border-box;
        }
        
        .grade-comparison-table {
            width: 100%;
            margin-top: 15px;
        }
        
        .grade-comparison-table th {
            background-color: var(--light-gray);
            position: sticky;
            top: 0;
        }
        
        .grade-comparison-table td {
            text-align: center;
        }
        
        .grade-comparison-table .positive {
            background-color: rgba(39, 174, 96, 0.2);
            color: var(--success-color);
            font-weight: bold;
        }
        
        .grade-comparison-table .negative {
            background-color: rgba(231, 76, 60, 0.2);
            color: var(--danger-color);
            font-weight: bold;
        }
        
        .grade-comparison-table .neutral {
            background-color: rgba(241, 196, 15, 0.2);
            color: #f39c12;
            font-weight: bold;
        }
        
        .clear-btn {
            margin-left: 10px;
        }
        .year-selector {
            margin: 15px 0;
            display: flex;
            gap: 10px;
            align-items: center;
        }
        .year-selector label {
            font-weight: bold;
        }
        .year-selector select {
            padding: 8px 12px;
            border-radius: 4px;
            border: 1px solid #ddd;
        }
        .history-table {
            width: 100%;
            margin: 20px 0;
            border-collapse: collapse;
        }
        .history-table th, .history-table td {
            border: 1px solid #ddd;
            padding: 8px;
            text-align: center;
        }
        .history-table th {
            background-color: #f2f2f2;
        }
        .history-table tr:nth-child(even) {
            background-color: #f9f9f9;
        }
        .history-tabs {
            margin-bottom: 15px;
        }
        .history-tab {
            padding: 8px 15px;
            cursor: pointer;
            background-color: #eee;
            border: 1px solid #ddd;
            border-radius: 4px;
            margin-right: 5px;
            display: inline-block;
        }
        .history-tab.active {
            background-color: #3498db;
            color: white;
        }
        header {
            background-color: #4CAF50;
            color: white;
            padding: 15px 0;
            box-shadow: 0 2px 5px rgba(0,0,0,0.2);
        }
        
        .header-content {
            display: flex;
            justify-content: space-between;
            align-items: center;
        }
        
        .logo {
            font-size: 24px;
            font-weight: 500;
        }
        
        .user-info {
            display: flex;
            align-items: center;
            gap: 15px;
            position: relative;
        }
        
        .user-details {
            display: flex;
            flex-direction: column;
            align-items: flex-end;
        }
        
        .user-name {
            font-weight: 500;
            font-size: 16px;
        }
        
        .user-position {
            font-size: 13px;
            opacity: 0.9;
        }
        
        .avatar-dropdown {
            position: relative;
            display: inline-block;
        }
        
        .dropdown-content {
            display: none;
            position: absolute;
            right: 0;
            top: 100%; /* Меню появляется прямо под аватаром */
            margin-top: 0px; /* Небольшой отступ */
            background-color: #f9f9f9;
            min-width: 160px;
            box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
            z-index: 1;
            border-radius: 4px;
            overflow: hidden;
        }

        .dropdown-content a {
            color: #333;
            padding: 12px 16px;
            text-decoration: none;
            display: block;
            transition: background-color 0.3s;
        }

        .dropdown-content a:hover {
            background-color: #f1f1f1;
        }

        .avatar-dropdown:hover .dropdown-content {
            display: block;
        }
        
        .user-avatar {
            width: 40px;
            height: 40px;
            border-radius: 50%;
            background-color: #7986cb;
            display: flex;
            align-items: center;
            justify-content: center;
            color: white;
            font-weight: bold;
            cursor: pointer;
            transition: transform 0.3s;
            flex-shrink: 0;
        }
        
        .avatar-dropdown:hover .user-avatar {
            transform: scale(1.1);
        }
        .user-info-container {
            display: flex;
            align-items: center;
            gap: 10px;
        }

        .user-text-info {
            display: flex;
            flex-direction: column;
        }

        .user-name {
            font-weight: 500;
            white-space: nowrap;
        }

        .user-position {
            font-size: 14px;
            color: #e0e0e0;
            white-space: nowrap;
        }

        .user-avatar img {
            width: 100%;
            height: 100%;
            border-radius: 50%;
            object-fit: cover;
        }

        .user-info-container {
            display: flex;
            align-items: center;
            gap: 10px;
            cursor: pointer;
        }

        .user-text-info {
            display: flex;
            flex-direction: column;
        }
		.hcontainer {
		max-width: 1200px;
		margin: 0 auto;
		border-radius: 8px;
	}
    /* Стили для модуля учителей */
.teacher-management {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    margin-bottom: 5px;
    font-weight: 500;
}

.teacher-class-group {
    margin-bottom: 20px;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
}

.teacher-subject-group {
    margin-left: 20px;
    margin-bottom: 15px;
}

.teacher-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    margin: 5px 0;
    background: #f9f9f9;
    border-radius: 4px;
}

.remove-teacher-btn {
    background: #dc3545;
    color: white;
    border: none;
    padding: 5px 10px;
    border-radius: 3px;
    cursor: pointer;
}

.teacher-analysis-controls {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}

.teacher-analysis-card {
    background: white;
    padding: 20px;
    margin-bottom: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.teacher-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
    margin: 15px 0;
}

.stat-item {
    text-align: center;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 5px;
}

.stat-item h5 {
    margin: 0 0 5px 0;
    color: #666;
}

.stat-item p {
    margin: 0;
    font-size: 1.5em;
    font-weight: bold;
}

.grades-distribution {
    display: flex;
    gap: 10px;
    margin: 10px 0;
}

.grade-badge {
    padding: 5px 10px;
    border-radius: 15px;
    font-weight: bold;
}

.grade-5 { background: #d4edda; color: #155724; }
.grade-4 { background: #d1ecf1; color: #0c5460; }
.grade-3 { background: #fff3cd; color: #856404; }
.grade-2 { background: #f8d7da; color: #721c24; }

.comparison-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 10px;
    margin: 10px 0;
}

.show-students-btn {
    background: #007bff;
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 4px;
    cursor: pointer;
    margin: 10px 0;
}

.students-list {
    margin-top: 15px;
}

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

.students-list th,
.students-list td {
    padding: 8px;
    border: 1px solid #ddd;
    text-align: left;
}

.students-list th {
    background: #f8f9fa;
}

.positive { color: #28a745; font-weight: bold; }
.negative { color: #dc3545; font-weight: bold; }

/* Стили для управления учителями */
.subsection {
    margin-bottom: 30px;
    padding: 20px;
    background: #f9f9f9;
    border-radius: 8px;
    border: 1px solid #ddd;
}

.assignment-controls {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
    align-items: center;
    flex-wrap: wrap;
}

.subjects-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.subjects-list li {
    padding: 5px 0;
    border-bottom: 1px solid #eee;
}

.edit-teacher-btn {
    margin-left: 10px;
    padding: 2px 8px;
    font-size: 12px;
}

/* Модальное окно */
.modal {
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    display: flex;
    justify-content: center;
    align-items: center;
}

.modal-content {
    background-color: white;
    padding: 20px;
    border-radius: 8px;
    width: 500px;
    max-width: 90%;
}

.modal-controls {
    margin-top: 15px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.close {
    float: right;
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
}

/* Отчет */
.teacher-report {
    margin-top: 20px;
}

.report-section {
    margin-bottom: 30px;
}

.report-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 15px;
}

.report-table th,
.report-table td {
    padding: 8px;
    border: 1px solid #ddd;
    text-align: left;
}

.report-table th {
    background-color: #f5f5f5;
}

.positive {
    color: green;
    font-weight: bold;
}

.negative {
    color: red;
    font-weight: bold;
}

.report-controls {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
    align-items: center;
    flex-wrap: wrap;
}