/* ==========================================================================
   kdo-modale-info — Modale d'information / action neutre (bleue)
   Convention MODALES_DESIGN.md, classes préfixées `kdo-minfo-*`.
   À utiliser dans le contenu retourné par une page kdoSrv mode:'modal'.
   ========================================================================== */

.kdo-minfo-modal {
    width: 640px;
    max-width: 96vw;
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 25px 60px rgba(15, 23, 42, 0.3);
    font-family: inherit;
}

/* ── Header gradient bleu ───────────────────────────────── */
.kdo-minfo-header {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px 24px;
    background: linear-gradient(135deg, #1e3a8a 0%, #2563eb 60%, #3b82f6 100%);
    color: #fff;
}

.kdo-minfo-header-left {
    display: flex;
    align-items: center;
    gap: 14px;
    flex: 1;
    min-width: 0;
}

.kdo-minfo-header-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.18);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    flex-shrink: 0;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.15);
}

.kdo-minfo-header-title {
    font-size: 17px;
    font-weight: 700;
    letter-spacing: 0.2px;
}

.kdo-minfo-header-sub {
    font-size: 12px;
    opacity: 0.9;
    margin-top: 2px;
    font-weight: 400;
}

.kdo-minfo-header-close {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.18);
    border: none;
    color: #fff;
    cursor: pointer;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s ease;
}
.kdo-minfo-header-close:hover { background: rgba(255, 255, 255, 0.3); }

/* ── Body ───────────────────────────────────────────────── */
.kdo-minfo-body {
    padding: 18px 24px;
    background: #fafbfc;
    max-height: calc(80vh - 130px);
    overflow-y: auto;
}

/* Bandeau récap (carte d'info en haut) */
.kdo-minfo-recap {
    background: #fff;
    border: 1px solid #e3e8ef;
    border-radius: 12px;
    padding: 12px 14px;
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 12px;
}
.kdo-minfo-recap-icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: #eff6ff;
    color: #2563eb;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    flex-shrink: 0;
}
.kdo-minfo-recap-content { flex: 1; min-width: 0; }
.kdo-minfo-recap-title {
    font-size: 13px;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 2px;
    word-break: break-word;
}
.kdo-minfo-recap-sub {
    font-size: 11.5px;
    color: #64748b;
    word-break: break-word;
}
.kdo-minfo-recap-badges {
    display: inline-flex;
    gap: 6px;
    flex-shrink: 0;
}
.kdo-minfo-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3px 10px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    background: #eff6ff;
    color: #1e40af;
    border: 1px solid #bfdbfe;
}

/* Champ de recherche */
.kdo-minfo-search {
    position: relative;
    margin-bottom: 12px;
}
.kdo-minfo-search input {
    width: 100%;
    padding: 11px 14px 11px 40px;
    border: 1px solid #d0d5dd;
    border-radius: 10px;
    font-size: 14px;
    font-family: inherit;
    transition: border-color 0.15s, box-shadow 0.15s;
}
.kdo-minfo-search input:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}
.kdo-minfo-search-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    font-size: 14px;
}

/* Liste de résultats */
.kdo-minfo-results {
    display: flex;
    flex-direction: column;
    gap: 6px;
    max-height: 320px;
    overflow-y: auto;
    padding: 2px;
}
.kdo-minfo-result-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    background: #fff;
    border: 1px solid #e3e8ef;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.15s;
}
.kdo-minfo-result-item:hover {
    border-color: #2563eb;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.12);
    transform: translateX(2px);
}
.kdo-minfo-result-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, #2563eb, #3b82f6);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 700;
    flex-shrink: 0;
}
.kdo-minfo-result-content { flex: 1; min-width: 0; }
.kdo-minfo-result-name {
    font-size: 13.5px;
    font-weight: 600;
    color: #0f172a;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.kdo-minfo-result-meta {
    font-size: 11.5px;
    color: #64748b;
    margin-top: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.kdo-minfo-result-arrow {
    color: #94a3b8;
    font-size: 13px;
    flex-shrink: 0;
}
.kdo-minfo-result-item:hover .kdo-minfo-result-arrow { color: #2563eb; }

/* État vide / chargement */
.kdo-minfo-empty {
    text-align: center;
    padding: 24px 12px;
    color: #94a3b8;
    font-size: 13px;
}
.kdo-minfo-empty i {
    font-size: 24px;
    display: block;
    margin-bottom: 8px;
    color: #cbd5e1;
}

/* ── Footer ─────────────────────────────────────────────── */
.kdo-minfo-footer {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    padding: 14px 24px;
    background: #fff;
    border-top: 1px solid #e3e8ef;
}

.kdo-minfo-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 10px 20px;
    border-radius: 9px;
    font-size: 13.5px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s ease;
    border: none;
    font-family: inherit;
}
.kdo-minfo-btn--secondary {
    background: #f1f5f9;
    color: #334155;
    border: 1px solid #cbd5e1;
}
.kdo-minfo-btn--secondary:hover { background: #e2e8f0; }

.kdo-minfo-btn--primary {
    background: linear-gradient(135deg, #1d4ed8, #2563eb);
    color: #fff;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.35);
}
.kdo-minfo-btn--primary:hover {
    background: linear-gradient(135deg, #1e3a8a, #1d4ed8);
    box-shadow: 0 6px 16px rgba(37, 99, 235, 0.45);
    transform: translateY(-1px);
}
.kdo-minfo-btn--primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Résultat désactivé (ex: pas d'email) */
.kdo-minfo-result-item.is-disabled {
    opacity: 0.55;
    cursor: not-allowed;
    background: #f8fafc;
}
.kdo-minfo-result-item.is-disabled:hover {
    border-color: #e3e8ef;
    box-shadow: none;
    transform: none;
}
.kdo-minfo-result-item.is-disabled .kdo-minfo-result-avatar {
    background: #cbd5e1;
}
.kdo-minfo-result-item.is-disabled .kdo-minfo-result-arrow {
    color: #cbd5e1;
}

/* Résultat sélectionné (cadre bleu marqué) */
.kdo-minfo-result-item.is-selected {
    border-color: #2563eb;
    background: #eff6ff;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.18);
}
.kdo-minfo-result-item.is-selected .kdo-minfo-result-arrow {
    color: #2563eb;
}
