/
woodoo
/
web_complex_manager
Обзор
Документация
Войти
/
woodoo
/
web_complex_manager
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
CI/CD
Аналитика
Безопасность
master
static/css/custom.css
1 311 строк
31 KB
woodoo
upload files
25 ноя 2025, 13:35
25 ноя 2025, 13:35
d517a88
Код
Авторство
О чём код?
/* Custom styles for Complex Manager - Enhanced Design */ /* General styles */ body { background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; min-height: 100vh; } .container-fluid { padding: 20px; } .card { box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2); border: none; border-radius: 15px; backdrop-filter: blur(10px); background: rgba(255, 255, 255, 0.95); transition: all 0.3s ease; } .card:hover { transform: translateY(-5px); box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3); } .card-header { font-weight: 700; border-radius: 15px 15px 0 0 !important; border: none; padding: 1.5rem; } .bg-primary { background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important; } .bg-success { background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%) !important; } /* Complex list item styles */ .complex-item { border: none; border-radius: 12px; padding: 1rem; margin-bottom: 0.75rem; cursor: pointer; transition: all 0.3s ease; background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%); border-left: 5px solid #667eea; } .complex-item:hover { background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); color: white; transform: translateX(5px); } .complex-item:hover .complex-location { color: rgba(255, 255, 255, 0.8) !important; } .complex-item.active { background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); color: white; border-left-color: #ffd700; } .complex-item.archived { background: linear-gradient(135deg, #ffeaa7 0%, #fab1a0 100%); border-left-color: #e17055; } .complex-number { font-weight: bold; font-size: 1.1em; color: #2d3748; } .complex-item.active .complex-number, .complex-item:hover .complex-number { color: white; } .complex-location { font-size: 0.9em; color: #718096; } .complex-item.active .complex-location { color: rgba(255, 255, 255, 0.8); } .complex-item.archived .complex-location { color: #856404; } /* Tab content styles */ .tab-content { min-height: 500px; background: transparent; } .nav-tabs { border: none; margin-bottom: 1.5rem; } .nav-tabs .nav-link { border: none; border-radius: 10px; margin: 0 3px; padding: 8px 15px; font-weight: 600; font-size: 0.85em; color: #4a5568; transition: all 0.3s ease; background: rgba(255, 255, 255, 0.7); } .nav-tabs .nav-link:hover { background: rgba(102, 126, 234, 0.1); transform: translateY(-2px); } .nav-tabs .nav-link.active { background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); color: white; box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4); } /* Smaller tab styles */ .nav-tabs-sm .nav-link { padding: 6px 12px; font-size: 0.8em; border-radius: 8px; margin: 0 2px; } /* Form styles */ .form-control, .form-select { border-radius: 10px; border: 2px solid #e2e8f0; padding: 12px 15px; transition: all 0.3s ease; background: rgba(255, 255, 255, 0.9); } .form-control:focus, .form-select:focus { border-color: #667eea; box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1); transform: translateY(-2px); } .form-control:disabled, .form-select:disabled { background-color: rgba(248, 249, 250, 0.7); opacity: 1; } /* Button styles */ .btn { border-radius: 10px; padding: 12px 25px; font-weight: 600; border: none; transition: all 0.3s ease; position: relative; overflow: hidden; } .btn::before { content: ''; position: absolute; top: 0; left: -100%; width: 100%; height: 100%; background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent); transition: left 0.5s; } .btn:hover::before { left: 100%; } .btn-primary { background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4); } .btn-primary:hover { transform: translateY(-3px); box-shadow: 0 8px 25px rgba(102, 126, 234, 0.6); } .btn-success { background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%); box-shadow: 0 5px 15px rgba(79, 172, 254, 0.4); } .btn-warning { background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%); box-shadow: 0 5px 15px rgba(245, 87, 108, 0.4); } .btn-danger { background: linear-gradient(135deg, #fa709a 0%, #fee140 100%); box-shadow: 0 5px 15px rgba(250, 112, 154, 0.4); } .btn-info { background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%); box-shadow: 0 5px 15px rgba(67, 233, 123, 0.4); } .btn-outline-primary { border: 2px solid #667eea; color: #667eea; background: transparent; } .btn-outline-primary:hover { background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); color: white; transform: translateY(-3px); } /* Smaller button styles */ .btn-sm { padding: 8px 16px; font-size: 0.85em; border-radius: 8px; } /* Maintenance table with colored types */ .maintenance-table { font-size: 0.9em; border-radius: 12px; overflow: hidden; } .maintenance-table .table { border-radius: 12px; overflow: hidden; } .maintenance-table .table th { background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); color: white; border: none; padding: 15px; font-weight: 600; } .maintenance-table .table td { padding: 12px 15px; border-bottom: 1px solid rgba(0,0,0,0.1); vertical-align: middle; } /* Maintenance type badges with different colors */ .maintenance-type-to { background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); color: white; padding: 8px 15px; border-radius: 20px; font-weight: 600; font-size: 0.85em; box-shadow: 0 3px 10px rgba(102, 126, 234, 0.3); } .maintenance-type-to1 { background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%); color: white; padding: 8px 15px; border-radius: 20px; font-weight: 600; font-size: 0.85em; box-shadow: 0 3px 10px rgba(79, 172, 254, 0.3); } .maintenance-type-to2 { background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%); color: white; padding: 8px 15px; border-radius: 20px; font-weight: 600; font-size: 0.85em; box-shadow: 0 3px 10px rgba(67, 233, 123, 0.3); } .maintenance-type-to3 { background: linear-gradient(135deg, #fa709a 0%, #fee140 100%); color: white; padding: 8px 15px; border-radius: 20px; font-weight: 600; font-size: 0.85em; box-shadow: 0 3px 10px rgba(250, 112, 154, 0.3); } .maintenance-type-verification { background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%); color: white; padding: 8px 15px; border-radius: 20px; font-weight: 600; font-size: 0.85em; box-shadow: 0 3px 10px rgba(245, 87, 108, 0.3); } .maintenance-type-unscheduled { background: linear-gradient(135deg, #ff9a9e 0%, #fecfef 100%); color: #2d3748; padding: 8px 15px; border-radius: 20px; font-weight: 600; font-size: 0.85em; box-shadow: 0 3px 10px rgba(255, 154, 158, 0.3); } /* Image gallery */ .image-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 1.5rem; margin-top: 1rem; } .image-item { position: relative; border: none; border-radius: 15px; overflow: hidden; background: white; box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1); transition: all 0.3s ease; } .image-item:hover { transform: translateY(-5px); box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2); } .image-item img { width: 100%; height: 140px; object-fit: cover; cursor: pointer; transition: transform 0.3s ease; } .image-item:hover img { transform: scale(1.05); } .image-info { padding: 1rem; font-size: 0.8em; } .image-actions { position: absolute; top: 0.5rem; right: 0.5rem; opacity: 0; transition: opacity 0.3s ease; } .image-item:hover .image-actions { opacity: 1; } /* Documents list */ .document-item { border: none; border-radius: 12px; padding: 1.5rem; margin-bottom: 1rem; background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%); box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1); transition: all 0.3s ease; } .document-item:hover { transform: translateX(5px); box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15); } .document-icon { font-size: 2em; color: #667eea; } /* Expiring verifications */ .expiring-item { border-left: 6px solid #4facfe; background: linear-gradient(135deg, #e3f2fd 0%, #f3e5f5 100%); border-radius: 12px; } .expiring-soon { border-left-color: #ffb74d; background: linear-gradient(135deg, #fff3e0 0%, #fce4ec 100%); border-radius: 12px; } .expiring-urgent { border-left-color: #e57373; background: linear-gradient(135deg, #ffebee 0%, #fce4ec 100%); border-radius: 12px; } /* Pulse animation for warnings */ .pulse { animation: pulse 2s infinite; box-shadow: 0 0 0 0 rgba(245, 87, 108, 0.7); } @keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(245, 87, 108, 0.7); } 70% { box-shadow: 0 0 0 15px rgba(245, 87, 108, 0); } 100% { box-shadow: 0 0 0 0 rgba(245, 87, 108, 0); } } /* Loading spinner */ .loading-spinner { display: inline-block; width: 2rem; height: 2rem; border: 3px solid #f3f3f3; border-top: 3px solid #667eea; border-radius: 50%; animation: spin 1s linear infinite; } @keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } } /* Field groups in forms */ .field-group { background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%); border: none; border-radius: 15px; padding: 1.5rem; margin-bottom: 1.5rem; box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05); } .field-group legend { font-size: 1em; font-weight: 700; color: #2d3748; padding: 0 1rem; margin-bottom: 1rem; background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; } /* Modal styles */ .modal-content { border: none; border-radius: 20px; box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3); background: rgba(255, 255, 255, 0.95); backdrop-filter: blur(20px); } .modal-header { border-radius: 20px 20px 0 0; border-bottom: 2px solid rgba(102, 126, 234, 0.1); background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); color: white; } .modal-footer { border-radius: 0 0 20px 20px; border-top: 2px solid rgba(102, 126, 234, 0.1); } /* Alert styles */ .alert { border: none; border-radius: 12px; padding: 1rem 1.5rem; box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1); } .alert-success { background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%); color: #155724; } .alert-warning { background: linear-gradient(135deg, #fff3cd 0%, #ffeaa7 100%); color: #856404; } .alert-danger { background: linear-gradient(135deg, #f8d7da 0%, #f5c6cb 100%); color: #721c24; } .alert-info { background: linear-gradient(135deg, #d1ecf1 0%, #bee5eb 100%); color: #0c5460; } /* Badge styles */ .badge { border-radius: 20px; padding: 8px 15px; font-weight: 600; font-size: 0.75em; } .bg-primary { background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important; } .bg-success { background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%) !important; } .bg-warning { background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%) !important; } .bg-danger { background: linear-gradient(135deg, #fa709a 0%, #fee140 100%) !important; } .bg-info { background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%) !important; } /* Responsive adjustments */ @media (max-width: 768px) { .container-fluid { padding: 10px; } .card-body { padding: 1rem; } .image-gallery { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); } .btn { padding: 10px 20px; font-size: 0.9em; } .nav-tabs .nav-link { padding: 6px 10px; font-size: 0.75em; margin: 0 1px; } } /* Custom scrollbar */ ::-webkit-scrollbar { width: 8px; } ::-webkit-scrollbar-track { background: rgba(241, 241, 241, 0.5); border-radius: 10px; } ::-webkit-scrollbar-thumb { background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); border-radius: 10px; } ::-webkit-scrollbar-thumb:hover { background: linear-gradient(135deg, #5a6fd8 0%, #6a4190 100%); } /* Status badges */ .status-badge { font-size: 0.7em; padding: 0.4em 0.8em; border-radius: 15px; } /* Filter buttons */ .btn-group .btn-check:checked + .btn { background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); color: white; transform: translateY(-2px); box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4); } /* Table row hover effects */ .table-hover tbody tr:hover { background: rgba(102, 126, 234, 0.05); transform: scale(1.01); transition: all 0.3s ease; } /* Input group enhancements */ .input-group-text { background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); color: white; border: none; border-radius: 10px 0 0 10px; } /* Navbar enhancements */ .navbar { box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1); backdrop-filter: blur(10px); background: rgba(255, 255, 255, 0.95) !important; } .navbar-brand { font-weight: 700; background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; } /* Flex utilities for button groups */ .d-flex.flex-wrap.gap-2 { gap: 0.5rem !important; } /* Complex actions panel */ #complexActions { transition: all 0.3s ease; } /* Стили для кнопки выхода и информации о пользователе */ .btn-outline-light { border: 2px solid rgba(255, 255, 255, 0.5); color: white; transition: all 0.3s ease; } .btn-outline-light:hover { background-color: rgba(255, 255, 255, 0.1); border-color: white; color: white; transform: translateY(-1px); } .navbar-text { font-size: 0.9em; } #userRoleBadge { font-size: 0.7em; } /* Адаптивность для мобильных устройств */ @media (max-width: 768px) { .navbar-nav { flex-direction: column; align-items: flex-end; } .navbar-text { margin-bottom: 0.5rem; } #adminPanel { margin-bottom: 0.5rem; } } /* Стили для индикатора режима */ #modeIndicator { font-size: 0.7em; opacity: 0.8; font-weight: normal; } /* Скрытие кнопок для обычных пользователей */ .user-view-only { display: none !important; } /* Скрытие элементов для обычных пользователей */ .hidden-for-user { display: none !important; } /* Скрытие кнопки редактирования для не-админов */ .hide-for-user { display: none !important; } /* Стили для группировки документов по датам */ .date-group { border-left: 4px solid #007bff; padding-left: 15px; } .date-header { background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%); border: 1px solid #dee2e6; } .date-header h6 { color: #495057; font-weight: 600; } .documents-list { transition: all 0.3s ease; } .document-item { padding: 12px 15px; margin-bottom: 8px; background: white; border: 1px solid #e9ecef; border-radius: 6px; transition: all 0.2s ease; } .document-item:hover { background: #f8f9fa; border-color: #007bff; transform: translateX(5px); } .document-icon { font-size: 1.5rem; } /* Стили для множественной загрузки файлов */ .file-item { background: #f8f9fa; border-radius: 4px; margin-bottom: 5px; } .file-item:last-child { border-bottom: none !important; } .file-item i { width: 16px; text-align: center; } /* Стили для группировки документов по датам */ .date-group { border-left: 3px solid #007bff; padding-left: 12px; } .date-header { background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%); border: 1px solid #dee2e6; transition: all 0.2s ease; } .date-header:hover { background: linear-gradient(135deg, #e9ecef 0%, #dee2e6 100%); border-color: #007bff; } .date-header h6 { color: #495057; font-weight: 600; user-select: none; } .documents-list { transition: all 0.3s ease; animation: fadeIn 0.3s ease; } @keyframes fadeIn { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: translateY(0); } } .document-item { padding: 10px 12px; margin-bottom: 6px; background: white; border: 1px solid #e9ecef; border-radius: 6px; transition: all 0.2s ease; } .document-item:hover { background: #f8f9fa; border-color: #007bff; transform: translateX(5px); } .document-icon { font-size: 1.2rem; width: 24px; text-align: center; } /* Стили для группировки фото по датам */ .photos-by-date .date-group { margin-bottom: 2rem; } .photos-gallery { animation: fadeIn 0.3s ease; } /* Адаптивность для модальных окон */ @media (max-width: 768px) { .image-gallery { grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); } } /* Стили для результатов загрузки */ #bulkUploadResultsContent { background: #f8f9fa; border-radius: 8px; padding: 1rem; } #bulkUploadResultsContent .alert { margin-bottom: 1rem; } .btn-group .btn { margin-right: 5px; margin-bottom: 5px; } .btn-outline-warning { color: #ffc107; border-color: #ffc107; } .btn-outline-warning:hover { color: #212529; background-color: #ffc107; border-color: #ffc107; } .image-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 15px; padding: 10px; } .image-item { border: 1px solid #ddd; border-radius: 8px; overflow: hidden; background: white; transition: transform 0.2s; } .image-item:hover { transform: translateY(-2px); box-shadow: 0 4px 8px rgba(0,0,0,0.1); } .image-item img { width: 100%; height: 150px; object-fit: cover; cursor: pointer; } .image-actions { padding: 5px; text-align: center; background: #f8f9fa; } .image-info { padding: 8px; font-size: 0.9em; } /* Стили для плиточной галереи фото обслуживания - ИСПРАВЛЕННЫЕ */ .photos-by-date .image-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 1rem; padding: 1rem; background: rgba(255, 255, 255, 0.5); border-radius: 12px; margin-top: 1rem; } .photos-by-date .image-item { position: relative; border: none; border-radius: 12px; overflow: hidden; background: white; box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1); transition: all 0.3s ease; display: flex; flex-direction: column; height: fit-content; } .photos-by-date .image-item:hover { transform: translateY(-3px); box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15); } .photos-by-date .image-item .image-container { width: 100%; height: 120px; display: flex; align-items: center; justify-content: center; background: #f8f9fa; overflow: hidden; padding: 5px; } .photos-by-date .image-item img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; cursor: pointer; transition: transform 0.3s ease; border-radius: 8px; } .photos-by-date .image-item:hover img { transform: scale(1.08); } /* Скрываем информацию о фото в галерее */ .photos-by-date .image-info { display: none; /* Скрываем названия фото в галерее */ } .photos-by-date .image-actions { position: absolute; top: 0.5rem; right: 0.5rem; opacity: 0; transition: all 0.3s ease; background: rgba(255, 255, 255, 0.9); border-radius: 50%; width: 30px; height: 30px; display: flex; align-items: center; justify-content: center; } .photos-by-date .image-item:hover .image-actions { opacity: 1; } .photos-by-date .image-actions .btn { padding: 0; width: 24px; height: 24px; display: flex; align-items: center; justify-content: center; } /* Стили для обычной галереи изображений */ .image-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 1rem; padding: 1rem; } .image-item { position: relative; border: none; border-radius: 12px; overflow: hidden; background: white; box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1); transition: all 0.3s ease; display: flex; flex-direction: column; height: fit-content; } .image-item:hover { transform: translateY(-3px); box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15); } .image-item .image-container { width: 100%; height: 120px; display: flex; align-items: center; justify-content: center; background: #f8f9fa; overflow: hidden; padding: 5px; } .image-item img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; cursor: pointer; transition: transform 0.3s ease; border-radius: 8px; } .image-item:hover img { transform: scale(1.08); } /* Скрываем информацию о фото в галерее */ .image-info { display: none; /* Скрываем названия фото в галерее */ } .image-actions { position: absolute; top: 0.5rem; right: 0.5rem; opacity: 0; transition: all 0.3s ease; background: rgba(255, 255, 255, 0.9); border-radius: 50%; width: 30px; height: 30px; display: flex; align-items: center; justify-content: center; } .image-item:hover .image-actions { opacity: 1; } .image-actions .btn { padding: 0; width: 24px; height: 24px; display: flex; align-items: center; justify-content: center; } /* Адаптивность */ @media (max-width: 768px) { .photos-by-date .image-gallery, .image-gallery { grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 0.75rem; padding: 0.5rem; } .photos-by-date .image-item .image-container, .image-item .image-container { height: 100px; } } @media (max-width: 576px) { .photos-by-date .image-gallery, .image-gallery { grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); gap: 0.5rem; } .photos-by-date .image-item .image-container, .image-item .image-container { height: 80px; } } /* Стили для превью изображения (где показываем название) */ #maintenancePhotoPreviewModal .modal-title { font-size: 1.1rem; font-weight: 600; } #imagePreviewModal .modal-title { font-size: 1.1rem; font-weight: 600; } /* Убедимся, что превью изображения показывает название */ .modal-header .modal-title { word-break: break-word; } /* Стили для плиточной галереи фото обслуживания */ #maintenancePhotosContent .photos-by-date .image-gallery { display: grid !important; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)) !important; gap: 1rem !important; padding: 1rem !important; background: rgba(255, 255, 255, 0.5) !important; border-radius: 12px !important; margin-top: 1rem !important; width: 100% !important; } #maintenancePhotosContent .photos-by-date .image-item { position: relative !important; border: none !important; border-radius: 12px !important; overflow: hidden !important; background: white !important; box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1) !important; transition: all 0.3s ease !important; display: flex !important; flex-direction: column !important; height: fit-content !important; min-height: 120px !important; } #maintenancePhotosContent .photos-by-date .image-item:hover { transform: translateY(-3px) !important; box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15) !important; } #maintenancePhotosContent .photos-by-date .image-item .image-container { width: 100% !important; height: 120px !important; display: flex !important; align-items: center !important; justify-content: center !important; background: #f8f9fa !important; overflow: hidden !important; padding: 5px !important; } #maintenancePhotosContent .photos-by-date .image-item img { max-width: 100% !important; max-height: 100% !important; width: auto !important; height: auto !important; object-fit: contain !important; cursor: pointer !important; transition: transform 0.3s ease !important; border-radius: 8px !important; } #maintenancePhotosContent .photos-by-date .image-item:hover img { transform: scale(1.08) !important; } /* Скрываем информацию о фото в галерее */ #maintenancePhotosContent .photos-by-date .image-info { display: none !important; } #maintenancePhotosContent .photos-by-date .image-actions { position: absolute !important; top: 0.5rem !important; right: 0.5rem !important; opacity: 0 !important; transition: all 0.3s ease !important; background: rgba(255, 255, 255, 0.9) !important; border-radius: 50% !important; width: 30px !important; height: 30px !important; display: flex !important; align-items: center !important; justify-content: center !important; } #maintenancePhotosContent .photos-by-date .image-item:hover .image-actions { opacity: 1 !important; } #maintenancePhotosContent .photos-by-date .image-actions .btn { padding: 0 !important; width: 24px !important; height: 24px !important; display: flex !important; align-items: center !important; justify-content: center !important; } /* Адаптивность */ @media (max-width: 768px) { #maintenancePhotosContent .photos-by-date .image-gallery { grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)) !important; gap: 0.75rem !important; padding: 0.5rem !important; } #maintenancePhotosContent .photos-by-date .image-item .image-container { height: 100px !important; } } @media (max-width: 576px) { #maintenancePhotosContent .photos-by-date .image-gallery { grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)) !important; gap: 0.5rem !important; } #maintenancePhotosContent .photos-by-date .image-item .image-container { height: 80px !important; } } /* ДЕБАГ: Добавим рамки для визуализации */ #maintenancePhotosContent .photos-by-date .image-gallery { border: 2px dashed #007bff !important; } #maintenancePhotosContent .photos-by-date .image-item { border: 1px solid #dee2e6 !important; } /* СИЛЬНЫЕ стили для свёрнутых галерей */ #maintenancePhotosContent .photos-by-date .image-gallery[data-collapsed="true"] { display: none !important; visibility: hidden !important; opacity: 0 !important; height: 0 !important; overflow: hidden !important; margin: 0 !important; padding: 0 !important; } #maintenancePhotosContent .photos-by-date .image-gallery { display: none !important; /* По умолчанию все свёрнуты */ grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)) !important; gap: 1rem !important; padding: 1rem !important; background: rgba(255, 255, 255, 0.5) !important; border-radius: 12px !important; margin-top: 1rem !important; width: 100% !important; transition: all 0.3s ease !important; } /* Стили для развёрнутых галерей */ #maintenancePhotosContent .photos-by-date .image-gallery[data-collapsed="false"] { display: grid !important; visibility: visible !important; opacity: 1 !important; height: auto !important; overflow: visible !important; } /* Стили для элементов галереи */ #maintenancePhotosContent .photos-by-date .image-item { position: relative !important; border: none !important; border-radius: 12px !important; overflow: hidden !important; background: white !important; box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1) !important; transition: all 0.3s ease !important; display: flex !important; flex-direction: column !important; height: fit-content !important; min-height: 120px !important; } #maintenancePhotosContent .photos-by-date .image-item:hover { transform: translateY(-3px) !important; box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15) !important; } #maintenancePhotosContent .photos-by-date .image-item .image-container { width: 100% !important; height: 120px !important; display: flex !important; align-items: center !important; justify-content: center !important; background: #f8f9fa !important; overflow: hidden !important; padding: 5px !important; } #maintenancePhotosContent .photos-by-date .image-item img { max-width: 100% !important; max-height: 100% !important; width: auto !important; height: auto !important; object-fit: contain !important; cursor: pointer !important; transition: transform 0.3s ease !important; border-radius: 8px !important; }