/* --- Espacement et style des boutons admin --- */
.submit-row input,
.submit-row button {
    margin-bottom: 14px !important;
    margin-right: 0 !important;
    display: block !important;
    width: 100% !important;
    padding: 0.5rem 1.2rem !important;
    font-size: 1rem !important;
    border-radius: 0.375rem !important;
    box-shadow: 0 1px 2px rgba(0,0,0,0.07);
}

/* Actions horizontales ? */
.submit-row {
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: stretch;
    margin-top: 1.5rem;
}

/* Form labels et champs (boostrap look) */
.form-label,
label {
    font-weight: 500 !important;
    margin-bottom: 0.2rem;
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
input[type="date"],
input[type="file"],
select,
textarea {
    border: 1px solid #d5d9dd !important;
    border-radius: 0.375rem !important;
    background: #fff !important;
    padding: 0.5rem 1rem !important;
    font-size: 1rem !important;
    width: 100% !important;
    margin-bottom: 1rem;
}

input[type="checkbox"],
input[type="radio"] {
    margin-right: 0.5rem !important;
    accent-color: #19c37d !important; /* Couleur principale Jazzmin par défaut */
}

/* Amélioration des tables admin */
table {
    border-collapse: separate !important;
    border-spacing: 0;
    border-radius: 0.5rem !important;
    overflow: hidden;
    width: 100%;
}
th, td {
    padding: 0.75rem 1rem !important;
    border-bottom: 1px solid #e7eaf0 !important;
    vertical-align: middle !important;
}
thead th {
    background: #f7fafc !important;
    color: #1e2329 !important;
    font-weight: 600 !important;
}

/* Pagination et barre de recherche */
.paginator, .search-bar {
    margin: 1.5rem 0;
}

/* Alertes */
ul.messagelist, .alert, .messages {
    border-radius: 0.375rem;
    padding: 1rem 1.5rem;
    background: #f6c24422;
    color: #856404;
    margin-bottom: 1.5rem;
    list-style: none;
}

/* Navigation rapide custom */
.mb-3 .btn, .btn-outline-info {
    margin-bottom: 0.5rem;
    margin-right: .5rem;
    border-radius: 0.375rem;
}

.btn-outline-info {
    color: #19c37d !important;
    border-color: #19c37d !important;
}
.btn-outline-info:hover, .btn-outline-info:focus {
    background-color: #19c37d !important;
    color: #fff !important;
    border-color: #19c37d !important;
}

/* Responsive */
@media (max-width: 900px) {
    .submit-row {
        flex-direction: column;
    }
    th, td {
        padding: 0.5rem !important;
    }
}

/* Scrollbar légère */
::-webkit-scrollbar {
    width: 8px;
    background: #f7fafc;
}
::-webkit-scrollbar-thumb {
    background: #e7eaf0;
    border-radius: 4px;
}
.submit-row input, .submit-row button {
    margin-bottom: 12px !important;
    width: 100% !important;
    display: block !important;
}
.submit-row {
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: stretch;
}