/* Palette du module Dossiers de GEPRO. */
.bt-memory-toolbar{display:flex;gap:12px;align-items:center;justify-content:space-between;flex-wrap:wrap;margin-bottom:16px}
.bt-memory-toolbar p{margin:0;max-width:700px;color:var(--text-medium);font-size:13px;line-height:1.5}
.bt-history{border:1px solid var(--ui-border,var(--border));border-radius:10px;background:var(--ui-surface,var(--bg-white,#fff));margin-bottom:20px}
.bt-history summary{padding:14px 16px;cursor:pointer;font-weight:600;color:var(--ui-text,var(--text-dark))}
.bt-history-count{display:inline-block;padding:2px 8px;margin-left:6px;border-radius:20px;background:var(--ui-soft,var(--primary-light));color:var(--ui-blue,var(--primary));font-size:12px}
.bt-history-body{padding:0 16px 16px}
.bt-history-search{display:block;margin:2px 0 14px}
.bt-history-search span{display:block;color:var(--text-medium);font-size:12px;margin-bottom:6px}
.bt-history-search input{width:100%;box-sizing:border-box;min-height:42px;border:1px solid var(--ui-border,var(--border));border-radius:7px;padding:10px 12px;color:var(--ui-text,var(--text-dark));background:var(--ui-surface,var(--bg-white,#fff));font:inherit}
.bt-history-list{display:flex;flex-direction:column;gap:9px;max-height:420px;overflow:auto}
.bt-history-card{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:14px;border:1px solid var(--ui-border,var(--border));border-radius:8px;background:var(--ui-soft,var(--primary-light))}
.bt-history-card.is-current{border-left:3px solid var(--primary)}
.bt-history-content{min-width:0;overflow-wrap:anywhere;color:var(--ui-text,var(--text-dark))}
.bt-history-content strong{font-size:13px;line-height:1.5}
.bt-history-content p{font-size:12px;margin:5px 0;color:var(--text-medium)}
.bt-history-content small{font-size:11px;color:var(--text-medium)}
.bt-history-actions{display:flex;flex-shrink:0;gap:6px;flex-wrap:wrap}
.bt-history-actions button{min-height:38px}
.bt-history-empty{margin:8px 0;color:var(--text-medium);font-size:13px;line-height:1.5}
.bt-history-more{margin-top:12px}
.bt-save-state{font-size:13px;line-height:1.5;color:var(--text-medium);padding:10px 12px;margin-bottom:14px;background:var(--ui-soft,var(--primary-light));border-radius:7px;overflow-wrap:anywhere}
.bt-save-state.success{border-left:3px solid var(--primary);color:var(--ui-text,var(--text-dark))}
.bt-save-state.warning{border-left:3px solid #c38a19;color:var(--ui-text,var(--text-dark))}
.bt-memory-actions{display:flex;gap:10px;flex-wrap:wrap;align-items:center}
.bt-memory-actions button{min-height:42px}
.bt-memory-note{font-size:12px;line-height:1.5;color:var(--text-medium);margin:10px 0 0}
body.dark-mode .bt-history,body.dark-mode .bt-history-search input{background:var(--ui-surface,#202b35);color:var(--ui-text,#e8f0f6)}
body.dark-mode .bt-history-card,body.dark-mode .bt-save-state{background:var(--ui-soft,#263542);color:var(--ui-text,#e8f0f6)}
@media(max-width:700px){.bt-history-card{flex-direction:column;align-items:stretch}.bt-history-actions button{flex:1;min-height:44px}.bt-memory-toolbar{align-items:stretch}.bt-memory-toolbar button{width:100%;min-height:44px}.bt-memory-actions{flex-direction:column;align-items:stretch}.bt-memory-actions button{width:100%;min-height:44px}}
