/* Fonts */
body {
	background-color: #f4f2ef;
}

label,
p,
h1,
h2 {
	font-family: Lato;
}

h3 {
	font-family: Montserrat;
	font-size: 24px;
	font-weight: 600;
	line-height: 30px;
}

h4 {
	font-family: Montserrat;
	font-size: 20px;
	font-weight: 600;
	line-height: 25px;
}

label {
	font-weight: 600;
}

.petit {
	font-family: Lato;
	font-size: 14px;
	line-height: 21px;
	color: #2d8630;
}

.w-400 {
	font-weight: 400;
}

.w-600 {
	font-weight: 600;
}

.text-vertf {
	font-family: Lato;
	font-size: 16px;
	font-weight: 600;
	line-height: 19.2px;
	color: #084d0b;
}

/* Login */
.login-container {
	display: flex;
	align-items: center;
	justify-content: center;
	height: 100vh;
	background: url("../img/silots.jpeg") no-repeat center center/cover;
}

/* Formulaire */
.login-form {
	background: white;
	border-radius: 10px;
	max-width: 400px;
	width: 100%;
}

.logo-left,
.logo-right {
	max-height: 50px;
}

.logo-left {
	margin-right: auto;
}

.logo-right {
	margin-left: auto;
}

/* Boutons */
.btn-vert {
	background-color: #2d8630;
	border: none;
	font-family: Lato;
	color: white;
	font-size: 16px;
	padding: 12px;
	border-radius: 8px;
	cursor: pointer;
}

.btn-grey {
	background-color: #5c636a;
	border: none;
	font-family: Lato;
	color: white;
	font-size: 16px;
	padding: 12px;
	border-radius: 8px;
}

.icon-btn {
	margin-left: 14px;
}

.icon-btn-small {
	margin-left: 4px;
}

.icon-btn-left {
	margin-right: 14px;
}

.icon-btn-left-small {
	margin-right: 4px;
}

.logout {
	max-width: 25px;
}

/* administration */

/* Conteneur principal */
.tabs-container {
	/*background-color: #f8f9fa; /* Couleur de fond */
	padding-top: 20px;
	padding-bottom: 20px;
	padding-right: 0;
	padding-left: 0;
	border-bottom: 1px solid #ddd;
}

/* Liste des onglets */
.tabs {
	list-style: none;
	display: flex;
	justify-content: flex-start; /* Alignement à gauche */
	gap: 20px; /* Espacement entre les onglets */
	margin: 0;
	padding: 0;
}

/* Élément d'onglet */
.tab-item {
	position: relative;
}

/* Style des liens inactifs */
.inactive-tab {
	text-decoration: none;
	font-weight: 500;
	color: #1c541f; /* Texte vert foncé */
	padding: 10px 15px;
	transition: all 0.3s ease;

	font-family: Lato;
	font-size: 14px;
	font-weight: 700;
	line-height: 21px;
}

/* Style des liens actifs */
.active-tab {
	font-family: Lato;
	font-size: 14px;
	font-weight: 700;
	line-height: 21px;

	color: #2d8630; /* Texte vert clair */
	background-color: #ffffff; /* Fond blanc pour onglet actif */
	padding: 21px 24px;
	border-radius: 8px 8px 0 0; /* Coins arrondis pour onglet actif */
	border-bottom: 3px solid #2d8630; /* Barre verte sous l'onglet actif */
	box-shadow: 0 -2px 5px rgba(0, 0, 0, 0.1); /* Ombre légère */
	text-decoration: none;
}

/* Interaction au survol pour onglets inactifs */
.inactive-tab:hover {
	color: #2d8630; /* Texte vert plus foncé au survol */
}

/* users */
thead th {
	background-color: #82b57c !important; /* Couleur de fond */
	color: #2f2f2f !important; /* Couleur du texte (modifiable si besoin) */
	padding: 20px; /* Espacement intérieur */
	text-align: left; /* Alignement du texte */

	font-family: Lato;
	font-size: 14px;
	font-weight: 600;
	line-height: 18px;
}

table th:first-child {
	border-top-left-radius: 4px; /* Rayon pour le coin supérieur gauche */
}

/* Arrondir les coins du dernier en-tête */
table th:last-child {
	border-top-right-radius: 4px; /* Rayon pour le coin supérieur droit */
}

table .no-radius th:first-child {
	border-top-left-radius: 0px; /* Rayon pour le coin supérieur gauche */
}

/* Arrondir les coins du dernier en-tête */
table .no-radius th:last-child {
	border-top-right-radius: 0px; /* Rayon pour le coin supérieur droit */
}

table td {
	background-color: #ffffff !important;
	--bs-table-bg-type: #ffffff !important;
	font-family: Lato;
	font-size: 14px;
	font-weight: 400;
	line-height: 21px;
	padding: 10px;
}

.lien-liste {
	font-family: Lato;
	font-size: 14px;
	font-weight: 600;
	line-height: 21px;
}

.vert {
	color: #2d8630;
}

.rouge {
	color: #ea5434;
}

.bleu {
	color: #006edb;
}

.gap-16 {
	gap: 16px;
}

/* autodiag */

.soustitre-gauche {
	font-family: Lato;
	font-size: 14px;
	font-weight: 700;
	line-height: 21px;
	color: #8a8a8a;
	text-transform: uppercase;
}

.case-blanche {
	background-color: #ffffff;
	padding: 16px;
	border-radius: 8px;
}

.case {
	padding: 16px;
}

.nbip {
	font-family: Montserrat;
	font-size: 32px;
	font-weight: 400;
	line-height: 40px;
	color: #2f2f2f;
}

.titre-section {
	font-family: Montserrat;
	font-size: 20px;
	font-weight: 600;
	line-height: 25px;
	color: #2f2f2f;
}

.accordion-item {
	border: none;
}

.accordion-button {
	text-align: left;
	padding-left: 3rem; /* Ajuste cet espace si nécessaire */
}

.accordion-button::after {
	position: absolute;
	left: 1rem; /* Déplace la flèche à gauche */
	right: auto;
	background-image: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%232D8630'><path fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/></svg>") !important;
}

.accordion-button:not(.collapsed) {
	color: #2f2f2f;
	background-color: #ffffff;
	box-shadow: none;
}

.input-group-text {
	color: #8a8a8a;
	background: none;
}

.champ-unite {
	border-right: none !important;
}

.champ-calcule:disabled,
.champ-calcule,
.champ-calcule:focus {
	background-color: #ffffff;
	opacity: 1;
	border: none;
	box-shadow: none;
}

.lien-souligne-vert {
	font-family: Lato;
	font-size: 14px;
	font-weight: 600;
	line-height: 21px;
	text-decoration-line: underline;
	text-decoration-style: solid;
	color: #2d8630;
}

.petit-logo {
	max-height: 20px;
}

.annuler {
	font-family: Lato;
	font-size: 16px;
	font-weight: 600;
	line-height: 24px;
	color: #2d8630;
	background: none;
	border: none;
}

.alert-danger {
	background-color: #fdeded;
	border-color: #bb141f;
	color: #bb141f;
	font-family: Arial;
	font-size: 14px;
	font-weight: 400;
	line-height: 21px;
}

.accordeonSuivant {
	margin-top: 24px;
}

.accordion-item,
.accordion-button,
.accordion-header {
	border-radius: 8px;
}

.select2-container--default .select2-results__option--highlighted.select2-results__option--selectable {
	background-color: #2d8630;
	color: white;
}

.select2-container--default .select2-selection--single {
	height: 32px;
}

.table-bordered {
	border-color: #ffffff;
}

.case-graphe {
	padding: 10px;
	background-color: #ffffff;
}

.nb-petit {
	font-size: 14px;
}

button:disabled,
button[disabled] {
	border: 1px solid #999999;
	background-color: #cccccc;
	color: #666666;
}

.page-link,
.page-item {
	color: #000000;
}

.active > .page-link,
.page-link.active {
	background-color: #000000;
	border-color: #000000;
}

/* oad */
.liste-oads a {
	border: 1px solid #084d0b;
	border-radius: 15px;
	background-color: #fff;
	padding: 10px;
	margin: 10px;
}
.liste-oads a:hover {
	background-color: #084d0b;
	color: #ffffff;
}

/* Nouveau Optifroid */

body {
	margin: 0px;
	font-family: "Lato", "Times New Roman", Times, serif;
}

.fw-bold {
	font-weight: bold;
}

.text-decoration-none {
	text-decoration: none;
}

.text-dark {
	color: #000000;
}

.text-grey {
	color: #c0c0c0;
}

.navbar {
	display: flex;
	padding: 20px;
	background-color: #ffffff;
	flex-wrap: nowrap;
}

.navbar .logo {
	width: 300px;
}

.navbar #navbarContent {
	width: 100%;
	display: flex;
	justify-content: space-between;
	flex-wrap: nowrap;
}

.navbar #navbarContent .navbar-nav {
	display: flex;
	flex-direction: row;
	flex-wrap: nowrap;
}

.navbar #navbarContent .nav-link {
	padding-left: 8px;
	padding-right: 8px;
	border-radius: 24px;
	border: 1px solid #084d0b;
	margin-right: 10px;
	text-decoration: none;
	display: flex;
	align-items: center;
	height: 46px;
}

.navbar #navbarContent .nav-link .icon-btn-small {
	margin-left: 20px;
	width:20px;
}

.navbar #navbarContent .nav-link:hover {
	background-color: #82b57c;
	border: 1px solid #084d0b;
	color: #ffffff;
}

.navbar #navbarContent .infos-utilisateur {
	display: flex;
	align-items: center;
}

.navbar #navbarContent .infos-utilisateur .infos-nom {
	display: flex;
	flex-direction: column;
	align-items: center;
}

.navbar #navbarContent .infos-utilisateur .img-utilisateur {
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	background-color: #c0c0c0;
	margin-left: 10px;
	margin-right: 10px;
}

.container {
	padding: 20px;
}

.container.container-large {
	max-width: 1380px;
}

.sous-titre {
	font-size: 24px;
}

.titre-bouton {
	display: flex;
	justify-content: space-between;
	align-items: center;
}

.btn-vert {
	border-radius: 24px;
	border: 1px solid #084d0b;
	background-color: #084d0b;
}

.btn-vert:hover {
	border: 1px solid #82b57c;
	background-color: #82b57c;
}

.titre-bouton .choix {
	display: flex;
	align-items: center;
	width: 80%;
}

.titre-bouton .choix .item {
	display: flex;
	flex-direction: column;
	width: 25%;
	padding-right: 10px;
}

.titre-bouton .choix .item .libelle {
	margin-bottom: 10px;
}

/* modal */

.modal-header {
	background-color: #084d0b;
	color: #ffffff;
	font-weight: bold;
	font-size: 20px;
}

.modal .btn-close {
	background: none;
	color: #ffffff;
	cursor: pointer;
	width: fit-content;
	height: fit-content;
	opacity: 1;
}

.modal-bloc-bouton {
	display: flex;
	justify-content: flex-end;
	margin-top: 20px;
}

/* formulaire */

.ligne-saisie {
	display: flex;
	align-items: center;
	margin-bottom: 10px;
}

.ligne-saisie .libelle {
	padding-right: 20px;
	width: 50%;
	text-align: end;
}

.ligne-saisie .saisie {
	width: 50%;
}

.form-control {
	display: block;
	width: 100%;
	height: 42px;
	font-weight: 400;
	line-height: 1.5;
	color: #212529;
	background-color: #fff;
	background-clip: padding-box;
	border-radius: 8px;
	border: 1px #d9d9d9 solid;
}

/*tableau machine*/

table#releve_machine th,
table#releve_machine td {
	padding: 10px;
	border: 1px solid #f4f2ef;
	text-align: center;
}

table#releve_machine th {
	text-align: center;
}

table#releve_machine tbody td {
	text-align: end;
}

/*tableau cellule*/

table#releve_cellule {
	border: 1px solid #f4f2ef;
	border-collapse: collapse;
}

table#releve_cellule th,
table#releve_cellule td {
	padding: 10px;
	border: 1px solid #f4f2ef;
	text-align: center;
}

table#releve_cellule tfoot td {
	font-weight: bold;
	background-color: #82b57c !important;
	text-align: end;
}

table#releve_cellule tbody td .indicateur {
	display: flex;
	justify-content: space-between;
	align-items: center;
}

table#releve_cellule td .rond-temperature {
	height: 15px;
	width: 15px;
	border-radius: 50%;
}

table#releve_cellule td .rond-temperature.vert {
	background-color: #82b57c;
}

table#releve_cellule td .rond-temperature.vert-check {
	background-color: #82b57c;
	background-image: url(/assets/white_check.svg);
	background-position: center;
	background-repeat: no-repeat;
	background-size: contain;
}

table#releve_cellule td .rond-temperature.orange {
	background-color: orange;
}

table#releve_cellule td .rond-temperature.rouge {
	background-color: red;
}

table td.entete {
	background-color: #ccc !important;
	color: #2f2f2f !important;
	padding: 10px 24px;
	font-weight: 700;
}
table td.valeur {
	min-width: 100px;
}

/*page administration*/

.onglets {
	display:flex;
	border-bottom: 1px solid #FEFEFE;
	margin-bottom:30px;
}

.onglets .onglet {
	width:170px;
	font-weight:bold;
	color: #084d0b;
	padding:20px 10px;
	cursor:pointer;
	text-align: center;
}

.onglets .onglet.actif {
	background-color: #ffffff;
	border-bottom: 3px solid #084d0b;
	border-top-left-radius: 24px;
	border-top-right-radius: 24px;
}

.item.bloc-reinitialiser {
	height: 70px; 
	justify-content: end;
}

.reinitialiser {
	font-weight: bold;
	color:#084d0b;
	text-decoration: underline;
	font-size:12px;
	cursor: pointer;
}

table#table_utilisateurs th,
table#table_utilisateurs td {
	padding: 10px;
	border: 1px solid #f4f2ef;
	text-align: center;
}

table#table_utilisateurs td.modifier {
	font-weight: bold;
	color:#084d0b;
	cursor: pointer;
}

table#table_utilisateurs td.modifier img {
	width:16px;
	margin-right:10px;
}

table#table_utilisateurs td.lien {
	font-weight: bold;
	color:#084d0b;
	text-decoration: underline;
	cursor: pointer;
}

table#table_seuils_temperature th,
table#table_seuils_temperature td {
	padding: 10px;
	border: 1px solid #f4f2ef;
	text-align: center;
}

table#table_seuils_temperature tbody td:first-child div {
	margin:auto;
}

table#table_seuils_temperature td .rond-temperature {
	height: 15px;
	width: 15px;
	border-radius: 50%;
}

table#table_seuils_temperature td .rond-temperature.vert {
	background-color: #82b57c;
}

table#table_seuils_temperature td .rond-temperature.vert-check {
	background-color: #82b57c;
	background-image: url(/assets/white_check.svg);
	background-position: center;
	background-repeat: no-repeat;
	background-size: contain;
}

table#table_seuils_temperature td .rond-temperature.orange {
	background-color: orange;
}

table#table_seuils_temperature td .rond-temperature.rouge {
	background-color: red;
}