body {
    font-family: 'Public Sans', Arial, sans-serif;
    margin: 0;
    display: flex;
    height: 100vh;
    background-color: #f4f6f9;
}

.container {
    padding: 20px;
}

.sidebar {
    background-color: #34495e;
    position: fixed;
    height: 100%;
    transition: width 0.3s, background-color 0.3s;
    display: flex;
    flex-direction: column;
    box-shadow: 2px 0 5px rgba(0, 0, 0, 0.1);
    z-index: 8;
}

.sidebar.maxified {
    width: 200px;
}

.sidebar.minified {
    width: 80px;
}

.content {
    margin-left: 80px;
    padding: 20px;
    transition: margin-left 0.3s;
    overflow-x: hidden;
}

.sidebar.minified + .content {
    margin-left: 80px;
}

.toggle-btn {
    cursor: pointer;
    padding: 20px;
    text-align: center;
    color: #ecf0f1;
    font-size: 20px;
    transition: transform 0.3s, background-color 0.3s;
}

.toggle-btn:hover {
    background-color: #2c3e50;
}

.logo-container {
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo img {
    max-width: 100%;
    height: auto;
    transition: opacity 0.3s;
}

.sidebar.minified .logo-full {
    opacity: 0;
}

.sidebar.minified .logo-minified {
    opacity: 1;
}

.menu {
    margin-top: 20px;
    flex: 1;
}

.menu-item {
    padding: 15px 20px;
    display: flex;
    align-items: center;
    color: #ecf0f1;
    text-decoration: none;
    transition: background-color 0.3s, color 0.3s;
    border-left: 3px solid transparent;
}

.menu-item:hover {
    background-color: #2c3e50;
    color: #ffffff;
    border-left: 3px solid #e74c3c;
}

.menu-item i {
    font-size: 20px;
    margin-right: 15px;
    transition: margin 0.3s, color 0.3s;
}

.sidebar.minified .menu-item i {
    margin: 0;
}

.menu-item span {
    transition: opacity 0.3s;
}

.sidebar.minified .menu-item span {
    opacity: 0;
}

.header {
    margin-bottom: 20px;
}

/* Global H1 Styling */
h1 {
    font-family: 'Public Sans';
    font-size: 2em;
    color: #2c3e50;
    margin: 0 0 20px;
    padding-bottom: 10px;
    font-weight: 600;
    text-align: left;
}


.btn-primary {
    background-color: #1abc9c;
    color: #ffffff;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    text-decoration: none;
    transition: background-color 0.3s ease;
}

.btn-primary:hover {
    background-color: #16a085;
}

.table-container {
    font-size: 12px;
    overflow-x: auto;
    position:relative;
    margin-bottom: 50px;
    min-height:200px;
}

.styled-table {
    border-collapse: separate; /* Utiliser 'separate' pour gérer les bordures individuellement */
    border-spacing: 0;
    margin: 25px 0;
    font-family: 'Open Sans', Arial, sans-serif;
    min-width: 1000px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden;
}

.styled-table thead tr {
    background-color: #34495e;
    color: #ffffff;
    text-align: left;
    font-weight: bold;
}

.styled-table thead th {
    padding: 12px 15px;
    border-bottom: 2px solid #e3e3e3; /* Ajout de la bordure inférieure */
}

.styled-table tbody tr {
    border-bottom: 1px solid #dddddd;
    transition: background-color 0.3s;
}

.styled-table tbody tr:nth-of-type(even) {
    background-color: #f3f3f3;
}

.styled-table tbody tr:hover {
    background-color: lightgray;
}

.styled-table tbody td {
    padding: 8px 12px;
}

.styled-table tbody td:first-child {
    border-left: none;
}

.styled-table tbody td:last-child {
    border-right: none;
}

.styled-table tbody tr:last-of-type td {
    border-bottom: none; /* Supprime la bordure inférieure pour la dernière ligne */
}

.styled-table tbody tr.active-row {
    font-weight: bold;
    color: #34495e;
}



/* Styles pour le select */
.nice-select/*,
.selectActions, .localCarriers {
    padding: 10px;
    font-size: 0.9em;
    border: 1px solid #ccc;
    border-radius: 4px;
    background-color: #fff;
    color: #34495e;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 24 24' style='background-color: white'><path fill='none' stroke='%23434956' stroke-width='2' d='M2 7 L12 17 22 7'/></svg>");
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 10px;
    background-color: #fff;
    transition: border-color 0.3s ease;
}*/

/* NXL 07-25 [[ */

.localCarriers {
    
}

/* ]] NXL 07-25 */

/*.selectActions:hover, .localCarriers:hover {
    border-color: #b3b3b3;
}

.selectActions:focus, .localCarriers:focus {
    outline: none;
    border-color: #1abc9c;
}

.selectActions option, .localCarriers option {
    padding: 10px;
}*/

.mw-150 {
    min-width: 150px;
}

.product-filter {
    background-color: #ffffff;
    border-radius: 8px;
    padding: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
    display: none;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 10px;
    transition: max-height 0.3s ease-out, padding 0.3s ease-out;
    max-height: 0; /* Hauteur par défaut cachée */
    overflow: hidden; /* Assurer que le contenu ne dépasse pas */
}

.product-filter.show {
    display: flex;
    max-height: 550px; /* Hauteur maximale pour le formulaire une fois affiché */
    padding: 10px 10px; /* Ajouter du padding lors de l'affichage */
}

.product-filter .form-group {
    flex: 1 1 150px;
    margin-bottom: 10px;
    display: inline-block;
    width: 40%;
    margin-right: 30px;
}

.product-filter label {
    display: block;
    margin-bottom: 3px;
    font-weight: bold;
    color: #34495e;
    font-size: 0.85em; /* Taille de police réduite pour les labels */
}

.product-filter .form-control {
    width: 100%;
    padding: 6px; /* Padding réduit */
    font-size: 0.85em; /* Taille de police réduite */
    border: 1px solid #ccc;
    border-radius: 4px;
    transition: border-color 0.3s ease;
}

.product-filter .form-control:focus {
    border-color: #1abc9c;
    outline: none;
}

.product-filter .form-check-input {
    margin-top: 0.3em;
}

.product-filter .btn-primary {
    background-color: #1abc9c;
    color: #ffffff;
    border: none;
    padding: 6px 12px; /* Padding réduit */
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    align-self: flex-start; /* Place le bouton en haut du formulaire */
}

.product-filter .btn-primary:hover {
    background-color: #e74c3c;
}

/* Nouveau bouton pour afficher/masquer le formulaire de filtre */
.btn-toggle-filter, .regenerate-filter{
    background-color: #16a085;
    color: #ffffff;
    border: none;
    padding: 6px 12px; /* Padding réduit */
    border-radius: 4px;
    cursor: pointer;
    margin-bottom: 20px;
    transition: background-color 0.3s ease;
}

.btn-toggle-filter:hover, .regenerate-filter {
    background-color: #e74c3c;
}



/* Styles pour les booléens informatifs */
.boolean-info, .btn-add-tracking {
    text-align: center;
    font-size: 1.2em;
    color: #b3b3b3; /* Couleur neutre par défaut */
}


.boolean-info .icon.yes, .btn-add-tracking i {
    color: #3498db; /* Bleu pour l'état sélectionné */
}


.boolean-info .icon.no {
    color: #b3b3b3; /* Gris pour l'état non sélectionné */
}

.boolean-call-to-action {
    text-align: center;
    font-size: 1.2em;
    cursor: pointer;
}

.boolean-call-to-action .icon.no {
    color: red;
}

.boolean-call-to-action .icon.yes {
    color: #16a085
}

#notification-container {
    position: fixed;
    top: 100px;
    right: 20px;
    z-index: 9999;
    width: 300px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

#notification-container .notification {
    width: 100%;
    padding: 15px;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    opacity: 1;
    transition: opacity 0.5s ease-in-out;
}

#notification-container .success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

#notification-container .error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.generate-file {
    cursor: pointer;
    color: #3498db;
    font-size: 13px;
    text-align: center;
}

/* Ajoutez ce CSS dans votre fichier CSS principal */
#modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgb(0, 0, 0);
    background-color: rgba(0, 0, 0, 0.4);
}

#modalForm {
    background-color: #fefefe;
    margin: 15% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 80%;
    max-width: 600px;
    position: relative;
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
}

.close:hover,
.close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}


.modal-form-control {
    width: 100%;
    padding: 10px;
    margin: 5px 0 15px 0;
    display: inline-block;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
}

.modal-form-control-file {
    margin-top: 10px;
}

#modal button[type="submit"] {
    background-color: #155724;
    color: white;
    padding: 10px 20px;
    margin: 10px 0;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

#modalForm button[type="submit"]:hover {
    background-color: #155724;
}

.nice-input,
.expedition-date,
.expedition-date-2,
.number-of-boxes,
.number-of-products-per-box,
.number-of-pallets {
    width: 100%;
    padding: 8px;
    margin: 5px 0;
    display: inline-block;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
    font-family: 'Public Sans', Arial, sans-serif;
    transition: border-color 0.3s ease;
}

.nice-input:focus,
.expedition-date-2:focus,
.expedition-date:focus,
.number-of-boxes:focus,
.number-of-products-per-box:focus,
.number-of-pallets:focus {
    border-color: #1abc9c;
    outline: none;
}

input[type=number]::-webkit-outer-spin-button,
input[type=number]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

input[type=number] {
    -moz-appearance: textfield;
}

.btn-add-tracking {
    margin: 10px auto;
    font-size: 18px;
    cursor: pointer;
}


.max-width-100 {
    max-width: 100px;
}


.add-container {
    margin-top: 20px;
    text-align: right;
}

.add-button {
    display: inline-flex;
    align-items: center;
    padding: 10px 15px;
    background-color: #1abc9c;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-size: 16px;
    transition: background-color 0.3s;
}

.add-button i {
    margin-right: 5px;
}

.add-button:hover {
    background-color: #1abc9c;
}

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

.action-button {
    display: inline-block;
    padding: 5px 10px;
    margin: 0 5px;
    color: #3498db;
    text-decoration: none;
    font-size: 15px;
    transition: color 0.3s ease;
}

.action-button:hover {
    color: #2980b9;
}


.card {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
    overflow: hidden;
}

.card-header {
    background-color: #34495e;
    color: white;
    padding: 15px;
    font-size: 18px;
    font-weight: bold;
}

.card-body {
    padding: 15px;
}

.detail-item {
    margin-bottom: 10px;
    font-size: 16px;
}

.action-buttons {
    display: flex;
    gap: 10px;
    justify-content: flex-start;
}

.btn-delete {
    background-color: #e74c3c;
    color: white;
    text-decoration: none;
    padding: 10px 15px;
    border-radius: 4px;
    display: inline-flex;
    align-items: center;
    font-size: 16px;
    transition: background-color 0.3s;
}

.btn-delete:hover {
    background-color: #c0392b;
}


.large-textarea {
    height: 300px; /* Ajuster selon la taille souhaitée */
    resize: vertical; /* Permet à l'utilisateur de redimensionner verticalement si nécessaire */
}

.form-label {
    font-size: 1.2em;
    font-weight: bold;
    color: #2c3e50;
    margin-bottom: 10px;
    display: block;
}

.form-section {
    margin-bottom: 20px; /* Augmentez l'espace entre chaque section */
}

.form-help {
    font-size: 0.9em;
    color: #666666;
    margin-top: 5px;
    font-style: italic;
}
.tooltip-content {
    display: none;
    position: fixed;
    background-color: #fff;
    border: 1px solid #ccc;
    padding: 10px;
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.1);
    z-index: 10000;
}

.d-none{
    display: none;
}
.icon-container {
    display: inline-block;
    vertical-align: middle;
    margin-right: 5px;
}

.header-text {
    display: inline-block;
    vertical-align: middle;
}

th.sort {
    white-space: nowrap;
}
th.sort:hover{
    cursor:pointer
}

th.sort .icon-container {
    display: inline-flex;
    align-items: center;
}

.download-visual-file{
    cursor:pointer
}

.pagination {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1rem;
}

.pagination a {
    padding: 0.5rem 1rem;
    background-color: #f9f9f9;
    border: 1px solid #e5e5e5;
    border-radius: 5px;
    color: #333;
    font-size: 0.875rem; /* 14px */
    text-decoration: none;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.pagination a:hover {
    background-color: #007bff;
    color: white;
}

.pagination a.active {
    background-color: #007bff;
    color: white;
    font-weight: bold;
    cursor: default;
    pointer-events: none; /* Désactiver les clics sur l'élément actif */
}

.pagination a.disabled {
    background-color: #f1f1f1;
    color: #aaa;
    cursor: not-allowed;
}

.pagination .current{
    font-size:18px;
}

/* -- NXL [[ */
select.localCarriers {
    max-width: 150px;
    width: 150px;
}
