/* ── Offers master-detail shell ─────────────────────────
   Global (not scoped) because both OffersPage and OffersTrashPage render this shell —
   a scoped .razor.css belongs to exactly one component. Being global also means edits
   here need an app restart + browser hard-refresh to show up (fingerprinted, immutable).
   ──────────────────────────────────────────────────────── */
.offers-shell {
    display: flex;
    flex-direction: column;
    height: 100vh;
}

.offers-body {
    display: flex;
    gap: 12px;
    flex: 1 1 auto;
    min-height: 0;
}

/* Desktop/Tablet: master-detail 25% / 75% */
.offers-list-pane {
    flex: 0 0 25%;
    max-width: 25%;
    min-height: 0;
    overflow: hidden;
}

.offers-detail-pane {
    flex: 1 1 auto;
    min-height: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.offers-pane-scroll {
    height: 100%;
    overflow: auto;
    min-height: 0;
}

.offers-detail-pane .offers-pane-scroll {
    flex: 1 1 auto;
    height: auto;
}

.offers-empty {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted, #6F747F);
}

/* Sticky mobile back bar — hidden on desktop */
.offers-back-bar {
    display: none;
}

/* ── Phone: single-pane flow (matches MainLayout burger breakpoint) ── */
@media (max-width: 640.98px) {
    .offers-list-pane,
    .offers-detail-pane {
        flex: 1 1 100%;
        max-width: 100%;
        width: 100%;
    }

    /* Default: show list, hide detail */
    .offers-detail-pane {
        display: none;
    }

    /* Detail open: hide list, show detail + back bar, hide top actions */
    .offers-shell.mobile-detail-open .offers-list-pane {
        display: none;
    }

    .offers-shell.mobile-detail-open .offers-detail-pane {
        display: flex;
    }

    .offers-back-bar {
        display: flex;
        align-items: center;
        gap: 8px;
        width: 100%;
        flex-shrink: 0;
        position: sticky;
        top: 0;
        z-index: 20;
        background: var(--surface, #FEFEFE);
        border: none;
        border-bottom: 1px solid var(--border-light, #D6DCE1);
        padding: 12px 8px;
        font-weight: 600;
        font-size: 0.95rem;
        color: var(--text-primary, #0F172A);
        cursor: pointer;
    }

    .offers-back-bar .e-icons {
        font-size: 1.1rem;
        color: var(--primary, #14B8A6);
    }
}
