/* ── Form fields ── */
.form-field {
    margin-bottom: 1.1rem;
}

.form-field label {
    display: block;
    font-size: .85rem;
    font-weight: 500;
    color: var(--muted);
    margin-bottom: .35rem;
}

.form-field input,
.form-field select {
    width: 100%;
    padding: .55rem .9rem;
    border: 1px solid var(--line);
    border-radius: 7px;
    font-size: .95rem;
    color: var(--ink);
    background: var(--surface-2);
    outline: none;
    transition: border-color .15s, box-shadow .15s;
}

.form-field input:focus,
.form-field select:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-ring);
    background: var(--surface);
}

/* ── Feedback ── */
.req-feedback {
    margin-top: .75rem;
    padding: .5rem .9rem;
    border-radius: 7px;
    font-size: .875rem;
    text-align: center;
}

.req-feedback.hidden { display: none; }

.req-success {
    background: var(--success-bg);
    color: var(--success-ink);
    border: 1px solid var(--success-line);
}

.req-error {
    background: var(--danger-bg);
    color: var(--danger-ink);
    border: 1px solid var(--danger-line);
}

/* ── Segmented control ── */
.req-mode-segmented {
    display: flex;
    background: var(--bg);
    border-radius: 8px;
    padding: 2px;
    gap: 2px;
}

.req-mode-btn {
    padding: .2rem .65rem;
    border: none;
    border-radius: 6px;
    background: transparent;
    font-size: .78rem;
    font-weight: 500;
    color: var(--faint);
    cursor: pointer;
    transition: background .15s, color .15s, box-shadow .15s;
    white-space: nowrap;
}

.req-mode-btn.active {
    background: var(--surface);
    color: var(--accent);
    box-shadow: 0 1px 4px rgba(0,0,0,.12);
}

.req-mode-btn:disabled {
    opacity: .4;
    cursor: not-allowed;
}

/* ── Danger button ── */
.btn-danger {
    background: #e74c3c;
    color: #fff;
    padding: .2rem .55rem;
    font-size: .8rem;
}

.btn-danger:hover:not(:disabled) {
    background: #c0392b;
}

.btn-danger.confirm {
    background: #c0392b;
    animation: pulse-danger .3s ease;
}

@keyframes pulse-danger {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

/* ── Requests view ── */
.card-narrow {
    max-width: 640px;
    margin: 0 auto;
}

.card-narrow h2 {
    text-align: center;
    margin: 0 0 1.5rem;
}

.label-inline {
    display: flex;
    align-items: center;
    gap: .4rem;
}

.label-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: .35rem;
}

.label-row label {
    margin: 0;
}

.form-row {
    display: flex;
    gap: 1rem;
}

.form-row .form-field {
    flex: 1;
}

.submit-wrap {
    position: relative;
    margin-top: .5rem;
}

.btn-block {
    width: 100%;
    justify-content: center;
}

#req-loading {
    display: none;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    margin-top: .4rem;
    font-size: .85rem;
    color: var(--accent);
}

/* ── Queue view ── */
.field-narrow {
    max-width: 110px;
}

.queue-filter-bar .form-field.field-auto {
    flex: 0 0 auto;
    min-width: unset;
}

.inline-row {
    display: flex;
    gap: .5rem;
    align-items: center;
}

.th-check { width: 32px; }
.th-actions { width: 60px; }

.cell-title {
    display: block;
    font-weight: 600;
}

.warn-icon {
    cursor: help;
    font-size: .75rem;
    opacity: .7;
}

.queue-filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: .75rem;
    align-items: flex-end;
}

.queue-filter-bar .form-field {
    margin-bottom: 0;
    flex: 1;
    min-width: 120px;
}

.queue-bulk-bar {
    display: flex;
    align-items: center;
    gap: .75rem;
    margin-bottom: .75rem;
    min-height: 32px;
}

.queue-pagination {
    display: flex;
    gap: .5rem;
    align-items: center;
    justify-content: center;
    margin-top: 1rem;
    font-size: .875rem;
    color: var(--muted);
}

.queue-table-wrap table {
    opacity: 1;
    transition: opacity .15s;
}

.queue-table-wrap.loading table {
    opacity: .35;
    pointer-events: none;
}

/* Queue: Zeile ist dauerhaft aus der Verarbeitung genommen (unbekannter Event-Typ). */
.badge-parked {
    display: inline-block;
    padding: 1px 6px;
    border: 1px solid var(--line);
    border-radius: 10px;
    font-size: .7rem;
    line-height: 1.4;
    color: var(--faint);
    background: var(--surface-2);
    vertical-align: middle;
}
