документы

This commit is contained in:
2026-02-24 23:08:35 +05:00
parent 27b7197569
commit 72541292f5
4 changed files with 645 additions and 285 deletions

View File

@@ -4420,4 +4420,238 @@ button.btn-primary {
0% { opacity: 0.6; }
50% { opacity: 1; }
100% { opacity: 0.6; }
}
}
.document-fields-container {
margin: 12px 0;
padding: 12px 15px;
background: linear-gradient(135deg, #f8f9ff 0%, #f0f2fa 100%);
border-left: 4px solid #4a90e2;
border-radius: 0 8px 8px 0;
box-shadow: 0 2px 6px rgba(0,0,0,0.05);
font-size: 0.95em;
width: 100%;
box-sizing: border-box;
}
.document-fields-container.empty {
background: linear-gradient(135deg, #f9f9f9 0%, #f0f0f0 100%);
border-left-color: #9e9e9e;
opacity: 0.8;
}
.document-fields-header {
display: flex;
align-items: center;
margin-bottom: 10px;
padding-bottom: 6px;
border-bottom: 1px dashed rgba(74, 144, 226, 0.3);
width: 100%;
}
.document-fields-container.empty .document-fields-header {
border-bottom-color: rgba(158, 158, 158, 0.3);
}
.document-icon {
font-size: 1.2em;
margin-right: 8px;
filter: drop-shadow(0 2px 2px rgba(0,0,0,0.1));
flex-shrink: 0;
}
.document-title {
font-weight: 600;
color: #2c3e50;
text-transform: uppercase;
font-size: 0.85em;
letter-spacing: 0.5px;
white-space: nowrap;
}
.document-fields-container.empty .document-title {
color: #7f8c8d;
}
/* Горизонтальное расположение полей */
.document-fields-content {
display: flex;
flex-wrap: wrap;
gap: 12px 20px;
align-items: center;
width: 100%;
}
/* Стили для каждого поля - текст по центру вертикально */
.document-field {
display: inline-flex;
align-items: center; /* Выравнивание по центру вертикально */
background: white;
padding: 4px 14px; /* Уменьшил верхний/нижний padding для лучшего выравнивания */
border-radius: 30px;
box-shadow: 0 2px 4px rgba(0,0,0,0.05);
border: 1px solid rgba(0,0,0,0.03);
transition: all 0.2s ease;
max-width: 100%;
flex: 0 1 auto;
line-height: 1.4; /* Добавил для единообразия высоты строки */
}
.document-field:hover {
box-shadow: 0 4px 8px rgba(0,0,0,0.08);
transform: translateY(-1px);
}
.document-field.long-value {
max-width: 300px;
}
.document-fields-container.empty .document-field {
background: rgba(255,255,255,0.7);
}
.field-label {
font-weight: 500;
color: #7f8c8d;
margin-right: 6px;
font-size: 0.9em;
white-space: nowrap;
flex-shrink: 0;
line-height: 1.4; /* Единообразие высоты строки */
}
.field-value {
font-weight: 600;
color: #2c3e50;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
max-width: 200px;
line-height: 1.4; /* Единообразие высоты строки */
padding: 2px 0; /* Небольшой отступ для лучшего выравнивания */
}
.document-field.long-value .field-value {
max-width: 250px;
}
/* Специфичные стили для разных типов полей */
.document-number {
color: #e67e22;
background: rgba(230, 126, 34, 0.1);
padding: 2px 10px;
border-radius: 20px;
display: inline-block;
}
.document-date {
color: #27ae60;
background: rgba(39, 174, 96, 0.1);
padding: 2px 10px;
border-radius: 20px;
display: inline-block;
}
.document-author {
color: #3498db;
background: rgba(52, 152, 219, 0.1);
padding: 2px 10px;
border-radius: 20px;
display: inline-block;
}
/* Стили для пустого состояния */
.document-fields-empty {
display: flex;
align-items: center;
justify-content: center;
padding: 8px 0;
width: 100%;
}
.empty-message {
color: #95a5a6;
font-style: italic;
font-size: 0.9em;
display: flex;
align-items: center;
gap: 5px;
}
.empty-message::before {
content: "⏳";
font-size: 1.1em;
opacity: 0.7;
}
/* Анимация появления */
.document-fields-container {
animation: slideIn 0.3s ease-out;
}
@keyframes slideIn {
from {
opacity: 0;
transform: translateY(-5px);
}
to {
opacity: 1;
transform: translateY(0);
}
}
/* Адаптивность для мобильных и узких экранов */
@media (max-width: 768px) {
.document-fields-content {
flex-direction: column;
align-items: stretch;
gap: 8px;
}
.document-field {
width: 100%;
max-width: 100%;
box-sizing: border-box;
justify-content: flex-start; /* Выравнивание по левому краю на мобильных */
}
.document-field.long-value {
max-width: 100%;
}
.field-value {
max-width: calc(100% - 60px);
}
.document-field.long-value .field-value {
max-width: calc(100% - 60px);
}
}
/* Для очень узких экранов */
@media (max-width: 480px) {
.document-fields-header {
flex-wrap: wrap;
}
.document-title {
white-space: normal;
word-break: break-word;
}
.document-field {
flex-wrap: wrap;
padding: 8px 12px;
justify-content: flex-start;
}
.field-label {
margin-bottom: 4px;
}
.field-value {
white-space: normal;
word-break: break-word;
max-width: 100%;
}
}