.center-container {
    display: flex;
    justify-content: center;
    align-items: center;
}
.multiselect-container.dropdown-menu.show {
    width: auto;
}
.selectric-is-invalid ~ .invalid-feedback {
    display: block;
}
.selectric-is-invalid .selectric {
    border-color: red;
}
.certificate-outer {
    display: flex;
    gap: 10px;
    margin: 0 0 10px;
}
.certificate-input {
    width: 33.333%;
}
.certificate-choose-file {
    width: 33.333%;
}
.certificate-outer .input-group {
    width: 33.333%;
}
.certificate-outer button.btn.btn-danger.remove {
    height: 100%;
    min-width: 85px;
}
.certificate-outer button.btn.btn-danger.admin_doc_remove {
    height: 100%;
    min-width: 85px;
}
.certificate-outer button#addMore {
    height: 100%;
    min-width: 85px;
}
.certificate-outer button#addMoreAdmin {
    height: 100%;
    min-width: 85px;
}
.certificate-outer button.clear-input-btn {
    height: 100%;
    min-width: 85px;
}
span#construction_site\[\]-error {
    margin-top: 0.25rem;
    font-size: 80%;
    color: #dc3545;
}
.sidebar-mini .main-sidebar .sidebar-brand a {
    display: inline-block;
    width: 22px;
    overflow: hidden;
}

/* for filter in worker */
.multiselect-container li.active a {
    background-color: #fff;
    color: #000;
}

.multiselect-container > li.multiselect-all {
    border-bottom: 1px solid #e9e9e9;
    padding: 5px 0;
    margin-bottom: 15px;
}

#clearer {
    padding-left: 10px;
    vertical-align: middle;
}

.row-new {
    padding: 20px;
}

a.demo {
    padding: 20px;
    display: block;
}
.badge-light {
    background-color: #cdd3d8 !important;
}
/* ADDED FOR MULTIPLE USERS IN SUBCONTRACTORS */
.user-certificate-outer {
    display: flex;
    gap: 10px;
    margin: 0 0 10px;
}
.user-certificate-outer .input-group {
    width: 33.333%;
}
.user-certificate-outer button.btn.btn-danger.remove {
    height: 100%;
    min-width: 85px;
}
.user-certificate-outer button.btn.btn-danger.admin_doc_remove {
    height: 100%;
    min-width: 85px;
}
.user-certificate-outer button#addMore {
    height: 100%;
    min-width: 85px;
}
.user-certificate-outer button#addMoreAdmin {
    height: 100%;
    min-width: 85px;
}
.user-certificate-outer button.clear-input-btn {
    height: 100%;
    min-width: 85px;
}
.user-certificate-outer .certificate-input {
    width: 47%;
}
.user-add-more-admin {
    height: 100%;
    min-width: 85px;
}

.remove-btn {
    height: 100%;
    min-width: 85px;
}

.permission-toggle {
    margin-left: -28px;
}
.plus-min-box button {
    border: unset;
    background: unset;
    font-size: 26px;
    font-weight: bold;
}
.plus-min-box {
    display: flex;
    justify-content: center;
    align-items: center;
    background: #f5f5f5;
    padding: 4px 6px;
    border: 1px solid #ededed;
}

.plus-min-box input {
    font-weight: 600;
    border: 1px solid;
    margin: 0px 7px;
    padding: 5px 13px;
    text-align: center;
    max-width: 100px;
    display: inline;
}
.plus-min-box input::-webkit-outer-spin-button,
.plus-min-box input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}
div#documentView {
    display: flex;
    flex-direction: column-reverse;
    gap: 16px;
}
.plus-min-box button:focus {
    outline: unset;
    text-shadow: unset;
}

.custom-margin {
    margin: 0.1rem !important;
}
.custom-dropdown-menu {
    max-width: fit-content;
}
.custom-dropdown-menu li {
    margin-left: 16px; /* Set the desired left margin for the list items */
}
.custom-dropdown-menu li a {
    text-decoration: none;
}

.custom-dropdown-menu.dropdown-menu.show li a {
    display: flex;
    align-items: center;
    gap: 5px;
}
.custom-dropdown-menu.dropdown-menu.show li a p {
    margin: 0;
}
.custom-dropdown-menu.dropdown-menu.show {
    padding: 0;
}
.test {
    display: flex;
    gap: 5px;
}

/* Styles responsifs pour les cartes du dashboard */
.dashboard-card-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    width: 100%;
    padding: 0 15px;
}

.dashboard-card-item {
    flex: 0 0 32%;
    max-width: 32%;
    padding: 0 5px;
    margin-bottom: 15px;
    transition: all 0.3s ease;
}

/* Règles responsives pour tablettes */
@media (max-width: 991px) {
    .dashboard-card-item {
        flex: 0 0 48%;
        max-width: 48%;
    }
}

/* Règles responsives pour mobiles */
@media (max-width: 767px) {
    .dashboard-card-item {
        flex: 0 0 100%;
        max-width: 100%;
    }
}

.clear-button {
    cursor: pointer;
    font-size: 1.2em;
    color: #aaa;
}

.clear-button:hover {
    color: #000;
}

.form-control {
    padding-right: 2.25rem; /* Adjust padding to accommodate the clear button */
}

.cstm-selectric-invalid {
    width: 100%;
    margin-top: 0.25rem;
    font-size: 80%;
    color: #dc3545;
}
.is_invalid_field {
    border-color: red;
    /* Add other styling properties as needed */
}

/* CSS: Style the loader */
.input-loader {
    position: absolute;
    top: calc(100% + 5px); /* Adjust as needed */
    left: 50%;
    transform: translateX(-50%);
    display: none; /* Initially hidden */
}

.input-loader::after {
    content: "";
    display: block;
    width: 20px; /* Adjust size as needed */
    height: 20px; /* Adjust size as needed */
    border: 2px solid #ccc; /* Loader border color */
    border-radius: 50%;
    border-top-color: #007bff; /* Loader color */
    animation: loader-spin 1s linear infinite;
}

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

.input-wrapper {
    position: relative;
}

#document_name_error {
    position: absolute;
    top: calc(100% + 5px);
    left: 52%;
    transform: translateX(-50%);
}

#document_name_success {
    position: absolute;
    top: calc(100% + 5px);
    left: 6%;
    transform: translateX(-50%);
    display: none;
    color: rgb(11, 190, 245);
}

.document-loader {
    position: absolute;
    top: 100%;
    left: 1%;
    transform: translateX(-50%);
    display: block;
    margin-top: 6px;
    display: none;
}

.multiselect-native-select .custom-select {
    background: unset !important;
}
.worker-card-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.worker-card-head .multiselect-native-select .btn-group {
    max-width: 275px;
    width: 100%;
}
.worker-card-form {
    /* max-width: 1200px; */
    width: 100%;
    text-align: right;
}
.create-documentList #document_name_success,
.create-documentList #document_name_error,
.create-documentList .document-loader {
    position: relative;
    left: unset !important;
    transform: unset;
}

.error-and-succes-msg {
    display: flex;
    align-items: center;
    gap: 5px;
}
.worker-card-head .row > div {
    display: flex;
    justify-content: flex-end;
    gap: 9px;
    align-items: center;
    flex-wrap: wrap;
}
a.language-dropdown {
    color: white !important;
}

/* Styles optimisés pour la navbar */
.navbar {
    display: flex !important;
    align-items: center !important;
    padding: 0 15px !important;
}

.navbar-right {
    display: flex !important;
    align-items: center !important;
    gap: 25px !important; /* Augmentation de l'espace entre les éléments */
    height: 100% !important;
    margin-top: 0 !important;
    padding-top: 0 !important;
}

.navbar-right > * {
    align-self: center !important;
    display: flex !important;
    align-items: center !important;
    margin: 0 !important;
}

.navbar-right .nav-item {
    height: 100% !important;
}

/* Styles du sélecteur de langue */
.navbar-right .btn-group {
    height: 40px !important;
    display: flex !important;
    align-items: center !important;
}

.btn-group button.btn-primary {
    font-weight: 500 !important;
    height: 40px !important;
    display: flex !important;
    align-items: center !important;
    padding: 0 15px !important;
    border-radius: 4px 0 0 4px !important;
    background-color: #6777ef !important;
    border-color: #6777ef !important;
    font-size: 14px !important;
}

.btn-group a.language-dropdown {
    height: 40px !important;
    display: flex !important;
    align-items: center !important;
    border-radius: 0 4px 4px 0 !important;
    padding: 0 10px !important;
    background-color: #5d6dc3 !important;
    border-color: #5d6dc3 !important;
}

/* Style du menu déroulant */
.dropdown-menu-right {
    min-width: 160px !important;
    margin-top: 10px !important;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15) !important;
}

.dropdown-header {
    font-weight: 600 !important;
    color: #333 !important;
    padding: 10px 15px !important;
    border-bottom: 1px solid #eee !important;
}

/* Image de profil */
.navbar .nav-link.nav-link-user {
    height: 100% !important;
    display: flex !important;
    align-items: center !important;
    padding: 0 10px !important;
    border-radius: 50px !important;
    transition: background-color 0.3s !important;
}

.navbar .nav-link.nav-link-user:hover {
    background-color: rgba(255, 255, 255, 0.1) !important;
}

.navbar .nav-link.nav-link-user img.user-img-radious-style {
    width: 45px !important;
    height: 45px !important;
    object-fit: cover !important;
    border-radius: 50% !important;
    border: 2px solid #fff !important;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1) !important;
}

/* Style pour le bloc accident */
.accident-banner {
    margin-right: 15px !important;
}

/* Composant météo - avec meilleur espacement */
.navbar-right .weather-component {
    display: inline-block !important;
    width: auto !important;
    height: auto !important;
    padding: 0 !important;
    margin: 0 25px !important; /* Ajout de marges horizontales */
}

/* Styles pour le bloc météo */
.nav-widget-container {
    margin-top: 8px !important;
}

.bootstrap-filestyle .group-span-filestyle .btn-secondary {
    background-color: #6777ef; /* Set background color */
    margin-top: 0px; /* Ensure no top margin */
    height: 42px; /* Set the height */
    display: flex; /* Use flexbox to align text vertically */
    align-items: center; /* Vertically center text */
    justify-content: center; /* Horizontally center text */
    padding: 0 1rem; /* Add padding to align with the input */
}

/* Styles pour améliorer l'affichage des cartes dans le dashboard */
.card-hover .document-icon img,
.card-hover .worker-icon img,
.card-hover .equipment-icon img {
    height: 140px !important; /* Augmenter la taille des images */
    width: auto !important;
    transition: transform 0.3s ease;
}

.card-hover:hover .document-icon img,
.card-hover:hover .worker-icon img,
.card-hover:hover .equipment-icon img {
    transform: scale(1.05); /* Effet d'agrandissement au survol */
}

.card-hover .card-body {
    padding: 1rem !important; /* Réduire l'espacement interne */
}

.card-hover .document-info p,
.card-hover .worker-info p,
.card-hover .equipment-info p {
    font-size: 0.9rem !important;
    margin-bottom: 1rem !important;
    line-height: 1.4;
}

.card-hover .mb-4 {
    margin-bottom: 0.75rem !important; /* Réduire les marges */
}

/* Ajuster la hauteur des cartes */
.d-flex > [style*="flex: 0 0 32%"] {
    margin-bottom: 15px;
}

.d-flex > [style*="flex: 0 0 32%"] .card {
    height: auto !important;
    width: 500px !important;
}

.bootstrap-filestyle .group-span-filestyle .btn-secondary {
    align-items: center; /* Vertically center text */
    justify-content: center; /* Horizontally center text */
    padding: 0 1rem; /* Add padding to align with the input */
    border-radius: 0.25rem; /* Match border radius of the input */
    color: white; /* Set text color */
    cursor: pointer; /* Show pointer cursor on hover */
}

.bootstrap-filestyle .group-span-filestyle .btn-secondary .buttonText {
    margin: 0; /* Ensure no extra margin for button text */
}

.certificate-choose-file .bootstrap-filestyle {
    width: 500px;
}

.certificate-choose-file {
    position: relative;
}

/* .certificate-choose-file .invalid-feedback {
    display: block;
    position: absolute;
    top: 100%;
    left: 0;
    margin-top: -17px;
    width: 100%;
    z-index: 1;
} */

.custm-grid-box {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr auto;
}
.custm-grid-box .certificate-input,
.custm-grid-box-edit .certificate-input {
    width: unset;
}
.custm-grid-box > .input-group,
.custm-grid-box-edit > .input-group {
    width: unset;
}
.custm-grid-box .certificate-choose-file,
.custm-grid-box-edit .certificate-choose-file {
    width: 100%;
}
.custm-grid-box .certificate-choose-file .bootstrap-filestyle,
.custm-grid-box-edit .certificate-choose-file .bootstrap-filestyle {
    width: 100%;
}
.select-width .select2-container {
    width: 100% !important;
}
.custm-grid-box .certificate-choose-file .invalid-feedback,
.custm-grid-box-edit .certificate-choose-file .invalid-feedback {
    position: absolute;
    bottom: 0;
}
.custm-grid-box > button,
.custm-grid-box-edit > button {
    max-height: 42px;
}

.custm-grid-box-edit {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr auto;
}
.custm-grid-box-edit:has(.btn-primary),
.custm-grid-box-edit:has(.btn-secondary) {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr auto auto;
}

@media screen and (max-width: 992px) {
    .custm-grid-box {
        display: grid;
        grid-template-columns: 1fr 1fr 1fr;
    }
    .custm-grid-box-edit {
        grid-template-columns: 1fr 1fr 1fr;
    }
    .custm-grid-box-edit:has(.btn-primary),
    .custm-grid-box-edit:has(.btn-secondary) {
        grid-template-columns: 1fr 1fr 1fr;
    }
}
@media screen and (max-width: 767px) {
    .custm-grid-box {
        display: grid;
        grid-template-columns: 1fr;
    }
    .custm-grid-box-edit {
        grid-template-columns: 1fr;
    }
    .custm-grid-box-edit:has(.btn-primary),
    .custm-grid-box-edit:has(.btn-secondary) {
        grid-template-columns: 1fr;
    }
}
@media screen and (max-width: 382px) {
    .dropdown-position-mob {
        left: auto !important;
        right: 0 !important;
    }
}

/* Default fixed height for card body */
.fixed-height {
    min-height: 406px !important; /* Default height for all screens */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

/* Adjust height for larger screens */
@media (min-width: 992px) {
    /* For desktop screens and larger */
    .fixed-height {
        min-height: 300px; /* Adjust this height as needed */
    }
}

.no-data-message {
    margin: 0;
    font-size: 16px;
    color: #6c757d;
}

/* Styles pour la barre de recherche */
.search-form {
    display: flex;
    align-items: center;
}

.search-element {
    display: flex;
    align-items: center;
}

.search-element .form-group {
    display: flex;
    align-items: center;
    margin: 0;
    position: relative;
}

.search-input {
    height: 44px !important;
    font-size: 14px !important;
    border-radius: 4px 0 0 4px !important;
    border-right: none !important;
    width: 200px !important;
    padding: 0.375rem 0.75rem !important;
    box-sizing: border-box;
}

.navbar .form-inline .form-control {
    height: 44px !important;
}

.search-element .btn,
.form-inline .btn {
    height: 44px !important;
    box-sizing: border-box;
}

.search-element .btn {
    height: 40px !important;
    padding: 0.375rem 1rem !important;
    font-size: 14px !important;
    border-radius: 0 4px 4px 0 !important;
    background-color: #6777ef !important;
    border-color: #6777ef !important;
    color: white !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin-left: -1px !important;
    line-height: 28px !important;
}

.search-element .btn:hover {
    background-color: #5d6dc3 !important;
    border-color: #5d6dc3 !important;
}

.search-element .btn i {
    font-size: 14px !important;
}
.pagination {
    margin: 20px 30px;
    display: flex;
    justify-content: center;
}














