#rss-feed {
    height: 255px !important;
    width: 100% !important;
    overflow: auto;
    scroll-behavior: smooth;
    overflow: hidden;
}

.rss-item {
    border: 1px solid #ddd;
    padding: 10px;
    margin-bottom: 10px;
    border-radius: 5px;
}

body, html {
    scroll-behavior: smooth;
}

.rss-item h2 {
    margin: 0;
    font-size: 1.5em;
}

.rss-item p {
    margin: 0.5em 0;
}

.rss-item a {
    color: blue;
    text-decoration: underline;
}

.chart-container {
    height: 350px;
}

.section {
    padding: 20px 20px !important;
}

.form-control {
    transition: all 0.3s ease;
}

.form-control:focus {
    box-shadow: 0 0 5px rgba(0, 123, 255, 0.5);
}

.tab-pane {
    transition: opacity 0.2s ease-in-out;
}

@media (max-width: 900px) {
    .toggle-sidebar #main, .toggle-sidebar #footer {
        margin-left: 0 !important;
    }

    #main {
        padding: 10px !important;
    }
}

.buttonDisplay {
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding-bottom: 42px !important;
}


[id^="customer_businessEntities_"],
[id^="customer_prospects_"],
[id^="customer_energies_"],
[id^="customer_contacts_"] {
    padding: 10px;
    background-color: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 8px;
    margin-bottom: 16px;
}


#customer_businessEntities label,
#customer_prospects label,
#customer_energies label,
#customer_contacts label,
[id^="customer_businessEntities_"] label,
[id^="customer_prospects_"] label,
[id^="customer_energies_"] label,
[id^="customer_contacts_"] label {
    font-weight: bold;
    color: #4a4a4a;
    font-size: 15px;
    display: block;
    margin-bottom: 6px;
}


#customer_prospects select,
#customer_prospects textarea,
#customer_businessEntities input[type="text"],
#customer_prospects input[type="text"],
#customer_energies input[type="text"],
#customer_contacts input[type="text"],
[id^="customer_businessEntities_"] input[type="text"],
[id^="customer_prospects_"] select,
[id^="customer_prospects_"] textarea,
[id^="customer_energies_"] input[type="text"],
[id^="customer_energies_"] input[type="number"],
[id^="customer_energies_"] input[type="date"],
[id^="customer_energies_"] select,
[id^="customer_contacts_"] input[type="text"] {
    width: 100%;
    padding: 10px;
    font-size: 14px;
    border: 1px solid #ccc;
    border-radius: 4px;
    background-color: #ffffff;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}


#customer_prospects select:focus,
#customer_prospects textarea:focus,
#customer_businessEntities input[type="text"]:focus,
#customer_prospects input[type="text"]:focus,
#customer_energies input[type="text"]:focus,
#customer_contacts input[type="text"]:focus,
[id^="customer_businessEntities_"] input[type="text"]:focus,
[id^="customer_prospects_"] select:focus,
[id^="customer_prospects_"] textarea:focus,
[id^="customer_energies_"] input[type="text"]:focus,
[id^="customer_contacts_"] input[type="text"]:focus {
    border-color: #007bff;
    box-shadow: 0 0 5px rgba(0, 123, 255, 0.5);
    background-color: #fff;
}


#customer_prospects .mb-6,
[id^="customer_prospects_"] .mb-6,
#customer_businessEntities .mb-6,
#customer_energies .mb-6,
#customer_contacts .mb-6 {
    margin-bottom: 16px;
}


.form-item .btn-danger {
    background-color: #dc3545;
    color: white;
    border: none;
    padding: 8px 16px;
    font-size: 14px;
    border-radius: 4px;
    cursor: pointer;
}

.form-item .btn-danger:hover {
    background-color: #c82333;
}


#customer_prospects textarea,
[id^="customer_prospects_"] textarea {
    resize: vertical;
    min-height: 80px;
}


.scrollable-container {
    overflow-y: auto;
    max-height: 100px;
}

.hidden {
    display: none;
}

.flex {
    display: block;
}

.dataUpdate {
    background-color: #f9f9f9;
    padding: 20px;
    border-radius: 8px;
}

.dataUpdate .card-title {
    font-weight: bold;
    font-size: 1.25rem;
    color: #333;
}

.dataUpdate .form-label {
    font-weight: 600;
    color: #555;
}

.dataUpdate .form-control {
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 8px 10px;
    font-size: 1rem;
}

.dataUpdate .btn-primary {
    background-color: #007bff;
    border-color: #007bff;
    font-weight: 600;
    padding: 10px 20px;
    border-radius: 4px;
}

.dataUpdate .btn-primary:hover {
    background-color: #0056b3;
    border-color: #0056b3;
}

.dataUpdate .mb-3 {
    margin-bottom: 1rem;
}

.overlay {
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9999;
}

.overlay-content {
    height: 50%;
    overflow: auto;
    background: white;
    margin: 15% auto;
    padding: 20px;
    width: 80%;
    max-width: 600px;
}

.divFlexs {
    display: flex;
    gap: 10px;
}

.divFlexGap {
    display: flex;
    margin-top: 10px;
    gap: 10px;
}

.frameHeight {
    height: 400px;
    overflow-y: auto;
    position: relative;
    display: flex;
    flex-direction: column;
}

a form {
    display: inline;
}

.flexDoc {
    display: flex;
    align-items: center;
    flex-direction: column;
}

.drop-zone {
    transition: all 0.3s ease;
    background-color: #f8f9fa;
    cursor: pointer;
}

.drop-zone:hover, .drop-zone.dragover {
    background-color: #e9ecef;
    border-color: #0d6efd;
}

.frameHeight {
    height: 300px;
}

.drop-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(13, 110, 253, 0.1);
    border: 2px dashed #0d6efd;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.drop-message {
    text-align: center;
    color: #0d6efd;
}

.card {
    position: relative;
}

/* Style pour le nom du fichier */
.file-display {
    padding: 0.5rem;
    margin-bottom: 1rem;
    border-radius: 0.25rem;
}

.alert-danger {
    margin-bottom: 1rem;
    padding: 0.75rem 1.25rem;
    border-radius: 0.25rem;
}

.invalid-feedback {
    display: block;
    margin-top: 0.25rem;
}

.sidebar {
    display: flex;
    flex-direction: column;
    min-height: 97vh;
}

.sidebar-footer {
    margin-top: auto;
}

.ts-control .item {
    margin-top: 15px;
}
/* --- Éditeur de placement des champs de signature (signature_editor) --- */
.sig-editor-pages {
    max-height: 80vh;
    overflow-y: auto;
    background: #e9ecef;
    padding: 16px;
    border-radius: 6px;
}
.sig-editor-page {
    position: relative;
    margin: 0 auto;
    width: fit-content;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.25);
    background: #fff;
}
.sig-editor-page canvas {
    display: block;
    max-width: 100%;
    height: auto;
}
.sig-editor-page-number {
    text-align: center;
    margin: 6px 0 16px;
}
.sig-editor-overlay {
    position: absolute;
    inset: 0;
}
.sig-editor-placing .sig-editor-overlay {
    cursor: crosshair;
}
.sig-editor-field {
    position: absolute;
    border: 2px solid #0d6efd;
    background: rgba(13, 110, 253, 0.12);
    border-radius: 3px;
    cursor: move;
    display: flex;
    align-items: center;
    justify-content: center;
    user-select: none;
    touch-action: none;
}
.sig-editor-field-initials {
    border-color: #198754;
    background: rgba(25, 135, 84, 0.12);
}
.sig-editor-field-date {
    border-color: #fd7e14;
    background: rgba(253, 126, 20, 0.12);
}
.sig-editor-field-text {
    border-color: #6f42c1;
    background: rgba(111, 66, 193, 0.12);
}
.sig-editor-field-input {
    width: 100%;
    height: 100%;
    border: none;
    background: transparent;
    font-size: 11px;
    font-weight: 600;
    color: #333;
    text-align: center;
    padding: 0 4px;
    cursor: text;
}
.sig-editor-field-input:focus {
    outline: 1px solid #6f42c1;
    background: rgba(255, 255, 255, 0.85);
}
.sig-editor-field-label {
    font-size: 11px;
    font-weight: 600;
    color: #333;
    pointer-events: none;
    white-space: nowrap;
    overflow: hidden;
}
.sig-editor-field-remove {
    position: absolute;
    top: -10px;
    right: -10px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: none;
    background: #dc3545;
    color: #fff;
    font-size: 12px;
    line-height: 1;
    padding: 0;
}
.sig-editor-field-resize {
    position: absolute;
    right: -5px;
    bottom: -5px;
    width: 12px;
    height: 12px;
    background: #fff;
    border: 2px solid currentColor;
    border-radius: 2px;
    cursor: nwse-resize;
}
.sig-editor-panel {
    position: sticky;
    top: 70px;
}
