738 lines
14 KiB
CSS
738 lines
14 KiB
CSS
:root {
|
|
--primary: #78909c;
|
|
--primary-light: #b0bec5;
|
|
--primary-dark: #546e7a;
|
|
--bg-light: #f8fafc;
|
|
--bg-white: #ffffff;
|
|
--text-dark: #37474f;
|
|
--text-muted: #607d8b;
|
|
--border-light: #e2e8f0;
|
|
--shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
|
|
--shadow-md: 0 4px 16px rgba(0, 0, 0, 0.06);
|
|
--border-radius: 12px;
|
|
--border-radius-sm: 8px;
|
|
--transition: all 0.2s ease;
|
|
--card-bg: #ffffff;
|
|
--header-bg: #78909c;
|
|
--input-bg: #ffffff;
|
|
}
|
|
|
|
body.dark {
|
|
--primary: #90a4ae;
|
|
--primary-light: #b0bec5;
|
|
--primary-dark: #cfd8dc;
|
|
--bg-light: #121212;
|
|
--bg-white: #1e1e1e;
|
|
--text-dark: #e0e0e0;
|
|
--text-muted: #9e9e9e;
|
|
--border-light: #333333;
|
|
--shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.2);
|
|
--shadow-md: 0 4px 16px rgba(0, 0, 0, 0.3);
|
|
--card-bg: #2d2d2d;
|
|
--header-bg: #78909c;
|
|
--input-bg: #2d2d2d;
|
|
}
|
|
|
|
* {
|
|
margin: 0;
|
|
padding: 0;
|
|
box-sizing: border-box;
|
|
}
|
|
|
|
body {
|
|
font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
|
|
background-color: var(--bg-light);
|
|
color: var(--text-dark);
|
|
line-height: 1.6;
|
|
transition: background-color 0.3s, color 0.2s;
|
|
}
|
|
|
|
.container {
|
|
max-width: 1280px;
|
|
margin: 0 auto;
|
|
padding: 0 24px;
|
|
}
|
|
|
|
.containers {
|
|
max-width: 1232px;
|
|
margin: 0 auto;
|
|
border-radius: 10px;
|
|
margin-top: 10px;
|
|
}
|
|
|
|
/* Страница входа */
|
|
.login-page {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
min-height: 100vh;
|
|
background: linear-gradient(145deg, #eef2f6 0%, #d9e2e9 100%);
|
|
}
|
|
body.dark .login-page {
|
|
background: linear-gradient(145deg, #1a1a1a 0%, #0a0a0a 100%);
|
|
}
|
|
|
|
.login-container {
|
|
background: var(--bg-white);
|
|
padding: 48px 40px;
|
|
border-radius: var(--border-radius);
|
|
box-shadow: var(--shadow-md);
|
|
width: 100%;
|
|
max-width: 420px;
|
|
}
|
|
.centreee {
|
|
text-align: center;
|
|
margin-bottom: 10px;
|
|
}
|
|
|
|
.logbt{
|
|
width: 100%;
|
|
border: none;
|
|
border-radius: 10px;;
|
|
display: inline-block;
|
|
padding: 12px 28px;
|
|
font-size: 1rem;
|
|
font-weight: 500;
|
|
cursor: pointer;
|
|
text-decoration: none;
|
|
transition: var(--transition);
|
|
}
|
|
|
|
/* Шапка */
|
|
.header {
|
|
background: var(--header-bg);
|
|
padding: 20px;
|
|
margin-bottom: 32px;
|
|
}
|
|
|
|
.header .container {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
flex-wrap: wrap;
|
|
}
|
|
|
|
.header h1 {
|
|
font-size: 1.8rem;
|
|
color: #ffffff;
|
|
font-weight: 500;
|
|
}
|
|
|
|
.user-info {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 24px;
|
|
flex-wrap: wrap;
|
|
color: #ffffff;
|
|
}
|
|
|
|
.theme-toggle {
|
|
background: #566973;
|
|
border-radius: 40px;
|
|
border: none;
|
|
padding: 8px 16px;
|
|
cursor: pointer;
|
|
font-size: 1.2rem;
|
|
transition: var(--transition);
|
|
}
|
|
.theme-toggle:hover {
|
|
background: #37444a;
|
|
}
|
|
|
|
/* Карточки */
|
|
.card {
|
|
background: var(--card-bg);
|
|
border-radius: var(--border-radius);
|
|
padding: 32px;
|
|
margin-bottom: 28px;
|
|
box-shadow: var(--shadow-sm);
|
|
border: 1px solid var(--border-light);
|
|
}
|
|
|
|
.card h2 {
|
|
margin-bottom: 24px;
|
|
color: var(--primary-dark);
|
|
font-weight: 500;
|
|
font-size: 1.5rem;
|
|
}
|
|
|
|
.card h3 {
|
|
margin: 20px 0 12px;
|
|
color: var(--text-dark);
|
|
font-weight: 500;
|
|
font-size: 1.25rem;
|
|
}
|
|
|
|
/* Пояснительный блок */
|
|
.info-block {
|
|
background: #f1f5f9;
|
|
border-left: 4px solid var(--primary);
|
|
padding: 20px 24px;
|
|
border-radius: var(--border-radius-sm);
|
|
margin-bottom: 28px;
|
|
}
|
|
body.dark .info-block {
|
|
background: #2a2a2a;
|
|
}
|
|
|
|
/* FAQ (аккордеон) */
|
|
.faq-item {
|
|
border-bottom: 1px solid var(--border-light);
|
|
}
|
|
|
|
.faq-question {
|
|
display: block;
|
|
padding: 16px 0;
|
|
font-weight: 500;
|
|
color: var(--primary-dark);
|
|
cursor: pointer;
|
|
user-select: none;
|
|
transition: var(--transition);
|
|
}
|
|
|
|
.faq-question:hover {
|
|
color: var(--primary);
|
|
}
|
|
|
|
.faq-question::after {
|
|
content: "▼";
|
|
float: right;
|
|
font-size: 12px;
|
|
color: var(--primary-light);
|
|
transition: transform 0.2s;
|
|
}
|
|
|
|
.faq-toggle {
|
|
display: none;
|
|
}
|
|
|
|
.faq-answer {
|
|
max-height: 0;
|
|
overflow: hidden;
|
|
transition: max-height 0.3s ease;
|
|
padding: 0 0 0 0;
|
|
}
|
|
|
|
.faq-toggle:checked + .faq-question::after {
|
|
transform: rotate(180deg);
|
|
}
|
|
|
|
.faq-toggle:checked + .faq-question + .faq-answer {
|
|
max-height: 200px;
|
|
padding: 0 0 16px 0;
|
|
}
|
|
|
|
.faq-answer p {
|
|
color: var(--text-muted);
|
|
margin-bottom: 12px;
|
|
}
|
|
|
|
/* Ссылки-кнопки */
|
|
.external-links {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
gap: 12px;
|
|
margin-top: 20px;
|
|
}
|
|
|
|
.btn-link {
|
|
background: var(--bg-light);
|
|
border: 1px solid var(--border-light);
|
|
padding: 12px 24px;
|
|
border-radius: 40px;
|
|
color: var(--primary-dark);
|
|
text-decoration: none;
|
|
font-weight: 500;
|
|
transition: var(--transition);
|
|
display: inline-flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
}
|
|
|
|
.btn-link:hover {
|
|
background: var(--primary-light);
|
|
border-color: var(--primary);
|
|
color: var(--bg-white);
|
|
transform: translateY(-2px);
|
|
box-shadow: var(--shadow-sm);
|
|
}
|
|
|
|
/* Формы */
|
|
.form-group {
|
|
margin-bottom: 24px;
|
|
}
|
|
|
|
label {
|
|
display: block;
|
|
margin-bottom: 8px;
|
|
font-weight: 500;
|
|
color: var(--text-dark);
|
|
}
|
|
|
|
input, select, textarea {
|
|
width: 100%;
|
|
padding: 12px 16px;
|
|
border: 1px solid var(--border-light);
|
|
border-radius: var(--border-radius-sm);
|
|
font-size: 1rem;
|
|
transition: var(--transition);
|
|
background: var(--input-bg);
|
|
color: var(--text-dark);
|
|
}
|
|
|
|
input:focus, select:focus, textarea:focus {
|
|
outline: none;
|
|
border-color: var(--primary);
|
|
box-shadow: 0 0 0 3px rgba(120, 144, 156, 0.15);
|
|
}
|
|
|
|
/* Кнопки */
|
|
.btn {
|
|
display: inline-block;
|
|
padding: 12px 28px;
|
|
border: none;
|
|
border-radius: 40px;
|
|
font-size: 1rem;
|
|
font-weight: 500;
|
|
cursor: pointer;
|
|
text-decoration: none;
|
|
transition: var(--transition);
|
|
}
|
|
|
|
.btn-primary {
|
|
background: var(--primary);
|
|
color: white;
|
|
box-shadow: var(--shadow-sm);
|
|
}
|
|
|
|
.btn-primary:hover {
|
|
background: var(--primary-dark);
|
|
transform: translateY(-2px);
|
|
box-shadow: var(--shadow-md);
|
|
}
|
|
|
|
.btn-outline {
|
|
background: #566973;
|
|
color: #ffffff;
|
|
}
|
|
|
|
.btn-outline:hover {
|
|
background: #37444a;
|
|
border-color: var(--primary);
|
|
}
|
|
|
|
/* Таблицы */
|
|
.table-wrapper {
|
|
overflow-x: auto;
|
|
}
|
|
.table {
|
|
width: 100%;
|
|
border-collapse: collapse;
|
|
min-width: 500px;
|
|
}
|
|
|
|
.table th {
|
|
text-align: left;
|
|
padding: 16px 12px;
|
|
border-bottom: 2px solid var(--primary-light);
|
|
font-weight: 600;
|
|
color: var(--primary-dark);
|
|
}
|
|
|
|
.table td {
|
|
padding: 14px 12px;
|
|
border-bottom: 1px solid var(--border-light);
|
|
}
|
|
|
|
/* Статусы и приоритеты */
|
|
.priority, .status {
|
|
display: inline-block;
|
|
padding: 6px 14px;
|
|
border-radius: 30px;
|
|
font-size: 0.8rem;
|
|
font-weight: 500;
|
|
}
|
|
|
|
.priority-low {
|
|
background: #e8f0e8;
|
|
color: #2e6b2e;
|
|
}
|
|
.priority-medium {
|
|
background: #fff3e0;
|
|
color: #b85c00;
|
|
}
|
|
.priority-high {
|
|
background: #fce4e4;
|
|
color: #b71c1c;
|
|
}
|
|
.priority-critical {
|
|
background: #b71c1c;
|
|
color: white;
|
|
}
|
|
|
|
.status-pending {
|
|
background: #fef9e6;
|
|
color: #9e7e00;
|
|
}
|
|
.status-processing {
|
|
background: #e3f0f5;
|
|
color: #1e637b;
|
|
}
|
|
.status-completed {
|
|
background: #e6f3e6;
|
|
color: #2a6b2a;
|
|
}
|
|
.status-rejected {
|
|
background: #fbeaec;
|
|
color: #b71c1c;
|
|
}
|
|
|
|
/* Алерты */
|
|
.alert {
|
|
padding: 16px 20px;
|
|
border-radius: var(--border-radius-sm);
|
|
margin-bottom: 24px;
|
|
border-left: 5px solid;
|
|
background: var(--bg-white);
|
|
box-shadow: var(--shadow-sm);
|
|
}
|
|
|
|
.alert-success {
|
|
border-left-color: #2e7d32;
|
|
background: #edf7ed;
|
|
color: #1b5e20;
|
|
}
|
|
body.dark .alert-success {
|
|
background: #1e3a1e;
|
|
color: #81c784;
|
|
}
|
|
|
|
.alert-danger {
|
|
border-left-color: #c62828;
|
|
background: #fdeded;
|
|
color: #b71c1c;
|
|
}
|
|
body.dark .alert-danger {
|
|
background: #3a1e1e;
|
|
color: #ef9a9a;
|
|
}
|
|
|
|
.alert-warning {
|
|
border-left-color: #ed6c02;
|
|
background: #fff4e5;
|
|
color: #663c00;
|
|
}
|
|
body.dark .alert-warning {
|
|
background: #3a2e1e;
|
|
color: #ffb74d;
|
|
}
|
|
|
|
/* Поле для файла */
|
|
input[type="file"] {
|
|
padding: 10px 0;
|
|
border: none;
|
|
background: transparent;
|
|
}
|
|
|
|
.hint {
|
|
font-size: 0.85rem;
|
|
color: var(--text-muted);
|
|
margin-top: 6px;
|
|
}
|
|
|
|
.field-group {
|
|
background: #fafbfc;
|
|
border-radius: var(--border-radius-sm);
|
|
padding: 24px;
|
|
margin-bottom: 20px;
|
|
border: 1px solid #e9eef2;
|
|
}
|
|
body.dark .field-group {
|
|
background: #252525;
|
|
border-color: #444;
|
|
}
|
|
|
|
/* Навигация */
|
|
.nav-links {
|
|
display: flex;
|
|
gap: 30px;
|
|
margin-bottom: 24px;
|
|
border-bottom: 1px solid var(--border-light);
|
|
padding-bottom: 12px;
|
|
flex-wrap: wrap;
|
|
}
|
|
.nav-links a {
|
|
color: var(--text-muted);
|
|
text-decoration: none;
|
|
font-weight: 500;
|
|
padding: 8px 0;
|
|
border-bottom: 2px solid transparent;
|
|
transition: var(--transition);
|
|
}
|
|
.nav-links a:hover,
|
|
.nav-links a.active {
|
|
color: var(--primary-dark);
|
|
border-bottom-color: var(--primary);
|
|
}
|
|
|
|
/* Модальное окно */
|
|
.modal-overlay {
|
|
display: none;
|
|
position: fixed;
|
|
top: 0; left: 0; right: 0; bottom: 0;
|
|
background: rgba(0,0,0,0.5);
|
|
align-items: center;
|
|
justify-content: center;
|
|
z-index: 1000;
|
|
}
|
|
.modal {
|
|
background: var(--card-bg);
|
|
border-radius: 16px;
|
|
max-width: 700px;
|
|
width: 90%;
|
|
max-height: 80vh;
|
|
overflow-y: auto;
|
|
box-shadow: 0 20px 40px rgba(0,0,0,0.2);
|
|
}
|
|
.modal-header {
|
|
padding: 20px 24px;
|
|
border-bottom: 1px solid var(--border-light);
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
}
|
|
.modal-header h3 { margin: 0; color: var(--primary-dark); }
|
|
.modal-close {
|
|
background: none;
|
|
border: none;
|
|
font-size: 28px;
|
|
cursor: pointer;
|
|
color: var(--text-muted);
|
|
}
|
|
.modal-body { padding: 24px; }
|
|
.ticket-detail-row {
|
|
display: flex;
|
|
margin-bottom: 12px;
|
|
}
|
|
.ticket-detail-label {
|
|
width: 120px;
|
|
font-weight: 500;
|
|
color: var(--text-muted);
|
|
}
|
|
.ticket-detail-value { flex: 1; }
|
|
.followup-item {
|
|
background: var(--bg-light);
|
|
border-radius: 12px;
|
|
padding: 16px;
|
|
margin-bottom: 16px;
|
|
}
|
|
.followup-header {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
margin-bottom: 8px;
|
|
font-size: 0.9rem;
|
|
color: var(--text-muted);
|
|
}
|
|
.loading-spinner {
|
|
text-align: center;
|
|
padding: 40px;
|
|
color: var(--text-muted);
|
|
}
|
|
.btn-sm {
|
|
padding: 6px 12px;
|
|
font-size: 0.9rem;
|
|
}
|
|
|
|
/* Страница знаний */
|
|
.search-box {
|
|
display: flex;
|
|
gap: 10px;
|
|
margin-bottom: 30px;
|
|
flex-wrap: wrap;
|
|
}
|
|
.search-box input {
|
|
flex: 1;
|
|
padding: 14px 20px;
|
|
font-size: 1.1rem;
|
|
}
|
|
.article-card {
|
|
background: var(--bg-white);
|
|
border-radius: 12px;
|
|
padding: 20px;
|
|
margin-bottom: 16px;
|
|
border: 1px solid var(--border-light);
|
|
transition: var(--transition);
|
|
cursor: pointer;
|
|
}
|
|
.article-card:hover {
|
|
box-shadow: var(--shadow-md);
|
|
border-color: var(--primary-light);
|
|
}
|
|
.article-title {
|
|
font-size: 1.2rem;
|
|
font-weight: 600;
|
|
color: var(--primary-dark);
|
|
margin-bottom: 8px;
|
|
}
|
|
.article-meta {
|
|
font-size: 0.85rem;
|
|
color: var(--text-muted);
|
|
margin-bottom: 12px;
|
|
}
|
|
.article-preview {
|
|
color: var(--text-dark);
|
|
line-height: 1.5;
|
|
}
|
|
.article-content {
|
|
line-height: 1.7;
|
|
}
|
|
.article-content img {
|
|
max-width: 100%;
|
|
height: auto;
|
|
}
|
|
.documents-list {
|
|
margin-top: 20px;
|
|
}
|
|
.doc-card {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 12px;
|
|
padding: 8px 0;
|
|
}
|
|
.no-results {
|
|
text-align: center;
|
|
padding: 40px;
|
|
color: var(--text-muted);
|
|
}
|
|
|
|
/* Адаптивность */
|
|
@media (max-width: 640px) {
|
|
.container { padding: 0 16px; }
|
|
.header .container { flex-direction: column; gap: 12px; text-align: center; }
|
|
.external-links { flex-direction: column; }
|
|
.btn-link { justify-content: center; }
|
|
.card { padding: 20px; }
|
|
.search-box { flex-direction: column; }
|
|
.search-box button { width: 100%; }
|
|
.modal { width: 95%; margin: 10px; }
|
|
.ticket-detail-row { flex-direction: column; }
|
|
.ticket-detail-label { width: auto; margin-bottom: 4px; }
|
|
}
|
|
|
|
/* Документы в базе знаний */
|
|
.documents-list {
|
|
margin-top: 20px;
|
|
border-top: 1px solid var(--border-light);
|
|
padding-top: 15px;
|
|
}
|
|
.documents-list h4 {
|
|
margin-bottom: 12px;
|
|
}
|
|
.doc-item {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 12px;
|
|
padding: 10px 0;
|
|
border-bottom: 1px solid var(--border-light);
|
|
}
|
|
.doc-icon {
|
|
font-size: 1.4rem;
|
|
}
|
|
.doc-name {
|
|
flex: 1;
|
|
word-break: break-all;
|
|
}
|
|
.doc-link {
|
|
color: var(--primary-dark);
|
|
text-decoration: none;
|
|
}
|
|
.doc-link:hover {
|
|
text-decoration: underline;
|
|
}
|
|
.sort-buttons {
|
|
display: flex;
|
|
gap: 8px;
|
|
}
|
|
.sort-buttons .btn.active {
|
|
background: var(--primary);
|
|
color: white;
|
|
border-color: var(--primary);
|
|
}
|
|
|
|
/* Стили для улучшенного модального окна */
|
|
.modal-large {
|
|
max-width: 700px;
|
|
width: 90%;
|
|
}
|
|
.modal-tabs {
|
|
display: flex;
|
|
gap: 8px;
|
|
border-bottom: 1px solid var(--border-light);
|
|
margin-bottom: 20px;
|
|
padding-bottom: 8px;
|
|
}
|
|
.tab-btn {
|
|
background: none;
|
|
border: none;
|
|
padding: 8px 20px;
|
|
font-size: 1rem;
|
|
cursor: pointer;
|
|
color: var(--text-muted);
|
|
border-radius: 20px;
|
|
transition: var(--transition);
|
|
}
|
|
.tab-btn.active {
|
|
background: var(--primary);
|
|
color: white;
|
|
}
|
|
.tab-content {
|
|
display: none;
|
|
}
|
|
.tab-content.active {
|
|
display: block;
|
|
}
|
|
.detail-card {
|
|
background: var(--bg-light);
|
|
border-radius: 12px;
|
|
padding: 16px;
|
|
margin-bottom: 16px;
|
|
}
|
|
.detail-row {
|
|
display: flex;
|
|
margin-bottom: 12px;
|
|
flex-wrap: wrap;
|
|
}
|
|
.detail-label {
|
|
width: 130px;
|
|
font-weight: 500;
|
|
color: var(--text-muted);
|
|
}
|
|
.detail-value {
|
|
flex: 1;
|
|
}
|
|
.comment-item {
|
|
background: var(--bg-light);
|
|
border-radius: 12px;
|
|
padding: 16px;
|
|
margin-bottom: 16px;
|
|
}
|
|
.comment-header {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
margin-bottom: 10px;
|
|
font-size: 0.85rem;
|
|
color: var(--text-muted);
|
|
border-bottom: 1px solid var(--border-light);
|
|
padding-bottom: 8px;
|
|
}
|
|
.comment-author {
|
|
font-weight: 600;
|
|
color: var(--primary-dark);
|
|
}
|
|
.comment-content {
|
|
line-height: 1.5;
|
|
}
|
|
@media (max-width: 640px) {
|
|
.detail-label { width: 100%; margin-bottom: 4px; }
|
|
.modal-tabs { justify-content: center; }
|
|
} |