/* Memoria generatoarelor (src/client/document-memory.js) — butonul „… recente” din bara de sus și lista lui. */
.dm-wrap { position: relative; display: inline-block; }
.dm-wrap[hidden] { display: none; }
.dm-panel { position: absolute; right: 0; top: calc(100% + 8px); z-index: 60; width: min(380px, 92vw); padding: 10px; border: 1px solid #2b4560; border-radius: 12px;
  background: #0f1f33; box-shadow: 0 18px 40px rgba(0,0,0,.45); text-align: left; }
.dm-panel[hidden] { display: none; }
.dm-head { display: grid; gap: 2px; padding: 4px 6px 10px; border-bottom: 1px solid #22384f; margin-bottom: 6px; }
.dm-head strong { color: #eaf2fb; font-size: 14px; }
.dm-head span { color: #8ea6bf; font-size: 11px; }
.dm-list { display: grid; gap: 4px; max-height: 60vh; overflow: auto; }
.toolbar .dm-panel .dm-item, .dm-item { display: grid; grid-template-columns: auto 1fr; gap: 2px 10px; width: 100%; min-height: 0; margin: 0; padding: 9px 10px; border: 1px solid transparent; border-radius: 9px;
  background: transparent; color: #dbe7f4; text-align: left; cursor: pointer; font: inherit; box-shadow: none; }
.dm-item:hover, .dm-item:focus-visible { background: #16304b; border-color: #2f5a82; outline: none; }
.dm-code { grid-row: span 2; align-self: center; padding: 4px 8px; border-radius: 7px; background: #1b3a5a; color: #a8d6ff; font-size: 12px; font-weight: 700; font-variant-numeric: tabular-nums; }
.dm-title { overflow: hidden; color: #eaf2fb; font-size: 13px; font-weight: 600; white-space: nowrap; text-overflow: ellipsis; }
.dm-title em { margin-left: 4px; color: #ffcf8a; font-size: 11px; font-style: normal; font-weight: 500; }
.dm-meta { color: #8ea6bf; font-size: 11px; }
.dm-empty { margin: 8px 6px; color: #9fb4cc; font-size: 13px; }
@media print { .dm-wrap { display: none !important; } }
