:root {
    /* main colors */
    --main-bg-color: #ffffff;
    --main-text-color: #080808;
    --second-text-color: #030303;
    --third-text-color: #888;

    --second-bg-color: #ffffff;

    /* alerts */
    --alert-red-color: #eb0202;
    --alert-orange-color: #ffa41b;
    --alert-green-color: #44a849;
    --alert-black-color: #222222;
    --alert-pink-color: #e800ff;
    --alert-blue-color: #2369a4;
    --alert-lightgrey-color: #c4c4c4;

    /* link */
    --link-color-base: #080808;
    --link-color-active: #080808;
    --link-color-visited: #080808;

    /* nav-bar */
    --nav-bar-height: 80px;

    /* side-bar */
    --side-bar-width: 300px;
    --side-bar-item-height: 40px;

    /* borders */
    --light-border-width: 1px;
    --border-light-grey: #ccc;
    --strong-border-width: 3px;
    --border-critical: #eb0202;
    --border-warning: #ffa41b;

    --nb-results-width: 30px;
    --nb-results-border-color: lightgrey;
    --nb-results-normal: #0099ff;
    --nb-results-selected: #007bff;

    --status-bar-width: 300px;
    --status-bar-success: #70c87c;
    --status-bar-error: #f38172;

    --shadow-x-offset: 3px;

    --submit-btn-colour: #3b82f6;

    /* --field-bg-color: #ebf1f7; */
    /* --field-bg-color: #e9e9ed; */
    --field-bg-color: #efefef;
}

/* html {
} */

html,
body {
    margin: 0;
    padding: 0;
    height: 100%;
    /* Éventuellement overflow-y: auto; ou visible; */
    overflow-x: hidden;
    overflow-y: auto;
}

/* body {
} */

img,
svg {
    vertical-align: middle;
}

:root {
    --bs-body-font-family:
        "Plus Jakarta Sans", "Red Hat Display", "Helvetica", "Arial", sans-serif;
    --bs-body-font-weight: 500;
}

/* .form-group input[type="text"],
.form-group input[type="number"],
.form-group input[type="email"],
.form-group input[type="password"], */
.form-group input[type="file"],
.custom-file-upload,
.form-group select {
    background-color: var(--field-bg-color);
    /* -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none; */
}

*,
::after,
::before {
    box-sizing: border-box;
}

body {
    font-family: var(--bs-body-font-family);
    font-weight: var(--bs-body-font-weight);
    font-size: 1.02rem;
    margin: 0;
    padding: 0;
    /* overflow: hidden; */
}

a {
    text-decoration: none;
    color: var(--link-color-base);
}

a:hover {
    text-shadow: #999 1px 0 2px;
}

button {
    margin: 0px !important;
    line-height: normal !important;
}

.active-text {
    font-weight: bold;
    text-shadow: #999 1px 0 2px;
}

/* login page */
/* #login-container {
	display: flex;
	align-items: center;
	justify-content: center;
	flex-direction: column;
	height: 100vh;
}

#login-logo img {
	max-width: 500px;
	margin-bottom: 50px;
}

#login-form {
	display: flex;
	align-items: center;
	justify-content: center;
	flex-direction: column;
}

#login-form div {
	height: 50px;
} */
/* /login page */

/* map page */

/* Échelle minimaliste */
.scale-google {
    padding: 0 0 0.25rem 1rem;
}

.scale-google-label {
    font-size: 11px;
    color: #000;
    text-shadow:
        1px 1px 2px #fff,
        -1px -1px 2px #fff,
        1px -1px 2px #fff,
        -1px 1px 2px #fff;
    margin-bottom: 2px;
    text-align: center;
}

.scale-google-bar {
    height: 2px;
    background: #000;
    box-shadow: 0 0 2px #fff;
    position: relative;
}

.scale-google-bar::before,
.scale-google-bar::after {
    content: "";
    position: absolute;
    top: -4px;
    width: 2px;
    height: 10px;
    background: #000;
    box-shadow: 0 0 2px #fff;
}

.scale-google-bar::before {
    left: 0;
}

.scale-google-bar::after {
    right: 0;
}
/*.leaflet-layer,
.leaflet-control-zoom-in,
.leaflet-control-zoom-out,
.leaflet-control-attribution {
	filter: invert(100%) hue-rotate(180deg) brightness(95%) contrast(90%);
}
.leaflet-container {
	background: #000
}*

/* #map {
	width: calc(100vw - var(--side-bar-width) - 1px);
	height: calc(100vh - var(--nav-bar-height) - 1px);
} */

/* #map {
	width: 90%;
	height: 90%;
	margin: 0;
	padding: 0;
} */

#map {
    width: calc(100vw - var(--side-bar-width) - 1px);
    height: calc(100vh - var(--nav-bar-height) - 1px);
}

/*
#map {
	width: calc(100% - var(--side-bar-width) - 1px);
	height: calc(100% - var(--nav-bar-height) - 1px);
} */

#detail-bar {
    position: fixed;
    bottom: 0;
    z-index: 99999;
    left: 0px;
    width: 100%;
    height: 0px;
    background-color: #ffffff;
    padding: 0px 10px;
    box-shadow: 2px -4px 4px #888;
}

#close-detail-bar {
    margin: 15px;
    text-align: center;
    width: 100%;
}

#close-detail-bar i:hover {
    cursor: pointer;
    background-color: #ccc;
}
/* /map page */

/* admin page */
#nav-bar {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    height: var(--nav-bar-height);
    border-bottom: var(--light-border-width) solid var(--border-light-grey);
}

.nav-bar.not-connected {
    border: none !important;
    margin: 2rem 4rem;
}

.nav-bar.not-connected div {
    border: none !important;
}

/* .nav-bar.not-connected {
	align-items: center !important;
} */

.errorlist.nonfield {
    display: none !important;
}

#logo {
    align-self: flex-start;
    display: flex;
    align-items: center;
    border-inline-end: var(--light-border-width) solid var(--border-light-grey);
    width: var(--side-bar-width);
    height: var(--nav-bar-height);
}

#logo img {
    width: 80%;
    margin: auto;
    /* padding: 5px 0 3px 0; */
}

#logo.logo-phebus img {
    padding: 9px 0 6px 0;
}

#nav-bar-menu {
    margin-inline-end: 30px;
    display: flex;
    align-items: center;
}

#nav-bar-menu div {
    text-align: center;
    width: fit-content;
    white-space: nowrap;
    overflow: hidden;
}

.header-adjustement {
    margin: 3px 15px 0px 15px !important;
}

.header-adjustement i {
    margin-inline-end: 5px;
}

#nav-bar-menu a,
.map-section-title {
    text-decoration: none;
    color: var(--link-color-base);
}

#nav-bar-menu.open {
    position: absolute;
    top: 5px;
    inset-inline-end: 5px;
    display: block;
    padding: 0.5rem;
    border: 1px solid #000;
    border-radius: 4px;
    background-color: white;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    z-index: 1010;
}

#nav-bar-menu.open a,
#nav-bar-menu.open select {
    color: rgb(0, 0, 0);
    text-decoration: none;
}

#nav-bar-menu.open div {
    position: relative;
    inset-inline-start: 0;
    width: 100%;
    padding: 0 !important;
    margin: 0 !important;
    flex-direction: column;
    text-align: start;
}

#nav-bar-menu.open a {
    padding: 0 !important;
    margin: 0 !important;
}

#nav-bar-menu.open select {
    background: #ffffff;
    color: rgb(0, 0, 0);
    font-size: 1rem;
    outline: none;
    cursor: pointer;
    width: 100%;
    appearance: auto;
}

.page-content.administration {
    padding: 0 !important;
    margin: 0 !important;
}

.page-content.base {
    overflow-y: auto;
}

#side-bar {
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
    width: var(--side-bar-width) !important;
    height: calc(100vh - var(--nav-bar-height));
    border-inline-end: var(--light-border-width) solid var(--border-light-grey);
    overflow-y: auto;
    overflow-x: hidden;
    transition: margin-inline-start 0.3s ease;

    /* justify-content: space-between; */
}

#side-bar.open {
    margin-inline-start: 0;
}

#side-bar .side-bar-header,
#side-bar .side-bar-item {
    display: flex;
    align-items: center;
    height: var(--side-bar-item-height);
}

#side-bar .side-bar-item a,
.map-section-title {
    text-decoration: none;
    color: var(--link-color-base);
    display: flex;
    flex-direction: row;
    align-items: center;
    margin-inline-start: 20px;
}

#side-bar .side-bar-item a i {
    margin-inline-end: 10px;
}

#side-bar .side-bar-header {
    color: var(--third-text-color);
    padding-inline-start: 15px;
    border-top: var(--light-border-width) solid var(--border-light-grey);
}

#side-bar .side-bar-header i,
#side-bar .side-bar-item i {
    margin-inline-end: 10px;
}

[dir="rtl"] .map-link-navbar.map.visualisation a i {
    margin-right: 0px !important;
    margin-left: 10px !important;
}

.leaflet-popup-content {
    padding-top: 3px;
}

[dir="rtl"] .leaflet-popup-content {
    direction: rtl;
    text-align: right;
}

[dir="rtl"] .leaflet-popup-content b {
    /* display: inline-block !important; */
    margin-left: 5px !important;
}

[dir="rtl"] .all-good-response,
[dir="rtl"] .waiting-response {
    display: block !important;
    text-align: right !important;
}

[dir="rtl"] .popup-content-wrapper {
    text-align: right !important;
}

[dir="rtl"] .popup-content-wrapper > div {
    margin-bottom: 5px !important;
    display: block !important;
    width: 100% !important;
}

[dir="rtl"] .popup-content-wrapper b {
    margin-left: 5px !important;
}

[dir="rtl"] .coordinates b:not(:first-child) {
    margin-right: 10px !important;
}

#side-bar .side-bar-active,
.map-link-navbar.map.visualisation {
    font-weight: bold;
    text-shadow: #999 1px 0 2px;
    border-inline-start: 5px solid black;
    margin-inline-start: 4px;
}

#side-bar .side-bar-active i {
    margin-inline-start: -9px; /* 4px margin + 5px border */
}

.side-bar-toggle {
    position: absolute;
    top: var(--nav-bar-height) / 2;
    inset-inline-start: 2%;
    display: none;
}

.badge {
    padding: 2px 4px;
    border-radius: 4px;
    margin-inline-start: 5px;
    margin-top: 1px;
    font-size: 0.7rem;
    color: #fff;
}

.alert-red {
    background-color: var(--alert-red-color);
}

.alert-orange {
    background-color: var(--alert-orange-color);
}

.alert-green {
    background-color: var(--alert-green-color);
}

.alert-black {
    background-color: var(--alert-black-color);
}

.alert-pink {
    background-color: var(--alert-pink-color);
}

.alert-blue {
    background-color: var(--alert-blue-color);
}

.alert-neutral {
    background-color: var(--alert-lightgrey-color);
}

#content {
    display: flex;
    flex-direction: row;
    /* width: ; */
    /* position: relative; */
}

#page-content {
    display: flex;
    flex-direction: column;
    padding: 30px;
    width: calc(100vw - var(--side-bar-width) - 1px);
    /* width: calc(100vw - var(--side-bar-width) - 60px - 1px); */
    height: calc(100vh - var(--nav-bar-height));
}

#page-content .page-content-title {
    margin-top: 0;
}

#page-content .page-content-tiles-container {
    display: flex;
    flex-wrap: wrap;
    flex-direction: row;
    justify-content: space-between;
}

/* flex-shrink: 1; */
/*.side-bar-item.map-weather {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}*/

.side-bar-item.map-weather {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.25rem; /* optionnel */
}

/* bloc gauche : icône + texte */
.side-bar-item.map-weather > div:first-child {
    display: flex;
    align-items: center;
    min-width: 0; /* important pour que ellipsis marche dans un flex */
}

/* texte de la zone : coupe proprement sans pousser le bouton */
.side-bar-item.map-weather > div:first-child span {
    max-width: 9rem; /* ajuste selon ton design */
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* bloc de droite : label + bouton, pas compressé */
.reverse-meteo {
    display: flex;
    flex-direction: row-reverse;
    align-items: center;
    flex-shrink: 0; /* le bouton ne se fait pas écraser */
}

/* .side-bar-item.map-weather span {
	overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
} */

/* masque l'input natif */
.hidden-file-input {
    display: none;
}

/* style identique à vos <select> et <input type="text"> */
.custom-file-upload {
    display: inline-block;
    align-items: center;
    /* width: 100%; */
    flex: 0 0 auto;
    white-space: nowrap;
    cursor: pointer;
    height: 2.5rem;
    padding: 0.5rem 1rem;
    /* padding: 0.5rem; */
    font-family: inherit;
    font-size: 1rem;
    line-height: 1.5rem;
    color: #000;
    /* background-color: #e9e9ed; */
    border: 1px solid #d1d5db;
    border-radius: 0.375rem;
    cursor: pointer;
    text-align: left;
    user-select: none;
}

.file-name {
    margin-left: 0.5rem;
    font-style: italic;
    color: #6b7280;
}

/* 1) conteneur global vertical (pour le label général + le champs) */
.file-input-wrapper {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

/* 2) conteneur horizontal pour le bouton + le nom */
.file-input-inner {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

/* bouton inchangé */
.custom-file-upload {
    /* ... votre style existant ... */
    white-space: nowrap;
}

/* 3) le span prend tout l’espace restant et aligne le texte à droite */
.file-name {
    flex: 1;
    text-align: right;
    font-style: italic;
    color: var(--third-text-color);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* pour être sûr que l’input natif ne gène pas */
.hidden-file-input {
    display: none;
}

/* cache l’input sans le retirer de l’accessibilité */
/* .visually-hidden-file {
    position: absolute;
    width: 0;
    height: 0;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    border: 0;
} */

.input-hidden {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    border: 0 !important;
}

.file-upload-field {
    display: flex !important;
    align-items: center;
    justify-content: space-between; /* ✅ Sépare le bouton et le nom */
    width: 100%;
    height: 2.5rem;
    border: 1px solid #d1d5db;
    border-radius: 0.375rem;
    background-color: var(--field-bg-color);
    padding: 0.5rem 1rem !important; /* un padding horizontal uniforme */
    cursor: pointer;
    transition: border-color 0.2s;
}

/* .file-upload-field:hover {
  border-color: #999;
} */

.file-upload-button {
    flex-shrink: 0;
    color: var(--main-text-color);
    font-weight: 500;
    margin-right: 1rem;
    white-space: nowrap;
}

.file-upload-name {
    flex-grow: 1;
    text-align: right;
    font-style: italic;
    color: var(--third-text-color);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* conteneur horizontal : bouton + zone nom = un seul composant */
.input-file-combo {
    display: flex;
    width: 100%;
    /* height: 2.5rem; */
}

/* bouton à gauche : bord gauche arrondi, pas de bordure droite */
.custom-file-btn {
    display: flex;
    align-items: center;
    padding: 0 1rem;
    background-color: var(--field-bg-color);
    border: 1px solid #d1d5db;
    border-right: none;
    border-radius: 0.375rem 0 0 0.375rem;
    font-weight: 500;
    gap: 0.5rem;
}

.file-name-display {
    flex: 1;
    padding: 0 1rem;
    background-color: var(--field-bg-color);
    border: 1px solid #d1d5db;
    border-left: none;
    border-radius: 0 0.375rem 0.375rem 0;
    font-style: italic;
    color: var(--third-text-color);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    height: 2.5rem;
    display: flex;
    align-items: center;
}

.full-clickable-label {
    cursor: pointer;
}

/* zone nom de fichier : prend tout le reste, bord droit arrondi */
/* .file-name-display {
    flex: 1;
	height: 2.5rem;
	padding: 0.5rem 1rem;
    border: 1px solid #d1d5db;
    border-left: 0;
    border-radius: 0 .375rem .375rem 0;
    background: var(--field-bg-color);
    font-style: italic;
    color: var(--third-text-color);
    overflow: hidden;
    text-overflow: ellipsis;
    text-align: right;
    white-space: nowrap;
} */

/* survol léger pour le confort visuel */
/* .custom-file-btn:hover,
.file-name-display:hover {
    background: rgba(0,0,0,.03);
} */

.form-group.otp-token {
    margin-top: 1.2rem;
}

#page-content .tile-xs {
    width: 12.5%;
}

#page-content .tile-s {
    width: 20%;
}

#page-content .tile-m {
    width: 25%;
}

#page-content .tile-l {
    width: 45%;
}

#page-content .tile-full {
    width: 100%;
}

#page-content .page-content-tile {
    margin: 10px;
    padding: 10px;
    border: var(--light-border-width) solid var(--border-light-grey);
    border-radius: 3px;
}

#page-content .page-content-critical-alert {
    border: var(--strong-border-width) solid var(--border-critical);
}

#page-content .page-content-warning-alert {
    border: var(--strong-border-width) solid var(--border-warning);
}

h4 {
    width: 100%;
    text-align: center;
    margin: 0px;
    margin-bottom: 10px;
    padding: 0;
    padding-bottom: 5px;
    border-bottom: var(--light-border-width) solid var(--border-light-grey);
}

.visualiation.side-bar {
    scroll-behavior: auto !important;
}

#page-content .stat-indicator {
    display: flex;
    align-items: center;
    justify-content: space-around;
}

#page-content .stat-indicator i {
    font-size: 40px;
    padding: 10px;
    border: var(--light-border-width) solid var(--border-light-grey);
    border-radius: 100%;
}

#page-content .stat-indicator span {
    font-size: 20px;
}
/* /admin page */

div .leaflet-popup-content {
    margin: 13px 21px;
}

/* user menu */
#user-menu {
    display: flex !important;
    justify-content: space-between;
    margin: 0 !important;
    padding-inline-start: 15px !important;
}

.user-menu-toggle {
    position: absolute;
    top: var(--nav-bar-height) / 2;
    inset-inline-end: 2%;
    display: none;
}

/* / user menu */

/* login */
#login-content {
    display: flex;
    flex-direction: column;
    width: 100%;
    min-height: 64%;
    /* justify-content: center; */
    align-items: center;
    margin-top: 6rem;
}

.login-container {
    display: flex;
    flex-direction: column;
    width: 50% !important;
    justify-content: center;
    align-items: center;
    padding: 1rem 2rem;
}

.login-container h2 {
    text-align: center;
    margin: 0 0 2.5rem 0;
    width: auto;
}

.login-container .form-group {
    margin-bottom: 1rem;
    width: auto;
}

.login-container p {
    display: flex !important;
    flex-direction: column !important;
    justify-content: start !important;
    align-items: start !important;
    text-align: start;
}

.login-container form {
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    align-items: center !important;
    text-align: start;
    row-gap: 1.3rem !important;
    margin-top: 0.7rem;
}

.login-container label {
    display: block;
    margin-bottom: 0.5rem;
    width: auto;
}

.login-container input {
    /* width: 100%; */
    padding: 0.5rem;
    border: 1px solid #ccc;
    border-radius: 0.25rem;
}

.login-container .btn-login {
    /* width: 100%; */
    min-width: 55%;
    padding: 0.75rem;
    margin-top: 1.1rem !important;
    background-color: #fff;
    border: 1px solid var(--submit-btn-colour) !important;
    color: var(--submit-btn-colour);
    border: none;
    border-radius: 0.375rem;
    cursor: pointer;
}

.login-container .btn-login:hover {
    background-color: rgba(59, 130, 246, 0.3);
}

.password-reset-link,
.error-login {
    margin-top: 1.5rem;
}

.error-login {
    /* color: #ef4444; */
    color: red;
    text-align: center;
}

.login-password-visibility {
    position: absolute;
    top: 50%;
    inset-inline-end: 10px;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
}

.show-icon {
    display: block;
}

/*  /login */

/* user profile */

.user-profile-container {
    width: 90%;
    margin: 0 auto;
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    /* font-family: Arial, sans-serif; */
    color: #333;
}

.user-profile-container h2 {
    font-size: 1.5rem;
    color: #555;
    margin-bottom: 20px;
    text-align: center;
}

.profile-details {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.profile-detail {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 15px;
    border-radius: 5px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.profile-detail .label {
    font-weight: bold;
    color: #444;
    flex: 2;
    text-align: start;
    margin-inline-end: 10px;
}

.profile-detail .value {
    flex: 3;
    color: #666;
    word-wrap: break-word;
    text-align: start;
}

/* / user pofile */

/* forms */

.create-new-section {
    display: flex;
    justify-content: center;
    width: 100%;
}

#create-new-form {
    width: 100%;
}

.form-main {
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
}

.form-title-container {
    margin-bottom: 2rem;
}

.form-title {
    text-align: center;
}

.form-section {
    display: flex;
    justify-content: center;
    width: 100%;
}

.item-form {
    width: 100%;
}

.form-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    width: 100%;
    margin-bottom: 20px;
    gap: 10px;
    grid-auto-flow: dense;
    padding-bottom: 20px;
}

.form-group {
    min-width: 350px;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #374151;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="password"],
.form-group input[type="number"],
.form-group input[type="file"],
.form-group select {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid #d1d5db;
    border-radius: 0.375rem;
    height: 2.5rem;
    box-sizing: border-box;
    transition:
        border-color 0.2s,
        box-shadow 0.2s;
}

.form-group input[type="text"]:focus,
.form-group input[type="number"]:focus,
.form-group input[type="email"]:focus,
.form-group input[type="password"]:focus,
.form-group input[type="file"]:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--submit-btn-colour);
    box-shadow: 0 0 5px rgba(0, 123, 255, 0.4);
}

.hide-icon {
    display: none;
}

.password-container {
    position: relative;
}

.toggle-password {
    position: absolute;
    inset-inline-end: 0.625rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    color: #666;
    outline: none;
}

.toggle-password:focus {
    outline: none;
}

/* /forms */

/* sumbit buttons */

.btn-submit-container {
    display: flex;
    justify-content: center;
    margin-top: -0.9rem;
    margin-bottom: 1rem;
}

.btn-submit {
    width: fit-content;
    padding: 0.5rem 1.2rem;
    font-size: 16px;
    font-weight: 500;
    background-color: var(--submit-btn-colour);
    color: white;
    border: none;
    cursor: pointer;
    border-radius: 5px;
    outline: none;
    text-decoration: none;
    white-space: nowrap;
    display: inline-block;
    text-align: center;
}

.btn-submit:hover {
    background-color: #0056b3;
    align-self: center;
}

.btn-submit:focus {
    background-color: #0056b3;
    align-self: center;
}

.btn-create-new i {
    font-size: 18px;
    font-weight: bold;
}

/* / subtmit buttons */

#administrative-entity-group {
    display: none;
}

.error-message {
    color: red;
    font-size: 0.83rem;
    margin: 0.5rem 0.25rem;
    line-height: 1rem;
}

.main-container {
    position: relative;

    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.create-button-container {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 20px;
}

/* filters */

.filter-form {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    width: 100%;
    margin-bottom: 20px;
    gap: 10px;
    grid-auto-flow: dense;
}

.filters-title {
    font-size: 18px;
    display: inline-block;
    margin: 0;
}

.filter-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 10px 0px;
}

.filter-form-group {
    min-width: 350px;
}

.filter-form-group label {
    display: block;
    font-weight: bold;
    margin-bottom: 5px;
}

.filter-form-group input[type="text"],
.filter-form-group input[type="number"],
.filter-form-group input[type="email"],
.filter-form-group input[type="password"],
.filter-form-group input[type="date"],
.filter-form-group input[type="datetime-local"],
.filter-form-group select {
    width: 100%;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
    height: 26px;
}

.filter-form-group input[type="text"]:focus,
.filter-form-group input[type="number"]:focus,
.filter-form-group input[type="email"]:focus,
.filter-form-group input[type="password"]:focus,
.filter-form-group input[type="date"]:focus,
.filter-form-group input[type="datetime-local"]:focus,
.filter-form-group select:focus {
    outline: none;
    border-color: var(--submit-btn-colour);
    box-shadow: 0 0 5px rgba(0, 123, 255, 0.4);
}

.filter-btn-submit-container {
    display: flex;
    flex-direction: row;
    justify-self: flex-end;
    align-self: flex-end;
    height: 40px;

    gap: 10px;
    width: 100%;

    grid-column-start: -2; /* alligner à droite */
}

.filter-btn-submit-container button,
.filter-btn-submit-container a {
    width: 100%;
}

/* /filters */

.toggle-icon {
    font-size: 24px;
    cursor: pointer;
    margin-inline-start: 10px;
    vertical-align: middle;
}

.hidden {
    display: none !important;
}

/* data tables*/

.data-table-main {
    width: 100%;
    background-color: white;
    border-radius: 0.5rem;
}

.table-container {
    width: 100%;
    overflow-x: auto;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 1000px;
}

.data-table th,
.data-table td {
    text-align: start;
    border-bottom: 1px solid #e5e7eb;
    font-size: 0.7rem;
    width: fit-content;
    white-space: nowrap;
    padding-inline-end: 15px;
}

.data-table th:last-child,
.data-table td:last-child {
    width: 150px;
    text-align: center;
}

.data-table th {
    background-color: #f9fafb;
    font-weight: 500;
    color: #374151;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.data-table th.clickable-header {
    cursor: pointer;
    user-select: none;
    transition: background-color 0.2s ease;
}

.data-table th.clickable-header:hover {
    background-color: #e5e7eb;
}

.data-table tbody tr:hover {
    background-color: #f9fafb;
}

.data-table td {
    color: #4b5563;
}

/* /data tables */

/* icons */

.delete-button {
    background: none;
    border: none;
}

.action-icon {
    cursor: pointer;
    /* padding: 0.5rem; */
    margin: 0.55rem 0.2rem;
    border-radius: 0.25rem;
    transition: background-color 0.2s;
}

.icon-vstr {
    cursor: pointer;
    padding: 0rem;
    border-radius: 0.25rem;
    transition: background-color 0.2s;
}

.edit-icon {
    color: var(--submit-btn-colour);
}

.delete-icon {
    color: #ef4444;
}

.view-icon {
    color: var(--submit-btn-colour);
}

.action-icon:hover {
    background-color: #f3f4f6;
}

/* /icons */

#administrative-entity-group {
    display: none;
}

/* buttons */

.btn-save,
.btn-delete,
.btn-cancel {
    padding: 0.75rem 1.5rem;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
    border: none;
}

.btn-save {
    background-color: var(--submit-btn-colour);
    color: white;
}

.btn-delete {
    background-color: #ef4444;
    color: white;
}

.btn-cancel {
    background-color: #6b7280;
    color: white;
}

.action-btn {
    background: none;
    border: none;
    padding: 0;
    margin: 0;
    cursor: pointer;
    display: inline;
}

.btn-vsrt {
    background: none;
    border: none;
    padding: 0;
    margin: 0;
    cursor: pointer;
    display: inline;
    /* width: 100%;
	height: inherit; */
    /* height: calc(.action-btn.height); */
}

.action-btn:focus {
    outline: none;
}

/* /buttons */

/* modals */

.modal {
    display: none;
    justify-content: center;
    align-items: center;
    position: fixed;
    top: 0;
    inset-inline-start: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
}

.modal-content {
    position: relative;
    background-color: white;
    padding: 2rem;
    border-radius: 0.5rem;
    width: 90%;
    max-width: 600px;
    margin: auto;
    box-shadow:
        0 4px 6px -1px rgba(0, 0, 0, 0.1),
        0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.close-modal {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #6b7280;
}

.modal-footer {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 1.5rem;
}

/* / modals */

/* map modals */

.map-modal {
    display: none;
    position: fixed;
    z-index: 1055;
    left: 0;
    top: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    /* outline: 0; */
    background-color: rgba(0, 0, 0, 0.5); /* Background overlay */
}

.modal.show .map-modal-dialog {
    transform: none;
}

.modal.fade .map-modal-dialog {
    transition: transform 0.3s ease-out;
    transform: translate(0, 7.05rem);
}

.modal-backdrop.show {
    display: none;
}

.modal .map-modal-dialog {
    max-width: none;
    position: relative;
    top: 0;
    bottom: 0;
    margin: auto;
    pointer-events: none;
    width: 68vw;
    height: 50vw !important;
    /* border-radius: 15px !important; */
}

div .modal.fade.show {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* div .modal-dialog.map-modal-dialog {
	height: 100%;
} */

.map-modal-dialog-centered {
    display: flex;
    align-items: center;
    min-height: calc(100% - 1rem);
}
/* Modal Content */
.map-modal-content {
    position: relative;
    display: flex;
    flex-direction: column;
    width: 100%;
    pointer-events: auto;
    background-color: #fff;
    border-radius: 10px !important;
}

/* Modal Header */
.map-modal-header {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding: 1rem;
}

.btn-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    z-index: 1500;
}

.map-modal-title {
    margin-bottom: 0;
    font-size: 1.25rem;
    font-weight: 500;
}

.map-modal-map {
    height: 70vh;
    width: 100%;
    border-radius: 10px !important;
}

/* / map modals */

/* pagination */

.pagination-main {
    display: flex;
    flex-flow: row;
    justify-content: space-between;
    margin-top: 10px;
}

.pagination {
    align-items: center;
}

.pagination a {
    padding: 4px 10px;
    margin: 0 1px;
    border: 1px solid #ddd;
    text-decoration: none;
    width: var(--nb-results-width);
}

.pagination .current {
    padding: 4px 10px;
    margin: 0 1px;
    border: 1px solid #ddd;
    background-color: #f0f0f0;
}

[dir="rtl"] .pagination span a i {
    transform: rotate(180deg);
}

#nb-results {
    display: flex;
    align-items: center;
    gap: 2px;
}

#nb-results span {
    margin-inline-end: 10px;
}

#nb-results input {
    display: none;
}

#nb-results label {
    cursor: pointer;
    width: var(--nb-results-width);
    text-align: center;
    padding: 2px;
    border: 1px solid var(--nb-results-border-color);
    border-radius: 4px;
    background-color: var(--nb-results-normal);
    color: white;
}

#nb-results input[type="radio"]:checked + label {
    background-color: var(--nb-results-selected);
}

/* / pagination */

.button-container-centered {
    display: flex;
    justify-content: center;
    margin-top: 1.5rem;
}

.btn-action {
    padding: 0.6rem 1.2rem;
    font-size: 1rem;
    border-radius: 5px;
    background-color: #007bff;
    color: white;
    border: none;
    cursor: pointer;
}
.btn-action:hover {
    background-color: #0056b3;
}

#status-bar {
    position: absolute;
    top: 100px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 9999;
    padding: 10px 20px;
    color: white;
    text-align: center;
    border-radius: 8px;
    display: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    pointer-events: none;
    max-width: 40vw;
}

@media (min-width: 768px) {
    #page-content {
        position: relative;
    }

    #status-bar {
        position: absolute;
        top: 5rem;
        left: 50%;
    }

    #exportExcelModal .modal-dialog {
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        margin: 0 !important;
    }

    #exportExcelModal .modal-dialog {
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        margin: 0;
    }

    /* Centrage basé sur le container visible */
    .modal-backdrop {
        position: absolute !important;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0, 0, 0, 0.5) !important;
    }
}

@media (max-width: 767px) {
    #exportExcelModal,
    button[data-bs-target="#exportExcelModal"] {
        display: none !important;
    }
}

#exportExcelModal .modal-dialog {
    width: 100%;
    max-width: 35rem;
    min-height: 35rem;
}

/* meteo */
.meteo {
    display: flex;
    flex-direction: column;
    color: black;
    border-top: var(--light-border-width) solid var(--border-light-grey);
}

.meteo-title {
    margin-inline-start: 20px;
}

[dir="rtl"] .meteo-title {
    margin-left: 0px;
    margin-right: 20px;
}

[dir="rtl"] .meteo .side-bar-item {
    margin-left: 0px;
    margin-right: 20px;
}

.meteo .side-bar-item i {
    margin-right: 10px;
}

[dir="rtl"] .meteo .side-bar-item i {
    margin-right: 0px;
    margin-left: 10px;
}

.meteo .side-bar-item {
    text-decoration: none;
    color: var(--link-color-base);
    display: flex;
    flex-direction: row;
    align-items: center;
    /* margin-left: 20px; */

    justify-content: space-between;
}

.meteo .side-bar-item div {
    display: flex;
    justify-content: flex-start;
}

.fa-fw.transparent {
    color: transparent;
}

/*.reverse-meteo {
    display: flex;
    font-size: 0.8rem;
    align-items: center;
    width: max-content;
    justify-content: center;
    margin-right: 0.3rem;
}*/

.en-cours-label {
    /* margin-inline: 0.25rem;
	padding: 0.15rem 0.3rem; */
    margin: 0rem 0.25rem !important;
    padding: 0.1rem 0.3rem;
    border-radius: 3px;
    background: red;
    color: white;
}

.reverse-meteo .active,
.weather-alert-button,
.acknowledge-alert-btn {
    /* background-color: #fff; */
    margin: 0rem 0.25rem !important;
    padding: 0.21rem 0.3rem;
    border: 1px solid black;
    border-radius: 4px;
    background-color: rgba(179, 10, 10, 0.05);
    /* background-color: #fff; */
}

.weather-alert-button:hover {
    /* background-color: #fff; */
    background-color: rgba(179, 10, 10, 0.1);
}

.side-bar-item.meteo-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    /* width: 100%; */
}

.side-bar-item.meteo-title div {
    align-items: center;
    /* width: 100%; */
}

/* .view-onboard-alerts-link, */
.view-onboard-alerts-container {
    width: 100%;
    justify-content: space-between;
}

.bloc-count-container.administration {
    margin-inline-end: 1px;
}

.weather-alert-count, .boat-count,
/* .onboard-alerts-count,  */
.critical-alerts-count, .moderate-alerts-count, .health-check-alerts-count, .inn-alerts-count, .pollution-alerts-count, .health-alerts-count {
    /* text-align: center; */
    display: flex;
    text-align: center;
    justify-content: center;
    align-items: center;
    margin-right: 0.53rem;
    width: 16px;
    max-height: 23px;
    padding: 0.02rem 0.55rem 0 0.55rem;
    /* padding: 2px 5px 2px 5px !important; */
    /* background: red; */
    color: white;
    border-radius: 3px;
    font: italic "Plus Jakarta Sans";
}

/* /meteo */

/* alerts */

.bloc-count-container {
    display: flex;
}

/* .weather-alert-count,  */
.critical-alerts-count {
    background: red;
    /* padding: 2px 4px 2px 4px !important; */
}

.moderate-alerts-count {
    background: orange;
}

.boat-count {
    background: var(--alert-blue-color);
}

.health-check-alerts-count {
    background: green;
}

.inn-alerts-count {
    background: var(--alert-black-color);
}

.pollution-alerts-count {
    background: var(--alert-pink-color);
}

.health-alerts-count {
    display: flex;
    text-align: center;
    background: white;
    color: green;
    border: 1px solid green;
    max-width: 14px !important;
    margin-right: 0.5rem;
    padding: 0.02rem 0.5rem 0 0.5rem !important;

    /* padding: 2px 4px 0px 4px !important; */
    /* padding: 1px 3px 1px 3px !important; */
}

.side-bar-item.boat,
.side-bar-item.onboard-alert,
.side-bar-item.health-check-alert,
.side-bar-item.pollution-alert,
.side-bar-item.inn-alert {
    display: flex;
    justify-content: space-between;
    text-shadow: unset;
}

.side-bar-item.boat:hover,
.side-bar-item.onboard-alert:hover,
.side-bar-item.health-check-alert:hover,
.side-bar-item.pollution-alert:hover,
.side-bar-item.inn-alert:hover {
    text-shadow: initial !important;
}

.side-bar-item.boat {
    border-top: var(--light-border-width) solid var(--border-light-grey);
}

/* /alerts */

.leaflet-popup-content-wrapper {
    padding: 1px 0px !important;
    font-family: "Plus Jakarta Sans";
    /* text-align: left;
    border-radius: 12px; */
}

.popup-buttons-container {
    display: flex;
    justify-content: center;
    align-items: center;
    /* gap: 1px 15px; */
    gap: 10px;
    margin-top: 5px;
    /* padding: 5px; */
    padding: 10px;
    width: 100%;
    margin-left: -1px;
    box-sizing: border-box;
    overflow: hidden;
}

.popup-buttons-container > :only-child {
    /* margin: 0 auto; */
    gap: 0;
}

.confirm-end-alert-btn,
.cancel-end-alert-btn {
    background-color: #ffffff;
    color: #000000;
    border: 1px solid #000000;
    border-radius: 5px;
    font-size: small;
    font-weight: 300;
    padding: 0.3rem 0.5rem;
    cursor: pointer;
    text-align: center;
    text-decoration: none;
    max-height: 35px;
    min-width: 50px;
    max-width: 130px;
    flex-shrink: 0;
    display: inline-block;
    text-align: center;
    overflow: hidden;
    white-space: nowrap;
    margin: 2px 3px;
    /* padding: 2px; */
}

.confirm-end-alert-btn:hover,
.cancel-end-alert-btn:hover {
    background-color: rgba(0, 0, 0, 0.07);
    text-decoration: none;
}

.onboard-alert-action-btn,
.rescue-link-btn,
.end-alert-btn,
.health-check-btn {
    background-color: white;
    color: black !important;
    border: 1px solid black;
    border-radius: 5px;
    font-size: small !important;
    font-weight: 300 !important;
    padding: 0.3rem 0.4rem;
    cursor: pointer;
    text-align: center;
    text-decoration: none;
    max-height: 35px;
    min-width: 130px;
    flex-shrink: 0;
}

.onboard-alert-action-btn:hover,
.rescue-link-btn:hover,
.end-alert-btn:hover,
.health-check-btn {
    background-color: rgba(0, 0, 0, 0.07);
    text-decoration: none !important;
    text-shadow: initial !important;
}

/* Correction pour les liens "a" */
a.onboard-alert-action-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: normal;
}

@keyframes pulsegreen {
    0% {
        box-shadow: 0 0 0 0 rgb(0, 255, 0);
    }
    70% {
        box-shadow: 0 0 60px 60px rgba(255, 0, 0, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(255, 0, 0, 0);
    }
}

.assistance-req-sent .fa-map-marker-alt {
    color: var(--alert-blue-color, blue) !important;
    text-shadow: 0px 0 7px rgb(189, 248, 25) !important;
    filter: drop-shadow(0px 0 7px lime);
    animation: pulsegreen 2s infinite;
    border-radius: 50%;
}

.assistance-ack .fa-map-marker-alt {
    color: rgb(0, 255, 0) !important;
    text-shadow: 0px 0 7px rgb(0, 0, 25) !important;
    filter: drop-shadow(0px 0 7px rgb(0, 0, 25));
}

.assistance-nack .fa-map-marker-alt {
    color: black !important;
    text-shadow: 0px 0 7px rgb(0, 0, 25) !important;
    filter: drop-shadow(0px 0 7px rgb(0, 0, 25));
}

/* Critical Alert Animation */

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 0, 0, 0.7);
    }
    70% {
        box-shadow: 0 0 60px 60px rgba(255, 0, 0, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(255, 0, 0, 0);
    }
}

.marker-alert {
    animation: pulse 2s infinite;
    border-radius: 50%;
}

/* .oba-zindex {
	z-index: 1000 !important;
} */

/* Sélectionne toute balise <div> qui a au moins un enfant de classe .ma-classe */
/* div:has(.fa-fw.boat-icon-map) {
  	z-index: 200 !important;
	color: var(--alert-blue-color);
} */

div:has(.fa-fw.onboard-alert) {
    z-index: 500 !important;
}

div:has(.marker-alert.onboard-alert) {
    z-index: 600 !important;
}

.leaflet-popup,
.leaflet-popup-content-wrapper,
.leaflet-popup-content-wrapper {
    z-index: 1000;
}

/* .leaflet-popup-pane {
  z-index: 1000 !important;
} */

/* map */

.map-link-navbar {
    min-height: 35px !important;
}

.map-link-navbar.dashboard {
    border-bottom: var(--light-border-width) solid var(--border-light-grey);
}

.map-link-navbar.map.visualisation {
    border-bottom: none !important;
    border-top: none;
    /* border-bottom: var(--light-border-width) solid var(--border-light-grey); */
}

.side-bar-item.search {
    border-top: var(--light-border-width) solid var(--border-light-grey);
}

div .map-link-navbar.map.admin,
div .create-user-page {
    border-bottom: var(--light-border-width) solid var(--border-light-grey);
}

/* div .map-link-navbar.admin, */
div .side-bar-header.authentification,
div .side-bar-header.boat {
    border-top: none !important;
}

.map-link-navbar.map.visualisation a i {
    margin-inline-start: -9px !important;
}

[dir="rtl"] .map-link-navbar.map.visualisation a {
    margin-left: 0px !important;
    margin-right: 11px !important;
}

[dir="rtl"] .side-bar-item.boat,
[dir="rtl"] .side-bar-item.onboard-alert,
[dir="rtl"] .side-bar-item.health-check-alert,
[dir="rtl"] .side-bar-item.inn-alert,
[dir="rtl"] .side-bar-item.pollution-alert {
    margin: 0 20px 0 11px !important;
}

[dir="rtl"] .weather-alert-button {
    margin-left: 11px !important;
}

[dir="rtl"] div .custom-div-icon {
    margin-left: -18px !important;
}

div .map-link-navbar.visualiation.admin {
    border-top: var(--light-border-width) solid var(--border-light-grey);
    /* border-bottom: var(--light-border-width) solid var(--border-light-grey); */
}

/* / map */

div .meteo {
    padding-bottom: 0.6rem;
    border-bottom: var(--light-border-width) solid var(--border-light-grey);
}

/* language */

.switch-language select {
    display: flex;
    align-items: center;
    appearance: none;
    background-color: var(--second-bg-color);
    border: 1px solid #000;
    border-radius: 5px;
    padding: 0rem 1rem;
    font-size: 1rem;
    color: var(--main-text-color);
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: left;
    box-shadow: none;
    height: 2.05rem;
}

.switch-language select {
    text-align: left;
}

.switch-language select option {
    appearance: none;
    box-shadow: none;
    padding-bottom: 1px;
}

div .leaflet-container .leaflet-control-attribution {
    background-color: #00000000;
}

div .switch-language select:hover {
    /* background-color: rgba(22, 207, 146, 0.3); */
    background-color: rgba(177, 170, 170, 0.2);
    box-shadow: none;
}

.switch-language select:focus {
    outline: none;
    box-shadow: none;
}

.switch-language {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
}

.side-bar-footer {
    width: 100%;
    justify-content: center;
    display: none;
    margin-top: auto;
    padding: 1rem;
    text-align: center;
}

.beacon-simulator-link {
    display: inline-block;
    width: 75%;
    padding: 0.6rem;
    margin-bottom: 1.4rem;
    background-color: #fff;
    border: 1px solid var(--submit-btn-colour);
    color: var(--submit-btn-colour);
    border-radius: 0.475rem;
    cursor: pointer;
    text-align: center;
    text-decoration: none;
}

.beacon-simulator-link:hover {
    background-color: rgba(59, 130, 246, 0.3);
}

.ask-assist-btn,
.health-check-btn,
.acknowledge-alert-btn {
    background-color: white;
    color: black !important;
    border: 1px solid black;
    border-radius: 5px;
    font-size: small !important;
    font-weight: 300 !important;
    padding: 0.3rem 0.5rem;
    cursor: pointer;
    text-align: center;
    text-decoration: none;
    max-height: 35px;
    min-width: 130px;
    flex-shrink: 0;
    display: inline-block;
    max-width: 200px;
    text-align: center;
    overflow: hidden;
    white-space: nowrap;
}

.health-check-btn:hover,
.acknowledge-alert-btn:hover {
    background-color: rgba(0, 0, 0, 0.07);
    text-decoration: none !important;
}

/* /language */

/* Responsive layout */
@media (max-width: 768px) {
    :root {
        --nav-bar-height: 60px;
    }

    html {
        margin: 0;
        padding: 0;
        /* height: 100dvh; */
        height: 100%;
        overflow: hidden;
        /*overflow: auto;*/
        background-color: var(--main-bg-color, #fff);
    }

    body {
        margin: 0;
        padding: 0;
        /*overflow: hidden;*/
        overflow-y: auto;
        /* height: 100dvh; */
        /* max-height: 100dvh; */
        /* min-height: 100dvh; */
        height: 100%;
        min-height: -webkit-fill-available;
    }

    body:has(#map) {
        overflow: hidden;
    }

    .side-bar-footer {
        display: flex;
    }

    #side-bar {
        z-index: 1010;
        position: fixed;
        top: var(--nav-bar-height);
        inset-inline-start: 0;
        width: var(--side-bar-width);
        margin-inline-start: calc(
            0px - var(--side-bar-width) - var(--light-border-width) -
                var(--shadow-x-offset)
        );
        height: calc(100dvh - var(--nav-bar-height));
        border-inline-end: var(--light-border-width) solid
            var(--border-light-grey);
        background-color: #fff;
        box-shadow: var(--shadow-x-offset) 0 5px rgba(0, 0, 0, 0.4);
    }

    [dir="rtl"] #side-bar {
        box-shadow: calc(var(--shadow-x-offset) * -1) 0 5px rgba(0, 0, 0, 0.4);
    }

    #login-logo img {
        max-width: 300px;
        margin-bottom: 50px;
    }

    #login-form {
        display: flex;
        align-items: center;
        justify-content: center;
        flex-direction: column;
    }

    #login-form div {
        height: 50px;
    }

    #content {
        display: flex;
        flex-wrap: none;
        flex-direction: row;
    }

    #page-content {
        /* width: 100dvw; */
        /* height: calc(100dvh - var(--nav-bar-height)); */
        /* flex: 1; */
        /* height: auto;  */
        /* min-height: calc(100vh - 60px); */
        flex-shrink: 0;
        width: 100%;
        /* height: calc(100dvh - 60px); */
        height: calc(100dvh - var(--nav-bar-height));
        overflow: hidden;
    }

    #page-content.base {
        height: auto;
        /* min-height: calc(100dvh - 60px); */
        min-height: calc(100dvh - var(--nav-bar-height));
        overflow-y: auto;
    }

    .page-content.base {
        padding: 1rem !important;
    }

    .table-container {
        border-radius: 0;
    }

    .modal-content {
        width: 90%;
    }

    .form-container {
        grid-template-columns: 1fr;
    }

    .btn-submit {
        width: 100%;
    }

    .side-bar-toggle {
        display: block;
        background: none;
        border: none;
        font-size: 24px;
        color: #333;
        cursor: pointer;
    }

    .user-menu-toggle {
        display: block;
        background: none;
        border: none;
        font-size: 24px;
        color: #333;
        cursor: pointer;
    }

    #nav-bar #logo {
        align-self: center;
        height: 90%;
        border: none;
        width: 100%;
    }

    #nav-bar #logo img {
        height: 100%;
        width: auto;
        padding: 9px 0;
    }

    #nav-bar #logo.logo-phebus img {
        padding: 11px 0 7px 8px;
    }

    #nav-bar-menu {
        display: none;
    }

    .modal .map-modal-dialog {
        width: 90dvw;
    }

    #map {
        width: 100%;
        height: 100% !important;
        max-height: 100% !important;
    }

    .page-content.administration {
        padding: 0 !important;
        overflow: hidden !important;
        /*overflow: auto;*/

        /* height: calc(100dvh - 60px) !important; */
        /*height: calc(100dvh - var(--nav-bar-height)) !important;*/
        /*height: calc(
            100dvh - var(--nav-bar-height) - env(safe-area-inset-bottom, 0px)
        ) !important;*/
        height: 100%;
    }

    .page-content.administration main,
    .page-content.administration main #content {
        height: 100%;
        overflow: hidden;
    }

    /*.page-content.administration main #content {
        height: 100%;
        overflow: hidden;
    }*/

    .leaflet-bottom.leaflet-left {
        bottom: 15px !important;
    }

    .profile-detail {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
        padding: 10px;
    }

    .profile-detail .label {
        margin-inline-end: 0;
        width: 100%;
    }

    .profile-detail .value {
        width: 100%;
    }

    .filter-btn-submit-container {
        width: 100%;
    }

    /* #status-bar {
		inset-inline-start: calc(50% - var(--status-bar-width) / 2);
	} */

    .pagination-main {
        display: flex;
        flex-flow: column;
        justify-content: space-between;
        gap: 10px;
        margin-top: 10px;
    }

    .pagination {
        justify-content: center;
    }

    #nb-results span {
        margin-inline-end: auto;
    }
}

/* Page 404 */

.not-found-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    height: 100vh;
    width: 100%;
}

.not-found-error-template h1 {
    font-size: 3rem;
    font-weight: 700;
}

.not-found-error-details {
    font-size: 3rem;
    font-weight: 500;
}

.not-found-error-actions {
    margin-top: 20px;
}

.not-found-go-back-button {
    padding: 10px 20px;
    background-color: #333;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1.5rem;
    font-weight: 500;
    text-transform: uppercase;
}

/* Distance Measurement Tool */

.distance-measurement-control {
    /*margin-top: 10px !important;*/
    margin: 0;
}

.distance-measurement-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    background-color: #fff !important;
    color: #333 !important;
    text-decoration: none;
    font-size: 14px;
    outline: none;
}

.distance-measurement-btn:visited,
.distance-measurement-btn:link,
.distance-measurement-btn:focus {
    background-color: #fff !important;
    color: #333 !important;
}

.distance-measurement-icon {
    width: 1.5rem;
}

.distance-measurement-btn:hover {
    background-color: #f4f4f4 !important;
    color: #333 !important;
}

.distance-measurement-btn.active,
.distance-measurement-btn.active:visited,
.distance-measurement-btn.active:link,
.distance-measurement-btn.active:focus,
.distance-measurement-btn.active:active {
    background-color: #3b82f6 !important;
    color: #fff !important;
}

.distance-measurement-btn.active:hover {
    background-color: #2563eb !important;
    color: #fff !important;
}

.distance-tooltip {
    background-color: rgba(59, 130, 246, 0.95);
    border: none;
    border-radius: 4px;
    color: #fff;
    font-size: 12px;
    font-weight: 500;
    padding: 4px 8px;
    white-space: nowrap;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.distance-tooltip::before {
    border: none !important;
}

.distance-tooltip-temp {
    opacity: 0.9;
}

.distance-tooltip-clickable {
    cursor: pointer;
}

.distance-tooltip-clickable:hover {
    /*background-color: rgba(37, 99, 235, 0.95);*/
    background-color: #f4f4f4;
}

/* / Distance Measurement Tool */
