/* MontageMemo immutable PDF report workflow */
.doc-top-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 9px; }
.doc-btn.finalize { color: #fff; border-color: #10233a; background: #10233a; box-shadow: 0 8px 20px rgba(16,35,58,.18); }
.doc-btn.finalize:hover:not(:disabled) { background: #183b56; }
.doc-btn:disabled { cursor: not-allowed; }

.report-history { overflow: hidden; border: 1px solid #dce6ea; border-radius: 16px; background: #fff; box-shadow: 0 5px 18px rgba(16,35,58,.04); }
.report-history-head { padding: 14px 15px; display: flex; align-items: center; justify-content: space-between; gap: 10px; border-bottom: 1px solid #e7edef; background: #f8fafb; }
.report-history-head span { margin: 0 !important; color: #5f7487 !important; }
.report-history-head strong { min-width: 25px; height: 25px; display: grid !important; place-items: center; border-radius: 999px; color: #0b6d69; background: #e7f6f4; font-size: 11px; }
.report-history > p { margin: 0; padding: 16px; color: #718394; font-size: 11px; line-height: 1.5; }
.report-history-list { display: grid; }
.report-history-list article { padding: 13px 14px; display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: center; gap: 10px; border-bottom: 1px solid #edf1f3; }
.report-history-list article:last-child { border-bottom: 0; }
.report-history-list article strong,.report-history-list article span,.report-history-list article code { display: block; }
.report-history-list article strong { overflow: hidden; color: #173248; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.report-history-list article span { margin: 4px 0 0 !important; color: #7b8d9d !important; font-size: 9px !important; font-weight: 500 !important; letter-spacing: 0 !important; text-transform: none !important; }
.report-history-list article code { margin-top: 5px; overflow: hidden; color: #8b99a6; font-size: 8px; text-overflow: ellipsis; }
.report-history-list article a { min-width: 42px; min-height: 36px; display: grid; place-items: center; border: 1px solid #cfe1df; border-radius: 10px; color: #0b6d69; background: #eff9f8; font-size: 10px; font-weight: 850; text-decoration: none; }
.report-history-list article a:hover { background: #e2f4f2; }

@media (max-width: 1120px) {
  .doc-top { align-items: start; }
  .doc-top-actions { max-width: 430px; }
  .doc-top-actions .doc-btn { min-height: 38px; padding-inline: 12px; font-size: 11px; }
}

@media (max-width: 680px) {
  .doc-top-actions { width: 100%; max-width: none; display: grid !important; grid-template-columns: repeat(2,minmax(0,1fr)); }
  .doc-top-actions .doc-btn { width: 100%; }
  .report-history-list article { padding: 12px; }
}
