* {
	outline: none !important;
}

body {
	overflow-x: hidden !important;
	overflow-y: overlay !important;
	text-rendering: optimizeLegibility !important;

	background: var(--clr-body);
}

/* ===================================================== */
/* ======================= MAIN ======================== */
/* ===================================================== */

.div-main-container {
	display: flex;
	height: calc(100vh - 60px);
	/* padding-top: 10px; */
}

@media screen and (max-width: 992px) {
	.main-login-form > form {
		width: 320px;
	}

	.main-login-form > form > .login-body {
		height: auto;
		padding: 20px;
	}
}

.main-container {
	width: 100%;
	padding: 0;
	/* overflow: auto; */
	/* overflow-x: hidden; */
}

/* ===================================================== */
/* ===================== BUTTONS ======================= */
/* ===================================================== */

.btn,
.fc .fc-button {
	border-radius: 8px;
}

.btn-petit {
	height: 24px;
	padding-top: 1px;
}

.btn-primary,
.fc-button-primary {
	background-color:	var(--clr-btn-primary) !important;
	border-color:		var(--clr-btn-primary-border) !important;
	color:				var(--clr-btn-primary-text) !important;
}
.btn-primary:hover,
.btn-primary:active,
.btn-primary:focus,
.btn-primary:focus-visible,
.fc-button-primary:hover,
.fc-button-primary:active,
.fc-button-primary:focus,
.fc-button-primary:focus-visible,
.fc-button-primary.fc-button-active {
	background-color:	var(--clr-btn-primary-dark) !important;
	border-color:		var(--clr-btn-primary-border-dark) !important;
	color:				var(--clr-btn-primary-text-dark) !important;
}

.btn-primary.valid {
	background-color: var(--clr-good);
	border-color: var(--clr-good);
}

.btn-primary.nothing {
	background-color: var(--clr-main);
	border-color: var(--clr-main);
}

.btn-secondary {
	background-color:	var(--clr-btn-secondary);
	border-color:		var(--clr-btn-secondary-border);
	color:				var(--clr-btn-secondary-text);
}
.btn-secondary:hover,
.btn-secondary:active,
.btn-secondary:focus,
.btn-secondary:focus-visible {
	background-color:	var(--clr-btn-secondary-dark) !important;
	border-color:		var(--clr-btn-secondary-border-dark) !important;
	color:				var(--clr-btn-secondary-text-dark) !important;
}
.btn-secondary:disabled,
.btn-secondary:disabled:hover,
.btn-secondary:disabled:active,
.btn-secondary:disabled:focus,
.btn-secondary:disabled:focus-visible {
	color: #000000 !important;
}

.btn-green,
.btn-success {
	background-color:	var(--clr-good);
	border-color:		var(--clr-good);
	color:				#FFFFFF;
}
.btn-green:hover,
.btn-green:active,
.btn-green:focus,
.btn-green:focus-visible,
.btn-success:hover,
.btn-success:active,
.btn-success:focus,
.btn-success:focus-visible{
	background-color:	var(--clr-good-dark) !important;
	border-color:		var(--clr-good-dark) !important;
	color:				#FFFFFF !important;
}

.btn-orange {
	background-color:	var(--clr-warning);
	border-color:		var(--clr-warning);
	color:				#FFFFFF;
}
.btn-orange:hover,
.btn-orange:active,
.btn-orange:focus,
.btn-orange:focus-visible {
	background-color:	var(--clr-warning-dark) !important;
	border-color:		var(--clr-warning-dark) !important;
	color:				#FFFFFF !important;
}

.btn-alert {
	background-color:	var(--clr-alert);
	border-color:		var(--clr-alert);
	color:				#FFFFFF;
}
.btn-alert:hover,
.btn-alert:active,
.btn-alert:focus,
.btn-alert:focus-visible {
	background-color:	var(--clr-alert-dark) !important;
	border-color:		var(--clr-alert-dark) !important;
	color:				#FFFFFF !important;
}

.btn-icon {
	background: transparent;
	border: none;
	font-size: 17px;
	color: var(--clr-text-clear);
	box-shadow: none !important;
}

.btn-icon:hover,
.btn-icon:focus,
.btn-icon:focus-visible {
	color: var(--clr-text-clear);
}

.btn-square {
	height: 34px;
	padding: 0 !important;
	display: flex;
	align-items: center;
	justify-content: center;

	aspect-ratio: 1/1;
}

.btn.disabled,
.btn[disabled],
fieldset[disabled] .btn {
	background-color: var(--bs-gray-400) !important;
	border-color: var(--bs-gray-400) !important;
	opacity: 1 !important;
	color: #FFFFFF !important;
}
.btn.disabled:hover,
.btn[disabled]:hover,
fieldset[disabled] .btn:hover {
	background-color: var(--bs-gray-400) !important;
	border-color: var(--bs-gray-400) !important;
	opacity: 1 !important;
	color: #FFFFFF !important;
}

.btn-large-icon {
	font-size: 1.6rem !important;
}

.btn.btn-xs {
	height: 24px;
	width: 24px;
	min-width: fit-content;
	padding: 0 4px;

	display: inline-flex;
	align-items: center;
	justify-content: center;
	column-gap: 4px;

	border-radius: 4px;
}

.btn-group {
	flex-shrink: 0;
}

.btn-group-vertical > .btn:first-child:not(:last-child) {
	border-radius: 8px 8px 0 0;
}

.btn-group-vertical > .btn:last-child:not(:first-child) {
	border-radius: 0 0 8px 8px;
}

/* ===================================================== */
/* ======================= SIZE ======================== */
/* ===================================================== */

.h-50 {
	height: 50%;
}

.h-100 {
	height: 100%;
}

.w-fit {
	width: fit-content !important;
}

.w-25 {
	width: 25% !important;
}

.w-50 {
	width: 50% !important;
}

.w-75 {
	width: 75% !important;
}

.w-100 {
	width: 100% !important;
}

/* ===================================================== */
/* ======================= SWITCH ====================== */
/* ===================================================== */

.switch {
	position: relative;
	display: inline-block;
	width: 35px !important;
	height: 20px !important;
	margin: 0 15px;
	flex-shrink: 0;
}

.switch.switch-xs {
	width: 30px !important;
	height: 15px !important;
}

.switch input {
	opacity: 0;
	width: 0;
	height: 0;
}

.slider {
	position: absolute;
	cursor: pointer;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background-color: var(--bs-gray-400);
	-webkit-transition: .4s;
	transition: .4s;
}

.slider:before {
	position: absolute;
	content: "";
	height: 12px;
	width: 12px;
	left: 4px;
	bottom: 4px;
	background-color: #FFFFFF;
	-webkit-transition: .4s;
	transition: .4s;
}

.switch.switch-xs > .slider:before {
	height: 7px;
	width: 7px;
}

.switch input:disabled + .slider {
	background-color: var(--bs-gray-500);
	cursor: not-allowed;
}

.switch input:disabled + .slider::before {
	background-color: var(--bs-gray-300);
}

input:checked + .slider {
	background-color: var(--clr-switch);
}

input:focus + .slider {
	box-shadow: 0 0 1px #2196F3;
}

input:checked + .slider:before {
	-webkit-transform: translateX(14px);
	-ms-transform: translateX(14px);
	transform: translateX(14px);
}

.slider.round {
	border-radius: 34px;
}

.slider.round:before {
	border-radius: 50%;
}

/* ===================================================== */
/* ================ INDETERMINATE SWITCH =============== */
/* ===================================================== */

.indeterminateChckContainer {
	height: 20px;
	width: 50px !important;
	padding: 0 4px;
	margin: 0 5px;

	display: flex;
	flex-direction: column;
	justify-content: center;
	cursor: pointer;

	background-color: #FFFFFF;
	border-radius: 20px;
	border: 1px solid var(--bs-gray-500);
}

.indeterminateChckContainer #index_dossier_cheque {
	position: absolute;
	opacity: 0;
	cursor: pointer;
	height: 0;
	width: 0;
}

.indeterminateChckContainer .checkmark {
	top: 0;
	left: 0;
	height: 10px;
	width: 10px;
	border-radius: 20px;
	background-color: var(--clr-switch);
}

.indeterminateChckContainer #index_dossier_cheque:indeterminate ~ .checkmark {
	align-self: center;
	background-color: var(--bs-gray-500);
}

.indeterminateChckContainer #index_dossier_cheque:checked ~ .checkmark {
	align-self: flex-end;
	background-color: var(--clr-switch);
}

/* ===================================================== */
/* ====================== TEXTS ======================== */
/* ===================================================== */

h3 {
	font-weight: bold;
	text-align: center;
}

.text-accent {
	color: var(--clr-main);
}

.font-size-xs {
	font-size: .9rem;
	line-height: .9rem;
}

.font-size-s {
	font-size: 1.1rem;
	line-height: 1.1rem;
}

.text-detail {
	color: var(--clr-main);
}

.text-align-left {
	text-align: left;
}

.text-align-center {
	text-align: center;
}

.text-align-right {
	text-align: right;
}

.fw-100 {
	font-weight: 100;
}
.fw-200 {
	font-weight: 200;
}
.fw-300 {
	font-weight: 300;
}
.fw-400 {
	font-weight: 400;
}
.fw-500 {
	font-weight: 500;
}
.fw-600 {
	font-weight: 600;
}
.fw-700 {
	font-weight: 700;
}
.fw-800 {
	font-weight: 800;
}
.fw-900 {
	font-weight: 900;
}

/* ===================================================== */
/* ======================= FORM ======================== */
/* ===================================================== */

button,
input,
textarea,
select,
h3 {
	outline: none !important;
}

select {
	padding: 0px 12px !important;
}

textarea {
	box-shadow: none !important;
}

input[type="date"],
input[type="time"],
input[type="datetime-local"] {
	padding: 0 12px !important;
	line-height: normal !important;
}

input.custom_number_input {
	flex-shrink: 0;

	height: 20px !important;
	width: 20px !important;
	margin: 0;

	text-align: center;

	border: 1px solid var(--bs-gray-400);
	border-top-left-radius: 4px;
	border-bottom-left-radius: 4px;
}

input.custom_number_input:not(:first-of-type) {
	margin-left: -6px !important;
	border-top-left-radius: 0;
	border-bottom-left-radius: 0;
	border-top-right-radius: 4px;
	border-bottom-right-radius: 4px;
}

input.custom_number_input::-webkit-outer-spin-button,
input.custom_number_input::-webkit-inner-spin-button {
	-webkit-appearance: none;
	-moz-appearance: none;
	appearance: none;

	margin: 0;
}

.form-control {
	box-shadow: none !important;
	border: 1px solid var(--bs-gray-400) !important;
	border-radius: 8px;
}

textarea.form-control {
	resize: vertical;
}

textarea.form-control:disabled {
	resize: none;
}

.form-control:disabled {
	border: 1px solid var(--bs-gray-400) !important;
	background: var(--bs-gray-200);
}

.form-row {
	display: flex;
	align-items: center;
	column-gap: 8px;
}

.form-row > label {
	flex-shrink: 0;
	min-width: 25%;
	margin: 0;
}

.form-row > input {
	margin: 0;
}

.form-col {
	display: flex;
	flex-direction: column;
	row-gap: 8px;
}

.form-separator {
	width: 100%;
	margin: 16px 0;
}

.input-group {
	display: flex;
	align-items: center;
}

.input-group input {
	height: 34px !important;
	border-radius: 8px;
	outline: none;
}

.input-group button {
	cursor: pointer;
}

.input-group input:only-child {
	border-radius: 8px;
}

.input-group input + button {
	border-top-right-radius: 0;
	border-bottom-right-radius: 0;
}

.input-group button:first-of-type {
	border-top-left-radius: 0;
	border-bottom-left-radius: 0;
}

.input-group button:not(:first-of-type):not(:last-of-type) {
	border-left: 1px solid var(--clr-border) !important;
	border-radius: 0;
}

.input-group button:last-of-type {
	border-left: 1px solid var(--clr-border) !important;

	border-top-right-radius: 8px;
	border-bottom-right-radius: 8px;
	border-top-left-radius: 0;
	border-bottom-left-radius: 0;
}

.input-group input + button {
	border-top-right-radius: 0;
	border-bottom-right-radius: 0;
	border-right: 0;
}

.input-group:has(input + button) > input
.input-group:has(select + button) > select,
.input-group:has(input + input) > input,
.input-group:has(input + .btn-group) > input {
	border-right: none !important;
}

.row-group {
	display: flex;
	flex-direction: row;
	column-gap: 10px;
	align-items: center;
}

.col-group {
	display: flex;
	flex-direction: column;
}

label.radio-wrapper {
	padding: 6px;
	border-radius: 50px;
	display: inline-flex;
	cursor: pointer;
	transition: background 0.2s ease;
	-webkit-tap-highlight-color: transparent;
}
label.radio-wrapper:hover,
label.radio-wrapper:focus-within {
	background: rgba(159, 159, 159, 0.1);
}
label.radio-wrapper input {
	vertical-align: middle;
	width: 20px;
	height: 20px;
	border-radius: 10px;
	background: none;
	border: 0;
	box-shadow: inset 0 0 0 1px #9F9F9F;
	box-shadow: inset 0 0 0 1.5px #9F9F9F;
	appearance: none;
	padding: 0;
	margin: 0;
	transition: box-shadow 150ms cubic-bezier(0.95, 0.15, 0.5, 1.25);
	pointer-events: none;
}
label.radio-wrapper input:disabled {
    background: var(--bs-gray-500);
}
label.radio-wrapper input:focus {
	outline: none;
}
label.radio-wrapper input:checked {
	box-shadow: inset 0 0 0 6px var(--clr-radio);
}
label.radio-wrapper span {
	vertical-align: middle;
	display: inline-block;
	line-height: 20px;
	padding: 0 8px;
}

/* ===================================================== */
/* ======================= FLEX ======================== */
/* ===================================================== */

.flex-col {
	display: flex;
	flex-direction: column;
}

.flex-row {
	display: flex;
	flex-direction: row;
}

.row-gap-xxs {
	row-gap: 2px;
}

.row-gap-xs {
	row-gap: 4px;
}

.row-gap-s {
	row-gap: 8px;
}

.row-gap-m {
	row-gap: 16px;
}

.flex-05 {
	flex: 0.5;
}

.flex-1 {
	flex: 1;
}

.flex-2 {
	flex: 2;
}

.justify-content-center {
	justify-content: center;
}

.justify-content-start {
	justify-content: flex-start;
}

.justify-content-end {
	justify-content: flex-end;
}

.justify-content-between {
	justify-content: space-between;
}

.align-items-center {
	align-items: center;
}

.align-items-start {
	align-items: flex-start;
}

.align-items-end {
	align-items: flex-end;
}

.align-items-stretch {
	align-items: stretch;
}

.col-gap-xxs {
	column-gap: 2px;
}

.col-gap-xs {
	column-gap: 4px;
}

.col-gap-s {
	column-gap: 8px;
}

.col-gap-m {
	column-gap: 12px;
}

.flex-shrink-0 {
	flex-shrink: 0;
}

/* ===================================================== */
/* ======================= GRID ======================== */
/* ===================================================== */

.grid-column-full-row {
	grid-column: 1 / -1;
}

.sticky-right {
	position: sticky;
	right: 0;
}
.sticky-right::before {
    content: "";
    position: absolute;
    top: 0;
    left: -1px; /* à gauche de la cellule sticky */
    width: 1px;
    height: 100%;
    background: #f3f3f3;
}

.sticky-left {
	position: sticky;
	left: 0;
}
.sticky-left::before {
    content: "";
    position: absolute;
    top: 0;
    right: 1px; /* à gauche de la cellule sticky */
    width: 1px;
    height: 100%;
    background: #f3f3f3;
}

/* ===================================================== */
/* ===================== ALERTIFY ====================== */
/* ===================================================== */

.ajs-message {
	border-radius: 8px;
}

.ajs-success::before {
	font-family: "Font Awesome 5 Free"; font-weight: 900; content: "\f164";
	margin-right: 10px;
}

.ajs-warning::before {
	font-family: "Font Awesome 5 Free"; font-weight: 900; content: "\f071";
	margin-right: 10px;
}

.ajs-error::before {
	font-family: "Font Awesome 5 Free"; font-weight: 900; content: "\f071";
	margin-right: 10px;
}

.ajs-success {
	color: var(--clr-text-clear);
	background: var(--clr-good) !important;
}

.ajs-warning {
	color: var(--clr-text-clear);
	background: var(--clr-warning) !important;
}

.ajs-error {
	color: var(--clr-text-clear);
	background: var(--clr-main) !important;
}

.ajs-notif {
	color: var(--clr-text-clear);
	background: var(--clr-main) !important;
}

.ajs-button {
	display: inline-block;
	padding: 6px 12px;
	margin-bottom: 0;
	font-size: 14px;
	font-weight: 400;
	line-height: 1.42857143;
	text-align: center;
	white-space: nowrap;
	vertical-align: middle;
	-ms-touch-action: manipulation;
	touch-action: manipulation;
	cursor: pointer;
	-webkit-user-select: none;
	-moz-user-select: none;
	-ms-user-select: none;
	user-select: none;
	background-image: none;
	border: 1px solid transparent;
	border-radius: 8px;
	background-color: var(--clr-main);
	border-color: var(--clr-main);
	color: var(--clr-text-clear);
}

.ajs-button:hover {
	background-color: var(--clr-main-dark);
	border-color: var(--clr-main-dark);
}

.ajs-button:active {
	color: #FFFFFF;
	background-color: #204d74;
	border-color: #122b40;
}

.alertify .ajs-dialog {
	border-radius: 8px;
	box-shadow: var(--dflt-shadow);
}

.alertify .ajs-header {
	border-top-left-radius: 8px;
	border-top-right-radius: 8px;
}

.alertify .ajs-footer {
	border-bottom-left-radius: 8px;
	border-bottom-right-radius: 8px;
}

/* ===================================================== */
/* ======================== MODAL ====================== */
/* ===================================================== */

.modal-title,
button.close {
	display: inline;
}

.modal-open {
	overflow: hidden !important;
}

.modal-content {
	border-radius: 8px;
	border: 1px solid var(--bs-gray-400);
	box-shadow: var(--dflt-shadow);
}

.modal-dialog {
	border-radius: 8px;
}

/* ===================================================== */
/* ====================== ANIMATION ==================== */
/* ===================================================== */

.shake {
	animation: shake .5s 2 alternate ease-in-out;
}

@keyframes shake {
	12.5%{transform: translateX(-10px)}
	25%{transform: translateX(10px)}
	37.5%{transform: translateX(-10px)}
	50%{transform: translateX(10px)}
	62.5%{transform: translateX(-10px)}
	75%{transform: translateX(10px)}
	87.5%{transform: translateX(-10px)}
	100%{transform: translateX(10px)}
}

@keyframes blink-animation {
	to {
		visibility: hidden;
	}
}

@-webkit-keyframes blink-animation {
	to {
		visibility: hidden;
	}
}

/* ===================================================== */
/* ======================= TOOLTIP ===================== */
/* ===================================================== */

.ui-tooltip {
	background-color: rgba(0,0,0,0.8) !important;
	border: none !important;
	color: var(--clr-text-clear) !important;
	box-shadow: none !important;
}

.ui-tooltip:before {
	content:"\A";
	top: -10px;
	width: 0;
	height: 0;
	border-style: solid;
	border-width: 0 10px 10px 10px;
	border-color: transparent transparent rgba(0,0,0,0.8) transparent;
	position: absolute;
}

/* ===================================================== */
/* ====================== LEAFLET ====================== */
/* ===================================================== */

.marker-cluster-small,
.marker-cluster-small div {
	background-color: red !important;
}

.marker-cluster-medium,
.marker-cluster-medium div {
	background-color: blue !important;
}

.marker-cluster-small span,
.marker-cluster-medium span {
	color: #000000;
	font-weight: bold;
}

.leaflet-marker-icon.leaflet-interactive,
.leaflet-image-layer.leaflet-interactive,
.leaflet-pane > svg path.leaflet-interactive,
svg.leaflet-image-layer.leaflet-interactive path {
	filter: drop-shadow(0px 0px 3px #111111);
}

.leaflet-bottom {
	z-index: 1009 !important;
}

/* ===================================================== */
/* ======================== MARGIN ===================== */
/* ===================================================== */

.no-margin {
	margin: 0 !important;
}

.no-padding {
	padding: 0 !important;
}

.margin-top-auto {
	margin-top: auto !important;
}

.margin-t-xs {
	margin-top: 4px !important;
}

.margin-t-s {
	margin-top: 8px !important;
}

.margin-t-m {
	margin-top: 12px !important;
}

.margin-b-xs {
	margin-bottom: 4px !important;
}

.margin-b-s {
	margin-bottom: 8px !important;
}

.margin-b-m {
	margin-bottom: 12px !important;
}

.margin-left-auto {
	margin-left: auto !important;
}

.margin-left-xs {
	margin-left: 4px !important;
}

.margin-left-s {
	margin-left: 8px !important;
}

.margin-left-m {
	margin-left: 12px !important;
}

.margin-right-auto {
	margin-right: auto !important;
}

.margin-right-xs {
	margin-right: 4px !important;
}

.margin-right-s {
	margin-right: 8px !important;
}

.margin-right-m {
	margin-right: 12px !important;
}

/* ===================================================== */
/* ==================== LOADING PANEL ================== */
/* ===================================================== */

.loading-panel {
	height: 100vh;
	width: 100%;

	position: absolute;
	top: 0;
	left: 0;

	display: flex;
	align-items: center;
	justify-content: center;

	background: rgba(0,0,0,0);

	z-index: 10;
}

.loading {
	width: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
	flex: 1;
}

.loading > img {
	height: 40px;
	width: 40px;

	object-fit: contain;
}

/* ===================================================== */
/* ======================== DIVERS ===================== */
/* ===================================================== */

.ui-draggable-dragging {
	cursor: grab;
	transition: border .05s;
}

.row {
	display: flex;
	margin: 0 !important;
}

.overflow-auto {
	overflow: auto !important;
}

.overflow-x-auto {
	overflow-x: auto !important;
}

.overflow-y-auto {
	overflow-y: auto !important;
}