/* Console support : fiche client saisie dans la carte, chargée juste après money-card.css (commun). Avant le 20/11 : fin du money-card.css du support. */
/* carte client du chatting (14/11) : mêmes règles que ui/console-chatting/client-card.css */
.card-secret{display:flex;align-items:center;justify-content:flex-end;gap:4px}
.card-secret span{font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:11px}
.card-notes{margin:12px 0 0;padding-top:10px;border-top:1px solid var(--border);font-size:11px;line-height:1.5;color:var(--text-muted);white-space:pre-wrap;overflow-wrap:anywhere;display:-webkit-box;-webkit-line-clamp:4;-webkit-box-orient:vertical;overflow:hidden}
.card-form{display:flex;flex-direction:column;gap:9px}
.card-form label{display:flex;flex-direction:column;gap:3px;font-size:10.5px;font-weight:600;color:var(--text-muted);min-width:0}
.card-form input,.card-form textarea{width:100%;min-width:0;padding:6px 9px;border:1px solid var(--border);border-radius:8px;background:var(--bg-input);color:var(--text-main);font:inherit;font-size:12px;font-weight:400}
.card-form textarea{resize:vertical;min-height:52px;line-height:1.45}
.card-form input:focus-visible,.card-form textarea:focus-visible{outline:2px solid var(--accent);outline-offset:1px}
.card-pair{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.card-form .card-check{flex-direction:row;align-items:center;gap:7px;font-size:11.5px;color:var(--text-main);cursor:pointer}
.card-form .card-check input{width:auto;accent-color:var(--accent)}
.card-buttons{display:flex;justify-content:flex-end;gap:6px}
.card-status{margin:0;font-size:11px;color:var(--text-muted);min-height:0}
.card-status:empty{display:none}
.card-status.error{color:var(--red)}
.card-section{display:flex;flex-direction:column;gap:9px;margin:0;padding:0;border:0;min-width:0}
.card-section+.card-section,.card-section+label{padding-top:12px;border-top:1px solid var(--border);margin-top:4px}
.card-section legend{float:left;width:100%;margin:0 0 2px;padding:0;font-size:10.5px;font-weight:700;letter-spacing:.06em;text-transform:uppercase;color:var(--text-dim)}
.card-form label{font-size:11.5px}
.client-profile .card-chip{display:inline-block;margin-top:8px;padding:2px 8px;border-radius:999px;font-size:10.5px;font-weight:600;background:var(--bg-active);color:var(--text-muted)}
.client-profile .card-chip.warn{background:var(--yellow-soft);color:var(--yellow)}
.client-profile .card-chip.accent{background:var(--accent-soft);color:var(--accent)}
.client-profile .card-chip.ok{background:var(--green-soft);color:var(--green)}
.client-profile .card-chip.error{background:var(--red-soft);color:var(--red)}
.client-profile .card-ai-line{display:flex;justify-content:space-between;gap:8px;margin:0 0 10px;font-size:11px;color:var(--text-dim);font-variant-numeric:tabular-nums}
.card-form .card-missing{color:var(--red)}
.card-form .card-missing input{background:var(--red-soft);border-color:var(--red)}
.card-form .card-more{border-top:1px solid var(--border);padding-top:8px}
.card-form .card-more>summary{cursor:pointer;list-style:none;font-size:11.5px;font-weight:600;color:var(--text-muted)}
.card-form .card-more>summary::-webkit-details-marker{display:none}
.card-form .card-more>summary::before{content:'▸ '}
.card-form .card-more[open]>summary::before{content:'▾ '}
.card-form .card-more[open]{display:flex;flex-direction:column;gap:9px}
.card-form .card-verify{flex:1}
.card-form .card-verify[hidden]{display:none}
.client-profile .card-problem{display:flex;flex-direction:column;gap:8px}
.client-profile .card-problem-box,.client-profile .card-problem-field{display:flex;flex-direction:column;gap:4px;padding:8px 10px;border:1px solid var(--red);border-radius:8px;background:var(--red-soft);font-size:11.5px;color:var(--red)}
.client-profile .card-problem-box>span,.client-profile .card-problem-field{display:flex;flex-direction:row;justify-content:space-between;gap:8px}
.client-profile .card-problem-box b,.client-profile .card-problem-field b{font-weight:600;color:var(--text-main);font-variant-numeric:tabular-nums}
.client-profile .card-problem-text{margin:0;font-size:11px;line-height:1.45;color:var(--text-muted)}
.client-profile .card-problem .card-act{width:100%;white-space:nowrap}
.client-profile .card-problem .card-link{align-self:center}
.card-todo-wrap{padding:0 10px 6px}
.card-todo-wrap:has(.card-todo[hidden]){display:none}
.card-todo{display:flex;align-items:center;justify-content:space-between;gap:8px;width:100%;padding:7px 10px;border:1px solid var(--border);border-radius:10px;background:var(--bg-active);color:var(--text-main);font:inherit;font-size:12px;font-weight:600;cursor:pointer}
.card-todo[hidden]{display:none}
.card-todo b{min-width:20px;padding:1px 6px;border-radius:999px;background:var(--red);color:#fff;font-size:11px;text-align:center}
.card-todo-list{display:flex;flex-direction:column;gap:2px;margin-top:6px;max-height:260px;overflow-y:auto}
.card-todo-list[hidden]{display:none}
.card-todo-item{display:flex;flex-direction:column;align-items:flex-start;gap:2px;padding:7px 10px;border:0;border-radius:8px;background:none;color:var(--text-main);font:inherit;font-size:12px;text-align:left;cursor:pointer}
.card-todo-item:hover{background:var(--bg-card-hover)}
.card-todo-item span{font-size:11px;color:var(--text-muted)}
.client-file-slot:empty{display:none}.client-file-slot{margin:0 12px 12px}.client-profile:has(.client-file-slot .card-form) .money-add{display:none}
.mt5-block{margin:0 0 12px;padding-bottom:10px;border-bottom:1px solid var(--border)}
.mt5-head{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:8px;font-size:11px;font-weight:600;color:var(--text-muted)}
.mt5-list{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:8px}
.mt5-row{padding:8px 9px;border:1px solid var(--border);border-radius:9px;background:var(--bg-input);display:flex;flex-direction:column;gap:5px}
.mt5-row-head{display:flex;align-items:center;justify-content:space-between;gap:8px;flex-wrap:nowrap}
.mt5-row-head b{font-size:12.5px;font-variant-numeric:tabular-nums}
.mt5-row-meta{font-size:10.5px;color:var(--text-muted)}
.mt5-row-sub{display:flex;align-items:center;gap:6px;flex-wrap:wrap}
.mt5-row-pass{display:flex;align-items:center;justify-content:space-between;gap:8px;font-size:11px;color:var(--text-muted)}
.mt5-empty{margin:0!important}
.mt5-badge{padding:2px 7px;border-radius:999px;font-size:10px;font-weight:600;background:var(--bg-active);color:var(--text-muted);white-space:nowrap}
.mt5-badge.ok{background:var(--green-soft);color:var(--green)}
.mt5-badge.accent{background:var(--accent-soft);color:var(--accent)}
.mt5-badge.warn{background:var(--yellow-soft);color:var(--yellow)}
.mt5-badge.error{background:var(--red-soft);color:var(--red)}
.mt5-sth-box{margin:0 0 10px;padding:8px 10px;border:1px solid var(--border);border-radius:9px;background:var(--bg-input);display:flex;flex-direction:column;gap:5px}
.mt5-sth-pills{display:flex;align-items:center;gap:5px;flex-wrap:wrap}
.mt5-sth-meta{font-size:11px;font-weight:500;color:var(--text-main);font-variant-numeric:tabular-nums;overflow-wrap:anywhere}
.card-field-head{display:flex;align-items:center;justify-content:space-between;gap:6px;min-height:18px}
.card-ignore{color:var(--text-muted)!important}
.card-ignore:hover{color:var(--red)!important}
.card-unlink{color:var(--red)!important}
.card-mt5-add{margin-top:10px;padding-top:10px;border-top:1px solid var(--border)}
.card-pending-mt5{border-color:var(--accent)!important;background:var(--bg-card);display:flex;flex-direction:column;gap:8px}
.card-unlinked{margin-top:10px;padding-top:8px;border-top:1px solid var(--border);font-size:11px;color:var(--text-muted)}
.card-unlinked>summary{cursor:pointer;font-weight:600}
.card-unlinked ul{list-style:none;margin:6px 0 0;padding:0;display:flex;flex-direction:column;gap:4px}
.card-unlinked li{display:flex;justify-content:space-between;gap:8px;font-size:10.5px}
.card-unlinked li b{font-variant-numeric:tabular-nums;color:var(--text-main)}
.mt5-sth-actions{display:flex;align-items:center;gap:6px;margin-top:4px;padding-top:7px;border-top:1px solid var(--border)}
.mt5-menu{position:relative;flex:1;min-width:0}
.mt5-menu>summary{list-style:none;display:flex;align-items:center;justify-content:space-between;gap:6px;padding:5px 9px;border:1px solid var(--border);border-radius:8px;background:var(--bg-card);color:var(--text-main);font-size:11.5px;font-weight:500;cursor:pointer;user-select:none;transition:border-color .15s,background .15s}
.mt5-menu>summary::-webkit-details-marker{display:none}
.mt5-menu>summary:hover,.mt5-menu[open]>summary{border-color:var(--accent);background:var(--bg-card-hover)}
.mt5-menu>summary:focus-visible{outline:1.5px solid var(--accent);outline-offset:1px}
.mt5-menu>summary::after{content:'';width:6px;height:6px;flex-shrink:0;border-right:1.5px solid var(--text-muted);border-bottom:1.5px solid var(--text-muted);transform:translateY(-1px) rotate(45deg);transition:transform .15s}
.mt5-menu[open]>summary::after{transform:translateY(2px) rotate(-135deg)}
.mt5-menu>summary>span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.mt5-menu-pop{position:absolute;left:0;right:0;top:calc(100% + 4px);z-index:30;min-width:140px;padding:4px;border:1px solid var(--border);border-radius:10px;background:var(--bg-card);box-shadow:var(--shadow-pop,0 8px 24px rgba(0,0,0,.14));display:flex;flex-direction:column;gap:2px}
.mt5-menu-item{display:flex;align-items:center;justify-content:space-between;width:100%;padding:6px 9px;border:0;border-radius:7px;background:none;color:var(--text-main);font:inherit;font-size:11.5px;text-align:left;cursor:pointer}
.mt5-menu-item:hover{background:var(--bg-card-hover)}
.mt5-menu-item.is-selected{background:var(--accent-soft);color:var(--accent);font-weight:600}
.mt5-menu-item.is-selected::after{content:'✓';font-size:11px}
.mt5-sth-btn{padding:5px 11px;font-size:11.5px;white-space:nowrap}
.mt5-sth-status{margin-top:2px}
.mt5-sth-status.ok{color:var(--green)}
