body {
    margin: 0;
    font-family: 'Montserrat', sans-serif;
    background-color: white;
}

.container {
    display: flex;
    max-width: 1400px;
    margin: 5px auto;
    border-radius: 8px;
    overflow: hidden;
    flex-wrap: wrap;
}

.left {
    width: 40%;
    min-height: 300px;
}

.right {
    width: 60%;
    box-sizing: border-box;
}

.img-cover {
    margin-top: 20%;
    width: 400px;
}

h2 {
    font-size: 40px;
    color: #ff8b00;
    margin-bottom: 30px;
}

.text-center {
    text-align: center;
}

.form-group {
    display: flex;
    flex-direction: column;
    margin-bottom: 15px;
}

label {
    margin-bottom: 5px;
    font-weight: bold;
}

input, select {
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 1rem;
}

.inline {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.inline .form-group {
    flex: 1;
    min-width: 200px;
}

.upload-buttons, .actions {
    display: flex;
    gap: 10px;
    margin-top: 15px;
    flex-wrap: wrap;
}

.upload-buttons button{
    padding: 13.5px 13.5px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
}

.actions button {
    padding: 20px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
}

.btn-upload {
    background-color: #17a2b8;
    color: white;
}

.btn-toggle {
    background-color: #28a745;
    color: white;
}

.btn-back {
    background-color: #dc3545;
    color: white;
    flex: 1;
}

.btn-save {
    background-color: #ff8b00;
    color: white;
    flex: 1;
}

.red {
    color: red;
}

.montant {
  color: red !important;
  background-color: #ccc !important;
  font-weight: bold !important;
}


#piece-preview {
    display: none;
    margin-top: 20px;
    padding: 10px;
    background: #f1f1f1;
    border: 1px solid #ccc;
}

@media (max-width: 768px) {
    .container {
    flex-direction: column;
    }

    h2 {
        font-size: 24px;
    }

    .left {
    min-height:0 !important
    }

    .left,
    .right {
    width: 100%;
    }

    .right {
    padding: 20px;
    }

    .inline {
    flex-direction: column;
    gap: 0;
    }

    .upload-buttons,
    .actions {
    flex-direction: column;
    gap: 10px;
    }

    .btn-save, .btn-back {
    width: 100%;
    }
}