.em-form-wrapper {
    max-width: 100%;
    margin: 0 auto;
    padding: 20px;
    background: #f9f9f9; /* Light gray background like the image seems to have */
    border-radius: 5px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

.em-form-row {
    display: flex;
    flex-wrap: wrap;
    margin-right: -15px;
    margin-left: -15px;
    margin-bottom: 15px;
}

.em-col {
    position: relative;
    width: 100%;
    padding-right: 15px;
    padding-left: 15px;
    flex: 0 0 100%;
    max-width: 100%;
    box-sizing: border-box;
}

@media (min-width: 768px) {
    .em-col-6 {
        flex: 0 0 50%;
        max-width: 50%;
    }
    .em-col-4 {
        flex: 0 0 33.333333%;
        max-width: 33.333333%;
    }
}

.em-form-group {
    margin-bottom: 1rem;
}

.em-form-control {
    display: block;
    width: 100%;
    padding: 0.375rem 0.75rem;
    font-size: 1rem;
    line-height: 1.5;
    color: #495057 !important;
    background-color: #fff !important;
    background-clip: padding-box;
    border: 1px solid #ced4da !important;
    border-radius: 0.25rem;
    transition: border-color .15s ease-in-out,box-shadow .15s ease-in-out;
    box-sizing: border-box;
}

.em_titre{
    margin-bottom: 8px !important;
    font-weight: 600 !important;
    font-size: 0.9rem !important;
}

select.em-form-control {
    height: 44px;
}

.em-form-control:focus {
    color: #495057 !important;
    background-color: #fff !important;
    border-color: #c4161c !important;
    outline: 0;
    box-shadow: 0 0 0 0.2rem rgba(196, 22, 28, 0.25);
}

.em-btn {
    display: inline-block !important;
    font-weight: 400;
    color: #fff !important;
    text-align: center;
    vertical-align: middle;
    user-select: none;
    background-color: #c4161c !important;
    border: 1px solid #c4161c !important;
    padding: 0.375rem 0.75rem !important;
    font-size: 1rem;
    line-height: 1.5;
    transition: color .15s ease-in-out,background-color .15s ease-in-out,border-color .15s ease-in-out,box-shadow .15s ease-in-out;
    cursor: pointer;
    width: 100% !important; /* Make full width on mobile */
}

@media (min-width: 768px) {
    .em-btn {
        width: auto;
        float: right;
    }
    .em-btn-block {
        width: 100%;
        display: block;
    }
}

.em-btn:hover {
    background-color: #a01217 !important;
    border-color: #941115 !important;
}

.em-btn-sm {
    padding: 4px 10px !important;
    font-size: 0.85rem !important;
    width: auto !important;
    float: none !important;
    display: inline-block !important;
    line-height: 1.2 !important;
}

.em-btn-danger {
    background-color: #dc3545 !important;
    border-color: #dc3545 !important;
}

.em-btn-danger:hover {
    background-color: #c82333 !important;
    border-color: #bd2130 !important;
}

.em-file-input-wrapper {
    position: relative;
    overflow: hidden;
    display: inline-block;
    width: 100%;
}

.em-required {
    color: #c4161c !important;
}

.em-alert {
    padding: 0.75rem 1.25rem !important;
    margin-bottom: 1rem !important;
    border: 1px solid transparent !important;
    border-radius: 0.25rem !important;
}

.em-alert-success {
    color: #155724 !important;
    background-color: #d4edda;
    border-color: #c3e6cb;
}

.em-alert-danger {
    color: #721c24;
    background-color: #f8d7da;
    border-color: #f5c6cb;
}

/* Tabs Styling */
.em-tabs {
    display: flex;
    flex-wrap: wrap;
    list-style: none;
    padding: 0;
    margin: 0 0 20px 0;
    border-bottom: 2px solid #ddd;
}

.em-tab-item {
    margin-bottom: -2px;
    margin-right: 5px;
}

.em-tab-link {
    display: block;
    padding: 10px 20px;
    text-decoration: none;
    color: #555;
    border: 2px solid transparent;
    border-bottom: none;
    border-radius: 5px 5px 0 0;
    font-weight: bold;
    cursor: pointer;
    background: #f1f1f1;
}

.em-tab-link:hover {
    background: #e9e9e9;
    color: #c4161c;
}

.em-tab-link.active {
    background: #fff;
    color: #c4161c;
    border-color: #ddd;
    border-bottom-color: #fff;
}

.em-tab-content {
    display: none;
}

.em-tab-content.active {
    display: block;
    animation: fadeIn 0.5s;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Modal Styling */
.em-modal {
    display: none; 
    position: fixed; 
    z-index: 1000; 
    left: 0;
    top: 0;
    width: 100%; 
    height: 100%; 
    overflow: auto; 
    background-color: rgb(0,0,0); 
    background-color: rgba(0,0,0,0.4); 
}

.em-modal-content {
    background-color: #fefefe;
    margin: 15% auto; 
    padding: 20px;
    border: 1px solid #888;
    width: 80%; 
    max-width: 600px;
    border-radius: 5px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.em-close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
}

.em-close:hover,
.em-close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

.em-modal-header {
    border-bottom: 1px solid #eee;
    margin-bottom: 10px;
    padding-bottom: 10px;
}

.em-modal-title {
    margin: 0;
    color: #c4161c;
}

.em-detail-label {
    font-weight: bold;
    color: #555;
    min-width: 80px;
    display: inline-block;
}

.em-status-pending {
    color: orange;
    font-weight: bold;
}
.em-status-publish {
    color: green;
    font-weight: bold;
}
.em-status-other {
    color: #777;
}

/* Table Styling */
.em-table-responsive {
    overflow-x: auto;
}
.em-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 1rem;
    color: #212529;
}
.em-table th,
.em-table td {
    padding: 0.75rem;
    vertical-align: top;
    border-top: 1px solid #dee2e6;
    text-align: left;
}
.em-table thead th {
    vertical-align: bottom;
    border-bottom: 2px solid #dee2e6;
}
