* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    min-height: 100vh;
    color: #2c3e50;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
}

.header {
    text-align: center;
    margin-bottom: 40px;
    padding: 30px;
    background: linear-gradient(135deg, #ffffff 0%, #e3f2fd 100%);
    border-radius: 15px;
    box-shadow: 0 8px 32px rgba(31, 38, 135, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.18);
}

.header h1 {
    color: #1976d2;
    font-size: 2.5rem;
    font-weight: 600;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.main-content {
    margin-top: 30px;
}

.tabs-container {
    background: #ffffff;
    border-radius: 15px;
    padding: 0;
    box-shadow: 0 8px 32px rgba(31, 38, 135, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.18);
    overflow: hidden;
}

.tabs {
    display: flex;
    background: #ffffff;
    border-bottom: 1px solid #e9ecef;
    position: relative;
}

.tabs::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, #e3f2fd, transparent);
}

.tab-button {
    flex: 1;
    padding: 24px 32px;
    background: transparent;
    border: none;
    color: #495057;
    font-size: 1.1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    border-bottom: 2px solid transparent;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    overflow: hidden;
}

.tab-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e3f2fd 100%);
    opacity: 0;
    transform: translateY(100%);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    z-index: -1;
}

.tab-button::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: #1976d2;
    transform: translateX(-50%);
    transition: all 0.3s ease;
}

.tab-button:hover {
    color: #1976d2;
    transform: translateY(-1px);
}

.tab-button:hover::before {
    opacity: 1;
    transform: translateY(0);
}

.tab-button:hover::after {
    width: 60%;
}

.tab-button.active {
    color: #1976d2;
    font-weight: 600;
    background: linear-gradient(135deg, #f8f9fa 0%, #e3f2fd 100%);
    border-bottom-color: #1976d2;
}

.tab-button.active::before {
    opacity: 1;
    transform: translateY(0);
    background: linear-gradient(135deg, #e3f2fd 0%, #f8f9fa 100%);
    box-shadow: inset 0 1px 3px rgba(25, 118, 210, 0.1);
}

.tab-button.active::after {
    width: 80%;
}

/* Эффект при клике */
.tab-button:active {
    transform: translateY(0);
    transition: transform 0.1s ease;
}

/* Микро-анимация для текста */
.tab-button span {
    display: inline-block;
    transition: transform 0.3s ease;
}

.tab-button:hover span {
    transform: translateY(-1px);
}

.tab-button.active span {
    transform: translateY(-1px);
}

/* Эффект волны при клике */
.tab-button {
    position: relative;
}

.tab-button:active::before {
    background: radial-gradient(circle, rgba(25, 118, 210, 0.1) 0%, transparent 70%);
    transform: scale(2);
    opacity: 0.3;
    transition: all 0.2s ease;
}

/* Эффект свечения для активной вкладки */
.tab-button.active {
    box-shadow: 0 2px 8px rgba(25, 118, 210, 0.15);
}

/* Анимация появления контента */
.tab-content {
    animation: slideIn 0.4s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Эффект разделителя между вкладками */
.tab-button:not(:last-child) {
    border-right: 1px solid #e9ecef;
}

.tab-button:hover:not(:last-child) {
    border-right-color: transparent;
    transition: border-right-color 0.3s ease;
}

/* Микро-анимация для улучшения отзывчивости */
.tab-button {
    will-change: transform, color;
}

.tab-button:hover {
    will-change: transform, color, background;
}

/* Эффект фокуса для доступности */
.tab-button:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(25, 118, 210, 0.3);
}

.tab-button:focus:not(:active) {
    transform: translateY(-1px);
}

/* Адаптивность */
@media (max-width: 768px) {
    .tab-button {
        padding: 20px 24px;
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .tab-button {
        padding: 16px 20px;
        font-size: 0.9rem;
        letter-spacing: 0.3px;
    }
}

.tab-content {
    display: none;
    padding: 10px;
    animation: fadeIn 0.3s ease-in-out;
    min-height: calc(100vh - 200px);
    height: 100%;
}

.tab-content.active {
    display: flex;
    flex-direction: column;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.systems-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
}

/* Стили для РИС вкладки */
.ris-container {
    display: grid;
    grid-template-columns: 1.5fr 2fr;
    gap: 10px;
    height: 100%;
    min-height: calc(100vh - 280px);
    flex: 1;
}

.equipment-section {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 20px;
    border: 1px solid #e9ecef;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #e3f2fd;
}

.section-title {
    color: #1976d2;
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0;
}

.filter-container {
    display: flex;
    gap: 10px;
    align-items: center;
}

.filter-input {
    padding: 8px 15px;
    border: 2px solid #e3f2fd;
    border-radius: 8px;
    font-size: 0.9rem;
    width: auto;
    transition: all 0.3s ease;
}

.filter-input:focus {
    outline: none;
    border-color: #1976d2;
    box-shadow: 0 0 0 3px rgba(25, 118, 210, 0.1);
}

.filter-button {
    padding: 8px 12px;
    background: #1976d2;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.filter-button:hover {
    background: #1565c0;
    transform: scale(1.05);
}

.table-container {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    flex: 1;
    overflow-y: auto;
    min-height: 300px;
}

.equipment-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.equipment-table th {
    background: linear-gradient(135deg, #1976d2 0%, #1565c0 100%);
    color: white;
    padding: 10px 8px;
    text-align: left;
    font-weight: 600;
    position: sticky;
    top: 0;
    z-index: 10;
    font-size: 0.85rem;
}

.equipment-table th:last-child {
    display: flex;
    
}
.equipment-table th {
    background: linear-gradient(135deg, #1976d2 0%, #1565c0 100%);
    color: white;
    padding: 10px 8px;
    text-align: left;
    font-weight: 600;
    position: sticky;
    top: 0;
    z-index: 10;
    font-size: 0.85rem;
}

.equipment-table td {
    padding: 8px 8px;
    border-bottom: 1px solid #e9ecef;
    vertical-align: middle;
    font-size: 0.8rem;
}

.equipment-table tr {
    cursor: pointer;
    transition: all 0.3s ease;
}

.equipment-table tr:hover {
    background-color: #e3f2fd;
    transform: scale(1.01);
}

.equipment-table tr.selected {
    background-color: #1976d2;
    color: white;
}

.equipment-table tr.selected:hover {
    background-color: #1565c0;
}

.equipment-table tr:last-child td {
    border-bottom: none;
}

/* Стили для кнопки поиска поверки */
.search-btn {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    border-radius: 4px;
    padding: 2px 6px;
    margin-left: 5px;
    cursor: pointer;
    font-size: 0.8rem;
    transition: all 0.2s ease;
}

.search-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

.search-btn:active {
    transform: scale(0.95);
}

/* Стили для модального окна поиска поверки удалены - теперь используется сортировка */

/* Стили для кнопки сброса фильтра */
.reset-btn {
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%) !important;
    color: white !important;
}

.reset-btn:hover {
    background: linear-gradient(135deg, #c82333 0%, #a71e2a 100%) !important;
    transform: scale(1.05);
}

.action-button {
    padding: 6px 12px;
    background: linear-gradient(135deg, #1976d2 0%, #1565c0 100%);
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.8rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.action-button:hover {
    background: linear-gradient(135deg, #1565c0 0%, #0d47a1 100%);
    transform: translateY(-1px);
    box-shadow: 0 3px 8px rgba(25, 118, 210, 0.3);
}

.details-section {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 20px;
    border: 1px solid #e9ecef;
    height: 100%;
    overflow-y: auto;
}

.details-placeholder {
    text-align: center;
    color: #666;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
}

.details-placeholder h3 {
    color: #1976d2;
    margin-bottom: 10px;
}

.details-placeholder p {
    font-size: 0.9rem;
    line-height: 1.5;
}

/* Стили для паспорта оборудования */
.equipment-passport {
    background: white;
    border-radius: 10px;
    padding: 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.passport-header {
    background: linear-gradient(135deg, #1976d2 0%, #1565c0 100%);
    color: white;
    padding: 20px;
    border-radius: 10px 10px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.passport-header h3 {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 600;
}

.equipment-status {
    display: flex;
    align-items: center;
    gap: 8px;
}

.status-indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #4caf50;
}

.status-indicator.active {
    background: #4caf50;
    box-shadow: 0 0 8px rgba(76, 175, 80, 0.5);
}

.status-text {
    font-size: 0.9rem;
    font-weight: 500;
}

.passport-content {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.passport-section {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 15px;
    border: 1px solid #e9ecef;
}

.passport-section h4 {
    color: #1976d2;
    margin: 0 0 15px 0;
    font-size: 1rem;
    font-weight: 600;
    padding-bottom: 8px;
    border-bottom: 2px solid #e3f2fd;
}

.info-grid {
    display: grid;
    gap: 12px;
}

.info-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid #e9ecef;
}

.info-item:last-child {
    border-bottom: none;
}

.info-item label {
    font-weight: 600;
    color: #495057;
    font-size: 0.85rem;
    min-width: 140px;
}

.info-item span {
    color: #1976d2;
    font-weight: 500;
    font-size: 0.85rem;
    text-align: right;
    word-break: break-word;
}

.passport-actions {
    margin-top: auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding-top: 20px;
    border-top: 2px solid #e3f2fd;
}

.action-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 20px;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.action-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.action-btn:hover::before {
    left: 100%;
}

.action-btn.primary {
    background: linear-gradient(135deg, #1976d2 0%, #1565c0 100%);
    color: white;
}

.action-btn.primary:hover {
    background: linear-gradient(135deg, #1565c0 0%, #0d47a1 100%);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(25, 118, 210, 0.4);
}

.action-btn.secondary {
    background: linear-gradient(135deg, #ff6b35 0%, #f7931e 100%);
    color: white;
}

.action-btn.secondary:hover {
    background: linear-gradient(135deg, #f7931e 0%, #ff8a50 100%);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 107, 53, 0.4);
}

.btn-icon {
    font-size: 1rem;
}

/* Стили для footer */
.footer {
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
    color: #1976d2;
    padding: 20px 0;
    margin-top: 40px;
    box-shadow: 0 -4px 20px rgba(25, 118, 210, 0.15);
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    text-align: center;
}

.footer-content p {
    margin: 0;
    font-size: 0.9rem;
    font-weight: 600;
    color: #1976d2;
}

/* Стили для модальных окон */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
}

.modal-content {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    margin: 2% auto;
    padding: 0;
    border-radius: 15px;
    width: 95%;
    max-width: 1200px;
    max-height: 90vh;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.modal-header {
    background: linear-gradient(135deg, #1976d2 0%, #1565c0 100%);
    color: white;
    padding: 20px 30px;
    border-radius: 15px 15px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0;
}

.close {
    color: white;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
}

.close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

.modal-body {
    padding: 0;
    height: calc(90vh - 80px);
    display: flex;
    flex-direction: column;
}

.modal-tabs {
    display: flex;
    background: #f8f9fa;
    border-bottom: 2px solid #e3f2fd;
    overflow-x: auto;
}

.modal-tab {
    padding: 15px 20px;
    background: transparent;
    border: none;
    color: #495057;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    border-bottom: 3px solid transparent;
    white-space: nowrap;
    min-width: 120px;
}

.modal-tab:hover {
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
    color: #1976d2;
}

.modal-tab.active {
    background: linear-gradient(135deg, #1976d2 0%, #1565c0 100%);
    color: white;
    border-bottom-color: #1976d2;
}

.modal-tab-content {
    flex: 1;
    overflow-y: auto;
    padding: 30px;
}

.tab-panel {
    display: none;
}

.tab-panel.active {
    display: block;
}

.tab-panel h3 {
    color: #1976d2;
    margin-bottom: 20px;
    font-size: 1.3rem;
    font-weight: 600;
}

/* Стили для таблиц в модальных окнах */
.data-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.data-table th {
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
    color: #1976d2;
    padding: 15px 12px;
    text-align: left;
    font-weight: 600;
    font-size: 0.9rem;
}

.data-table td {
    padding: 12px;
    border-bottom: 1px solid #e9ecef;
    font-size: 0.85rem;
}

.data-table tr:hover {
    background-color: #f8f9fa;
}

.data-table tr:last-child td {
    border-bottom: none;
}

/* Статусы */
.status {
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.status.completed {
    background: #d4edda;
    color: #155724;
}

.status.pending {
    background: #fff3cd;
    color: #856404;
}

.status.normal {
    background: #d1ecf1;
    color: #0c5460;
}

.status.critical {
    background: #f8d7da;
    color: #721c24;
}

/* Кнопки */
.btn-small {
    padding: 6px 12px;
    background: linear-gradient(135deg, #1976d2 0%, #1565c0 100%);
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-small:hover {
    background: linear-gradient(135deg, #1565c0 0%, #0d47a1 100%);
    transform: translateY(-1px);
}

.btn-small.urgent {
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
}

.btn-small.urgent:hover {
    background: linear-gradient(135deg, #c82333 0%, #a71e2a 100%);
}

/* Фильтры */
.filter-section {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    align-items: center;
}

.filter-select {
    padding: 8px 15px;
    border: 2px solid #e3f2fd;
    border-radius: 8px;
    font-size: 0.9rem;
    background: white;
    color: #495057;
    min-width: 150px;
}

.filter-select:focus {
    outline: none;
    border-color: #1976d2;
}

/* Специальные блоки */
.calendar-placeholder {
    background: #f8f9fa;
    border: 2px dashed #e3f2fd;
    border-radius: 10px;
    padding: 40px;
    text-align: center;
    color: #666;
}

.reports-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.report-card {
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    border-left: 4px solid #1976d2;
}

.report-card h4 {
    color: #1976d2;
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.report-card p {
    margin: 8px 0;
    color: #666;
}

/* Документы */
.documents-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.document-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    border-left: 4px solid #1976d2;
}

.doc-icon {
    font-size: 1.5rem;
}

/* Уведомления */
.notifications-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.notification-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: #fff3cd;
    border-radius: 10px;
    border-left: 4px solid #ffc107;
}

.notification-icon {
    font-size: 1.5rem;
}

.notification-content p {
    margin: 0 0 5px 0;
    font-weight: 500;
}

.notification-content small {
    color: #666;
}

/* Поставщики */
.suppliers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.supplier-card {
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    border-left: 4px solid #ff6b35;
}

.supplier-card h4 {
    color: #ff6b35;
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.supplier-card p {
    margin: 8px 0;
    color: #666;
}

/* Адаптивность для модальных окон */
@media (max-width: 768px) {
    .modal-content {
        width: 98%;
        margin: 5% auto;
        max-height: 95vh;
    }
    
    .modal-header {
        padding: 15px 20px;
    }
    
    .modal-tab-content {
        padding: 20px;
    }
    
    .modal-tabs {
        flex-wrap: wrap;
    }
    
    .modal-tab {
        min-width: 100px;
        padding: 12px 15px;
        font-size: 0.8rem;
    }
    
    .filter-section {
        flex-direction: column;
        align-items: stretch;
    }
    
    .data-table {
        font-size: 0.75rem;
    }
    
    .data-table th,
    .data-table td {
        padding: 8px 6px;
    }
}

.system-card {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    border: 2px solid transparent;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.system-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #1976d2, #42a5f5);
}

.system-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(25, 118, 210, 0.2);
    border-color: #1976d2;
}

.system-name {
    color: #1976d2;
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 10px;
    margin-top: 5px;
}

.system-description {
    color: #666;
    font-size: 0.95rem;
    margin-bottom: 20px;
    line-height: 1.5;
}

.system-button {
    width: 100%;
    padding: 12px 20px;
    background: linear-gradient(135deg, #1976d2 0%, #1565c0 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.system-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.system-button:hover {
    background: linear-gradient(135deg, #1565c0 0%, #0d47a1 100%);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(25, 118, 210, 0.4);
}

.system-button:hover::before {
    left: 100%;
}

.system-button:active {
    transform: translateY(0);
}

@media (max-width: 768px) {
    .header h1 {
        font-size: 2rem;
    }
    
    .container {
        padding: 15px;
    }
    
    .tab-button {
        padding: 15px 20px;
        font-size: 1rem;
    }
    
    .tab-content {
        padding: 25px;
    }
    
    .systems-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .system-card {
        padding: 20px;
    }
    
    .ris-container {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .section-header {
        flex-direction: column;
        gap: 15px;
        align-items: stretch;
    }
    
    .filter-input {
        width: 100%;
    }
    
    .equipment-table {
        font-size: 0.8rem;
    }
    
    .equipment-table th,
    .equipment-table td {
        padding: 8px 5px;
    }
}

/* Стили для журнала нагрузки */
.load-journal-container {
    padding: 20px;
}

.date-selector {
    margin-bottom: 25px;
    padding: 20px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 10px;
    border: 1px solid #dee2e6;
}

.date-selector h4 {
    margin-bottom: 15px;
    color: #495057;
    font-size: 1.1rem;
    font-weight: 600;
}

.date-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.date-btn {
    padding: 10px 16px;
    background: #ffffff;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    color: #495057;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.date-btn:hover {
    background: #e3f2fd;
    border-color: #1976d2;
    color: #1976d2;
    transform: translateY(-1px);
}

.date-btn.active {
    background: #1976d2;
    border-color: #1976d2;
    color: #ffffff;
    box-shadow: 0 2px 8px rgba(25, 118, 210, 0.3);
}

.load-journal-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.load-item {
    display: flex;
    align-items: center;
    padding: 10px 15px;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border: 1px solid #e9ecef;
    border-radius: 8px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.load-item:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border-color: #1976d2;
}

.load-number {
    font-weight: 600;
    color: #6c757d;
    font-size: 0.9rem;
    min-width: 25px;
    margin-right: 12px;
    text-align: center;
}

.load-time {
    font-weight: 600;
    color: #1976d2;
    font-size: 0.95rem;
    min-width: 50px;
    margin-right: 15px;
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
    padding: 6px 10px;
    border-radius: 5px;
    text-align: center;
}

.load-doctor {
    font-size: 0.95rem;
    color: #2c3e50;
    font-weight: 500;
    flex: 1;
}

/* Стили для календаря */
.load-content-wrapper {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 25px;
    align-items: start;
}

.calendar-widget {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border: 1px solid #e9ecef;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 20px;
}

.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #e9ecef;
}

.calendar-nav-btn {
    background: #1976d2;
    color: white;
    border: none;
    border-radius: 50%;
    width: 35px;
    height: 35px;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.calendar-nav-btn:hover {
    background: #1565c0;
    transform: scale(1.1);
}

.calendar-month-year {
    margin: 0;
    color: #2c3e50;
    font-size: 1.1rem;
    font-weight: 600;
}

.calendar-grid {
    margin-bottom: 20px;
}

.calendar-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 5px;
    margin-bottom: 10px;
}

.weekday {
    text-align: center;
    font-weight: 600;
    color: #6c757d;
    font-size: 0.85rem;
    padding: 8px 0;
}

.calendar-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 5px;
}

.calendar-day {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
}

.calendar-day:hover {
    background: #e3f2fd;
    color: #1976d2;
}

.calendar-day.other-month {
    color: #adb5bd;
    cursor: default;
}

.calendar-day.other-month:hover {
    background: transparent;
    color: #adb5bd;
}

.calendar-day.available {
    background: #e8f5e8;
    color: #2e7d32;
    border: 2px solid #4caf50;
}

.calendar-day.available:hover {
    background: #c8e6c9;
    transform: scale(1.05);
}

.calendar-day.selected {
    background: #1976d2;
    color: white;
    box-shadow: 0 2px 8px rgba(25, 118, 210, 0.3);
}

.calendar-day.selected:hover {
    background: #1565c0;
}

.calendar-legend {
    border-top: 1px solid #e9ecef;
    padding-top: 15px;
}

.legend-item {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
    font-size: 0.85rem;
    color: #6c757d;
}

.legend-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin-right: 8px;
}

.legend-dot.available {
    background: #4caf50;
    border: 2px solid #2e7d32;
}

.legend-dot.selected {
    background: #1976d2;
}

/* Адаптивность для календаря */
@media (max-width: 1200px) {
    .load-content-wrapper {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .calendar-widget {
        position: static;
        order: -1;
    }
}

/* Стили для графиков */
.charts-section {
    margin-top: 30px;
    padding: 25px;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: 15px;
    border: 1px solid #e9ecef;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.charts-section h4 {
    margin-bottom: 25px;
    color: #2c3e50;
    font-size: 1.3rem;
    font-weight: 600;
    text-align: center;
}

.charts-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
}

.chart-container {
    background: #ffffff;
    border-radius: 12px;
    padding: 20px;
    border: 1px solid #e9ecef;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.chart-container:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.chart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #f8f9fa;
}

.chart-header h5 {
    margin: 0;
    color: #2c3e50;
    font-size: 1.1rem;
    font-weight: 600;
}

.chart-controls {
    display: flex;
    gap: 8px;
}

.chart-btn {
    padding: 6px 12px;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 6px;
    color: #6c757d;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.chart-btn:hover {
    background: #e3f2fd;
    border-color: #1976d2;
    color: #1976d2;
}

.chart-btn.active {
    background: #1976d2;
    border-color: #1976d2;
    color: #ffffff;
    box-shadow: 0 2px 4px rgba(25, 118, 210, 0.3);
}

.chart-wrapper {
    position: relative;
    height: 200px;
    margin-bottom: 20px;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border-radius: 8px;
    padding: 15px;
    border: 1px solid #e9ecef;
}

.chart-stats {
    display: flex;
    justify-content: space-between;
    gap: 15px;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    flex: 1;
}

.stat-label {
    font-size: 0.8rem;
    color: #6c757d;
    margin-bottom: 4px;
    font-weight: 500;
}

.stat-value {
    font-size: 1rem;
    color: #2c3e50;
    font-weight: 600;
}

/* Адаптивность для графиков */
@media (max-width: 1200px) {
    .charts-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .chart-header {
        flex-direction: column;
        gap: 15px;
        align-items: stretch;
    }
    
    .chart-controls {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .charts-section {
        padding: 20px;
    }
    
    .chart-container {
        padding: 15px;
    }
    
    .chart-wrapper {
        height: 180px;
    }
    
    .chart-stats {
        flex-direction: column;
        gap: 10px;
    }
}