/* Zentraler Job-Fortschritt (Document AI) */
.po-job-progress-topbar-slot {
    display: inline-flex;
    align-items: center;
    margin-right: 6px;
}

.po-job-progress-topbar-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 999px;
    border: 1px solid rgba(37, 99, 235, 0.35);
    background: linear-gradient(180deg, #eff6ff 0%, #dbeafe 100%);
    color: #1d4ed8;
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    line-height: 1.2;
    transition: background 0.15s ease, box-shadow 0.15s ease;
}

.po-job-progress-topbar-btn:hover {
    background: #dbeafe;
    box-shadow: 0 1px 4px rgba(37, 99, 235, 0.2);
}

.po-job-progress-topbar-btn .fa-spinner {
    font-size: 11px;
}

.po-job-progress-topbar-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 999px;
    background: #1d4ed8;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
}

.po-automation-compact-cell {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 36px;
}

.po-automation-running-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    max-width: 100%;
    padding: 5px 10px;
    border-radius: 999px;
    border: 1px solid #93c5fd;
    background: linear-gradient(90deg, #eff6ff 0%, #dbeafe 100%);
    color: #1d4ed8;
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    line-height: 1.25;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: box-shadow 0.15s ease, transform 0.1s ease;
}

.po-automation-running-chip:hover {
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.18);
}

.po-automation-running-chip.is-pending {
    border-color: #bfdbfe;
    background: #f8fafc;
    color: #475569;
}

.po-automation-running-chip.is-failed {
    border-color: #fecaca;
    background: #fef2f2;
    color: #991b1b;
}

.po-automation-running-chip .po-automation-more {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 18px;
    height: 18px;
    border-radius: 999px;
    background: rgba(29, 78, 216, 0.12);
    font-size: 10px;
    font-weight: 700;
    flex-shrink: 0;
}

.po-automation-idle-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 8px;
    border: 1px dashed #cbd5e1;
    background: transparent;
    color: #94a3b8;
    cursor: pointer;
    transition: color 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}

.po-automation-idle-btn:hover {
    color: #2563eb;
    border-color: #93c5fd;
    background: #f8fafc;
}

.po-job-progress-dialog .po-job-progress-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-height: min(62vh, 520px);
    overflow-y: auto;
    padding: 4px 2px;
}

.po-job-progress-card {
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 12px 14px;
    background: #fff;
}

.po-job-progress-card.is-running {
    border-color: #93c5fd;
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
}

.po-job-progress-card.is-done {
    border-color: #6ee7b7;
    background: #f0fdf4;
}

.po-job-progress-card.is-incomplete {
    border-color: #fcd34d;
    background: #fffbeb;
}

.po-job-progress-card.is-failed {
    border-color: #fecaca;
    background: #fef2f2;
}

.po-job-progress-card-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 8px;
}

.po-job-progress-card-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 600;
    color: #0f172a;
    min-width: 0;
}

.po-job-progress-card-title span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.po-job-progress-card-doc {
    font-size: 11px;
    color: #64748b;
    margin-top: 2px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.po-job-progress-card-step {
    font-size: 11px;
    color: #475569;
    margin-bottom: 6px;
    line-height: 1.35;
}

.po-job-progress-bar-wrap {
    height: 6px;
    border-radius: 999px;
    background: #e2e8f0;
    overflow: hidden;
}

.po-job-progress-bar-fill {
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(90deg, #3b82f6 0%, #2563eb 100%);
    transition: width 0.35s ease;
}

.po-job-progress-card-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}

.po-job-progress-card-actions .button {
    font-size: 11px;
    padding: 4px 10px;
    min-height: 0;
}

.po-job-progress-dialog-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
    flex-wrap: wrap;
}

.po-job-progress-start-menu {
    position: fixed;
    z-index: 12050;
    min-width: 200px;
    max-width: 280px;
    padding: 6px;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
    background: #fff;
    box-shadow: 0 8px 28px rgba(15, 23, 42, 0.14);
}

.po-job-progress-start-menu button {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    padding: 8px 10px;
    border: none;
    border-radius: 8px;
    background: transparent;
    color: #334155;
    font-size: 12px;
    text-align: left;
    cursor: pointer;
}

.po-job-progress-start-menu button:hover {
    background: #f1f5f9;
    color: #1d4ed8;
}

.po-job-progress-empty {
    text-align: center;
    padding: 28px 16px;
    color: #64748b;
    font-size: 13px;
}
