html {
    font-family: sans-serif;
    position: relative;
    min-height: 100%;
}

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

[x-cloak] {
    display: none !important;
}

.nav,
.pagination,
.carousel,
.panel-title a {
    cursor: pointer;
}

.spacer-5 {
    margin-top: 5px;
}

.spacer-10 {
    margin-top: 10px;
}

.spacer-15 {
    margin-top: 15px;
}

.spacer-20 {
    margin-top: 20px;
}

.spacer-30 {
    margin-top: 30px;
}

.st-sort-ascent:before {
    content: "\25B2";
}

.st-sort-descent:before {
    content: "\25BC";
}

.nav-tabs {
    border-bottom: 1px solid #ddd;
    margin-bottom: 10px;
}

.loader {
    border: 16px solid #f3f3f3;
    border-radius: 50%;
    border-top: 16px solid #3498db;
    width: 120px;
    height: 120px;
    -webkit-animation: spin 2s linear infinite;
    /* Safari */
    animation: spin 2s linear infinite;
    margin-left: auto;
    margin-right: auto;
    margin-top: 250px;
}

/* Safari */
@-webkit-keyframes spin {
    0% {
        -webkit-transform: rotate(0deg);
    }

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

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

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

#backdrop {
    position: fixed;
    top: 0px;
    .layout-top-nav #navbarCollapse .navbar-nav .dropdown-item .nav-link {
        padding: 8px 5px 5px;
    }
    bottom: 0px;
    left: 0px;
    right: 0px;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1040 !important;
}

footer {
    margin-top: auto;
    background-color: #f5f5f5;
}

.footer-text {
    margin: 20px 0;
}

.distinguished-label {
    color: red;
    font-size: 1em;
    font-weight: bold;
}

.navbar-nav .distinguished-label {
    font-size: 2em;
}

.main-header .title {
    color: black;
    font-size: 2em;
}

.checkbox input[type="checkbox"] {
    margin-top: 0px;
}

.checkbox label {
    display: inline-block;
    padding-right: 10px;
    white-space: nowrap;
}

.checkbox input {
    vertical-align: middle;
}

.checkbox label span {
    vertical-align: middle;
}

li.alert {
    padding: 1px 1px !important;
    margin-bottom: 0px !important;
}

label.item {
    font-weight: normal;
    margin-right: 10px;
}

label.item input {
    margin-right: 10px;
}

.summary-bold {
    font-weight: bold;
}

.summary-italic {
    font-style: italic;
}

.sort-table-header {
    cursor: pointer;
}

td {
    overflow-wrap: break-word;
    word-break: break-all;
}

#reporting-consumption .table-reporting {
    width: 90%;
    max-width: 90%;
    margin-bottom: 20px;
    margin-left: 50px;
}

.mb-1 {
    margin-bottom: 0.25rem;
}

.mb-2 {
    margin-bottom: 0.5rem;
}

.mr-3 {
    margin-right: 3px;
}

.mr-10 {
    margin-right: 10px;
}

.mt-10 {
    margin-top: 10px;
}

.pt-10 {
    padding-top: 10px;
}

.pb-20 {
    padding-bottom: 20px;
}

#create_group_free_checkbox,
#update_group_free_checkbox {
    margin-top: -10px;
}

span.filterfield {
    position: relative;
    display: inline-flex;
    align-items: center;
    width: 100px;
    margin-right: 5px;
}

span.filterfield span {
    position: absolute;
    display: block;
    right: 3px;
    width: 15px;
    height: 15px;
    border-radius: 50%;
    color: #fff;
    background-color: #ccc;
    font: 13px monospace;
    text-align: center;
    line-height: 1em;
    cursor: pointer;
}

span.filterfield input {
    padding-right: 18px;
    box-sizing: border-box;
}

.csstooltip {
    width: 200px;
}

.panel-heading {
    padding: 10px 15px;
    border-bottom: 1px solid transparent;
    border-top-left-radius: 3px;
    border-top-right-radius: 3px;
}

.panel {
    -webkit-box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    margin-bottom: 20px;
    background-color: #fff;
    border: 1px solid transparent;
    border-top-color: transparent;
    border-right-color: transparent;
    border-bottom-color: transparent;
    border-left-color: transparent;
    border-radius: 4px;
    -webkit-box-shadow: 0 1px 1px rgba(0, 0, 0, 0.05);
    box-shadow: 0 1px 1px rgba(0, 0, 0, 0.05);
}

.panel-primary {
    border-color: #337ab7;
}

.panel-primary > .panel-heading {
    color: #fff;
    background-color: #337ab7;
    border-color: #337ab7;
}

.container .btn-primary {
    color: #fff;
    background-color: #337ab7;
    border-color: #337ab7;
}

.container .page-item.active .page-link {
    z-index: 3;
    color: #fff;
    background-color: #337ab7;
    border-color: #337ab7;
}

.panel-body {
    padding: 5px;
}

.form-group {
    margin-bottom: 15px;
}

.shadowed {
    padding: 5px;
    background-color: #e1f3f7;
    border-color: #b6effb;
}

.well {
    min-height: 20px;
    padding: 19px;
    margin-bottom: 20px;
    background-color: #f5f5f5;
    border: 1px solid #e3e3e3;
    border-radius: 4px;
    -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.05);
    box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.05);
}

.well h5,
.well .h5 {
    font-size: 14px;
    font-family: inherit;
    font-weight: 500;
    line-height: 1.1;
    color: inherit;
}

.small-flag {
    border: 1px solid #c0c0c0;
    max-width: 75px;
    margin-right: 10px;
}

.very-small-flag {
    border: 1px solid #c0c0c0;
    max-width: 25px;
    margin-right: 10px;
}

.small-flag.current {
    opacity: 0.5;
}

.small-icon {
    border: 0px solid #c0c0c0;
    width: 80px;
    background-color: #ffffff;
    margin-right: 5px;
}

.small-icon.current {
    opacity: 0.5;
}

.page-item.disabled {
    display: none;
}

.content-wrapper span.select2-container ~ label.required {
    width: 100%;
}

.content-wrapper label.required::after {
    color: #e32;
    content: " *";
    position: relative;
    top: 0px;
    left: 0px;
}

.content-wrapper select:not(:disabled) + label.required::after,
.content-wrapper select.select2:not(:disabled) + span + label.required::after,
.form-floating
    > .form-control:not(:placeholder-shown):not(:disabled)
    ~ label::after {
    color: #e32;
    content: " *";
    position: unset;
}

span.required {
    display: block;
}
span.required:before {
    color: #e32;
    content: "* ";
    display: inline;
}

label.requiredEither:after {
    color: #e32;
    content: " **";
    display: inline;
}
span.requiredEither {
    display: block;
}
span.requiredEither:before {
    color: #e32;
    content: "** ";
    display: inline;
}

label.requiredAllIfAny:after {
    color: #e32;
    content: " ***";
    display: inline;
}
span.requiredAllIfAny {
    display: block;
}
span.requiredAllIfAny:before {
    color: #e32;
    content: "*** ";
    display: inline;
}

.container .btn-primary.btn-white-bordered {
    border-color: white !important;
}

.row .nopadding {
    padding-left: 0px !important;
    padding-right: 0px !important;
}

.panel-warning {
    border-color: #faebcc;
}

.panel-warning > .panel-heading {
    background-image: -webkit-linear-gradient(top, #fcf8e3 0%, #faf2cc 100%);
    background-image: -o-linear-gradient(top, #fcf8e3 0%, #faf2cc 100%);
    background-image: -webkit-gradient(
        linear,
        left top,
        left bottom,
        from(#fcf8e3),
        to(#faf2cc)
    );
    background-image: linear-gradient(to bottom, #fcf8e3 0%, #faf2cc 100%);
    filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#fffcf8e3', endColorstr='#fffaf2cc', GradientType=0);
    background-repeat: repeat-x;
}

.main-sidebar .brand-link {
    display: inline-block;
}

.main-sidebar .brand-link .brand-image {
    margin-left: 0;
    margin-right: 0;
    max-width: 100%;
    max-height: 85%;
    background-color: white;
}

.w-50 {
    width: 50% !important;
    margin: auto;
}

.w-40 {
    width: 40% !important;
    margin: auto;
}

.w-30 {
    width: 30% !important;
    margin: auto;
}

.w-20 {
    width: 20% !important;
    margin: auto;
}

.w-10 {
    width: 10% !important;
    margin: auto;
}

.nav-link {
    border-radius: 5px;
}

.nav-link.active-danger {
    background-color: #dc3545;
    color: white;
}

.nav-link.active-danger:hover {
    background-color: #dc3545 !important;
}

.nav-link.active-danger:hover p,
.nav-link.active-danger:hover i {
    color: #ffffff;
}

.main-sidebar {
    background-color: white;
}

.layout-top-nav nav .container {
    height: 100px;
    width: 100%;
    margin: 0px;
}

.layout-top-nav .control-sidebar {
    position: absolute;
    top: 120px;
}

#navbarConfiguration {
    position: relative;
    z-index: 2001 !important;
}

.layout-top-nav .nav-pills .nav-link,
.layout-top-nav .nav-pills .nav-link.active,
.layout-top-nav .nav-pills .nav-link.active-danger {
    color: white;
}

.layout-top-nav .nav-pills .nav-item.dropdown.show .nav-link,
.layout-top-nav .nav-pills .nav-item.dropdown.show .nav-link.active,
.layout-top-nav .nav-pills .nav-item.dropdown.show .nav-link:hover,
.layout-top-nav .nav-pills .nav-item.dropdown.show .nav-link.active:hover {
    color: black;
}

.layout-top-nav #navbarCollapse .navbar-nav .dropdown-item {
    padding-top: 0px;
    padding-bottom: 0px;
}

.layout-top-nav #navbarCollapse .navbar-nav .dropdown-item .nav-link {
    padding: 8px 5px 5px;
}

.layout-top-nav #navbarCollapse .navbar-nav .dropdown-menu .nav-decorator {
    padding: 5px 10px;
    color: rgb(119, 119, 119);
}

.layout-top-nav #navbarCollapse .navbar-nav .nav-decorator:hover {
    background-color: transparent;
}

.layout-top-nav .dropdown-item:focus,
.layout-top-nav .dropdown-item:hover {
    color: #16181b;
    text-decoration: none;
    background-color: #d8d6d6;
}

.layout-top-nav .nav-pills .nav-link:not(.active):hover {
    color: white;
}

.full-width {
    width: 100%;
    max-width: 100%;
}

.wrapper .content-wrapper {
    min-height: calc(85vh - 56px - 60px) !important;
    display: flex !important;
    flex-direction: column !important;
}

.wrapper .content-wrapper > .content {
    padding: 0rem 1.5rem;
}

.main-footer {
    position: sticky !important;
    bottom: 0 !important;
    display: block !important;
    visibility: visible !important;
    padding-top: 0px !important;
}

.control-sidebar ul {
    display: flex;
    list-style: none;
    flex-direction: row;
}

.control-sidebar li {
    display: inline-block;
}

.content-wrapper .table.table-striped tr.row-selected td,
.content-wrapper .table.table-striped tr.row-selected th {
    background-color: #8dc080;
}

.nav-link.current-menu,
.dropdown-item.current-menu {
    border: 1px solid #007bff;
    background-color: #d9e3f5;
}

.nav-link.current-menu p,
.dropdown-item.current-menu p {
    color: #007bff;
}

.layout-top-nav #navbarCollapse .navbar-nav .dropdown-item .nav-link:hover {
    background-color: #d9e3f5;
}

#topBtn {
    display: none; /* Hidden by default */
    position: fixed; /* Fixed/sticky position */
    bottom: 20px; /* Place the button at the bottom of the page */
    right: 30px; /* Place the button 30px from the right */
    z-index: 99; /* Make sure it does not overlap */
    border: none; /* Remove borders */
    outline: none; /* Remove outline */
    background-color: #337ab7; /* Set a background color */
    color: white; /* Text color */
    cursor: pointer; /* Add a mouse pointer on hover */
    padding: 15px; /* Some padding */
    border-radius: 10px; /* Rounded corners */
    font-size: 18px; /* Increase font size */
}

#topBtn:hover {
    background-color: #555; /* Add a dark-grey background on hover */
}

.fa-xl {
    font-size: 1em;
    width: 30px !important;
    height: 30px !important;
}

.fa-2xl {
    font-size: 2em;
}

.fa-4xl {
    font-size: 4em;
}

.fa-6xl {
    font-size: 6em;
}

.form-floating .select2-container .select2-selection--single {
    height: calc(3.5rem + 2px);
}

.form-floating
    .select2-container--default
    .select2-selection--single
    .select2-selection__rendered {
    margin-top: 17px;
    padding-left: 0px;
    margin-left: -3px;
}

.uix-control-right {
    font-family: "FontAwesome";
    content: "\f2f6";
}

.multiselect-selected-list .uix-control-right {
    transform: rotate(180deg);
}

.form-floating .ui-widget {
    font-family: sans-serif;
}

.ui-widget-header {
    min-height: 50px !important;
    background-color: #ffffff !important;
    opacity: 0.65;
}

.ui-widget-header .header-text {
    font-size: 12px;
    padding: 0px;
}

.uix-search {
    height: calc(2rem + 2px) !important;
}

.multiselect-element-wrapper .ui-state-default {
    background: none !important;
    border: none;
}

.multiselect-element-wrapper .ui-state-default:nth-child(even) {
    background: #f4f6f9 !important;
}

html,
body {
    max-width: 100%;
    overflow-x: hidden;
}

.uix-multiselect.ui-widget .ui-widget-header .uix-control-right:hover {
    cursor: pointer;
}

.nav-pills .nav-link.active.disabled {
    background-color: rgb(38, 90, 136);
    opacity: 0.65;
}

#formModal .select2-selection__rendered {
    margin-top: -10px;
}

.select2-container {
    min-width: 100%;
}

#formModal select.is-invalid + .select2-container .selection {
    border: none;
}

#formModal .select2-container .selection {
    display: block;
    width: 100%;
    height: calc(2.25rem + 2px);
    padding: 0.375rem 0.75rem;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.5;
    color: #495057;
    background-color: #fff;
    background-clip: padding-box;
    border: 1px solid #ced4da;
    border-radius: 0.25rem;
    box-shadow: inset 0 0 0 transparent;
    transition:
        border-color 0.15s ease-in-out,
        box-shadow 0.15s ease-in-out;
    clear: both;
}

#formModal .select2-container--focus {
    max-width: 100%;
    width: 99% !important;
}

#formModal .select2-selection--single {
    border: none !important;
}

#formModal .form-check-input {
    margin-left: 0px;
}

ul.tags,
ul.roles,
ul.mail {
    list-style-type: none;
}

ul.actions li,
ul.user-category li {
    display: inline;
    text-align: center;
    padding: 2px;
    margin: 0;
}

ul.tags li label,
ul.mail li label,
label.user-category {
    font-weight: normal !important;
}

#modalContent ul {
    padding: 0rem 1rem !important;
}

#modalContent .condensed th,
#modalContent .condensed td {
    padding: 0rem !important;
}

#modalContent .condensed td.pl-1 {
    padding: 0rem 1rem !important;
}

#modalContent .bordered th,
#modalContent .bordered td {
    border: 1px solid #000 !important;
}

.inline-form .select2-container--default .select2-selection--single {
    padding: 0 !important;
}

.form-control.datepicker.w-100 {
    width: 100px !important;
}

.blue-link {
    color: rgb(0, 107, 220);
}

.form-control.valid {
    border-color: #198754;
    padding-right: calc(1.5em + 0.75rem);
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 8'%3e%3cpath fill='%23198754' d='M2.3 6.73L.6 4.53c-.4-1.04.46-1.4 1.1-.8l1.1 1.4 3.4-3.8c.6-.63 1.6-.27 1.2.7l-4 4.6c-.43.5-.8.4-1.1.1z'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right calc(0.375em + 0.1875rem) center;
    background-size: calc(0.75em + 0.375rem) calc(0.75em + 0.375rem);
}

.form-control.invalid {
    border-color: #dc3545;
    padding-right: calc(1.5em + 0.75rem);
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' width='12' height='12' fill='none' stroke='%23dc3545'%3e%3ccircle cx='6' cy='6' r='4.5'/%3e%3cpath stroke-linejoin='round' d='M5.8 3.6h.4L6 6.5z'/%3e%3ccircle cx='6' cy='8.2' r='.6' fill='%23dc3545' stroke='none'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right calc(0.375em + 0.1875rem) center;
    background-size: calc(0.75em + 0.375rem) calc(0.75em + 0.375rem);
}

table tr.current td {
    background-color: #17a2b8;
    color: white !important;
}

.current .link-primary {
    color: white !important;
}

.modal-medium {
    width: 650px;
}

.table > tbody > tr.warning > td,
.table > tfoot > tr.warning > td,
.table > thead > tr.warning > th,
.table > tbody > tr.warning > th,
.table > tfoot > tr.warning > th {
    background-color: #fcf8e3;
}

.table > tbody > tr.danger > td,
.table > tfoot > tr.danger > td,
.table > thead > tr.danger > th,
.table > tbody > tr.danger > th,
.table > tfoot > tr.danger > th {
    background-color: #f2dede;
}

.select2.is-invalid ~ span.select2-container {
    border: 1px solid #dc3545;
    border-radius: 0.25rem;
}

.select2.is-invalid ~ span .select2-selection.select2-selection--single {
    border: 1px solid #dc3545;
    padding-right: 2.25rem !important;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='none' stroke='%23dc3545' viewBox='0 0 12 12'%3e%3ccircle cx='6' cy='6' r='4.5'/%3e%3cpath stroke-linejoin='round' d='M5.8 3.6h.4L6 6.5z'/%3e%3ccircle cx='6' cy='8.2' r='.6' fill='%23dc3545' stroke='none'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right calc(0.375em + 0.1875rem) center;
    background-size: calc(0.75em + 0.375rem) calc(0.75em + 0.375rem);
}

.select2.is-valid ~ span .select2-selection.select2-selection--single {
    border: 1px solid #28a745;
    padding-right: 2.25rem !important;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='8' height='8' viewBox='0 0 8 8'%3e%3cpath fill='%2328a745' d='M2.3 6.73L.6 4.53c-.4-1.04.46-1.4 1.1-.8l1.1 1.4 3.4-3.8c.6-.63 1.6-.27 1.2.7l-4 4.6c-.43.5-.8.4-1.1.1z'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right calc(0.375em + 0.1875rem) center;
    background-size: calc(0.75em + 0.375rem) calc(0.75em + 0.375rem);
}

.multiselect-buttons {
    position: absolute;
    text-align: center;
}

.modal-dialog {
    overflow-y: initial !important;
}

.modal-body {
    max-height: 80vh;
    overflow-y: auto;
}

.modal-body .form-control.disabled {
    background-color: #e9ecef;
    opacity: 1;
}

.bigloop {
    width: 40px !important;
    height: 40px !important;
    text-align: center;
    margin: auto;
    padding-top: 10px;
}
.bigloop.ui-state-active {
    background-color: #ffffff !important;
    color: #007fff !important;
    border: none !important;
}
.uix-search {
    float: left !important;
}
.uix-multiselect .ui-widget-header div.header-text {
    white-space: normal !important;
    width: 80%;
    min-height: 70px;
    word-wrap: break-word;
}
.uix-multiselect .ui-widget-header div.header-text .badge {
    font-size: 1em;
}
.multiselect-buttons .fa-solid {
    display: block;
    margin-top: 20px;
}

.multiselect-buttons .fa-solid.no-margin {
    display: inline;
    margin-top: 0px;
}

.multiselect-buttons .fa-solid.fa-sack-dollar {
    margin-top: 35px;
}
.uix-button {
    margin-bottom: 40px;
}
.uix-multiselect.ui-widget .badge {
    font-size: 1em;
}
.uix-multiselect.ui-widget .badge .badge {
    top: 38px !important;
    left: 50%;
}

#application-title {
    position: relative;
    clear: both;
}

.modal-content div.form-control {
    background-color: #e7e7e7;
    height: auto;
    min-height: calc(2.25rem + 2px);
}

.modal-content .row .col label {
    display: block;
}

.select2 {
    width: unset !important;
}

#group-hierachy {
    list-style-type: none;
    margin: 0;
    padding: 0;
}

#group-hierarchy,
ul.hierarchy-nested,
.noChip {
    list-style-type: none;
}

.hierarchy-box {
    cursor: pointer;
    -webkit-user-select: none; /* Safari 3.1+ */
    -moz-user-select: none; /* Firefox 2+ */
    -ms-user-select: none; /* IE 10+ */
    user-select: none;
}

.hierarchy-box::before {
    content: "\2610";
    color: black;
    display: inline-block;
    margin-right: 6px;
}

.hierarchy-check-box::before {
    content: "\2611";
    color: #337ab7;
}

.hierarchy-nested {
    display: none;
}

.hierarchy-active {
    display: block;
}

.fa-solid.icon-warning {
    color: #ffc107;
    border-color: #edb100;
}

.fa-solid.icon-ok {
    color: #28a745;
    border-color: #23923d;
}

.form-control-inline {
    display: inline-block;
    width: 100%;
    height: calc(2.25rem + 2px);
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.5;
    color: #495057;
    background-color: #fff;
    background-clip: padding-box;
    border: 1px solid #ced4da;
    border-radius: 0.25rem;
    box-shadow: inset 0 0 0 transparent;
    transition:
        border-color 0.15s ease-in-out,
        box-shadow 0.15s ease-in-out;
}

.w-70 {
    width: 70px;
}

div.is-invalid {
    border: 1px solid #dc3545;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='none' stroke='%23dc3545' viewBox='0 0 12 12'%3e%3ccircle cx='6' cy='6' r='4.5'/%3e%3cpath stroke-linejoin='round' d='M5.8 3.6h.4L6 6.5z'/%3e%3ccircle cx='6' cy='8.2' r='.6' fill='%23dc3545' stroke='none'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right calc(0.375em + 0.1875rem) top 0.5em;
    background-size: calc(0.75em + 0.375rem) calc(0.75em + 0.375rem);
    border-radius: 4px;
}

div.is-valid {
    border: 1px solid #28a745;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='8' height='8' viewBox='0 0 8 8'%3e%3cpath fill='%2328a745' d='M2.3 6.73L.6 4.53c-.4-1.04.46-1.4 1.1-.8l1.1 1.4 3.4-3.8c.6-.63 1.6-.27 1.2.7l-4 4.6c-.43.5-.8.4-1.1.1z'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right calc(0.375em + 0.1875rem) top 0.5em;
    background-size: calc(0.75em + 0.375rem) calc(0.75em + 0.375rem);
    border-radius: 4px;
}

.panel-body .alert .close {
    opacity: 0.7;
    margin-left: 10px;
    top: -15px;
    position: relative;
    right: -15px;
}

@media (min-width: 768px) {
    .col-sm-offset-4 {
        margin-left: 33.33333333%;
    }
}

@media (max-width: 1620px) {
    .layout-top-nav .control-sidebar {
        position: absolute;
        display: block;
        top: 130px;
    }
}

@media (min-width: 991px) and (max-width: 1250px) {
    #navbarSupportedContent .nav-item .nav-link {
        max-width: 85px;
        padding-left: 5px;
        padding-right: 5px;
    }
    #navbarSupportedContent .nav-item.mr-1 {
        margin-right: 0px !important;
    }
}

@media (min-width: 1251px) and (max-width: 1500px) {
    #navbarSupportedContent .nav-item .nav-link {
        max-width: auto;
        padding-left: 5px;
        padding-right: 5px;
    }
    #navbarSupportedContent .nav-item.mr-1 {
        margin-right: 0px !important;
    }
}

@media (min-width: 1501px) and (max-width: 1700px) {
    #navbarSupportedContent .nav-item.mr-1 {
        margin-right: 0.15rem !important;
    }
}

@media (max-width: 768px) {
    .navbar-nav .nav-link {
        padding-right: 0.2rem !important;
        padding-left: 0.2rem !important;
    }
    .layout-top-nav .wrapper .main-header .brand-image {
        height: 50px !important;
    }

    .multiselect-selected-list {
        left: 49% !important;
        max-height: 300px !important;
        border: 1px solid #c9c9c9;
        width: 48% !important;
    }

    .multiselect-available-list {
        max-height: 300px !important;
        border: 1px solid #c9c9c9;
        width: 48% !important;
    }

    .uix-multiselect .ui-widget-header div.header-text {
        width: 50%;
        min-height: 70px;
        word-wrap: break-word;
        padding: 0px;
        font-size: 0.7em;
    }
    .uix-multiselect .ui-widget-header div.header-text .badge {
        padding-left: 5px !important;
        padding-right: 5px !important;
    }

    .uix-multiselect.ui-widget .badge .badge {
        top: 35px !important;
    }

    .uix-control-right.bigloop {
        padding-left: 10px;
    }

    .table.table-responsive {
        width: 100% !important;
    }

    .fa-2xl {
        font-size: 1.5em !important;
    }
}

/* CSS Responsive pour jQuery Multiselect */

/* Styles de base pour la responsivité */
.uix-multiselect {
    display: flex !important;
    flex-wrap: wrap;
    position: relative !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box;
}

/* Colonnes - layout flexible */
.multiselect-available-list,
.multiselect-selected-list {
    position: relative !important;
    left: auto !important;
    flex: 1;
    margin: 0 10px;
    box-sizing: border-box;
}

.modal .multiselect-available-list,
.modal .multiselect-selected-list {
    min-width: auto !important;
}

/* Conteneur des boutons - repositionné */
.multiselect-buttons {
    position: relative !important;
    left: auto !important;
    order: -1; /* Place les boutons avant les colonnes */
    margin-bottom: 15px;
    display: flex;
    justify-content: flex-start;
    gap: 10px;
    flex-wrap: wrap;
}

/* Headers responsifs */
.ui-widget-header {
    padding: 8px 12px;
    text-align: justify;
}

.header-text {
    word-wrap: break-word;
}

.badge {
    display: inline-block;
    max-width: 100%;
}

.multi-select .badge {
    font-size: 1em;
    margin: 2px;
}

.multi-select .badge span.badge {
    font-size: 0.75em;
}

/* Listes - hauteur adaptative */
.uix-list-container {
    min-height: 200px;
    max-height: 300px;
    overflow-y: auto;
}

/* Éléments de liste */
.option-element {
    padding: 8px 12px;
    border-bottom: 1px solid #eee;
    cursor: pointer;
    word-wrap: break-word;
}

.option-element:hover {
    background-color: #f0f8ff;
}

.deselect-all {
    transform: rotate(180deg);
}

/* Responsive breakpoints */

/* Tablettes (768px et moins) */
@media (max-width: 768px) {
    .uix-multiselect {
        flex-direction: column;
        height: auto !important;
    }

    .multiselect-available-list,
    .multiselect-selected-list {
        width: 100% !important;
        margin: 0 0 15px 0;
        min-width: 100%;
    }

    .multiselect-buttons {
        order: 1; /* Place les boutons après la première colonne sur mobile */
        margin: 0;
        justify-content: center;
        max-height: 40px;
        margin-bottom: 15px;
    }

    .multiselect-buttons .uix-button {
        min-width: 45px;
        justify-content: center;
    }

    /* Réorganisation spécifique : boutons sous le titre de gauche */
    .multiselect-available-list {
        order: 0;
    }

    .multiselect-buttons {
        order: 1;
    }

    .multiselect-selected-list {
        order: 2;
    }

    .select-all {
        transform: rotate(90deg);
    }

    .deselect-all {
        transform: rotate(270deg);
    }
}

/* Mobiles (480px et moins) */
@media (max-width: 480px) {
    .multiselect-available-list,
    .multiselect-selected-list {
        margin: 0 0 10px 0;
    }

    .uix-list-container {
        height: auto !important;
        min-height: 150px;
        max-height: 250px;
    }

    .multiselect-buttons {
        gap: 5px;
    }

    .multiselect-buttons .uix-button {
        padding: 6px 10px;
        min-width: 40px;
        margin-bottom: 0px;
    }

    /* Headers plus compacts */
    .ui-widget-header {
        padding: 6px 8px;
    }

    .badge {
        font-size: 10px;
        padding: 4px 8px !important;
    }

    /* Réduction de la taille des badges sur mobile */
    .position-absolute.translate-middle.badge {
        font-size: 9px;
        padding: 2px 6px !important;
    }
}

/* Desktop (769px et plus) - comportement par défaut amélioré */
@media (min-width: 769px) {
    .uix-multiselect {
        flex-direction: row;
        align-items: flex-start;
    }

    .multiselect-available-list {
        order: 0;
        flex: 1;
    }

    .multiselect-buttons {
        order: 1;
        flex: 0 0 auto;
        margin: 0 15px;
        margin-top: 60px; /* Aligne avec les headers */
        flex-direction: column;
        justify-content: center;
    }

    .multiselect-selected-list {
        order: 2;
        flex: 1;
    }
}

/* Amélioration de la recherche */
.uix-search {
    width: 100% !important;
    max-width: 100%;
    box-sizing: border-box;
}

/* Amélioration du drag & drop sur mobile */
@media (max-width: 768px) {
    .ui-draggable-handle {
        touch-action: manipulation;
    }

    .multiselect-buttons .uix-button i {
        display: inline-block;
    }

    .multiselect-buttons .fa-solid.fa-sack-dollar {
        margin-left: 15px;
        margin-top: 0px;
    }
}

/* Amélioration de l'accessibilité */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Scroll bar personnalisée pour webkit */
.uix-list-container::-webkit-scrollbar {
    width: 8px;
}

.uix-list-container::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.uix-list-container::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 4px;
}

.uix-list-container::-webkit-scrollbar-thumb:hover {
    background: #555;
}

@media (max-width: 1000px) {
    .w-30 {
        width: auto !important;
    }
}

.alert-dismissible .btn-close {
    padding: 3px !important;
    --bs-btn-close-bg: none;
    color: white;
    font-weight: bold;
    border: 1px solid white;
    border-radius: 15px;
}

.alert-dismissible button[data-bs-dismiss="alert"] {
    position: absolute;
    top: 50%;
    right: 10px;
    width: 10px;
    height: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    color: white;
    font-weight: bold;
    border: 1px solid white;
    border-radius: 50%;
    padding: 0;
    margin: 0;
}

.cursor-pointer {
    cursor: pointer;
}

.multi-option:nth-child(2n) {
    background: #f4f6f9 !important;
}

.mt-6 {
    margin-top: 6rem !important;
}

.row div.multi-select {
    padding-left: 0px;
}

.row div.multi-select label {
    padding-left: 2px;
}

.cursor-not-allowed {
    cursor: not-allowed;
}

.autonomy-list .autonomy-header {
    color: #fff;
    background-color: #337ab7;
    border-color: #337ab7;
}

.autonomy-list ul {
    list-style: none;
    padding: 0px;
}

.autonomy-list .card-danger {
    border: #d32535 1px solid;
    border-top-left-radius: 5px;
    border-top-right-radius: 5px;
}

.autonomy-list .card-danger .card-body {
    background-color: #dec9ce;
}

#formModal #card-autonomy-0 {
    padding-left: 0px;
}

#formModal #card-autonomy-0 .select2-container .selection {
    height: 60px;
}

#formModal #card-autonomy-0 .select2-selection__rendered {
    margin-top: 10px;
}

#formModal
    #card-autonomy-0
    .form-floating
    .select2-container
    .select2-selection--single {
    height: 50px;
}

#modalContent .autonomy-list ul {
    padding: 0rem 0rem !important;
}

.table-striped > tbody > tr.alternate-even:nth-of-type(2n + 1),
.table-striped > tbody > tr.alternate-even:nth-of-type(2n + 1) > *,
.table-striped > tbody > tr.alternate-odd:nth-of-type(2n + 1),
.table-striped > tbody > tr.alternate-odd:nth-of-type(2n + 1) > * {
    --bs-table-bg-type: transparent !important;
}

.table-striped tbody tr.alternate-odd,
.table-striped tbody tr.alternate-odd > * {
    background-color: #ffffff !important;
}

/* Nouvelle alternance */
.table-striped tbody tr.alternate-even,
.table-striped tbody tr.alternate-even > * {
    background-color: rgba(0, 0, 0, 0.05) !important;
}

.ckeditor-wrapper {
    margin-bottom: 1rem;
}

.ckeditor-wrapper .form-floating {
    height: auto !important;
    min-height: auto !important;
}

.ckeditor-wrapper .row {
    margin: 0;
}

.ck-editor {
    margin-top: 0.5rem;
}

.ck-editor__editable {
    min-height: 200px;
}

#notifications-count {
    font-size: 1rem;
    font-weight: 700;
    right: -10px;
    top: 15px;
}

.nav-item.dropdown:hover .dropdown-menu {
    display: block;
    margin-top: 0;
}

#dysfunction-history-list {
    list-style-type: none;
}

.color-green {
    color: #28a745;
}

.navbar-custom #logout_button-link {
    display: block;
    width: 35px;
    height: 35px;
}

.nav-sidebar .disabled,
.menu-custom .disabled {
    cursor: not-allowed;
}

.ckeditor-wrapper {
    position: relative;
    min-height: 300px;
    height: 300px;
}

.ckeditor-loader {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
    border-radius: 4px;
    transition: opacity 0.3s ease-out;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ckeditor-loader.hiding {
    opacity: 0;
}

/* Spinner animé */
.ckeditor-loader-spinner {
    width: 50px;
    height: 50px;
    border: 5px solid rgba(0, 0, 0, 0.1);
    border-top-color: #337ab7;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

@keyframes loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

.ckeditor-container {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    opacity: 0;
    transition: opacity 0.3s ease-in;
    z-index: 1;
}

.ckeditor-container.showing {
    opacity: 1;
}

.ckeditor-container textarea.ckeditor {
    display: none !important;
}

.ckeditor-container .ck-editor {
    height: 100%;
}

.ckeditor-container .ck-editor__editable {
    min-height: 250px;
}

.control-sidebar {
    position: fixed !important;
    right: -300px !important;
    top: 0 !important;
    bottom: 0 !important;
    height: 100vh !important;
    width: 300px !important;
    transition: right 0.3s ease-in-out !important;
    z-index: 9999 !important;
    overflow-y: auto !important;
    background-color: #343a40 !important;
    display: block !important;
    visibility: visible !important;
}

.control-sidebar.show {
    right: 0 !important;
    display: block !important;
}

.control-sidebar-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transition:
        opacity 0.3s ease-in-out,
        visibility 0.3s ease-in-out;
    z-index: 9998;
}

.control-sidebar-backdrop.show {
    opacity: 1;
    visibility: visible;
}

/* Bouton de fermeture de la sidebar */
.configuration-header {
    position: relative;
    padding: 15px;
}

.btn-close-sidebar {
    position: absolute;
    top: 0px;
    right: 5px;
    background: transparent;
    border: none;
    color: #fff;
    font-size: 20px;
    cursor: pointer;
    padding: 5px;
    line-height: 1;
    opacity: 0.7;
    transition: opacity 0.2s ease;
}

.btn-close-sidebar:hover {
    opacity: 1;
}

.btn-close-sidebar i {
    display: block;
}
