* {
    font-family: "Times News Roman", Times, serif;
}

/* body{
  margin: 0;
  padding: 0;
  box-sizing: border-box;
} */

body {
    margin: 0;
    padding: 0;
}

header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 1;
}

header nav ul {
    margin-top: 0;
}

nav {
    background-color: #0e0bed;
}

.after {
    width: 100%;
    height: 7px;
    background-color: red;
    /* margin-bottom: 20px; */
}

nav ul {
    display: flex;
    align-items: center;
    justify-content: space-around;
    margin-bottom: 0;
}

nav ul li img {
    width: 130px;
    margin-top: 10px;
}

nav ul li {
    list-style: none;
    color: #fff;
    font-size: 25px;
}

nav ul li a {
    position: relative;
    text-decoration: none;
    color: #fff;
    font-size: 25px;
    font-style: normal;
    /* border: none; */
    transition: color 2s ease;
}

nav ul li a::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: rgb(97, 243, 0);
    transition: width 1s ease; /* Transition pour l'effet d'underline */
}

nav ul li a:hover::after {
    width: 100%; /* La largeur passe à 100% au survol */
}

nav ul li a:hover {
    color: rgb(97, 243, 0);
}

nav ul li .icon {
    margin-top: 0;
    font-size: 25px;
}

main section {
    /* margin-top: 25px; */
    display: flex;
}

main section .left {
    width: 180px;
    background-color: #EFEDEE;
    height: 100vh;
    padding: 0 5px;
    box-shadow: 4px 0 10px rgba(0, 0, 0, 0.2);
    top: 50px;
    display: flex;
    flex-direction: column; /* Pour aligner les éléments en colonne */
    align-items: center; /* Centre horizontalement */
    justify-content: center; /* Centre verticalement */
}

/*main section .left h2,*/
/*main section .left h2 a:visited {*/
/*    text-decoration: underline;*/
/*    color: blue;*/
/*}*/

/*main section .left {*/
/*    margin-top: 130px;*/
/*    text-align: center;*/
/*    flex: 1;*/
/*    border: solid blue 5px;*/
/*    margin-right: 15px;*/
/*    margin-left: 5px;*/
/*    border-radius: 25px;*/
/*    padding-top: 0;*/
/*    height: 100%;*/
/*}*/

main section .right {
    flex: 8;
    /* margin-right: 10px; */
    margin: 0 15px;
    padding-top: 120px;
}

main section .right .search {
    /* border: solid black 2px; */
    margin-bottom: 10px;
    font-size: 20px;
}

main section .right .search input[type="text"] {
    text-align: center;
}

main section .right .search select,
main section .right .search input[type="submit"],
main section .right .search input[type="text"] {
    font-size: 15px;
}

main section .right .resultat {
    display: flex;
    margin-right: 200px;
    margin-left: 20px;
}

/* main section .right .resultat .other{
    flex: 1;
} */

main section .right .resultat .other .icon_plus {
    margin-top: 15px;
}

main section .right .resultat .other .icon_plus .plus {
    font-size: 40px;
    margin-left: 30px;
    margin-right: 30px;
    cursor: pointer;
}

main section .right .resultat .all {
    flex: 8;
}

main section .right .resultat .total {
    flex: 2;
    text-align: center;
    padding: 10px;
    font-size: 20px;


}

main section .right .resultat .total .boite {

    padding: 5px;

    border: solid 1px black;
    margin-bottom: 10px;
}

.total-input {
    width: 150px;
    height: 20px;
    border: 2px solid black;
    border-radius: 15px;
    padding: 5px 12px 5px 12px;
    text-align: center;
}

.reste-input {
    width: 150px;
    height: 20px;
    background-color: #00CC00;
    border: 2px solid black;
    border-radius: 15px;
    padding: 5px 12px 5px 12px;
    text-align: center;
}

.values-container {
    display: flex;
    margin-left: auto;
}

.value-field {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-left: 20px;
}

.value-label {
    font-weight: bold;
    margin-bottom: 5px;
    text-align: center;
    font-size: 25px;
}

.date-and-nombre-de-lignes-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 5px;
}

.date {
    border: solid 2px black;
    padding: 5px;
    margin-right: 20px;
    margin-top: 7px;
    margin-bottom: 7px;
    font-weight: bold;
    font-size: 20px;
}


.search a button {
    /* border-collapse: collapse; */
    /* border: 2px solid black; */
    position: relative;
    right: -705px;
    margin-bottom: 3px;
    font-size: 16px;
    background-color: #fff;
    text-transform: uppercase;
    border-radius: 10px;
    padding: 5px;
    cursor: pointer;
}

main section .right .resultat .all table {
    border-collapse: collapse;
    width: 100%; /* Ajuste la largeur du tableau selon tes besoins */
    border: 2px solid black;
    /* border-radius: 8px; */
}

main section .right .resultat .all table,
main section .right .resultat .all table td {
    border: 2px solid black;
    /* border-radius: 20px; */
}

main section .right .resultat .all table thead {
    border: 2px solid black;
    background-color: #f2f2f2; /* Ajoute une couleur de fond pour les en-têtes */
}

main section .right .resultat .all table td {
    padding: 8px; /* Ajoute un peu de marge interne pour améliorer l'apparence */
}

.credit {
    background-color: red;
    color: #fff;
}

.solde {
    background-color: green;
    color: #fff;
}

.debit {
    background-color: blue;
    color: #fff;
}

.vente {
    background-color: orange;
    color: #fff;
}

.right h2 {
    margin-bottom: 1px;
    margin-top: 1px;
}

.right h3 {
    font-size: 30px;
    font-style: italic;
    margin: 4px 0 0;
}

.search a,
.search a:visited {
    color: black;
    text-decoration: none;
}

.right .table {
    margin-bottom: 9px;
    font-size: 20px;
    text-align: center;
}

.right .table thead tr td,
.table tbody tr td {
    padding: 10px;
    font-weight: bold;
}

.reste {
    background-color: green;
    color: #fff;
}

.current {
    text-decoration: underline;
}

.sortie:hover,
.stock:hover,
.entre:hover {
    text-decoration: none;
}

.ui {
    margin-top: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.annuler,
.save {
    padding: 8px;
    color: #fff;
    font-size: 17px;
    border-radius: 15px;
    cursor: pointer;
}

.annuler {
    border: solid 2px red;
    background-color: red;
}

.save {
    border: solid 2px rgb(3, 218, 3);
    background-color: rgb(3, 218, 3);
}

.ajout {
    margin-bottom: 10px;
    font-size: 22px;
    width: 510px;
    position: relative;
    left: 440px;
    top: 0;
}

.ajout button {
    font-size: 10px;
    border-radius: 5px;
    padding: 2px;
    background-color: black;
    color: #fff;
}

.ajout button .add {
    font-size: 14px;
}


.sidebar-button {
    width: 100%;
    padding: 15px 10px;
    background-color: #0000FF;
    color: white;
    font-size: 16px;
    border: none;
    margin-bottom: 10px;
    text-align: center;
    cursor: pointer;
}

.vente-rapide-button {
    margin-right: 95px;
    background-color: #0000FF; /* Bleu vif */
    color: white;
    padding: 4px 30px;
    border-radius: 20px;
    font-weight: bold;
    text-align: center;
    min-width: 120px;
    border: 2px solid black;
    cursor: pointer;

}

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

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

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

.dropdown-content a:hover {
    background-color: #f1f1f1;
    border-radius: 5px;
}

.dropdown-container {
    position: relative;
    display: inline-block;
    margin-top: 6px;
    margin-left: 20px;
}

.credit-button {
    display: inline-block;
    background-color: #0000FF; /* valeur par défaut */
    color: white;
    padding: 4px 30px;
    border-radius: 20px;
    border: 2px solid black;
    font-weight: bold;
    text-align: center;
    position: relative;
    min-width: 120px;
    cursor: pointer;
    user-select: none;
    margin-bottom: 8px;
}

.btn-default {
    background-color: #0000FF;
    color: white;
}

.credit-button.credit {
    background-color: red !important;
}

.credit-button.solde {
    background-color: green !important;
}

.credit-button.debit {
    background-color: blue !important;
}

.credit-button.vente {
    background-color: orange !important;
}

.credit-button:after {
    content: "▼";
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.8em;
    transition: transform 0.3s ease;
}

.credit-button.active {
    background-color: #cc0000;
}

.credit-button.active:after {
    transform: translateY(-50%) rotate(180deg);
}