/* Hero flow-scene: app-venster met offerte + AppPilot-acties.
   Chrome en tokens uit de dashboard-showcase. Geen kaartschaduw.
   Alleen de bestaande vensterschaduw. */
.appf-hero-flow {
    --hf-ink: #111827;
    --hf-muted: #6B7280;
    --hf-faint: #9AA3B4;
    --hf-line: #E8EAF1;
    --hf-wash: #F3F4F6;
    --hf-body: #F9FAFB;
    --hf-tile: #EEF1F6;
    width: 100%;
    max-width: none;
    font-family: 'Poppins', system-ui, sans-serif;
}

.appf-hero-flow .hf-window {
    display: flex;
    background: #fff;
    border: 1px solid var(--hf-line);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-hero);
    min-height: 428px;
    height: min(460px, 56vh);
}

.appf-hero-flow .hf-sidebar {
    flex: none;
    width: 58px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 14px 0 12px;
    background: #fff;
    border-right: 1px solid var(--hf-line);
    overflow: hidden;
}

.appf-hero-flow .hf-logo {
    display: block;
    width: 32px;
    height: 32px;
    margin: 0 0 8px;
}

.appf-hero-flow .hf-nav {
    position: relative;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: grid;
    place-items: center;
    --appf-i-size: 18px;
    --appf-i-line: #A2ABBA;
    --appf-i-fill: transparent;
    --appf-i-accent: #A2ABBA;
}

.appf-hero-flow .hf-nav.is-on {
    background: var(--hf-tile);
    --appf-i-line: var(--brand);
    --appf-i-accent: var(--brand);
}

.appf-hero-flow .hf-nav--mail b {
    position: absolute;
    top: 2px;
    right: 1px;
    min-width: 16px;
    height: 12px;
    padding: 0 3px;
    border-radius: 6px;
    background: var(--brand);
    color: #fff;
    font-size: 7px;
    font-weight: 700;
    line-height: 12px;
    text-align: center;
}

.appf-hero-flow .hf-main {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    background: var(--hf-body);
}

.appf-hero-flow .hf-topbar {
    display: flex;
    align-items: center;
    gap: 12px;
    height: 52px;
    padding: 0 14px 0 16px;
    background: #fff;
    border-bottom: 1px solid var(--hf-line);
}

.appf-hero-flow .hf-search {
    flex: 1;
    min-width: 0;
    height: 34px;
    border: 1px solid var(--hf-line);
    border-radius: 10px;
    background: var(--hf-wash);
    color: var(--hf-faint);
    font-size: 13px;
    font-weight: 500;
    line-height: 34px;
    padding: 0 12px;
}

.appf-hero-flow .hf-plus {
    flex: none;
    width: 32px;
    height: 32px;
    border-radius: 9px;
    background: var(--brand);
    color: #fff;
    font-size: 18px;
    font-weight: 600;
    line-height: 30px;
    text-align: center;
}

.appf-hero-flow .hf-bell {
    flex: none;
    width: 28px;
    height: 28px;
    display: grid;
    place-items: center;
    --appf-i-size: 18px;
    --appf-i-line: #9AA3B4;
    --appf-i-fill: transparent;
    --appf-i-accent: var(--brand);
}

.appf-hero-flow .hf-workspace {
    flex: none;
    color: var(--hf-ink);
    font-size: 13px;
    font-weight: 600;
}

.appf-hero-flow .hf-avatar {
    flex: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--brand);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    display: grid;
    place-items: center;
}

.appf-hero-flow .hf-body {
    flex: 1;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
    gap: 12px;
    padding: 14px;
    min-height: 0;
}

.appf-hero-flow .hf-quote,
.appf-hero-flow .hf-actions {
    background: #fff;
    border: 1px solid var(--hf-line);
    border-radius: 14px;
    min-width: 0;
    min-height: 0;
}

.appf-hero-flow .hf-quote {
    padding: 16px 16px 14px;
    display: flex;
    flex-direction: column;
}

.appf-hero-flow .hf-quote-head {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    align-items: flex-start;
}

.appf-hero-flow .hf-quote-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--hf-ink);
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.appf-hero-flow .hf-quote-id {
    margin-top: 8px;
    font-size: 13px;
    font-weight: 700;
    color: var(--hf-ink);
}

.appf-hero-flow .hf-quote-client {
    margin-top: 2px;
    font-size: 12.5px;
    font-weight: 500;
    color: var(--hf-muted);
    white-space: nowrap;
}

.appf-hero-flow .hf-lines {
    list-style: none;
    margin: 14px 0 0;
    padding: 0;
    border-top: 1px solid var(--hf-line);
}

.appf-hero-flow .hf-lines li {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 10px;
    padding: 10px 0;
    border-bottom: 1px solid #EEF0F4;
    font-size: 12.5px;
    line-height: 1.4;
    color: var(--hf-ink);
    font-variant-numeric: tabular-nums;
}

.appf-hero-flow .hf-lines li span:first-child {
    min-width: 0;
}

.appf-hero-flow .hf-lines li span:last-child {
    flex: none;
    font-weight: 600;
}

.appf-hero-flow .hf-total {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 10px;
    margin-top: auto;
    padding-top: 12px;
    font-size: 12.5px;
    color: var(--hf-muted);
    white-space: nowrap;
}

.appf-hero-flow .hf-total strong {
    font-size: 15px;
    font-weight: 700;
    color: var(--hf-ink);
    font-variant-numeric: tabular-nums;
}

.appf-hero-flow .hf-signed {
    margin: 10px 0 0;
    font-size: 12px;
    line-height: 1.4;
    color: var(--hf-faint);
}

.appf-hero-flow .hf-actions {
    position: relative;
    display: flex;
    flex-direction: column;
    padding: 6px 4px 6px 6px;
}

.appf-hero-flow .hf-empty {
    position: absolute;
    inset: 0;
    margin: 0;
    display: grid;
    place-items: center;
    font-size: 13px;
    font-weight: 500;
    color: var(--hf-faint);
    background: #fff;
    border-radius: 14px;
    z-index: 1;
}

.appf-hero-flow .hf-actions-head {
    display: flex;
    align-items: center;
    gap: 7px;
    min-height: 36px;
    padding: 6px 10px 8px 8px;
    --appf-i-size: 18px;
}

.appf-hero-flow .hf-actions-name {
    font-size: 14px;
    font-weight: 700;
    color: var(--hf-ink);
    letter-spacing: -0.02em;
}

.appf-hero-flow .hf-actions-meta {
    margin-left: auto;
    font-size: 12px;
    font-weight: 500;
    color: var(--hf-muted);
}

.appf-hero-flow .st {
    font-size: 11px;
    font-weight: 600;
    padding: 4px 9px;
    border-radius: 7px;
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
    transition: background-color 200ms ease, color 200ms ease;
}

.appf-hero-flow .st-amber {
    background: #FBF0D5;
    color: #AE7B18;
}

.appf-hero-flow .st-blue {
    background: #E7EDFB;
    color: #2A46C0;
}

.appf-hero-flow .st-green {
    background: #E3F4EC;
    color: #1E9E68;
}

.appf-hero-flow .hf-row {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 11px 10px 12px 8px;
    border-top: 1px solid #EEF0F4;
}

.appf-hero-flow .rc-ic {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: var(--hf-tile);
    display: grid;
    place-items: center;
    flex: none;
    --appf-i-size: 18px;
}

.appf-hero-flow .rc-main {
    min-width: 0;
    flex: 1;
}

.appf-hero-flow .rc-id {
    font-size: 13px;
    font-weight: 700;
    color: var(--hf-ink);
    letter-spacing: -0.01em;
    line-height: 1.3;
}

.appf-hero-flow .rc-meta,
.appf-hero-flow .rc-sub {
    margin-top: 2px;
    font-size: 12px;
    line-height: 1.35;
    color: var(--hf-muted);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.appf-hero-flow .rc-sub {
    color: var(--hf-ink);
    font-weight: 600;
    font-variant-numeric: tabular-nums;
    white-space: normal;
    text-overflow: unset;
    overflow: visible;
}

.appf-hero-flow .rc-right {
    margin-left: auto;
    display: flex;
    align-items: center;
    flex: none;
    padding-top: 1px;
}

.appf-hero-flow .hf-avatars {
    display: flex;
}

.appf-hero-flow .hf-av {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 2px solid #fff;
    margin-left: -6px;
    font-size: 8px;
    font-weight: 700;
    color: #fff;
    display: grid;
    place-items: center;
}

.appf-hero-flow .hf-av:first-child {
    margin-left: 0;
}

.appf-hero-flow .hf-av--navy {
    background: var(--brand);
}

.appf-hero-flow .hf-av--green {
    background: #0E7C5A;
}

.appf-hero-flow .hf-mail-ic {
    position: relative;
}

.appf-hero-flow .hf-mail-check {
    position: absolute;
    right: -4px;
    bottom: -4px;
    --appf-i-size: 13px;
    --appf-i-fill: #E3F4EC;
    --appf-i-line: #1E9E68;
    --appf-i-accent: #1E9E68;
    background: #fff;
    border-radius: 50%;
}

.appf-hero-flow.is-primed .hf-actions-head,
.appf-hero-flow.is-primed .hf-card {
    opacity: 0;
    transform: translateY(6px);
}

.appf-hero-flow.is-primed .hf-signed {
    opacity: 0;
}

.appf-hero-flow.is-primed.is-live .hf-actions-head.is-in,
.appf-hero-flow.is-primed.is-live .hf-card.is-in {
    opacity: 1;
    transform: none;
    transition: opacity 260ms ease-out, transform 260ms ease-out;
}

.appf-hero-flow.is-primed.is-live .hf-signed.is-in {
    opacity: 1;
    transition: opacity 200ms ease;
}

@media (prefers-reduced-motion: reduce) {
    .appf-hero-flow.is-primed .hf-actions-head,
    .appf-hero-flow.is-primed .hf-card,
    .appf-hero-flow.is-primed .hf-signed {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

@media (max-width: 1199.98px) {
    .appf-hero-flow .hf-workspace {
        display: none;
    }

    .appf-hero-flow .hf-nav:nth-child(n+10) {
        display: none;
    }
}

@media (max-width: 991.98px) {
    .appf-hero-flow .hf-window {
        min-height: 380px;
        height: min(400px, 52vh);
    }

    .appf-hero-flow .hf-quote-title,
    .appf-hero-flow .hf-actions-name {
        font-size: 14px;
    }

    .appf-hero-flow .hf-actions-meta {
        display: none;
    }
}

.general-hero-section.has-hero-flow .general-hero-media {
    align-items: center;
}
