body {
    padding: 60px 20px 0 20px !important;
}
.container {
    max-width: 100% !important;
}

:root {
	--app-form-label-color: #2d4753;
	--app-form-focus-color: #0797b9;
	--app-form-focus-shadow: 0 0 0 0.2rem rgba(7, 151, 185, 0.12);
	--app-form-control-height: 2.75rem;
	--app-control-radius: 0.45rem;
	--app-surface-radius: 0.65rem;
	--app-pill-radius: 999px;
}

/* Présentation commune des champs de formulaire */
.form-label,
.col-form-label,
.formeo.formeo-render .f-field-group > label {
	color: var(--app-form-label-color);
	font-weight: 600;
}

.form-control:not(.form-control-sm):not(.bootstrap-select),
.form-select:not(.form-select-sm),
.bootstrap-select.form-control:not(.form-control-sm):not(.editor-selectpicker-wrapper) > .dropdown-toggle,
.formeo.formeo-render input:not([type="hidden"]):not([type="checkbox"]):not([type="radio"]),
.formeo.formeo-render select,
.formeo.formeo-render textarea {
	min-height: var(--app-form-control-height);
}

.form-control,
.form-select,
.bootstrap-select > .dropdown-toggle,
.formeo.formeo-render input:not([type="hidden"]):not([type="checkbox"]):not([type="radio"]),
.formeo.formeo-render select,
.formeo.formeo-render textarea,
.btn {
	border-radius: var(--app-control-radius);
}

.card,
.modal-content,
.dropdown-menu,
.toast {
	border-radius: var(--app-surface-radius);
}

.badge {
	border-radius: var(--app-pill-radius);
}

.bootstrap-select:not(.editor-selectpicker-wrapper) > .dropdown-toggle {
	border-color: #ced4da;
	background-color: #fff;
	color: #212529;
}

.bootstrap-select:not(.editor-selectpicker-wrapper) > .dropdown-toggle:hover {
	border-color: #b6bdc3;
	background-color: #fff;
	color: #212529;
}

.form-control:focus,
.form-select:focus,
.bootstrap-select > .dropdown-toggle:focus,
.bootstrap-select.show > .dropdown-toggle,
.formeo.formeo-render input:not([type="checkbox"]):not([type="radio"]):focus,
.formeo.formeo-render select:focus,
.formeo.formeo-render textarea:focus {
	border-color: var(--app-form-focus-color);
	box-shadow: var(--app-form-focus-shadow);
	outline: 0;
}

.bootstrap-select > .dropdown-toggle:focus {
	outline: 0 !important;
}

/* Les tableurs et tableaux conservent leur densité propre. */
.formeo.formeo-render .spreadsheet input,
.formeo.formeo-render .spreadsheet select,
.formeo.formeo-render .spreadsheet textarea {
	min-height: 0;
	border-radius: 0;
}

.form-control[type="file"] {
	width: 100%;
	max-width: 32rem;
	background-color: #fff;
}

.form-control[type="file"]::file-selector-button {
	color: var(--app-form-label-color);
	font-weight: 600;
	background-color: #edf5f7;
}

.form-control[type="file"]:hover::file-selector-button {
	background-color: #dfeef2;
}

.bilan-file-upload {
	display: flex;
	align-items: stretch;
	width: 100%;
	max-width: 28rem;
	min-height: var(--app-form-control-height);
	overflow: hidden;
	border: 1px solid #ced4da;
	border-radius: var(--app-control-radius);
	background-color: #fff;
}

.bilan-file-upload:focus-within {
	border-color: var(--app-form-focus-color);
	box-shadow: var(--app-form-focus-shadow);
}

.bilan-file-upload-button {
	display: inline-flex;
	align-items: center;
	flex: 0 0 auto;
	margin: 0;
	padding: 0.55rem 0.85rem;
	border-right: 1px solid #ced4da;
	background-color: #edf5f7;
	color: var(--app-form-label-color);
	font-weight: 600;
	white-space: nowrap;
	cursor: pointer;
}

.bilan-file-upload:hover .bilan-file-upload-button {
	background-color: #dfeef2;
}

.bilan-file-upload-name {
	display: block;
	flex: 1 1 auto;
	min-width: 0;
	padding: 0.55rem 0.75rem;
	overflow: hidden;
	color: #607984;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.action-buttons{
	display: inline-block;
	width: 23px;
	margin-right: 4px;
}

.datatable-action-tooltip.show {
	opacity: 1;
}

.datatable-action-tooltip .tooltip-inner {
	max-width: min(18rem, calc(100vw - 1.5rem));
	padding: 0.48rem 0.68rem;
	border: 1px solid rgba(103, 207, 230, 0.42);
	border-radius: 0.5rem;
	background: #173f55;
	box-shadow: 0 0.45rem 1rem rgba(13, 47, 63, 0.24);
	color: #fff;
	font-size: 0.78rem;
	font-weight: 600;
	line-height: 1.35;
	letter-spacing: 0.01em;
}

.datatable-action-tooltip.bs-tooltip-top .tooltip-arrow::before {
	border-top-color: #173f55;
}

.datatable-action-tooltip.bs-tooltip-bottom .tooltip-arrow::before {
	border-bottom-color: #173f55;
}

.datatable-action-tooltip.bs-tooltip-start .tooltip-arrow::before {
	border-left-color: #173f55;
}

.datatable-action-tooltip.bs-tooltip-end .tooltip-arrow::before {
	border-right-color: #173f55;
}

.pdf-cache-debug-action {
	padding: 0;
	border: 0;
	background: transparent;
	color: #607984;
	font: inherit;
	line-height: 1;
	text-align: left;
	vertical-align: baseline;
	cursor: help;
}

.pdf-cache-debug-action:hover,
.pdf-cache-debug-action:focus {
	color: #087b97;
	outline: none;
}

.pdf-cache-delete-action {
	padding: 0;
	border: 0;
	background: transparent;
	color: #b85c24;
	font: inherit;
	line-height: 1;
	text-align: left;
	vertical-align: baseline;
	cursor: pointer;
}

.pdf-cache-delete-action:hover,
.pdf-cache-delete-action:focus {
	color: #8f3518;
	outline: none;
}

.pdf-cache-delete-action:disabled {
	cursor: wait;
	opacity: 0.55;
}

.pdf-cache-debug-action.is-fresh {
	color: #198754;
}

.pdf-cache-debug-action.is-stale {
	color: #c46f00;
}

.pdf-cache-debug-action.is-missing,
.pdf-cache-debug-action.is-uncached,
.pdf-cache-debug-action.is-disabled {
	color: #78868d;
}

.pdf-cache-debug-tooltip .tooltip-inner {
	min-width: 17rem;
	max-width: 22rem;
	padding: 0.7rem 0.8rem;
	text-align: left;
}

.pdf-cache-debug-tooltip-title {
	margin-bottom: 0.4rem;
	padding-bottom: 0.35rem;
	border-bottom: 1px solid rgba(255, 255, 255, 0.25);
	font-size: 0.9rem;
	font-weight: 700;
}

.pdf-cache-debug-tooltip-row {
	display: flex;
	justify-content: space-between;
	gap: 1rem;
	padding: 0.12rem 0;
	font-size: 0.78rem;
}

.pdf-cache-debug-tooltip-row span {
	color: rgba(255, 255, 255, 0.78);
}

.pdf-cache-debug-tooltip-row strong {
	text-align: right;
}

.pdf-cache-debug-tooltip-error {
	font-size: 0.8rem;
}

.disabled-link{
	pointer-events: none;
	opacity: 50%;
}

.active-nav-tab {
	color: #FFF !important;
}

/* Informations visibles sur les environnements hors production */
.test-environment-notice {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    padding: 0.85rem 1rem;
    border: 1px solid #edc36d;
    border-left: 5px solid #d58a00;
    border-radius: 8px;
    background: linear-gradient(105deg, #fff7df 0%, #fffdf7 100%);
    color: #5d430f;
}

.test-environment-notice-icon {
    display: grid;
    flex: 0 0 2.5rem;
    width: 2.5rem;
    height: 2.5rem;
    place-items: center;
    border-radius: 50%;
    background: #f2a900;
    color: #fff;
    font-size: 1rem;
}

.test-environment-notice-content {
    min-width: 0;
}

.test-environment-notice-heading {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.1rem;
    font-size: 1rem;
}

.test-environment-debug-badge {
    padding: 0.12rem 0.48rem;
    border: 1px solid transparent;
    border-radius: 999px;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.test-environment-debug-badge.is-active {
    border-color: #e6a2a5;
    background: #fff0f0;
    color: #a1262c;
}

.test-environment-debug-badge.is-inactive {
    border-color: rgba(117, 75, 0, 0.22);
    background: rgba(255, 255, 255, 0.58);
    color: #6d5a32;
}

.test-environment-notice p {
    margin: 0;
    color: #75591f;
    font-size: 0.88rem;
}

.test-environment-mail-info {
    display: flex;
    align-items: baseline;
    gap: 0.4rem;
    margin-top: 0.3rem;
    color: #49350c;
    font-size: 0.84rem;
}

.test-environment-mail-info .fa {
    color: #b27300;
}

@media (max-width: 575.98px) {
    .test-environment-notice {
        align-items: flex-start;
        padding: 0.8rem;
    }

    .test-environment-notice-icon {
        flex-basis: 2.25rem;
        width: 2.25rem;
        height: 2.25rem;
    }
}

/* Valeurs de référence ajoutées aux champs de l'éditeur Formeo. */
.formeo-reference-native-attribute {
    display: none !important;
}

.formeo-reference-values {
    margin: 0.65rem 0.5rem 0;
    padding: 0.65rem;
    border: 1px solid #c9dce4;
    border-radius: 5px;
    background: #f5fafc;
}

.formeo-reference-values-title {
    margin-bottom: 0.45rem;
    color: #16465b;
    font-size: 0.85rem;
    font-weight: 700;
}

.formeo-reference-values-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.65rem;
}

.formeo-reference-values-field label {
    display: block;
    margin-bottom: 0.2rem;
    color: var(--app-form-label-color);
    font-size: 0.78rem;
    font-weight: 600;
}

.formeo-reference-values-field input {
    width: 100%;
    min-width: 0;
    padding: 0.35rem 0.45rem;
    border: 1px solid #b9ccd5;
    border-radius: 4px;
    background: #fff;
}

.formeo-reference-values small {
    display: block;
    margin-top: 0.4rem;
    color: #607984;
    font-size: 0.72rem;
}

.formeo-reference-values-help {
    color: #b42318;
}

/* Édition simplifiée des valeurs de référence des formulaires de visite. */
.reference-values-page {
    --reference-accent: #0797b9;
    --reference-ink: #183f52;
    --reference-border: #cfe1e8;
}

.reference-values-information {
    display: flex;
    gap: 0.65rem;
    margin-bottom: 1rem;
    padding: 0.75rem 0.9rem;
    border: 1px solid var(--reference-border);
    border-radius: 8px;
    background: #f6fbfc;
    color: #456371;
    font-size: 0.86rem;
}

.reference-values-information > .fa {
    margin-top: 0.15rem;
    color: var(--reference-accent);
}

.reference-values-information strong,
.reference-values-information span {
    display: block;
}

.reference-values-information strong {
    color: var(--reference-ink);
}

.reference-values-filters {
    display: grid;
    grid-template-columns: minmax(240px, 0.8fr) minmax(280px, 1.2fr);
    gap: 1rem;
    align-items: end;
    margin-bottom: 1.15rem;
    padding: 1rem;
    border: 1px solid #dde7eb;
    border-radius: 8px;
    background: #fff;
}

.reference-values-filter label {
    display: block;
    margin-bottom: 0.35rem;
    color: var(--app-form-label-color);
    font-size: 0.82rem;
    font-weight: 600;
}

.reference-values-filter .bootstrap-select {
    width: 100% !important;
}

.reference-values-search {
    position: relative;
}

.reference-values-search .fa {
    position: absolute;
    z-index: 2;
    top: 50%;
    left: 0.8rem;
    color: #72909d;
    transform: translateY(-50%);
}

.reference-values-search .form-control {
    padding-left: 2.35rem;
}

.reference-values-list {
    display: grid;
    gap: 1rem;
}

.reference-values-form {
    padding-bottom: 5.5rem;
}

.reference-values-save-dock {
    position: fixed;
    z-index: 1030;
    right: clamp(1rem, 2.5vw, 2rem);
    bottom: clamp(1rem, 2.5vw, 2rem);
    padding: 0.45rem;
    border: 1px solid #c8dce4;
    border-radius: 999px;
    background: #fff;
}

.reference-values-save-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    min-height: 2.65rem;
    padding: 0.55rem 1rem;
    border: 0;
    border-radius: 999px;
    background: #0797b9;
    box-shadow: 0 5px 13px rgba(7, 127, 155, 0.25);
    color: #fff;
    font-weight: 700;
    transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.reference-values-save-button:hover:not(:disabled),
.reference-values-save-button:focus:not(:disabled) {
    background: #087f9b;
    box-shadow: 0 7px 17px rgba(7, 127, 155, 0.32);
    color: #fff;
    transform: translateY(-1px);
}

.reference-values-save-button:disabled {
    background: #e4ecef;
    box-shadow: none;
    color: #758b95;
    cursor: not-allowed;
    opacity: 1;
}

.reference-form-card {
    overflow: hidden;
    border: 1px solid var(--reference-border);
    border-radius: 9px;
    background: #fff;
    box-shadow: 0 5px 18px rgba(25, 71, 89, 0.055);
}

.reference-form-heading,
.reference-form-title-block {
    display: flex;
}

.reference-form-heading {
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.85rem 1rem;
    border-bottom: 1px solid var(--reference-border);
    background: #f3f9fb;
}

.reference-form-title-block {
    min-width: 0;
    gap: 0.7rem;
}

.reference-form-icon {
    display: grid;
    flex: 0 0 2rem;
    width: 2rem;
    height: 2rem;
    place-items: center;
    border-radius: 6px;
    background: #dceff4;
    color: #087f9b;
}

.reference-form-heading h2 {
    margin: 0;
    color: #173f52;
    font-size: 1rem;
}

.reference-values-table {
    border: 0;
    border-radius: 0;
}

.reference-values-table thead th {
    padding: 0.55rem 0.75rem;
    background: #fff;
    color: #54717f;
    font-size: 0.74rem;
    letter-spacing: 0.025em;
    text-transform: uppercase;
}

.reference-values-table thead th:first-child {
    width: 50%;
}

.reference-values-table thead th:nth-child(2),
.reference-values-table thead th:nth-child(3) {
    width: 25%;
}

.reference-values-table tbody tr:nth-child(n) {
    background: #fff;
}

.reference-values-table tbody tr:hover {
    background: #f8fcfd;
}

.reference-values-table tbody th,
.reference-values-table tbody td {
    padding: 0.65rem 0.75rem;
    border-bottom: 1px solid #212529 !important;
    vertical-align: middle;
}

.reference-field-label {
    display: block;
    color: var(--reference-ink);
    font-size: 0.88rem;
    font-weight: 400;
}

.reference-value-input {
    min-width: 135px;
}

.reference-values-empty-state {
    padding: 2.5rem 1rem;
    border: 1px dashed #bfd5de;
    border-radius: 9px;
    background: #f8fbfc;
    color: #5d7782;
    text-align: center;
}

.reference-values-empty-state .fa {
    margin-bottom: 0.6rem;
    color: #6eaec0;
    font-size: 1.6rem;
}

.reference-values-empty-state h2 {
    color: #294e60;
    font-size: 1rem;
}

.reference-values-empty-state p {
    margin: 0;
    font-size: 0.86rem;
}

@media (max-width: 991.98px) {
    .reference-values-filters {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 767.98px) {
    .reference-form-heading {
        align-items: stretch;
        flex-direction: column;
    }

    .reference-values-filters {
        grid-template-columns: 1fr;
    }

}

/* Pour l'éditeur de filières */
.nav-tabs > li {
    position:relative;
}

.nav-tabs > li > a {
    display:inline-block;
}

.nav-tabs > li > span {
    display:none;
    cursor:pointer;
    position:absolute;
    right: 6px;
    top: 8px;
    color: red;
}

.nav-tabs > li:hover > span {
    display: inline-block;
}

/* Modifs accordion bootstrap */
.accordion-button:not(.collapsed){
	color: black !important;
	background-color: white !important;
}

.accordion-button:focus {
    box-shadow: none !important;
}

/* Filières */
.delete-section{
	color: #0d6efd !important;
	margin-left: 15px !important;
	margin-top: 5px !important;
}

.edit-page-name, .save-page-name{
	color: #0d6efd !important;
	margin-left: 10px !important;
	margin-top: 1px !important;
}

.delete-page, .cancel-page-name{
	color: #0d6efd !important;
	margin-left: 10px !important;
}

.move-section{
	margin-right: 15px !important;
	margin-top: 10px !important;
}

.error-code{
	width: 100%;
	position: fixed;
	font-size: 46rem;
	color: rgba(0,0,0,.04);
	top: -335px;
	left: -81px;
	z-index:0;
}

/* Formulaire des visites */
.visite-form-shell,
.visite-form,
.visite-form .tab-content,
.visite-form .tab-pane,
.visite-form .filiere_page_bloc,
.visite-form .formeo.formeo-render,
.visite-form .formeo.formeo-render .formeo-row-wrap,
.visite-form .formeo.formeo-render .formeo-row,
.visite-form .formeo.formeo-render .formeo-column,
.visite-form .formeo.formeo-render .formeo-field {
	min-width: 0;
}

.visite-form .formeo.formeo-render .formeo-row-wrap {
	margin-bottom: 0 !important;
}

.visite-form .f-field-group .f-field-group {
	display: grid !important;
	grid-template-columns: repeat(7, minmax(0, 1fr)) !important;
}

.visite-form .grid-span {
	grid-column: span 2;
}

.visite-form .f-field-group label:first-child {
	display: block !important;
	font-weight: bolder;
}

.visite-form .tab-content h1,
.visite-form .tab-content h2,
.visite-form .tab-content h3,
.visite-form .tab-content h4,
.visite-form .tab-content h5,
.visite-form .tab-content h6 {
	font-weight: bold !important;
	overflow-wrap: anywhere;
}

.visite-form .f-field-group input[type="text"]:not(.spreadsheet-row):not(.spreadsheet-text),
.visite-form .f-field-group textarea,
.visite-form .f-field-group select:not(.selectpicker) {
	width: 50% !important;
}

.visite-form .f-field-group input[type="text"]:not(.spreadsheet-row):not(.spreadsheet-text) {
	display: flex;
}

.visite-form .bootstrap-select,
.visite-form .note-editor,
.visite-form .note-editing-area,
.visite-form .note-editable {
	max-width: 100%;
}

.visite-form .note-toolbar {
	display: flex;
	flex-wrap: wrap;
}

.visite-form .note-editable img,
.visite-form #commentaire_last_visite img {
	max-width: 100%;
	height: auto !important;
}

.visite-form .spreadsheet {
	max-width: 100%;
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
}

.visite-form .f-field-group > span:has(> .spreadsheet-table) {
	display: block;
	width: 100%;
	max-width: 100%;
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
}

.visite-form .spreadsheet-table {
	width: max-content;
	min-width: 100%;
}

.visite-form .visite-chart-column {
	min-width: 0;
}

.visite-form .chart {
	max-width: 100%;
}

.visite-form .visite-file-list {
	width: 100%;
	max-width: 42rem;
}

.visite-form #images_list,
.visite-form #annexes_list {
	width: 100%;
}

.visite-form #annexes_list .list-group-item {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.75rem;
}

.visite-form #annexes_list .list-group-item > a {
	min-width: 0;
	overflow-wrap: anywhere;
}

.visite-form #commentaire_last_visite {
	min-width: 0;
	overflow-wrap: anywhere;
}

.visite-form #commentaire_last_visite table {
	display: block;
	max-width: 100%;
	overflow-x: auto;
}

.visite-form-page .main > h1 {
	overflow-wrap: anywhere;
}

.visite-form .visite-mobile-tab-selector {
	display: none;
}

@media (max-width: 1199.98px) {
	.visite-form .f-field-group .f-field-group {
		grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
	}
}

@media (max-width: 991.98px) {
	.visite-form .bilan-form-tabs {
		flex-wrap: nowrap;
		overflow-x: auto;
		overflow-y: hidden;
		padding: 0.15rem 0 0.45rem;
		overscroll-behavior-inline: contain;
		-webkit-overflow-scrolling: touch;
	}

	.visite-form .bilan-form-tabs .nav-item {
		flex: 0 0 auto;
	}

	.visite-form .bilan-form-tabs .nav-link {
		width: auto !important;
		white-space: nowrap;
	}

	.visite-form .f-field-group input[type="text"]:not(.spreadsheet-row):not(.spreadsheet-text),
	.visite-form .f-field-group textarea,
	.visite-form .f-field-group select:not(.selectpicker),
	.visite-form .f-field-group .bootstrap-select {
		width: 100% !important;
	}
}

@media (max-width: 767.98px) {
	body.visite-form-page {
		padding-right: 0.75rem !important;
		padding-left: 0.75rem !important;
	}

	.visite-form .visite-mobile-tab-selector {
		display: block;
	}

	.visite-form .visite-form-tabs {
		display: none;
	}

	.visite-form-page .main,
	.visite-form-page .visite-form-shell {
		padding-right: 0;
		padding-left: 0;
	}

	.visite-form .formeo.formeo-render .formeo-row {
		flex-wrap: wrap;
		row-gap: 0.75rem;
	}

	.visite-form .formeo.formeo-render .formeo-column {
		width: 100% !important;
		max-width: 100% !important;
		flex: 0 0 100% !important;
		float: none;
		padding-right: 0;
		padding-left: 0;
	}

	.visite-form .f-field-group .f-field-group {
		grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
	}

	.visite-form .file-conditions {
		margin-top: 0 !important;
	}
}

@media (max-width: 575.98px) {
	.visite-form-page .main > h1,
	.visite-form .tab-content h1 {
		font-size: 1.65rem;
	}

	.visite-form .f-field-group .f-field-group {
		grid-template-columns: minmax(0, 1fr) !important;
	}

	.visite-form .grid-span {
		grid-column: 1 / -1;
	}

	.visite-form #update_visite_form,
	.visite-form #import_analyse,
	.visite-form #import_link,
	.visite-form #import_link_redox,
	.visite-form .visite-form-quick-actions .btn,
	.visite-form .visite-file-upload-row .btn,
	.visite-form .visite-comments-heading .btn,
	.visite-form .visite-submit-actions > .btn {
		width: 100%;
	}

	.visite-form .visite-submit-actions {
		align-items: stretch;
	}
}

/* Images/Annexes */
.file-conditions{
	margin-top: -6px !important;
}

.up-arrow{
	width: 0;
	border-right: 5px solid transparent;
	border-bottom: 5px solid;
	border-left: 5px solid transparent;
	margin-bottom: 5px;
	cursor: pointer;
}

.down-arrow{
	width: 0;
	border-right: 5px solid transparent;
	border-top: 5px solid;
	border-left: 5px solid transparent;
	cursor: pointer;
}

/* Classe à appliquer sur les doublons d'anomalies */
.hide-doubles{
	display: none !important;
}

/* Lien disabled */
a.disabled {
  pointer-events: none;
  cursor: default;
}

/* Tableaux Summernote */
.clean-pasted-table {
  width: 100%;
  border-collapse: collapse;
}

.clean-pasted-table th,
.clean-pasted-table td {
  border: 1px solid #ccc;
  padding: 1px;
  text-align: left;
  margin-bottom: 1rem !important;
}

.clean-pasted-table th {
  background-color: #f0f0f0;
  font-weight: bold;
}

.clean-pasted-table p {
  margin-bottom: 0 !important;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Segoe UI', 'Roboto', 'Helvetica Neue', sans-serif;
  font-weight: 600;
  line-height: 1.2;
  margin-bottom: 0.5rem;
  color: #212529;
}

.btn-enhanced {
  border-radius: var(--app-control-radius);
  font-weight: 600;
  padding-left: 1rem;
  padding-right: 1rem;
  transition: transform 0.2s ease-in-out;
}

/* CSS custom pour DataTables */
table.dataTable thead .sorting_asc {
    background-image: url("images/sort_asc.png") !important;
}

table.dataTable thead .sorting_desc {
    background-image: url("images/sort_desc.png") !important;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-family: 'Segoe UI', sans-serif;
  font-size: 14px;
  background-color: white;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  overflow: hidden;
}

thead {
  background-color: #f8f9fa;
  color: #333;
  text-align: left;
}

thead th {
  padding: 12px 16px;
  font-weight: 600;
  border-bottom: 1px solid #e0e0e0;
}

tbody td {
  padding: 12px 16px;
  border-bottom: 1px solid #f1f1f1;
}

tbody tr:nth-child(even) {
  background-color: #f9f9f9;
}

table.responsive-table {
  display: block;
  overflow-x: auto;
  white-space: nowrap;
}

table.compact td, table.compact th {
  padding: 8px 12px;
}

th.sortable:after {
  content: " ⇅";
  font-size: 12px;
  color: #aaa;
}

.dataTables_filter {
  margin-bottom: 1rem;
}
.dataTables_filter label {
  color: var(--app-form-label-color);
  font-weight: 600;
}

.collectivites-table .collectivite-users-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
  align-items: center;
}

.collectivites-table .collectivite-user-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.14rem 0.45rem;
  border-radius: 999px;
  background: linear-gradient(180deg, #eef7fb 0%, #dceef8 100%);
  border: 1px solid #bfdced;
  color: #1f546d;
  font-size: 0.74rem;
  font-weight: 600;
  line-height: 1.1;
  white-space: nowrap;
}

.collectivites-table .collectivite-users-empty {
  display: inline-block;
  padding: 0.14rem 0.45rem;
  border-radius: 999px;
  background: #f3f5f7;
  color: #6c757d;
  font-size: 0.74rem;
  font-style: italic;
}

.collectivites-table td:nth-child(3) {
  white-space: normal;
}

table.dataTable thead tr.datatable-column-filters th {
  padding: 6px 8px 10px;
  background: #f8fbfd;
  border-bottom: 1px solid #d9e3ea;
  background-image: none !important;
  cursor: default;
}

table.dataTable thead tr.datatable-column-filters th.datatable-column-filter-cell-empty {
  background: #f8fbfd;
}

.datatable-column-input {
  min-width: 0;
  width: 100%;
  padding: 0.28rem 0.5rem;
  font-size: 0.82rem;
  border-radius: 0.4rem;
}

.datatable-column-input::placeholder {
  color: #6c757d;
  opacity: 1;
}

.datatable-column-date-filter {
  position: relative;
}

.datatable-column-date-filter .datatable-column-input {
  padding-right: 2.2rem;
}

.datatable-column-picker-button {
  position: absolute;
  top: 50%;
  right: 0.28rem;
  transform: translateY(-50%);
  width: 1.7rem;
  height: 1.7rem;
  border: 0;
  padding: 0;
  border-radius: 0.4rem;
  background: transparent;
  color: #5c7585;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.datatable-column-picker-button:hover {
  background-color: #e6f0f5;
  color: #1d5873;
}

.datatable-column-picker-button:focus {
  outline: none;
  box-shadow: 0 0 0 0.16rem rgba(13, 110, 253, 0.16);
}

#ui-datepicker-div.datatable-column-datepicker {
  z-index: 1600 !important;
  font-size: 0.9rem;
}

.dataTables_wrapper {
  width: 100%;
  max-width: 100%;
}

.datatable-responsive-hint {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin: 0 0 0.45rem;
  color: #526b78;
  font-size: 0.82rem;
  font-weight: 600;
}

.datatable-responsive-hint[hidden] {
  display: none !important;
}

.datatable-responsive-hint i {
  color: #087f9b;
}

.datatable-responsive-shell {
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  border: 1px solid #dce5ea;
  border-radius: 0.55rem;
  background-color: #fff;
  scrollbar-color: #8ba8b5 #edf3f6;
  scrollbar-width: thin;
  -webkit-overflow-scrolling: touch;
}

.datatable-responsive-shell:focus-visible {
  outline: 0;
  border-color: var(--app-form-focus-color);
  box-shadow: var(--app-form-focus-shadow);
}

.datatable-responsive-shell.is-overflowing:not(.is-at-end) {
  box-shadow: inset -14px 0 12px -14px rgba(37, 76, 94, 0.75);
}

.datatable-responsive-shell.is-overflowing:not(.is-at-start) {
  border-left-color: #aec3cd;
}

.datatable-responsive-shell table.dataTable.app-datatable {
  width: 100% !important;
  margin: 0 !important;
  border: 0;
  border-radius: 0;
}

table.dataTable.app-datatable thead th {
  white-space: nowrap;
  vertical-align: top;
}

table.dataTable.app-datatable tbody td {
  vertical-align: middle;
  overflow-wrap: anywhere;
}

table.dataTable.app-datatable tbody td .btn {
  white-space: nowrap;
}

.grouped-pdf-download__toggle {
  display: flex;
  align-items: center;
  min-height: 2.25rem;
}

.grouped-pdf-download__toggle .form-check-label {
  color: #294957;
  font-weight: 600;
  cursor: pointer;
}

.grouped-pdf-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem 1rem;
  padding: 0.75rem;
  border: 1px solid #dce5ea;
  border-radius: 0.55rem;
  background: #f5f8fa;
}

.grouped-pdf-toolbar[hidden] {
  display: none !important;
}

.grouped-pdf-toolbar__format,
.grouped-pdf-toolbar__filename,
.grouped-pdf-toolbar__selection,
.grouped-pdf-toolbar__year {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem;
}

.grouped-pdf-toolbar__counter {
  min-width: 7.5rem;
  color: #294957;
  font-size: 0.85rem;
}

.grouped-pdf-toolbar__format label,
.grouped-pdf-toolbar__filename label,
.grouped-pdf-toolbar__year label {
  margin: 0;
  color: #294957;
  font-size: 0.85rem;
  font-weight: 600;
}

.grouped-pdf-toolbar__format .form-select {
  width: 13.5rem;
}

.grouped-pdf-toolbar__filename .input-group {
  width: 20rem;
  max-width: 100%;
}

.grouped-pdf-toolbar__filename .input-group-text {
  min-width: 3.25rem;
  justify-content: center;
}

.grouped-pdf-toolbar__year .form-select {
  width: 10.5rem;
}

.grouped-pdf-row-label,
.grouped-pdf-column-label {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  min-width: 0;
}

.grouped-pdf-row-selector,
.grouped-pdf-page-selector {
  display: none;
  flex: 0 0 auto;
  width: 1rem;
  height: 1rem;
  margin: 0;
  cursor: pointer;
}

table.grouped-pdf-selection-enabled .grouped-pdf-row-selector,
table.grouped-pdf-selection-enabled .grouped-pdf-page-selector {
  display: block;
}

.datatable-mobile-summary-label,
.datatable-mobile-toggle {
  display: none;
}

.datatable-mobile-summary-value,
.datatable-mobile-summary-content {
  display: contents;
}

@media (max-width: 767.98px) {
  .grouped-pdf-toolbar,
  .grouped-pdf-toolbar__format,
  .grouped-pdf-toolbar__filename,
  .grouped-pdf-toolbar__selection,
  .grouped-pdf-toolbar__year {
    align-items: stretch;
  }

  .grouped-pdf-toolbar__format,
  .grouped-pdf-toolbar__filename,
  .grouped-pdf-toolbar__selection,
  .grouped-pdf-toolbar__year {
    flex: 1 1 100%;
  }

  .grouped-pdf-toolbar__counter {
    display: flex;
    align-items: center;
    min-width: 0;
  }

  .grouped-pdf-toolbar__selection .btn {
    flex: 1 1 auto;
  }

  .grouped-pdf-toolbar__format label,
  .grouped-pdf-toolbar__filename label,
  .grouped-pdf-toolbar__year label {
    display: flex;
    align-items: center;
  }

  .grouped-pdf-toolbar__format .form-select,
  .grouped-pdf-toolbar__filename .input-group,
  .grouped-pdf-toolbar__year .form-select {
    flex: 1 1 8rem;
    width: auto;
    min-width: 0;
  }

  .dataTables_wrapper {
    display: grid;
    grid-template-columns: max-content minmax(0, 1fr);
    align-items: center;
    column-gap: 0.6rem;
  }

  .dataTables_wrapper > .dataTables_length {
    grid-column: 1;
    grid-row: 1;
    width: max-content;
  }

  .dataTables_wrapper > .dataTables_filter {
    grid-column: 2;
    grid-row: 1;
    justify-self: stretch;
    width: 100%;
    min-width: 0;
  }

  .dataTables_wrapper > .datatable-responsive-hint,
  .dataTables_wrapper > .datatable-responsive-shell,
  .dataTables_wrapper > .dataTables_info,
  .dataTables_wrapper > .dataTables_paginate,
  .dataTables_wrapper > .row {
    grid-column: 1 / -1;
  }

  .dataTables_wrapper .dataTables_length,
  .dataTables_wrapper .dataTables_filter {
    float: none !important;
    margin: 0;
    text-align: left !important;
  }

  .dataTables_wrapper .dataTables_length {
    width: auto;
  }

  .dataTables_wrapper .dataTables_filter {
    width: 100%;
    min-width: 0;
  }

  .dataTables_wrapper > .dataTables_length,
  .dataTables_wrapper > .dataTables_filter {
    margin-bottom: 0.75rem;
  }

  .dataTables_wrapper .dataTables_info,
  .dataTables_wrapper .dataTables_paginate {
    float: none !important;
    width: 100%;
    text-align: left !important;
  }

  .dataTables_wrapper > .row:first-child {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.4rem 0.65rem;
    margin-right: 0;
    margin-bottom: 0.75rem;
    margin-left: 0;
  }

  .dataTables_wrapper > .row:first-child > [class*="col-"] {
    flex: 0 1 auto;
    width: auto;
    max-width: 100%;
    padding-right: 0;
    padding-left: 0;
  }

  .dataTables_wrapper > .row:first-child > [class*="col-"]:last-child {
    flex: 1 1 14rem;
    min-width: 0;
    margin-left: auto;
  }

  .dataTables_wrapper .dataTables_length label,
  .dataTables_wrapper .dataTables_filter label {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0.3rem;
    width: auto;
    margin: 0;
    color: #294957;
    font-size: 0.75rem;
    line-height: 1.2;
    white-space: nowrap;
  }

  .dataTables_wrapper .dataTables_filter label {
    justify-content: flex-end;
    width: 100%;
  }

  .dataTables_wrapper .dataTables_filter input {
    flex: 1 1 auto;
    width: auto;
    min-width: 4.25rem;
    max-width: 14rem;
    min-height: 2.25rem;
    height: 2.25rem;
    margin-left: 0 !important;
    padding: 0.35rem 0.5rem;
  }

  .dataTables_wrapper .dataTables_length label {
    justify-content: flex-start;
  }

  .dataTables_wrapper .dataTables_length select {
    flex: 0 0 auto;
    width: 3.75rem;
    min-width: 3.75rem;
    height: 2.25rem;
    padding-top: 0.3rem;
    padding-bottom: 0.3rem;
  }

  .dataTables_wrapper .dataTables_info {
    padding-top: 0.85rem;
    text-align: center !important;
  }

  .dataTables_wrapper .dataTables_paginate {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.25rem;
    padding-top: 0.65rem;
  }

  .dataTables_wrapper .dataTables_paginate > span {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.2rem;
  }

  .dataTables_wrapper .dataTables_paginate .paginate_button {
    margin-left: 0 !important;
  }

  .datatable-responsive-shell.datatable-mobile-card-shell {
    overflow-x: visible;
    border: 1px solid #dce5ea;
    border-radius: 0.25rem;
    background: #fff;
    box-shadow: none !important;
  }

  .datatable-responsive-shell.datatable-mobile-card-shell:focus {
    outline: 2px solid transparent;
  }

  .datatable-responsive-shell table.dataTable.app-datatable.datatable-mobile-full {
    width: 100% !important;
    min-width: 0 !important;
    margin: 0 !important;
    table-layout: fixed;
  }

  table.dataTable.app-datatable.datatable-mobile-full thead th,
  table.dataTable.app-datatable.datatable-mobile-full tbody td {
    box-sizing: border-box;
    padding: 0.5rem !important;
    overflow-wrap: anywhere;
    white-space: normal !important;
  }

  table.dataTable.app-datatable.datatable-mobile-full thead th {
    font-size: 0.75rem;
    line-height: 1.3;
  }

  table.dataTable.app-datatable.datatable-mobile-full thead th:last-child,
  table.dataTable.app-datatable.datatable-mobile-full tbody td:last-child {
    width: 5.25rem !important;
    text-align: center;
  }

  .datatable-responsive-shell table.dataTable.app-datatable.datatable-mobile-collapsible {
    display: block;
    width: 100% !important;
    min-width: 0;
    background: #fff;
  }

  table.dataTable.app-datatable.datatable-mobile-collapsible thead {
    display: block;
    width: 100%;
  }

  table.dataTable.app-datatable.datatable-mobile-collapsible thead > tr:first-child {
    display: grid;
    grid-template-columns: var(--datatable-mobile-summary-columns, minmax(0, 1fr)) 2.8rem;
    width: 100%;
    border-bottom: 1px solid #cbd5da;
    background: #f3f6f7;
  }

  table.dataTable.app-datatable.datatable-mobile-collapsible thead > tr:not(:first-child),
  table.dataTable.app-datatable.datatable-mobile-collapsible thead th.datatable-mobile-hidden-header-cell {
    display: none !important;
  }

  table.dataTable.app-datatable.datatable-mobile-collapsible thead th.datatable-mobile-summary-header-cell {
    display: block !important;
    box-sizing: border-box;
    width: auto !important;
    min-width: 0;
    padding: 0.55rem 0.5rem !important;
    border: 0 !important;
    background: transparent !important;
    color: #314f5d;
    font-size: 0.75rem;
    font-weight: 700;
    line-height: 1.3;
    overflow-wrap: anywhere;
    text-align: left !important;
    white-space: normal !important;
  }

  table.dataTable.app-datatable.datatable-mobile-collapsible tbody {
    display: block;
    width: 100%;
  }

  table.dataTable.app-datatable.datatable-mobile-collapsible tbody td,
  table.dataTable.app-datatable.datatable-mobile-collapsible tbody th,
  table.dataTable.app-datatable.datatable-mobile-collapsible tfoot td,
  table.dataTable.app-datatable.datatable-mobile-collapsible tfoot th {
    box-sizing: border-box;
  }

  table.dataTable.app-datatable.datatable-mobile-collapsible tbody tr.datatable-mobile-row {
    display: grid;
    grid-template-columns: var(--datatable-mobile-summary-columns, minmax(0, 1fr)) 2.8rem;
    align-items: stretch;
    width: 100%;
    margin: 0;
    overflow: visible;
    border: 0;
    border-bottom: 1px solid #dee2e6;
    border-radius: 0;
    box-shadow: none;
  }

  table.dataTable.app-datatable.datatable-mobile-collapsible tbody tr.datatable-mobile-row:nth-of-type(odd) {
    background-color: rgba(0, 0, 0, 0.035) !important;
  }

  table.dataTable.app-datatable.datatable-mobile-collapsible tbody tr.datatable-mobile-row:nth-of-type(even) {
    background-color: #fff !important;
  }

  table.dataTable.app-datatable.datatable-mobile-collapsible tbody tr.datatable-mobile-empty-row {
    display: block;
    width: 100%;
    margin: 0;
    border: 0;
    border-bottom: 1px solid #dee2e6;
    border-radius: 0;
    background: #fff;
    box-shadow: none;
  }

  table.dataTable.app-datatable.datatable-mobile-collapsible tbody td.datatable-mobile-summary-cell {
    display: contents !important;
  }

  .datatable-mobile-summary-value {
    display: block;
    box-sizing: border-box;
    width: 100%;
    min-width: 0;
    min-height: 2.75rem;
    padding: 0.5rem !important;
    overflow-wrap: anywhere;
    text-align: left !important;
  }

  .datatable-mobile-summary-label {
    display: none;
  }

  table.dataTable.app-datatable.datatable-mobile-collapsible tbody tr.is-mobile-expanded .datatable-mobile-summary-label {
    display: block;
    margin-bottom: 0.18rem;
    color: #6c7f89;
    font-size: 0.66rem;
    font-weight: 700;
    letter-spacing: 0.025em;
    line-height: 1.2;
    text-transform: uppercase;
  }

  .datatable-mobile-summary-content {
    display: block;
    color: inherit;
    font-weight: 400;
    line-height: 1.45;
  }

  table.dataTable.app-datatable.datatable-mobile-collapsible tbody td.datatable-mobile-detail-cell {
    display: none !important;
  }

  table.dataTable.app-datatable.datatable-mobile-collapsible tbody tr.is-mobile-expanded td.datatable-mobile-detail-cell {
    display: block !important;
    grid-column: 1 / -1;
    order: 100;
    width: 100% !important;
    padding: 0.5rem 0.65rem 0.5rem 1.15rem !important;
    border: 0 !important;
    border-bottom: 1px solid rgba(222, 226, 230, 0.75) !important;
    background-color: transparent !important;
    text-align: left !important;
    white-space: normal !important;
  }

  table.dataTable.app-datatable.datatable-mobile-collapsible tbody tr.is-mobile-expanded td.datatable-mobile-first-detail-cell {
    border-top: 1px solid #cbd5da !important;
  }

  table.dataTable.app-datatable.datatable-mobile-collapsible tbody tr.is-mobile-expanded td.datatable-mobile-detail-cell:last-child {
    border-bottom: 0 !important;
  }

  table.dataTable.app-datatable.datatable-mobile-collapsible tbody td.datatable-mobile-detail-cell::before,
  table.dataTable.app-datatable.datatable-mobile-collapsible tfoot .datatable-mobile-footer-cell::before {
    content: attr(data-datatable-label);
    display: block;
    margin-bottom: 0.18rem;
    color: #6c7f89;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.045em;
    line-height: 1.2;
    text-transform: uppercase;
  }

  .datatable-mobile-toggle {
    display: inline-flex;
    align-items: center;
    align-self: center;
    justify-content: center;
    justify-self: center;
    gap: 0;
    width: 1.8rem;
    height: 1.8rem;
    padding: 0;
    border: 1px solid #aebdc5;
    border-radius: 0.25rem;
    background: transparent;
    color: #526b78;
    line-height: 1;
    cursor: pointer;
    transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
  }

  .datatable-mobile-toggle:hover {
    border-color: #718995;
    background: rgba(82, 107, 120, 0.08);
    color: #294957;
  }

  .datatable-mobile-toggle:focus-visible {
    outline: 0;
    border-color: var(--app-form-focus-color);
    box-shadow: var(--app-form-focus-shadow);
  }

  .datatable-mobile-toggle i {
    display: block;
    font-size: 0.68rem;
  }

  table.dataTable.app-datatable.datatable-mobile-collapsible tbody td.datatable-mobile-empty-cell {
    display: block !important;
    width: 100% !important;
    padding: 1rem !important;
    border: 0 !important;
    background: #fff !important;
    color: #526b78;
    text-align: center !important;
  }

  table.dataTable.app-datatable.datatable-mobile-collapsible tfoot,
  table.dataTable.app-datatable.datatable-mobile-collapsible tfoot tr.datatable-mobile-footer-row {
    display: block;
    width: 100%;
  }

  table.dataTable.app-datatable.datatable-mobile-collapsible tfoot tr.datatable-mobile-footer-row {
    margin: 0;
    overflow: visible;
    border: 0;
    border-radius: 0;
    background: #f8f9fa;
  }

  table.dataTable.app-datatable.datatable-mobile-collapsible tfoot tr.datatable-mobile-footer-row > :not(.datatable-mobile-footer-cell) {
    display: none !important;
  }

  table.dataTable.app-datatable.datatable-mobile-collapsible tfoot .datatable-mobile-footer-cell {
    display: block !important;
    width: 100% !important;
    padding: 0.5rem 0.65rem !important;
    border: 0 !important;
    border-bottom: 1px solid #dee2e6 !important;
    background: transparent !important;
    text-align: left !important;
  }

  table.dataTable.app-datatable.datatable-mobile-collapsible tfoot .datatable-mobile-footer-cell:last-child {
    border-bottom: 0 !important;
  }

  table.dataTable.app-datatable.datatable-mobile-collapsible tfoot .datatable-mobile-footer-summary {
    color: #203b49;
    font-weight: 700;
  }

  table.dataTable.app-datatable.datatable-mobile-collapsible tfoot .datatable-mobile-footer-summary::before {
    display: none;
  }
}

@media (max-width: 374.98px) {
  .dataTables_wrapper {
    grid-template-columns: minmax(0, 1fr);
  }

  .dataTables_wrapper > .dataTables_length,
  .dataTables_wrapper > .dataTables_filter {
    grid-column: 1;
    justify-self: start;
  }

  .dataTables_wrapper > .dataTables_length {
    grid-row: 1;
    margin-bottom: 0.35rem;
  }

  .dataTables_wrapper > .dataTables_filter {
    grid-row: 2;
    margin-bottom: 0.75rem;
  }
}

.bilan-field-info-tooltip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1rem;
  height: 1rem;
  margin-left: 0.35rem;
  border-radius: 999px;
  background: #e6f4f8;
  color: #0b7894;
  font-size: 0.7rem;
  line-height: 1;
  vertical-align: middle;
  cursor: help;
}

.bilan-field-info-tooltip:hover,
.bilan-field-info-tooltip:focus {
  background: #d4edf5;
  color: #075a70;
  outline: none;
}

.bilan-formula-tooltip-popover.show {
  opacity: 1;
}

.bilan-formula-tooltip-popover .tooltip-inner {
  max-width: min(28rem, calc(100vw - 2rem));
  padding: 0;
  overflow: hidden;
  border: 1px solid #8dc7d7;
  border-radius: 0.65rem;
  background: #fff;
  color: #173f55;
  text-align: left;
  box-shadow: 0 0.55rem 1.4rem rgba(23, 63, 85, 0.2);
}

.bilan-formula-tooltip-header {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.55rem 0.75rem;
  background: #0b7894;
  color: #fff;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.bilan-formula-tooltip-expression {
  padding: 0.7rem 0.8rem 0.75rem;
  color: #243f4d;
  font-family: Consolas, "Liberation Mono", monospace;
  font-size: 0.78rem;
  line-height: 1.6;
  overflow-wrap: anywhere;
}

.bilan-formula-reference {
  display: inline;
  padding: 0.08rem 0.28rem;
  border-radius: 0.28rem;
  background: #e4f3f7;
  color: #075f77;
  font-family: inherit;
  font-weight: 700;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}

.bilan-formula-reference-context {
  margin-left: 0.28rem;
  color: #3f6f7c;
  font-size: 0.68rem;
  font-weight: 600;
}

.bilan-formula-reference-context::before {
  content: "[";
}

.bilan-formula-reference-context::after {
  content: "]";
}

.bilan-formula-tooltip-popover.bs-tooltip-top .tooltip-arrow::before {
  border-top-color: #fff;
}

.bilan-formula-tooltip-popover.bs-tooltip-bottom .tooltip-arrow::before {
  border-bottom-color: #0b7894;
}

.bilan-formula-tooltip-popover.bs-tooltip-start .tooltip-arrow::before {
  border-left-color: #fff;
}

.bilan-formula-tooltip-popover.bs-tooltip-end .tooltip-arrow::before {
  border-right-color: #fff;
}

.bilan-multi-type-header {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-wrap: wrap;
}

.bilan-multi-type-label {
  margin: 0;
}

.bilan-multi-type-label-placeholder {
  display: inline-block;
  min-width: 1rem;
}

.bilan-multi-type-select {
  width: auto;
  min-width: 12rem;
  max-width: 100%;
}

input[type="number"].bilan-field-control,
input[type="number"].bilan-multi-type-control {
  appearance: textfield;
  -moz-appearance: textfield;
}

input[type="number"].bilan-field-control::-webkit-inner-spin-button,
input[type="number"].bilan-field-control::-webkit-outer-spin-button,
input[type="number"].bilan-multi-type-control::-webkit-inner-spin-button,
input[type="number"].bilan-multi-type-control::-webkit-outer-spin-button {
  margin: 0;
  -webkit-appearance: none;
}

.bilan-formula-checkbox-row {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.bilan-formula-checkbox-value {
  flex: 1 1 auto;
  min-width: 0;
}

.bilan-formula-checkbox-toggle {
  flex: 0 0 auto;
  margin: 0;
  white-space: nowrap;
}

@media (max-width: 575.98px) {
  .bilan-formula-checkbox-row {
    align-items: stretch;
    flex-direction: column;
    gap: 0.6rem;
  }
}

.bilan-field-arrow {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  min-height: 4.75rem;
}

.bilan-form-arrow {
  padding-bottom: 0.35rem;
  color: #173f55;
  font-size: 2rem;
  font-weight: 800;
  line-height: 1;
  text-align: center;
}

.bilan-form-block-title {
  padding: 0.3rem 0 0.45rem;
  border-bottom: 2px solid #0b7894;
  color: #123f55;
  font-size: 1.18rem;
  font-weight: 800;
  line-height: 1.25;
}

.bilan-form-block-title-h1 {
  font-size: 1.45rem;
  border-bottom-width: 3px;
}

.bilan-form-block-title-h2 {
  font-size: 1.3rem;
  border-bottom-width: 2px;
}

.bilan-form-block-title-h3 {
  font-size: 1.18rem;
  border-bottom-width: 2px;
}

.bilan-notation {
  padding: 0.85rem;
  border: 1px solid #d7e7ef;
  border-radius: 0.75rem;
  background: #fbfdfe;
}

.bilan-notation-tabs .nav-link {
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  color: #173f55;
  font-weight: 700;
}

.bilan-notation-tabs .nav-link.active {
  background: #0b9abd;
  color: #fff;
}

.bilan-notation-criterion {
  padding: 0.75rem;
  border: 1px solid #e1edf3;
  border-radius: 0.65rem;
  background: #fff;
}

.bilan-notation-criterion-label {
  color: #123f55;
  font-weight: 800;
}

.bilan-notation-criterion-heading {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.35rem 0.75rem;
}

.bilan-notation-clear-selection {
  padding: 0;
  border: 0;
  background: transparent;
  color: #52717e;
  font-size: 0.76rem;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 0.15rem;
}

.bilan-notation-clear-selection:hover,
.bilan-notation-clear-selection:focus {
  color: #075f77;
}

.bilan-notation-clear-selection:focus-visible {
  outline: 2px solid #12a3c2;
  outline-offset: 0.2rem;
}

.bilan-notation-choice-wrapper + .bilan-notation-choice-wrapper {
  margin-top: 0.35rem;
}

.bilan-notation-automation {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  color: #347087;
  font-size: 0.78rem;
  font-weight: 600;
}

.bilan-notation-automation::before {
  width: 0.45rem;
  height: 0.45rem;
  margin-right: 0.4rem;
  border-radius: 50%;
  background: #0b9abd;
  content: '';
}

.bilan-notation-automation.is-manual {
  color: #80611a;
}

.bilan-notation-automation.is-manual::before {
  background: #d9a522;
}

.bilan-notation-automation .btn-link {
  color: inherit;
  font-size: inherit;
  font-weight: 700;
  text-decoration: underline;
}

.bilan-notation-total {
  color: #123f55;
}

.bilan-table-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.5rem;
  margin-top: 0.65rem;
}

.bilan-table-action-group {
  display: inline-flex;
  align-items: stretch;
  overflow: hidden;
  border: 1px solid #cfe0e8;
  border-radius: 999px;
  background: #f5fafc;
}

.bilan-table-action-label {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0 0.7rem;
  border-right: 1px solid #d9e7ed;
  color: #274d61;
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 2rem;
}

.bilan-table-action-label .fa {
  color: #0b91b1;
  font-size: 0.72rem;
}

.bilan-table-action-button {
  display: inline-grid;
  width: 2rem;
  min-width: 2rem;
  height: 2rem;
  padding: 0;
  place-items: center;
  border: 0;
  border-left: 1px solid #d9e7ed;
  background: #fff;
  color: #087f9d;
  font-size: 0.72rem;
  transition: background-color 120ms ease, color 120ms ease;
}

.bilan-table-action-label + .bilan-table-action-button {
  border-left: 0;
}

.bilan-table-action-button:hover,
.bilan-table-action-button:focus-visible {
  background: #0b96b7;
  color: #fff;
  outline: none;
}

.bilan-table-action-button.bilan-table-action-remove:hover,
.bilan-table-action-button.bilan-table-action-remove:focus-visible {
  background: #d9364f;
}

.bilan-table-action-button:disabled {
  background: #f4f6f7;
  color: #aebbc1;
  cursor: not-allowed;
  opacity: 1;
}
.travaux-block-annuel .travaux-lines-list {
    display: grid;
    gap: 0.75rem;
}

.travaux-block-annuel .travaux-line-card {
    overflow: hidden;
    border: 1px solid #cfe1e9;
    border-radius: 0.5rem;
    background: #fff;
    box-shadow: 0 0.15rem 0.45rem rgba(23, 70, 91, 0.08);
}

.travaux-block-annuel .travaux-line-main {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(25rem, 0.9fr);
}

.travaux-block-annuel .travaux-line-description,
.travaux-block-annuel .travaux-line-progress {
    min-width: 0;
    padding: 0.9rem 1rem;
}

.travaux-block-annuel .travaux-line-kicker,
.travaux-block-annuel .travaux-line-key-data {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
}

.travaux-block-annuel .travaux-line-kicker {
    gap: 0.45rem;
    margin-bottom: 0.45rem;
}

.travaux-block-annuel .travaux-line-number,
.travaux-block-annuel .travaux-line-status-value {
    display: inline-flex;
    padding: 0.18rem 0.55rem;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 700;
}

.travaux-block-annuel .travaux-line-number {
    background: #078cac;
    color: #fff;
}

.travaux-block-annuel .travaux-line-unit {
    color: #55727f;
    font-size: 0.82rem;
    font-weight: 700;
}

.travaux-block-annuel .travaux-line-title {
    margin: 0;
    color: #163f51;
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.35;
    overflow-wrap: anywhere;
}

.travaux-block-annuel .travaux-line-objective {
    margin: 0.45rem 0 0;
    color: #455f6b;
    font-size: 0.86rem;
    line-height: 1.35;
}

.travaux-block-annuel .travaux-line-key-data {
    gap: 0.55rem 1.1rem;
    margin: 0.75rem 0 0;
}

.travaux-block-annuel .travaux-line-key-data > div {
    min-width: 6.5rem;
    padding-left: 0.55rem;
    border-left: 3px solid #b9dce6;
}

.travaux-block-annuel .travaux-line-key-data dt {
    color: #607986;
    font-size: 0.7rem;
    line-height: 1.2;
    text-transform: uppercase;
}

.travaux-block-annuel .travaux-line-key-data dd {
    margin: 0.12rem 0 0;
    color: #163f51;
    font-size: 0.86rem;
    font-weight: 700;
}

.travaux-block-annuel .travaux-line-progress {
    border-left: 1px solid #d9e8ee;
    background: #f5fafc;
}

.travaux-block-annuel .travaux-line-progress-title,
.travaux-block-annuel .travaux-line-progress-fields label {
    color: #16465b;
    font-size: 0.78rem;
    font-weight: 700;
}

.travaux-block-annuel .travaux-line-progress-title {
    margin-bottom: 0.55rem;
}

.travaux-block-annuel .travaux-line-progress-fields {
    display: grid;
    grid-template-columns: minmax(10rem, 0.65fr) minmax(14rem, 1fr);
    gap: 0.65rem;
    align-items: start;
}

.travaux-block-annuel .travaux-line-progress-fields label {
    display: block;
    margin-bottom: 0.22rem;
}

.travaux-block-annuel .travaux-avancement-comment {
    min-height: 3.55rem;
    resize: vertical;
}

.travaux-block-annuel .travaux-avancement-inherited {
    display: block;
    margin-top: 0.3rem;
    color: #607986;
}

.travaux-block-annuel .travaux-line-progress-readonly {
    color: #243f4c;
    font-size: 0.86rem;
}

.travaux-block-annuel .travaux-line-progress-readonly p {
    margin: 0.4rem 0 0;
    white-space: pre-line;
}

.travaux-block-annuel .travaux-line-status-value {
    background: #dff2e8;
    color: #17633d;
}

.travaux-block-annuel .travaux-line-details {
    border-top: 1px solid #d9e8ee;
}

.travaux-block-annuel .travaux-line-details summary {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.45rem;
    padding: 0.5rem 0.9rem;
    color: #087f9d;
    cursor: pointer;
    font-size: 0.78rem;
    font-weight: 700;
    list-style: none;
}

.travaux-block-annuel .travaux-line-details summary::-webkit-details-marker {
    display: none;
}

.travaux-block-annuel .travaux-line-details summary:hover,
.travaux-block-annuel .travaux-line-details summary:focus-visible {
    background: #edf7fa;
    outline: none;
}

.travaux-block-annuel .travaux-line-details summary .fa {
    transition: transform 150ms ease;
}

.travaux-block-annuel .travaux-line-details-open,
.travaux-block-annuel .travaux-line-details[open] .travaux-line-details-closed {
    display: none;
}

.travaux-block-annuel .travaux-line-details[open] .travaux-line-details-open {
    display: inline;
}

.travaux-block-annuel .travaux-line-details[open] summary .fa {
    transform: rotate(180deg);
}

.travaux-block-annuel .travaux-line-details-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
    gap: 0.85rem;
    padding: 0.2rem 1rem 1rem;
}

.travaux-block-annuel .travaux-line-details-group {
    min-width: 0;
    padding: 0.7rem;
    border: 1px solid #dceaf0;
    border-radius: 0.35rem;
    background: #f9fcfd;
}

.travaux-block-annuel .travaux-line-details-group h5 {
    margin: 0 0 0.45rem;
    color: #16465b;
    font-size: 0.82rem;
}

.travaux-block-annuel .travaux-line-details-group dl {
    margin: 0;
}

.travaux-block-annuel .travaux-line-details-group dl > div {
    display: flex;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.3rem 0;
    border-bottom: 1px solid #e1edf2;
    font-size: 0.76rem;
}

.travaux-block-annuel .travaux-line-details-group dl > div:last-child {
    border-bottom: 0;
}

.travaux-block-annuel .travaux-line-details-group dt {
    color: #526d79;
    font-weight: 600;
}

.travaux-block-annuel .travaux-line-details-group dd {
    margin: 0;
    color: #173f51;
    font-weight: 700;
    text-align: right;
}

.travaux-block-annuel .travaux-lines-empty {
    padding: 1.25rem;
    border: 1px dashed #c8dce5;
    border-radius: 0.45rem;
    background: #f8fbfc;
}

@media (max-width: 1199.98px) {
    .travaux-block-annuel .travaux-line-main {
        grid-template-columns: minmax(0, 1fr);
    }

    .travaux-block-annuel .travaux-line-progress {
        border-top: 1px solid #d9e8ee;
        border-left: 0;
    }
}

@media (max-width: 575.98px) {
    .travaux-block-annuel .travaux-line-description,
    .travaux-block-annuel .travaux-line-progress {
        padding: 0.75rem;
    }

    .travaux-block-annuel .travaux-line-key-data {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .travaux-block-annuel .travaux-line-progress-fields,
    .travaux-block-annuel .travaux-line-details-content {
        grid-template-columns: minmax(0, 1fr);
    }

    .travaux-block-annuel .travaux-line-details summary {
        justify-content: space-between;
        padding: 0.6rem 0.75rem;
    }
}

.annual-24h-summary-form {
    border: 1px solid #cfe1e9;
    border-radius: 0.5rem;
    padding: 0.8rem;
    background: #f8fcfd;
}

.annual-24h-summary-form-title {
    margin-bottom: 0.65rem;
    color: #16465b;
    font-weight: 700;
}

.annual-24h-summary-table {
    margin-bottom: 0;
}

.annual-24h-summary-table th {
    background: #edf7fa;
    font-weight: 700;
}

.annual-24h-summary-entry + .annual-24h-summary-entry {
    margin-top: 0.9rem;
}

.annual-24h-summary-entry-title {
    padding: 0.35rem 0.5rem;
    background: #e5f4f8;
    font-weight: 700;
}

.annual-24h-summary-empty {
    margin: 0;
    color: #617784;
}

.previous-24h-summary-form {
    border: 1px solid #cfe1e9;
    border-radius: 0.5rem;
    padding: 0.8rem;
    background: #f8fcfd;
}

.previous-24h-summary-form-title {
    margin-bottom: 0.65rem;
    color: #16465b;
    font-weight: 700;
    text-align: center;
}

.previous-24h-summary-table {
    min-width: 760px;
    margin-bottom: 0;
}

.previous-24h-summary-table th,
.previous-24h-summary-table td {
    text-align: center;
    vertical-align: middle;
    white-space: nowrap;
}

.previous-24h-summary-table thead th {
    background: #edf7fa;
    font-weight: 700;
}

.previous-24h-summary-table .previous-24h-summary-label-cell {
    min-width: 235px;
    text-align: left;
    white-space: normal;
}

.previous-24h-summary-table .previous-24h-summary-average-cell {
    background: #eef1f3;
    font-weight: 700;
}

.previous-24h-summary-empty {
    margin: 0;
    color: #617784;
}

.previous-24h-summary-chart-form {
    border: 1px solid #cfe1e9;
    border-radius: 0.5rem;
    padding: 0.8rem;
    background: #f8fcfd;
}

.previous-24h-summary-chart-canvas-wrapper {
    position: relative;
    min-height: 420px;
}

.previous-24h-summary-chart-canvas-wrapper:empty {
    min-height: 0;
}

.previous-24h-summary-chart-empty {
    margin: 0;
    color: #617784;
}

@media (max-width: 767.98px) {
    .previous-24h-summary-chart-canvas-wrapper {
        min-height: 340px;
    }
}

.travaux-avancement-status-cell {
    min-width: 165px;
}

.travaux-avancement-comment-cell {
    min-width: 240px;
}

.travaux-avancement-comment {
    min-width: 220px;
    resize: vertical;
}

.travaux-avancement-inherited {
    display: block;
    margin-top: 0.25rem;
    color: #6c757d;
    font-size: 0.75rem;
}

/* Pages publiques des magic links collectivité */
.magic-link-shell {
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
}

.magic-link-shell-compact {
    max-width: 720px;
}

.magic-link-heading {
    padding-left: 1.1rem;
    border-left: 5px solid #0797b9;
}

.magic-link-heading h1 {
    margin-bottom: 0.4rem;
}

.magic-link-kicker {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    margin-bottom: 0.35rem;
    color: #087b97;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.magic-account-summary {
    margin-top: 1.75rem;
    padding: 1rem 1.1rem;
    border: 1px solid #cfe0e7;
    border-radius: 8px;
    background: #f3fafc;
}

.magic-account-summary-label {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    margin-bottom: 0.45rem;
    color: #1d5369;
    font-size: 0.82rem;
    font-weight: 700;
}

.magic-account-summary-label .fa {
    color: #0797b9;
}

.magic-account-contact-name {
    font-weight: 600;
}

.magic-account-collectivites {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
}

.magic-account-collectivite-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.65rem;
    border: 1px solid #b9dce7;
    border-radius: 999px;
    background: #e4f4f8;
    color: #175a70;
    font-size: 0.8rem;
    font-weight: 600;
}

.magic-account-form {
    margin-top: 1.75rem;
}

.magic-account-form-heading {
    margin-bottom: 0.75rem;
    padding-bottom: 0.65rem;
    border-bottom: 1px solid #dee6ea;
}

.magic-account-form-heading h2 {
    margin-bottom: 0.2rem;
    font-size: 1.2rem;
}

.magic-account-form-heading p {
    margin-bottom: 0;
    color: #6c757d;
    font-size: 0.9rem;
}

.magic-account-password-help {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    color: #5f6f78;
    font-size: 0.82rem;
}

.magic-account-password-help .fa {
    color: #0797b9;
}

.magic-link-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.85rem 1.25rem;
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid #dee6ea;
}

.magic-link-access-panel {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 1.75rem;
    padding: 1rem 1.1rem;
    border: 1px solid #cfe0e7;
    border-radius: 8px;
    background: #f3fafc;
}

.magic-link-access-icon {
    display: grid;
    flex: 0 0 3rem;
    width: 3rem;
    height: 3rem;
    place-items: center;
    border-radius: 8px;
    background: #dff2f7;
    color: #087b97;
    font-size: 1.15rem;
}

.magic-link-access-content h2 {
    margin-bottom: 0.2rem;
    color: #1d5369;
    font-size: 1rem;
}

.magic-link-access-content p {
    margin-bottom: 0;
    color: #5f6f78;
    font-size: 0.9rem;
}

.magic-link-security-note {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    color: #667984;
    font-size: 0.8rem;
}

.magic-link-security-note .fa {
    color: #0797b9;
}

@media (max-width: 575.98px) {
    .magic-link-heading {
        padding-left: 0.8rem;
    }

    .magic-account-summary {
        padding: 0.9rem;
    }

    .magic-link-actions {
        align-items: stretch;
    }

    .magic-link-actions .btn {
        width: 100%;
    }

    .magic-link-access-panel {
        align-items: flex-start;
        padding: 0.9rem;
    }
}

/* Affichage compact de la page des valeurs de référence. */
.reference-values-page .reference-values-information {
    margin-bottom: 0.7rem;
    padding: 0.55rem 0.75rem;
}

.reference-values-page .reference-values-filters {
    gap: 0.75rem;
    margin-bottom: 0.75rem;
    padding: 0.7rem 0.8rem;
}

.reference-values-page .reference-values-list {
    gap: 0.75rem;
}

.reference-values-page .reference-form-heading {
    align-items: center;
    padding: 0.55rem 0.7rem;
}

.reference-values-page .reference-form-title-block {
    gap: 0.5rem;
}

.reference-values-page .reference-form-icon {
    flex-basis: 1.65rem;
    width: 1.65rem;
    height: 1.65rem;
    font-size: 0.78rem;
}

.reference-values-page .reference-form-heading h2 {
    font-size: 0.9rem;
}

.reference-values-page .reference-values-table thead th {
    padding: 0.35rem 0.55rem;
    font-size: 0.68rem;
}

.reference-values-page .reference-values-table tbody th,
.reference-values-page .reference-values-table tbody td {
    padding: 0.35rem 0.55rem;
}

.reference-values-page .reference-field-group-heading th {
    padding: 0.3rem 0.55rem;
    font-size: 0.78rem;
}

.reference-values-page .reference-field-label {
    font-size: 0.8rem;
    line-height: 1.2;
}

.reference-values-page .reference-value-input {
    min-width: 105px;
    min-height: 2rem;
    padding: 0.25rem 0.45rem;
    font-size: 0.82rem;
    line-height: 1.25;
}

@media (min-width: 1400px) {
    .reference-values-page .reference-values-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        align-items: start;
    }
}

.swal2-popup.swal2-toast.app-toast-notification {
    width: min(32rem, calc(100vw - 2rem));
    padding: 0.8rem 1rem;
    overflow-x: hidden;
    border: 1px solid #d6e2e8;
    border-radius: 0.75rem;
    box-shadow: none;
}

.swal2-popup.swal2-toast.app-toast-notification .swal2-close {
    width: 1.75rem;
    height: 1.75rem;
    margin: 0 0 0 0.4rem;
    color: #667984;
    font-size: 1.5rem;
    line-height: 1;
}

.swal2-popup.swal2-toast.app-toast-notification .swal2-close:hover {
    color: #173b4c;
}

.swal2-popup.swal2-toast.app-toast-notification .swal2-title {
    min-width: 0;
    max-width: 100%;
    margin: 0.1rem 0;
    font-size: 0.95rem;
    line-height: 1.35;
    overflow-wrap: anywhere;
    word-break: break-word;
    text-align: left;
}

.swal2-popup.swal2-toast.app-toast-notification .swal2-html-container {
    min-width: 0;
    max-width: 100%;
    margin: 0.35rem 0 0;
    overflow-x: hidden;
    font-size: 0.85rem;
    line-height: 1.35;
    overflow-wrap: anywhere;
    word-break: break-word;
    text-align: left;
}

.app-toast-message-list {
    min-width: 0;
    max-width: 100%;
    margin: 0;
    padding-left: 1.15rem;
    box-sizing: border-box;
}

.app-toast-message-list li {
    max-width: 100%;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.app-toast-message-list li + li {
    margin-top: 0.2rem;
}

/* Navigation principale */
.app-navbar {
    --app-navbar-accent: #12a3c2;
    --app-navbar-background: #26343c;
    min-height: 4rem;
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.09);
    background: var(--app-navbar-background);
    box-shadow: 0 0.2rem 0.8rem rgba(16, 35, 44, 0.14);
}

.app-navbar-inner {
    gap: 0.7rem;
}

.app-navbar-brand {
    display: inline-flex;
    min-width: 6.5rem;
    min-height: 2.6rem;
    align-items: center;
    justify-content: flex-start;
    margin-right: 0;
    padding: 0;
    transition: opacity 150ms ease;
}

.app-navbar-brand:hover,
.app-navbar-brand:focus {
    opacity: 0.88;
}

.app-navbar-logo {
    display: block;
    width: auto;
    height: 2.4rem;
    max-width: 8.75rem;
    object-fit: contain;
}

.app-navbar-collapse {
    align-items: center;
    gap: 0.75rem;
}

.app-navbar .navbar-nav {
    align-items: center;
    gap: 0.15rem;
}

.app-navbar .nav-link {
    display: inline-flex;
    min-height: 2.5rem;
    align-items: center;
    gap: 0.45rem;
    padding: 0.5rem 0.72rem !important;
    border-radius: 0.45rem;
    color: rgba(255, 255, 255, 0.76) !important;
    font-size: 0.9rem;
    font-weight: 600;
    line-height: 1.2;
    transition: background-color 150ms ease, color 150ms ease, box-shadow 150ms ease;
}

.app-navbar .nav-link:hover,
.app-navbar .nav-link:focus,
.app-navbar .dropdown.show > .nav-link {
    background: rgba(255, 255, 255, 0.08);
    color: #fff !important;
}

.app-navbar .nav-link.active-nav-tab {
    position: relative;
    background: transparent;
    color: #fff !important;
    font-weight: 700;
    text-decoration: none;
    box-shadow: none;
}

.app-navbar .nav-link.active-nav-tab::before {
    position: absolute;
    right: 0.72rem;
    bottom: 0.18rem;
    left: 0.72rem;
    height: 0.15rem;
    border-radius: 999px;
    background: var(--app-navbar-accent);
    content: "";
}

.app-navbar .nav-link.active-nav-tab:hover,
.app-navbar .nav-link.active-nav-tab:focus,
.app-navbar .dropdown.show > .nav-link.active-nav-tab {
    background: rgba(255, 255, 255, 0.06);
    color: #fff !important;
}

.app-navbar .nav-link:focus-visible,
.app-navbar-toggler:focus-visible {
    outline: 2px solid rgba(102, 217, 239, 0.9);
    outline-offset: 2px;
    box-shadow: none;
}

.app-navbar .dropdown-toggle::after {
    margin-left: 0.15rem;
    border-width: 0.28em 0.28em 0;
    opacity: 0.72;
}

.app-navbar .dropdown-menu {
    min-width: 13.5rem;
    margin-top: 0.45rem;
    padding: 0.35rem;
    border: 1px solid #d9e3e7;
    border-radius: 0.6rem;
    background: #fff;
    box-shadow: 0 0.65rem 1.6rem rgba(23, 52, 65, 0.16);
}

.app-navbar .dropdown-item {
    padding: 0.52rem 0.68rem;
    border-radius: 0.38rem;
    color: #294b5b;
    font-size: 0.86rem;
    line-height: 1.25;
}

.app-navbar .dropdown-item:hover,
.app-navbar .dropdown-item:focus {
    background: #edf8fa;
    color: #087b97;
}

.app-navbar .dropdown-item:active {
    background: #0797b9;
    color: #fff;
}

.app-navbar-account {
    flex: 0 0 auto;
    margin-left: 0.25rem;
    padding-left: 0.75rem;
    border-left: 1px solid rgba(255, 255, 255, 0.14);
}

.app-navbar-account-link {
    white-space: nowrap;
}

.app-navbar-link-icon {
    width: 1rem;
    color: rgba(255, 255, 255, 0.58);
    font-size: 0.82rem;
    text-align: center;
    transition: color 150ms ease;
}

.app-navbar-account-link:hover .app-navbar-link-icon,
.app-navbar-account-link:focus .app-navbar-link-icon {
    color: var(--app-navbar-accent);
}

.app-navbar-account-link.active-nav-tab .app-navbar-link-icon {
    color: var(--app-navbar-accent);
}

.app-navbar-logout:hover,
.app-navbar-logout:focus {
    background: rgba(222, 89, 89, 0.12) !important;
}

.app-navbar-logout:hover .app-navbar-link-icon,
.app-navbar-logout:focus .app-navbar-link-icon {
    color: #ff9f9f;
}

.app-navbar-toggler {
    padding: 0.35rem 0.48rem;
    border-color: rgba(255, 255, 255, 0.22);
    border-radius: 0.45rem;
}

.app-navbar-toggler:hover {
    background: rgba(255, 255, 255, 0.07);
}

.app-navbar-toggler:focus {
    box-shadow: none;
}

@media (max-width: 1199.98px) and (min-width: 992px) {
    .app-navbar .nav-link {
        padding-right: 0.55rem !important;
        padding-left: 0.55rem !important;
        font-size: 0.84rem;
    }

    .app-navbar .nav-link.active-nav-tab::before {
        right: 0.55rem;
        left: 0.55rem;
    }

}

@media (max-width: 991.98px) {
    .app-navbar-inner {
        gap: 0;
    }

    .app-navbar-collapse {
        width: 100%;
        margin-top: 0.45rem;
        padding: 0.6rem;
        border: 1px solid rgba(255, 255, 255, 0.08);
        border-radius: 0.6rem;
        background: rgba(10, 26, 34, 0.22);
    }

    .app-navbar .navbar-nav {
        width: 100%;
        align-items: stretch;
        gap: 0.15rem;
    }

    .app-navbar .nav-link {
        display: flex;
        width: 100%;
    }

    .app-navbar .dropdown-menu {
        width: 100%;
        margin: 0.15rem 0 0.45rem;
        box-shadow: none;
    }

    .app-navbar-account {
        margin: 0.55rem 0 0;
        padding: 0.55rem 0 0;
        border-top: 1px solid rgba(255, 255, 255, 0.12);
        border-left: 0;
    }
}

/* Page de connexion */
.login-page {
    min-height: 100vh;
    padding: 0 20px !important;
    background: #f5f6f7;
}

.login-main {
    min-height: 100vh;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
}

.login-page-content {
    display: flex;
    min-height: 100vh;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
}

.login-card {
    width: min(100%, 30rem);
    overflow: hidden;
    border: 1px solid #d9e0e3;
    border-radius: 0.5rem;
    background: #fff;
    box-shadow: 0 0.35rem 1rem rgba(33, 37, 41, 0.08);
}

.login-card-header {
    display: flex;
    min-height: 8rem;
    align-items: center;
    justify-content: center;
    padding: 1.25rem 2rem;
    background: #343a40;
}

.login-card-logo {
    display: block;
    width: min(100%, 16rem);
    height: auto;
}

.login-card-name {
    color: #fff;
    font-size: 2rem;
    font-weight: 600;
}

.login-card-body {
    padding: 2rem;
}

.login-card-body h1 {
    margin-bottom: 0.35rem;
    font-size: 1.75rem;
}

.login-form .col-form-label {
    padding-top: 0;
}

.login-stay-connected {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #5f6f78;
}

.login-stay-connected .form-check-input {
    margin-top: 0;
}

.login-submit-button {
    width: 100%;
}

@media (max-width: 575.98px) {
    .app-navbar-logo {
        height: 2.2rem;
    }

    .login-page-content {
        min-height: auto;
        align-items: flex-start;
        padding: 1rem 0 2rem;
    }

    .login-card-header {
        min-height: 6.5rem;
        padding: 1rem 1.5rem;
    }

    .login-card-logo {
        width: min(100%, 13rem);
    }

    .login-card-body {
        padding: 1.5rem;
    }
}
