/* Large sign-in emblem. Must be a block (it's a bare <span>, not a flex item like
   .cameo) so width/height/border-radius/margin:auto apply - otherwise it stays inline,
   the img renders at natural size, and the brass border paints as stray fragments. */
.emblem {
    display: block;
    width: 168px;
    height: 182px;
    margin: 0.5rem auto 0.85rem;
    border-radius: 50%;
    background: var(--ivory);
    border: 3px solid var(--brass);
    box-shadow: 0 0 0 1px var(--border), 0 12px 36px rgba(20, 19, 15, 0.16);
    overflow: hidden;
}

/* The same lockup centred under the large sign-in emblem. Light ground here, so the
   contrast rule applies: ink wordmark, text-safe --accent for the app name (never
   --brass, which is a fill token and too pale on paper). */
.emblem-text {
    align-items: center;
    margin: 0 0 1.75rem;
}

.emblem-text .title {
    color: var(--text);
}

.emblem-text .subtitle {
    color: var(--accent);
}

/* ---------- Route header ---------- */

.route-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
}

.route-head-main {
    min-width: 0;
}

.route-status {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin: 0;
}

.stops-count {
    color: var(--muted);
    font-weight: 600;
}

/* Round icon-only control (refresh) - sits opposite the greeting. */
.icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.6rem;
    height: 2.6rem;
    flex-shrink: 0;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: var(--surface);
    color: var(--text);
    font-size: 1.25rem;
    line-height: 1;
    box-shadow: 0 1px 2px rgba(20, 19, 15, 0.05);
}

.icon-btn:hover {
    border-color: var(--accent);
    color: var(--accent);
    text-decoration: none;
}

/* Header action group: shift toggle + share location, sized as one consistent pair. */
.route-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-bottom: 1.5rem;
}

.action-btn {
    flex: 1 1 0;
    min-width: 9rem;
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: 999px;
    padding: 0.6rem 1rem;
    border: 1px solid var(--border);
    background: var(--surface);
    color: var(--text);
    cursor: pointer;
    box-shadow: 0 1px 2px rgba(20, 19, 15, 0.05);
}

.action-btn:hover {
    border-color: var(--accent);
}

.action-btn:disabled { opacity: 0.6; cursor: default; }

.action-btn-on { background: #dcfce7; color: #15803d; border-color: #bbf7d0; }

.action-btn-off { background: var(--surface); color: var(--muted); }

/* ---------- Stops timeline ---------- */

.stops {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.stop {
    display: flex;
    gap: 0.85rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 0.85rem;
    padding: 1rem;
    box-shadow: 0 1px 2px rgba(20, 19, 15, 0.05);
}

.stop-next {
    border-color: var(--accent);
    box-shadow: 0 0 0 2px var(--accent-soft);
}

.stop-rail {
    flex-shrink: 0;
}

.stop-seq {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border-radius: 999px;
    background: var(--content-bg);
    color: var(--muted);
    font-weight: 700;
    font-size: 0.95rem;
}

.stop-pickup .stop-seq {
    background: #eae3d5;
    color: var(--ink);
}

.stop-dropoff .stop-seq {
    background: var(--accent-soft);
    color: var(--brass-dark);
}

.stop-body {
    flex: 1;
    min-width: 0;
}

.stop-top {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    flex-wrap: wrap;
    margin-bottom: 0.4rem;
}

.order-id {
    margin-left: auto;
    color: var(--muted);
    font-size: 0.85rem;
    font-weight: 600;
}

.stop-address {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0.1rem 0 0.5rem;
    line-height: 1.3;
}

.stop-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem 1rem;
}

.meta {
    font-size: 0.92rem;
}

.meta-label {
    color: var(--muted);
    text-transform: uppercase;
    font-size: 0.7rem;
    letter-spacing: 0.03em;
    font-weight: 700;
    margin-right: 0.2rem;
}

.stop-notes {
    margin: 0.6rem 0 0;
    padding: 0.5rem 0.7rem;
    background: var(--content-bg);
    border-radius: 0.5rem;
    font-size: 0.92rem;
}

.footnote {
    margin-top: 1.5rem;
    font-size: 0.9rem;
    line-height: 1.5;
}

/* ---------- Empty / all caught up ---------- */

.empty {
    text-align: center;
    padding: 3rem 1.5rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 0.85rem;
    box-shadow: 0 1px 2px rgba(20, 19, 15, 0.05);
}

/* Soft brass medallion behind the checkmark - ties the empty state to the brand. */
.empty-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 4rem;
    height: 4rem;
    margin-bottom: 1rem;
    border-radius: 50%;
    background: var(--accent-soft);
    color: var(--accent);
    font-size: 2.25rem;
    font-weight: 700;
    line-height: 1;
}

.empty-title {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0 0 0.35rem;
}

.empty .muted {
    margin: 0;
    max-width: 24rem;
    margin-inline: auto;
    line-height: 1.5;
}

/* ---------- Drop-off address editor ---------- */

.dropoff-confirm {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    margin-top: 0.7rem;
    padding: 0.7rem 0.8rem;
    background: var(--content-bg);
    border-radius: 0.6rem;
}

.dropoff-label {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    color: var(--muted);
    text-transform: uppercase;
    font-size: 0.7rem;
    letter-spacing: 0.03em;
    font-weight: 700;
}

.dropoff-row {
    display: flex;
    gap: 0.5rem;
    align-items: stretch;
    /* Positioned so the suggestion list hangs off the whole ROW rather than off the text field alone.
       The field is only ~217px on a 390px phone once the Save button takes its share, and a list that
       narrow wraps every address onto two lines. Spanning the row keeps them on one. */
    position: relative;
}

.input {
    padding: 0.6rem 0.75rem;
    font-size: 1rem;
    border: 1px solid var(--border);
    border-radius: 0.5rem;
    background: var(--surface);
    color: var(--text);
}

.input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-soft);
}

.dropoff-input {
    flex: 1;
    min-width: 0;
}

/* ---------- Address type-ahead (AddressField.razor) ---------- */

/* Takes over the flex slot .dropoff-input used to hold directly, so the row still lays out as
   [ field ][ Save ]. Deliberately NOT positioned: that leaves .dropoff-row as the list's containing
   block, so the list spans the full row width instead of the narrower field. */


/* Absolutely positioned rather than fixed-and-anchored (the console's approach): nothing on this page
   clips it, and an in-flow list rides with the page when the soft keyboard shifts the viewport, where a
   fixed one would fight it. */

/* Thumb-sized. min-height is the 44px tap target, not decoration - this is used one-handed, standing up. */


/* Flags a match the register couldn't pin to a specific building - pickable, but say so. */

/* Compact button variant - used for the inline "Save" next to the address field. */
.btn-sm {
    padding: 0.6rem 0.9rem;
    font-size: 0.9rem;
    flex: none;
    white-space: nowrap;
}

/* ---------- Confirm actions ---------- */

.stop-actions {
    margin-top: 0.85rem;
}

.btn-confirm {
    width: 100%;
}

/* ---------- Form controls + modal (lifted from the console's app.css) ----------
   The dispatch surface needs the same pickers and dialogs the console had - the driver app never did,
   which is why these weren't in the stylesheet this app was scaffolded from. Kept here rather than in
   packages/webauth because it is app-level presentation built on this app's own design tokens. */

.field-label {
    display: block;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: var(--muted);
    font-weight: 700;
    margin: 1rem 0 0.35rem;
}

.field-hint {
    margin: 0.35rem 0 0;
    font-size: 0.8rem;
    color: var(--muted);
    max-width: 32rem;
}

.select,
.input,
.textarea {
    width: 100%;
    max-width: 32rem;
    padding: 0.6rem 0.75rem;
    font-size: 0.95rem;
    border: 1px solid var(--border);
    border-radius: 0.5rem;
    background: var(--surface);
    color: var(--text);
    font-family: inherit;
}

.textarea {
    resize: vertical;
    min-height: 3.5rem;
}

.select:focus,
.input:focus,
.textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-soft);
}

/* A scrollable list of checkboxes (e.g. scoping a driver to specific merchants). */
.checkbox-list {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    max-width: 32rem;
    max-height: 12rem;
    overflow-y: auto;
    padding: 0.5rem 0.75rem;
    border: 1px solid var(--border);
    border-radius: 0.5rem;
    background: var(--surface);
}

.checkbox-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.95rem;
    cursor: pointer;
}

/* Tighter, full-bleed variants for inputs sitting inside repeating rows/grids. */
.field-label.tight {
    margin-top: 0.5rem;
}

.input.compact,
.select.compact {
    max-width: none;
    padding: 0.45rem 0.6rem;
    font-size: 0.9rem;
}

/* Address type-ahead (AddressInput.razor). The wrapper matches the width the bare .input would have taken
   so dropping the component into an existing field changes nothing visually until the list appears. */


/* .compact is set on the inner input, so the wrapper has to follow it to stay full-bleed in a subrow. */

/*
    Fallback placement, for browsers without CSS anchor positioning. Absolutely positioned inside
    .address-input, which means an ancestor with `overflow` CAN clip it - measured at 139px of a 146px
    list hidden when the field sits at the bottom edge of .modal-scroll. The @supports block below is
    the real placement; this is what's left when the platform can't do it.
*/

/*
    The listbox is a popup, so it must not be laid out as a child of whatever happens to contain the
    field. `position: fixed` makes its containing block the viewport, so no ancestor's `overflow` can
    clip it - which is the whole bug, solved structurally rather than by scrolling around it or padding
    the modal. Nothing in the console's modal chain sets transform/filter/contain, so nothing traps it.

    CSS anchor positioning then glues it back to its own input (each AddressInput emits a unique
    anchor-name), so there is no JS measuring positions and no reposition-on-scroll handler.
*/
@supports (anchor-name: --probe) {
    .address-suggestions {
        position: fixed;
        top: anchor(bottom);
        left: anchor(left);
        right: auto;
        width: anchor-size(width);
        margin-top: 0.2rem;

        /* No room below (the field is near the bottom of a tall modal)? Flip above the field. */
        position-try-fallbacks: flip-block;

        /* Scrolling the field out of the modal hides the list, rather than leaving it floating over
           content it no longer belongs to. */
        position-visibility: anchors-visible;
    }
}

/* Flags a match the register couldn't pin to a specific building - still pickable, but say so. */

/* A header row with the page heading on the left and a primary action on the right. */
.page-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.page-head h1 {
    margin-bottom: 0;
}

.btn-danger {
    font-family: inherit;
    font-weight: 600;
    border-radius: 0.5rem;
    cursor: pointer;
    border: 1px solid #fecaca;
    background: #fee2e2;
    color: #b91c1c;
    padding: 0.3rem 0.7rem;
    font-size: 0.82rem;
    white-space: nowrap;
}

.btn-danger:hover {
    border-color: #f87171;
}

.btn-danger:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.row-actions {
    display: flex;
    gap: 0.4rem;
    flex-wrap: wrap;
}

/* A wider modal for the multi-section merchant editor. */
.modal.modal-wide {
    max-width: 44rem;
}

.modal-scroll {
    max-height: 70vh;
    overflow-y: auto;
    margin: 0 -0.25rem;
    padding: 0 0.25rem;
}

/* A repeating sub-record (a location row, a phone row) inside a form. */
.subrow {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 0.5rem 0.75rem;
    align-items: start;
    border: 1px solid var(--border);
    border-radius: 0.6rem;
    padding: 0.75rem;
    margin-bottom: 0.6rem;
}

.subrow .subrow-fields {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    min-width: 0;
}

.subrow-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr));
    gap: 0.4rem 0.6rem;
}

.section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin: 1.5rem 0 0.5rem;
}

.section-head h3 {
    margin: 0;
    font-size: 0.95rem;
}

.inline-note {
    font-size: 0.82rem;
    color: var(--muted);
}

.modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(20, 19, 15, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    z-index: 100;
}

.modal {
    background: var(--surface);
    border-radius: 0.75rem;
    padding: 1.5rem;
    width: 100%;
    max-width: 30rem;
    box-shadow: 0 10px 40px rgba(20, 19, 15, 0.3);
}

.modal h2 {
    margin: 0 0 0.25rem;
}

.modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 0.6rem;
    margin-top: 1.5rem;
}

/* ---------- Live indicator ----------
   The pulsing "live" dot beside the fleet-map heading. The map panel, driver list, waiting pile and legend
   are further down under "Live Map". */

.live-dot {
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    color: #15803d;
    animation: live-pulse 2s ease-in-out infinite;
}

@keyframes live-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

/* ── Live Map ──────────────────────────────────────────────────────────────────────────────────────
   The fleet board: an Azure Maps control beside a driver/waiting/legend panel. Marker classes
   (.fleet-pin/.fleet-dot/.fleet-unassigned/.fleet-popup) style HTML markers the atlas SDK injects into
   the map DOM, so they live here with the rest of the app's styles rather than in the JS module. */
.map-head {
    display: flex;
    align-items: baseline;
    gap: 0.75rem;
}

.map-layout {
    display: flex;
    gap: 1rem;
    align-items: stretch;
    height: calc(100vh - 11rem);
    min-height: 480px;
}

.map-wrap {
    flex: 1 1 auto;
    min-width: 0;
}

.fleet-map {
    width: 100%;
    height: 100%;
    border: 1px solid var(--border);
    border-radius: 0.6rem;
    overflow: hidden;
    background: #e9e4d8;
    /* Own stacking context below the sticky header (z-index 20) so the atlas
       zoom/compass controls can't paint over the chrome when the map scrolls
       up behind the header on mobile. */
    position: relative;
    z-index: 0;
}

.map-panel {
    flex: 0 0 320px;
    overflow-y: auto;
    padding-right: 0.25rem;
}

.map-panel-section {
    margin-bottom: 1.25rem;
}

.map-panel-section h2 {
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--muted);
    margin: 0 0 0.5rem;
}

.fleet-swatch {
    display: inline-block;
    width: 0.8rem;
    height: 0.8rem;
    border-radius: 50%;
    flex: 0 0 auto;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.15) inset;
}

.map-driver-list,
.map-waiting-list,
.map-legend ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.map-driver-list li {
    margin-bottom: 0.3rem;
}

.map-driver {
    display: flex;
    align-items: flex-start;
    gap: 0.55rem;
    width: 100%;
    text-align: left;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 0.5rem;
    padding: 0.5rem 0.6rem;
    cursor: pointer;
    font: inherit;
    color: var(--text);
    transition: border-color 0.12s ease, box-shadow 0.12s ease;
}

.map-driver:hover:not(:disabled) {
    border-color: var(--brass);
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
}

.map-driver:disabled {
    opacity: 0.6;
    cursor: default;
}

.map-driver .fleet-swatch {
    margin-top: 0.2rem;
}

.map-driver-main {
    display: flex;
    flex-direction: column;
    gap: 0.05rem;
    min-width: 0;
}

.map-driver-name {
    font-weight: 600;
}

.map-driver-sub,
.map-driver-loc {
    font-size: 0.78rem;
    color: var(--muted);
}

/* "Off shift" in the driver list means clocked off but still finishing assigned work - flagged, not hidden. */
.map-off-badge {
    color: #6b7177;
    font-weight: 600;
    border-bottom: 1px dashed #9aa0a6;
}

.map-waiting-list li {
    display: flex;
    align-items: baseline;
    gap: 0.4rem;
    padding: 0.3rem 0;
    border-bottom: 1px solid var(--border);
    font-size: 0.85rem;
}

.map-waiting-num {
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

.fleet-urgent {
    font-size: 0.66rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: #b91c1c;
    background: #fee2e2;
    border-radius: 0.3rem;
    padding: 0.05rem 0.3rem;
}

.map-legend ul li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.82rem;
    padding: 0.15rem 0;
}

.legend-glyph {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 1.1rem;
    height: 1.1rem;
    font-size: 1rem;
    line-height: 1;
    color: var(--muted);
}

.legend-pin {
    background: var(--brass);
    border: 2px solid var(--ivory);
    border-radius: 50%;
    width: 1rem;
    height: 1rem;
    box-shadow: 0 0 0 1px var(--border);
}

.legend-pin-offshift {
    background: #c9c1b2;
    border-style: dashed;
    border-color: #a89c88;
    box-shadow: 0 0 0 1px rgba(110, 103, 91, 0.38);
}

.legend-unassigned {
    color: #8a6d40;
    font-weight: 700;
    font-size: 0.82rem;
    letter-spacing: -0.05em;
}

.map-legend-note {
    font-size: 0.76rem;
    margin-top: 0.5rem;
}

/* Map markers (injected by the atlas SDK into the map container) */
.fleet-pin {
    width: 1.7rem;
    height: 1.7rem;
    border-radius: 50%;
    background: var(--c, #3f6f7d);
    border: 2px solid var(--ivory);
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.35);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.fleet-pin.is-stale {
    opacity: 0.78;
    border-style: dashed;
}

/* Off shift but still carrying assigned deliveries: keep the driver's colour (identity) but ring it in
   grey so it reads as "winding down, not taking new work" at a glance. */
.fleet-pin.is-offshift {
    border-color: #a89c88;
    border-style: dashed;
    box-shadow: 0 0 0 3px rgba(110, 103, 91, 0.38), 0 1px 4px rgba(0, 0, 0, 0.35);
}

.fleet-pin-glyph {
    color: var(--ivory);
    font-size: 0.66rem;
    font-weight: 700;
    letter-spacing: 0.01em;
}

.fleet-dot {
    width: 1.15rem;
    height: 1.15rem;
    border-radius: 0.3rem;
    background: var(--c, #3f6f7d);
    border: 1.5px solid var(--ivory);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.fleet-dot.is-next {
    box-shadow: 0 0 0 3px rgba(244, 239, 230, 0.7), 0 1px 3px rgba(0, 0, 0, 0.4);
}

.fleet-dot-glyph {
    color: var(--ivory);
    font-size: 0.62rem;
    line-height: 1;
}

.fleet-unassigned {
    width: 1.25rem;
    height: 1.25rem;
    border-radius: 50%;
    background: #fbf8f2;
    border: 2px solid #8a6d40;
    color: #7e6435;
    font-weight: 700;
    font-size: 0.7rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
}

.fleet-unassigned-dropoff.is-approx {
    border-style: dashed;
}

/* Popup body (atlas renders the chrome; we style the content we inject) */
.fleet-popup {
    font-family: var(--font-sans);
    font-size: 0.82rem;
    color: var(--text);
    padding: 0.5rem 0.65rem;
    max-width: 240px;
    line-height: 1.35;
    white-space: normal;
    overflow-wrap: break-word;
}

.fleet-popup-head {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-bottom: 0.2rem;
}

.fleet-popup-next {
    margin-top: 0.35rem;
}

.fleet-popup-label {
    font-size: 0.66rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--muted);
    margin-right: 0.25rem;
}

@media (max-width: 900px) {
    .map-layout {
        flex-direction: column;
        height: auto;
    }

    .map-wrap {
        height: 60vh;
    }

    .map-panel {
        flex: 1 1 auto;
    }
}

/* A saved drop in the address type-ahead stacks: who it's for, the address, then the merchant's standing
   notes. A bare register match is just the middle line, so the column collapses to one row unstyled. */


/* ---------- Top-bar nav ---------- */
/* The dispatch app has two destinations, so a couple of links in the header beats the console's full sidebar -
   which also keeps the map's usable width, the thing this surface is actually for. */
.topbar-nav {
    display: flex;
    gap: 0.25rem;
    margin-left: auto;
}

.topbar-link {
    padding: 0.4rem 0.75rem;
    border-radius: 0.4rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text);
    text-decoration: none;
    opacity: 0.7;
}

.topbar-link:hover {
    opacity: 1;
}

.topbar-link.active {
    background: var(--accent-soft, rgba(255, 255, 255, 0.1));
    opacity: 1;
}

/* Sits after the nav, so it needs no auto-margin of its own. */
.topbar-signout {
    margin-left: 0.75rem;
    font-size: 0.85rem;
}

/* ---------- Routes, triage, messages, activity ---------- */
.route-block { margin: 1.5rem 0; }

.route-block-head { display: flex; align-items: center; gap: 0.75rem; flex-wrap: wrap; }

.route-block-head h2 { margin: 0; font-size: 1.05rem; }

.route-block-actions { margin-left: auto; display: flex; gap: 0.5rem; }

.reorder-list { list-style: none; margin: 0.75rem 0 0; padding: 0; }

.reorder-item { display: flex; align-items: center; gap: 0.75rem; padding: 0.6rem 0.75rem;
    border: 1px solid var(--border); border-radius: 0.5rem; margin-bottom: 0.4rem; background: var(--surface); }

/* Completed stops stay visible but read as settled - and they can't be moved. */
.reorder-done { opacity: 0.55; }

.reorder-seq { font-variant-numeric: tabular-nums; font-weight: 700; opacity: 0.6; min-width: 1.5rem; }

.reorder-main { display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap; flex: 1; }

.reorder-address { font-weight: 600; }

.reorder-buttons { display: flex; gap: 0.25rem; }

.filter-row { display: flex; gap: 0.4rem; margin-left: auto; }

.filter-on { background: var(--accent-soft, rgba(255,255,255,0.12)); font-weight: 700; }

.feed { list-style: none; margin: 1rem 0 0; padding: 0; }

.feed-item { display: flex; gap: 0.9rem; padding: 0.55rem 0; border-bottom: 1px solid var(--border); }

.feed-issue { border-left: 3px solid var(--danger, #a3402f); padding-left: 0.6rem; }

.feed-time { font-variant-numeric: tabular-nums; opacity: 0.6; min-width: 4.5rem; font-size: 0.85rem; }

.feed-main { display: flex; flex-direction: column; gap: 0.15rem; }

.feed-summary { font-weight: 600; }

.feed-meta { font-size: 0.8rem; opacity: 0.6; }
