/* ==========================================================================
   ИСТОРИЯ ИЗМЕНЕНИЙ
   ========================================================================== */
.hist-page { display: flex; flex-direction: column; gap: 13px; }
.hist-head { display: flex; align-items: flex-start; gap: 12px; }
.hist-head h2 { margin: 0; font-size: 1.4rem; font-weight: 760; letter-spacing: -.02em; display: flex; align-items: center; gap: 8px; }
.hist-head h2 i { color: var(--c-brand); }
.hist-head p { margin: 3px 0 0; color: var(--c-muted); font-size: .84rem; }
.hist-refresh { margin-left: auto; border: 1px solid var(--c-border); background: var(--c-surface); color: var(--c-text-2); border-radius: 9px; height: 34px; padding: 0 10px; font: inherit; font-size: .76rem; font-weight: 650; cursor: pointer; display: inline-flex; align-items: center; gap: 5px; }
.hist-refresh:hover { background: var(--c-surface-2); }
.hist-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 9px; }
.hist-stat { display: flex; align-items: center; gap: 9px; background: var(--c-surface); border: 1px solid var(--c-border); border-radius: 12px; padding: 10px 12px; box-shadow: var(--c-shadow-sm); }
.hist-stat > span { width: 31px; height: 31px; flex: 0 0 31px; border-radius: 9px; background: var(--c-brand-soft); color: var(--c-brand); display: flex; align-items: center; justify-content: center; font-size: .74rem; }
.hist-stat b { font-size: 1.02rem; line-height: 1.1; }
.hist-stat small { display: block; color: var(--c-muted); font-size: .66rem; margin-top: 2px; }
.hist-toolbar { display: flex; gap: 8px; flex-wrap: wrap; }
.hist-search { position: relative; flex: 1 1 240px; height: 34px; }
.hist-search i { position: absolute; left: 10px; top: 10px; color: var(--c-muted); font-size: .74rem; }
.hist-search input { width: 100%; height: 34px; padding: 0 10px 0 28px; border: 1px solid var(--c-border); border-radius: 9px; background: var(--c-surface); color: var(--c-text); font: inherit; font-size: .78rem; }
.hist-select { height: 34px; border: 1px solid var(--c-border); border-radius: 9px; background: var(--c-surface); color: var(--c-text); font: inherit; font-size: .76rem; padding: 0 9px; }
.hist-list { display: flex; flex-direction: column; gap: 7px; }
.hist-item { display: flex; gap: 10px; background: var(--c-surface); border: 1px solid var(--c-border); border-radius: 12px; padding: 10px 12px; box-shadow: var(--c-shadow-sm); }
.hist-avatar { width: 34px; height: 34px; flex: 0 0 34px; border-radius: 10px; background: var(--c-brand-soft); color: var(--c-brand); display: flex; align-items: center; justify-content: center; font-size: .7rem; font-weight: 750; }
.hist-body { flex: 1; min-width: 0; }
.hist-top { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; }
.hist-action { display: inline-flex; align-items: center; gap: 4px; border-radius: 999px; padding: 2px 7px; font-size: .64rem; font-weight: 700; }
.hist-action.is-success { background: rgba(5, 150, 105, .12); color: #047857; }
.hist-action.is-info { background: var(--c-brand-soft); color: var(--c-brand); }
.hist-action.is-warning { background: rgba(217, 119, 6, .14); color: #b45309; }
.hist-action.is-danger { background: rgba(220, 38, 38, .1); color: #b91c1c; }
.hist-action.is-neutral { background: var(--c-surface-2); color: var(--c-muted); }
.hist-entity { color: var(--c-muted); font-size: .68rem; }
.hist-time { margin-left: auto; color: var(--c-muted); font-size: .68rem; white-space: nowrap; }
.hist-body p { margin: 4px 0 0; font-size: .8rem; line-height: 1.4; }
.hist-user { margin-top: 3px; color: var(--c-muted); font-size: .68rem; }
.hist-user i { margin-right: 3px; }
.hist-details { margin-top: 5px; }
.hist-details summary { cursor: pointer; color: var(--c-brand); font-size: .7rem; }
.hist-json { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 6px; }
.hist-json b { display: block; font-size: .66rem; color: var(--c-muted); text-transform: uppercase; letter-spacing: .04em; margin-bottom: 3px; }
.hist-json pre { margin: 0; background: var(--c-surface-2); border: 1px solid var(--c-border); border-radius: 7px; padding: 7px; font-size: .66rem; line-height: 1.35; overflow: auto; max-height: 180px; }
.hist-empty { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 7px; padding: 40px 20px; color: var(--c-muted); text-align: center; background: var(--c-surface); border: 1px dashed var(--c-border-strong); border-radius: 12px; }
.hist-empty i { font-size: 1.7rem; opacity: .45; }
.hist-empty h3 { margin: 0; font-size: .95rem; color: var(--c-text); }
.hist-empty p { margin: 0; font-size: .8rem; }
.hist-more { text-align: center; }
.hist-more button { border: 1px solid var(--c-border); background: var(--c-surface); color: var(--c-text-2); border-radius: 9px; padding: 7px 16px; font: inherit; font-size: .76rem; cursor: pointer; }
.hist-more button:hover { background: var(--c-surface-2); }
@media (max-width: 800px) { .hist-stats { grid-template-columns: 1fr 1fr; } .hist-json { grid-template-columns: 1fr; } }
