Files
evo-sync/web/static/style.css
mguschin eb4165e48b feat: apply new Мои Товары design system across all templates
Replace Pico CSS with custom design: dark sidebar layout, Golos Text +
JetBrains Mono fonts, orange accent (#FF5500), new component classes
(cards, tables, buttons, tags, toggles, alerts, tabs, login split-panel).

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-05-18 12:43:08 +03:00

416 lines
25 KiB
CSS

/* ─── Reset ──────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
body { font-family: 'Golos Text', sans-serif; background: #F4F5F7; color: #1C1F2E; font-size: 14px; }
a { text-decoration: none; color: inherit; }
::-webkit-scrollbar { width: 5px; height: 5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #E4E6EE; border-radius: 3px; }
/* ─── Utility ─────────────────────────────────────────────────────────── */
.mono { font-family: 'JetBrains Mono', monospace; }
.hr { height: 1px; background: #E4E6EE; margin: 18px 0; }
.w-100 { width: 100%; }
.text-center { text-align: center; }
.d-none { display: none; }
/* ─── Layout ──────────────────────────────────────────────────────────── */
.shell { display: flex; min-height: 100vh; }
.sidebar {
width: 228px; min-height: 100vh; flex-shrink: 0;
background: #1C1F2E;
display: flex; flex-direction: column;
position: sticky; top: 0; height: 100vh; overflow-y: auto;
}
.main { flex: 1; display: flex; flex-direction: column; min-width: 0; }
/* ─── Sidebar ─────────────────────────────────────────────────────────── */
.sb-logo {
padding: 22px 20px 18px;
border-bottom: 1px solid rgba(255,255,255,0.07);
display: flex; align-items: center; gap: 11px;
}
.sb-logo-icon {
width: 36px; height: 36px; border-radius: 9px;
background: #FF5500;
display: flex; align-items: center; justify-content: center;
flex-shrink: 0;
}
.sb-logo-name { font-size: 15px; font-weight: 800; color: #fff; line-height: 1.1; letter-spacing: -0.02em; }
.sb-logo-sub { font-size: 10px; color: #5C6278; font-weight: 500; margin-top: 1px; letter-spacing: 0.03em; }
.sb-nav { flex: 1; padding: 10px 12px; display: flex; flex-direction: column; gap: 1px; }
.sb-section {
font-size: 9.5px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em;
color: #5C6278; padding: 14px 8px 5px;
}
.sb-item {
display: flex; align-items: center; gap: 9px;
padding: 9px 10px; border-radius: 8px; cursor: pointer;
font-size: 13.5px; font-weight: 500; color: #A8ADC3;
transition: all 0.13s; text-decoration: none; position: relative;
}
.sb-item:hover { background: #252A3D; color: #fff; }
.sb-item.active { background: rgba(255,85,0,0.18); color: #fff; }
.sb-item.active .sb-icon { color: #FF5500; }
.sb-icon { font-size: 16px; width: 20px; text-align: center; flex-shrink: 0; }
.sb-badge {
margin-left: auto; font-size: 10px; font-weight: 700;
padding: 1px 6px; border-radius: 9px;
background: rgba(255,85,0,0.25); color: #FF5500;
font-family: 'JetBrains Mono', monospace;
}
.sb-badge.err { background: rgba(229,57,53,0.2); color: #E53935; }
.sb-user {
padding: 14px 16px; border-top: 1px solid rgba(255,255,255,0.07);
display: flex; align-items: center; gap: 10px; cursor: pointer;
text-decoration: none;
}
.sb-user:hover { background: #252A3D; }
.avatar {
width: 34px; height: 34px; border-radius: 50%; flex-shrink: 0;
display: flex; align-items: center; justify-content: center;
font-size: 12px; font-weight: 700; color: #fff;
background: linear-gradient(135deg, #FF5500 0%, #FF8C42 100%);
text-transform: uppercase;
}
.avatar.admin { background: linear-gradient(135deg, #6B48FF 0%, #A78BFA 100%); }
.sb-user-name { font-size: 12.5px; font-weight: 600; color: #fff; }
.sb-user-role { font-size: 10.5px; color: #5C6278; margin-top: 1px; }
.role-chip {
display: inline-block; font-size: 9px; font-weight: 700;
text-transform: uppercase; letter-spacing: 0.05em;
padding: 1px 5px; border-radius: 4px;
}
.role-chip.user { background: rgba(255,85,0,0.2); color: #FF5500; }
.role-chip.admin { background: rgba(107,72,255,0.2); color: #A78BFA; }
/* ─── Topbar ──────────────────────────────────────────────────────────── */
.topbar {
height: 56px; border-bottom: 1px solid #E4E6EE;
display: flex; align-items: center; padding: 0 28px; gap: 14px;
background: #FFFFFF; position: sticky; top: 0; z-index: 10;
flex-shrink: 0;
}
.topbar-title { font-size: 15px; font-weight: 700; flex: 1; color: #1C1F2E; }
.conn-pill {
display: flex; align-items: center; gap: 6px; padding: 5px 12px;
border-radius: 20px; border: 1px solid #E4E6EE;
font-size: 12px; font-weight: 500; color: #5C6278; background: #F4F5F7;
}
.dot { width: 7px; height: 7px; border-radius: 50%; flex-shrink: 0; }
.dot.g { background: #17A865; box-shadow: 0 0 5px #17A865; }
.dot.r { background: #E53935; box-shadow: 0 0 5px #E53935; }
.dot.y { background: #F59E0B; box-shadow: 0 0 5px #F59E0B; }
.dot.d { background: #CDD0DC; }
.dot.pulse { animation: blink 2s ease-in-out infinite; }
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:0.4} }
/* ─── Content ─────────────────────────────────────────────────────────── */
.content { flex: 1; padding: 28px 32px; overflow-y: auto; }
.pg-title { font-size: 22px; font-weight: 800; color: #1C1F2E; letter-spacing: -0.02em; }
.pg-sub { font-size: 13px; color: #5C6278; margin-top: 3px; margin-bottom: 22px; }
/* ─── Cards ───────────────────────────────────────────────────────────── */
.card {
background: #FFFFFF; border: 1px solid #E4E6EE;
border-radius: 12px; padding: 22px 24px;
}
.card-title { font-size: 14px; font-weight: 700; color: #1C1F2E; }
.card-sub { font-size: 12px; color: #5C6278; margin-top: 2px; }
.card-hd { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 16px; }
/* ─── Stat cards ──────────────────────────────────────────────────────── */
.stat-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 14px; margin-bottom: 20px; }
.stat-card {
background: #FFFFFF; border: 1px solid #E4E6EE; border-radius: 12px;
padding: 18px 20px; position: relative; overflow: hidden;
}
.stat-card::before {
content:''; position: absolute; top: 0; left: 0; right: 0; height: 3px; border-radius: 12px 12px 0 0;
}
.stat-card.or::before { background: #FF5500; }
.stat-card.gr::before { background: #17A865; }
.stat-card.yl::before { background: #F59E0B; }
.stat-card.rd::before { background: #E53935; }
.stat-card.bl::before { background: #3B6FFF; }
.stat-lbl { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.07em; color: #9EA8BE; }
.stat-val { font-size: 30px; font-weight: 800; color: #1C1F2E; margin: 5px 0 2px; font-family: 'JetBrains Mono', monospace; letter-spacing: -0.03em; }
.stat-delta { font-size: 12px; color: #5C6278; }
.stat-icon { position: absolute; right: 16px; top: 50%; transform: translateY(-50%); font-size: 28px; opacity: 0.1; }
/* ─── Grids ───────────────────────────────────────────────────────────── */
.g2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.g3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 14px; }
.g4 { display: grid; grid-template-columns: repeat(4,1fr); gap: 14px; }
/* ─── Buttons ─────────────────────────────────────────────────────────── */
.btn {
display: inline-flex; align-items: center; gap: 7px;
padding: 8px 18px; border-radius: 8px; font-size: 13px; font-weight: 600;
cursor: pointer; border: none; font-family: 'Golos Text', sans-serif;
transition: all 0.14s; white-space: nowrap; text-decoration: none;
}
.btn-primary { background: #FF5500; color: #fff; }
.btn-primary:hover { background: #E64D00; box-shadow: 0 3px 12px rgba(255,85,0,0.3); }
.btn-outline { background: transparent; border: 1.5px solid #E4E6EE; color: #5C6278; }
.btn-outline:hover { border-color: #CDD0DC; color: #1C1F2E; background: #F9FAFB; }
.btn-ghost { background: transparent; color: #5C6278; padding: 6px 10px; border: none; }
.btn-ghost:hover { color: #1C1F2E; background: #F4F5F7; }
.btn-danger { background: #FEF1F1; color: #E53935; border: 1.5px solid #F4AEAE; }
.btn-danger:hover { background: #fce4e4; }
.btn-sm { padding: 6px 13px; font-size: 12px; border-radius: 7px; }
.btn-xs { padding: 4px 9px; font-size: 11.5px; border-radius: 6px; }
/* ─── Tags ────────────────────────────────────────────────────────────── */
.tag {
display: inline-flex; align-items: center; gap: 5px;
padding: 3px 8px; border-radius: 5px; font-size: 11.5px; font-weight: 600;
}
.tag-gr { background: #EDFAF4; color: #17A865; border: 1px solid #A7E8CC; }
.tag-rd { background: #FEF1F1; color: #E53935; border: 1px solid #F4AEAE; }
.tag-yl { background: #FFFBEB; color: #F59E0B; border: 1px solid #FCD678; }
.tag-or { background: #FFF2EC; color: #FF5500; border: 1px solid #FFD9C7; }
.tag-dim { background: #F4F5F7; color: #5C6278; border: 1px solid #E4E6EE; }
.tag-bl { background: #EEF3FF; color: #3B6FFF; border: 1px solid #C7D7FF; }
/* ─── Table ───────────────────────────────────────────────────────────── */
.tbl { width: 100%; border-collapse: collapse; }
.tbl th {
text-align: left; font-size: 10.5px; font-weight: 700;
text-transform: uppercase; letter-spacing: 0.08em; color: #9EA8BE;
padding: 10px 16px; border-bottom: 1.5px solid #E4E6EE;
white-space: nowrap;
}
.tbl td { padding: 12px 16px; font-size: 13px; border-bottom: 1px solid #E4E6EE; vertical-align: middle; }
.tbl tr:last-child td { border-bottom: none; }
.tbl tbody tr:hover td { background: #F9FAFB; }
.tbl-name { font-weight: 600; color: #1C1F2E; }
.tbl-sub { font-size: 11px; color: #5C6278; margin-top: 1px; }
/* ─── Toggle ──────────────────────────────────────────────────────────── */
.tog {
width: 38px; height: 22px; border-radius: 11px;
background: #E4E6EE; position: relative; cursor: pointer; transition: background 0.18s; flex-shrink: 0;
display: inline-block;
}
.tog.on { background: #FF5500; }
.tog::after {
content:''; position: absolute; top: 3px; left: 3px;
width: 16px; height: 16px; background: #fff; border-radius: 50%;
transition: transform 0.18s; box-shadow: 0 1px 4px rgba(0,0,0,0.15);
}
.tog.on::after { transform: translateX(16px); }
/* ─── Progress ────────────────────────────────────────────────────────── */
.prog { height: 5px; background: #E4E6EE; border-radius: 3px; overflow: hidden; }
.prog-fill { height: 100%; border-radius: 3px; transition: width 0.4s; }
.prog-fill.or { background: #FF5500; }
.prog-fill.gr { background: #17A865; }
/* ─── Inputs ──────────────────────────────────────────────────────────── */
.inp {
background: #FFFFFF; border: 1.5px solid #E4E6EE; border-radius: 8px;
padding: 8px 12px; font-size: 13px; color: #1C1F2E;
font-family: 'Golos Text', sans-serif; outline: none;
transition: border-color 0.14s; width: 100%;
display: block;
}
.inp:focus { border-color: #FF5500; box-shadow: 0 0 0 3px #FFF2EC; }
.inp::placeholder { color: #9EA8BE; }
select.inp { cursor: pointer; }
.form-row { margin-bottom: 14px; }
.form-lbl { font-size: 11.5px; font-weight: 600; color: #5C6278; margin-bottom: 5px; text-transform: uppercase; letter-spacing: 0.04em; display: block; }
/* ─── Alerts ──────────────────────────────────────────────────────────── */
.alert { border-radius: 9px; padding: 11px 14px; font-size: 12.5px; display: flex; gap: 9px; margin-bottom: 16px; }
.alert-gr { background: #EDFAF4; border: 1px solid #A7E8CC; color: #136B41; }
.alert-yl { background: #FFFBEB; border: 1px solid #FCD678; color: #92680A; }
.alert-bl { background: #EEF3FF; border: 1px solid #C7D7FF; color: #3B6FFF; }
.alert-rd { background: #FEF1F1; border: 1px solid #F4AEAE; color: #E53935; }
/* ─── Tabs ────────────────────────────────────────────────────────────── */
.tabs { display: flex; gap: 0; border-bottom: 1.5px solid #E4E6EE; margin-bottom: 20px; }
.tab {
padding: 9px 18px; font-size: 13px; font-weight: 600; color: #5C6278;
cursor: pointer; border-bottom: 2.5px solid transparent; margin-bottom: -1.5px; transition: all 0.13s;
text-decoration: none; display: inline-block;
}
.tab:hover { color: #1C1F2E; }
.tab.active { color: #FF5500; border-bottom-color: #FF5500; }
/* ─── Conn detail ─────────────────────────────────────────────────────── */
.conn-detail {
background: #F4F5F7; border: 1px solid #E4E6EE; border-radius: 9px;
padding: 12px 16px; display: flex; flex-direction: column; gap: 9px;
}
.conn-row { display: flex; align-items: center; justify-content: space-between; }
.conn-k { font-size: 12px; color: #9EA8BE; }
.conn-v { font-size: 12px; font-weight: 600; color: #1C1F2E; font-family: 'JetBrains Mono', monospace; }
/* ─── Activity ────────────────────────────────────────────────────────── */
.act-item { display: flex; gap: 10px; padding: 10px 0; border-bottom: 1px solid #E4E6EE; }
.act-item:last-child { border-bottom: none; }
.act-icon { width: 32px; height: 32px; border-radius: 8px; display: flex; align-items: center; justify-content: center; font-size: 14px; flex-shrink: 0; }
.act-text { font-size: 12.5px; color: #1C1F2E; }
.act-time { font-size: 11px; color: #9EA8BE; margin-top: 2px; font-family: 'JetBrains Mono', monospace; }
/* ─── Section sep ─────────────────────────────────────────────────────── */
.section-sep { display: flex; align-items: center; gap: 10px; margin: 20px 0; }
.section-sep-line { flex: 1; height: 1px; background: #E4E6EE; }
.section-sep-label { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; color: #9EA8BE; }
/* ─── Pipeline ────────────────────────────────────────────────────────── */
.pipeline { display: flex; align-items: center; padding: 18px 0; }
.pipe-step { display: flex; flex-direction: column; align-items: center; gap: 7px; flex: 1; }
.pipe-node { width: 46px; height: 46px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 18px; border: 2px solid; }
.pipe-node.done { border-color: #17A865; background: #EDFAF4; }
.pipe-node.active { border-color: #FF5500; background: #FFF2EC; }
.pipe-node.idle { border-color: #E4E6EE; background: #F4F5F7; }
.pipe-lbl { font-size: 11px; font-weight: 600; color: #5C6278; text-align: center; }
.pipe-line { flex: 1; height: 2px; max-width: 52px; align-self: flex-start; margin-top: 22px; }
.pipe-line.done { background: #17A865; }
.pipe-line.idle { background: #E4E6EE; }
/* ─── Sync log ────────────────────────────────────────────────────────── */
.log-row { display: flex; align-items: flex-start; gap: 10px; padding: 10px 0; border-bottom: 1px solid #E4E6EE; }
.log-row:last-child { border-bottom: none; }
.log-bullet { width: 8px; height: 8px; border-radius: 50%; margin-top: 4px; flex-shrink: 0; }
.log-msg { font-size: 12.5px; color: #1C1F2E; }
.log-meta { font-size: 11px; color: #9EA8BE; font-family: 'JetBrains Mono', monospace; margin-top: 2px; }
/* ─── User row actions ────────────────────────────────────────────────── */
.action-row { display: flex; gap: 6px; }
/* ─── Inline status ───────────────────────────────────────────────────── */
.inline-st { display: flex; align-items: center; gap: 5px; font-size: 12.5px; font-weight: 500; }
/* ─── List group (legacy compat) ──────────────────────────────────────── */
.list-group { list-style: none; padding: 0; margin: 0; }
.list-group-item {
padding: 10px 0; border-bottom: 1px solid #E4E6EE;
display: flex; justify-content: space-between; align-items: center;
font-size: 13px;
}
.list-group-item:last-child { border-bottom: none; }
.list-group-item .lbl { font-size: 12px; color: #9EA8BE; }
.list-group-item .val { font-size: 12px; font-weight: 600; color: #1C1F2E; font-family: 'JetBrains Mono', monospace; }
/* ─── Breadcrumb ──────────────────────────────────────────────────────── */
.breadcrumb { display: flex; align-items: center; gap: 6px; margin-bottom: 16px; font-size: 12px; color: #9EA8BE; list-style: none; padding: 0; }
.breadcrumb a { color: #5C6278; text-decoration: none; }
.breadcrumb a:hover { color: #FF5500; }
.breadcrumb li + li::before { content: "/"; margin-right: 6px; color: #CDD0DC; }
/* ─── Empty state ─────────────────────────────────────────────────────── */
.empty-state {
text-align: center; padding: 48px 24px; color: #9EA8BE;
}
.empty-state i { font-size: 2.5rem; display: block; margin-bottom: 12px; }
.empty-state p { font-size: 13px; }
/* ─── Table scroll wrapper ────────────────────────────────────────────── */
.table-wrap { overflow-x: auto; width: 100%; }
/* ─── Pagination ──────────────────────────────────────────────────────── */
.pagination { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 16px; }
/* ─── Spinner ─────────────────────────────────────────────────────────── */
.spinner {
display: inline-block; width: 20px; height: 20px;
border: 2px solid #E4E6EE; border-top-color: #FF5500;
border-radius: 50%; animation: spin 0.75s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
/* ─── Code ────────────────────────────────────────────────────────────── */
pre, code { font-family: 'JetBrains Mono', monospace; font-size: 12px; }
pre {
background: #F4F5F7; border: 1px solid #E4E6EE; border-radius: 8px;
padding: 12px 14px; overflow-x: auto; white-space: pre-wrap;
}
/* ─── Dialog ──────────────────────────────────────────────────────────── */
dialog {
border: none; border-radius: 14px; padding: 0;
box-shadow: 0 8px 40px rgba(0,0,0,0.16);
max-width: 520px; width: 100%;
}
dialog::backdrop { background: rgba(0,0,0,0.45); }
.dialog-hd {
padding: 20px 24px 0; display: flex; align-items: center;
justify-content: space-between; margin-bottom: 16px;
}
.dialog-title { font-size: 16px; font-weight: 800; color: #1C1F2E; }
.dialog-body { padding: 0 24px 24px; }
.dialog-close {
background: none; border: none; cursor: pointer; font-size: 18px;
color: #9EA8BE; padding: 4px; border-radius: 6px; transition: color 0.13s;
}
.dialog-close:hover { color: #1C1F2E; }
/* ─── Filter bar ──────────────────────────────────────────────────────── */
.filter-bar {
display: flex; gap: 8px; flex-wrap: wrap; align-items: center;
padding: 14px 20px; border-bottom: 1px solid #E4E6EE;
}
/* ─── Viewed-as banner ────────────────────────────────────────────────── */
.view-as-bar {
background: #E64D00; color: #fff; text-align: center;
padding: 6px 16px; font-size: 13px;
}
.view-as-bar strong { font-weight: 700; }
/* ──────────────────────────────────────────────────────────────────────── */
/* LOGIN PAGE */
/* ──────────────────────────────────────────────────────────────────────── */
.login-wrap { min-height: 100vh; display: flex; background: #F4F5F7; }
.login-left {
flex: 1; background: #1C1F2E; display: flex; flex-direction: column;
justify-content: space-between; padding: 48px;
position: relative; overflow: hidden;
}
.login-left-bg {
position: absolute; inset: 0; pointer-events: none;
background:
radial-gradient(ellipse 70% 55% at 0% 110%, rgba(255,85,0,0.18) 0%, transparent 65%),
radial-gradient(ellipse 50% 40% at 100% -10%, rgba(255,85,0,0.10) 0%, transparent 60%);
}
.login-left-pattern {
position: absolute; inset: 0; pointer-events: none;
background-image: radial-gradient(circle, rgba(255,255,255,0.04) 1px, transparent 1px);
background-size: 28px 28px;
}
.login-brand { display: flex; align-items: center; gap: 12px; position: relative; z-index: 1; }
.login-brand-icon { width: 44px; height: 44px; border-radius: 11px; background: #FF5500; display: flex; align-items: center; justify-content: center; }
.login-brand-name { font-size: 20px; font-weight: 800; color: #fff; letter-spacing: -0.02em; }
.login-brand-sub { font-size: 11px; color: #5C6278; }
.login-hero { position: relative; z-index: 1; }
.login-hero-title { font-size: 32px; font-weight: 800; color: #fff; line-height: 1.25; letter-spacing: -0.03em; margin-bottom: 14px; }
.login-hero-title em { color: #FF5500; font-style: normal; }
.login-hero-body { font-size: 14px; color: #A8ADC3; line-height: 1.6; max-width: 340px; }
.login-chips { display: flex; gap: 10px; margin-top: 22px; flex-wrap: wrap; }
.login-chip {
display: flex; align-items: center; gap: 7px; padding: 7px 13px;
border-radius: 20px; background: rgba(255,255,255,0.07); border: 1px solid rgba(255,255,255,0.1);
font-size: 12px; color: rgba(255,255,255,0.65); font-weight: 500;
}
.login-footer { font-size: 11px; color: #5C6278; position: relative; z-index: 1; }
.login-right { width: 460px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; padding: 40px; }
.login-box { width: 100%; max-width: 360px; }
.login-box-title { font-size: 24px; font-weight: 800; color: #1C1F2E; letter-spacing: -0.02em; margin-bottom: 4px; }
.login-box-sub { font-size: 13px; color: #5C6278; margin-bottom: 28px; }
.login-btn {
width: 100%; padding: 11px; border-radius: 9px; border: none; cursor: pointer;
background: #FF5500; color: #fff; font-size: 14px; font-weight: 700;
font-family: 'Golos Text', sans-serif; transition: all 0.15s; margin-top: 6px; display: block;
}
.login-btn:hover { background: #E64D00; box-shadow: 0 6px 20px rgba(255,85,0,0.3); }
.login-btn:disabled { opacity: 0.6; cursor: not-allowed; }
.login-divider { display: flex; align-items: center; gap: 10px; margin: 18px 0; }
.login-divider span { font-size: 11px; color: #9EA8BE; }
.login-divider::before, .login-divider::after { content:''; flex: 1; height: 1px; background: #E4E6EE; }
.login-hint { font-size: 11.5px; color: #9EA8BE; text-align: center; margin-top: 14px; line-height: 1.5; }
.login-hint a { color: #FF5500; text-decoration: none; }
.login-hint a:hover { text-decoration: underline; }