/
Ao
/
MaxReport
Обзор
Документация
Войти
/
Ao
/
MaxReport
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
CI/CD
Аналитика
Безопасность
master
report-system/web/admin/static/style.css
151 строка
9 KB
AoAnima
first_commit
13 июл 2026, 17:47
13 июл 2026, 17:47
f1a670a
Код
Авторство
О чём код?
* { box-sizing: border-box; margin: 0; padding: 0; } body { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; background: #f0f2f5; } /* Layout */ .layout { display: flex; min-height: 100vh; } body .sidebar { width: 240px; background: #1a237e !important; color: white; padding: 0; flex-shrink: 0; } .sidebar-header { padding: 20px; border-bottom: 1px solid rgba(255,255,255,0.1); } .sidebar-header h2 { font-size: 18px; } .nav-list { list-style: none; padding: 8px 0; } body .sidebar .nav-link { display: flex; align-items: center; gap: 10px; padding: 12px 20px; color: rgba(255,255,255,0.8); text-decoration: none; font-size: 14px; transition: background 0.2s; } body .sidebar .nav-link:hover { background: rgba(255,255,255,0.1); color: white; } body .sidebar .nav-link.active { background: rgba(255,255,255,0.15); color: white; border-right: 3px solid #fff; } /* Navigation icons — simple CSS-only icons instead of emoji */ .nav-icon { display: inline-flex; align-items: center; justify-content: center; width: 20px; height: 20px; flex-shrink: 0; } .nav-icon-dashboard::before { content: '▦'; font-size: 16px; } .nav-icon-campaigns::before { content: '☰'; font-size: 14px; } .nav-icon-municipalities::before { content: '⌂'; font-size: 16px; } .nav-icon-docs::before { content: '?'; font-weight: bold; font-size: 14px; border: 1px solid rgba(255,255,255,0.6); border-radius: 50%; width: 18px; height: 18px; display: flex; align-items: center; justify-content: center; } .nav-icon-users::before { content: '♟'; font-size: 16px; } .main-content { flex: 1; padding: 24px; min-width: 0; } /* Sidebar user */ .sidebar-user { padding: 16px 20px; border-top: 1px solid rgba(255,255,255,0.1); margin-top: auto; } .sidebar-user .user-name { font-size: 14px; font-weight: 600; color: white; } .sidebar-user .user-role { font-size: 11px; color: rgba(255,255,255,0.6); margin-bottom: 8px; text-transform: uppercase; letter-spacing: 0.5px; } .sidebar-user .logout-link { color: rgba(255,255,255,0.7); font-size: 13px; text-decoration: none; display: inline-block; padding: 4px 8px; border-radius: 4px; transition: background 0.2s; } .sidebar-user .logout-link:hover { background: rgba(255,255,255,0.1); color: white; } /* Stats */ .stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin: 20px 0; } .stat-card { background: white; border-radius: 8px; padding: 20px; box-shadow: 0 1px 3px rgba(0,0,0,0.1); } .stat-card .value { font-size: 32px; font-weight: bold; color: #1a237e; } .stat-card .label { color: #666; margin-top: 4px; font-size: 13px; } /* Cards */ .card { background: white; border-radius: 8px; padding: 20px; margin-bottom: 16px; box-shadow: 0 1px 3px rgba(0,0,0,0.1); } /* Tables */ table { width: 100%; border-collapse: collapse; } th, td { padding: 10px 12px; text-align: left; border-bottom: 1px solid #eee; font-size: 14px; } th { background: #f5f5f5; font-weight: 600; color: #333; } tr:hover td { background: #f8f9ff; } /* Badges */ .badge { display: inline-block; padding: 3px 8px; border-radius: 12px; font-size: 12px; font-weight: 600; } .badge-accepted { background: #e8f5e9; color: #2e7d32; } .badge-rework { background: #fce4ec; color: #c62828; } .badge-pending, .badge-not_sent { background: #fff3e0; color: #e65100; } .badge-overdue { background: #fce4ec; color: #b71c1c; } .badge-received { background: #e3f2fd; color: #1565c0; } .badge-validating { background: #f3e5f5; color: #7b1fa2; } .badge-awaiting_pdf, .badge-awaiting_explanation, .badge-awaiting_manual { background: #fff8e1; color: #f57f17; } .badge-superseded { background: #e0e0e0; color: #616161; } .badge-active { background: #e8f5e9; color: #2e7d32; } .badge-closed { background: #e0e0e0; color: #616161; } .badge-draft { background: #e3f2fd; color: #1565c0; } /* Buttons */ .btn { display: inline-block; padding: 8px 16px; border: none; border-radius: 6px; cursor: pointer; font-size: 14px; font-weight: 500; text-decoration: none; transition: background 0.2s; } .btn-primary { background: #1a237e; color: white; } .btn-primary:hover { background: #283593; } .btn-secondary { background: #e0e0e0; color: #333; } .btn-secondary:hover { background: #bdbdbd; } .btn-success { background: #2e7d32; color: white; } .btn-success:hover { background: #388e3c; } .btn-danger { background: #c62828; color: white; } .btn-danger:hover { background: #d32f2f; } .btn-sm { padding: 4px 10px; font-size: 12px; } .actions { display: flex; gap: 8px; margin: 16px 0; flex-wrap: wrap; } .page-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; } .page-header h2 { margin: 0; } /* Filters */ .filter-bar { display: flex; gap: 8px; margin-bottom: 16px; } .filter-bar select, .filter-bar input[type="search"] { padding: 8px 12px; border: 1px solid #ddd; border-radius: 6px; font-size: 14px; } .filter-bar input[type="search"] { flex: 1; max-width: 300px; } /* Forms */ .form { max-width: 700px; } .form-centered { max-width: 700px; margin: 0 auto; } .form-group { margin-bottom: 16px; } .form-group label { display: block; font-weight: 600; margin-bottom: 4px; color: #333; font-size: 14px; } .form-group input, .form-group textarea, .form-group select { width: 100%; padding: 8px 12px; border: 1px solid #ddd; border-radius: 6px; font-size: 14px; } .form-group input:focus, .form-group textarea:focus { outline: none; border-color: #1a237e; box-shadow: 0 0 0 2px rgba(26,35,126,0.1); } .form-row { display: flex; gap: 16px; } .form-row .form-group { flex: 1; } .form-actions { display: flex; gap: 8px; padding-top: 16px; border-top: 1px solid #eee; } .checkbox-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 8px; max-height: 300px; overflow-y: auto; border: 1px solid #eee; border-radius: 6px; padding: 12px; } .checkbox-grid label { display: flex; align-items: center; gap: 6px; font-size: 13px; cursor: pointer; padding: 4px 6px; border-radius: 4px; } .checkbox-grid label:hover { background: #f0f2ff; } .checkbox-grid input[type="checkbox"] { width: auto; } /* Links */ a { color: #1a237e; } a:hover { color: #283593; } .campaign-link { color: #1a237e; text-decoration: none; font-weight: 500; } .campaign-link:hover { color: #283593; text-decoration: underline; } /* Status transition form */ .status-form { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; } .status-form select { padding: 4px 8px; border: 1px solid #ddd; border-radius: 4px; font-size: 12px; } .status-form .btn { font-size: 12px; } /* Modal */ .modal-backdrop { position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0,0,0,0.5); display: flex; align-items: center; justify-content: center; z-index: 1000; } .modal-backdrop.modal-hidden { display: none !important; } .modal { background: white; border-radius: 12px; padding: 24px; min-width: 400px; max-width: 600px; box-shadow: 0 20px 60px rgba(0,0,0,0.3); } .modal h3 { margin-bottom: 16px; } /* History timeline */ .timeline { list-style: none; padding: 0; } .timeline li { padding: 8px 0; border-left: 2px solid #ddd; padding-left: 16px; margin-left: 8px; position: relative; font-size: 13px; color: #555; } .timeline li::before { content: ''; position: absolute; left: -5px; top: 12px; width: 8px; height: 8px; border-radius: 50%; background: #1a237e; } .timeline li .time { color: #999; font-size: 11px; } /* Progress bar */ .progress-bar { display: flex; height: 24px; border-radius: 12px; overflow: hidden; margin: 8px 0; } .progress-bar div { display: flex; align-items: center; justify-content: center; font-size: 11px; color: white; font-weight: 600; } /* Summary stats */ .summary-stats { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; margin: 12px 0; } .summary-stat { text-align: center; padding: 12px; background: #f5f5f5; border-radius: 8px; } /* HTMX loading indicator — HTMX adds .htmx-request to the indicator element */ .htmx-request { opacity: 0.6; pointer-events: none; transition: opacity 0.2s; } .htmx-request .btn { cursor: wait; } @keyframes htmx-pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.3; } } /* Loader spinner */ .loader { display: inline-block; width: 20px; height: 20px; border: 2px solid #ddd; border-top-color: #1a237e; border-radius: 50%; animation: spin 0.6s linear infinite; } @keyframes spin { to { transform: rotate(360deg); } } /* Skeleton loading placeholder */ .skeleton { background: linear-gradient(90deg, #eee 25%, #f5f5f5 50%, #eee 75%); background-size: 200% 100%; animation: shimmer 1.5s infinite; border-radius: 4px; } @keyframes shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } } .summary-stat .num { font-size: 24px; font-weight: bold; } .summary-stat .lbl { font-size: 12px; color: #666; } /* File upload zone */ .upload-zone { border: 2px dashed #ccc; border-radius: 8px; padding: 24px; text-align: center; cursor: pointer; transition: border-color 0.2s, background 0.2s; } .upload-zone:hover { border-color: #1a237e; background: #f0f2ff; } .upload-zone.dragover { border-color: #1a237e; background: #e8eaf6; } .upload-zone .upload-icon { font-size: 32px; color: #999; margin-bottom: 8px; } .upload-zone .upload-text { color: #666; font-size: 14px; } .upload-zone .upload-text strong { color: #1a237e; } .upload-zone .upload-filename { color: #1a237e; font-weight: 600; margin-top: 8px; display: none; } .upload-zone.has-file { border-color: #2e7d32; border-style: solid; background: #f1f8e9; } .upload-zone.has-file .upload-text { display: none; } .upload-zone.has-file .upload-filename { display: block; } .upload-zone input[type="file"] { display: none; }