/* ============================================================================
   JAF design-system styles.

   The `.eve-` design language is defined per-page as inline <style> blocks
   elsewhere (e.g. EditEventBooking, AssignQCrew). The JAF pages reuse the same
   class names but render no <style> of their own, so this shared sheet supplies
   the rules. Every selector is scoped under `.jaf-surface` (a marker class on
   each JAF page root) so it can never affect the other pages that also use
   `.eve-` classes. Tokens mirror EditEventBooking (blue #0d6efd accent, white
   rounded cards, gradient buttons) for visual consistency.
   ============================================================================ */

.jaf-surface { color: #1a1d23; }

/* ── Header: title + meta + actions ───────────────────────────────────────── */
.jaf-surface .eve-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1.5rem;
    margin-bottom: 1.25rem;
    flex-wrap: wrap;
}
.jaf-surface .eve-header-main { flex: 1; min-width: 0; }
.jaf-surface .eve-header-actions {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    align-self: flex-start;
}
.jaf-surface .eve-title {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    font-size: 1.75rem;
    font-weight: 700;
    color: #1a1d23;
    letter-spacing: -0.02em;
    margin: 0 0 0.55rem;
    line-height: 1.2;
}
.jaf-surface .eve-title i { color: #0d6efd; font-size: 1.35rem; }
.jaf-surface .eve-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.4rem 1.25rem;
    color: #6c757d;
    font-size: 0.9rem;
}
.jaf-surface .eve-meta-item { display: inline-flex; align-items: center; gap: 0.4rem; }
.jaf-surface .eve-meta-item i { color: #0d6efd; opacity: 0.65; font-size: 0.85rem; }

/* ── Cards (panel = header + body; footer is a standalone action bar) ──────── */
.jaf-surface .eve-card {
    background: #fff;
    border: 1px solid #eef0f3;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,0.03),
                0 6px 18px rgba(13, 110, 253, 0.04);
}
.jaf-surface .eve-card-header {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid #eef0f3;
    background: linear-gradient(180deg, #fbfcfe 0%, #f7f9fc 100%);
}
.jaf-surface .eve-card-header h5 {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 700;
    color: #1a1d23;
    letter-spacing: -0.01em;
    display: flex;
    align-items: center;
    gap: 0.6rem;
}
.jaf-surface .eve-card-header h5 i,
.jaf-surface .eve-card-header > i:first-child { color: #0d6efd; font-size: 1.05rem; }
.jaf-surface .eve-card-body { padding: 1.5rem 1.75rem; }

/* Action bar at the foot of a form (sibling of the cards, not inside one) */
.jaf-surface .eve-card-footer {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    flex-wrap: wrap;
    padding: 1.1rem 0 0;
    margin-top: 1.5rem;
    border-top: 1px solid #eef0f3;
}

/* JAF edit/respond forms: centre the action buttons under the document, enlarge them */
.jaf-surface.jaf-edit-page .eve-card-footer,
.jaf-surface.jaf-respond-page .eve-card-footer { justify-content: center; }
.jaf-surface.jaf-edit-page .eve-card-footer .eve-btn,
.jaf-surface.jaf-respond-page .eve-card-footer .eve-btn {
    padding: 0.72rem 1.7rem;
    font-size: 1rem;
}

/* ── Buttons (canonical look mirrored from EditEventBooking) ───────────────── */
.jaf-surface .eve-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.6rem 1.2rem;
    font-size: 0.92rem;
    font-weight: 600;
    line-height: 1.2;
    border-radius: 0.65rem;
    border: 1px solid transparent;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease,
                box-shadow 0.18s ease, transform 0.15s ease;
    white-space: nowrap;
}
.jaf-surface .eve-btn:hover { transform: translateY(-1px); }
.jaf-surface .eve-btn:active { transform: translateY(0); }
.jaf-surface .eve-btn:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }
.jaf-surface .eve-btn:focus-visible { outline: 0; box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.20); }
.jaf-surface .eve-btn i { font-size: 0.88rem; }

.jaf-surface .eve-btn--primary {
    background: linear-gradient(135deg, #0d6efd 0%, #0a58ca 100%);
    color: #fff;
    box-shadow: 0 3px 10px rgba(13, 110, 253, 0.28), 0 1px 2px rgba(0,0,0,0.05);
}
.jaf-surface .eve-btn--primary:hover { background: linear-gradient(135deg, #1574fd 0%, #0d62db 100%); }

.jaf-surface .eve-btn--success {
    background: linear-gradient(135deg, #16a34a 0%, #15803d 100%);
    color: #fff;
    box-shadow: 0 3px 10px rgba(22, 163, 74, 0.28);
}
.jaf-surface .eve-btn--success:hover { background: linear-gradient(135deg, #1bb255 0%, #17924a 100%); }

.jaf-surface .eve-btn--danger {
    background: linear-gradient(135deg, #ef4444 0%, #b91c1c 100%);
    color: #fff;
    box-shadow: 0 3px 10px rgba(220, 38, 38, 0.28);
}
.jaf-surface .eve-btn--danger:hover { background: linear-gradient(135deg, #f15252 0%, #c1281f 100%); }

.jaf-surface .eve-btn--warning {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: #fff;
    box-shadow: 0 3px 10px rgba(217, 119, 6, 0.26);
}
.jaf-surface .eve-btn--warning:hover { background: linear-gradient(135deg, #fbab1f 0%, #e5820c 100%); }

.jaf-surface .eve-btn--info {
    background: #fff;
    color: #0d6efd;
    border-color: #86b7fe;
}
.jaf-surface .eve-btn--info:hover { background: #e7f0ff; border-color: #0d6efd; color: #0a58ca; }

.jaf-surface .eve-btn--base {
    background: #fff;
    color: #495057;
    border-color: #ced4da;
}
.jaf-surface .eve-btn--base:hover { background: #f1f3f5; border-color: #adb5bd; color: #2c3e50; }

.jaf-surface .eve-btn--ghost {
    background: #fff;
    color: #495057;
    border-color: #dee2e6;
}
.jaf-surface .eve-btn--ghost:hover { background: #f8f9fa; border-color: #adb5bd; color: #2c3e50; }

/* Dialog action row — right-aligned buttons under modal content. The Telerik
   Window carries the `jaf-surface` marker class so these rules (and the button
   styles above) apply inside the relocated window DOM. */
.jaf-surface .eve-modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 0.5rem;
    margin-top: 1.25rem;
}

/* ── Inline banners ───────────────────────────────────────────────────────── */
.jaf-surface .eve-banner {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.85rem 1.1rem;
    border-radius: 0.75rem;
    font-size: 0.92rem;
    max-width: 920px;
    margin: 0 auto;
}
.jaf-surface .eve-banner i { font-size: 1.05rem; flex-shrink: 0; }
.jaf-surface .eve-banner--info {
    background: linear-gradient(180deg, #eff6ff 0%, #dbeafe 100%);
    border: 1px solid #93c5fd;
    color: #1e40af;
}
.jaf-surface .eve-banner--info i { color: #2563eb; }
.jaf-surface .eve-banner--warning {
    background: linear-gradient(180deg, #fffbeb 0%, #fef3c7 100%);
    border: 1px solid #fcd34d;
    color: #92400e;
}
.jaf-surface .eve-banner--warning i { color: #d97706; }
.jaf-surface .eve-banner--muted {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    color: #6c757d;
}
.jaf-surface .eve-banner--muted i { color: #adb5bd; }
.jaf-surface .eve-banner strong { font-weight: 700; }

/* ── Loading + empty states ───────────────────────────────────────────────── */
.jaf-surface .eve-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.85rem;
    padding: 4rem 1rem;
    color: #6c757d;
    font-size: 1rem;
}
.jaf-surface .eve-loading i { font-size: 1.5rem; color: #0d6efd; }
.jaf-surface .eve-empty {
    text-align: center;
    padding: 3.5rem 1.5rem;
    color: #6c757d;
    background: #fff;
    border: 1px solid #eef0f3;
    border-radius: 1rem;
}
.jaf-surface .eve-empty i { color: #adb5bd; }

/* ── Responsive: stack the action bar on narrow screens ───────────────────── */
@media (max-width: 576px) {
    .jaf-surface .eve-card-footer { flex-direction: column; align-items: stretch; }
    .jaf-surface .eve-card-footer .eve-btn { width: 100%; }
    .jaf-surface .eve-header { flex-direction: column; }
}

/* ============================================================================
   JAF edit form — laid out to mirror the paper "Job Acknowledgement Form".
   ============================================================================ */

/* Slim admin nav row above the document */
.jaf-surface .jaf-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 1.25rem;
}
.jaf-surface .jaf-nav-status { display: inline-flex; align-items: center; gap: 0.85rem; }

/* "Create from Event" picker — centred above the document */
.jaf-surface .jaf-eventpicker {
    max-width: 540px;
    margin: 0 auto 1.6rem;
    text-align: center;
}
.jaf-surface .jaf-eventpicker .form-label { font-weight: 600; display: block; margin-bottom: 0.35rem; }
.jaf-surface .jaf-eventpicker-hint { margin-top: 0.45rem; font-size: 0.82rem; color: #6c757d; }
.jaf-surface .jaf-eventpicker-hint i { color: #0d6efd; opacity: 0.7; }

/* The form "document" */
.jaf-surface .jaf-doc {
    max-width: 920px;
    margin: 0 auto;
    background: #fff;
    border: 1px solid #eef0f3;
    border-radius: 1rem;
    padding: 2rem 2.25rem 2.25rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.03), 0 6px 18px rgba(13, 110, 253, 0.04);
}
.jaf-surface .jaf-doc-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.25rem;
}
.jaf-surface .jaf-doc-title {
    flex: 1;
    text-align: center;
    margin: 0.55rem 0 0;
    font-size: 1.85rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.01em;
    color: #1a1d23;
}

/* Q Radio logo (top-right); a ghost spacer of equal width on the left keeps the title centred */
.jaf-surface .jaf-logo-img {
    flex-shrink: 0;
    width: 88px;
    height: 88px;
    object-fit: contain;
}
.jaf-surface .jaf-logo--ghost {
    flex-shrink: 0;
    width: 88px;
}

/* Bordered label/value tables (Header + Logistics) */
.jaf-surface .jaf-table {
    border: 1px solid #20293a;
    border-radius: 0.4rem;
    overflow: hidden;
    margin-bottom: 1.75rem;
}
.jaf-surface .jaf-table:last-child { margin-bottom: 0; }
.jaf-surface .jaf-trow {
    display: grid;
    grid-template-columns: 320px 1fr;
    border-bottom: 1px solid #20293a;
}
.jaf-surface .jaf-trow:last-child { border-bottom: none; }
.jaf-surface .jaf-tlabel {
    display: flex;
    align-items: center;
    padding: 0.7rem 1rem;
    font-weight: 700;
    color: #1a1d23;
    background: #f8f9fb;
    border-right: 1px solid #20293a;
}
.jaf-surface .jaf-tcell {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.9rem;
    min-height: 58px;
}
/* Event Type: two checkbox sub-cells split by a divider, like the paper form */
.jaf-surface .jaf-tcell--split { padding: 0; display: grid; grid-template-columns: 1fr 1fr; }
/* Event Location: stack the input, result message and hint vertically (full width)
   instead of the default single-row cell. */
.jaf-surface .jaf-tcell--stack { flex-direction: column; align-items: stretch; }
.jaf-surface .jaf-checkcell {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.6rem 0.9rem;
}
.jaf-surface .jaf-checkcell + .jaf-checkcell { border-left: 1px solid #20293a; }
.jaf-surface .jaf-longdate { font-weight: 600; color: #0d6efd; white-space: nowrap; }

@media (max-width: 640px) {
    .jaf-surface .jaf-doc { padding: 1.25rem; }
    .jaf-surface .jaf-doc-title { font-size: 1.35rem; }
    .jaf-surface .jaf-logo-img { width: 56px; height: 56px; }
    .jaf-surface .jaf-logo--ghost { width: 56px; }
    .jaf-surface .jaf-trow { grid-template-columns: 1fr; }
    .jaf-surface .jaf-tlabel { border-right: none; border-bottom: 1px solid #20293a; }
    .jaf-surface .jaf-longdate { display: block; margin-top: 0.35rem; }
}

/* ── Edit layout: activity panel (left) + form document (right) ───────────── */
.jaf-surface .jaf-edit-layout {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    max-width: 1240px;
    margin: 0 auto;
}
.jaf-surface .jaf-edit-main { flex: 1 1 auto; min-width: 0; }

.jaf-surface .jaf-activity {
    flex: 0 0 270px;
    position: sticky;
    top: 1rem;
    background: #fff;
    border: 1px solid #eef0f3;
    border-radius: 14px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.03), 0 6px 18px rgba(13, 110, 253, 0.04);
    overflow: hidden;
}
.jaf-surface .jaf-activity-head {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.85rem 1.1rem;
    font-weight: 700;
    font-size: 0.95rem;
    color: #1a1d23;
    border-bottom: 1px solid #eef0f3;
    background: linear-gradient(180deg, #fbfcfe 0%, #f7f9fc 100%);
}
.jaf-surface .jaf-activity-head i { color: #0d6efd; }

/* Vertical timeline */
.jaf-surface .jaf-timeline { list-style: none; margin: 0; padding: 1rem 1.1rem 1.1rem; }
.jaf-surface .jaf-tl-item {
    position: relative;
    display: flex;
    gap: 0.7rem;
    padding-bottom: 1.1rem;
}
.jaf-surface .jaf-tl-item:last-child { padding-bottom: 0; }
.jaf-surface .jaf-tl-item:not(:last-child)::before {
    content: "";
    position: absolute;
    left: 12px;
    top: 26px;
    bottom: -2px;
    width: 2px;
    background: #eef0f3;
}
.jaf-surface .jaf-tl-dot {
    flex: 0 0 26px;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #eef2f7;
    color: #6c757d;
    font-size: 0.72rem;
    z-index: 1;
}
.jaf-surface .jaf-tl-body { display: flex; flex-direction: column; gap: 0.1rem; padding-top: 0.15rem; }
.jaf-surface .jaf-tl-label { font-weight: 600; font-size: 0.88rem; color: #1a1d23; line-height: 1.25; }
.jaf-surface .jaf-tl-time { font-size: 0.78rem; color: #6c757d; }
.jaf-surface .jaf-tl-note { font-size: 0.74rem; color: #adb5bd; font-style: italic; }

/* Per-milestone dot colours */
.jaf-surface .jaf-tl-item.is-created .jaf-tl-dot { background: #e7f1ff; color: #0d6efd; }
.jaf-surface .jaf-tl-item.is-saved .jaf-tl-dot { background: #eef2f7; color: #495057; }
.jaf-surface .jaf-tl-item.is-sent .jaf-tl-dot { background: #dcfce7; color: #16a34a; }
.jaf-surface .jaf-tl-item.is-reminder .jaf-tl-dot { background: #e0f2fe; color: #0284c7; }
.jaf-surface .jaf-tl-item.is-final .jaf-tl-dot { background: #fef3c7; color: #d97706; }
.jaf-surface .jaf-tl-item.is-agreed .jaf-tl-dot { background: #dcfce7; color: #15803d; }
.jaf-surface .jaf-tl-item.is-declined .jaf-tl-dot { background: #fee2e2; color: #dc2626; }
.jaf-surface .jaf-tl-item.is-superseded .jaf-tl-dot { background: #e9ecef; color: #6c757d; }
.jaf-surface .jaf-tl-item.is-scheduled .jaf-tl-dot { background: #fff7ed; color: #ea580c; }
.jaf-surface .jaf-tl-item.is-scheduled .jaf-tl-label { color: #b45309; }

/* Stack the activity panel below the form on narrow screens */
@media (max-width: 992px) {
    .jaf-surface .jaf-edit-layout { flex-direction: column; }
    .jaf-surface .jaf-activity { position: static; flex: 1 1 auto; width: 100%; order: 2; }
    .jaf-surface .jaf-edit-main { order: 1; width: 100%; }
}

/* ── Response PIN confirmation panel (non-repudiation, R23) ───────────────── */
.jaf-surface .jaf-pin-panel {
    margin-top: 1rem;
    padding: 1.25rem 1.5rem;
    border: 1px solid #e3d7f3;
    border-left: 4px solid #5f2595;
    border-radius: 10px;
    background: #faf7fe;
}
.jaf-surface .jaf-pin-title {
    margin: 0 0 0.35rem;
    font-size: 1.02rem;
    font-weight: 700;
    color: #4a1d75;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.jaf-surface .jaf-pin-sub { margin: 0 0 0.85rem; font-size: 0.9rem; color: #495057; line-height: 1.5; }
.jaf-surface .jaf-pin-row { display: flex; gap: 0.6rem; flex-wrap: wrap; align-items: stretch; }
.jaf-surface .jaf-pin-input {
    flex: 0 0 auto;
    width: 11rem;
    padding: 0.5rem 0.75rem;
    font-size: 1.4rem;
    font-weight: 700;
    letter-spacing: 0.55rem;
    text-align: center;
    color: #2c3e50;
    border: 1px solid #c9b6e6;
    border-radius: 8px;
    background: #ffffff;
}
.jaf-surface .jaf-pin-input:focus-visible { outline: 0; border-color: #5f2595; box-shadow: 0 0 0 0.2rem rgba(95, 37, 149, 0.18); }
.jaf-surface .jaf-pin-actions { display: flex; gap: 0.6rem; margin-top: 0.85rem; }
.jaf-surface .jaf-pin-actions .eve-btn { padding: 0.4rem 0.9rem; font-size: 0.82rem; }

@media (max-width: 575px) {
    .jaf-surface .jaf-pin-input { width: 100%; }
    .jaf-surface .jaf-pin-row .eve-btn { width: 100%; }
}

/* ── Event Location → distance/travel-time calculator (JafEdit) ───────────── */
.jaf-surface .jaf-geo { display: flex; flex-direction: column; gap: 0.5rem; align-items: stretch; }
.jaf-surface .jaf-geo-btn { align-self: flex-start; white-space: nowrap; }
.jaf-surface .jaf-geo-msg { font-size: 0.85rem; display: flex; align-items: center; gap: 0.4rem; }
.jaf-surface .jaf-geo-msg--ok { color: #15803d; }
.jaf-surface .jaf-geo-msg--error { color: #dc2626; }
.jaf-surface .jaf-geo-hint { font-size: 0.78rem; color: #6c757d; }

/* Event Location address-lookup dropdown (mirrors the booking form) */
.jaf-surface .jaf-geo-input { position: relative; width: 100%; }
.jaf-surface .dropdown-suggestions {
    position: absolute; top: 100%; left: 0; right: 0;
    background: #fff; border: 1px solid #ced4da; border-top: none;
    border-radius: 0 0 0.25rem 0.25rem; max-height: 300px; overflow-y: auto;
    z-index: 1000; box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}
.jaf-surface .dropdown-suggestions .dropdown-item {
    padding: 0.75rem 1rem; cursor: pointer; border-bottom: 1px solid #f0f0f0;
    transition: background-color 0.2s ease;
}
.jaf-surface .dropdown-suggestions .dropdown-item:last-child { border-bottom: none; }
.jaf-surface .dropdown-suggestions .dropdown-item:hover { background-color: #f8f9fa; }
.jaf-surface .suggestion-text { font-weight: 500; color: #212529; margin-bottom: 0.25rem; }
.jaf-surface .suggestion-description { font-size: 0.875rem; color: #6c757d; }

/* Reopen-map link inside the success message */
.jaf-surface .jaf-geo-maplink {
    border: none; background: transparent; color: #0d6efd; cursor: pointer;
    font-size: 0.82rem; padding: 0 0 0 0.5rem;
    display: inline-flex; align-items: center; gap: 0.3rem;
}
.jaf-surface .jaf-geo-maplink:hover { text-decoration: underline; }

/* ── Route map: closable panel to the right of the form ───────────────────── */
/* Give the layout extra room when the map is open so the form isn't squeezed. */
.jaf-surface .jaf-edit-layout.has-map { max-width: 1640px; }

.jaf-surface .jaf-map-panel {
    flex: 0 0 360px;
    position: sticky;
    top: 1rem;
    background: #fff;
    border: 1px solid #eef0f3;
    border-radius: 14px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.03), 0 6px 18px rgba(13, 110, 253, 0.04);
    overflow: hidden;
}
.jaf-surface .jaf-map-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.55rem;
    padding: 0.7rem 0.95rem;
    font-weight: 700;
    font-size: 0.92rem;
    color: #1a1d23;
    border-bottom: 1px solid #eef0f3;
    background: linear-gradient(180deg, #fbfcfe 0%, #f7f9fc 100%);
}
.jaf-surface .jaf-map-head i { color: #0d6efd; }
.jaf-surface .jaf-map-close {
    border: none;
    background: transparent;
    color: #6c757d;
    cursor: pointer;
    width: 28px;
    height: 28px;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    line-height: 1;
}
.jaf-surface .jaf-map-close:hover { background: #f1f3f5; color: #dc2626; }

.jaf-surface .jaf-map-summary { padding: 0.85rem 0.95rem; font-size: 0.85rem; }
.jaf-surface .jaf-map-loading { display: flex; align-items: center; gap: 0.5rem; color: #6c757d; }
.jaf-surface .jaf-map-line { display: flex; gap: 0.5rem; margin-bottom: 0.3rem; line-height: 1.35; }
.jaf-surface .jaf-map-k {
    flex: 0 0 30px;
    font-weight: 700;
    color: #6c757d;
    text-transform: uppercase;
    font-size: 0.68rem;
    padding-top: 0.18rem;
}
.jaf-surface .jaf-map-v { color: #1a1d23; word-break: break-word; }
.jaf-surface .jaf-map-stats { display: flex; gap: 1.5rem; margin: 0.65rem 0 0.2rem; }
.jaf-surface .jaf-map-stat { display: flex; flex-direction: column; }
.jaf-surface .jaf-map-stat-n { font-size: 1.0rem; font-weight: 800; color: #0d6efd; }
.jaf-surface .jaf-map-stat-l { font-size: 0.68rem; color: #6c757d; text-transform: uppercase; letter-spacing: 0.02em; }
.jaf-surface .jaf-map-roundtrip {
    margin-top: 0.5rem;
    font-size: 0.78rem;
    color: #15803d;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}
.jaf-surface .jaf-map-canvas { width: 100%; height: 340px; background: #eef2f7; }

/* Stack the map panel below the form on narrow screens */
@media (max-width: 992px) {
    .jaf-surface .jaf-map-panel { position: static; flex: 1 1 auto; width: 100%; order: 3; }
    .jaf-surface .jaf-edit-layout.has-map { max-width: 1240px; }
}
