72b6879f4b
- Refactored max_bot from nested packages to flat module structure - Q2: Extended BotUser model (patronymic, email, org, address, vcf_raw, contact_hash, phone_verified, email_verified, last_interaction, total_conversations, total_tickets) - Q2: VCF parser (FN, N, TEL, EMAIL, ORG, ADR), upsert on re-contact, NLP history context (_get_user_history_context -> YandexGPT) - Q1: Broadcast preview modal with 10s confirmation timer - Q3: CSS var(--white)->var(--bg-card), var(--text)->var(--text-primary) - Q4: bot_settings showNotification(), editable max_bot_id - Q5: Webhook secret passthrough via X-Max-Bot-Api-Secret - Masking sensitive keys, dialog_cleared handler, migrate via _add_column_if_not_exists() - Rate limit (asyncio.sleep 0.5 per 10), dead code removed, conv.intent context in contact.py - Portal pages: bot_consent, bot_kb (edit), bot_settings, bot_test, bot_tickets, portal_settings - Tests: 21/21 passing, added test_yandex_gpt.py, test_email_sender.py - Deploy: deploy_full.sh, schema.sql, seed_knowledge_base.sql
1139 lines
21 KiB
CSS
1139 lines
21 KiB
CSS
@charset "UTF-8";
|
|
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Montserrat:wght@600;700;800&display=swap');
|
|
|
|
:root {
|
|
--bg-body: #0a0e1a;
|
|
--bg-card: #131a2e;
|
|
--bg-card-hover: #1a2340;
|
|
--bg-sidebar: #0d1322;
|
|
--bg-input: #1a2340;
|
|
--border: #1e2a4a;
|
|
--border-focus: #00ADEF;
|
|
--text-primary: #e8edf5;
|
|
--text-secondary: #8899bb;
|
|
--text-muted: #556688;
|
|
--accent: #00ADEF;
|
|
--accent-hover: #33c4f5;
|
|
--accent-dim: rgba(0, 173, 239, 0.15);
|
|
--success: #22c55e;
|
|
--warning: #f59e0b;
|
|
--danger: #ef4444;
|
|
--info: #6366f1;
|
|
--font: 'Inter', 'Segoe UI', sans-serif;
|
|
--radius: 10px;
|
|
--shadow: 0 2px 12px rgba(0,0,0,0.3);
|
|
}
|
|
|
|
/* ---------- SCROLLBARS ---------- */
|
|
::-webkit-scrollbar { width: 6px; height: 6px; }
|
|
::-webkit-scrollbar-track { background: rgba(255,255,255,0.03); border-radius: 3px; }
|
|
::-webkit-scrollbar-thumb { background: rgba(0,173,239,0.3); border-radius: 3px; transition: background 0.2s; }
|
|
::-webkit-scrollbar-thumb:hover { background: rgba(0,173,239,0.5); }
|
|
* { scrollbar-width: thin; scrollbar-color: rgba(0,173,239,0.3) rgba(255,255,255,0.03); }
|
|
|
|
* { margin:0; padding:0; box-sizing:border-box; }
|
|
|
|
html, body {
|
|
font-family: var(--font);
|
|
background: var(--bg-body);
|
|
color: var(--text-primary);
|
|
font-size: 14px;
|
|
line-height: 1.5;
|
|
min-height: 100vh;
|
|
}
|
|
|
|
a { color: var(--accent); text-decoration:none; }
|
|
a:hover { color: var(--accent-hover); }
|
|
img { max-width:100%; height:auto; }
|
|
|
|
/* ---------- LOGIN PAGE ---------- */
|
|
.login-page {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
min-height: 100vh;
|
|
background: linear-gradient(135deg, #0a0e1a 0%, #0d1a30 50%, #0a0e1a 100%);
|
|
}
|
|
|
|
.login-box {
|
|
background: var(--bg-card);
|
|
border: 1px solid var(--border);
|
|
border-radius: var(--radius);
|
|
padding: 36px 32px;
|
|
width: 100%;
|
|
max-width: 400px;
|
|
box-shadow: var(--shadow);
|
|
}
|
|
|
|
.login-brand {
|
|
text-align: center;
|
|
margin-bottom: 24px;
|
|
}
|
|
|
|
.login-brand__img {
|
|
display: block;
|
|
height: 56px;
|
|
margin: 0 auto 16px;
|
|
}
|
|
|
|
.login-brand__title {
|
|
font-family: 'Montserrat', sans-serif;
|
|
font-weight: 800;
|
|
font-size: 24px;
|
|
color: var(--text-primary);
|
|
letter-spacing: -0.02em;
|
|
line-height: 1.1;
|
|
}
|
|
|
|
.login-brand__subtitle {
|
|
font-family: 'Inter', sans-serif;
|
|
font-weight: 500;
|
|
font-size: 10px;
|
|
text-transform: uppercase;
|
|
letter-spacing: 0.2em;
|
|
color: var(--accent);
|
|
margin-top: 4px;
|
|
}
|
|
|
|
.login-divider {
|
|
border: none;
|
|
border-top: 1px solid var(--border);
|
|
margin: 20px 0;
|
|
}
|
|
|
|
.login-box h1 {
|
|
font-size: 20px;
|
|
font-weight: 700;
|
|
margin-bottom: 24px;
|
|
color: var(--text-primary);
|
|
text-align: center;
|
|
}
|
|
|
|
.login-box__footnote {
|
|
margin-top: 24px;
|
|
font-size: 11px;
|
|
color: var(--text-muted);
|
|
text-align: center;
|
|
line-height: 1.5;
|
|
}
|
|
|
|
.form-group {
|
|
margin-bottom: 18px;
|
|
}
|
|
|
|
.form-group label {
|
|
display: block;
|
|
font-size: 12px;
|
|
font-weight: 600;
|
|
color: var(--text-secondary);
|
|
text-transform: uppercase;
|
|
letter-spacing: 0.5px;
|
|
margin-bottom: 6px;
|
|
}
|
|
|
|
.form-group input,
|
|
.form-group select,
|
|
.form-group textarea {
|
|
width: 100%;
|
|
padding: 10px 14px;
|
|
background: var(--bg-input);
|
|
border: 1px solid var(--border);
|
|
border-radius: 6px;
|
|
color: var(--text-primary);
|
|
font-family: var(--font);
|
|
font-size: 14px;
|
|
transition: border 0.2s;
|
|
}
|
|
|
|
.form-group input:focus,
|
|
.form-group select:focus,
|
|
.form-group textarea:focus {
|
|
outline: none;
|
|
border-color: var(--border-focus);
|
|
box-shadow: 0 0 0 3px var(--accent-dim);
|
|
}
|
|
|
|
.form-group textarea {
|
|
min-height: 80px;
|
|
resize: vertical;
|
|
}
|
|
|
|
.btn {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
gap: 6px;
|
|
padding: 10px 20px;
|
|
border: none;
|
|
border-radius: 6px;
|
|
font-family: var(--font);
|
|
font-size: 14px;
|
|
font-weight: 600;
|
|
cursor: pointer;
|
|
transition: all 0.2s;
|
|
white-space: nowrap;
|
|
}
|
|
|
|
.btn-primary {
|
|
background: var(--accent);
|
|
color: #fff;
|
|
}
|
|
|
|
.btn-primary:hover {
|
|
background: var(--accent-hover);
|
|
}
|
|
|
|
.btn-secondary {
|
|
background: var(--bg-input);
|
|
color: var(--text-primary);
|
|
border: 1px solid var(--border);
|
|
}
|
|
|
|
.btn-secondary:hover {
|
|
border-color: var(--accent);
|
|
}
|
|
|
|
.btn-success {
|
|
background: var(--success);
|
|
color: #fff;
|
|
}
|
|
|
|
.btn-danger {
|
|
background: var(--danger);
|
|
color: #fff;
|
|
}
|
|
|
|
.btn-warning {
|
|
background: var(--warning);
|
|
color: #fff;
|
|
}
|
|
|
|
.btn-sm {
|
|
padding: 5px 12px;
|
|
font-size: 12px;
|
|
}
|
|
|
|
.btn-block {
|
|
width: 100%;
|
|
justify-content: center;
|
|
}
|
|
|
|
.alert {
|
|
padding: 12px 16px;
|
|
border-radius: 6px;
|
|
font-size: 13px;
|
|
margin-bottom: 16px;
|
|
}
|
|
|
|
.alert-error {
|
|
background: rgba(239, 68, 68, 0.15);
|
|
color: var(--danger);
|
|
border: 1px solid rgba(239, 68, 68, 0.3);
|
|
}
|
|
|
|
.alert-success {
|
|
background: rgba(34, 197, 94, 0.15);
|
|
color: var(--success);
|
|
border: 1px solid rgba(34, 197, 94, 0.3);
|
|
}
|
|
|
|
.alert-warning {
|
|
background: rgba(245, 158, 11, 0.15);
|
|
color: var(--warning);
|
|
border: 1px solid rgba(245, 158, 11, 0.3);
|
|
}
|
|
|
|
.alert-info {
|
|
background: rgba(99, 102, 241, 0.15);
|
|
color: var(--info);
|
|
border: 1px solid rgba(99, 102, 241, 0.3);
|
|
}
|
|
|
|
/* ---------- LAYOUT ---------- */
|
|
.layout {
|
|
display: flex;
|
|
min-height: 100vh;
|
|
}
|
|
|
|
.sidebar {
|
|
width: 240px;
|
|
background: var(--bg-sidebar);
|
|
border-right: 1px solid var(--border);
|
|
display: flex;
|
|
flex-direction: column;
|
|
position: fixed;
|
|
top: 0;
|
|
left: 0;
|
|
height: 100vh;
|
|
z-index: 100;
|
|
transition: transform 0.3s;
|
|
}
|
|
|
|
.sidebar-header {
|
|
padding: 20px;
|
|
border-bottom: 1px solid var(--border);
|
|
}
|
|
|
|
.sidebar-header .logo {
|
|
font-size: 16px;
|
|
font-weight: 700;
|
|
color: var(--text-primary);
|
|
}
|
|
|
|
.sidebar-header .logo span {
|
|
color: var(--accent);
|
|
}
|
|
|
|
.sidebar-nav {
|
|
flex: 1;
|
|
padding: 12px 0;
|
|
overflow-y: auto;
|
|
}
|
|
|
|
.sidebar-nav a {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 10px;
|
|
padding: 10px 20px;
|
|
color: var(--text-secondary);
|
|
font-size: 13px;
|
|
font-weight: 500;
|
|
transition: all 0.2s;
|
|
}
|
|
|
|
.sidebar-nav a:hover,
|
|
.sidebar-nav a.active {
|
|
color: var(--text-primary);
|
|
background: var(--accent-dim);
|
|
}
|
|
|
|
.sidebar-nav a.active {
|
|
border-right: 3px solid var(--accent);
|
|
}
|
|
|
|
.sidebar-section {
|
|
padding: 8px 20px 4px;
|
|
font-size: 10px;
|
|
font-weight: 700;
|
|
color: var(--text-muted);
|
|
text-transform: uppercase;
|
|
letter-spacing: 1px;
|
|
}
|
|
|
|
.sidebar-footer {
|
|
padding: 16px 20px;
|
|
border-top: 1px solid var(--border);
|
|
font-size: 12px;
|
|
}
|
|
|
|
.sidebar-footer .user-name {
|
|
color: var(--text-primary);
|
|
font-weight: 600;
|
|
}
|
|
|
|
.sidebar-footer .user-role {
|
|
color: var(--text-muted);
|
|
font-size: 11px;
|
|
}
|
|
|
|
.sidebar-toggle {
|
|
display: none;
|
|
position: fixed;
|
|
top: 12px;
|
|
left: 12px;
|
|
z-index: 101;
|
|
background: var(--bg-card);
|
|
border: 1px solid var(--border);
|
|
color: var(--text-primary);
|
|
padding: 8px 12px;
|
|
border-radius: 6px;
|
|
cursor: pointer;
|
|
font-size: 18px;
|
|
}
|
|
|
|
.main {
|
|
flex: 1;
|
|
margin-left: 240px;
|
|
padding: 24px;
|
|
min-height: 100vh;
|
|
}
|
|
|
|
.main-header {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
margin-bottom: 24px;
|
|
}
|
|
|
|
.main-header h1 {
|
|
font-size: 24px;
|
|
font-weight: 700;
|
|
}
|
|
|
|
.main-header .breadcrumb {
|
|
font-size: 12px;
|
|
color: var(--text-muted);
|
|
}
|
|
|
|
.main-header .breadcrumb a {
|
|
color: var(--text-secondary);
|
|
}
|
|
|
|
.main-header .breadcrumb a:hover {
|
|
color: var(--accent);
|
|
}
|
|
|
|
/* ---------- CARDS ---------- */
|
|
.card {
|
|
background: var(--bg-card);
|
|
border: 1px solid var(--border);
|
|
border-radius: var(--radius);
|
|
padding: 20px;
|
|
margin-bottom: 16px;
|
|
transition: box-shadow 0.2s;
|
|
}
|
|
|
|
.card:hover {
|
|
box-shadow: var(--shadow);
|
|
}
|
|
|
|
.card-header {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
margin-bottom: 14px;
|
|
}
|
|
|
|
.card-header h2,
|
|
.card-header h3 {
|
|
font-size: 15px;
|
|
font-weight: 600;
|
|
}
|
|
|
|
.card-value {
|
|
font-size: 28px;
|
|
font-weight: 700;
|
|
}
|
|
|
|
.card-label {
|
|
font-size: 12px;
|
|
color: var(--text-secondary);
|
|
margin-top: 2px;
|
|
}
|
|
|
|
.card-grid {
|
|
display: grid;
|
|
grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
|
|
gap: 16px;
|
|
margin-bottom: 24px;
|
|
}
|
|
|
|
/* ---------- KPI VALUES ---------- */
|
|
.value-green { color: var(--success); }
|
|
.value-yellow { color: var(--warning); }
|
|
.value-red { color: var(--danger); }
|
|
.value-accent { color: var(--accent); }
|
|
.value-info { color: var(--info); }
|
|
|
|
/* ---------- TABLES ---------- */
|
|
.table-wrap {
|
|
overflow-x: auto;
|
|
}
|
|
|
|
table {
|
|
width: 100%;
|
|
border-collapse: collapse;
|
|
}
|
|
|
|
table th {
|
|
text-align: left;
|
|
padding: 10px 12px;
|
|
font-size: 11px;
|
|
font-weight: 700;
|
|
color: var(--text-muted);
|
|
text-transform: uppercase;
|
|
letter-spacing: 0.5px;
|
|
border-bottom: 1px solid var(--border);
|
|
white-space: nowrap;
|
|
}
|
|
|
|
table td {
|
|
padding: 10px 12px;
|
|
font-size: 13px;
|
|
border-bottom: 1px solid var(--border);
|
|
vertical-align: middle;
|
|
}
|
|
|
|
table tr:hover td {
|
|
background: rgba(0, 173, 239, 0.03);
|
|
}
|
|
|
|
table .actions {
|
|
white-space: nowrap;
|
|
text-align: right;
|
|
}
|
|
|
|
table .actions a,
|
|
table .actions button {
|
|
margin-left: 6px;
|
|
}
|
|
|
|
/* ---------- BADGES ---------- */
|
|
.badge {
|
|
display: inline-block;
|
|
padding: 2px 8px;
|
|
border-radius: 4px;
|
|
font-size: 11px;
|
|
font-weight: 600;
|
|
}
|
|
|
|
.badge-critical { background: rgba(239,68,68,0.2); color: var(--danger); }
|
|
.badge-high { background: rgba(245,158,11,0.2); color: var(--warning); }
|
|
.badge-medium { background: rgba(99,102,241,0.2); color: var(--info); }
|
|
.badge-low { background: rgba(136,153,187,0.2); color: var(--text-secondary); }
|
|
.badge-open { background: rgba(99,102,241,0.2); color: var(--info); }
|
|
.badge-progress { background: rgba(245,158,11,0.2); color: var(--warning); }
|
|
.badge-done { background: rgba(34,197,94,0.2); color: var(--success); }
|
|
.badge-cancelled { background: rgba(239,68,68,0.2); color: var(--danger); }
|
|
.badge-active { background: rgba(34,197,94,0.2); color: var(--success); }
|
|
.badge-inactive { background: rgba(136,153,187,0.2); color: var(--text-secondary); }
|
|
.badge-draft { background: rgba(136,153,187,0.2); color: var(--text-secondary); }
|
|
.badge-risk { background: rgba(245,158,11,0.2); color: var(--warning); }
|
|
.badge-crisis { background: rgba(239,68,68,0.2); color: var(--danger); }
|
|
.badge-stable { background: rgba(99,102,241,0.2); color: var(--info); }
|
|
.badge-growth { background: rgba(34,197,94,0.2); color: var(--success); }
|
|
.badge-default { background: rgba(136,153,187,0.2); color: var(--text-secondary); }
|
|
|
|
/* ---------- MODAL ---------- */
|
|
.modal-overlay {
|
|
position: fixed;
|
|
top: 0; left: 0; right: 0; bottom: 0;
|
|
background: rgba(0,0,0,0.6);
|
|
display: none;
|
|
align-items: center;
|
|
justify-content: center;
|
|
z-index: 200;
|
|
}
|
|
|
|
.modal-overlay.open {
|
|
display: flex;
|
|
}
|
|
|
|
.modal {
|
|
background: var(--bg-card);
|
|
border: 1px solid var(--border);
|
|
border-radius: var(--radius);
|
|
padding: 28px;
|
|
width: 100%;
|
|
max-width: 540px;
|
|
max-height: 80vh;
|
|
overflow-y: auto;
|
|
box-shadow: 0 8px 40px rgba(0,0,0,0.5);
|
|
}
|
|
|
|
.modal h2 {
|
|
font-size: 18px;
|
|
font-weight: 700;
|
|
margin-bottom: 20px;
|
|
}
|
|
|
|
.modal-close {
|
|
float: right;
|
|
background: none;
|
|
border: none;
|
|
color: var(--text-muted);
|
|
font-size: 20px;
|
|
cursor: pointer;
|
|
}
|
|
|
|
/* ---------- TABS ---------- */
|
|
.tabs {
|
|
display: flex;
|
|
border-bottom: 1px solid var(--border);
|
|
margin-bottom: 20px;
|
|
gap: 0;
|
|
}
|
|
|
|
.tabs a {
|
|
padding: 10px 20px;
|
|
font-size: 13px;
|
|
font-weight: 600;
|
|
color: var(--text-secondary);
|
|
border-bottom: 2px solid transparent;
|
|
margin-bottom: -1px;
|
|
transition: all 0.2s;
|
|
}
|
|
|
|
.tabs a:hover,
|
|
.tabs a.active {
|
|
color: var(--accent);
|
|
border-bottom-color: var(--accent);
|
|
}
|
|
|
|
/* ---------- PAGINATION ---------- */
|
|
.pagination {
|
|
display: flex;
|
|
gap: 4px;
|
|
justify-content: center;
|
|
margin-top: 20px;
|
|
}
|
|
|
|
.pagination a,
|
|
.pagination span {
|
|
padding: 6px 12px;
|
|
border: 1px solid var(--border);
|
|
border-radius: 4px;
|
|
color: var(--text-secondary);
|
|
font-size: 13px;
|
|
}
|
|
|
|
.pagination a:hover {
|
|
border-color: var(--accent);
|
|
color: var(--accent);
|
|
}
|
|
|
|
.pagination .current {
|
|
background: var(--accent);
|
|
color: #fff;
|
|
border-color: var(--accent);
|
|
}
|
|
|
|
/* ---------- SEARCH ---------- */
|
|
.search-box {
|
|
display: flex;
|
|
gap: 8px;
|
|
margin-bottom: 16px;
|
|
}
|
|
|
|
.search-box input {
|
|
flex: 1;
|
|
padding: 8px 14px;
|
|
background: var(--bg-input);
|
|
border: 1px solid var(--border);
|
|
border-radius: 6px;
|
|
color: var(--text-primary);
|
|
font-family: var(--font);
|
|
font-size: 13px;
|
|
}
|
|
|
|
.search-box input:focus {
|
|
outline: none;
|
|
border-color: var(--border-focus);
|
|
}
|
|
|
|
/* ---------- PROGRESS ---------- */
|
|
.progress-bar {
|
|
height: 6px;
|
|
background: rgba(255,255,255,0.08);
|
|
border-radius: 3px;
|
|
overflow: hidden;
|
|
margin-top: 8px;
|
|
}
|
|
|
|
.progress-fill {
|
|
height: 100%;
|
|
border-radius: 3px;
|
|
transition: width 0.4s;
|
|
}
|
|
|
|
/* ---------- FORM INLINE ---------- */
|
|
.form-row {
|
|
display: grid;
|
|
grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
|
|
gap: 14px;
|
|
}
|
|
|
|
.form-check {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
margin-bottom: 6px;
|
|
}
|
|
|
|
.form-check input[type="checkbox"],
|
|
.form-check input[type="radio"] {
|
|
width: auto;
|
|
}
|
|
|
|
/* ---------- FILTER BAR ---------- */
|
|
.filter-bar {
|
|
display: flex;
|
|
gap: 10px;
|
|
flex-wrap: wrap;
|
|
margin-bottom: 16px;
|
|
align-items: center;
|
|
}
|
|
|
|
.filter-bar select,
|
|
.filter-bar input {
|
|
padding: 6px 10px;
|
|
background: var(--bg-input);
|
|
border: 1px solid var(--border);
|
|
border-radius: 6px;
|
|
color: var(--text-primary);
|
|
font-family: var(--font);
|
|
font-size: 12px;
|
|
}
|
|
|
|
/* ---------- QUESTIONNAIRE ---------- */
|
|
.questionnaire-step {
|
|
display: none;
|
|
}
|
|
|
|
.questionnaire-step.active {
|
|
display: block;
|
|
}
|
|
|
|
.step-indicators {
|
|
display: flex;
|
|
gap: 0;
|
|
margin-bottom: 28px;
|
|
overflow-x: auto;
|
|
}
|
|
|
|
.step-dot {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 6px;
|
|
padding: 8px 14px;
|
|
font-size: 12px;
|
|
font-weight: 600;
|
|
color: var(--text-muted);
|
|
border-bottom: 2px solid var(--border);
|
|
white-space: nowrap;
|
|
cursor: default;
|
|
}
|
|
|
|
.step-dot.completed {
|
|
color: var(--success);
|
|
border-bottom-color: var(--success);
|
|
}
|
|
|
|
.step-dot.active {
|
|
color: var(--accent);
|
|
border-bottom-color: var(--accent);
|
|
}
|
|
|
|
/* ---------- SHS ALERT ---------- */
|
|
.shs-alert {
|
|
padding: 12px 16px;
|
|
border-radius: 6px;
|
|
margin-bottom: 16px;
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 10px;
|
|
font-size: 13px;
|
|
font-weight: 600;
|
|
}
|
|
|
|
.shs-alert.warning {
|
|
background: rgba(245,158,11,0.15);
|
|
color: var(--warning);
|
|
border: 1px solid rgba(245,158,11,0.3);
|
|
}
|
|
|
|
.shs-alert.critical {
|
|
background: rgba(239,68,68,0.15);
|
|
color: var(--danger);
|
|
border: 1px solid rgba(239,68,68,0.3);
|
|
}
|
|
|
|
/* ---------- RESPONSIVE ---------- */
|
|
@media (max-width: 768px) {
|
|
.sidebar {
|
|
transform: translateX(-100%);
|
|
}
|
|
.sidebar.open {
|
|
transform: translateX(0);
|
|
}
|
|
.sidebar-toggle {
|
|
display: block;
|
|
}
|
|
.main {
|
|
margin-left: 0;
|
|
padding: 16px;
|
|
padding-top: 56px;
|
|
}
|
|
.card-grid {
|
|
grid-template-columns: 1fr;
|
|
}
|
|
.form-row {
|
|
grid-template-columns: 1fr;
|
|
}
|
|
.login-box {
|
|
margin: 16px;
|
|
padding: 24px;
|
|
}
|
|
.tabs {
|
|
overflow-x: auto;
|
|
}
|
|
.step-indicators {
|
|
flex-wrap: nowrap;
|
|
}
|
|
}
|
|
|
|
/* ---------- PRINT ---------- */
|
|
@media print {
|
|
.sidebar, .sidebar-toggle, .main-header .actions { display: none; }
|
|
.main { margin-left: 0; }
|
|
.card { break-inside: avoid; }
|
|
}
|
|
|
|
/* ---------- TOAST ---------- */
|
|
.toast-container {
|
|
position: fixed;
|
|
top: 20px;
|
|
right: 20px;
|
|
z-index: 999;
|
|
}
|
|
|
|
.toast {
|
|
padding: 12px 20px;
|
|
border-radius: 6px;
|
|
margin-bottom: 8px;
|
|
font-size: 13px;
|
|
font-weight: 500;
|
|
box-shadow: 0 4px 20px rgba(0,0,0,0.4);
|
|
animation: slideIn 0.3s ease;
|
|
}
|
|
|
|
.toast-success { background: var(--success); color: #fff; }
|
|
.toast-error { background: var(--danger); color: #fff; }
|
|
.toast-warning { background: var(--warning); color: #fff; }
|
|
.toast-info { background: var(--info); color: #fff; }
|
|
|
|
@keyframes slideIn {
|
|
from { transform: translateX(100%); opacity: 0; }
|
|
to { transform: translateX(0); opacity: 1; }
|
|
}
|
|
|
|
/* ---------- TOOLTIPS ---------- */
|
|
[data-tooltip] {
|
|
position: relative;
|
|
}
|
|
[data-tooltip]::after {
|
|
content: attr(data-tooltip);
|
|
position: absolute;
|
|
bottom: calc(100% + 8px);
|
|
left: 50%;
|
|
transform: translateX(-50%) translateY(4px);
|
|
background: #1a1a2e;
|
|
color: #e8edf5;
|
|
padding: 6px 10px;
|
|
border-radius: 6px;
|
|
font-size: 11px;
|
|
font-weight: 500;
|
|
white-space: nowrap;
|
|
pointer-events: none;
|
|
opacity: 0;
|
|
visibility: hidden;
|
|
transition: opacity 0.2s, transform 0.2s, visibility 0.2s;
|
|
z-index: 1000;
|
|
box-shadow: 0 2px 8px rgba(0,0,0,0.3);
|
|
}
|
|
[data-tooltip]::before {
|
|
content: '';
|
|
position: absolute;
|
|
bottom: calc(100% + 2px);
|
|
left: 50%;
|
|
transform: translateX(-50%) translateY(4px);
|
|
border: 5px solid transparent;
|
|
border-top-color: #1a1a2e;
|
|
pointer-events: none;
|
|
opacity: 0;
|
|
visibility: hidden;
|
|
transition: opacity 0.2s, transform 0.2s, visibility 0.2s;
|
|
z-index: 1000;
|
|
}
|
|
[data-tooltip]:hover::after,
|
|
[data-tooltip]:hover::before {
|
|
opacity: 1;
|
|
visibility: visible;
|
|
transform: translateX(-50%) translateY(0);
|
|
}
|
|
|
|
/* ---------- EMPTY STATE ---------- */
|
|
.empty-state {
|
|
text-align: center;
|
|
padding: 48px 20px;
|
|
color: var(--text-muted);
|
|
}
|
|
|
|
.empty-state svg {
|
|
width: 60px;
|
|
height: 60px;
|
|
margin-bottom: 16px;
|
|
opacity: 0.4;
|
|
}
|
|
|
|
.empty-state h3 {
|
|
font-size: 16px;
|
|
margin-bottom: 6px;
|
|
}
|
|
|
|
.empty-state p {
|
|
font-size: 13px;
|
|
}
|
|
|
|
/* ---------- LOADING ---------- */
|
|
.loading {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
padding: 40px;
|
|
}
|
|
|
|
.spinner {
|
|
width: 32px;
|
|
height: 32px;
|
|
border: 3px solid var(--border);
|
|
border-top-color: var(--accent);
|
|
border-radius: 50%;
|
|
animation: spin 0.8s linear infinite;
|
|
}
|
|
|
|
@keyframes spin {
|
|
to { transform: rotate(360deg); }
|
|
}
|
|
|
|
/* ---------- NAVBAR ---------- */
|
|
.navbar {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
padding: 0 24px;
|
|
height: 56px;
|
|
background: var(--bg-sidebar);
|
|
border-bottom: 1px solid var(--border);
|
|
position: sticky;
|
|
top: 0;
|
|
z-index: 50;
|
|
}
|
|
|
|
.navbar__brand a {
|
|
font-family: 'Montserrat', sans-serif;
|
|
font-weight: 700;
|
|
font-size: 16px;
|
|
color: var(--text-primary);
|
|
}
|
|
|
|
.navbar__menu {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 20px;
|
|
list-style: none;
|
|
margin: 0;
|
|
padding: 0;
|
|
}
|
|
|
|
.navbar__menu a {
|
|
color: var(--text-secondary);
|
|
font-size: 13px;
|
|
font-weight: 500;
|
|
transition: color 0.2s;
|
|
}
|
|
|
|
.navbar__menu a:hover {
|
|
color: var(--text-primary);
|
|
}
|
|
|
|
.navbar__logout {
|
|
color: var(--text-muted) !important;
|
|
}
|
|
|
|
/* ---------- DOCUMENTS ---------- */
|
|
.container {
|
|
max-width: 1200px;
|
|
margin: 0 auto;
|
|
padding: 24px;
|
|
}
|
|
|
|
.docs-list {
|
|
display: grid;
|
|
gap: 8px;
|
|
margin-bottom: 24px;
|
|
}
|
|
|
|
.doc-item {
|
|
background: var(--bg-card);
|
|
border: 1px solid var(--border);
|
|
border-radius: var(--radius);
|
|
padding: 14px 20px;
|
|
transition: all 0.2s;
|
|
}
|
|
|
|
.doc-item:hover {
|
|
border-color: var(--accent);
|
|
background: var(--bg-card-hover);
|
|
}
|
|
|
|
.doc-item a {
|
|
font-size: 15px;
|
|
font-weight: 500;
|
|
color: var(--text-primary);
|
|
}
|
|
|
|
.doc-item a:hover {
|
|
color: var(--accent);
|
|
}
|
|
|
|
.docs-actions {
|
|
display: flex;
|
|
gap: 10px;
|
|
flex-wrap: wrap;
|
|
}
|
|
|
|
.doc-header {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: flex-start;
|
|
margin-bottom: 24px;
|
|
flex-wrap: wrap;
|
|
gap: 16px;
|
|
}
|
|
|
|
.doc-header h1 {
|
|
font-size: 24px;
|
|
font-weight: 700;
|
|
}
|
|
|
|
.doc-actions {
|
|
display: flex;
|
|
gap: 8px;
|
|
flex-wrap: wrap;
|
|
}
|
|
|
|
.doc-content {
|
|
background: var(--bg-card);
|
|
border: 1px solid var(--border);
|
|
border-radius: var(--radius);
|
|
padding: 28px;
|
|
line-height: 1.7;
|
|
}
|
|
|
|
.doc-content h1, .doc-content h2, .doc-content h3 {
|
|
margin-top: 24px;
|
|
margin-bottom: 12px;
|
|
color: var(--text-primary);
|
|
}
|
|
|
|
.doc-content h1 { font-size: 22px; }
|
|
.doc-content h2 { font-size: 18px; }
|
|
.doc-content h3 { font-size: 16px; }
|
|
|
|
.doc-content p {
|
|
margin-bottom: 12px;
|
|
color: var(--text-secondary);
|
|
}
|
|
|
|
.doc-content code {
|
|
background: var(--bg-input);
|
|
padding: 2px 6px;
|
|
border-radius: 4px;
|
|
font-size: 13px;
|
|
color: var(--accent);
|
|
}
|
|
|
|
.doc-content pre {
|
|
background: var(--bg-input);
|
|
padding: 16px;
|
|
border-radius: 6px;
|
|
overflow-x: auto;
|
|
margin-bottom: 16px;
|
|
}
|
|
|
|
.doc-content pre code {
|
|
background: none;
|
|
padding: 0;
|
|
}
|
|
|
|
.doc-content table {
|
|
margin-bottom: 16px;
|
|
}
|
|
|
|
.doc-content ul, .doc-content ol {
|
|
margin-bottom: 12px;
|
|
padding-left: 24px;
|
|
color: var(--text-secondary);
|
|
}
|
|
|
|
.doc-content li {
|
|
margin-bottom: 4px;
|
|
}
|
|
|
|
.doc-content blockquote {
|
|
border-left: 3px solid var(--accent);
|
|
padding-left: 16px;
|
|
margin: 16px 0;
|
|
color: var(--text-muted);
|
|
}
|
|
|
|
.doc-content a {
|
|
color: var(--accent);
|
|
}
|
|
|
|
.doc-content a:hover {
|
|
color: var(--accent-hover);
|
|
}
|
|
|
|
.form-actions {
|
|
display: flex;
|
|
gap: 10px;
|
|
margin-top: 16px;
|
|
}
|
|
|
|
/* ---------- PERMISSIONS TABLE ---------- */
|
|
.permissions-table {
|
|
width: 100%;
|
|
border-collapse: collapse;
|
|
margin-bottom: 20px;
|
|
}
|
|
|
|
.permissions-table th {
|
|
text-align: left;
|
|
padding: 12px 16px;
|
|
font-size: 12px;
|
|
font-weight: 700;
|
|
color: var(--text-muted);
|
|
text-transform: uppercase;
|
|
letter-spacing: 0.5px;
|
|
border-bottom: 1px solid var(--border);
|
|
background: var(--bg-sidebar);
|
|
}
|
|
|
|
.permissions-table td {
|
|
padding: 12px 16px;
|
|
border-bottom: 1px solid var(--border);
|
|
vertical-align: middle;
|
|
}
|
|
|
|
.permissions-table tr:hover td {
|
|
background: rgba(0, 173, 239, 0.05);
|
|
}
|
|
|
|
.permissions-table input[type="checkbox"] {
|
|
width: 18px;
|
|
height: 18px;
|
|
accent-color: var(--accent);
|
|
cursor: pointer;
|
|
}
|
|
|
|
@media (max-width: 768px) {
|
|
.navbar {
|
|
flex-direction: column;
|
|
height: auto;
|
|
padding: 12px 16px;
|
|
gap: 12px;
|
|
}
|
|
.navbar__menu {
|
|
flex-wrap: wrap;
|
|
justify-content: center;
|
|
}
|
|
.doc-header {
|
|
flex-direction: column;
|
|
}
|
|
.container {
|
|
padding: 16px;
|
|
}
|
|
}
|
|
|