/* Colors
  '50': '#f2f5fc',
  '100': '#e3eaf6',
  '200': '#cddbf0',
  '300': '#aac2e6',
  '400': '#81a2d9',
  '500': '#6385ce',
  '600': '#506cc0',
  '700': '#455ab0',
  '800': '#42519b',
  '900': '#354173',
  '950': '#242a47',
*/

body {
    font-family: "Helvetica", sans-serif;
    background-color: #f5f5f5;
    min-height: 100%;
    font-size: 14px;
    line-height: 1.5em;
    scroll-behavior: smooth;
}

footer {
    padding: 5px;
    background: #c6c6c6;
    position: fixed;
    bottom: 0;
    width: 100%;
}

footer .copyright {
    margin: 0;
    padding-top: 25px;
    font-size: 14px;
    color: #000;
}

select {
    font-weight: normal;
    background-position: calc(100% - 15px) 1em, calc(100% - 10px) 1em, calc(100% - 2.1em) 0.35em;
}

/* CSS pour la barre de navigation */
nav {
    background: #cbdde6;
    height: 100%;
    width: 210px;
    position: fixed;
    top: 0;
    left: 0;
    padding: 0;
    z-index: 10;
}

nav.nav-sap {
    background: #cbdde6;
    position: fixed;
    padding: 0 15px;
    height: 70px;
    width: 100%;
    z-index: 10;
}

.nav-container {
    max-width: none;
    display: block;
    padding: 0;
}

.nav-container-sap {
    max-width: none;
    display: flex;
    padding: 0;
    justify-content: flex-start;
    align-items: center;
    height: 60px;
}

.nav-logo {
    display: block;
    position: fixed;
    bottom: 15px;
    left: 15px;
}

.nav-title {
    display: block;
}

.nav-title-sap {
    display: flex;
    align-content: center;
    align-items: center;
}

.nav-links {
    display: block;
    height: auto;
    text-overflow: fade;
}

.nav-links-bottom {
    display: block;
    list-style: none;
    position: fixed;
    bottom: 150px;
    width: 200px;
}

.nav-links li,
.nav-links a {
    height: auto;
}

/* Overwrite .tooltip pour éviter border-bottom: none partout... */
.tooltip {
    border-bottom: none !important;
}

/* Style pour les en-têtes de tableau */
.sortable th {
    word-wrap: break-word;
    white-space: normal;
    min-width: 50px;
    padding: 10px;
    text-align: left;
    max-width: 100px;
    /*overflow: hidden;*/
    text-overflow: ellipsis;
}

input {
    max-width: fit-content;
    line-break: auto;
}

.app-title {
    font-size: 36px;
    font-weight: bold;
    padding: 18px;
    text-decoration: none;
    margin-top: 10px;
    margin-bottom: 15px;
    line-height: 30px;
}

.app-title:hover {
    cursor: pointer;
    text-decoration: underline;
}

/** >>DEBUT<< COMPARATIFS FOURNISSEURS **/
.divergence {
    background-color: #ffcccc;
    font-weight: bold;
    position: relative;
    padding-right: 20px; /* Espace pour l'icône */
    color: red;
    font-size: 14px;
}

/** >>FIN<< COMPARATIFS FOURNISSEURS **/


/* CARDS */
.card {
    margin: 10px;
    padding: 5px 20px;
}

.card-title {
    font-size: 18px;
}

input[type="color"],
input[type="date"],
input[type="datetime-local"],
input[type="email"],
input[type="month"],
input[type="number"],
input[type="range"],
input[type="search"],
input[type="tel"],
input[type="time"],
input[type="url"],
input[type="week"],
input[type="text"],
input[type="password"],
select {
    padding: 5px 10px;
    font-size: 14px;
}

/**
    Configuration des tableaux
 */
th,
td {
    color: #212121;
    padding: 5px;
}

table thead th {
    color: #2b2b35;
    font-weight: bold;
    padding: 5px;
}

table tbody td {
    padding: 5px;
}

.table-bordered {
    border-collapse: collapse;
    width: 100%;

    th,
    td {
        border: 1px solid #8a8a8a;
        border-spacing: 0;
    }
}

tr {
    background-color: #fff;
    height: auto; /* Ajout pour permettre une hauteur minimale */
    column-height: auto; /* Ajout pour permettre une hauteur minimale */
}

tr:hover {
    background-color: #aac2e6;
    color: white;
}

thead {
    tr:hover {
        background-color: #fff;
    }
}

tr:nth-child(even) {
    background-color: #e3eaf6;
}

tr:nth-child(even):hover {
    background-color: #aac2e6;
    color: white;
}

.table-fichiers {
    gap: 0;
    width: 100%;
    border: 1px solid #CBDDE6;
    /*border-collapse: unset;*/
}

.table-fichiers td,
.table-fichiers th {
    padding: 3px 9px !important;
    line-height: 1.15 !important;
    height: auto !important;
}

.table-fichiers thead {
    border-bottom: 1px solid #CBDDE6;
}

.table-fichiers tbody tr {
    height: auto !important;
}

.file-in-table {
    height: auto !important;
}

.file-in-table td {
    padding: 3px 9px !important;
    line-height: 1.15 !important;
    vertical-align: middle !important;
}

pre {
    display: block;
    margin: 0;
    padding: 10px 15px;
    white-space: pre-wrap;
    word-wrap: break-word;
    border: none;
    font-family: "Roboto", sans-serif;
    font-size: 14px;
    color: #212121;
}

.tag-error {
    background-color: #e41515;
    font-size: 12px;
    color: white;
    padding: 3px 5px;
}

.tag-warning {
    background-color: #fa7618;
    font-size: 12px;
    color: white;
    padding: 3px 5px;
}

.tag-ok {
    background-color: #1cc602;
    font-size: 12px;
    color: white;
    padding: 3px 5px;
}

.tag-normal {
    background-color: #ffffff;
    font-size: 12px;
    color: #424242;
    padding: 3px 5px;
}

.tag-highlight {
    background-color: #1867fa;
    font-size: 12px;
    color: white;
    padding: 3px 5px;
}

.tag-normal-dark {
    background-color: #91a8b9;
    font-size: 12px;
    color: white;
    padding: 3px 5px;
}

.clickable-line {
    cursor: pointer;
}

.start-hidden {
    visibility: hidden;
}

.clickable-line:hover {
    background-color: #aac2e6;
}

.clickable-line:hover img,
.clickable-line:hover button {
    visibility: visible;
}

.smartbiz-container {
    padding: 10px 30px;
    margin-left: 200px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.modal-footer {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.btn-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-right: 15px;
}

.btn-group button {
    width: 100%;
}

.cancel-button {
    align-self: flex-end;
}

a {
    color: #2b2b35;
    text-decoration: underline;
}

a:focus,
a:hover {
    opacity: 1;
}

a.navlink {
    text-decoration: none;
    display: block;
    padding: 10px;
    margin-left: 10px;
}

.nav-links-right {
    height: 100%;
    margin-bottom: 0;
}

.nav-links li:hover > a,
.nav-links-bottom li:hover > a,
.nav-links-right li:hover > a {
    background-color: #daf9ff;
}

.nav-links a.active,
.nav-links-bottom a.active,
.nav-links-right a.active {
    background-color: #daf9ff;
    border-bottom: 4px solid #91a8b9;
}

.nav-links a:active,
.nav-links-bottom a:active,
.nav-links-right a:active {
    color: #91a8b9;
}

.nav-links-bottom a.logout-link:hover,
.nav-links-right a.logout-link:hover {
    height: 100%;
    background-color: #ffadad;
}

ul.dropdown-content > li > a.navlink {
    margin-left: 0;
}

a.navlinkstatus {
    font-size: 14px;
    border: black 1px solid;
    padding: 10px 20px;
    opacity: 80%;
    display: inline-block;
    background: white;
    width: 150px;
    text-decoration: none;
    margin-left: 23px;
    margin-bottom: 18px;
}

a.navlinkstatus:hover {
    background-color: #0793ad;
    color: white;
}

.navlink-icon {
    height: 14px;
    margin-right: 10px;
}

.status-img {
    max-height: 20px;
    vertical-align: text-bottom;
}

a.toolbar-action {
    text-decoration: none;
    display: block;
    padding: 18px;
}

a.toolbar-action:hover {
    background-color: #0793ad;
    color: white;
}

.dropdown {
    position: relative;
}

.dropdown-click {
    position: relative;
}

.dropdown-cmd {
    display: inline-block;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: #f9f9f9;
    min-width: 200px;
    box-shadow: 0 8px 16px 0 rgba(0, 0, 0, 0.2);
    z-index: 100;
    left: 200px;
    top: 0;
    list-style: none;
}

.dropdown-content.right {
    right: 0;
    left: auto;
    top: 100%;
}

.dropdown-content a {
    color: black;
    padding: 10px 10px 10px 20px;
    text-decoration: none;
    display: block;
}

.dropdown:hover .dropdown-content {
    display: block;
}

.sticky {
    position: fixed;
    top: 0;
    margin-top: 0;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    width: 100%;
}

.sticky-dropdown {
    top: 57px;
}

.sticky + .order-details {
    padding-top: 15px;
}

.dropdown-content-cmd {
    display: none;
    position: absolute;
    background-color: #f9f9f9;
    min-width: 160px;
    box-shadow: 0 8px 16px 0 rgba(0, 0, 0, 0.2);
    z-index: 1;
}

.dropdown-content-cmd a {
    color: black;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
}

.dropdown-content-cmd a.refusal-button {
    background: #a11e1e;
    color: white;
}

.dropdown-cmd:hover .dropdown-content-cmd {
    display: block;
}

.order-toolbar {
    background: #91a8b9;
    color: white;
    top: 0;
    min-width: 300px;
    z-index: 10;
}

.order-po-number {
    padding: 11px;
    font-size: 1.5em;
    font-weight: bold;
    text-align: center;
}

.order-po-operation {
    padding: 5px;
    font-size: 0.6em;
    margin-right: 8px;
}

.order-po-version {
    font-weight: normal;
    font-size: 0.8em;
    margin-left: 3px;
}

.hideContent {
    overflow: hidden;
    line-height: 1em;
    height: 10em;
}

.showContent {
    line-height: 1em;
    height: auto;
}

.hideDevis {
    display: none;
}

.showMore {
    padding: 10px;
    text-align: right;
}

.smallEventTable {
    overflow: hidden;
    max-height: 365px;
}

.showDevis, .completeTableEvent {
    height: auto;
}

.longComment {
    margin-bottom: 0;
    padding-bottom: 5px;
    line-height: 1.2em;
    word-wrap: break-word;
}

.pagination {
    padding: 0;
    margin: 0;
    justify-content: center;
}

.page-number {
    padding: 5px 14px;
    line-height: 20px;
    margin: 0 5px;
}

.page-number.active {
    background-color: #e1e1e1;
    color: #424242;
    font-weight: bold;
}

.page-number:hover,
.page-number.active:hover {
    background-color: #0793ad;
    color: white;
    cursor: pointer;
}

.sortable {
    font-weight: bold;
    text-decoration: none;
    margin: 0;
    padding: 0;
    color: #2b2b35;
    background: white;
    border: none;
    font-size: 14px;
}

.sort-img {
    max-height: 12px;
    vertical-align: text-top;
}

button {
    background-color: #0793ad;
    color: white;
    border-color: transparent;
    margin: 0;
    height: 34px;
    line-height: 30px;
}

button:disabled {
    background-color: #d5d5d5;
    color: white;
    opacity: 1;
}

.cancel-button {
    background-color: #e1e1e1;
    color: #424242;
}

.attention-button {
    background-color: #fa8b3c;
}

.clickable-link {
    cursor: pointer;
    width: 100%;
    height: 100%;
}

.clickable-link:hover {
    background-color: #aac2e6;
}

input:focus {
    border-color: #0793ad;
}

.toggle-img {
    max-height: 20px;
    margin: 0;
    vertical-align: middle;
    padding-right: 10px;
}

.toggle-button {
    float: right;
    text-decoration: none;
}

.form-control {
    margin: 0;
}

.form-control.email-field {
    width: 80% !important;
    min-width: calc(90%);
}

.form-control-sap {
    margin: 5px 0;
}

.order-search-form {
    display: flex;
    flex-direction: row;
    padding: 0 10px;
    flex-wrap: wrap;
    min-width: 300px;
}

.order-search-field {
    line-height: 3.5em;
}

.order-search-field label {
    align-content: center;
    padding: 0 10px;
}

.order-search-field input,
select {
    width: auto;
    margin-right: 20px;
}

.order-search-field-select {
    margin: 0;
    width: 210px;
    height: 32px;
    padding: 5px 10px;
}

.order-search-field-select-status {
    width: 210px;
}

.order-search-field-select-operation {
    width: 110px;
}

a.card-title {
    font-size: 24px;
    color: #424242;
    font-weight: bold;
}

.response-code {
    font-size: 1.2em;
    font-weight: bold;
}

.code-ok {
    color: #28a745;
}

.code-error {
    color: #dc3545;
}

.tooltip-bottom-right {
    display: inline-block;
    position: relative;
    border-bottom: 1px dashed #bdbdbd;
}

.tooltip-bottom-right:focus,
.tooltip-bottom-right:hover {
    cursor: pointer;
}

.tooltip-bottom-right:focus .tooltip-bottom-right-text,
.tooltip-bottom-right:hover .tooltip-bottom-right-text {
    display: block;
}

.tooltip-bottom-right-text {
    display: none;
    position: absolute;
    min-width: 300px;
    padding: 10px 15px;
    color: #fff;
    text-align: center;
    background: #424242;
    border-radius: 5px;
    box-shadow: 0 2px 4px #9e9e9e;
    bottom: 0;
    transform: translateY(+100%) translateX(-50%);
    left: 0;
    line-height: 1.5em;
}

.tooltip-bottom-right-text::after {
    position: absolute;
    content: "";
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    border-width: 8px;
    border-style: solid;
    border-color: #424242 transparent transparent;
}

.tooltip-bottom-left {
    display: flex;
    position: relative;
}

.tooltip-bottom-left:focus,
.tooltip-bottom-left:hover {
    cursor: pointer;
}

.tooltip-bottom-left:focus .tooltip-bottom-left-text,
.tooltip-bottom-left:hover .tooltip-bottom-left-text {
    display: block;
}

.tooltip-bottom-left-text {
    display: none;
    position: absolute;
    min-width: auto;
    white-space: nowrap;

    padding: 6px 12px;
    color: #fff;
    text-align: center;
    background: #424242;
    border-radius: 5px;
    box-shadow: 0 2px 4px #9e9e9e;
    bottom: -10px; /* Décale un peu vers le bas */
    transform: translateY(100%);

    right: 0;
    line-height: 1.2em;
    z-index: 100;
}

.tooltip-bottom-left-text::after {
    position: absolute;
    content: "";
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    border-width: 8px;
    border-style: solid;
    border-color: #424242 transparent transparent;
}

.order-table-priority {
    max-height: 20px;
    margin-left: 5px;
}

.order-priority-menu {
    max-height: 24px;
}

.order-priority-list-menu {
    max-height: 18px;
}

.order-priority-title {
    max-height: 25px;
    margin-left: 5px;
}

.comment-icon {
    margin-bottom: 10px;
}

.comment-icon:hover {
    cursor: pointer;
}

.comment-sidebar {
    background: #91a8b9;
    color: white;
    float: right;
    width: 350px;
    z-index: 10;
    position: fixed;
    top: 0;
    right: 0;
    padding: 10px;
    height: 100vh;
    transition: 0.5s ease-in-out;
    display: flex;
    box-sizing: border-box;
}

.comment-sidebar-hidden {
    transform: translate(310px);
}

.comment-sidebar-visible {
    transform: translate(0);
}

.comment-sidebar-list {
    margin-left: 30px;
}

.sticky-comment-sidebar {
    top: 0;
}

.comment-info {
    height: 62px;
    margin-top: 10px;
    display: flex;
    align-items: end;
    margin-bottom: 5px;
    margin-right: 5px;
}

.comment-text {
    padding: 10px;
    background-color: white;
    color: #424242;
    margin-top: 5px;
    margin-bottom: 10px;
    margin-right: 5px;
}

.center-elements {
    display: flex;
    align-items: center;
}

.po-id-column {
    width: 145px;
}

.supervision-toolbar {
    position: fixed;
    background: #91a8b9;
    color: white;
    top: 0;
    margin: 0;
    max-width: calc(100% - 260px);
    z-index: 10;
    width: 100%;
}

.supervision-title {
    margin-left: 1.5em;
    font-size: 26px;
    font-weight: bold;
}

.supervision-reference {
    padding: 11px;
    font-size: 1.5em;
    font-weight: bold;
    text-align: center;
}

.supervision-refresh {
    display: flex;
    align-items: center;
    justify-content: right;
    padding-right: 1.5em;
}

.order-actions {
    line-height: 16px;
    height: 18px;
    color: #0793ad;
    font-size: 12px;
    background: transparent;
    max-height: 14px;
    padding: 0 2px;
}

.comments-sidebar-title {
    width: 20px;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-right: 10px;
}

.comment-sidebar-comments {
    width: 300px;
    height: 100%;
    padding: 25px 10px 20px 10px;
    border-left: 1px white solid;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
}

.comment-list {
    overflow-y: auto;
    flex-grow: 1;
    margin-top: 10px;
    padding-bottom: 15px;
    margin-bottom: 0px;
}

.clickable-element {
    cursor: pointer;
}

.delete-button {
    background-color: #d0132e;
}

.validate-button {
    background-color: #0f9f04;
}

.action-button {
    padding: 0 16px;
    font-size: 11px;
    vertical-align: middle;
}

.icon-button {
    display: inline-flex;
    align-items: center;
}

button.selected-button {
    cursor: default;
}

button.not-selected-button {
    background-color: white;
    color: #0793ad;
    border-color: #0793ab;
}

button.not-selected-button:disabled {
    background-color: white;
    color: #d5d5d5;
    border-color: #d5d5d5;
}

.request-form {
    display: none;
    background-color: #f5f5f5;
}

.request-form.active {
    display: block;
}

.display-none {
    display: none;
}

.select-error-code {
    text-overflow: ellipsis;
    overflow: hidden;
    width: 200px;
    white-space: nowrap;
    padding-right: 30px;
}

.autocomplete {
    /*the container must be positioned relative:*/
    position: relative;
    display: inline-block;
}

.autocomplete-items {
    position: absolute;
    border: 1px solid #d4d4d4;
    border-bottom: none;
    border-top: none;
    z-index: 99;
    /*position the autocomplete items to be the same width as the container:*/
    top: 100%;
    left: 0;
    right: 0;
}

.autocomplete-items div {
    padding: 10px;
    cursor: pointer;
    background-color: #fff;
    border-bottom: 1px solid #d4d4d4;
}

.autocomplete-items div:hover {
    /*when hovering an item:*/
    background-color: #e9e9e9;
}

li.autocomplete-active {
    background-color: #aac2e6;
    color: #424242;
}


.dropdown-content-order {
    display: none;
    position: absolute;
    background-color: #f9f9f9;
    min-width: 160px;
    box-shadow: 0 8px 16px 0 rgba(0, 0, 0, 0.2);
    z-index: 1;
    top: inherit;
}

.dropdown-content-order a {
    color: black;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
}

.dropdown-content-order a.refusal-button {
    background: #a11e1e;
    color: white;
}

.dropdown-order:hover .dropdown-content-order {
    display: block;
}

.dropdown-order {
    display: inline-block;
}

.nav-logo img {
    max-width: 170px;
    max-height: 60px;
    height: auto;
    transition: max-width 0.3s ease; /* Transition fluide lors du redimensionnement */
}

.is-invalid {
    border: 2px solid #da0707;
}

.sap-form-section-title {
    font-size: 1.2em;
    font-weight: bold;
}

.progress-bar-parent {
    background: lightgray;
    height: 1.5em;
    width: 100%;
}

.progress-bar-child {
    height: 1.5em;
}

.progress-bar-0 {
    width: 0;
}

.progress-bar-25 {
    width: 25%;
}

.progress-bar-50 {
    width: 50%;
}

.progress-bar-75 {
    width: 75%;
}

.progress-bar-100 {
    width: 100%;
}

.progress-bar-blue {
    background: blue;
}

.progress-bar-green {
    background: green;
}

.progress-bar-red {
    background: red;
}

.progress-bar-orange {
    background: darkorange;
}

.progress-bar-grey {
    background: #303030;
}

@media screen and (max-width: 5000px) {
}

/* Tab Container Styles */
.tab-container {
    border: 1px solid #dee2e6;
    border-radius: 4px;
    overflow: hidden;
    margin: 8px 0;
    width: 100%;
}

.tab-nav {
    display: flex;
    background-color: #f8f9fa;
    border-bottom: 1px solid #dee2e6;
}

.tab-button {
    background-color: transparent;
    border: none;
    padding: 10px 0;
    cursor: pointer;
    flex: 1;
    text-align: center;
    color: #424242;
    font-weight: normal;
    transition: background-color 0.3s;
    height: auto;
    line-height: 1;
    border-radius: 0;
    text-transform: none;
    transform: none;
    letter-spacing: 0;
}

.tab-button:hover {
    background-color: #e3eaf6;
    transform: none;
}

.tab-button.active {
    background-color: #fff;
    color: #0793ad;
    font-weight: bold;
    border-bottom: 2px solid #0793ad;
    transform: none;
}

.tab-content {
    display: none;
    padding: 15px;
    background-color: #fff;
}

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

.remove-row-btn {
    background: #a11e1e;
    color: white;
}

.tag-lien {
    background: #91a8b9;
    width: fit-content;
    padding: 0 15px;
    margin: 0;
    height: 28px;
    color: white;
    font-weight: bold;
    border-radius: 5px;
}

.fournisseur-import {
    background-color: #e0e0e0;
    margin-bottom: 2px;
    margin-top: 2px;
    padding: 1em 0;
}

.flex-line {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
}

.fournisseur-import input {
    margin-left: 0.75rem;
    margin-right: 0.75rem;
}

.fournisseur-import button {
    margin-left: 0.75rem;
    margin-right: 0.75rem;
}

.fournisseur-import div {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
}


/** Pagination Listes */
.pagination-container {
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.pagination {
    margin: 0;
}

.pagination-info {
    color: #6c757d;
    font-size: 0.9rem;
}

.pagination-size-selector {
    display: flex;
    align-items: center;
    gap: 10px;
}

.pagination-size-selector select {
    width: auto;
    padding: 0.25rem 0.5rem;
}

/* Loader animation */
.loader {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, .3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
    margin-right: 10px;
    vertical-align: middle;
}

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

/* Disabled button styles */
button:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

/* Error message styles */
.error-message {
    color: red;
    font-size: 12px;
    margin-top: 5px;
    display: none;
}

/* Error field styles - only applied after validation */
.field-error {
    border: 2px solid red !important;
    background-color: #ffeaea !important;
}

/* Success field styles */
.field-success {
    border: 2px solid green !important;
}

input:disabled,
textarea:disabled,
select:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.main-layout {
    display: flex;
    flex-direction: row;
    margin-right: 40px;
}

#navbar-offset {
    transition: 0.5s ease-in-out;
}

.navbar-offset-on {
    width: 350px;
}

.navbar-offset-off {
    width: 0;
}

.action-column {
    white-space: nowrap;
}

.tooltip-button {
    display: inline-flex;
    vertical-align: middle;
}

.confirmation-dialog {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.confirmation-dialog-content {
    background-color: white;
    padding: 20px;
    border-radius: 5px;
    max-width: 400px;
    text-align: center;
}

.dragging {
    opacity: 0.5;
    transform: rotate(2deg);
}

.drag-over {
    border-top: 3px solid #007bff !important;
    background-color: #f8f9fa;
}

.drag-handle:hover {
    background-color: #f0f0f0;
    cursor: grab;
}

.drag-handle:active {
    cursor: grabbing;
}

tr[draggable="true"]:hover {
    background-color: #f8f9fa;
}

.smartbiz.alert-success {
    background: #a6f0ac;
}

.smartbiz.alert-danger {
    background: #ffcfd6;
}

/* Responsive Design */
@media screen and (max-width: 1610px) {
    body {
        font-size: 11px;
        line-height: 1.3em;
    }

    .app-title {
        font-size: 20px;
    }

    a.navlinkstatus {
        font-size: 0.8em;
        padding: 0.2em 0.2em;
        margin-left: 1.5em;
        margin-bottom: 1em;
        width: 70%;
    }

    text {
        font-size: 11px;
    }

    nav {
        width: 120px;
        display: flex;
        flex-wrap: wrap;
        flex-direction: row;
        max-width: fit-content;
    }

    .nav-container {
        max-width: 120px;
    }

    .nav-links-bottom {
        width: 9%;
        max-width: 120px;
    }

    .sortable {
        font-size: 12px;
    }

    .non-sortable {
        font-size: 12px;
    }

    h1 {
        font-size: 30px;
    }

    h2 {
        font-size: 26px;
    }

    h3 {
        font-size: 24px;
    }

    h3 {
        font-size: 20px;
    }

    .nav-logo img {
        max-width: 100px;
    }

    .container {
        overflow-x: auto;
        margin-right: 15px;
        margin-left: 120px;
    }

    .smartbiz-container {
        margin-left: 120px;
        display: flex;
        flex-direction: column;
        flex: 1;
    }

    .dropdown-content {
        margin-left: -80px;
    }

    .container.container-sap {
        overflow-x: auto;
        margin-right: 180px;
        margin-left: 180px;
        margin-top: 40px;
    }

    nav.nav-sap {
        max-width: inherit;
    }
}

.action-wrapper {
    display: flex !important;
    flex-direction: row !important;
    align-items: center;
    justify-content: center;
    gap: 4px;
    width: auto !important;
    margin: 0 !important;
    padding: 0 !important;
}

.btn-action {
    background: transparent;
    border: none;
    padding: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.1s;
}

.btn-action:hover {
    transform: scale(1.1);
}

.icon-svg {
    width: 20px !important;
    height: 20px !important;
    display: block;
}

@media (prefers-color-scheme: light) {
    .icon-svg {
        filter: invert(1) brightness(2);
    }
}

/* --- Loading overlay for blocking UI during server requests --- */
.loading-overlay {
    display: none;
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.35);
    z-index: 9999;
    align-items: center;
    justify-content: center;
}

.loading-overlay.active {
    display: flex;
}

.loading-spinner {
    box-sizing: border-box;
    border: 4px solid rgba(255, 255, 255, 0.35);
    border-top-color: #506cc0; /* theme primary (matches custom.css palette) */
    border-radius: 50%;
    width: 48px;
    height: 48px;
    animation: sb-spin 1s linear infinite;
}

.loading-text {
    color: #fff;
    font-size: 14px;
}

@keyframes sb-spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

.close-alert {
    position: absolute;
    top: 5px;
    right: 5px;
    background: transparent;
    border: none;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    color: #424242;
}

.select-page-size {
    width: 90px;
}

@media screen and (max-width: 1610px) {
    body {
        font-size: 14px;
        line-height: 1.5em;
    }
}

.home-info-spec {
    background: #cbdde6;
    padding: 10px;
}
/* ---- Références: animation d'ouverture/fermeture ---- */
.collapse-wrapper {
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  transform: translateY(-4px);
  transition: max-height 300ms ease, opacity 300ms ease, transform 300ms ease;
}

.collapse-wrapper.is-open {
  max-height: 1200px; /* valeur suffisamment grande pour contenir le tableau */
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .collapse-wrapper,
  .collapse-wrapper.is-open {
    transition: none !important;
  }
}
