﻿/* TODO
    1. Responsivité : Une refactorisation des CSS est nécéssaire pour activer la <meta name="viewport" content="width=device-width, initial-scale=1.0"/> sur toutes les pages pour optimiser la responsivité de l'app
    2. Maintenabilité : Une réorganisation des CSS est nécessaire afin d'éviter que les classes soient en conflits et éviter les doublons.
*/
body {
    margin: 0;
    padding: 0;
    overflow-x: hidden; /* Pour éviter le débordement horizontal */
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box; /* Pour éviter que les paddings et marges affectent la taille totale */
}

a {
    color: #1D3557;
}

/* Override Bootstrap .btn-primary color 
.btn-primary {
    background-color: #1D3557 !important; /* Replace with your desired color 
    border-color: #1D3557 !important;
}

 Optional: Change hover/focus/active states 
.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active {
    background-color: #357ab8 !important;
    border-color: #357ab8 !important;
    color: white;
} 

.btn-outline-secondary {
    color: #1d3557 !important
    background-color: #f1b700 !important;
    border-color: #f1b700 !important; 
}

.btn-outline-secondary:hover, .btn-outline-secondary.active, .btn-outline-secondary:active, .btn-outline-secondary:focus {
    color: #fff !important;
    background-color: #f1b700 !important;
    border-color: #f1b700 !important;
}
*/

.disabled-overlay {
    pointer-events: none;
    opacity: 0.6;
    background: #f8f9fa;
}

.accordion-button {
    background-color: #fff;
    color: #1D3557;
}

    .accordion-button:not(.collapsed) {
        background-color: #1D3557;
        color: #f1b700;
    }

.accordion-button:focus {
    box-shadow: none;
}

.accordion-body {
    background-color: #eee;
    border-bottom-left-radius: 10px;
    border-bottom-right-radius: 10px;
}

.accordion-item {
    border-bottom-left-radius: 10px;
    border-bottom-right-radius: 10px;
    box-shadow: 0 3px 1px -2px var(--v-shadow-key-umbra-opacity, rgba(0, 0, 0, .2)), 0 2px 2px 0 var(--v-shadow-key-penumbra-opacity, rgba(0, 0, 0, .14)), 0 1px 5px 0 var(--v-shadow-key-ambient-opacity, rgba(0, 0, 0, .12));
}

    .accordion-item:not(:has(.collapsed)) {
        margin-bottom: 10px;
        box-shadow: 0 3px 1px -2px var(--v-shadow-key-umbra-opacity, rgba(0, 0, 0, .2)),0 2px 2px 0 var(--v-shadow-key-penumbra-opacity, rgba(0, 0, 0, .14)),0 1px 5px 0 var(--v-shadow-key-ambient-opacity, rgba(0, 0, 0, .12));
    }

.accordion-button:not(.collapsed) .scan-icon {
    color: #f1b700 !important;
}

.accordion-button:not(.collapsed)::after {
    /* Remplace l'icône active par une version blanche (inversée) */
    background-image: var(--bs-accordion-btn-active-icon);
    filter: invert(1);
}

.scan-fullscreen {
    align-content: center;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 5;
    width: 100vw;
    height: 100vh;
    background: #fff;
    overflow: auto;
    box-shadow: 0 0 40px rgba(0,0,0,0.2);
}

.btn-label {
    font-size: 1.5rem;
}

.alert {
    font-size: 1.25rem;
}

body {
    padding-bottom: 20px;
}

/* Set padding to keep content from hitting the edges */
.body-content {
    padding-left: 15px;
    padding-right: 15px;
}

/* Override the default bootstrap behavior where horizontal description lists 
   will truncate terms that are too long to fit in the left column 
*/
.dl-horizontal dt {
    white-space: normal;
}

/* Set width on the form input elements since they're 100% wide by default */
input,
select,
textarea {
    max-width: 300px;
}

#fixedBottom {
    position: fixed;
    bottom: 5px;
    left: 50%;
    border-radius: 25px;
    transform: translateX(-50%);
    width: auto;
    /* Height of the footer*/
    height: 100px;
}

#RelativeBottom {
    position: absolute;
    bottom: 0;
    /*left: 50% ;*/
    /*border-radius: 25px ;*/
    /*transform: translateX(-50%) ;*/
    width: 100%;
    /* Height of the footer*/
    height: 90px;
}

.custom-modal-width {
    max-width: 90vw; /* ou une largeur fixe comme 1200px ou 1400px */
}

.labelCenter {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    font-size: 19px;
}

.btn-search {
    display: flex !important;
    text-align: center;
    align-items: center;
    justify-content: center;
}

@media (max-width: 1280px) {

    .pagination-ys {
        padding-left: 0;
        margin: 20px 0;
        border-radius: 4px;
        font-size: 38px;
    }
}

.pagination-ys table > tbody > tr > td {
    display: inline;
}

.pagination-ys table > tbody > tr > td > a,
.pagination-ys table > tbody > tr > td > span {
    position: relative;
    float: left;
    padding: 10px 18px;
    line-height: 1.42857143;
    text-decoration: none;
    color: #aea79f;
    background-color: #f5f5f5;
    border: 1px solid #dddddd;
    margin-left: -1px;
}

    .pagination-ys table > tbody > tr > td > span {
        position: relative;
        float: left;
        padding: 10px 18px;
        line-height: 1.42857143;
        text-decoration: none;
        margin-left: -1px;
        z-index: 2;
        color: #f1b700;
        background-color: #ffffff;
        border-color: #dddddd;
        cursor: default;
    }

.pagination-ys table > tbody > tr > td:first-child > a,
.pagination-ys table > tbody > tr > td:first-child > span {
    margin-left: 0;
    border-bottom-left-radius: 10px;
    border-top-left-radius: 10px;
}

.pagination-ys table > tbody > tr > td:last-child > a,
.pagination-ys table > tbody > tr > td:last-child > span {
    border-bottom-right-radius: 10px;
    border-top-right-radius: 10px;
}

.pagination-ys table > tbody > tr > td > a:hover,
.pagination-ys table > tbody > tr > td > span:hover,
.pagination-ys table > tbody > tr > td > a:focus,
.pagination-ys table > tbody > tr > td > span:focus {
    color: #f1b700;
    background-color: #eeeeee;
    border-color: #dddddd;
}

.btn-xl {
    font-size: 1.25rem;
    padding: 1rem 2rem;
    border-radius: 0.5rem;
}

.modal-title {
    display: flex;
    align-items: center;
}

.no-wrap {
    white-space: nowrap; /* Empêche le texte de s'enrouler */
    overflow: hidden; /* Cache le texte qui dépasse */
    text-overflow: ellipsis; /* Ajoute des points de suspension si le texte est trop long */
}

.fieldset-container {
    display: flex;
    flex-direction: column;
    gap: 1rem; /* Espacement entre les fieldsets */
}

/* Sur les écrans larges (desktop), les fieldsets sont affichés en ligne (horizontalement) */
@media (min-width: 1100px) {
    .fieldset-container {
        flex-direction: row; /* Affichage horizontal */
    }

        .fieldset-container fieldset:first-child {
            flex: 0 0 60%; /* Premier fieldset occupe 60% */
        }

        .fieldset-container fieldset:last-child {
            flex: 0 0 40%; /* Deuxième fieldset occupe 40% */
        }
}

@media print {
    body {
        font-size: 10pt;
    }

    .print-col {
        width: 50% !important;
        float: left;
        box-sizing: border-box;
        page-break-inside: avoid;
    }

    .ship-trip {
        margin-bottom: 0.5rem;
    }

    .modal, .modal-dialog, .modal-content {
        all: unset !important;
        display: block !important;
    }
}

.twCheckbox {
    width: 25px;
    height: 25px;
    border-color: #1D3557;
}

.twCheckbox:checked {
    background-color: orange;
    border-color: #1D3557;
}