/* Mémo : arbre de dossiers et d'aide-mémoire PDF (fenêtre du site et onglet « Mémo » de Gestion). */
.memo-tools { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 12px; }
.memo-tools input { flex: 1 1 240px; min-width: 0; padding: 8px 10px; border: 1px solid #d9dee7; border-radius: 8px; font: inherit; }
.memo-btn { padding: 7px 12px; border: 1px solid #d9dee7; border-radius: 8px; background: #fff; color: inherit; cursor: pointer; font: inherit; font-size: .9rem; }
.memo-list { list-style: none; margin: 0; padding: 0 0 0 22px; }
.memo-tree > .memo-list { padding-left: 0; }
.memo-list li { margin: 2px 0; }
.memo-folder > summary, .memo-file { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; padding: 5px 6px; border-radius: 6px; }
.memo-folder > summary { cursor: pointer; font-weight: 600; list-style: none; }
.memo-folder > summary::-webkit-details-marker { display: none; }
.memo-folder > summary::before { content: '▸'; display: inline-block; width: 1em; transition: transform .15s; }
.memo-folder[open] > summary::before { transform: rotate(90deg); }
.memo-folder > summary:hover, .memo-file:hover { background: rgba(127, 127, 127, .12); }
.memo-file a { word-break: break-word; }
.memo-meta { opacity: .65; font-weight: 400; }
.memo-actions { margin-left: auto; display: inline-flex; gap: 4px; }
.memo-empty { opacity: .7; }

/* Lecteur PDF en fenêtre */
.memo-viewer { position: fixed; inset: 0; z-index: 3000; background: rgba(20, 20, 30, .7); display: flex; align-items: center; justify-content: center; padding: 2vh 2vw; }
.memo-viewer-box { background: #fff; color: #1c2330; border-radius: 10px; width: min(1100px, 100%); height: 96vh; display: flex; flex-direction: column; overflow: hidden; box-shadow: 0 20px 60px rgba(0, 0, 0, .5); }
.memo-viewer-head { display: flex; align-items: center; gap: 14px; padding: 8px 14px; border-bottom: 1px solid #d9dee7; font-size: .95rem; }
.memo-viewer-head strong { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.memo-viewer-head a { color: #2563eb; white-space: nowrap; }
.memo-viewer-x { width: 34px; height: 34px; border: 0; border-radius: 50%; background: #eef0f3; color: #1c2330; font-size: 1.5rem; line-height: 1; cursor: pointer; }
.memo-viewer-frame { flex: 1; width: 100%; border: 0; background: #e5e7eb; }
body.memo-viewer-open { overflow: hidden; }
.memo-viewer-img { flex: 1; min-height: 0; display: flex; align-items: center; justify-content: center; overflow: auto; background: #e5e7eb; padding: 10px; }
.memo-viewer-img img { max-width: 100%; max-height: 100%; object-fit: contain; }
