:root {
    --easy-check-primary: #005ca9;
    --easy-check-primary-light: #0066bb;
    --easy-check-primary-dark: #004a8a;
    --easy-check-secondary: #6c757d;
    --easy-check-success: #28a745;
    --easy-check-warning: #ffc107;
    --easy-check-danger: #dc3545;
    --easy-check-light: #f8f9fa;
    --easy-check-border: #dee2e6;
    --warning-color: #f39c12;
    --danger-color: #e74c3c;
    --info-color: #1abc9c;
    --light-bg: #f8fafc;
    --text-dark: #2d3748;
    --text-muted: #718096;
    --status-created: #a0aec0;
    --status-pending: #3498db;
    --status-in-progress: #f39c12;
    --status-validation: #8e44ad;
    --status-completed: #2ecc71;
    --status-archived: #95a5a6;
}

html {
    margin: 0;
    padding: 0;
}

body {
    position: relative;
    font-family:  lato;
    font-weight: 400;
}

#containerPublic {
    min-height:100vh;
}

.btn-primary {
    background-color: var(--easy-check-primary);
    border-color: var(--easy-check-primary);
    color: white;
}

.toggle-password{
    background-color: #0000;
    border: none;
    flex-direction: row;
    place-items: center;
    font-size: .875rem;
    line-height: 1.25rem;
    display: flex;
    justify-content: end;
    position: relative;
}

.container-scroller {
    overflow: hidden;
}

.page-body-wrapper {
    min-height: calc(100vh - 60px);
    display: -webkit-flex;
    display: flex;
    -webkit-flex-direction: row;
    flex-direction: row;
    padding-left: 0;
    padding-right: 0;
    padding-top: 60px;

    &.full-page-wrapper {
        width: 100%;
        min-height: 100vh;
        padding-top: 0;
    }
}

.main-panel {
    transition: width 0.25s ease, margin 0.25s ease;
    width: calc(100% - 235px);
    min-height: calc(100vh - 60px);
    display: -webkit-flex;
    display: flex;
    -webkit-flex-direction: column;
    flex-direction: column;
}

.content-wrapper {
    background: #F5F7FF;
    width: 100%;
    -webkit-flex-grow: 1;
    flex-grow: 1;
    display: flex;
}

.footer {
    background: #fff;
    padding: 10px 2.45rem;
    transition: all 0.25s ease;
    -moz-transition: all 0.25s ease;
    -webkit-transition: all 0.25s ease;
    -ms-transition: all 0.25s ease;
    font-size: calc(0.875rem - 0.05rem);
    font-family: "Nunito", sans-serif;
    font-weight: 400;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
}

#sidebar-legende {
    position: fixed;
    z-index: 1051;
    top: 60px;
    right: 0;
    width: 280px;
    height: calc(100vh - 53px);
    background: whitesmoke;
    padding: 0;
    color: white;
    transform: translateX(0);
    transition: transform 0.3s ease-in-out;
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
}

#sidebar-legende.collapsed {
    transform: translateX(100%);
}

/* Déplacement des contrôles de la carte quand la légende est ouverte */
/* Appliqué uniquement aux grandes cartes (pas aux cartes de détail d'intervention) */
.leaflet-control-container .leaflet-top.leaflet-right {
    transition: right 0.3s ease-in-out;
}

.leaflet-control-container .leaflet-bottom.leaflet-right {
    transition: right 0.3s ease-in-out;
}

/* Déplacement des contrôles pour les grandes cartes */
.legend-open:not(.intervention-detail-map) .leaflet-control-container .leaflet-top.leaflet-right {
    right: 290px;
}

.legend-open:not(.intervention-detail-map) .leaflet-control-container .leaflet-bottom.leaflet-right {
    right: 290px;
}

/* Les cartes de détail d'intervention ne déplacent pas leurs contrôles */
.intervention-detail-map.legend-open .leaflet-control-container .leaflet-top.leaflet-right,
.intervention-detail-map.legend-open .leaflet-control-container .leaflet-bottom.leaflet-right {
    right: 10px;
}

/* Styles pour le dropdown des fonds de carte */
.fond-carte-dropdown {
    position: relative;
}

.fond-carte-button {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 6px 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: white;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 14px;
}

.fond-carte-button:hover {
    border-color: #356fb4;
    background: #f8f9ff;
}

.fond-carte-current {
    display: flex;
    align-items: center;
    gap: 8px;
}

.fond-carte-preview-small {
    width: 20px;
    height: 20px;
    background-size: cover;
    background-position: center;
    border: 1px solid #ccc;
    border-radius: 3px;
    flex-shrink: 0;
}

.fond-carte-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #ddd;
    border-top: none;
    border-radius: 0 0 4px 4px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    max-height: 200px;
    overflow-y: auto;
}

.fond-carte-menu.hidden {
    display: none;
}

.fond-carte-menu .fond-carte-option {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    cursor: pointer;
    transition: background 0.2s ease;
}

.fond-carte-menu .fond-carte-option:hover {
    background: #f8f9ff;
}

.fond-carte-menu .fond-carte-option:last-child {
    border-radius: 0 0 4px 4px;
}

.fond-carte-menu .fond-carte-option span {
    font-size: 14px;
    color: #333;
}

.table-bordered > :not(caption) > * > * {
    border:0 !important;
}