This repository has been archived on 2026-07-21. You can view files and clone it, but cannot push or open issues or pull requests.
Files
edo/static/style.css
2026-07-14 01:16:33 +03:00

968 lines
19 KiB
CSS

:root {
--bg: #0b0f14;
--bg-elevated: #111820;
--surface: #151c26;
--surface-hover: #1a2330;
--surface-muted: #1e2836;
--text: #e8edf4;
--text-secondary: #9aa8bc;
--text-muted: #6b7a90;
--border: rgba(255, 255, 255, 0.08);
--border-strong: rgba(255, 255, 255, 0.14);
--primary: #5b8def;
--primary-hover: #7aa3f5;
--primary-glow: rgba(91, 141, 239, 0.25);
--accent: #22d3a8;
--accent-glow: rgba(34, 211, 168, 0.2);
--warn: #f5b942;
--warn-bg: rgba(245, 185, 66, 0.12);
--success: #34d399;
--success-bg: rgba(52, 211, 153, 0.12);
--error: #f87171;
--error-bg: rgba(248, 113, 113, 0.12);
--neutral-bg: rgba(255, 255, 255, 0.06);
--radius: 14px;
--radius-sm: 10px;
--shadow: 0 4px 24px rgba(0, 0, 0, 0.35);
--shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.45);
--transition: 0.18s ease;
}
* {
box-sizing: border-box;
}
html {
color-scheme: dark;
}
body {
margin: 0;
font-family: "Inter", "Segoe UI", system-ui, sans-serif;
background: var(--bg);
background-image:
radial-gradient(ellipse 80% 50% at 50% -20%, rgba(91, 141, 239, 0.15), transparent),
radial-gradient(ellipse 60% 40% at 100% 0%, rgba(34, 211, 168, 0.06), transparent);
color: var(--text);
line-height: 1.55;
min-height: 100vh;
-webkit-font-smoothing: antialiased;
}
.container {
max-width: 95%; /* Или 1400px, чтобы таблица занимала больше места на больших экранах */
margin: 0 auto;
padding: 0 1.5rem;
}
/* ── Header ── */
.header {
position: sticky;
top: 0;
z-index: 100;
background: rgba(11, 15, 20, 0.85);
backdrop-filter: blur(16px);
border-bottom: 1px solid var(--border);
margin-bottom: 2rem;
}
.header-inner {
display: flex;
align-items: center;
justify-content: space-between;
gap: 1.5rem;
padding: 1rem 0 0;
flex-wrap: wrap;
}
.logo-wrap {
display: flex;
align-items: center;
gap: 0.75rem;
text-decoration: none;
color: inherit;
}
.logo-icon {
width: 40px;
height: 40px;
border-radius: 12px;
background: linear-gradient(135deg, var(--primary), #3d6fd4);
display: flex;
align-items: center;
justify-content: center;
font-size: 1.1rem;
box-shadow: 0 4px 16px var(--primary-glow);
}
.logo-text h1 {
margin: 0;
font-size: 1.15rem;
font-weight: 700;
letter-spacing: -0.02em;
}
.logo-text span {
display: block;
font-size: 0.75rem;
color: var(--text-muted);
font-weight: 400;
margin-top: 0.1rem;
}
.tabs {
display: flex;
gap: 0.35rem;
padding-bottom: 0;
background: var(--surface);
border: 1px solid var(--border);
border-radius: 12px;
padding: 4px;
}
.tab {
display: inline-flex;
align-items: center;
gap: 0.45rem;
padding: 0.55rem 1rem;
text-decoration: none;
color: var(--text-secondary);
border-radius: 9px;
font-weight: 500;
font-size: 0.9rem;
transition: color var(--transition), background var(--transition);
white-space: nowrap;
}
.tab:hover {
color: var(--text);
background: var(--surface-hover);
}
.tab.active {
color: var(--text);
background: var(--surface-muted);
box-shadow: inset 0 0 0 1px var(--border-strong);
}
.tab-icon {
opacity: 0.7;
font-size: 0.85rem;
}
.tab.active .tab-icon {
opacity: 1;
}
/* ── Main ── */
main.container {
padding-bottom: 3rem;
}
.page-header {
margin-bottom: 1.75rem;
}
.page-header h2 {
margin: 0 0 0.35rem;
font-size: 1.65rem;
font-weight: 700;
letter-spacing: -0.03em;
}
.page-header p {
margin: 0;
color: var(--text-secondary);
font-size: 0.95rem;
max-width: 640px;
}
/* ── Alerts ── */
.messages {
margin-bottom: 1.25rem;
}
.alert {
padding: 0.85rem 1.1rem;
border-radius: var(--radius-sm);
margin-bottom: 0.5rem;
font-size: 0.9rem;
border: 1px solid transparent;
display: flex;
align-items: center;
gap: 0.5rem;
}
.alert-success {
background: var(--success-bg);
color: var(--success);
border-color: rgba(52, 211, 153, 0.25);
}
.alert-error {
background: var(--error-bg);
color: var(--error);
border-color: rgba(248, 113, 113, 0.25);
}
/* ── Panels ── */
.panel {
background: var(--surface);
border: 1px solid var(--border);
border-radius: var(--radius);
padding: 1.5rem;
margin-bottom: 1.25rem;
box-shadow: var(--shadow);
}
.panel-header {
display: flex;
align-items: flex-start;
gap: 0.85rem;
margin-bottom: 1.25rem;
}
.panel-icon {
width: 42px;
height: 42px;
border-radius: 11px;
display: flex;
align-items: center;
justify-content: center;
font-size: 1.15rem;
flex-shrink: 0;
}
.panel-icon-blue {
background: rgba(91, 141, 239, 0.15);
color: var(--primary);
}
.panel-icon-green {
background: rgba(34, 211, 168, 0.12);
color: var(--accent);
}
.panel-icon-purple {
background: rgba(167, 139, 250, 0.12);
color: #a78bfa;
}
.panel-title h3 {
margin: 0 0 0.25rem;
font-size: 1.05rem;
font-weight: 600;
}
.panel-title p {
margin: 0;
color: var(--text-muted);
font-size: 0.875rem;
line-height: 1.45;
}
.panel > h3 {
margin: 1.5rem 0 1rem;
font-size: 1rem;
font-weight: 600;
color: var(--text-secondary);
}
.panel-divider {
height: 1px;
background: var(--border);
margin: 1.25rem 0;
}
.hint {
color: var(--text-muted);
font-size: 0.875rem;
}
/* ── Upload zone ── */
.upload-zone {
border: 1.5px dashed var(--border-strong);
border-radius: var(--radius-sm);
padding: 1.5rem;
background: var(--bg-elevated);
transition: border-color var(--transition), background var(--transition);
}
.upload-zone:hover {
border-color: rgba(91, 141, 239, 0.4);
background: rgba(91, 141, 239, 0.04);
}
.upload-form {
display: flex;
flex-wrap: wrap;
gap: 1rem;
align-items: center;
}
.file-input-wrap {
flex: 1;
min-width: 220px;
}
.file-input-wrap input[type="file"] {
width: 100%;
padding: 0.65rem;
border: 1px solid var(--border);
border-radius: var(--radius-sm);
background: var(--surface);
color: var(--text-secondary);
font: inherit;
font-size: 0.875rem;
cursor: pointer;
}
.file-input-wrap input[type="file"]::file-selector-button {
padding: 0.4rem 0.85rem;
margin-right: 0.75rem;
border: none;
border-radius: 7px;
background: var(--surface-muted);
color: var(--text);
font: inherit;
font-size: 0.825rem;
cursor: pointer;
transition: background var(--transition);
}
.file-input-wrap input[type="file"]::file-selector-button:hover {
background: var(--primary);
color: white;
}
/* ── Forms ── */
.add-form,
.filters {
display: flex;
flex-wrap: wrap;
gap: 0.75rem;
align-items: end;
}
.filters {
padding: 1rem;
background: var(--bg-elevated);
border-radius: var(--radius-sm);
border: 1px solid var(--border);
margin-bottom: 1.25rem;
}
.filters label {
display: flex;
flex-direction: column;
gap: 0.35rem;
font-size: 0.8rem;
font-weight: 500;
color: var(--text-muted);
text-transform: uppercase;
letter-spacing: 0.04em;
}
input[type="text"],
select {
padding: 0.6rem 0.85rem;
border: 1px solid var(--border);
border-radius: var(--radius-sm);
background: var(--surface);
color: var(--text);
font: inherit;
font-size: 0.9rem;
min-width: 200px;
transition: border-color var(--transition), box-shadow var(--transition);
}
input[type="text"]:focus,
select:focus {
outline: none;
border-color: rgba(91, 141, 239, 0.5);
box-shadow: 0 0 0 3px var(--primary-glow);
}
input[type="text"]::placeholder {
color: var(--text-muted);
}
select option {
background: var(--surface);
color: var(--text);
}
.add-form input[type="text"] {
flex: 1;
min-width: 260px;
}
/* ── Buttons ── */
.btn {
padding: 0.6rem 1.15rem;
border: 1px solid var(--border-strong);
border-radius: var(--radius-sm);
background: var(--surface-muted);
color: var(--text);
cursor: pointer;
font: inherit;
font-size: 0.875rem;
font-weight: 500;
transition: background var(--transition), border-color var(--transition), transform 0.1s ease;
white-space: nowrap;
}
.btn:hover {
background: var(--surface-hover);
border-color: rgba(255, 255, 255, 0.2);
}
.btn:active {
transform: scale(0.98);
}
.btn-primary {
background: linear-gradient(135deg, var(--primary), #4a7de0);
color: white;
border-color: transparent;
box-shadow: 0 4px 14px var(--primary-glow);
}
.btn-primary:hover {
background: linear-gradient(135deg, var(--primary-hover), #5b8def);
box-shadow: 0 6px 20px var(--primary-glow);
}
.btn-danger {
color: var(--error);
border-color: rgba(248, 113, 113, 0.3);
background: var(--error-bg);
}
.btn-danger:hover {
background: rgba(248, 113, 113, 0.2);
border-color: rgba(248, 113, 113, 0.45);
}
.btn-sm {
padding: 0.35rem 0.75rem;
font-size: 0.8rem;
}
.btn-ghost {
background: transparent;
border-color: var(--border);
color: var(--text-secondary);
}
.btn-ghost:hover {
color: var(--text);
background: var(--surface-hover);
}
/* ── Metrics ── */
.metrics {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
gap: 1rem;
margin-bottom: 1.25rem;
}
.metric {
background: var(--surface);
border: 1px solid var(--border);
border-radius: var(--radius);
padding: 1.25rem 1.35rem;
position: relative;
overflow: hidden;
box-shadow: var(--shadow);
transition: transform var(--transition), border-color var(--transition);
}
.metric:hover {
transform: translateY(-2px);
border-color: var(--border-strong);
}
.metric::before {
content: "";
position: absolute;
top: 0;
left: 0;
right: 0;
height: 3px;
border-radius: var(--radius) var(--radius) 0 0;
}
.metric-total::before { background: var(--primary); }
.metric-pending::before { background: var(--warn); }
.metric-completed::before { background: var(--accent); }
.metric-sbis::before { background: #a78bfa; }
.metric-top {
display: flex;
align-items: center;
justify-content: space-between;
margin-bottom: 0.5rem;
}
.metric-icon {
width: 36px;
height: 36px;
border-radius: 9px;
display: flex;
align-items: center;
justify-content: center;
font-size: 1rem;
}
.metric-total .metric-icon { background: rgba(91, 141, 239, 0.15); }
.metric-pending .metric-icon { background: var(--warn-bg); }
.metric-completed .metric-icon { background: var(--accent-glow); }
.metric-sbis .metric-icon { background: rgba(167, 139, 250, 0.12); }
.metric-value {
display: block;
font-size: 2.1rem;
font-weight: 700;
letter-spacing: -0.03em;
line-height: 1.1;
}
.metric-label {
color: var(--text-muted);
font-size: 0.825rem;
font-weight: 500;
}
/* ── Tables ── */
.table-wrap {
overflow-x: auto;
border-radius: var(--radius-sm);
border: 1px solid var(--border);
width: 100%; /* Явно указываем ширину */
margin: 0; /* Убираем возможные отступы, которые "съедают" место */
}
table {
width: 100%;
min-width: 1200px; /* Сохраняем это, чтобы на маленьких экранах была прокрутка */
border-collapse: collapse;
font-size: 0.875rem;
table-layout: auto; /* Позволяет столбцам расширяться по контенту */
}
th {
padding: 1rem 1.25rem; /* Было 0.75rem 1rem */
background: var(--bg-elevated);
font-weight: 600;
font-size: 0.75rem;
text-transform: uppercase;
letter-spacing: 0.05em;
color: var(--text-muted);
text-align: left;
border-bottom: 1px solid var(--border);
white-space: nowrap; /* Это важно, чтобы заголовки не переносились */
}
td {
padding: 1rem 1.25rem; /* Было 0.75rem 1rem */
border-bottom: 1px solid var(--border);
color: var(--text-secondary);
/* Добавьте это, чтобы содержимое ячеек не "схлопывалось" */
white-space: nowrap;
}
tbody tr {
transition: background var(--transition);
}
tbody tr:hover {
background: rgba(255, 255, 255, 0.025);
}
tbody tr:last-child td {
border-bottom: none;
}
td:first-child:not(.col-note) {
color: var(--text);
font-weight: 500;
}
.col-note {
width: 36px;
padding: 0.8rem 0.5rem !important;
text-align: center;
}
.note-indicator {
font-size: 0.9rem;
filter: drop-shadow(0 0 6px rgba(245, 185, 66, 0.5));
}
tr.has-note {
background: rgba(245, 185, 66, 0.04);
}
tr.has-note td:first-child {
box-shadow: inset 3px 0 0 var(--warn);
}
tr.has-note:hover {
background: rgba(245, 185, 66, 0.07);
}
.col-comment {
min-width: 120px;
}
.comment-details {
font-size: 0.825rem;
}
.comment-summary {
cursor: pointer;
color: var(--primary);
font-weight: 500;
list-style: none;
user-select: none;
}
.comment-summary::-webkit-details-marker {
display: none;
}
.comment-summary:hover {
color: var(--primary-hover);
}
.comment-form {
margin-top: 0.5rem;
min-width: 220px;
}
.comment-form textarea {
width: 100%;
padding: 0.55rem 0.75rem;
border: 1px solid var(--border);
border-radius: var(--radius-sm);
background: var(--bg-elevated);
color: var(--text);
font: inherit;
font-size: 0.825rem;
resize: vertical;
min-height: 52px;
}
.comment-form textarea:focus {
outline: none;
border-color: rgba(91, 141, 239, 0.5);
box-shadow: 0 0 0 3px var(--primary-glow);
}
.comment-actions {
margin-top: 0.4rem;
display: flex;
justify-content: flex-end;
}
.num-cell {
font-variant-numeric: tabular-nums;
font-family: "Inter", monospace;
}
.doc-number {
font-family: "Inter", monospace;
font-size: 0.85rem;
color: var(--primary);
}
/* ── Status badges ── */
.status {
display: inline-flex;
align-items: center;
gap: 0.35rem;
padding: 0.2rem 0.65rem;
border-radius: 999px;
background: var(--neutral-bg);
font-size: 0.78rem;
font-weight: 500;
color: var(--text-secondary);
white-space: nowrap;
max-width: 220px;
overflow: hidden;
text-overflow: ellipsis;
}
.status::before {
content: "";
width: 6px;
height: 6px;
border-radius: 50%;
flex-shrink: 0;
background: var(--text-muted);
}
.status-ok {
background: var(--success-bg);
color: var(--success);
}
.status-ok::before { background: var(--success); }
.status-warn {
background: var(--warn-bg);
color: var(--warn);
}
.status-warn::before { background: var(--warn); }
.status-error {
background: var(--error-bg);
color: var(--error);
}
.status-error::before { background: var(--error); }
.status-neutral {
background: var(--neutral-bg);
color: var(--text-muted);
}
.status-neutral::before { background: var(--text-muted); }
/* ── Empty state ── */
.empty-state {
text-align: center;
padding: 3rem 1.5rem;
color: var(--text-muted);
}
.empty-icon {
font-size: 2.5rem;
margin-bottom: 0.75rem;
opacity: 0.5;
}
.empty-state p {
margin: 0;
font-size: 0.95rem;
}
.empty-state .empty-hint {
margin-top: 0.35rem;
font-size: 0.825rem;
opacity: 0.7;
}
/* ── Contractors ── */
.contractor-grid {
display: grid;
gap: 0.65rem;
}
.contractor-card {
display: flex;
align-items: center;
justify-content: space-between;
gap: 1rem;
padding: 0.85rem 1rem;
background: var(--bg-elevated);
border: 1px solid var(--border);
border-radius: var(--radius-sm);
transition: border-color var(--transition), background var(--transition);
}
.contractor-card:hover {
border-color: var(--border-strong);
background: var(--surface-hover);
}
.contractor-info {
display: flex;
align-items: center;
gap: 0.85rem;
min-width: 0;
}
.contractor-avatar {
width: 38px;
height: 38px;
border-radius: 10px;
background: linear-gradient(135deg, rgba(91, 141, 239, 0.2), rgba(34, 211, 168, 0.15));
display: flex;
align-items: center;
justify-content: center;
font-size: 0.85rem;
font-weight: 700;
color: var(--primary);
flex-shrink: 0;
text-transform: uppercase;
}
.contractor-name {
font-weight: 500;
color: var(--text);
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.contractor-meta {
display: flex;
flex-direction: column;
gap: 0.3rem;
min-width: 0;
}
.contractor-inactive {
opacity: 0.75;
}
.contractor-actions {
display: flex;
flex-wrap: wrap;
gap: 0.4rem;
flex-shrink: 0;
}
.bulk-form {
display: flex;
flex-direction: column;
gap: 0.75rem;
}
.bulk-textarea {
width: 100%;
padding: 0.75rem 0.85rem;
border: 1px solid var(--border);
border-radius: var(--radius-sm);
background: var(--bg-elevated);
color: var(--text);
font: inherit;
font-size: 0.9rem;
line-height: 1.5;
resize: vertical;
min-height: 140px;
}
.bulk-textarea:focus {
outline: none;
border-color: rgba(91, 141, 239, 0.5);
box-shadow: 0 0 0 3px var(--primary-glow);
}
.bulk-textarea::placeholder {
color: var(--text-muted);
}
.bulk-actions {
display: flex;
justify-content: flex-start;
}
textarea {
font-family: inherit;
}
.inline-form {
margin: 0;
flex-shrink: 0;
}
.pagination .btn-ghost {
padding: 8px 16px;
border: 1px solid #ddd;
border-radius: 6px;
background: white;
color: #333;
text-decoration: none;
transition: all 0.2s;
}
.pagination .btn-ghost:hover {
background: #f5f5f5;
border-color: #bbb;
}
.count-badge {
display: inline-flex;
align-items: center;
justify-content: center;
min-width: 1.5rem;
height: 1.5rem;
padding: 0 0.45rem;
border-radius: 999px;
background: var(--surface-muted);
font-size: 0.75rem;
font-weight: 600;
color: var(--text-secondary);
margin-left: 0.5rem;
}
.section-label {
display: flex;
align-items: center;
gap: 0.5rem;
margin: 0 0 1rem;
font-size: 0.95rem;
font-weight: 600;
color: var(--text);
}
/* ── Responsive ── */
@media (max-width: 768px) {
.header-inner {
flex-direction: column;
align-items: stretch;
}
.tabs {
overflow-x: auto;
flex-wrap: nowrap;
}
.metrics {
grid-template-columns: 1fr;
}
.filters {
flex-direction: column;
align-items: stretch;
}
input[type="text"],
select {
min-width: 100%;
}
.upload-form {
flex-direction: column;
align-items: stretch;
}
.contractor-card {
flex-direction: column;
align-items: stretch;
}
.contractor-actions {
justify-content: flex-end;
}
}