/* ═══════════════════════════════════════════════════════════════
   History V2 — журнал изменений
   Извлечено из checklist_operational.css строки 8375–8553
   ═══════════════════════════════════════════════════════════════ */

/* ===== HISTORY V2 ===== */
.hist-v2-wrap {
    padding: 20px 32px 32px;
}
.hist-v2-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: var(--space-2);
}
.hist-v2-title {
    font-size: var(--text-md);
    font-weight: 700;
    color: var(--color-text);
    margin-right: 10px;
}
.hist-v2-subtitle {
    font-size: var(--text-xs);
    color: var(--color-gray-400);
}
.hist-v2-refresh-btn {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    background: var(--color-gray-100);
    color: var(--color-text-strong);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 8px 12px;
    font-size: var(--text-sm);
    font-weight: 500;
    cursor: pointer;
    transition: background 0.15s;
}
.hist-v2-refresh-btn:hover { background: var(--color-border); }

/* Empty state */
.hist-v2-empty {
    text-align: center;
    padding: 60px 40px;
}
.hist-v2-empty-icon {
    font-size: 44px;
    display: block;
    margin-bottom: 14px;
}
.hist-v2-empty-title {
    font-size: var(--text-md);
    font-weight: 600;
    color: var(--color-text-secondary);
    margin-bottom: 6px;
}
.hist-v2-empty-sub {
    font-size: var(--text-sm);
    color: var(--color-gray-400);
}

/* Timeline feed */
.hist-v2-feed {
    display: flex;
    flex-direction: column;
    gap: var(--space-0);
}

/* Date group header */
.hist-v2-date-group {
    font-size: var(--text-xs);
    font-weight: 600;
    color: var(--color-gray-400);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 16px 0 8px;
}
.hist-v2-date-group:first-child { padding-top: 0; }

/* Individual entry row */
.hist-v2-entry {
    display: flex;
    align-items: flex-start;
    gap: var(--space-3);
    padding: 8px 0;
    border-bottom: 1px solid var(--color-gray-100);
}
.hist-v2-entry:last-child { border-bottom: none; }

/* Action dot */
.hist-v2-dot {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--text-base);
    flex-shrink: 0;
    margin-top: 2px;
}
.hist-v2-dot--add { background: var(--color-success-50); }
.hist-v2-dot--delete { background: var(--color-danger-50); }
.hist-v2-dot--update { background: var(--color-primary-50); }
.hist-v2-dot--file_add { background: #F3F0FF; }
.hist-v2-dot--file_delete { background: var(--color-danger-50); }
.hist-v2-dot--other { background: var(--color-gray-100); }
.hist-v2-dot--date_shift { background: var(--color-warning-50); }

/* Entry body */
.hist-v2-body { flex: 1; min-width: 0; }

.hist-v2-row-top {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    flex-wrap: wrap;
    margin-bottom: 3px;
}
.hist-v2-user {
    font-size: var(--text-sm);
    font-weight: 600;
    color: var(--color-text);
}
.hist-v2-badge {
    display: inline-flex;
    align-items: center;
    padding: 2px 8px;
    border-radius: var(--radius-xs);
    font-size: var(--text-xs);
    font-weight: 600;
}
.hist-v2-badge--add { background: #dcfce7; color: #166534; }
.hist-v2-badge--delete { background: var(--color-danger-50); color: #991b1b; }
.hist-v2-badge--update { background: var(--color-primary-50); color: #0040DD; }
.hist-v2-badge--file_add { background: #f3e8ff; color: #6b21a8; }
.hist-v2-badge--file_delete { background: var(--color-danger-50); color: #991b1b; }
.hist-v2-badge--other { background: var(--color-gray-100); color: var(--color-text-secondary); }
.hist-v2-badge--date_shift { background: #fef3c7; color: #92400e; }

.hist-v2-time {
    font-size: var(--text-xs);
    color: var(--color-gray-400);
    margin-left: auto;
    white-space: nowrap;
}

.hist-v2-breadcrumb {
    font-size: var(--text-xs);
    color: var(--color-text-secondary);
    white-space: normal;
    overflow: hidden;
}
.hist-v2-breadcrumb strong {
    color: var(--color-text-strong);
    font-weight: 600;
}
.hist-v2-change {
    font-size: var(--text-xs);
    color: var(--color-gray-400);
    margin-top: 2px;
}
.hist-v2-change span {
    color: var(--color-text-strong);
    font-weight: 500;
}
.hist-v2-change .hist-v2-old {
    color: var(--color-gray-400);
    text-decoration: line-through;
    font-weight: 500;
}
.hist-v2-change .hist-v2-new {
    color: #b45309;
    font-weight: 600;
}

@media (max-width: 640px) {
    .hist-v2-wrap { padding: var(--space-3); }
    .hist-v2-time { margin-left: 0; }
}

