/* WABAA Admin - styles de gestion des profils. */

/* debut style profils V1 */
/* Organisation du formulaire et du tableau des profils. */
.profile-grid {
    display: grid;
    grid-template-columns: minmax(300px,.8fr) minmax(0,1.5fr);
    gap: 18px
}

/* Mise en page verticale du formulaire profil. */
.profile-form {
    display: grid;
    gap: 10px
}

.profile-form label {
    font-weight: 700
}

.profile-table {
    width: 100%;
    border-collapse: collapse
}

.profile-table th,.profile-table td {
    padding: 10px 8px;
    border-bottom: 1px solid var(--line);
    text-align: left;
    vertical-align: top
}

.profile-table th {
    color: var(--muted);
    font-size: 12px
}

.profile-actions {
    display: flex;
    gap: 6px;
    flex-wrap: wrap
}

/* Badge generique d etat commercial ou technique. */
.profile-status {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 800;
    background: #eef2f7;
    color: #53657b
}

.profile-status.active {
    background: #e7f7ed;
    color: var(--green)
}

.profile-status.pending {
    background: #fff7df;
    color: #946200
}

.profile-status.error {
    background: #fdeaea;
    color: var(--danger)
}

.profile-meta {
    font-size: 12px;
    color: var(--muted);
    line-height: 1.45
}

/* Message lie au formulaire de profil. */
.profile-message {
    margin-top: 10px
}

.profile-version-box {
    margin-top: 12px;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #f8fafc
}

.profile-version-box b {
    color: var(--navy)
}

@media(max-width:900px) {
    .profile-grid {
        grid-template-columns: 1fr
    }
    .profile-table {
        font-size: 12px
    }
    .profile-table th:nth-child(5),.profile-table td:nth-child(5) {
        display: none
    }
}

/* fin style profils V1 */
.profile-actions {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    align-items: center
}

.profile-status {
    display: inline-block;
    padding: 2px 7px;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 800
}

.profile-status.active {
    background: #e8f7ee;
    color: #16723a
}

.profile-status.pending {
    background: #fff7e6;
    color: #9a6700
}

.profile-status.error {
    background: #fff0f0;
    color: #a51d1d
}

.profile-meta {
    font-size: 12px;
    color: #64748b;
    line-height: 1.5
}

