* {
    text-decoration: none;
    list-style: none;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    margin: 20px;
}


button,
input[type="submit"],
input[type="button"],
.actions-recherche a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 36px;
    padding: 0 14px;
    border: 1px solid #bfbfbf;
    background: #f5f5f5;
    color: #000;
    font-size: 14px;
    font-family: inherit;
    cursor: pointer;
    border-radius: 4px;
    transition: all 0.15s ease;
}

button:hover,
input[type="submit"]:hover,
input[type="button"]:hover,
.actions-recherche a:hover {
    background: #e6e6e6;
    border-color: #999;
}

button:active,
input[type="submit"]:active,
input[type="button"]:active,
.actions-recherche a:active {
    background: #dcdcdc;
}

button:focus,
input[type="submit"]:focus,
input[type="button"]:focus,
.actions-recherche a:focus {
    outline: none;
    border-color: #666;
}


.header_nav_list {
    display: flex;
}

.top-bar {
    margin-bottom: 20px;
}

.top-bar a {
    display: inline-block;
    padding: 10px 14px;
    border: 1px solid #ccc;
    color: #000;
    background: #f5f5f5;
}


.tableau {
    width: 100%;
    border-collapse: collapse;
}

.tableau th,
.tableau td {
    border: 1px solid #ccc;
    padding: 8px;
    text-align: left;
}

.tableau tr.selected {
    background: #dbeafe;
}

.tableau_body tr {
    cursor: pointer;
}

.tableau_body tr:hover {
    background-color: rgb(217, 216, 215);
}

.body_parametres .tableau {
    width: 30%;
}

.body_pieces .table_container,
.body_historisation .table_container {
    max-height: 300px;
    overflow-y: auto;
    width: fit-content;
}

.body_pieces .tableau,
.body_historisation .tableau {
    font-size: 13px;
}

.body_pieces .tableau_head_th,
.body_historisation .tableau_head_th {
    color: #ccc;
    background: black;
    position: sticky;
    top: 0;
    z-index: 2;
}

.body_pieces .tableau th,
.body_pieces .tableau td,
.body_historisation .tableau th,
.body_historisation .tableau td {
    padding: 2px 6px;
    line-height: 1.1;
}

.body_pieces .tableau input[type="checkbox"],
.body_historisation .tableau input[type="checkbox"] {
    margin: 0;
    width: 14px;
    height: 14px;
}


.form_recherche {
    display: grid;
    grid-template-columns: 110px 180px 110px 180px 110px 180px;
    gap: 10px 12px;
    align-items: center;
    width: 100%;
    max-width: 1200px;
    margin-bottom: 20px;
}

.form_recherche > div {
    display: contents;
}

.form_recherche input,
.form_recherche select,
.form_recherche button,
.form_recherche a {
    height: 30px;
    font-size: 14px;
}

.form_recherche input,
.form_recherche select {
    padding: 6px 10px;
    border: 1px solid #bfbfbf;
    background: #fff;
}

/*erreur*/

.top-bar a.erreur_stock {
    background-color: red;
    color: white;
    border-color: darkred;
}
.messages {
    margin-bottom: 15px;
}

.message-erreur {
    background: #ffdede;
    border: 1px solid #d66;
    padding: 10px;
    margin-bottom: 8px;
}


.cartes {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.carte-lot {
    width: 260px;
    border: 1px solid #ccc;
    background: #fff;
    padding: 15px;
    cursor: pointer;
    transition: 0.15s ease;
}

.carte-lot:hover {
    background: #f7f7f7;
}

.aucun-lot {
    padding: 20px;
    border: 1px solid #ccc;
    background: #fafafa;
}
/*modal*/

.fenetre,
.fenetre-defaut {
    display: none;
    position: fixed;
    inset: 0;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.fenetre {
    background: rgba(0, 0, 0, 0.45);
    z-index: 9999;
}

.fenetre-defaut {
    background: rgba(0, 0, 0, 0.60);
    z-index: 10000;
}

.contenu-fenetre {
    width: 95%;
    max-width: 1200px;
    max-height: 90vh;
    overflow: auto;
    background: white;
    padding: 20px;
    border: 1px solid #ccc;
}

.fenetre-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.actions-lot {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin: 15px 0;
}

.actions-lot button {
    padding: 10px 14px;
}


/* form modale*/
.bloc-formulaire {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 15px;
}

.ligne-formulaire {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.ligne-formulaire label {
    font-weight: bold;
}

.ligne-formulaire input,
.ligne-formulaire select {
    width: 100%;
    max-width: 450px;
    padding: 10px;
    border: 1px solid #ccc;
}

/*parametre*/
.body_parametres .parametres-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.body_parametres .bloc-parametre {
    width: calc(50% - 10px);
}

.bloc-parametre > div:first-child {
    margin-bottom: 8px;
}

.bouton_article {
    margin-bottom: 10px;
}