/* Édition mono-agence : installateur, licence, mise à jour. Propriétés logiques (RTL et LTR), utilisable à 375 px. */

/* ---------- Carte de l'installateur et de la page « licence requise » ---------- */
.ed-card { max-width: 680px; padding: 26px 30px; }
.ed-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-block-end: 18px; }
.ed-brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 1.05rem; color: var(--sidebar); }
.ed-brand .brand-mark {
    display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 9px;
    background: var(--primary); color: #fff; font-weight: 700; font-size: 1.1rem;
}
.ed-lang { font-size: .9rem; }
.ed-card .guest-head h1 { font-size: 1.4rem; }

.ed-section { border-block-start: 1px solid var(--border); padding-block: 18px 4px; margin-block-start: 14px; }
.ed-section h2 { margin-block-end: 10px; }
.ed-section h2 small { font-weight: 500; }
.ed-section > .hint { margin-block-end: 12px; }

.ed-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 16px; }
.ed-grid .span-2 { grid-column: 1 / -1; }

/* Étapes */
.ed-steps { list-style: none; margin: 0 0 6px; padding: 0; display: flex; gap: 6px; counter-reset: none; }
.ed-steps li {
    flex: 1 1 0; min-width: 0; display: flex; align-items: center; gap: 8px; padding: 8px 10px;
    border-radius: var(--radius-sm); background: var(--surface-2); border: 1px solid var(--border);
    color: var(--muted); font-size: .86rem; line-height: 1.3;
}
.ed-steps li.is-current { background: var(--primary-soft); border-color: #c8ddd1; color: var(--primary); font-weight: 600; }
.ed-steps li.is-done { color: var(--success); }
.ed-step-num {
    flex: none; display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%;
    background: #fff; border: 1px solid currentColor; font-size: .8rem; font-weight: 700;
}
.ed-step-num .icon { width: 14px; height: 14px; }

/* Prérequis */
.ed-checks { list-style: none; margin: 0 0 12px; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px 16px; }
.ed-checks li { display: flex; align-items: center; gap: 8px; padding: 6px 0; border-block-end: 1px solid #efece5; min-width: 0; }
.ed-check-label { flex: 1 1 auto; min-width: 0; overflow-wrap: anywhere; }
.ed-check-value { color: var(--muted); font-size: .84rem; font-variant-numeric: tabular-nums; }
.ed-dot { flex: none; display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; }
.ed-dot .icon { width: 13px; height: 13px; }
.ed-checks .is-ok .ed-dot { background: var(--success-soft); color: var(--success); }
.ed-checks .is-ko .ed-dot { background: var(--danger-soft); color: var(--danger); }
.ed-checks .is-ko .ed-check-label { color: var(--danger); font-weight: 600; }
.ed-checks .is-warn .ed-dot { background: var(--warning-soft); color: #8a6417; }

.ed-db-summary {
    display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin: 14px 0 0; padding: 10px 12px;
    background: var(--success-soft); border: 1px solid #c6e6d3; border-radius: var(--radius-sm); color: #145c37; font-size: .9rem;
}
.ed-db-summary .icon { width: 16px; height: 16px; }
.ed-db-summary code { overflow-wrap: anywhere; }
.ed-db-summary a { margin-inline-start: auto; }

.ed-license-input { font-size: .8rem; line-height: 1.45; }

/* Fin d'installation */
.ed-done-head { text-align: center; }
.ed-done-mark {
    display: inline-grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; margin-block-end: 10px;
    background: var(--success-soft); color: var(--success);
}
.ed-done-mark .icon { width: 26px; height: 26px; }
.ed-mark-lock { background: var(--danger-soft); color: var(--danger); }
.ed-next { margin: 0 0 14px; padding-inline-start: 22px; display: grid; gap: 12px; }
.ed-next li { display: grid; gap: 4px; }
.ed-code {
    display: block; padding: 8px 10px; background: #13261e; color: #e6efe9; border-radius: var(--radius-sm);
    font-size: .82rem; overflow-wrap: anywhere; white-space: pre-wrap; text-align: start;
}
.ed-public-note { text-align: center; margin-block-start: 12px; }

/* ---------- Licence et mise à jour (espace de gestion) ---------- */
.ed-columns { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 18px; align-items: start; }
.ed-columns > .card { margin-block-end: 0; }
.ed-columns + .card { margin-block-start: 18px; }

.ed-license-state { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border-radius: var(--radius-sm); border: 1px solid; margin-block-end: 14px; }
.ed-license-state p { margin: 4px 0 0; font-size: .9rem; }
.ed-license-icon { flex: none; display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: #fff; }
.ed-license-icon .icon { width: 18px; height: 18px; }
.ed-tone-success { background: var(--success-soft); border-color: #c6e6d3; color: #145c37; }
.ed-tone-warning { background: var(--warning-soft); border-color: #eedcae; color: #6e4f0f; }
.ed-tone-danger { background: var(--danger-soft); border-color: #f0c9c5; color: #8c1d17; }

.ed-facts { margin: 0; display: grid; gap: 0; }
.ed-facts > div { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-block-end: 1px solid #efece5; }
.ed-facts > div:last-child { border-block-end: 0; }
.ed-facts dt { color: var(--muted); font-size: .88rem; }
.ed-facts dd { margin: 0; text-align: end; overflow-wrap: anywhere; min-width: 0; }
.ed-howto { margin-block-start: 14px; }

.ed-uptodate { display: flex; align-items: center; gap: 8px; color: var(--success); margin: 0; }
.ed-migrations { margin-block-end: 14px; }
.ed-migrations code { font-size: .86rem; overflow-wrap: anywhere; }
.ed-backup { display: grid; gap: 4px; }

@media (max-width: 960px) {
    .ed-columns { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
    .ed-card { padding: 20px 16px; }
    .guest:has(.ed-card) { padding: 12px; }
    .ed-grid, .ed-checks { grid-template-columns: 1fr; }
    .ed-steps { flex-direction: column; }
    .ed-facts > div { flex-direction: column; gap: 2px; }
    .ed-facts dd { text-align: start; }
}
