/* ELFinance — base de données des libellés et catégories */
.bd-layout{display:grid;gap:18px}.bd-intro{display:flex;align-items:center;gap:18px;flex-wrap:wrap}.bd-intro p{font-size:12px;line-height:1.7;color:var(--muted);margin:0;flex:1;min-width:230px}
.bd-columns{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:18px;align-items:start}
.bd-form{display:grid;gap:13px;padding-bottom:17px;border-bottom:1px solid var(--border)}
.bd-form-actions{display:flex;flex-wrap:wrap;gap:9px;align-items:center}.bd-form-actions .btn{white-space:normal}
.bd-category-list{display:grid;gap:3px;margin-top:13px;max-height:440px;overflow:auto;padding-right:3px}
.bd-category-item{display:flex;align-items:center;justify-content:space-between;gap:9px;border-bottom:1px solid #f8eef2;padding:10px 0}.bd-category-item:last-child{border:0}.bd-category-item strong{font-size:12px;display:block;overflow-wrap:anywhere}.bd-category-item small{font-size:10px;color:var(--muted);margin-top:4px;display:block}.bd-inline-actions{display:flex;gap:6px;align-items:center;justify-content:flex-end;flex-wrap:wrap}.bd-inline-actions .btn-quiet{padding:7px 10px;font-size:11px}
.bd-try{margin-top:17px;border-radius:13px;border:1px solid #f6e3eb;background:#fff9fb;padding:14px;display:grid;gap:8px}.bd-try label{font-size:12px;font-weight:800}.bd-try input,.bd-search input{width:100%;border:1px solid #eadbe1;background:white;padding:11px 12px;border-radius:10px;font-size:12px}.bd-try p{margin:0;font-size:11.5px;color:#9e617a;line-height:1.5}
.bd-search{display:flex;align-items:center;gap:13px;margin-bottom:12px}.bd-search input{max-width:430px}.bd-search span{white-space:nowrap;font-size:11px;color:var(--muted)}
.bd-table-wrap{overflow:auto;max-height:370px}.bd-table{border-collapse:collapse;width:100%;min-width:520px}.bd-table th{font-size:10px;color:#a68c98;letter-spacing:.06em;text-transform:uppercase;text-align:left;border-bottom:1px solid var(--border);padding:12px 10px}.bd-table td{font-size:12px;border-bottom:1px solid #f7eff2;padding:11px 10px}.bd-table tr:last-child td{border:0}.bd-table td:first-child{overflow-wrap:anywhere}.bd-category-pill{display:inline-flex;background:#fff0f4;border-radius:8px;padding:7px 10px;font-size:11px;font-weight:700;color:#a55072}.bd-empty{padding:18px 10px;font-size:12px;color:var(--muted);text-align:center}.bd-data-entry{display:flex;align-items:center;justify-content:space-between;gap:12px}.bd-data-entry .text{flex:1}.bd-data-entry .text strong{font-size:13px;display:block;margin-bottom:6px}.bd-data-entry .text small{font-size:11px;color:var(--muted);line-height:1.4;display:block}
@media(max-width:920px){.bd-columns{grid-template-columns:1fr}}
@media(max-width:650px){.bd-intro{display:grid;gap:12px}.bd-intro p{min-width:0}.bd-category-item{align-items:flex-start}.bd-category-item strong{max-width:160px}.bd-inline-actions .btn-quiet{padding:7px 8px}.bd-search{flex-wrap:wrap}.bd-search input{max-width:none}.bd-table{min-width:480px}.bd-layout{gap:14px}}

.subcat-manager .section-head{margin-bottom:14px}.subcat-form{display:grid;grid-template-columns:minmax(160px,1fr) minmax(200px,1.5fr);gap:13px;align-items:end;padding:12px 0}.subcat-buttons{grid-column:1/-1;display:flex;gap:9px;flex-wrap:wrap}.subcat-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin:15px 0 18px}.subcat-item{background:#fffbfd;border:1px solid #f0dfe7;border-radius:12px;padding:10px 12px;display:flex;align-items:center;justify-content:space-between;gap:10px}.subcat-item>span{font-size:12px;font-weight:750;color:#704a60;word-break:break-word}.subcat-item .bd-inline-actions{flex-wrap:nowrap}.subcat-manager .form-help{line-height:1.6}.stats-subcategory-lines{border-left:2px solid #e9bfce;padding:4px 0 0 12px;margin:8px 0 0 3px;display:grid;gap:6px}.stats-subcategory-lines>div{display:flex;justify-content:space-between;gap:12px;font-size:11px;color:#987487}.stats-subcategory-lines>div strong{color:#8d526b;white-space:nowrap}
@media(max-width:780px){.subcat-list{grid-template-columns:1fr}.subcat-form{grid-template-columns:1fr}.subcat-buttons{grid-column:auto}}
@media(max-width:430px){.subcat-item{align-items:flex-start;flex-wrap:wrap}.subcat-item .bd-inline-actions{width:100%;justify-content:flex-start}}
/* BD ELFinance : categorie en dossier, sous-categories integrees au dossier */
.bd-category-list{max-height:none;overflow:visible;padding:0;margin-top:15px;gap:8px}
.bd-category-folder{border:1px solid #f0e0e7;border-radius:13px;background:#fff;overflow:hidden}
.bd-category-folder.is-expanded{background:#fffbfc;border-color:#e6b6c8;box-shadow:0 5px 17px #b6607e0a}
.bd-folder-trigger{display:flex;align-items:center;gap:11px;border:0;background:transparent;color:#654655;width:100%;padding:13px 12px;text-align:left;cursor:pointer}
.bd-folder-trigger:hover,.bd-category-folder.is-expanded>.bd-folder-trigger{background:#fff3f7}
.bd-folder-symbol{width:34px;height:34px;border-radius:10px;color:#b94f77;background:#fbe7ee;display:flex;align-items:center;justify-content:center;flex-shrink:0}
.bd-folder-symbol .ico{width:19px;height:19px}
.bd-folder-name{flex:1;min-width:0;display:grid;gap:4px}
.bd-folder-name strong{font-size:12.5px;line-height:1.4;color:#674251;overflow-wrap:anywhere}
.bd-folder-name small{font-size:10.5px;color:#a58e9b;line-height:1.45}
.bd-folder-chevron{color:#b98b9d;display:flex;align-items:center}
.bd-folder-inner{padding:11px 12px 15px;border-top:1px solid #f3dfe7}
.bd-folder-actions{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:8px;margin-bottom:12px}
.bd-folder-actions>span{font-size:11px;color:#8a6277}
.bd-folder-children{display:grid;gap:4px;margin-bottom:12px}
.bd-folder-child{padding:9px 8px 9px 17px;border-left:2px solid #e8a9be;border-bottom:1px solid #f7ebef;display:flex;align-items:center;justify-content:space-between;gap:9px}
.bd-child-title{font-weight:650;font-size:11.5px;color:#6a5361;line-height:1.4;overflow-wrap:anywhere;min-width:0}
.bd-child-title span{color:#d37a9a;padding-right:6px}
.bd-folder-child .bd-inline-actions{flex-shrink:0;gap:4px}
.bd-folder-child .btn-quiet,.bd-folder-actions .btn-quiet{font-size:10px;padding:7px 8px}
.bd-folder-empty{font-size:11px;color:#998590;margin:10px 0 13px}
.bd-folder-form{display:grid;gap:10px;background:#fff7fa;border:1px solid #f2dfe7;border-radius:12px;padding:12px}
.bd-folder-form .bd-form-actions{padding:0}
.bd-folder-form .btn{font-size:11px;white-space:normal;padding:10px 12px}
@media(max-width:650px){.bd-folder-child{flex-wrap:wrap}.bd-folder-child .bd-inline-actions{width:100%;justify-content:flex-start}.bd-folder-actions .bd-inline-actions{width:100%;justify-content:flex-start}.bd-folder-inner{padding:10px}.bd-folder-form{padding:10px}}
