.admin-body {
    background: #f5f2ee;
}
.admin-wrap {
    max-width: 1250px;
}
.admin-topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    padding-bottom: 20px;
}
.admin-brand {
    font-weight: 800;
    letter-spacing: 3px;
    text-decoration: none;
    color: #6a1a14;
}
.admin-brand small {
    display: block;
    font-size: 11px;
    letter-spacing: 1px;
    color: #736962;
}
.admin-nav {
    border-block: 1px solid #ddd4ce;
    padding: 12px 0;
    gap: 18px;
    align-items: center;
}
.admin-nav a {
    text-decoration: none;
    font-size: 14px;
}
.admin-nav form {
    margin-left: auto;
}
.nav-logout {
    border: 0;
    background: none;
    font-size: 14px;
}
.admin-nav svg,
.manager-tabs svg,
.action-icon svg {
    vertical-align: -2px;
}
.manager-tabs {
    border-bottom: 1px solid #ddd4ce;
    gap: 6px;
    padding-bottom: 12px;
}
.manager-tabs .nav-link.active {
    background: #6a1a14;
}
.manager-tabs .nav-link {
    color: #6a1a14;
}
.manager-tabs .nav-link.active {
    color: #fff;
}
.admin-card {
    border: 1px solid #e2dad5;
    box-shadow: 0 3px 14px #30201808;
}
.action-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    padding: 6px;
    border: 1px solid #d9ccc4;
    border-radius: 5px;
    background: white;
    color: #6a1a14;
    text-decoration: none;
}
.action-icon:hover {
    background: #f3e9e3;
}
.admin-filter {
    display: flex;
    flex-wrap: wrap;
    align-items: end;
    gap: 12px;
    margin: 20px 0;
}
.admin-filter label {
    flex: 1;
    min-width: 140px;
}
.admin-filter .form-control,
.admin-filter .form-select {
    margin-top: 5px;
}
.admin-list td {
    vertical-align: middle;
    font-size: 14px;
}
.admin-list th {
    background: #eee5df;
}
.admin-list tr:nth-child(even) td {
    background: #faf7f3;
}
.media-row {
    display: grid;
    grid-template-columns: 130px minmax(0, 1fr) auto;
    gap: 20px;
    padding: 18px;
    border-bottom: 1px solid #e6ded8;
    background: white;
}
.media-row > img {
    width: 130px;
    height: 100px;
    object-fit: contain;
}
.media-row h2 {
    font-size: 17px;
    overflow-wrap: anywhere;
}
.media-preview {
    max-width: 100%;
    max-height: 430px;
    object-fit: contain;
    background: #eee;
}
.media-uses li {
    margin-bottom: 8px;
}
.permission-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 12px;
}
.help-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
}
.editor-image-selected {
    outline: 3px solid #6a1a14;
}
.text-toolbar {
    position: sticky;
    top: 0;
    z-index: 2;
}
.text-editor-expanded .text-toolbar {
    position: static;
}
.text-editor .image-filter-preview {
    max-height: 230px;
    overflow: auto;
}
@media (max-width: 767px) {
    .admin-wrap {
        padding: 20px 12px;
    }
    .admin-nav form {
        margin-left: 0;
    }
    .media-row {
        grid-template-columns: 80px minmax(0, 1fr);
        gap: 12px;
    }
    .media-row > img {
        width: 80px;
        height: 80px;
    }
    .media-row > .media-actions {
        grid-column: 2;
    }
    .admin-filter label {
        flex-basis: 42%;
    }
}

/* Champs compacts Bootstrap : annuler la hauteur générale de 46 px du site. */
.admin-body .form-control.form-control-sm,
.admin-body .form-select.form-select-sm,
.admin-body .input-group.input-group-sm > .form-control {
    min-height: 31px;
    padding: 0.25rem 0.5rem;
    font-size: 0.875rem;
    line-height: 1.5;
}
.admin-body input.form-control.form-control-sm,
.admin-body select.form-select.form-select-sm {
    height: 32px;
}
.admin-body .form-select.form-select-sm {
    padding-right: 2rem;
}

/* Boutons alignés sur les champs Bootstrap -sm, sur ordinateur et mobile. */
.admin-body .btn,
.admin-body .text-editor-dialog .btn {
    min-height: 32px;
    height: auto;
    padding: 4px 8px;
    font-size: 0.875rem;
    line-height: 22px;
    letter-spacing: normal;
}
.admin-body .action-icon {
    width: 32px;
    height: 32px;
    padding: 5px;
}
.admin-body .manager-tabs .nav-link {
    min-height: 32px;
    padding: 4px 10px;
    font-size: 0.875rem;
    line-height: 24px;
}
.admin-filter > a {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    font-size: 0.875rem;
}
