.payment-disable {
    opacity: .4
}

.payment-not-available {
    opacity: .7
}

.color-red {
    color: red
}

::-webkit-scrollbar {
    display: none
}

.requests-message {
    padding-top: 20px;
    padding-right: 5px;
    overflow-y: auto;
    overflow-x: hidden;
    min-height: 200px;
    max-height: calc(100vh - 200px);
}

.test span.select2.select2-container {
    position: absolute;
}

.requests-message::-webkit-scrollbar:horizontal,
#code_user .select2-container--default .select2-selection--multiple:-webkit-scrollbar:horizontal {
    display: none;
}

.requests-message::-webkit-scrollbar-corner,
#code_user .select2-container--default .select2-selection--multiple::-webkit-scrollbar-corner {
    background: transparent;
}

.requests-message::-webkit-scrollbar:vertical,
#code_user .select2-container--default .select2-selection--multiple::-webkit-scrollbar:vertical {
    display: block;
    width: 8px;
}

.requests-message::-webkit-scrollbar-track,
#code_user .select2-container--default .select2-selection--multiple::-webkit-scrollbar-track {
    background: #fff;
    border-radius: 50px;
    margin-top: 10px;
    margin-bottom: 10px;
}

.requests-message::-webkit-scrollbar-thumb,
#code_user .select2-container--default .select2-selection--multiple::-webkit-scrollbar-thumb {
    background: #e4e8e4;
    border-radius: 50px;
}

.requests-message::-webkit-scrollbar-thumb:hover,
#code_user .select2-container--default .select2-selection--multiple::-webkit-scrollbar-thumb:hover {
    background: #B2B2B8;
}

.color-primary {
    color: #2c59f5
}

.disabled-nav {
    opacity: .5
}

.color-secondary {
    color: #d2cff2
}

@media (max-width: 1074px) {
    .logo-menu {
        display: block !important
    }
}

.btn-secondary1 {
    color: #FFF;
    background-color: #02723b;
    border-color: #02723b
}

.btn-secondary1:hover {
    color: #FFF;
    background-color: #02723b;
    border-color: #02723b
}

.logo-ibilling {
    width: 100%
}

.card.login {
    border-radius: 30px;
    transition: none;
    box-shadow: 0 0 212.5px 37.5px rgba(255, 255, 255, 0.2)
}

.form-control.login {
    padding: 0 27px;
    box-shadow: 0 0 67.5px 7.5px rgba(44, 89, 245, 0.25)
}

.input-sf:disabled {
    background-color: rgba(246, 239, 233, 0.7) !important;
    opacity: 0.7;
}

.logo-menu {
    display: none
}

.logo-menu.is-active {
    display: initial
}

body.test-mode .header {
    background-color: #313131
}

body.test-mode .nav-header {
    background-color: #313131
}

body.test-mode .nk-sidebar {
    background-color: #313131
}

body.test-mode .nk-sidebar .metismenu {
    background-color: #313131
}

.card-sf {
    background: #FFF;
    box-shadow: none !important;
}

.card-pf-grey {
    background: rgb(250, 250, 250);
    box-shadow: none !important;
}

.card-h100 {
    height: 100%;
}

.is-invalid {
    border-radius: 10px!important;
    border: 1px solid #E11433 !important;
    border-color: #E11433 !important;
}

.cg {
    margin-left: -4px;
    margin-right: -4px;
}

.cg > [class*='col-'] {
    padding-left: 4px;
    padding-right: 4px;
    padding-bottom: 8px;
}

.cg-4 {
    margin-left: -4px;
    margin-right: -4px;
}

.cg-4 > [class*='col-'] {
    padding-left: 4px;
    padding-right: 4px;
    padding-bottom: 8px!important;
}

.cg-8 {
    margin-left: -8px;
    margin-right: -8px;
}

.cg-8 > [class*='col-'] {
    padding-left: 8px;
    padding-right: 8px;
    padding-bottom: 16px;
}

.mt-auto {
    margin-top: auto !important;
}

.mr-auto {
    margin-right: auto !important;
}

/* Custom table */
thead {
    background-color: #FFFFFF;
    color: #000000;
}

.dataTables_wrapper .dataTables_length, .dataTables_wrapper .dataTables_filter, .dataTables_wrapper .dataTables_info, .dataTables_wrapper .dataTables_processing, .dataTables_wrapper .dataTables_paginate {
    color: #000000 !important;
}

th:first-child {
    border-top-left-radius: 20px;
    border-bottom-left-radius: 8px;
}

th:last-child {
    border-top-right-radius: 20px;
    border-bottom-right-radius: 8px;
}

table.dataTable thead th {
    letter-spacing: initial !important;
    text-transform: initial !important;
    font-size: 10px !important;
}

.test .select2-selection.select2-selection--multiple {
    opacity: 0 !important;
    height: 0 !important;
    position: absolute !important;
    pointer-events: none !important;
}


.select2-container--default .select2-results__option--highlighted.select2-results__option--selectable {
    border-radius: 6px !important;
    background-color: #345333 !important;
    color: white !important;
}

.select2-container--default .select2-results__option--selected {
    border-radius: 6px !important;
    background-color: #345333 !important;
    color: white !important;
}

.select2-dropdown {
    padding: 10px !important;
}

.select2-dropdown {
    border-radius: 10px !important;
    border: 1px solid #e0e0e0 !important;
}

.select2-results__option {
    padding: 8px 10px !important;
}

table.dataTable thead th, table.dataTable thead td {
    padding-right: 25px!important;
    padding-top: 13px!important;
    padding-bottom: 13px!important;
    padding-left: 12px!important;
}

.dataTables_wrapper input[type="search"], .dataTables_wrapper input[type="text"], .dataTables_wrapper select {
    border-radius: 10px;
    border: 0;
    color: #000000;
    font-size: 13px;
    padding: 11px 15px;
}

table.dataTable tbody tr, table.dataTable tbody td {
    background: #FFFFFF !important;
    color: #000000;
}

table.dataTable {
    border-collapse: separate !important;
    border-spacing: 0 5px !important;
}

table.dataTable.no-footer {
    border-bottom: 0 !important;
}

table.dataTable.row-border tbody th, table.dataTable.row-border tbody td, table.dataTable.display tbody th, table.dataTable.display tbody td {
    border: 0 !important;
}

.dataTables_wrapper .dataTables_paginate .paginate_button.current, .dataTables_wrapper .dataTables_paginate .paginate_button.current:hover {
    color: white !important;
    background: #DE8916 !important;
    width: 35px;
    font-weight: 600;
}

table.dataTable tbody td {
    font-size: 12px;
    font-weight: 600;
    color: #000000;
}

table.dataTable tbody th, table.dataTable tbody td {
    padding: 13px 12px !important;
}

table.table-sf tbody tr td:first-child {
    border-top-left-radius: 8px;
    border-bottom-left-radius: 8px;
}

table.table-sf tbody tr td:last-child {
    border-top-right-radius: 8px;
    border-bottom-right-radius: 8px;
}

table.table-sf tbody tr:last-child td:first-child {
    border-bottom-left-radius: 20px;
}

table.table-sf tbody tr:last-child td:last-child {
    border-bottom-right-radius: 20px;
}

.dataTables_wrapper .dataTables_info, .dataTables_wrapper .dataTables_paginate {
    margin-top: 15px !important;
}

.dataTables_wrapper .dataTables_info {
    font-size: 11px;
}

.dataTables_paginate .paginate_button.previous,
.dataTables_paginate .paginate_button.next {
    display: none !important;
}

.dataTables_wrapper .dataTables_paginate .paginate_button.current, .dataTables_wrapper .dataTables_paginate .paginate_button.current:hover {
    width: 40px;
    height: 40px;
    line-height: 40px;
    padding: 0;
    border-radius: 50%;
    text-align: center;
    display: inline-block;
    box-sizing: border-box;
}

table.dataTable tbody td:not(:last-child) {
    position: relative;
    padding-right: 25px !important;
}

table.dataTable tbody td:not(:last-child)::after {
    content: "";
    position: absolute;
    top: 10px;
    bottom: 10px;
    right: 5px;
    width: 5px;
    background-color: #efeff5;
    border-radius: 8px;
}

table.dataTable thead th:not(:last-child) {
    position: relative;
    padding-right: 20px; /* un peu plus large pour la bordure et la flèche de tri */
}

table.dataTable thead th:not(:last-child)::after {
    content: "";
    position: absolute;
    top: 10px;
    bottom: 10px;
    right: 5px;
    width: 5px;
    background-color: #efeff5;
    border-radius: 8px;
}

table.dataTable thead .sorting, table.dataTable thead .sorting_asc, table.dataTable thead .sorting_desc, table.dataTable thead .sorting_asc_disabled, table.dataTable thead .sorting_desc_disabled {
    background-position-x: calc(100% - 10px) !important;
}

#DataTables_Table_0_filter input[type="search"], #DataTables_Table_1_filter input[type="search"], #DataTables_Table_2_filter input[type="search"] {
    background-color: white;
    color: black;
    padding-left: 30px;
    background-image: url('/img/pictos/search.svg');
    background-repeat: no-repeat;
    background-position: 4% center;
    background-size: 12px 12px;
}

#DataTables_Table_0_filter input[type="search"]::placeholder, #DataTables_Table_1_filter input[type="search"]::placeholder, #DataTables_Table_2_filter input[type="search"]::placeholder {
    color: #000000B2;
}

.bt-20 {
    border-top-left-radius: 20px !important;
    border-top-right-radius: 20px !important;
}

.btn-stats-usage-up {
    padding: 5px 12px !important;
    border-radius: 10px !important;
    font-size: 10px !important;
    font-weight: 500 !important;
    box-shadow: none !important;
}

/* Arrondi global */
.border-0 {
    border: 0 !important;
}

.border-radius-5 {
    border-radius: 5px !important;
}

.border-radius-16 {
    border-radius: 16px !important;
}

.border-radius-10 {
    border-radius: 10px !important;
}

.border-radius-8 {
    border-radius: 8px !important;
}

.border-radius-top16-bottom40 {
    border-top-left-radius: 16px;
    border-top-right-radius: 16px;
    border-bottom-left-radius: 40px;
    border-bottom-right-radius: 40px;
}

.border-radius-tl40-tr8-bl16-br8 {
    border-top-left-radius: 40px;
    border-top-right-radius: 8px;
    border-bottom-left-radius: 16px;
    border-bottom-right-radius: 8px;
}

.border-radius-tl8-tr40-bl8-br16 {
    border-top-left-radius: 8px;
    border-top-right-radius: 40px;
    border-bottom-left-radius: 8px;
    border-bottom-right-radius: 16px;
}

.border-radius-tl16-tr8-bl8-br8 {
    border-top-left-radius: 16px;
    border-top-right-radius: 8px;
    border-bottom-left-radius: 8px;
    border-bottom-right-radius: 8px;
}

.border-radius-tl8-tr8-bl8-br16 {
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
    border-bottom-left-radius: 8px;
    border-bottom-right-radius: 16px;
}

/* Coins spécifiques */

/* Top Left */
.border-radius-tl-8 {
    border-top-left-radius: 8px !important;
}

.border-radius-tl-10 {
    border-top-left-radius: 10px !important;
}

.border-radius-tl-16 {
    border-top-left-radius: 16px !important;
}

.border-radius-tl-20 {
    border-top-left-radius: 20px !important;
}

.border-radius-tl-40 {
    border-top-left-radius: 40px !important;
}

/* Top Right */
.border-radius-tr-8 {
    border-top-right-radius: 8px !important;
}

.border-radius-tr-10 {
    border-top-right-radius: 10px !important;
}

.border-radius-tr-16 {
    border-top-right-radius: 16px !important;
}

.border-radius-tr-20 {
    border-top-right-radius: 20px !important;
}

.border-radius-tr-40 {
    border-top-right-radius: 40px !important;
}

/* Bottom Left */
.border-radius-bl-8 {
    border-bottom-left-radius: 8px !important;
}

.border-radius-bl-10 {
    border-bottom-left-radius: 10px !important;
}

.border-radius-bl-16 {
    border-bottom-left-radius: 16px !important;
}

.border-radius-bl-20 {
    border-bottom-left-radius: 20px !important;
}

.border-radius-bl-40 {
    border-bottom-left-radius: 40px !important;
}

/* Bottom Right */
.border-radius-br-8 {
    border-bottom-right-radius: 8px !important;
}

.border-radius-br-10 {
    border-bottom-right-radius: 10px !important;
}

.border-radius-br-16 {
    border-bottom-right-radius: 16px !important;
}

.border-radius-br-20 {
    border-bottom-right-radius: 20px !important;
}

.border-radius-br-40 {
    border-bottom-right-radius: 40px !important;
}

.mb-8px {
    margin-bottom: 8px !important;
}


.table-top-0, .table-top-1 {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 0;
    margin-bottom: 16px;
}

/** Badge */
.badge {
    font-size: 10px !important;
    font-weight: 500 !important;
    line-height: 1.3 !important;
}

.badge-success {
    background-color: #34C759;
    color: #000000;
}

.badge-danger {
    background-color: #E11433;
    color: #FFFFFF;
}

.badge-black {
    background-color: #000000;
    color: #FFFFFF;
}

.badge-pill {
    border-radius: 10px !important;
    gap: 5px !important;
    padding: 3px 7px !important;
}


.campaign-img {
    border-radius: 20px;
    box-shadow: 0px 0px 51.158px 0px rgba(30, 71, 247, 0.40);
}

.campaign-img-badge {
    position: absolute;
    top: 13px;
    left: 13px;
    padding: 8px 13px;
    font-size: 13px !important;
}


#code_user .select2-container--default .select2-selection--multiple {
    border: 1px solid #dddfe1 !important;
    min-height: 3rem !important;
    border-radius: 10px !important;
    background-color: #FFFFFF !important;
    font-weight: 400 !important;
    max-height: 105px;
    overflow: scroll;
    padding-right: 10px;
    overflow-y: auto;
    overflow-x: hidden;
}

#code_user .select2-container--default .select2-selection--multiple .select2-selection__choice {
    border: 0 !important;
    color: #000 !important;
    background-color: rgba(239, 239, 244, 1) !important;
    border-radius: 10px !important;
}

#code_user .select2-container--default .select2-selection--multiple .select2-selection__choice__remove {
    border-right: 0 !important;
    color: #000 !important;
    font-size: 18px !important;
    font-weight: normal !important;
    padding: 0px 5px !important;
}

#code_user .select2-container--default .select2-selection--multiple .select2-selection__choice__display {
    font-size: 13px !important;
}

.swiper-controls {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    margin-top: 40px;
}

.swiper {
    overflow: initial;
}

.swiper-button-prev.custom-nav,
.swiper-button-next.custom-nav {
    background: #EFEFF4;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #000;
    transition: background 0.2s ease;
    position: static; /* override Swiper's absolute positioning */
}

.swiper-button-prev:after, .swiper-rtl .swiper-button-next:after {
    content: ''!important;
}

.swiper-button-next:after, .swiper-rtl .swiper-button-next:after {
    content: ''!important;
}

.swiper-button-next.swiper-button-disabled, .swiper-button-prev.swiper-button-disabled {
    opacity: 0.5;
}

.swiper-button-next.custom-nav:hover,
.swiper-button-prev.custom-nav:hover {
    background: #ebebf2;
}

.swiper-button-next::after,
.swiper-button-prev::after {
    font-size: 16px;
    font-weight: 600;
}

.toggle-option {
    flex: 1 1 0;
    border: none;
    background: transparent;
    padding: 7px;
    border-radius: 999px;
    font-weight: 400;
    color: #000;
    font-size: 13px;
    transition: all 0.2s ease;
    cursor: pointer;
}

.stats-users-usage {
    display: flex;
    align-items: center;
    gap: 12px; /* espace entre barre et texte */
}

.progress {
    flex: 1; /* pour prendre l'espace dispo */
    height: 10px;
    background-color: #e4e8e4;
    border-radius: 4px;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    transition: width 0.3s ease;
}

.stats-users-usage-text {
    font-size: 14px;
    white-space: nowrap;
}

.toggle-option.active {
    background: #DE8916;
    color: #FFF;
    font-weight: 600;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
}

.gradient-text {
    background: linear-gradient(90deg, #1d4ed8, #7e3af2, #ec4899);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.dataTables_wrapper .dataTables_paginate .paginate_button.current, .dataTables_wrapper .dataTables_paginate .paginate_button.current:hover {
    color: white!important;
}

.radius-left {
    border-top-left-radius: 40px;
    border-bottom-left-radius: 40px;
    border-top-right-radius: 16px;
    border-bottom-right-radius: 16px;
}

.radius-middle {
    border-radius: 16px;
}

.radius-right {
    border-top-right-radius: 40px;
    border-bottom-right-radius: 40px;
    border-top-left-radius: 16px;
    border-bottom-left-radius: 16px;
}

.list-group-item {
    box-shadow: none;
    background: white;
    padding: 15px 25px;
    border-radius: 15px !important;
    color: #345333;
    border: 0;
}

.list-group-item:hover {
    box-shadow: none;
    background: white;
    color: #345333;
}

.list-group-item.active {
    background: #345333;
    padding: 25px;
    border-top: 0;
    border-radius: 15px !important;
    color: white;
}
