a.nav-link.active {
    border-top: 1px solid #dee2e6 !important;
    border-right: 1px solid #dee2e6 !important;
    border-left: 1px solid #dee2e6 !important;
    border-bottom: 2px solid white !important;
    background: white;
}

.nav-tabs {
    border-bottom: 1px solid #dee2e6 !important;
}

.nav-tabs .nav-link {
    cursor: pointer !important;
}

.nav-tabs .nav-link:hover:not(.active) {
    border-top: 1px solid #e9ecef !important;
    border-right: 1px solid #e9ecef !important;
    border-left: 1px solid #e9ecef !important;
    border-bottom: 1px solid transparent !important;
}

.btn-primary,
.btn-success,
button.btn.btn-outline-primary.active {
    color: white;
}

.btn {
    font-weight: 400;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.btn.disabled,
.btn:disabled,
.btn[disabled] {
    cursor: not-allowed !important;
}

/* Pagination cursor styles */
.pagination .page-link {
    cursor: pointer;
    transition: all 0.2s ease-in-out;
}

.pagination .page-link:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.pagination .page-item.disabled .page-link {
    cursor: not-allowed;
    opacity: 0.6;
}

.pagination .page-item.disabled .page-link:hover {
    transform: none;
    box-shadow: none;
}

.pagination .page-item.active .page-link {
    cursor: default;
}

.pagination .page-item.active .page-link:hover {
    transform: none;
    box-shadow: none;
}

.text-gray-500 {
    color: #64748b;
}

@media (min-width: 1513px) {
    .fs-xxl-6 {
        font-size: 1rem !important;
    }
}

.bg-brand-gradient {
    background: #f1f5f9;
    background: linear-gradient(180deg, #f1f5f9 264px, white 264px);
    background-attachment: fixed;
}

.bg-dark {
    background-color: #031633 !important;
}

.bg-gray-100 {
    background-color: #f1f5f9 !important;
}

.bg-green-100 {
    background-color: #dcfce7 !important;
}

.basic-shadow {
    box-shadow: 0px 0px 32px 0px rgba(41, 48, 66, 0.1);
}

.mh-700 {
    max-height: 700px;
}

.w-150px {
    width: 150px;
}

.navbar-custom {
    position: sticky;
    top: 0;
    z-index: 1000;
    margin-left: 141px;
    background-color: #f1f5f9;
    border-bottom: 10px solid #f1f5f9;
}

.leftside-menu {
    z-index: 1000;
    bottom: 0;
    top: 0;
    position: fixed;
    display: flex;
    width: 141px;
}

.leftside-menu-inner {
    border-radius: 1rem 1rem 0px 0px;
    background-color: #031633;
}

ul.custom-nav {
    list-style-type: none;
    padding: 0px;
}

.custom-menu-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: white;
    text-decoration: none;
    font-size: 0.87rem;
    transition: all 0.3s ease;
    text-align: center;
}

.custom-menu-item-holder {
    font-size: 1.8rem;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.5rem;
    border-radius: 4px;
}

.custom-menu-link.active .custom-menu-item-holder {
    background-color: rgba(255, 255, 255, 0.17);
    color: #3d8bfd;
}

.custom-menu-link:hover {
    color: #3d8bfd;
    transition: all 0.3s ease;
}

a.custom-menu-link {
    position: relative;
}

.custom-menu-item .sub-menu {
    position: absolute;
    left: 0;
    opacity: 0;
    margin-top: 0;
    padding: 10px 20px;
    border-radius: 0 6px 6px 0;
    pointer-events: none;
    transition: 0s;
}

.custom-menu-item:hover .sub-menu {
    left: calc(100% - 16px);
    opacity: 1;
    pointer-events: auto;
    transition: all 0.4s ease;
}

.sub-menu-list {
    list-style-type: none;
    padding: 0px;
    display: block;
    padding-top: 0.25rem;
    padding-bottom: 0.25rem;
    padding-left: 0px;
    padding-right: 0px;
    margin-top: -10px;
    background: #031633;
    border-radius: 0.25rem;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

ul.sub-menu-list li {
    white-space: nowrap;
}

ul.sub-menu-list li:hover {
    background: rgba(255, 255, 255, 0.2);
}

ul.sub-menu-list li a {
    display: block;
    width: 100%;
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
    padding-left: 1.2rem;
    padding-right: 1.2rem;
    text-decoration: none;
    color: #f1f5f9;
    font-size: 1rem;
    font-weight: 300;
}

ul.sub-menu-list li:hover a {
    text-decoration: none;
    color: white;
}

.kpi-item {
    padding: 2rem;
    display: flex;
    flex-direction: column;
}

.kpi-title-holder {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1.5rem;
}

.kpi-title {
    color: #6c757d;
    font-size: 0.8rem;
}

.kpi-state {
    color: black;
    font-weight: 600;
}

.kpi-info {
    color: #ced4da;
    font-size: 24px;
}

.kpi-content-holder {
    display: flex;
    justify-content: start;
    align-items: center;
}

.kpi-item-icon-holder {
    width: 32px;
    height: 32px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5rem;
    background-color: #e9e9e9;
    color: black;
    border-radius: 0.5rem;
    margin-right: 1rem;
}

.kpi-number {
    font-weight: 800;
    font-size: 1rem;
}

@media (min-width: 1513px) {
    .kpi-number {
        font-weight: 800;
        font-size: 2.25rem;
    }

    .kpi-item-icon-holder {
        width: 48px;
        height: 48px;
    }

    .kpi-title {
        color: #6c757d;
        font-size: 1rem;
    }
}

.kpi-item.success span.kpi-state {
    color: #22c55e;
}

.kpi-item.success .kpi-item-icon-holder {
    color: #22c55e;
    background-color: #dcfce7 !important;
}

.kpi-item.danger span.kpi-state {
    color: #f43f5e;
}

.kpi-item.danger .kpi-item-icon-holder {
    color: #f43f5e;
    background-color: #fff1f2 !important;
}

.kpi-item.info span.kpi-state {
    color: #0dcaf0;
}

.kpi-item.info .kpi-item-icon-holder {
    color: #0dcaf0;
    background-color: rgb(206.6, 244.4, 252) !important;
}

.kpi-item.primary span.kpi-state {
    color: #3d8bfd;
}

.kpi-item.primary .kpi-item-icon-holder {
    color: #3d8bfd;
    background-color: #e7f1ff !important;
}

.kpi-item.purple span.kpi-state {
    color: #6f42c1;
}

.kpi-item.purple .kpi-item-icon-holder {
    color: #6f42c1;
    background-color: rgb(226.2, 217.2, 242.6) !important;
}

.kpi-item.orange span.kpi-state {
    color: #fd7e14;
}

.kpi-item.orange .kpi-item-icon-holder {
    color: #fd7e14;
    background-color: rgb(254.6, 229.2, 208) !important;
}


.no-caret.dropdown-toggle::after {
    display: none;
}

li.breadcrumb-item {
    font-size: 0.875rem;
}

li.breadcrumb-item a {
    color: black;
    text-decoration: none;
}

li.breadcrumb-item a:hover {
    color: #3d8bfd;
    text-decoration: none;
}

.list-item {
    background-color: white;
    border-bottom: 1px solid #e2e8f0;
    transition: all 0.3s;
}

.list-item:hover {
    background-color: #f1f5f9;
    transition: all 0.3s;
}

.badge,
.state-badge {
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    font-weight: 600;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.025em;
    transition: all 0.2s ease;
}

.badge:hover,
.state-badge:hover {
    transform: scale(1.05);
}

.state-badge.green {
    color: #22c55e;
    background-color: #dcfce7;
}

.state-badge.blue {
    color: #3d8bfd;
    background-color: #e7f1ff;
}

.state-badge.gray {
    color: #0f172a;
    background-color: #f1f5f9;
}

.state-badge.red {
    color: #3d8bfd;
    background-color: #e7f1ff;
}

.state-badge.rose {
    color: #f43f5e;
    background-color: #fff1f2;
}

.state-badge.purple {
    color: #6f42c1;
    background-color: rgb(226.2, 217.2, 242.6);
}

.state-badge.orange {
    color: #fd7e14 !important;
    background-color: rgb(254.6, 229.2, 208);
}

.state-badge.cyan {
    color: rgb(7.8, 121.2, 144);
    background-color: rgb(206.6, 244.4, 252);
}

.step {
    background: white;
    padding: 0.5rem;
    display: flex;
    font-size: 18px;
    align-items: center;
    gap: 1rem;
    border-radius: 0.25rem;
    color: #3d8bfd;
}

.step-number {
    height: 48px;
    width: 48px;
    background: #e7f1ff;
    color: #3d8bfd;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    border-radius: 0.25rem;
}

.step.success {
    background: white;
    color: #22c55e;
}

.step.success .step-number {
    background: #dcfce7;
    color: #22c55e;
}

.step.next {
    background: white;
    color: #64748b;
}

.step.next .step-number {
    background: #f1f5f9;
    color: #64748b;
}

hr.step-inbetween {
    width: 48px;
    border: 2px dotted #1e293b !important;
}

.time-line-date {
    width: 100%; /* Full width or as needed */
    height: 100%; /* Match container height */
    background: linear-gradient(to right, #cbd5e1, #cbd5e1); /* Gradient colors */
    background-size: 100% 1px; /* Full width, 1px height for the line */
    background-position: center; /* Line vertically centered */
    background-repeat: no-repeat; /* No repeating */
}

.service-item:has(div.collapsing) {
    background: #e7f1ff !important;
    transition: background 0s;
    border-radius: 8px
}

div.collapsing.show {
    transition: all 0s;
}

.service-item:has(div.show) {
    background: #e7f1ff !important;
    transition: background 0s;
    border-radius: 8px;
}

.service-item-dropdown {
    width: 64px !important;
}

.service-item-btn {
    width: calc(100% - 64px) !important;
}

.map {
    width: 0px;
    opacity: 0;
    transition: width 0.3s, opacity 0.3s;
}

.map.showmap {
    width: 660px;
    opacity: 1;
    transition: width 0.3s, opacity 0.3s;
}

.listing {
    transition: width 0.3s, opacity 0.3s;
}

.listaccordion {
    overflow-y: scroll;
    overflow-x: hidden;
}

#servicelist {
    position: sticky;
    position: -webkit-sticky;
    top: 120px;
}

.nav-user-options {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.dropdown-toggle {
    display: flex;
    align-items: center; /* Assure l'alignement des éléments */
    padding: 0; /* Supprime les paddings excessifs */
    gap: 8px; /* Ajuste l'espacement entre le cercle et le chevron */
}


.no-caret::after {
    display: none; /* Supprime le caret par défaut de Bootstrap */
}


/* Style de base pour l'icône rotative */
.rotate-icon {
    display: inline-block;
    transition: transform 0.3s ease-in-out;
}

/* État fermé */
.service-cell[aria-expanded="false"] .rotate-icon {
    transform: rotate(0deg);
    cursor: pointer;
}

/* État ouvert */
.service-cell[aria-expanded="true"] .rotate-icon {
    transform: rotate(180deg);
    cursor: pointer;
}


/* General table styling */
table {
    width: 100%;
    border-collapse: separate; /* Allows spacing and rounded corners */
    border-spacing: 0 8px; /* Adds spacing between rows */
    background-color: transparent; /* Ensures table background doesn’t interfere */
}

thead {
    margin-bottom: 1em !important;
}

/* Styling for thead */
thead tr {
    text-align: left;
    font-weight: bold;
    padding: 12px;
    border-bottom: 1em solid transparent !important;
}

/* Rounded corners for thead */
thead tr th:first-child {
    border-top-left-radius: 8px; /* Rounded corner for top-left */
    border-bottom-left-radius: 8px;
}

thead tr th:last-child {
    border-top-right-radius: 8px; /* Rounded corner for top-right */
    border-bottom-right-radius: 8px;
}

thead tr th {
    border: none;
    background-color: #f1f5f9 !important;
}


/* Styling for rows */
tbody td {
    padding: 12px;
    vertical-align: middle;
    background-color: transparent; /* Set transparent background to let row handle styling */
    border: none; /* Remove borders from individual cells */
}

/* Rounded corners for rows */
tbody tr.clickable-row {
    background-color: white; /* Background color for the entire row */
    border: none;
    overflow: hidden; /* Ensures content respects rounded corners */
}

tbody tr.clickable-row td:first-child {
    border-top-left-radius: 8px;
    border-bottom-left-radius: 8px;
    border-bottom: 1px solid #e5e7eb;
}

tbody tr.clickable-row td:last-child {
    border-top-right-radius: 8px;
    border-bottom-right-radius: 8px;
    border-bottom: 1px solid #e5e7eb;
}

tbody tr.clickable-row td:not(:first-child):not(:last-child) {
    border-radius: 0; /* Ensure no rounding in the middle cells */
    border-bottom: 1px solid #e5e7eb;
}

/* Hover effect for rows */
tbody tr.clickable-row:hover td {
    background-color: #f1f5f9; /* Light gray hover effect on all cells */
    border-bottom: 1px solid #e5e7eb;
}

tbody tr.clickable-row:hover td:first-child {
    border-top-left-radius: 8px;
    border-bottom-left-radius: 8px;
}

tbody tr.clickable-row:hover td:last-child {
    border-top-right-radius: 8px;
    border-bottom-right-radius: 8px;
}


.service-edit-cell {
    width: min-content;
    white-space: nowrap;
    padding-left: 0.5rem;
    padding-right: 0.5rem;
}

/* Détection de l'état ouvert du collapse voisin */
tr:has(+ tr .collapse.show) .service-cell {
    margin-bottom: 0;
    background: #e7f1ff !important;
    border-bottom: none !important;
    border-bottom-right-radius: 0 !important;
    border-bottom-left-radius: 0 !important;
}

tr:has(+ tr .collapsing) .service-cell {
    margin-bottom: 0;
    background: #e7f1ff !important;;
    border-bottom: none !important;
    border-bottom-right-radius: 0 !important;
    border-bottom-left-radius: 0 !important;
}


tbody tr.service-item-details td {
    border-top-right-radius: 0 !important;
    border-top-left-radius: 0 !important;
}

.table-service {
    border-spacing: 0;
}

tr.service-item-details:has(.accordion-collapse.show) + tr.separator {
    display: table-row;
}

tr.service-item-details + tr.separator {
    display: none;
}
.row-deleted {
    opacity: 0.6;
    background-color: #f8f9fa !important;
    cursor: not-allowed;
}

.row-deleted:hover td {
    background-color: #f8f9fa !important;
}

.row-deleted td {
    color: #6c757d;
}

.row-deleted .state-badge {
    opacity: 0.8;
}

/*sticky footer*/

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

main {
    flex: 1 0 auto; /* Grows but does not shrink */
    margin-left: 141px;
}

footer {
    flex-shrink: 0; /* Prevents the footer from shrinking */
    margin-left: 141px;
}

/* Start of custom dropdown style */

.custom-dropdown {
    position: relative;
}

.custom-dropdown-toggle {
    width: 100%;
    text-align: left;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #fff;
    border: 1px solid #ced4da;
    padding: 0.375rem 0.75rem;
}

.custom-dropdown-toggle:hover {
    background-color: #f8f9fa;
}

.custom-dropdown-toggle::after {
    margin-left: auto;

}

.custom-dropdown-input {
    width: calc(100% - 1.5rem);
    margin-top: .75rem;
    margin-left: .75rem;
    padding: .375rem .75rem;
    font-weight: 400;
    line-height: 1.5;
    color: var(--bs-body-color);
    appearance: none;
    background-color: var(--bs-body-bg);
    background-clip: border-box;
    border: var(--bs-border-width) solid var(--bs-border-color);
    border-radius: 4px;
}

.custom-dropdown-menu {
    width: 100%;
    max-height: 300px;
    overflow-y: auto;
    padding-top: 0;
    list-style-type: none;
}

.custom-dropdown-item {
    cursor: pointer;
}

.custom-dropdown-item:hover {
    background-color: #f8f9fa;
}

.custom-dropdown-menu li,
.custom-dropdown-menu ul li {
    display: inline;
}

.dropdown-menu ul,
.custom-dropdown-menu ul {
    padding-left: 0;
}


.pld-disabled {
    cursor: not-allowed;
    opacity: 0.65;
    background-color: #e9ecef; /* optional, mimic disabled bg */
    color: #6c757d; /* optional, mimic disabled text */

}

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

.btn-outline-primary:hover {
    color: #ffffff;
}

.btn-danger:hover {
    color: #303030 !important;
}

.selection-info {
    min-width: 100px; /* adjust as needed */
}

.showing-info {
    min-width: 220px;
}

.toast {
    right: 0;
    transform: translateX(100%);
    animation: slideIn 0.5s forwards;
}

.toast.hide {
    animation: slideOut 0.5s forwards;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
    }
    to {
        transform: translateX(0);
    }
}

@keyframes slideOut {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(110%);
    }
}

.btn-outline-delete {
    border-left: none;
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
    border-color: var(--bs-border-color);
}

.btn-outline-delete:hover {
    color: #ffffff;
}

.dropdown-toggle::after {
    transition: transform .2s ease;
}

.dropdown-toggle[aria-expanded="true"]::after {
    transform: rotate(180deg);
}

.hr-divider {
    border: 0;
    border-top: 1px solid #aeaeae;
    margin: 1.5rem 0;
}


.animate-pulse {
    animation: pulse 3s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: .5;
    }
}

.advanced-select-options {
    max-height: 18rem;   /* cap the dropdown’s height (≈10 items) */
    overflow-y: auto;    /* add a vertical scrollbar when it exceeds that */
}

/* Button with form-control style border for consistency */
.btn-form-border {
    border-color: var(--bs-border-color) !important;
}

/* Export dropdown button to match form-select dimensions */
.btn-export-dropdown {
    border-color: var(--bs-border-color) !important;
    min-width: 2.5rem;
    height: calc(1.5em + 0.75rem + 2px);
    padding: 0.375rem 0.75rem;
}

/* Interface Select Widget Styles */
.interface-select-dropdown {
    max-height: 400px;
    overflow: visible;
}

.interface-options {
    max-height: 300px;
    overflow-y: auto;
}

.interface-option {
    border-left: 4px solid transparent;
    transition: all 0.2s ease;
    cursor: pointer;
}

.interface-option:hover:not(.incompatible):not(.selected) {
    background-color: #e9ecef;
    border-left-color: #6c757d;
}

.interface-option.selected {
    background-color: #e3f2fd;
    border-left-color: #2196F3;
}

.interface-option.incompatible {
    background-color: #f5f5f5;
    color: #6c757d;
    cursor: not-allowed;
}

.interface-option.incompatible:hover {
    background-color: #f5f5f5;
}

/* Force pointer cursor on all child elements of selectable options */
.interface-option:not(.incompatible) * {
    cursor: pointer;
}

/* Interface settings button styling */
.interface-settings-btn {
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.interface-settings-btn:hover {
    background-color: #e9ecef;
    border-color: #adb5bd;
}

/* Table column for checkboxes/selection */
.select-col {
    width: 35px;
}

.text-transform-none {
    text-transform: none !important;
}

/* Service action error modal */
.action-error-preview {
    max-height: 300px;
    overflow: auto;
}