/**
 * EEActionBadge — rote Notification-Pille ("Action Required").
 *
 * EIN Look an allen Orten (Till, 2026-07-09): kleine rote runde Pille mit
 * weisser Zahl, wie ein iOS-App-Badge. Keine Severity-Farben.
 * Rot = #DC2626 (konsistent mit invoice-overdue im Finance-Hub).
 *
 * Verwendet von: Pipeline-Board (Org-Karten) + "Angebote & Rechnungen"-
 * Button + Finance-Hub Abarbeiten-Flow.
 */

.ee-action-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 9px;
    background: #DC2626;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: 0;
    box-sizing: border-box;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
    cursor: pointer;
    user-select: none;
    flex: 0 0 auto;
}

.ee-action-badge--sm {
    min-width: 16px;
    height: 16px;
    padding: 0 4px;
    border-radius: 8px;
    font-size: 10px;
}

/* Absolut oben rechts am Host-Element (Button etc.) — iOS-Stil. */
.ee-badge-host {
    position: relative;
}

.ee-action-badge--corner {
    position: absolute;
    top: -7px;
    right: -7px;
    z-index: 2;
    border: 2px solid #fff;
}

/* ── Gefuehrter Abarbeiten-Flow (Finance-Hub) ─────────────────────── */

.fin-action-flow {
    border: 1px solid #FECACA;
    background: #FEF2F2;
    border-radius: 10px;
    padding: 12px 14px;
    margin: 0 0 14px;
}

.fin-action-flow--done {
    border-color: #A7F3D0;
    background: #ECFDF5;
}

.fin-action-flow-head {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    font-size: 13px;
    color: #7F1D1D;
}

.fin-action-flow--done .fin-action-flow-head {
    color: #065F46;
}

.fin-action-flow-head .ee-action-badge {
    cursor: default;
}

.fin-action-flow-start {
    margin-left: auto;
    background: #DC2626;
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 6px 12px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
}

.fin-action-flow-start:hover {
    background: #B91C1C;
}

.fin-action-flow-step {
    margin-top: 10px;
    padding: 10px 12px;
    background: #fff;
    border: 1px solid #FCA5A5;
    border-radius: 8px;
}

.fin-action-flow-progress {
    font-size: 11px;
    color: #991B1B;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    margin-bottom: 6px;
}

.fin-action-flow-task {
    font-size: 13px;
    color: #111827;
    margin-bottom: 8px;
}

.fin-action-flow-task strong {
    font-weight: 600;
}

.fin-action-flow-meta {
    color: #6B7280;
    font-size: 12px;
}

.fin-action-flow-controls {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.fin-action-flow-controls select {
    font-size: 12px;
    padding: 4px 6px;
    border: 1px solid #D1D5DB;
    border-radius: 6px;
    max-width: 220px;
}

.fin-action-flow-btn {
    border: 1px solid #D1D5DB;
    background: #fff;
    border-radius: 6px;
    padding: 5px 10px;
    font-size: 12px;
    cursor: pointer;
}

.fin-action-flow-btn:hover {
    background: #F3F4F6;
}

.fin-action-flow-btn--primary {
    background: #059669;
    border-color: #059669;
    color: #fff;
    font-weight: 600;
}

.fin-action-flow-btn--primary:hover {
    background: #047857;
}

.fin-action-flow-skip {
    margin-left: auto;
    color: #6B7280;
    background: none;
    border: none;
    font-size: 12px;
    cursor: pointer;
    text-decoration: underline;
}

/* Badge auf der Pipeline-Board-Karte: erstes Element oben rechts */
.ee-pipeline-card-redesign__top-right .ee-action-badge,
.ee-pipeline-card-name .ee-action-badge {
    margin-right: 4px;
}
