/* schema.kdcert.fr — styles spécifiques au module affaires */

/* ─── Bouton « Importer une LPD » dans le menu gauche ─────────────────── */
.schema-menu-ajouter {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    margin: 12px 8px 8px;
    border: 1px dashed #bbb;
    border-radius: 6px;
    color: #555;
    font-size: 13px;
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s, color 0.15s;
}
.schema-menu-ajouter:hover {
    background: #f3f6ff;
    border-color: #4a6cf7;
    color: #4a6cf7;
}
.schema-menu-ajouter .menu-icon {
    width: 20px;
    text-align: center;
}
.app-menu.closed .schema-menu-ajouter {
    justify-content: center;
    padding: 10px 6px;
    margin: 12px 4px;
}

/* ─── Wrap principal du module affaires ───────────────────────────────── */
#affaires-wrap {
    padding: 16px;
}

/* ─── Modale d'import ─────────────────────────────────────────────────── */
.schema-input-file {
    padding: 8px;
    background: #fafbfc;
    border: 1px dashed #cbd5e1 !important;
    cursor: pointer;
}
.schema-import-hint {
    margin-top: 8px;
    font-size: 12px;
    color: #777;
    line-height: 1.4;
}
.schema-import-hint code {
    background: #f1f3f5;
    padding: 1px 5px;
    border-radius: 3px;
    font-size: 11px;
    color: #4a6cf7;
}

/* ─── Fiche affaire ───────────────────────────────────────────────────── */
.schema-fiche {
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.schema-fiche-header {
    display: flex;
    align-items: center;
    gap: 12px;
}
.schema-fiche-retour {
    flex-shrink: 0;
}
.schema-fiche-titre {
    font-size: 18px;
    font-weight: 600;
    color: #1f2937;
    flex: 1;
}
.schema-fiche-titre i {
    color: #4a6cf7;
    margin-right: 8px;
}
.schema-fiche-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 24px;
    padding: 10px 14px;
    background: #f7f8fa;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    font-size: 13px;
    color: #374151;
}
.schema-fiche-meta div span {
    color: #888;
    margin-right: 4px;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}
.schema-fiche-section {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 14px 16px;
}
.schema-fiche-h3 {
    margin: 0 0 12px 0;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #6b7280;
    font-weight: 600;
}
.schema-fiche-h3 i {
    color: #4a6cf7;
    margin-right: 6px;
}
.schema-fiche-vide {
    color: #9ca3af;
    font-style: italic;
    padding: 8px 0;
}

/* Automates en cartes */
.schema-automates-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 12px;
}
.schema-automate-card {
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    padding: 12px 14px;
    background: #fafbfc;
}
.schema-automate-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 8px;
}
.schema-automate-ref {
    font-weight: 700;
    font-size: 15px;
    color: #1f2937;
    font-family: ui-monospace, "SFMono-Regular", Menlo, monospace;
}
.schema-automate-qte {
    font-size: 13px;
    color: #4a6cf7;
    font-weight: 600;
}
.schema-automate-bloc {
    margin-top: 4px;
    font-size: 12px;
    color: #6b7280;
}
.schema-automate-bloc i {
    margin-right: 4px;
    color: #9ca3af;
}
.schema-automate-pools {
    margin-top: 10px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.schema-automate-pool {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 8px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 4px;
    font-size: 12px;
}
.schema-automate-pool-univ {
    color: #4a6cf7;
    font-weight: 600;
    font-size: 11px;
    background: #eef2ff;
    padding: 2px 6px;
    border-radius: 3px;
    flex-shrink: 0;
}
.schema-automate-pool-qte {
    font-weight: 700;
    color: #1f2937;
    font-size: 14px;
    min-width: 28px;
    text-align: center;
}
.schema-automate-pool-types {
    color: #6b7280;
    flex: 1;
}
.schema-automate-pool-types b {
    color: #1f2937;
    font-weight: 600;
}

/* Liste des points : zéros grisés pour lisibilité */
.schema-points-wrap .kdo-list-table .kdo-td--align-center:not(:first-child) {
    color: #1f2937;
    font-weight: 600;
}
.schema-points-wrap .kdo-list-table td.kdo-td--align-center:empty,
.schema-points-wrap .kdo-list-table td.kdo-td--align-center.zero {
    color: #d1d5db;
}
