.page-template-template_adobe_page article .entry-content {
    width: 90%;
    max-width: 1920px;
}

input[type="number"] {
    padding: 4px 5px !important;
    text-align: center !important;
}

.adobe-redirect {
    margin-top: 2rem;
    display: flex;
    background: transparent;
    justify-content: center;
}

.modal-container {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    padding: 20px;
    z-index: 1000;
    /* width: 80%; */
    max-width: 800px;
}

.modal-container .select-item {
    display: flex;
    margin-bottom: 10px;
}

.modal-container .select-item label {
    padding: 5px;
    font-size: 15px;
}

.modal-container .wrapper {
    background: white;
    border: 1px solid black;
    padding: 20px;
    border-radius: 15px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.5);
    min-height: 310px;
}

.modal-container .wrapper h4 {
    text-align: center;
    border-bottom: 2px solid red;
    padding: 10px;
}

.modal-container .wrapper h5 {
    text-align: center;
    border-bottom: 2px solid red;
    padding: 10px;
}

.adobe-buttons {
    display: flex;
    justify-content: space-around;
    margin-bottom: 15px;
}

.adobe-quote-buttons {
    margin-bottom: 0px !important;
}

.adobe-redirect .adobe-buttons {
    margin-top: 2rem;
}

.adobe-redirect h5 {
    color: #cf2e2e;
    font-weight: bold !important;
}


.adobe-buttons .button-principal {
    background-color: black;
    color: white;
}

.adobe-buttons .button-principal:hover {
    background-color: #5a5a5a;
}

.badge {
    background-color: #cf2e2e;
    color: white;
    padding: 0.5em 0.6em;
    border-radius: 50%;
    font-size: 0.8em;
    font-weight: bold;
    display: inline-block;
    text-align: center;
    min-width: 2.5em;
    line-height: 1.5em;
}

/* Responsive grid */
.product-container {
    display: flex;
    flex-wrap: wrap;
}

.product-item {
    width: 50%;
    /* 2 products per row on desktop */
    box-sizing: border-box;
    padding: 15px;
}

@media (min-width: 768px) {
    .product-item {
        width: 25%;
        /* 4 products per row on desktop */
    }
}

/* Adjust styles for better appearance */
.product-item a {
    text-decoration: none;
    color: #333;
    display: block;
}

.product-item img {
    width: 100%;
    height: auto;
    border: 1px solid #ddd;
    border-radius: 8px;
}

.product-item h3 {
    margin-top: 10px;
    font-size: 16px;
}

#orderTable .actions {
    display: flex;
}

#orderTable .order.ongoing-action,
#orderTable .order-line.ongoing-action {
    background: #D3D3D3;
}

#elementsTable tr.contract-end-date-close .anniversary-date span,
#productTable tr.contract-end-date-close .anniversary-date span {
    background: #b82233;
    color: white;
    padding: 0.5rem;
    border-radius: 5px;
}

#elementsTable tr.contract-end-date-passed .anniversary-date span,
#productTable tr.contract-end-date-passed .anniversary-date span {
    background: grey;
    color: black;
    padding: 0.5rem;
    border-radius: 5px;
}

body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.searchBar {
    display: flex;
    margin-bottom: 10px;
    justify-content: space-around;
}

.searchBar .wrap_searchInputOrderWithOffer {
    width: 40%;
}

.details-section {
    display: none;
    margin-top: 10px;
}

.current-tab {
    font-weight: bold;
    background: grey;
}

.legend-wrapper {
    display: flex;
    justify-content: space-between;
}

.legend {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
}

.legend-item {
    display: inline-block;
    margin-right: 10px;
}

.status_element {
    display: inline-block;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin-left: 5px
}

/* Active */
.status_1000 {
    background-color: green;
}

/* Pending */
.status_1002 {
    background-color: yellow;
}

/* Inactive */
.status_1004 {
    background-color: grey;
}

/* Cancelled */
.status_1008 {
    background-color: red;
}

/* Scheduled */
.status_1009 {
    background-color: orange;
}

/* : Inactive Reason: Invalid Address */
.status_1010 {
    background-color: red;
}

/* : : Inactive Reason: Account is blocked */
.status_1012 {
    background-color: red;
}

/* : Inactive Reason: Customer already exists with the same Company Name and primary admin */
.status_1014 {
    background-color: red;
}

/* : Failed Reason: Distributor is inactive */
.status_1020 {
    background-color: red;
}

.register-contact .additional-fields-hidden,
.register-contact-3yc .additional-fields-hidden {
    display: none;
}

/* Ajoutez ce style pour permettre le défilement horizontal */
.table-container {
    overflow-x: auto;
    width: 100%;
    /* ou toute autre largeur souhaitée */
}

/* Style optionnel pour la mise en forme du tableau */
.table-container table {
    width: 120%;
    /* ou toute autre largeur souhaitée pour dépasser la fenêtre */
    border-collapse: collapse;
    margin: 20px;
}

.table-container th,
.table-container td {
    border: 1px solid #dddddd;
    padding: 8px;
    text-align: left;
}

/* Style pour bloquer la dernière colonne */
.table-container th:last-child,
.table-container td:last-child {
    position: sticky;
    right: 0;
    background-color: #f2f2f2;
    z-index: 1;
}

/* #variations-table .price{
    display:flex;
} */

/* #variations-table .price:hover{
    cursor: help;
} */

#variations-table .info-no-subscription {
    color: grey;
    cursor: help;
}

#variations-table .info_1000,
#variations-table-db .info_1000 {
    color: green;
    cursor: help;
}

#variations-table .info_1002,
#variations-table-db .info_1002 {
    color: yellow;
    cursor: help;
}

#variations-table .info_1004,
#variations-table-db .info_1004 {
    color: grey;
    cursor: help;
}

#variations-table .info_1009,
#variations-table-db .info_1009 {
    color: orange;
    cursor: help;
}


.price .woocommerce-price-suffix {
    margin-left: 4px;
}

button.secondary {
    border-color: #d5d8dc;
}

button.secondary a {
    color: black;
}

button.secondary:hover {
    border-color: #d5d8dc;
    background-color: #d5d8dc;
    color: black;
}


button:disabled {
    background-color: #ccc !important;
    /* Fond gris */
    color: #666 !important;
    /* Texte assombri */
    cursor: not-allowed !important;
    /* Curseur interdit */
    border: 1px solid #999 !important;
    /* Bordure plus foncée */
    opacity: 0.6;
    /* Rend le bouton légèrement transparent */
}

button:disabled i {
    color: #888 !important;
    /* Icône également en gris */
}

input[type="radio"]:disabled {
    cursor: not-allowed;
    /* Curseur interdit */
    opacity: 0.5;
    /* Rend l'input semi-transparent */
}

input[type="radio"]:disabled+label {
    color: #888;
    /* Assombrit le texte du label */
    cursor: not-allowed;
    /* Curseur interdit */
}

.head-band #adobeRedirectBtn,
.head-band .cart-adobe a {
    color: #cf2e2e;
}


.head-band {
    display: flex;
    justify-content: space-between;
    padding: 10px;
    align-items: center;
    background: #e5f6fd;
    border-radius: 6px;
    margin-bottom: 1rem;
}

.tabs-container {
    display: flex;
    justify-content: center;
    padding: 10px;
    align-items: center;
    margin-bottom: 1rem;
}

.tabs-container a.tab {
    padding: 12px;
    color: rgba(22, 22, 22, 1) !important;
    font-weight: 600;
    text-transform: uppercase;
}

.tabs-container .menu-tuto {
    color: #b82233;
}

.tabs-title {
    margin-top: 1rem;
    display: flex;
    justify-content: space-between;
}

.tabs-title h3 {
    font-size: 2rem;
}

.tab {
    background-color: #f0f0f0;
    border: none;
    padding: 10px 20px;
    margin-right: 10px;
    cursor: pointer;
    border-radius: 5px !important;
    font-size: 1.2rem;
    transition: background-color 0.3s ease;
}

.tab.active {
    background-color: #000;
    color: #fff;
}

.tab:hover {
    background-color: #5a5a5a;
}

.tab-content {
    display: none;
    padding: 20px;
    border: 1px solid #555;
    border-radius: 0 5px 5px 5px;
    background-color: #fff;
}

.tab-content.active {
    display: block;
}

.head-band .name {
    display: flex;
    align-content: center;
    align-items: center;
}

.element-font-awesome {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 2px solid #2699d8;
    margin-right: 10px;
}

table thead {
    background: #d3d3d3;
}


.elementsTable .client-active {
    cursor: pointer;
    color: black;
}

.elementsTable .client-active:hover {
    background: #d5d8dc;
}

.elementsTable .client-inactive,
.elementsTable .client-unselectable {
    cursor: not-allowed;
    color: grey;
}


.form-container .actions,
.order .actions {
    margin-top: 10px;
    display: flex;
    justify-content: space-between;
}

#importCartAdobe .checkUncheck {
    cursor: pointer;
}

/* .adobe-actions{ */
/* margin-bottom: 15px; */
/* } */

.adobe-actions .loading:after,
.adobe-buttons .loading:after {
    content: '';
    /* Obligatoire pour afficher l'élément pseudo-élément */
    width: 16px;
    height: 16px;
    display: inline-block;
    vertical-align: middle;
    margin-left: 5px;
    border: 3px solid #fff;
    /* Couleur blanche pour le loader */
    border-top-color: #333;
    /* Couleur plus sombre pour le dessus du loader */
    border-radius: 50%;
    /* Forme du loader (cercle) */
    border-radius: 50%;
    /* Forme du loader (cercle) */
    animation: spin 1s infinite linear;
    /* Animation de rotation */
}

.adobe-actions-quantity {
    display: flex;
}

.adobe-actions-quantity .decrement-quantity,
.adobe-actions-quantity .increment-quantity {
    margin-right: 5px;
    margin-bottom: 10px;
}

.adobe-actions-quantity .variation-quantity {
    width: 80px;
    text-align: center;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* affiche pour DEV-2481 */
.switch {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 34px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: 0.4s;
}

.slider:before {
    position: absolute;
    content: "";
    height: 26px;
    width: 26px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: 0.4s;
}

input:checked+.slider {
    background-color: #2196F3;
}

input:checked+.slider:before {
    transform: translateX(26px);
}

.slider.round {
    border-radius: 34px;
}

.slider.round:before {
    border-radius: 50%;
}

/* affiche pour DEV-2481 */

/* Icône "sortable" par défaut (visible au survol) */
.sortable::after {
    content: " ⇅";
    /* Icône pour indiquer tri possible */
    font-size: 0.8em;
    color: #aaa;
}

/* Flèche pour tri ascendant */
.sorted-asc::after {
    content: " ▲";
    /* Flèche montante */
    font-size: 0.8em;
    color: #333;
}

/* Flèche pour tri descendant */
.sorted-desc::after {
    content: " ▼";
    /* Flèche descendante */
    font-size: 0.8em;
    color: #333;
}

/* Ajout d'un curseur pointeur pour les colonnes triables */
#elementsTable thead th {
    cursor: pointer;
}

/* Ajout d'une légère mise en surbrillance au survol */
#elementsTable thead th:hover {
    background-color: #f0f0f0;
}

#filtersClient,
#filtersSubscription,
#filtersProduct {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    margin-bottom: 1rem;
}

#filtersClient .filters-button,
#filtersSubscription .filters-button,
#filtersProduct .filters-button {
    border: none;
    padding: 4px;
}

#searchInputClient,
#searchInputSubscription {
    flex: 7;
    margin-bottom: 0;
}

.filter_search {
    flex: 3;
}

.filter_search input {
    margin-bottom: 0;
}

.filter_product_family,
.filter_language,
.filter_operating_system {
    flex: 2;
}


#segmentFilterClient,
#tarifFilterClient,
#statusFilterClient,
#three3YCFilterClient,
#three3YCFilterClientRequested,
#dateFilterClient,
#statusFilterSubscription,
#dateFilterSubscription,
#renewalFilterSubscription {
    flex: 2;
}

#resetFilterProduct,
#resetFilterClient,
#resetFilterSubscription,
#download {
    flex: 0.5;
}

.paginationClient,
.paginationSubscription {
    display: flex;
    justify-content: center;
    padding: 0;
    margin-top: 20px;
    text-align: center;
    margin: 10px 0;
}

.paginationClient li,
.paginationSubscription li {
    list-style: none;
    margin-right: 10px;
    padding: 3px 0 !important;
}

.paginationClient .pagination-button,
.paginationSubscription .pagination-button {
    background-color: #f5f5f5;
    border: 1px solid #ccc;
    color: #333;
    padding: 5px 10px;
    margin: 0 2px;
    cursor: pointer;
}

.paginationClient .pagination-button.active,
.paginationSubscription .pagination-button.active {
    background-color: #b82233;
    color: white;
    cursor: default;
    font-weight: bold;
}

/* Styles pour les infobulles */
.custom-tooltip {
    position: relative;
    display: inline-block;
    cursor: pointer;
}

.tooltip-text {
    visibility: hidden;
    background-color: #555;
    color: #fff;
    text-align: left;
    padding: 5px;
    border-radius: 4px;
    position: absolute;
    z-index: 1;
    bottom: 125%;
    /* Position au-dessus de l'élément */
    left: 95%;
    transform: translateX(-50%);
    white-space: pre-wrap;
    /* Gère les retours à la ligne automatiques */
    opacity: 0;
    transition: opacity 0.3s;
    font-size: 12px;
    width: 300px;
    max-width: 600px;
    /* Largeur maximale pour éviter une infobulle trop longue */
}

.custom-tooltip:hover .tooltip-text {
    visibility: visible;
    opacity: 1;
}

.cell-contact-email a {
    color: inherit;
}

/* DEV-2909 */
.order_display {
    padding: 7px;

    color: white;
    border-radius: 30px;
}

.order_display_ADOBE {
    background: #cf2e2e;
}

.order_display_SHOP {
    background: blueviolet;
}

.woocommerce-orders-table__cell-order-actions a {
    margin-right: 4px !important;
    margin-bottom: 4px !important;
}

#preview-adding-seat-modal-ajax-response {
    max-width: 100%;
    overflow-x: auto;
}

#preview-adding-seat-modal-ajax-response .preview-order {
    width: 100%;
    max-width: 100%;
}

#preview-adding-seat-modal-ajax-response table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
}

#preview-adding-seat-modal-ajax-response th,
#preview-adding-seat-modal-ajax-response td {
    white-space: nowrap;
    /* Empêche le texte de se couper */
    padding: 8px;
}

#preview-adding-seat-modal-ajax-response .preview-order {
    overflow-x: auto;
}

.success-message {
    color: green;
    font-weight: bold;
}

.close-button {
    position: absolute;
    top: 25px;
    right: 25px;
    background: transparent;
    border: none;
    font-size: 20px;
    cursor: pointer;
}

.close-button:hover {
    color: white;
    background-color: black;
}

.field-designation {
    display: flex;
    align-items: center;
}

.field-amount {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Harmonisation des champs quote */
.quote-select,
.quote-date,
.quote-row input[type="text"],
.quote-row input[type="number"],
.quote-row select,
.quote-row input[type="date"],
.quote-row button,
.quote-row .select2-container--default .select2-selection--single {
    height: 42px;
    line-height: 42px;
    padding: 6px 12px;
    font-size: 14px;
    box-sizing: border-box;
}

/* Fix pour Select2 */
.select2-container--default .select2-selection--single {
    border: 1px solid #ccc;
    border-radius: 4px;
}

.quote-title {
    font-size: 24px;
}

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

.quote-box {
    background: white;
    padding: 20px;
    border-radius: 10px;
    /* box-shadow: 0 0 5px rgba(0,0,0,0.1); */
    border: 1px solid #ccc;
    flex: 1;
    min-width: 320px;
}

.quote-box label {
    display: block;
    /* font-weight: bold; */
    margin-top: 15px;
    margin-bottom: 5px;
}

.quote-row {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
    width: 100%;
}

.quote-container .filters-button {
    border: none;
    padding: 4px;
    min-width: 30px;
}

.quote-propale {
    flex: 1;
}

.quote-price {
    color: #007bff;
    font-weight: bold;
    font-size: 22px;
    text-align: right;
    margin-top: 10px;
}

.quote-download {
    text-align: right;
    margin-top: 20px;
}

.quote-product-table.loading-disabled {
    pointer-events: none;
    opacity: 0.6;
}

.loader-inline {
    font-size: 1.2rem;
    display: inline-block;
}

.quote-modal {
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.5);
}

.quote-modal-content {
    background-color: #fff;
    margin: 2% auto;
    padding: 20px;
    border-radius: 8px;
    width: 90%;
}

.quote-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.quote-modal-filters {
    display: flex;
    gap: 10px;
    margin: 10px 0;
    align-items: center;
}

.quote-modal-filters input {
    margin-bottom: 0
}

input.quote-date:disabled {
    color: gray;
    /* Gris clair */
    background-color: lightgrey;
}

select.quote-select:disabled {
    color: gray;
    /* Gris clair */
    background-color: lightgrey;
}

select.quote-select option:disabled {
    color: gray;
    background-color: lightgrey;
    /* ou rien selon le rendu souhaité */
}

.quote-header {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    margin-bottom: 15px;
}

.quote-icon {
    font-size: 20px;
}

.quote-section {
    border-top: 1px solid #ccc;
    margin-top: 30px;
    padding-top: 10px;
}

.quote-libelle-row {
    display: flex;
    align-items: flex-end;
    gap: 10px;
    margin-bottom: 15px;
}

.quote-button {
    margin-bottom: 10px;
}

.quote-separator {
    margin: 20px 0;
    border: none;
    border-top: 1px solid #ddd;
}

.quote-product-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.quote-product-table th,
.quote-product-table td {
    padding: 8px;
    text-align: left;
    border: 1px solid #ccc;
}

.quote-product-table th {
    background-color: #eee;
    font-weight: bold;
}

.quote-product-table td strong {
    display: block;
}

.quote-row-label {
    min-width: 60px;
    font-size: 10px;
}

.variation-quantity-quote {
    margin-top: 0px;
    margin-bottom: 0px;
    max-width: 60px;
}

.select2-container .select2-selection--single {
    height: 38px;
    padding: 6px 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
    line-height: 24px;
}

.select2-selection__clear {
    display: none;
}

.quote-confirmation-msg {
    background-color: #e1f5e1;
    color: #2e7d32;
    padding: 10px;
    margin-bottom: 10px;
    border: 1px solid #a5d6a7;
    border-radius: 4px;
    font-weight: bold;
}

#adobe-loader-overlay.adobe-loader-overlay,
#quote-loader-overlay.quote-loader-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.85);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.adobe-loader-container {
    text-align: center;
}

.adobe-spinner {
    width: 40px;
    height: 40px;
    border: 5px solid #ccc;
    border-top-color: #0073aa;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 15px;
}

.adobe-loader-message {
    font-size: 1.2rem;
    font-weight: 500;
    color: #333;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.licences-details-row {
    background: #fafafa;
}

.licences-details-cell {
    padding: .75rem 1rem;
}

.licences-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: .75rem;
}

.licence-card {
    border: 1px solid #e5e5e5;
    border-radius: .5rem;
    padding: .6rem .75rem;
    background: #fff;
    box-shadow: 0 1px 0 rgba(0, 0, 0, .03);
}

.licence-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: .5rem;
    margin-bottom: .35rem;
}

.licence-product {
    font-weight: 600;
    line-height: 1.2;
    display: inline-block;
}

.licence-qty {
    font-size: .9rem;
    opacity: .8;
    white-space: nowrap;
}

.licence-meta {
    display: flex;
    flex-wrap: wrap;
    gap: .35rem;
    margin-top: .25rem;
}

.licence-pill {
    display: inline-flex;
    align-items: center;
    gap: .25rem;
    padding: .2rem .5rem;
    border: 1px solid #e5e5e5;
    border-radius: 999px;
    font-size: .85rem;
    background: #f7f7f7;
}

.licence-pill.expiry {
    background: #fff5f5;
    border-color: #f0caca;
    color: #a33;
}

.licence-pill.ref {
    background: #f3f6ff;
    border-color: #dfe7ff;
    color: #334eaa;
}

.flash-message {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #38a169;
    /* vert par défaut */
    color: #fff;
    padding: 12px 40px 12px 18px;
    border-radius: 6px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, .2);
    z-index: 9999;
    font-size: 14px;
}

.flash-error {
    background: #e53e3e;
    /* rouge */
}

.flash-close {
    position: absolute;
    top: 6px;
    right: 10px;
    background: none;
    border: none;
    font-size: 18px;
    color: #fff;
    cursor: pointer;
}

.flash-close:hover {
    color: #000;
}