.gl-chauffeur-wrap {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    background: #fff;
    border: 1px solid #c3c4c7;
    border-radius: 4px;
}

.gl-chauffeur-overview-toggle {
    background: none;
    border: 1px solid #c3c4c7;
    border-radius: 4px;
    padding: 6px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #1d2327;
}

.gl-chauffeur-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 15px;
}

.gl-chauffeur-header h1 {
    margin: 0;
    font-size: 1.6em;
}

.gl-chauffeur-sub-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    padding: 10px 15px;
    background: #f6f7f7;
    border: 1px solid #c3c4c7;
    border-radius: 4px;
    /* margin-bottom: 15px; */
    flex-direction: column;
    min-height: 90px;
}

.gl-chauffeur-sub-header h2 {
    margin: 0;
    font-size: 1.2em;
    flex: 1;
}

.gl-chauffeur-sub-header-spinner {
    display: inline-block;
    width: 18px;
    height: 18px;
    border: 2px solid #c3c4c7;
    border-top-color: #2271b1;
    border-radius: 50%;
    animation: gl-spin 0.8s linear infinite;
}

.gl-chauffeur-statut {
    font-size: 1.1em;
    margin-bottom: 0;
}

.gl-chauffeur-statut span {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 16px;
    font-weight: 700;
}

.gl-statut-en_attente {
    background: #f0f0f1;
    color: #646970;
}

.gl-statut-en_cours {
    background: #c5d9ed;
    color: #1a4a7a;
}

.gl-statut-terminee {
    background: #c6e1c6;
    color: #4a7c2e;
}

.gl-statut-valide {
    background: #c6e1c6;
    color: #4a7c2e;
}

.gl-statut-non_livrable {
    background: #f6d6d6;
    color: #d63638;
}

.gl-chauffeur-address-map {
    width: 100%;
    height: 250px;
    margin-top: 15px;
    border-radius: 4px;
    border: 1px solid #c3c4c7;
}

.gl-chauffeur-position-info {
    font-size: 0.85em;
    color: #646970;
    margin-top: 8px;
}

.gl-chauffeur-login-wrap {
    max-width: 400px;
    margin: 40px auto;
    padding: 40px 35px;
    background: #fff;
    border: 1px solid #c3c4c7;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.gl-chauffeur-login-wrap h1 {
    font-size: 1.6em;
    margin-top: 0;
    margin-bottom: 30px;
    text-align: center;
    color: #1d2327;
    font-weight: 600;
}

.gl-chauffeur-login-form p {
    margin-bottom: 20px;
}

.gl-chauffeur-login-form label {
    display: block;
    margin-bottom: 6px;
    font-weight: 500;
    color: #3c434a;
    font-size: 0.95em;
}

.gl-chauffeur-login-input {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #c3c4c7;
    border-radius: 6px;
    box-sizing: border-box;
    font-size: 1em;
    line-height: 1.4;
    transition: border-color 0.15s, box-shadow 0.15s;
}

.gl-chauffeur-login-input:focus {
    border-color: #2271b1;
    box-shadow: 0 0 0 2px rgba(34, 113, 177, 0.15);
    outline: none;
}

.gl-chauffeur-login-submit {
    width: 100%;
    padding: 14px;
    font-size: 1.05em;
    cursor: pointer;
    border-radius: 6px;
    font-weight: 600;
    background: #2271b1;
    color: #fff;
    border: 1px solid #2271b1;
    transition: background 0.15s, border-color 0.15s;
}

.gl-chauffeur-login-submit:hover {
    background: #1a5a8d;
    border-color: #1a5a8d;
}

.gl-chauffeur-login-error {
    color: #d63638;
    background: #fcf0f1;
    border: 1px solid #d63638;
    padding: 12px;
    border-radius: 6px;
    margin-bottom: 20px;
}

.gl-chauffeur-honeypot {
    position: absolute;
    left: -9999px;
    opacity: 0;
    height: 0;
    width: 0;
    overflow: hidden;
}

.gl-chauffeur-password-field {
    display: flex;
    align-items: stretch;
    gap: 8px;
    flex-wrap: nowrap;
}

.gl-chauffeur-password-field input {
    flex: 1;
    min-width: 0;
}

.gl-chauffeur-toggle-password {
    background: #fff;
    border: 1px solid #c3c4c7;
    border-radius: 6px;
    padding: 0 12px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #1d2327;
    flex-shrink: 0;
    min-height: 44px;
    transition: background 0.15s, border-color 0.15s;
}

.gl-chauffeur-toggle-password:hover,
.gl-chauffeur-toggle-password[aria-pressed="true"] {
    background: #f0f0f1;
    border-color: #a7aaad;
}

.gl-chauffeur-forgot-link {
    text-align: right;
    margin: -10px 0 5px;
}

.gl-chauffeur-forgot-link .button-link {
    background: none;
    border: none;
    color: #2271b1;
    text-decoration: none;
    cursor: pointer;
    padding: 0;
    font-size: 0.9em;
    font-weight: 500;
    transition: color 0.15s;
}

.gl-chauffeur-forgot-link .button-link:hover {
    color: #1a5a8d;
    text-decoration: underline;
}

.gl-chauffeur-forgot-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 100000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gl-chauffeur-forgot-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
}

.gl-chauffeur-forgot-content {
    position: relative;
    background: #fff;
    border-radius: 4px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    width: 95%;
    max-width: 400px;
    padding: 20px;
    z-index: 100001;
}

.gl-chauffeur-forgot-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #c3c4c7;
}

.gl-chauffeur-forgot-header h2 {
    margin: 0;
    font-size: 1.2em;
}

.gl-chauffeur-forgot-close {
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: #666;
    line-height: 1;
    padding: 0 4px;
}

.gl-chauffeur-forgot-body p {
    margin-bottom: 15px;
}

.gl-chauffeur-error {
    color: #d63638;
}

.gl-chauffeur-success {
    color: #4a7c2e;
}

.gl-chauffeur-start-panel {
    text-align: center;
    padding: 30px 20px;
    background: #f6f7f7;
    border: 1px solid #c3c4c7;
    border-radius: 4px;
}

.gl-chauffeur-start-panel p {
    font-size: 1.2em;
    margin-bottom: 20px;
}

.gl-chauffeur-livraison {
    margin-top: 20px;
}

.gl-chauffeur-carrousel {
    margin-bottom: 20px;
    padding: 15px;
    background: #f6f7f7;
    border: 1px solid #c3c4c7;
    border-radius: 4px;
}

.gl-chauffeur-overview-toggle {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    border: 1px solid #c3c4c7;
    border-radius: 50%;
    background: #fff;
    color: #1d2327;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    transition: background 0.15s;
}

.gl-chauffeur-overview-toggle:hover {
    background: #f0f0f1;
}

.gl-chauffeur-overview-toggle svg {
    width: 20px;
    height: 20px;
}

.gl-chauffeur-carrousel-track {
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    gap: 10px;
    padding: 10px 8px;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
}

.gl-chauffeur-carrousel-bulle {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    border: 2px solid transparent;
    border-radius: 50%;
    background: #fff;
    color: #1d2327;
    font-weight: 700;
    font-size: 1em;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.15s, box-shadow 0.15s;
    scroll-snap-align: center;
}

.gl-chauffeur-carrousel-bulle.active {
    transform: scale(1.15);
    box-shadow: 0 0 0 3px #2271b1;
    font-weight: 900;
}

.gl-chauffeur-carrousel-bulle.gl-statut-en_attente {
    background: #f0f0f1;
    color: #646970;
    border-color: #c3c4c7;
}

.gl-chauffeur-carrousel-bulle.gl-statut-en_cours {
    background: #c5d9ed;
    color: #1a4a7a;
    border-color: #1a4a7a;
}

.gl-chauffeur-carrousel-bulle.gl-statut-valide {
    background: #c6e1c6;
    color: #4a7c2e;
    border-color: #4a7c2e;
}

.gl-chauffeur-carrousel-bulle.gl-statut-non_livrable {
    background: #f6d6d6;
    color: #d63638;
    border-color: #d63638;
}

.gl-chauffeur-carrousel-nav {
    /* display: flex; */
    display: none;
    justify-content: center;
    gap: 10px;
    margin-top: 10px;
}

.gl-chauffeur-carrousel-prev,
.gl-chauffeur-carrousel-next {
    width: 36px;
    height: 36px;
    border: 1px solid #c3c4c7;
    border-radius: 50%;
    background: #fff;
    color: #1d2327;
    font-size: 1.5em;
    line-height: 1;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.gl-chauffeur-carrousel-prev:hover,
.gl-chauffeur-carrousel-next:hover {
    background: #f0f0f1;
}

.gl-chauffeur-carrousel-end {
    width: auto;
    min-width: 44px;
    padding: 0 8px;
    border-radius: 22px;
    font-size: 0.85em;
}

.gl-chauffeur-carrousel-end-icon {
    white-space: nowrap;
}

.gl-chauffeur-client-card {
    background: #f6f7f7;
    border: 1px solid #c3c4c7;
    border-radius: 4px;
    padding: 20px;
    margin-bottom: 20px;
}

.gl-chauffeur-client-card h2 {
    margin-top: 0;
    font-size: 1.4em;
}

.gl-chauffeur-client-card p {
    margin: 8px 0;
}

.gl-chauffeur-contact {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 14px;
}

.gl-chauffeur-contact-nom {
    font-weight: 600;
    margin: 2px 0 0 0;
}

.gl-chauffeur-contact-line {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.gl-chauffeur-contact-value {
    font-size: 0.95em;
    color: #1d2327;
}

.gl-chauffeur-contact-action,
.gl-chauffeur-gps-button {
    font-size: 1em;
    padding:0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 30px;
    min-height: 30px;
    border-radius: 4px;
    text-decoration: none;
    /* border: 1px solid #cecece; */
    background:white;
    box-shadow: rgba(0, 0, 0, 0.18) 0px 2px 4px !important;
}

.gl-chauffeur-note {
    width: 100%;
    max-width: 500px;
    padding: 10px;
    border: 1px solid #c3c4c7;
    border-radius: 4px;
    resize: vertical;
}

.gl-chauffeur-overview-action {
    margin-bottom: 20px;
}

.gl-chauffeur-location-modal,
.gl-chauffeur-overview-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 100000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gl-chauffeur-location-content {
    position: relative;
    background: #fff;
    border-radius: 4px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    width: 95%;
    max-width: 450px;
    padding: 20px;
    z-index: 100001;
}

.gl-chauffeur-location-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #c3c4c7;
}

.gl-chauffeur-location-header h2 {
    margin: 0;
    font-size: 1.2em;
}

.gl-chauffeur-location-body p {
    margin-bottom: 15px;
}

.gl-chauffeur-location-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
}

.gl-chauffeur-location-close {
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: #666;
    line-height: 1;
    padding: 0 4px;
}

.gl-chauffeur-overview-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 100000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gl-chauffeur-overview-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
}

.gl-chauffeur-overview-content {
    position: relative;
    background: #fff;
    border-radius: 4px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    width: 95%;
    height: 95%;
    max-width: 900px;
    max-height: 95vh;
    overflow-y: auto;
    padding: 20px;
    z-index: 100001;
    display: flex;
    flex-direction: column;
}

.gl-chauffeur-overview-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #c3c4c7;
    flex-shrink: 0;
}

.gl-chauffeur-overview-header h2 {
    margin: 0;
    font-size: 1.4em;
}

.gl-chauffeur-overview-close {
    background: none;
    border: none;
    font-size: 32px;
    cursor: pointer;
    color: #666;
    line-height: 1;
    padding: 0 4px;
}

.gl-chauffeur-overview-close:hover {
    color: #000;
}

.gl-chauffeur-overview-body {
    flex: 1;
    overflow-y: auto;
    margin-bottom: 15px;
}

.gl-chauffeur-overview-summary {
    background: #f0f6fc;
    border: 1px solid #c5d9ed;
    border-radius: 4px;
    padding: 15px;
    margin-bottom: 20px;
}

.gl-chauffeur-overview-summary p {
    margin: 0 0 5px;
    font-weight: 700;
}

.gl-chauffeur-overview-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.gl-chauffeur-overview-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 15px;
    border: 1px solid #c3c4c7;
    border-left: 4px solid #c3c4c7;
    border-radius: 4px;
    margin-bottom: 10px;
    background: #fff;
}

.gl-chauffeur-overview-item.gl-statut-en_attente {
    border-left-color: #646970;
}

.gl-chauffeur-overview-item.gl-statut-en_cours {
    border-left-color: #1a4a7a;
}

.gl-chauffeur-overview-item.gl-statut-valide {
    border-left-color: #4a7c2e;
}

.gl-chauffeur-overview-item.gl-statut-non_livrable {
    border-left-color: #d63638;
}

.gl-chauffeur-overview-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 32px;
    height: 32px;
    background: #2271b1;
    color: #fff;
    border-radius: 50%;
    font-weight: 700;
    flex-shrink: 0;
}

.gl-chauffeur-overview-body {
    flex: 1;
}

.gl-chauffeur-overview-statut {
    display: inline-block;
    margin-top: 5px;
    padding: 2px 8px;
    border-radius: 12px;
    background: #f0f0f1;
    font-size: 0.85em;
    font-weight: 700;
}

.gl-chauffeur-overview-edit {
    margin-top: 8px;
}

.gl-chauffeur-overview-map {
    height: 350px;
    width: 100%;
    border: 1px solid #c3c4c7;
    border-radius: 4px;
    margin-bottom: 20px;
    background: #e5e5e5;
}

.gl-tournee-point-public {
    border-left: 4px solid transparent;
}

.gl-tournee-point-public.gl-statut-en_attente {
    border-left-color: #646970;
}

.gl-tournee-point-public.gl-statut-en_cours {
    border-left-color: #1a4a7a;
}

.gl-tournee-point-public.gl-statut-valide {
    border-left-color: #4a7c2e;
}

.gl-tournee-point-public.gl-statut-non_livrable {
    border-left-color: #d63638;
}

.gl-point-statut {
    display: inline-block;
    margin-top: 4px;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.85em;
    font-weight: 700;
}

.gl-point-statut.gl-statut-en_attente {
    background: #f0f0f1;
    color: #646970;
}

.gl-point-statut.gl-statut-en_cours {
    background: #f0f6fc;
    color: #1a4a7a;
}

.gl-point-statut.gl-statut-valide {
    background: #edfaef;
    color: #4a7c2e;
}

.gl-point-statut.gl-statut-non_livrable {
    background: #fcf0f1;
    color: #d63638;
}

.gl-marker {
    background: transparent !important;
    border: none !important;
}

.gl-marker-circle {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 2px solid #fff;
    box-shadow: 0 0 4px rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
}

.gl-marker-number {
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.gl-marker-dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #2271b1;
    border: 2px solid #fff;
    box-shadow: 0 0 4px rgba(0, 0, 0, 0.4);
}

.gl-chauffeur-photo-section {
    margin-bottom: 20px;
}

.gl-chauffeur-arrivee-form {
    background: #f6f7f7;
    border: 1px solid #c3c4c7;
    border-radius: 4px;
    padding: 15px;
    margin-bottom: 20px;
}

.gl-chauffeur-arrivee-form .button {
    background: #f0f0f1;
    color: #1d2327;
    border-color: #c3c4c7;
}

.gl-chauffeur-arrivee-form .button:hover {
    background: #e0e0e1;
}

.gl-chauffeur-arrivee-form p {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin: 8px 0;
}

.gl-chauffeur-arrivee-form label {
    margin-right: auto;
    width: 100%;
}

.gl-chauffeur-arrivee-date,
.gl-chauffeur-arrivee-select {
    padding: 6px 10px;
    border: 1px solid #c3c4c7;
    border-radius: 4px;
}

.gl-chauffeur-arrivee-select {
    min-width: 70px;
}

#gl-chauffeur-arrivee-info {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #f0f6fc;
    border: 1px solid #c5d9ed;
    border-radius: 4px;
    padding: 12px 15px;
    margin-bottom: 15px;
}

.gl-chauffeur-edit-arrivee {
    background: none;
    border: none;
    font-size: 18px;
    cursor: pointer;
    color: #2271b1;
    padding: 2px 6px;
    line-height: 1;
}

.gl-chauffeur-edit-arrivee:hover {
    color: #135e96;
}

.gl-chauffeur-resume {
    margin-top: 15px;
}

.gl-chauffeur-recap {
    background: #f6f7f7;
    border: 1px solid #c3c4c7;
    border-radius: 4px;
    padding: 15px;
    margin-bottom: 15px;
}

.gl-chauffeur-recap h3 {
    margin: 0 0 15px 0;
    font-size: 1.2em;
}

.gl-chauffeur-recap-section {
    margin-bottom: 15px;
}

.gl-chauffeur-recap-section:last-child {
    margin-bottom: 0;
}

.gl-chauffeur-recap-section strong {
    display: block;
    margin-bottom: 5px;
}

.gl-chauffeur-recap-section p {
    margin: 0;
}

.gl-chauffeur-recap-photos {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.gl-chauffeur-recap-photos a {
    display: block;
    max-width: 80px;
}

.gl-chauffeur-recap-photos img {
    max-width: 100%;
    border: 1px solid #c3c4c7;
    border-radius: 4px;
}

.gl-chauffeur-recap-signature img {
    max-width: 100%;
    border: 1px solid #c3c4c7;
    border-radius: 4px;
    background: #fff;
}

.gl-chauffeur-photo-section {
    background: #f6f7f7;
    border: 1px solid #c3c4c7;
    border-radius: 4px;
    padding: 15px;
}

.gl-chauffeur-photo-input {
    margin-bottom: 10px;
}

.gl-chauffeur-photo-preview {
    margin-bottom: 10px;
}

.gl-chauffeur-photo-preview img {
    max-width: 100%;
    max-height: 200px;
    border: 1px solid #c3c4c7;
    border-radius: 4px;
}

.gl-chauffeur-photos-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 10px;
}

.gl-chauffeur-photo-thumb {
    width: 80px;
    height: 80px;
    border: 1px solid #c3c4c7;
    border-radius: 4px;
    overflow: hidden;
}

.gl-chauffeur-photo-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gl-chauffeur-overview-photos {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}

.gl-chauffeur-overview-photos img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border: 1px solid #c3c4c7;
    border-radius: 4px;
}

.gl-chauffeur-overview-segment {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 5px 0;
    padding: 0;
}

.gl-chauffeur-overview-segment-arrow {
    display: inline-block;
    width: 4px;
    height: 24px;
    background: #4a7c2e;
    border-radius: 2px;
    position: relative;
}

.gl-chauffeur-overview-segment-arrow::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 50%;
    transform: translateX(-50%);
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-top: 10px solid #4a7c2e;
}

.gl-chauffeur-overview-segment-distance {
    display: inline-block;
    border: 2px solid #4a7c2e;
    border-radius: 20px;
    padding: 4px 12px;
    color: #4a7c2e;
    font-weight: 700;
    margin-top: 4px;
}

.gl-chauffeur-canvas {
    width: 100%;
    max-width: 500px;
    height: 200px;
    border: 1px solid #c3c4c7;
    border-radius: 4px;
    background: #fff;
    cursor: crosshair;
    touch-action: none;
    display: block;
    margin-bottom: 15px;
}

.gl-chauffeur-client-signature {
    margin-top: 15px;
    padding: 10px;
    border: 1px solid #c3c4c7;
    border-radius: 4px;
    background: #fff;
}

.gl-chauffeur-client-signature img {
    max-width: 100%;
    border: 1px solid #c3c4c7;
    background: #fff;
}

.gl-chauffeur-client-photos {
    margin-top: 15px;
    padding: 10px;
    border: 1px solid #c3c4c7;
    border-radius: 4px;
    background: #fff;
}

.gl-chauffeur-client-photos-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.gl-chauffeur-client-photos-grid a {
    display: block;
    width: 80px;
    height: 80px;
    border: 1px solid #c3c4c7;
    border-radius: 4px;
    overflow: hidden;
    background: #f6f7f7;
}

.gl-chauffeur-client-photos-grid img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.gl-chauffeur-actions {
    display: flex;
    gap: 10px;
    margin-top: 15px;
    flex-wrap: wrap;
}

.gl-chauffeur-empty,
.gl-chauffeur-completed,
.gl-chauffeur-error {
    text-align: center;
    padding: 30px 20px;
}

.gl-chauffeur-error {
    color: #d63638;
}

.gl-chauffeur-signature-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 100000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gl-chauffeur-signature-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
}

.gl-chauffeur-signature-modal-content {
    position: relative;
    background: #fff;
    border-radius: 4px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    width: 95%;
    height: 95%;
    max-width: none;
    max-height: none;
    overflow-y: auto;
    padding: 20px;
    z-index: 100001;
    display: flex;
    flex-direction: column;
}

.gl-chauffeur-signature-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #c3c4c7;
    flex-shrink: 0;
}

.gl-chauffeur-signature-modal-header h2 {
    margin: 0;
    font-size: 1.4em;
}

.gl-chauffeur-signature-modal-close {
    background: none;
    border: none;
    font-size: 32px;
    cursor: pointer;
    color: #666;
    line-height: 1;
    padding: 0 4px;
}

.gl-chauffeur-signature-modal-close:hover {
    color: #000;
}

.gl-chauffeur-signature-modal-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
    overflow: hidden;
}

.gl-chauffeur-signature-modal-body .description {
    margin-bottom: 15px;
    text-align: center;
}

.gl-chauffeur-signature-modal-body .gl-chauffeur-canvas {
    width: auto;
    max-width: 100%;
    height: auto;
    max-height: 100%;
    border: 1px solid #c3c4c7;
    border-radius: 4px;
    background: #fff;
    cursor: crosshair;
    touch-action: none;
}

.gl-chauffeur-signature-modal-footer {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
    flex-shrink: 0;
}


.gl-chauffeur-tournees-list-wrap {
    max-width: 700px;
}

.gl-chauffeur-tournees-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.gl-chauffeur-tournee-item {
    margin-bottom: 12px;
    border: 1px solid #c3c4c7;
    border-radius: 4px;
    overflow: hidden;
}

.gl-chauffeur-tournee-item.gl-statut-en_attente {
    border-left: 4px solid #646970;
}

.gl-chauffeur-tournee-item.gl-statut-pret_a_livrer {
    border-left: 4px solid #1d4e89;
}

.gl-chauffeur-tournee-item.gl-statut-en_cours {
    border-left: 4px solid #1a4a7a;
}

.gl-chauffeur-tournee-item.gl-statut-terminee {
    border-left: 4px solid #4a7c2e;
}

.gl-chauffeur-tournee-link {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    padding: 15px;
    background: #fff;
    color: #1d2327;
    text-decoration: none;
    transition: background 0.15s;
}

.gl-chauffeur-tournee-link:hover {
    background: #f6f7f7;
}

.gl-chauffeur-tournee-title {
    font-weight: 700;
    font-size: 1.1em;
    flex: 1;
}

.gl-chauffeur-tournee-statut {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 12px;
    background: #f0f0f1;
    font-size: 0.85em;
    font-weight: 700;
}

.gl-chauffeur-tournee-chauffeur {
    font-size: 0.9em;
    color: #555;
}

/* Onglets de la livraison */
.gl-chauffeur-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-bottom: 20px;
    border-bottom: 2px solid #c3c4c7;
    padding-bottom: 0;
}

.gl-chauffeur-tab {
    padding: 10px 16px;
    background: #f0f0f1;
    border: 1px solid #c3c4c7;
    border-bottom: none;
    border-radius: 4px 4px 0 0;
    color: #1d2327;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s;
    margin-bottom: -2px;
}

.gl-chauffeur-tab:hover {
    background: #e7e7e8;
}

.gl-chauffeur-tab.active {
    background: #fff;
    border-bottom: 2px solid #fff;
    color: #1a4a7a;
}

.gl-chauffeur-tabs-content {
    background: #fff;
    padding: 15px 0;
}

.gl-tab-content {
    display: none;
}

.gl-tab-content.active {
    display: block;
}

.gl-chauffeur-validation-section {
    margin-top: 15px;
}




.gl-install-pwa-wrap {
    margin: 10px 0;
}

.gl-install-pwa {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.gl-install-pwa-fallback {
    color: #555;
    margin-top: 8px;
}

.gl-btn-spinner {
    display: inline-block;
    width: 14px;
    height: 14px;
    border: 2px solid rgba(255, 255, 255, 0.35);
    border-top-color: currentColor;
    border-radius: 50%;
    vertical-align: -2px;
    margin-right: 6px;
    animation: gl-btn-spin 0.7s linear infinite;
}

@keyframes gl-btn-spin {
    to { transform: rotate(360deg); }
}

/* ===== Modale PDF (bon de livraison) ===== */
.gl-pdf-modal {
    position: fixed;
    inset: 0;
    z-index: 100000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gl-pdf-modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
}

.gl-pdf-modal-content {
    position: relative;
    width: 100%;
    height: 100%;
    background: #fff;
    overflow: hidden;
}

.gl-pdf-modal-content iframe {
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
}

.gl-pdf-modal-close {
    position: absolute;
    top: 8px;
    right: 8px;
    z-index: 2;
    width: 34px;
    height: 34px;
    border: none;
    border-radius: 50%;
    background: rgba(29, 107, 74, 0.9);
    color: #fff;
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
    padding: 0 0 2px 0px;
}

.gl-pdf-modal-close:hover {
    background: #1d6b4a;
}

body.gl-pdf-modal-open {
    overflow: hidden;
}
