/* Своя вёрстка по замерам ms_audit_customerorder: панель 782 px, отступы 32 px. */
.ms-audit-layer { position: fixed; inset: 0; z-index: 500; pointer-events: none; }
.ms-audit-shade { position: absolute; inset: 0; background: rgba(1, 4, 11, .36); }
.ms-audit-host { position: absolute; top: 0; right: 0; bottom: 0; width: 782px; max-width: calc(100vw - 32px); pointer-events: auto; }
.ms-audit-panel { position: relative; width: 100%; height: 100%; background: #fff; border-radius: 2px; box-shadow: 0 2px 7px rgba(9, 23, 57, .2); color: #091739; outline: none; }
.ms-audit-panel, .ms-audit-panel * { box-sizing: border-box; }
.ms-audit-panel { font: 400 14px/20px 'Svod Onest', Arial, sans-serif; }
.ms-audit-panel button { font-family: inherit; }
.ms-audit-scroll { height: 100%; overflow: auto; overscroll-behavior: contain; }
.ms-audit-head { position: relative; z-index: 2; padding: 42px 32px 24px; background: #fff; }
.ms-audit-head h2 { font: 700 24px/28px 'Svod Onest', Arial, sans-serif; color: #091739; padding: 0 0 8px; margin: 0; }
.ms-audit-content { padding: 0 32px 24px; }
.ms-audit-author { display: flex; align-items: center; gap: 8px; min-height: 24px; margin: 0 0 3px; }
.ms-audit-author strong { font-weight: 700; }
.ms-audit-description { color: #5f6d79; }
.ms-audit-avatar { position: relative; display: block; flex: 0 0 24px; width: 24px; height: 24px; border-radius: 50%; background: #d9d9d9; overflow: hidden; }
.ms-audit-avatar-api { background: #b6bfce; }
.ms-audit-avatar-api::before { content: ''; position: absolute; width: 9px; height: 11px; top: 4px; left: 8px; border-radius: 50%; background: #e9ecf0; }
.ms-audit-avatar-api::after { content: ''; position: absolute; width: 17px; height: 13px; left: 4px; top: 14px; border-radius: 50% 50% 0 0; background: #e9ecf0; }
.ms-audit-table { table-layout: fixed; border-collapse: collapse; width: calc(100% - 47px); margin: 0 0 16px 32px; font: 400 12px/16px Arial, sans-serif; color: #091739; }
.ms-audit-field-col { width: 148px; }
.ms-audit-table th, .ms-audit-table td { padding: 4px 8px 4px 0; border: 0; border-bottom: 1px solid #d1d6df; text-align: left; vertical-align: baseline; overflow-wrap: anywhere; }
.ms-audit-table th { font-weight: 400; }
.ms-audit-table th > span { font: 400 12px/16px 'Svod Onest', Arial, sans-serif; color: #5f6d79; }
.ms-audit-table td > span, .ms-audit-table td > strong { font: 400 14px/20px 'Svod Onest', Arial, sans-serif; }
.ms-audit-table td > strong { font-weight: 700; }
.ms-audit-table .ms-audit-group { padding: 4px 0; }
.ms-audit-panel a { color: #0070fb; text-decoration: none; }
.ms-audit-panel a:hover { text-decoration: underline; }
.ms-audit-changed { color: #db5202; }
.ms-audit-close { position: absolute; top: 8px; left: -16px; z-index: 10; display: flex; align-items: center; justify-content: center; width: 32px; height: 32px; margin: 0; padding: 0; border: 0; border-radius: 20px; background: #fff; color: #8793a4; cursor: pointer; }
.ms-audit-close:hover { background: #f2f4f7; color: #091739; }
.ms-audit-close:focus-visible, .ms-audit-panel a:focus-visible { outline: 2px solid #0070fb; outline-offset: 2px; }
.ms-audit-footer { margin-top: 6px; }
.ms-audit-count { display: flex; align-items: center; gap: 16px; height: 24px; }
.ms-audit-count > span[aria-hidden] { color: #a8aeb5; font-size: 20px; line-height: 20px; }
.ms-audit-more { margin-top: 8px; }
.ms-audit-stamp { font: 400 12px/16px 'Svod Onest', Arial, sans-serif; color: #5f6d79; margin: 12px 0 0 32px; }
.ms-audit-stale { color: #a44c00; }
.ms-audit-head .ms-audit-stamp { margin: 0; }
.ms-audit-message { margin: 0 0 16px; white-space: pre-wrap; }
.ms-audit-loading { margin: 0; padding: 24px 32px; }
@media (max-width: 600px) {
  .ms-audit-head { padding: 42px 16px 24px; }
  .ms-audit-content { padding-left: 16px; padding-right: 16px; }
  .ms-audit-table { margin-left: 0; width: 100%; }
  .ms-audit-field-col { width: 30%; }
  .ms-audit-stamp { margin-left: 0; }
}
@media print { .ms-audit-layer { display: none !important; } }
/* «Моя компания → Аудит» (27.09.2026): журнал действий МойСклада по копии; строка открывает ту же панель истории. */
.ms-alog .ms-alog-filter-grid { grid-template-columns: repeat(5, 264px); }
.ms-alog-filter[hidden] { display: none; }
.ms-alog-wrap { margin-top: 20px; overflow-x: auto; }
.ms-alog-table { width: 1060px; border-collapse: collapse; table-layout: fixed; font: 12px/normal Arial, sans-serif; color: #222; }
.ms-alog-table th { height: 30px; padding: 0 10px; border-bottom: 2px solid #186999; font-weight: 400; color: #555; text-align: left; white-space: nowrap; }
.ms-alog-table td { height: 35px; padding: 0 10px; border-bottom: 1px solid #ddd; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ms-alog-table tbody tr:hover td { background: #fffde0; }
.ms-alog-open { color: #222; text-decoration: none; }
.ms-alog-open:hover { text-decoration: underline; }
.ms-alog-event a:not(.ms-alog-open) { color: #186999; text-decoration: underline; }
.ms-alog-who { display: inline-flex; align-items: center; gap: 8px; max-width: 100%; }
.ms-alog-who a { color: #222; text-decoration: none; }
.ms-alog-avatar { flex: none; width: 26px; height: 26px; border-radius: 50%; background: #d9e3ea; color: #4a6272; font-size: 10px; line-height: 26px; text-align: center; }
.ms-alog-avatar-api { background: #e9e1f5; color: #5b4b7a; }
.ms-alog-pending { color: #999; }
.ms-alog-empty { height: 60px; text-align: center; color: #777; }
.ms-alog-footer { display: flex; flex-wrap: wrap; gap: 8px 24px; align-items: center; margin: 10px 0 30px; font-size: 12px; color: #555; }
.ms-alog-pager { display: inline-flex; gap: 6px; align-items: center; }
.ms-alog-stamp { color: #888; font-size: 11px; }
.ms-alog-error { color: #c62828; }
.ms-audit-object { margin: 4px 0 8px 34px; color: #222; line-height: 17px; }
@media (max-width: 899px) {
  .ms-alog-table { width: 100%; min-width: 560px; }
  .ms-alog .ms-alog-filter-grid { grid-template-columns: repeat(2, 264px); }
}
