/**
 * Espace chauffeur - style inspiré de la maquette
 */

.gl-espace {
    background: #f4f7f5;
    border: 1px solid #e2e8e4;
    border-radius: 22px;
    overflow: hidden;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: #22312a;
    box-shadow: 0 6px 30px rgba(20, 45, 34, 0.06);
}

/* ---------- En-tête ---------- */
.gl-espace-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 18px 22px;
    background: #fff;
    border-bottom: 1px solid #e6ece8;
}

.gl-espace-logo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: #1d6b4a;
    color: #fff;
    flex-shrink: 0;
}

.gl-espace-brand {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
    min-width: 0;
}

.gl-espace-brand strong {
    font-size: 15px;
    font-weight: 700;
    color: #22312a;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.gl-espace-brand span {
    font-size: 10px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: #7d8a82;
    font-weight: 600;
}

.gl-espace-logout {
    margin-left: auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 10px;
    color: #7d8a82;
    text-decoration: none;
    transition: background 0.15s, color 0.15s;
    flex-shrink: 0;
}

.gl-espace-logout:hover {
    background: #eef2ef;
    color: #1d6b4a;
}

/* ---------- Corps ---------- */
.gl-espace-body {
    padding: 26px 22px 32px;
}

.gl-espace-eyebrow {
    margin: 0 0 8px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: #7d8a82;
}

.gl-espace-title {
    margin: 0 0 8px;
    font-size: 24px;
    font-weight: 800;
    color: #22312a;
    line-height: 1.2;
    letter-spacing: -0.01em;
}

.gl-espace-subtitle {
    margin: 0 0 22px;
    font-size: 14px;
    color: #7d8a82;
    line-height: 1.5;
}

.gl-espace-hero-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: #e3efe8;
    color: #1d6b4a;
    margin-bottom: 18px;
}

/* ---------- Formulaire ---------- */
.gl-espace-form .gl-espace-field {
    margin-bottom: 14px;
}

.gl-espace-field label {
    display: block;
    margin-bottom: 6px;
    font-size: 13px;
    font-weight: 600;
    color: #44524b;
}

.gl-espace-input {
    width: 100%;
    padding: 12px 14px;
    font-size: 14px;
    color: #22312a;
    background: #fff;
    border: 1px solid #dfe7e2;
    border-radius: 10px;
    box-sizing: border-box;
    line-height: 1.4;
    transition: border-color 0.15s, box-shadow 0.15s;
}

.gl-espace-input::placeholder {
    color: #a3b0a8;
}

.gl-espace-input:focus {
    border-color: #1d6b4a;
    box-shadow: 0 0 0 3px rgba(29, 107, 74, 0.12);
    outline: none;
}

.gl-espace-password {
    display: flex;
    gap: 8px;
    align-items: stretch;
}

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

.gl-espace-eye {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    border: 1px solid #dfe7e2;
    border-radius: 10px;
    background: #fff;
    color: #7d8a82;
    cursor: pointer;
    flex-shrink: 0;
    transition: background 0.15s, color 0.15s;
}

.gl-espace-eye:hover,
.gl-espace-eye[aria-pressed="true"] {
    background: #eef2ef;
    color: #1d6b4a;
}

.gl-espace-forgot {
    margin: -4px 0 16px;
    text-align: right;
}

.gl-espace-forgot button {
    background: none;
    border: none;
    padding: 0;
    font-size: 13px;
    font-weight: 600;
    color: #1d6b4a;
    cursor: pointer;
}

.gl-espace-forgot button:hover {
    text-decoration: underline;
}

/* ---------- Boutons ---------- */
.gl-espace-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px;
    font-size: 15px;
    font-weight: 700;
    border-radius: 12px;
    cursor: pointer;
    text-decoration: none;
    box-sizing: border-box;
    transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.gl-espace-btn-primary {
    background: #1d6b4a;
    border: 1px solid #1d6b4a;
    color: #fff;
}

.gl-espace-btn-primary:hover,.gl-espace-btn-primary:focus,.gl-espace-btn-primary:active {
    background: #175a3d;
    border-color: #175a3d;
    color: #fff;
}

.gl-espace-btn-outline {
    background: #fff;
    border: 1px solid #dfe7e2;
    color: #22312a;
}

.gl-espace-btn-outline:hover,.gl-espace-btn-outline:active,.gl-espace-btn-outline:focus{
    background: #f4f7f5 !important;
    border-color: #1d6b4a !important;
    color: #1d6b4a !important;
}

/* ---------- Alertes / infos ---------- */
.gl-espace-alert {
    padding: 12px 14px;
    border-radius: 10px;
    font-size: 13px;
    margin-bottom: 16px;
}

.gl-espace-alert-error {
    background: #fdecea;
    border: 1px solid #f2c4bf;
    color: #a93c32;
}

.gl-espace-alert-success {
    background: #e3efe8;
    border: 1px solid #bcd9c9;
    color: #1d6b4a;
}

.gl-espace-info {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 18px;
    padding: 14px;
    background: #e9f1ec;
    border-radius: 12px;
}

.gl-espace-info-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 10px;
    background: #fff;
    color: #1d6b4a;
    flex-shrink: 0;
}

.gl-espace-info p {
    margin: 0;
    font-size: 13px;
    line-height: 1.45;
    color: #44524b;
}

/* ---------- Onglets ---------- */
.gl-espace-tabs {
    display: flex;
    gap: 22px;
    border-bottom: 1px solid #e2e8e4;
    margin-bottom: 20px;
}

.gl-espace-tab {
    background: none;
    border: none;
    padding: 0 0 10px;
    font-size: 14px;
    font-weight: 700;
    color: #7d8a82;
    cursor: pointer;
    position: relative;
    background: unset !important;
}

.gl-espace-tab::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: -1px;
    height: 2px;
    background: transparent;
    border-radius: 2px;
}

.gl-espace-tab.active {
    color: #1d6b4a;
}

.gl-espace-tab.active::after {
    background: #1d6b4a;
}

/* ---------- Cartes tournée ---------- */
.gl-espace-card {
    background: #fff;
    border: 1px solid #e6ece8;
    border-radius: 16px;
    padding: 18px;
    margin-bottom: 16px;
}

.gl-espace-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 10px;
}

.gl-espace-card-head .gl-espace-eyebrow {
    margin: 0;
}

.gl-espace-card-title {
    margin: 0 0 6px;
    font-size: 18px;
    font-weight: 800;
    color: #22312a;
}

.gl-espace-card-meta {
    margin: 0 0 10px;
    font-size: 13px;
    color: #7d8a82;
}

.gl-espace-card-stats {
    display: flex;
    gap: 18px;
    margin: 0 0 14px;
    font-size: 13px;
    font-weight: 600;
    color: #44524b;
}

.gl-espace-progress {
    margin-bottom: 16px;
}

.gl-espace-progress p {
    display: flex;
    justify-content: space-between;
    margin: 0 0 8px;
    font-size: 12px;
    font-weight: 600;
    color: #44524b;
}

.gl-espace-progress p span {
    color: #1d6b4a;
}

.gl-espace-progress-track {
    height: 8px;
    background: #e9f1ec;
    border-radius: 6px;
    overflow: hidden;
}

.gl-espace-progress-fill {
    height: 100%;
    background: #1d6b4a;
    border-radius: 6px;
    transition: width 0.3s;
}

/* ---------- Badges ---------- */
.gl-espace-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.02em;
    white-space: nowrap;
}

.gl-espace-badge-en_cours {
    background: #e3efe8;
    color: #1d6b4a;
}

.gl-espace-badge-en_attente {
    background: #fdf3e3;
    color: #9a6a1d;
}

.gl-espace-badge-pret_a_livrer {
    background: #e3ecf8;
    color: #1d4e89;
}

.gl-espace-badge-terminee {
    background: #eef0ee;
    color: #6b7770;
}

/* ---------- Liste des arrêts ---------- */
.gl-espace-back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 20px;
    font-size: 14px;
    font-weight: 600;
    color: #1d6b4a;
    text-decoration: none;
}

.gl-espace-back:hover {
    text-decoration: underline;
}

.gl-espace-back-spaced {
    margin: 4px 0 14px;
}

.gl-espace-tournee-head {
    margin-bottom: 8px;
}

.gl-espace-stops-card {
    padding: 0;
    background: transparent;
    border: none;
    border-radius: 0;
}

.gl-espace-stops-title {
    margin-bottom: 14px;
}

.gl-espace-filter-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 14px;
}

.gl-espace-filter-tab {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: #fff;
    border: 1px solid #e6ece8;
    border-radius: 999px;
    font-family: inherit;
    font-size: 12px;
    font-weight: 600;
    color: #44524b;
    cursor: pointer;
    transition: background .15s, border-color .15s, color .15s;
}

.gl-espace-filter-tab:hover {
    border-color: #1d6b4a !important;
    background: #1d6b4a !important;
}

.gl-espace-filter-tab.active {
    background: #1d6b4a !important;
    border-color: #1d6b4a;
    color: #fff;
}

.gl-espace-filter-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 999px;
    background: #eef2f0;
    color: #44524b;
    font-size: 11px;
    font-weight: 700;
}

.gl-espace-filter-tab.active .gl-espace-filter-count {
    background: rgba(255, 255, 255, 0.25);
    color: #fff;
}

.gl-espace-stops {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.gl-espace-stop {
    border: 1px solid #e6ece8;
    border-radius: 12px;
    background: #fff;
    overflow: hidden;
    transition: border-color .15s, box-shadow .15s;
}

.gl-espace-stop.open {
    border-color: #cfdad3;
    box-shadow: 0 2px 10px rgba(34, 49, 42, .07);
}

.gl-stop-badge {
    display: inline-block;
    padding: 2px 9px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 600;
    line-height: 1.5;
    white-space: nowrap;
}

.gl-stop-badge-en_attente,
.gl-stop-badge-next {
    background: #f8dda7;
    color: #94660c;
}

.gl-stop-badge-en_cours {
    background: #c6e1c6;
    color: #5b841b;
}

.gl-stop-badge-valide {
    background: #c8d7e1;
    color: #2e4453;
}

.gl-stop-badge-non_livrable {
    background: #eba3a3;
    color: #761919;
}

.gl-espace-stop.gl-espace-stop-valide {
    border-color: #1d6b4a;
}

.gl-espace-stop.gl-espace-stop-nl {
    border-color: #e31212;
}

.gl-espace-stop-flash {
    border-color: #1d6b4a;
    box-shadow: 0 0 0 3px rgba(29, 107, 74, 0.2);
    transition: border-color .3s, box-shadow .3s;
}

.gl-espace-stop-toggle {
    display: flex;
    align-items: center;
    gap: 14px;
    width: 100%;
    padding: 14px 6px;
    background: none;
    border: none;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
    text-align: left;
    font-family: inherit;
    font-size: inherit;
    background: white !important;
    margin: 0 0 4px 0;
}

.gl-espace-stop-chevron {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #a3b0a8;
    flex-shrink: 0;
    transition: transform 0.2s;
}

.gl-espace-stop.open .gl-espace-stop-chevron {
    transform: rotate(180deg);
    color: #1d6b4a;
}

.gl-espace-stop-detail {
    padding: 0;
}

.gl-espace-stop-detail .gl-chauffeur-client-card {
    background: #f8faf9;
    border: none;
    border-top: 1px solid #e6ece8;
    border-radius: 0;
    padding: 16px;
    margin-bottom: 0;
}

.gl-espace-stop-detail .gl-chauffeur-client-card h2 {
    font-size: 16px;
    margin: 0 0 8px;
    color: #22312a;
    text-align: center;
}

.gl-espace-stop-detail .gl-chauffeur-client-card p {
    font-size: 13px;
    color: #44524b;
    margin: 6px 0;
    line-height: 1.6;
}

.gl-espace-stop-adr {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.gl-espace-stop-gps {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
    margin: 0;
    padding: 5px 10px;
    font-size: 12px;
}

.gl-espace-delivery {
    margin-top: 12px;
    padding-top: 12px;
    padding:10px;
}

.gl-espace-delivery-start {
    display: flex;
    justify-content: flex-end;
}

.gl-delivery-block {
    margin-bottom: 14px;
}

.gl-delivery-block .gl-espace-eyebrow {
    margin: 0 0 6px;
}

.gl-delivery-tabs {
    display: flex;
    gap: 4px;
    margin-bottom: 12px;
    border-bottom: 1px solid #e6ece8;
}

.gl-delivery-tab {
    padding: 8px 12px;
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    font-family: inherit;
    font-size: 13px;
    font-weight: 600;
    color: #44524b !important;
    cursor: pointer;
    background-color: white !important;
}

.gl-delivery-tab.active {
    color: #1d6b4a;
    border-bottom-color: #1d6b4a;
}

.gl-delivery-note {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #d8e0da;
    border-radius: 10px;
    font-size: 13px;
    font-family: inherit;
    resize: vertical;
    box-sizing: border-box;
}

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

.gl-delivery-photo-thumb {
    display: inline-block;
    width: 64px;
    height: 64px;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #e6ece8;
}

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

.gl-delivery-photo-input {
    font-size: 13px;
    width: 100%;
}

.gl-espace-stop-volumes {
    width: 100%;
    border-collapse: collapse;
    margin: 4px 0 12px;
    table-layout: fixed;
}

.gl-espace-stop-volumes th,
.gl-espace-stop-volumes td {
    padding: 6px 8px;
    border: 1px solid #e6ece8;
    font-size: 13px;
    text-align: center;
}

.gl-espace-stop-volumes th {
    background: #f4f7f5;
    color: #22312a;
    font-weight: 600;
}

.gl-delivery-volumes select {
    width: 100%;
    padding: 6px 4px;
    border: 1px solid #d8e0da;
    border-radius: 8px;
    font-size: 13px;
    font-family: inherit;
    background: #fff;
    color: #22312a;
}

.gl-delivery-volumes select.gl-delivery-volume-error {
    border-color: #c0392b;
    background: #fdecea;
    color: #c0392b;
}

.gl-delivery-dropzone {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 18px 14px;
    margin-bottom: 10px;
    border: 2px dashed #cfdad3;
    border-radius: 12px;
    background: #f8faf9;
    color: #44524b;
    text-align: center;
    cursor: pointer;
    transition: border-color .15s, background .15s;
}

.gl-delivery-dropzone:hover,
.gl-delivery-dropzone:focus,
.gl-delivery-dropzone.gl-is-dragover {
    border-color: #1d6b4a;
    background: #eef5f1;
    color: #1d6b4a;
    outline: none;
}

.gl-delivery-dropzone-icon {
    color: #1d6b4a;
    margin-bottom: 2px;
}

.gl-delivery-dropzone-label {
    font-size: 13px;
    font-weight: 600;
}

.gl-delivery-dropzone-hint {
    font-size: 11.5px;
    opacity: .7;
}

.gl-delivery-dropzone.gl-is-uploading {
    pointer-events: none;
    opacity: .6;
}

.gl-delivery-dropzone.gl-is-uploading .gl-delivery-dropzone-loading {
    display: inline !important;
}

.gl-delivery-pane[data-dpane="signature"] {
    text-align: center;
}

.gl-delivery-pane[data-dpane="signature"] .gl-espace-btn {
    width: auto;
    margin: 0 auto;
}

.gl-delivery-pane[data-dpane="signature"] .gl-delivery-sign-preview {
    max-width: 320px;
    margin-left: auto;
    margin-right: auto;
}

.gl-delivery-pane[data-dpane="signature"] .gl-delivery-sign-preview img {
    margin: 0 auto;
}

.gl-delivery-sign-preview {
    margin-bottom: 10px;
    background: #fff;
    border: 1px solid #e6ece8;
    border-radius: 10px;
    padding: 8px;
}

.gl-delivery-sign-preview img {
    max-width: 100%;
    max-height: 140px;
    display: block;
}

.gl-espace-sign-modal {
    position: fixed;
    inset: 0;
    z-index: 100000;
}

.gl-espace-sign-modal-overlay {
    position: absolute;
    inset: 0;
    background: #fff;
}

.gl-espace-sign-modal-content {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    background: #fff;
    padding: 18px;
    box-sizing: border-box;
}

.gl-espace-sign-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
    flex-shrink: 0;
}

.gl-espace-sign-modal-header h3 {
    margin: 0;
    font-size: 16px;
    color: #22312a;
}

.gl-espace-sign-modal-close {
    background: none;
    border: none;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    color: #44524b;
}

#gl-espace-sign-canvas {
    flex: 1;
    width: 100%;
    min-height: 0;
    background: #fff;
    border: 1px solid #d8e0da;
    border-radius: 10px;
    touch-action: none;
    display: block;
}

.gl-espace-sign-modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    margin-top: 12px;
    flex-shrink: 0;
}
.gl-espace-delivery-form{
    min-height: 315px;
}
.gl-espace-delivery-actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    margin-top: 4px;
}

.gl-espace-delivery-actions .gl-espace-btn {
    padding: 10px 16px;
    font-size: 13px;
    width: auto;
}
.gl-espace-delivery-done {

    min-height: 280px;
}
.gl-espace-delivery-done .gl-delivery-done-date {
    font-weight: 700;
    color: #1d6b4a;
    margin: 0 0 8px;

}

.gl-delivery-done-signature {
    margin-top: 8px;
    background: #fff;
    border: 1px solid #e6ece8;
    border-radius: 10px;
    padding: 8px;
}

.gl-delivery-done-signature img {
    max-width: 100%;
    display: block;
    height:180px;
}

.gl-espace-stop-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #eef2ef;
    color: #44524b;
    font-size: 14px;
    font-weight: 700;
    flex-shrink: 0;
}

.gl-espace-stop-num-done {
    background: #dcebe2;
    color: #1d6b4a;
}

.gl-espace-stop-num-nl {
    background: #fbe4e4;
    color: #d63638;
}

.gl-espace-stop-info {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.gl-espace-stop-info strong {
    font-size: 15px;
    font-weight: 700;
    color: #22312a;
}

.gl-espace-stop-meta {
    font-size: 13px;
    color: #7d8a82;
    margin-top: 2px;
}

.gl-espace-empty {
    padding: 18px 0;
    font-size: 14px;
    color: #7d8a82;
    text-align: center;
}

/* ---------- Livraison encapsulée ---------- */
.gl-espace-body-flush {
    padding: 16px 16px 24px;
}

.gl-espace-livraison .gl-chauffeur-wrap {
    max-width: none;
    margin: 0;
    padding: 16px;
    background: #fff;
    border: 1px solid #e6ece8;
    border-radius: 16px;
}

@media screen and (max-width: 520px) {
    .gl-espace {
        margin: 0 auto;
        border-radius: 0;
        border-left: none;
        border-right: none;
        min-height: 100vh;
        box-shadow: none;
    }
}


/* ---------- Bandeau demande de localisation ---------- */
.gl-espace-location-banner {
    position: fixed;
    left: 16px;
    right: 16px;
    bottom: 16px;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    max-width: 480px;
    margin: 0 auto;
    padding: 12px 16px;
    background: #22312a;
    color: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0,0,0,.25);
    font-size: 14px;
}

.gl-espace-location-banner button {
    flex-shrink: 0;
    padding: 8px 14px;
    border: none;
    border-radius: 8px;
    background: #fff;
    color: #22312a;
    font-weight: 600;
    cursor: pointer;
}


/* ===== 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;
}

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

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

/* ===== Steppers palettes (- / +) ===== */
.gl-vol-stepper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
}

.gl-vol-btn {
    width: 52px;
    height: 52px;
    border: 1px solid #ccd0d4;
    border-radius: 10px;
    background: #fff;
    color: #1d6b4a;
    font-size: 28px;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
    padding: 0;
    flex-shrink: 0;
    user-select: none;
}

.gl-vol-btn:active {
    transform: scale(0.94);
}

.gl-vol-btn:hover {
    background: #1d6b4a;
    border-color: #1d6b4a;
    color: #fff;
}

.gl-vol-input {
    width: 26px;
    height: 52px;
    text-align: center;
    border: none;
    border-radius: 0;
    padding: 0;
    font-size: 16px;
    font-weight: 700;
    color: #22312a;
    -moz-appearance: textfield;
    appearance: textfield;
}

.gl-vol-input::-webkit-outer-spin-button,
.gl-vol-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* ===== Notes de livraison ===== */
.gl-notes-block {
    margin-top: 14px;
    border-top: 1px dashed #e6ece8;
    padding-top: 12px;
}

.gl-notes-list {
    list-style: none;
    margin: 0 0 10px;
    padding: 0;
}

.gl-note-item {
    background: #f7f9f8;
    border-left: 3px solid #1d6b4a;
    border-radius: 6px;
    padding: 8px 10px;
    margin-bottom: 6px;
}

.gl-note-text {
    display: block;
    font-size: 13px;
    color: #22312a;
    white-space: pre-wrap;
}

.gl-note-meta {
    display: block;
    font-size: 11px;
    color: #64748b;
    margin-top: 3px;
}

.gl-note-add {
    display: flex;
    gap: 8px;
    margin: 0 0 13px 0;
}

.gl-note-input {
    flex: 1;
    padding: 8px 10px !important;
    border: 1px solid #ccd0d4 !important;
    border-radius: 8px !important;
    font-size: 13px;
}

/* ===== Modale tourn�e termin�e ===== */
.gl-espace-tournee-done-content {
    text-align: center;
    max-width: 320px;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 28px 22px;
    margin: auto;
    justify-content: center;
}

.gl-espace-tournee-done-content .gl-espace-sign-modal-header {
    justify-content: center;
    width: 100%;
    padding: 0;
    margin-bottom: 12px;
    border-bottom: none;
}

.gl-espace-tournee-done-text {
    margin: 0 0 20px;
    color: #4b5563;
    font-size: 14px;
    line-height: 1.5;
}

.gl-espace-tournee-done-content .gl-espace-sign-modal-footer {
    justify-content: center;
    width: 100%;
}

/* ===== Nouvelle tourn�e ajout�e dynamiquement ===== */
.gl-espace-card-new {
    animation: gl-card-new 2s ease-out;
}

@keyframes gl-card-new {
    0% { opacity: 0; transform: translateY(-8px); box-shadow: 0 0 0 3px rgba(29,107,74,0.45); }
    100% { opacity: 1; transform: translateY(0); }
}
