﻿.page-title {
    margin: 0;
}

.promo-head {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
}

.promo .orders-actions .pager-actions {
    padding-top: 0;
    white-space: nowrap;
}

    .promo-head .actions .btn {
        white-space: nowrap;
    }

    .promo-head .promo-search {
        flex: 1;
        min-width: 0;
    }

.promo-table {
    width: 100%;
    border-spacing: 0;
    border-collapse: separate;
    border: var(--border);
    border-radius: 12px;
    background: var(--bg);
    overflow: hidden;
}

    .promo-table th, .promo-table td {
        text-align: left;
        padding: 14px 16px;
        border-bottom: 1px solid var(--lineColor);
        vertical-align: middle;
    }

    .promo-table th {
        position: sticky;
        top: 0;
        z-index: 2;
        background: var(--backgroundBoutonMenuDashboard);
        font-weight: 600;
        opacity: .9;
    }

    .promo-table tbody tr:hover {
        background: color-mix(in srgb, var(--hoverColor) 28%, transparent);
    }

    .promo-table tbody tr:last-child td {
        border-bottom: none;
    }

    .promo-table td .mono {
        font-family: var(--textePolice);
    }

.row-actions {
    display: flex;
    gap: 8px;
}

.hidden {
    display: none;
}

.promo-editor {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.5);
    display: grid;
    place-items: center;
    z-index: 40;
}

.editor-card {
    width: min(900px, 95vw);
    max-height: 90vh;
    overflow: auto;
    background: var(--bg);
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 16px;
    padding: 16px;
}

.editor-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.field {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 10px;
}

.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.field-error {
    color: #ff6b6b;
    font-size: .9rem;
    min-height: 1.2em;
}

.editor-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    margin-top: 12px;
}

.th-actions {
    width: 140px;
}

/* Champ inline (label + input sur la même ligne) */
.field-inline {
    display: flex;
    align-items: center;
    gap: 10px;
}

    .field-inline .label-inline {
        margin: 0;
    }

/* Le champ "Afficher" occupe les deux colonnes de la grid-2 */
.grid-2 .field--span2 {
    grid-column: 1 / -1;
}

/* Checkbox plus grande + curseur main */
.input-checkbox-lg {
    transform: scale(1.25);
    cursor: pointer;
}

.field-inline input[type="checkbox"] {
    width: 18px;
    height: 18px;
}

/* Si ton navigateur supporte accent-color, ça harmonise la couleur */
@supports (accent-color: auto) {
    .field-inline input[type="checkbox"] {
        accent-color: var(--color2, #00ffff);
    }
}

.editor-toolbar {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

    .editor-toolbar .btn {
        height: 32px;
        padding: 0 10px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

        .editor-toolbar .btn i {
            font-style: italic;
        }

    .editor-toolbar .color-pick {
        display: inline-flex;
        align-items: center;
        gap: 6px;
    }

    .editor-toolbar input[type="color"] {
        width: 34px;
        height: 26px;
        padding: 0;
        border: none;
        background: transparent;
        cursor: pointer;
    }
