/* ═══════════════════════════════════════════════════════════
   SignFlow — Invoice Approval Workflow
   Uses CSS variables from design-system.css
   ═══════════════════════════════════════════════════════════ */

/* ── 1. Login Page ─────────────────────────────────────────── */

.signflow-login {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #0f1419;
}

.signflow-login-card {
    width: 100%;
    max-width: 380px;
    background: #1a2332;
    border: 1px solid #2a3a4e;
    border-radius: var(--ui-radius-panel);
    padding: 2rem 1.75rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.signflow-login-card h1 {
    font-size: var(--ui-font-title);
    font-weight: 700;
    color: #d4dde8;
    margin: 0 0 0.25rem;
    letter-spacing: -0.02em;
}

.signflow-login-card .sf-login-sub {
    font-size: var(--ui-font-caption);
    color: #5f7389;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.signflow-login-card label {
    display: block;
    font-size: var(--ui-font-caption);
    color: #8a9bb0;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 0.3rem;
}

.signflow-login-card .sf-input {
    width: 100%;
    box-sizing: border-box;
    margin-bottom: 1rem;
}

.signflow-login-card .sf-login-error {
    background: #2a0f0f;
    color: #f87171;
    border: 1px solid #3a1a1a;
    border-radius: var(--ui-radius-control);
    padding: 0.5rem 0.75rem;
    font-size: var(--ui-font-caption);
    margin-bottom: 1rem;
}

.sf-login-btn {
    width: 100%;
    padding: 0.6rem 1rem;
    background: #2563eb;
    color: #fff;
    border: none;
    border-radius: var(--ui-radius-control);
    font-size: var(--ui-font-body);
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s;
}

.sf-login-btn:hover {
    background: #1d4ed8;
}

.sf-login-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.sf-login-hint {
    color: var(--ui-text-muted, #888);
    font-size: var(--ui-font-caption);
    text-align: center;
    margin-top: 0.75rem;
}

/* ── 2. Inbox — Three-Column Layout ───────────────────────── */

.signflow-inbox {
    display: grid;
    grid-template-columns: 220px 1fr 280px;
    height: calc(100vh - 8rem);
    gap: 0;
    overflow: hidden;
}

.sf-panel-left {
    border-right: 1px solid var(--ui-border);
    background: var(--ui-bg-soft);
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

.sf-panel-center {
    display: flex;
    flex-direction: column;
    min-width: 0;
    background: var(--ui-bg-muted);
}

.sf-panel-center iframe {
    flex: 1;
    width: 100%;
    border: none;
    background: #1a1a1a;
}

.sf-panel-center .sf-no-doc {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--ui-text-faint);
    font-size: var(--ui-font-body);
}

.sf-panel-right {
    border-left: 1px solid var(--ui-border);
    background: var(--ui-bg-surface);
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    padding: 0.85rem;
    gap: 0.75rem;
}

.sf-panel-header {
    padding: 0.65rem 0.75rem;
    font-size: var(--ui-font-caption);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--ui-text-faint);
    border-bottom: 1px solid var(--ui-border);
    background: var(--ui-bg-muted);
    flex-shrink: 0;
}

/* ── 3. Document List Items ────────────────────────────────── */

.sf-doc-list {
    flex: 1;
    overflow-y: auto;
}

.sf-doc-group-header {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.45rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--ui-text-muted);
    cursor: pointer;
    border-bottom: 1px solid var(--ui-border);
    background: var(--ui-bg-muted);
    user-select: none;
}
.sf-doc-group-header:hover { background: var(--ui-bg-accent); }
.sf-doc-group-arrow { font-size: 0.7rem; width: 0.8rem; }
.sf-doc-group-count {
    margin-left: auto;
    font-size: 0.65rem;
    font-weight: 600;
    background: var(--ui-primary);
    color: #fff;
    padding: 0.05rem 0.4rem;
    border-radius: 9px;
}

.sf-doc-item {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    padding: 0.6rem 0.75rem;
    border-bottom: 1px solid var(--ui-border);
    cursor: pointer;
    transition: background 0.12s;
    border-left: 3px solid transparent;
}
.sf-doc-item-grouped { padding-left: 1.5rem; }

.sf-doc-item:hover {
    background: var(--ui-bg-muted);
}

.sf-doc-item.active {
    background: var(--ui-bg-accent);
    border-left-color: var(--ui-primary);
}

/* Color-coded left border based on last comment status */
.sf-doc-item.sf-status-bezahlt {
    border-left-color: #2563eb;
}

.sf-doc-item.sf-status-genehmigt {
    border-left-color: #16a34a;
}

.sf-doc-item.sf-status-abgelehnt {
    border-left-color: #dc2626;
}

.sf-doc-item.sf-status-pruefen {
    border-left-color: #a3a321;
}

.sf-doc-item-name {
    font-weight: 600;
    font-size: 0.8rem;
    color: var(--ui-text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sf-doc-item-meta {
    font-size: var(--ui-font-caption);
    color: var(--ui-text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.signflow-inbox.sf-inbox-scaled {
    grid-template-columns: 1fr 3fr 1fr;
}
.sf-inbox-scaled .sf-doc-item-name,
.sf-inbox-scaled .sf-doc-item-meta {
    white-space: normal;
    overflow: visible;
    text-overflow: unset;
}

.sf-doc-item-stamp {
    font-size: 0.65rem;
    font-weight: 600;
    margin-top: 0.1rem;
}

.sf-recent-header {
    margin-top: 0.5rem;
    border-top: 1px solid var(--ui-border);
}
.sf-doc-item-recent .sf-doc-item-meta {
    color: var(--ui-text-faint);
    font-style: italic;
}
.sf-recall-hint {
    font-size: 0.78rem;
    color: var(--ui-text-muted);
    margin: 0 0 0.5rem;
}
.sf-recall-btn {
    width: 100%;
    background: #2563eb;
    color: #fff;
}

/* ── 4. Action Panel ───────────────────────────────────────── */

.sf-action-section {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.sf-action-section-title {
    font-size: var(--ui-font-caption);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--ui-text-faint);
    padding-bottom: 0.25rem;
    border-bottom: 1px solid var(--ui-border);
}

/* Stamp buttons — max 2 per row, 1 if label is too wide */
.sf-stamp-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.sf-stamp-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.3rem;
    flex: 1 0 calc(50% - 0.2rem);
    max-width: 100%;
    padding: 0.35rem 0.7rem;
    border-radius: 4px;
    border: 2px solid rgba(255,255,255,0.18);
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    cursor: pointer;
    transition: filter 0.15s, box-shadow 0.15s;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    background: rgba(255,255,255,0.08);
    color: var(--ui-text);
}
.sf-stamp-btn.sf-stamp-wide {
    flex-basis: 100%;
}

.sf-stamp-btn:hover {
    filter: brightness(1.15);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.sf-stamp-btn.active {
    box-shadow: 0 0 0 2px var(--ui-primary), 0 2px 6px rgba(0, 0, 0, 0.2);
}

.sf-stamp-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    filter: none;
}

.sf-stamp-btn.sf-stamp-bezahlt {
    background: #2563eb;
    color: #fff;
    border-color: #1d4ed8;
}

.sf-stamp-btn.sf-stamp-genehmigt {
    background: #16a34a;
    color: #fff;
    border-color: #15803d;
}

.sf-stamp-btn.sf-stamp-abgelehnt {
    background: #dc2626;
    color: #fff;
    border-color: #b91c1c;
}

.sf-stamp-btn.sf-stamp-pruefen {
    background: #6b6e1e;
    color: #fff;
    border-color: #555716;
}

/* Forward section */
.sf-forward-row {
    display: flex;
    gap: 0.5rem;
    align-items: flex-end;
}

.sf-forward-row .sf-select {
    flex: 1;
}

.sf-forward-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    padding: 0.45rem 0.85rem;
    background: rgba(22,163,74,0.85);
    border: 1px solid rgba(22,163,74,0.6);
    border-radius: var(--ui-radius-control);
    font-size: var(--ui-font-body);
    font-weight: 600;
    color: #fff;
    cursor: pointer;
    transition: background 0.12s, border-color 0.12s;
    white-space: nowrap;
}

.sf-forward-btn:hover:not(:disabled) {
    background: rgba(22,163,74,1);
    border-color: rgba(22,163,74,0.8);
}

.sf-forward-btn:disabled {
    background: var(--ui-bg-muted);
    border-color: var(--ui-border-strong);
    color: var(--ui-text-muted);
    opacity: 0.5;
    cursor: not-allowed;
}

/* BEZAHLT button — prominent blue */
.sf-bezahlt-btn {
    width: 100%;
    padding: 0.65rem 1rem;
    background: #2563eb;
    color: #fff;
    border: none;
    border-radius: var(--ui-radius-control);
    font-size: var(--ui-font-body);
    font-weight: 700;
    cursor: pointer;
    transition: background 0.15s;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.sf-bezahlt-btn:hover:not(:disabled) {
    background: #1d4ed8;
}

.sf-bezahlt-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Timeline / history section */
.sf-timeline {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    max-height: 300px;
    overflow-y: auto;
}

.sf-timeline-entry {
    display: flex;
    flex-direction: column;
    gap: 0.05rem;
    padding: 0.25rem 0.5rem;
    background: var(--ui-bg-muted);
    border-left: 3px solid var(--ui-border-strong);
    border-radius: 0 var(--ui-radius-control) var(--ui-radius-control) 0;
    font-size: 0.65rem;
}

.sf-timeline-entry.sf-tl-bezahlt {
    border-left-color: #2563eb;
}

.sf-timeline-entry.sf-tl-genehmigt {
    border-left-color: #16a34a;
}

.sf-timeline-entry.sf-tl-abgelehnt {
    border-left-color: #dc2626;
}

.sf-timeline-entry.sf-tl-pruefen {
    border-left-color: #a3a321;
}

.sf-timeline-entry.sf-tl-forward {
    border-left-color: #8b5cf6;
}

.sf-timeline-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
}

.sf-timeline-user {
    font-weight: 600;
    color: var(--ui-text);
}

.sf-timeline-time {
    font-size: 0.58rem;
    color: var(--ui-text-faint);
    font-family: "Cascadia Code", "Consolas", monospace;
}

.sf-timeline-stamp {
    font-size: 0.58rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.sf-timeline-comment {
    color: var(--ui-text-muted);
    word-break: break-word;
    white-space: pre-wrap;
}

/* Booking data inline panel */
.sf-inbox-card {
    background: var(--ui-bg-muted);
    border: 1px solid var(--ui-border);
    border-radius: 6px;
    padding: 0.65rem 0.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.sf-booking-panel {
    background: var(--ui-bg-muted);
    border: 1px solid var(--ui-border);
    border-radius: var(--ui-radius-panel);
    padding: 0.65rem 0.75rem;
}

.sf-booking-panel-title {
    font-size: var(--ui-font-caption);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--ui-text-faint);
    margin-bottom: 0.4rem;
}

.sf-booking-row {
    display: grid;
    grid-template-columns: 100px 1fr;
    gap: 0.2rem 0.5rem;
    font-size: 0.8rem;
    padding: 0.15rem 0;
}

.sf-booking-label {
    color: var(--ui-text-faint);
    font-weight: 500;
    font-size: var(--ui-font-caption);
}

.sf-booking-value {
    color: var(--ui-text);
    font-weight: 600;
}

/* ── 5. Upload Page ────────────────────────────────────────── */

.signflow-upload {
    max-width: 800px;
    margin: 0 auto;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.sf-dropzone {
    border: 2px dashed var(--ui-border-strong);
    border-radius: var(--ui-radius-panel);
    padding: 2.5rem 1.5rem;
    text-align: center;
    color: var(--ui-text-muted);
    background: var(--ui-bg-soft);
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s;
}

.sf-dropzone:hover,
.sf-dropzone.sf-dragover {
    border-color: var(--ui-primary);
    background: var(--ui-bg-accent);
}

.sf-dropzone-icon {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    color: var(--ui-text-faint);
}

.sf-dropzone-text {
    font-size: var(--ui-font-body);
    font-weight: 500;
    color: var(--ui-text);
    margin-bottom: 0.25rem;
}

.sf-dropzone-hint {
    font-size: var(--ui-font-caption);
    color: var(--ui-text-faint);
}

.sf-upload-fields {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
}

.sf-upload-fields .sf-field-full {
    grid-column: 1 / -1;
}

.sf-upload-actions {
    display: flex;
    gap: 0.75rem;
    justify-content: flex-end;
}

/* LLM extraction loading state */
.sf-llm-loading {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    background: var(--ui-bg-accent);
    border: 1px solid var(--ui-border);
    border-radius: var(--ui-radius-panel);
    color: var(--ui-text-muted);
    font-size: var(--ui-font-body);
}

.sf-llm-loading::before {
    content: "";
    width: 1.25rem;
    height: 1.25rem;
    border: 2px solid var(--ui-border);
    border-top-color: var(--ui-primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    flex-shrink: 0;
}

/* ── 6. Archive Page ───────────────────────────────────────── */

.signflow-archive {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    padding: 1rem;
    min-height: calc(100vh - 4rem);
}

.sf-search-bar {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.sf-search-bar .sf-input {
    flex: 1;
}

.sf-search-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    padding: 0.45rem 0.85rem;
    min-height: 2.25rem;
    background: var(--ui-primary);
    color: #fff;
    border: none;
    border-radius: var(--ui-radius-control);
    font-size: var(--ui-font-body);
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s;
    white-space: nowrap;
}

.sf-search-btn:hover {
    background: var(--ui-primary-strong);
}

.sf-archive-split {
    display: grid;
    grid-template-columns: 350px 1fr;
    gap: 0;
    flex: 1;
    border: 1px solid var(--ui-border);
    border-radius: var(--ui-radius-panel);
    overflow: hidden;
    background: var(--ui-bg-surface);
}

.sf-archive-list {
    border-right: 1px solid var(--ui-border);
    overflow-y: auto;
    background: var(--ui-bg-soft);
}

.sf-archive-preview {
    display: flex;
    flex-direction: column;
    min-width: 0;
    background: var(--ui-bg-muted);
}

.sf-archive-preview iframe {
    flex: 1;
    width: 100%;
    border: none;
    background: #1a1a1a;
}

.sf-archive-preview .sf-no-doc {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--ui-text-faint);
    font-size: var(--ui-font-body);
}

.sf-archive-empty {
    padding: 2rem 1rem;
    text-align: center;
    color: var(--ui-text-faint);
    font-size: var(--ui-font-body);
}

/* Archive info banner */
.sf-archive-info {
    padding: 0.5rem 1rem;
    background: rgba(37, 99, 235, 0.1);
    border: 1px solid rgba(37, 99, 235, 0.25);
    border-radius: var(--ui-radius-control);
    color: #93b4e8;
    font-size: 0.8rem;
    margin-bottom: 0.5rem;
}

/* Firma filter chips */
.sf-firma-filter {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    margin-bottom: 0.5rem;
}
.sf-filter-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--ui-text-muted, #8a9bb0);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-right: 0.25rem;
}
.sf-filter-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.2rem 0.5rem;
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--ui-border, #2a3a4e);
    border-radius: var(--ui-radius-control);
    font-size: 0.75rem;
    cursor: pointer;
}
.sf-filter-chip input[type="checkbox"] { margin: 0; }

/* ── 7. Form Inputs ────────────────────────────────────────── */

.sf-field {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.sf-label {
    font-size: var(--ui-font-caption);
    font-weight: 600;
    color: var(--ui-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.sf-input,
.sf-select,
.sf-textarea {
    padding: 0.45rem 0.7rem;
    min-height: 2.25rem;
    border: 1px solid var(--ui-border-strong);
    border-radius: var(--ui-radius-control);
    background: var(--ui-bg-surface);
    color: var(--ui-text);
    font-size: var(--ui-font-body);
    font-family: var(--ui-font-family);
    transition: border-color 0.12s, box-shadow 0.12s;
    box-sizing: border-box;
}

.sf-input:focus,
.sf-select:focus,
.sf-textarea:focus {
    outline: none;
    border-color: var(--ui-primary);
    box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.15);
}

.sf-input::placeholder,
.sf-textarea::placeholder {
    color: var(--ui-text-faint);
}

.sf-textarea {
    min-height: 4rem;
    resize: vertical;
    line-height: 1.4;
}

.sf-select {
    cursor: pointer;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background: var(--ui-bg-surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%235f738a' d='M3 4.5L6 8l3-3.5H3z'/%3E%3C/svg%3E") no-repeat right 0.6rem center / 12px 12px;
    padding-right: 2rem;
}
.sf-select::-ms-expand { display: none; }

/* ── 8. Utility Classes ────────────────────────────────────── */

/* Status badges */
.sf-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.15rem 0.5rem;
    border-radius: 999px;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    white-space: nowrap;
}

.sf-badge-bezahlt {
    background: #2563eb;
    color: #fff;
}

.sf-badge-genehmigt {
    background: #16a34a;
    color: #fff;
}

.sf-badge-abgelehnt {
    background: #dc2626;
    color: #fff;
}

.sf-badge-pruefen {
    background: #6b6e1e;
    color: #fff;
}

/* Search source badges */
.sf-badge-pdf {
    background: #dc2626;
    color: #fff;
}

.sf-badge-meta {
    background: #2563eb;
    color: #fff;
}

.sf-badge-kommentar {
    background: #16a34a;
    color: #fff;
}

.sf-badge-dateiname {
    background: #6b7280;
    color: #fff;
}

/* Duplicate type badges */
.sf-badge-exact_content {
    background: #dc2626;
    color: #fff;
}

.sf-badge-near_content {
    background: #d97706;
    color: #fff;
}

.sf-badge-metadata_match {
    background: #2563eb;
    color: #fff;
}

.sf-match-badges {
    display: flex;
    gap: 0.25rem;
    margin-top: 0.15rem;
}

.sf-snippet {
    display: block;
    font-size: 0.7rem;
    color: var(--ui-text-muted);
    margin-top: 0.15rem;
    line-height: 1.3;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Duplicate warning on upload */
.sf-dup-warning {
    background: #fef2f2;
    border: 1px solid #ef4444;
    border-radius: var(--ui-radius);
    padding: 0.75rem 1rem;
    margin-bottom: 0.75rem;
    font-size: var(--ui-font-body);
    color: #991b1b;
}

.sf-dup-warning b {
    color: #b91c1c;
}

.sf-dup-warning ul {
    margin: 0.25rem 0 0.5rem 1rem;
    padding: 0;
    font-size: 0.75rem;
}

.sf-dup-warning a {
    color: #b91c1c;
    font-weight: 600;
    text-decoration: underline;
    cursor: pointer;
}

.sf-dup-warning a:hover {
    color: #7f1d1d;
}

.sf-dup-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.6);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sf-dup-popup {
    background: var(--ui-bg);
    border-radius: 8px;
    width: 80vw;
    height: 85vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 8px 32px rgba(0,0,0,0.3);
    overflow: hidden;
}

.sf-dup-popup-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.65rem 1rem;
    border-bottom: 1px solid var(--ui-border);
    font-weight: 600;
    font-size: 0.85rem;
    flex-shrink: 0;
}

.sf-dup-popup iframe {
    flex: 1;
    border: none;
    width: 100%;
}

/* Resolved row in duplicate table */
.sf-row-resolved {
    opacity: 0.5;
}

/* Duplicate document links */
.sf-doc-link {
    color: var(--ui-text);
    text-decoration: underline;
    text-decoration-color: var(--ui-border);
    text-underline-offset: 2px;
}

.sf-doc-link:hover {
    text-decoration-color: var(--ui-text);
}

.sf-dup-actions {
    display: flex;
    gap: 0.25rem;
    white-space: nowrap;
}

/* Side-by-side PDF compare */
.sf-compare-panel {
    margin-top: 1rem;
    border: 1px solid var(--ui-border);
    border-radius: var(--ui-radius);
    overflow: hidden;
}

.sf-compare-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 1rem;
    background: var(--ui-surface-alt, #f5f5f5);
    border-bottom: 1px solid var(--ui-border);
}

.sf-compare-header h3 {
    margin: 0;
    font-size: 0.85rem;
}

.sf-compare-frames {
    display: flex;
    gap: 2px;
    height: 70vh;
}

.sf-compare-side {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.sf-compare-label {
    padding: 0.35rem 0.75rem;
    font-size: 0.7rem;
    font-weight: 700;
    background: var(--ui-surface-alt, #f5f5f5);
    border-bottom: 1px solid var(--ui-border);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sf-compare-frame {
    flex: 1;
    border: none;
    width: 100%;
}

/* Loading spinner */
.sf-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1.5rem;
    color: var(--ui-text-muted);
    font-size: var(--ui-font-body);
}

.sf-loading::before {
    content: "";
    width: 1.5rem;
    height: 1.5rem;
    border: 2.5px solid var(--ui-border);
    border-top-color: var(--ui-primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    flex-shrink: 0;
}

/* Divider */
.sf-divider {
    border: none;
    border-top: 1px solid var(--ui-border);
    margin: 0.25rem 0;
}

/* ── Document Status Badges ───────────────────────────────── */

.sf-status-badge {
    display: inline-block;
    padding: 0.2rem 0.6rem;
    border-radius: 3px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
}
.sf-status-new { background: #1e3a5f; color: #60a5fa; }
.sf-status-reviewed { background: #1e3a2e; color: #4ade80; }
.sf-status-booked { background: #3b2e1a; color: #fbbf24; }
.sf-status-paid { background: #1e2a3a; color: #818cf8; }

/* ── Load More Button ────────────────────────────────────── */

.sf-load-more {
    width: 100%;
    text-align: center;
    padding: 0.5rem;
    font-size: 0.75rem;
    border-top: 1px solid var(--ui-border);
}

/* ── Search History Dropdown ─────────────────────────────── */

.sf-search-history {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--ui-bg-surface);
    border: 1px solid var(--ui-border);
    border-top: none;
    border-radius: 0 0 4px 4px;
    z-index: 100;
    max-height: 12rem;
    overflow-y: auto;
}
.sf-history-item {
    padding: 0.35rem 0.6rem;
    font-size: 0.78rem;
    cursor: pointer;
    color: var(--ui-text);
}
.sf-history-item:hover {
    background: var(--ui-bg-hover);
}

/* ── Dark Theme Overrides ──────────────────────────────────── */

.theme-dark .sf-panel-left {
    background: #111921;
    border-right-color: #2a3a4e;
}

.theme-dark .sf-panel-center {
    background: #0f1419;
}

.theme-dark .sf-panel-right {
    background: #1a2332;
    border-left-color: #2a3a4e;
}

.theme-dark .sf-panel-header {
    background: #162029;
    border-bottom-color: #2a3a4e;
}

.theme-dark .sf-doc-item {
    border-bottom-color: #2a3a4e;
}

.theme-dark .sf-doc-item:hover {
    background: #1e2a3a;
}

.theme-dark .sf-doc-item.active {
    background: #1c2d42;
}

.theme-dark .sf-input,
.theme-dark .sf-select,
.theme-dark .sf-textarea {
    background: #162029;
    border-color: #34485f;
    color: #d4dde8;
}

.theme-dark .sf-input:focus,
.theme-dark .sf-select:focus,
.theme-dark .sf-textarea:focus {
    border-color: #5b9cf6;
    box-shadow: 0 0 0 2px rgba(91, 156, 246, 0.2);
}

.theme-dark .sf-input::placeholder,
.theme-dark .sf-textarea::placeholder {
    color: #5f7389;
}

.theme-dark .sf-select {
    background: #162029 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%238a9bb0' d='M3 4.5L6 8l3-3.5H3z'/%3E%3C/svg%3E") no-repeat right 0.6rem center / 12px 12px;
}

.theme-dark .sf-dropzone {
    background: #1e2a3a;
    border-color: #34485f;
    color: #8a9bb0;
}

.theme-dark .sf-dropzone:hover,
.theme-dark .sf-dropzone.sf-dragover {
    border-color: #5b9cf6;
    background: #1c2d42;
}

.theme-dark .sf-timeline-entry {
    background: #162029;
}

.theme-dark .sf-inbox-card {
    background: #162029;
    border-color: #2a3a4e;
}

.theme-dark .sf-booking-panel {
    background: #162029;
    border-color: #2a3a4e;
}

.theme-dark .sf-forward-btn {
    background: rgba(22,163,74,0.8);
    border-color: rgba(22,163,74,0.5);
    color: #fff;
}

.theme-dark .sf-forward-btn:hover:not(:disabled) {
    background: rgba(22,163,74,1);
    border-color: rgba(22,163,74,0.7);
}

.theme-dark .sf-forward-btn:disabled {
    background: #162029;
    border-color: #34485f;
    color: #6b7d93;
}

.theme-dark .sf-archive-split {
    border-color: #2a3a4e;
}

.theme-dark .sf-archive-list {
    background: #111921;
    border-right-color: #2a3a4e;
}

.theme-dark .sf-archive-preview {
    background: #0f1419;
}

.theme-dark .sf-llm-loading {
    background: #1c2d42;
    border-color: #2a3a4e;
}

/* ── 9. Missing Class Definitions (Batch 1+2) ────────────── */

/* Login header/kicker */
.sf-login-header { margin-bottom: 1.5rem; }
.sf-login-kicker {
    font-size: var(--ui-font-caption);
    color: #5f7389;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 700;
}

/* Field layout (Booking panels, Upload form) */
.sf-field-row { display: flex; gap: 0.5rem; }
.sf-field-half { flex: 1; display: flex; flex-direction: column; gap: 0.25rem; min-width: 0; }

/* Upload page (legacy 2-column, kept for compat) */
.sf-upload-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    min-height: calc(100vh - 10rem);
}
.sf-upload-form { display: flex; flex-direction: column; gap: 0.75rem; }
.sf-upload-preview { display: flex; flex-direction: column; min-width: 0; }

/* ── Multi-Upload: Dropzone input overlay ────────────────── */
label.sf-dropzone { position: relative; display: block; }
.sf-dropzone-input {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
    z-index: 2;
}

/* ── Multi-Upload: Queue panels ──────────────────────────── */
.sf-upload-queues {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-top: 1rem;
}
.sf-upload-queue {
    border: 1px solid var(--ui-border);
    border-radius: var(--ui-radius-panel);
    background: var(--ui-bg-surface);
    overflow: hidden;
}
.sf-upload-queue-header {
    padding: 0.65rem 0.75rem;
    font-size: var(--ui-font-caption);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--ui-text-faint);
    border-bottom: 1px solid var(--ui-border);
    background: var(--ui-bg-muted);
}
.sf-queue-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.55rem 0.75rem;
    border-bottom: 1px solid var(--ui-border);
    border-left: 3px solid transparent;
    cursor: pointer;
    transition: background 0.12s;
}
.sf-queue-item:hover { background: var(--ui-bg-muted); }
.sf-queue-item.active { background: var(--ui-bg-accent); border-left-color: var(--ui-primary); }
.sf-queue-item.analyzing { border-left-color: #f59e0b; }
.sf-queue-item.analyzed { border-left-color: #16a34a; }
.sf-queue-item.saved { border-left-color: #2563eb; opacity: 0.7; }
.sf-queue-item.error { border-left-color: #dc2626; }
.sf-queue-item-name {
    flex: 1;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--ui-text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.sf-queue-item-meta {
    font-size: var(--ui-font-caption);
    color: var(--ui-text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 200px;
}
.sf-queue-remove {
    flex-shrink: 0;
    background: none;
    border: none;
    color: var(--ui-text-muted);
    font-size: 1rem;
    line-height: 1;
    cursor: pointer;
    padding: 0 0.2rem;
    opacity: 0;
    transition: opacity 0.15s, color 0.15s;
}
.sf-queue-item:hover .sf-queue-remove,
.sf-doc-item:hover .sf-queue-remove { opacity: 1; }
.sf-queue-remove:hover { color: #dc2626; }
.sf-queue-item-progress {
    flex-shrink: 0;
    font-size: 0.65rem;
    color: #f59e0b;
    white-space: nowrap;
    font-weight: 500;
}
.sf-queue-status-icon {
    flex-shrink: 0;
    font-size: 0.75rem;
    width: 1rem;
    text-align: center;
}
.sf-queue-dup-badge {
    flex-shrink: 0;
    font-size: 0.65rem;
    font-weight: 600;
    padding: 0.1rem 0.4rem;
    border-radius: 3px;
    background: #ef4444;
    color: #fff;
}
.sf-queue-spinner {
    flex-shrink: 0;
    width: 14px;
    height: 14px;
    border: 2px solid var(--ui-border-strong);
    border-top-color: var(--ui-primary);
    border-radius: 50%;
    animation: sf-spin 0.8s linear infinite;
}
@keyframes sf-spin { to { transform: rotate(360deg); } }
.sf-queue-stats {
    font-size: var(--ui-font-caption);
    color: var(--ui-text-muted);
    margin-right: 0.5rem;
}

/* ── Multi-Upload: Review 3-column layout ────────────────── */
.sf-upload-review {
    display: grid;
    grid-template-columns: 220px 1fr 300px;
    min-height: calc(100vh - 12rem);
    gap: 0;
    margin-top: 1rem;
    border: 1px solid var(--ui-border);
    border-radius: var(--ui-radius-panel);
    overflow: hidden;
}
.sf-upload-review-list {
    border-right: 1px solid var(--ui-border);
    background: var(--ui-bg-soft);
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}
.sf-upload-review-form {
    border-left: 1px solid var(--ui-border);
    background: var(--ui-bg-surface);
    overflow-y: auto;
    padding: 0.85rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}
.sf-btn-full { width: 100%; }

/* ── Dark theme overrides ────────────────────────────────── */
.theme-dark .sf-upload-queue { background: #1a2332; border-color: #2a3a4e; }
.theme-dark .sf-upload-queue-header { background: #0f1419; border-color: #2a3a4e; }
.theme-dark .sf-queue-item { border-bottom-color: #2a3a4e; }
.theme-dark .sf-queue-item:hover { background: #1e2d3d; }
.theme-dark .sf-queue-item.active { background: #233347; }
.theme-dark .sf-upload-review { border-color: #2a3a4e; }
.theme-dark .sf-upload-review-list { background: #0f1419; border-color: #2a3a4e; }
.theme-dark .sf-upload-review-form { background: #1a2332; border-color: #2a3a4e; }

/* PDF iframe + empty state (shared) */
.sf-pdf-frame { flex: 1; width: 100%; border: none; background: #1a1a1a; min-height: 500px; }
.sf-pdf-empty {
    flex: 1; display: flex; align-items: center; justify-content: center;
    color: var(--ui-text-faint); font-size: var(--ui-font-body);
}

/* Archive 3-column layout */
.sf-archive-layout {
    display: grid;
    grid-template-columns: 280px 1fr 300px;
    gap: 0;
    flex: 1;
    border: 1px solid var(--ui-border);
    border-radius: var(--ui-radius-panel);
    overflow: hidden;
    background: var(--ui-bg-surface);
    height: calc(100vh - 12rem);
}
.sf-archive-layout.sf-archive-scaled {
    grid-template-columns: 1fr 3fr 1fr;
}
.sf-archive-results {
    border-right: 1px solid var(--ui-border);
    overflow-y: auto;
    background: var(--ui-bg-soft);
    display: flex;
    flex-direction: column;
}
.sf-archive-pdf {
    display: flex;
    flex-direction: column;
    min-width: 0;
    background: var(--ui-bg-muted);
}
.sf-archive-details {
    border-left: 1px solid var(--ui-border);
    background: var(--ui-bg-surface);
    overflow-y: auto;
    padding: 0.85rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

/* Comment timeline color classes */
.sf-comment-bezahlt { border-left-color: #2563eb; }
.sf-comment-genehmigt { border-left-color: #16a34a; }
.sf-comment-abgelehnt { border-left-color: #dc2626; }
.sf-comment-rechnung { border-left-color: #8b5cf6; }
.sf-comment-pruefen { border-left-color: #a3a321; }

/* Success message */
.sf-success-msg {
    background: rgba(22,163,74,0.15);
    color: rgba(22,163,74,0.9);
    padding: 0.5rem 0.8rem;
    border-radius: var(--ui-radius-control);
    font-size: var(--ui-font-caption);
    margin-top: 0.4rem;
}

/* Empty state */
.sf-empty-state {
    padding: 1rem;
    color: var(--ui-text-muted);
    text-align: center;
    font-size: var(--ui-font-caption);
}

/* Button row (booking panel) */
.sf-button-row {
    display: flex;
    gap: 0.4rem;
    margin-top: 0.4rem;
}
.sf-button-row > * { flex: 1; }

/* Status text (small muted) */
.sf-status-text { color: var(--ui-text-muted); font-size: 0.7rem; }

/* Year selector in archive */
.sf-year-select { width: 100px; }

/* Full-width button */
.sf-btn-full { width: 100%; margin-top: 0.3rem; }

/* Detail info block */
.sf-detail-info {
    font-size: 0.7rem;
    color: var(--ui-text-muted);
    padding: 0.3rem;
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

/* Data table (admin) */
.sf-data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.72rem;
}
.sf-data-table thead tr {
    border-bottom: 1px solid var(--ui-border);
    color: var(--ui-text-muted);
}
.sf-data-table th,
.sf-data-table td {
    text-align: left;
    padding: 0.2rem 0.3rem;
}
.sf-data-table tbody tr {
    border-bottom: 1px solid var(--ui-border);
}

/* Scrollable table container */
.sf-table-container {
    padding: 0.3rem 0.5rem;
    max-height: 400px;
    overflow-y: auto;
}

/* Spacing between panel headers */
.sf-panel-header + .sf-panel-header,
.sf-timeline + .sf-panel-header,
.sf-inbox-card .sf-panel-header:first-child {
    margin-top: 0;
}

.sf-booking-panel + .sf-panel-header,
.sf-stamp-row + .sf-panel-header,
.sf-select + .sf-panel-header,
.sf-textarea + .sf-panel-header,
.sf-forward-btn + .sf-success-msg + .sf-panel-header,
.sf-booking-panel + .toolbar-button {
    margin-top: 0.6rem;
}

/* ── Dark Theme: New Classes ─────────────────────────────── */

.theme-dark .sf-archive-layout {
    border-color: #2a3a4e;
}
.theme-dark .sf-archive-results {
    background: #111921;
    border-right-color: #2a3a4e;
}
.theme-dark .sf-archive-pdf {
    background: #0f1419;
}
.theme-dark .sf-archive-details {
    background: #1a2332;
    border-left-color: #2a3a4e;
}
.theme-dark .sf-upload-layout .sf-upload-preview {
    background: #0f1419;
}

/* Stats cards (admin) */
.sf-stats-row {
    display: flex;
    gap: 1.5rem;
    padding: 0.6rem 0.8rem;
    flex-wrap: wrap;
}
.sf-stat-card { text-align: center; }
.sf-stat-value { font-size: 2rem; font-weight: 700; }
.sf-stat-label { font-size: 0.7rem; color: var(--ui-text-muted); }
.sf-stat-primary { color: var(--ui-primary); }
.sf-stat-green { color: rgba(22,163,74,0.9); }
.sf-stat-orange { color: rgba(234,88,12,0.9); }

/* Text alignment utility */
.sf-text-right { text-align: right; }

/* Stamp delete button (inline) */
.sf-stamp-delete {
    padding: 0.1rem 0.3rem;
    font-size: 0.6rem;
    line-height: 1;
    min-height: auto;
}

/* Password card max-width */
.sf-password-card { max-width: 400px; }

/* Admin/Profil column layout */
.sf-admin-column { display: flex; flex-direction: column; gap: 1.5rem; width: 66%; margin: 1.5rem auto 0; }

/* Admin form sections padding */
.sf-search-bar .sf-field { flex: 1; }

/* ── Responsive ────────────────────────────────────────────── */

@media (max-width: 1100px) {
    .signflow-inbox {
        grid-template-columns: 1fr;
        grid-template-rows: auto 50vh auto;
    }

    .sf-panel-left {
        border-right: none;
        border-bottom: 1px solid var(--ui-border);
        max-height: 200px;
    }

    .sf-panel-right {
        border-left: none;
        border-top: 1px solid var(--ui-border);
    }

    .sf-archive-split {
        grid-template-columns: 1fr;
        grid-template-rows: 250px 1fr;
    }

    .sf-archive-list {
        border-right: none;
        border-bottom: 1px solid var(--ui-border);
    }

    .sf-upload-fields {
        grid-template-columns: 1fr;
    }

    .sf-upload-layout {
        grid-template-columns: 1fr;
    }

    .sf-archive-layout {
        grid-template-columns: 1fr;
        grid-template-rows: 200px 50vh auto;
    }

    .sf-archive-results {
        border-right: none;
        border-bottom: 1px solid var(--ui-border);
    }

    .sf-archive-details {
        border-left: none;
        border-top: 1px solid var(--ui-border);
    }

    .sf-field-row {
        flex-direction: column;
    }

    .sf-upload-queues {
        grid-template-columns: 1fr;
    }

    .sf-upload-review {
        grid-template-columns: 1fr;
        grid-template-rows: auto 50vh auto;
    }

    .sf-upload-review-list {
        border-right: none;
        border-bottom: 1px solid var(--ui-border);
        max-height: 200px;
    }

    .sf-upload-review-form {
        border-left: none;
        border-top: 1px solid var(--ui-border);
    }
}

/* ── Prompt Administration ─────────────────────────────── */

.sf-prompt-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
    gap: 1rem;
    padding: 0.5rem 0;
}

.sf-prompt-textarea {
    font-family: 'Cascadia Code', 'Fira Code', 'Consolas', monospace;
    font-size: 0.78rem;
    line-height: 1.45;
    resize: vertical;
    min-height: 220px;
    white-space: pre-wrap;
}

.sf-prompt-textarea[readonly] {
    opacity: 0.7;
    cursor: default;
    background: var(--ui-bg-muted);
}

.sf-prompt-name {
    font-weight: 600;
    font-size: 0.85rem;
    border: none;
    background: transparent;
    padding: 0;
    color: inherit;
    width: 100%;
}

.sf-prompt-name:focus {
    outline: none;
    border-bottom: 1px solid var(--ui-border);
}

.sf-prompt-actions {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.25rem;
}

.sf-prompt-active {
    background: rgba(22,163,74,0.85) !important;
    color: #fff !important;
    pointer-events: none;
}

.sf-prompt-meta {
    font-size: 0.72rem;
    color: var(--text-tertiary);
    margin-top: 0.15rem;
}

/* ── Delete Button ─────────────────────────────────────────── */
.sf-delete-btn {
    width: 100%;
    padding: 0.5rem;
    background: #dc2626;
    color: white;
    border: none;
    border-radius: 0.375rem;
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s;
}
.sf-delete-btn:hover { background: #b91c1c; }
.sf-delete-btn:disabled { background: #991b1b; opacity: 0.7; cursor: wait; }
.sf-delete-btn-disabled {
    width: 100%;
    padding: 0.5rem;
    background: #374151;
    color: #6b7280;
    border: none;
    border-radius: 0.375rem;
    font-size: 0.75rem;
    font-weight: 600;
    cursor: not-allowed;
}

/* ── OCR-Text Toggle ─────────────────────────────────────── */
.sf-ocr-toggle {
    display: flex;
    gap: 0.25rem;
    padding: 0.35rem 0.5rem;
    background: #1a2332;
    border-bottom: 1px solid #2a3a4e;
    flex-shrink: 0;
}
.sf-ocr-toggle .toolbar-button.active {
    background: #2563eb;
    border-color: #2563eb;
}
.sf-ocr-text {
    flex: 1;
    overflow-y: auto;
    padding: 1rem;
    margin: 0;
    font-family: "Cascadia Code", "Consolas", monospace;
    font-size: 0.78rem;
    line-height: 1.5;
    color: #d4dde8;
    background: #0f1419;
    white-space: pre-wrap;
    word-break: break-word;
    user-select: text;
    cursor: text;
}

/* ── Export Modal ─────────────────────────────────────────── */
.sf-export-popup {
    background: var(--ui-bg);
    border-radius: 8px;
    width: 420px;
    max-width: 95vw;
    display: flex;
    flex-direction: column;
    box-shadow: 0 8px 32px rgba(0,0,0,0.3);
    overflow: hidden;
}

/* ═══════════════════════════════════════════════════════════
   Light Theme — overrides for SignFlow-specific hardcoded
   dark colors. The design-system.css :root vars are already
   light; these fix classes that bypass CSS vars.
   ═══════════════════════════════════════════════════════════ */

.theme-light .signflow-login {
    background: #f3f6fb;
}

.theme-light .signflow-login-card {
    background: #ffffff;
    border-color: #dce4ef;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
}

.theme-light .signflow-login-card h1 {
    color: #223548;
}

.theme-light .signflow-login-card .sf-login-sub {
    color: #61758a;
}

.theme-light .signflow-login-card label {
    color: #61758a;
}

.theme-light .signflow-login-card .sf-login-error {
    background: #fef2f2;
    color: #dc2626;
    border-color: #fecaca;
}

.theme-light .sf-ocr-toggle {
    background: #f7f9fc;
    border-bottom-color: #dce4ef;
}

.theme-light .sf-ocr-toggle .toolbar-button.active {
    background: #0f6cbd;
    border-color: #0f6cbd;
}

.theme-light .sf-ocr-text {
    background: #ffffff;
    color: #223548;
}

.theme-light .sf-status-new { background: #dbeafe; color: #1d4ed8; }
.theme-light .sf-status-reviewed { background: #dcfce7; color: #15803d; }
.theme-light .sf-status-booked { background: #fef3c7; color: #a16207; }
.theme-light .sf-status-paid { background: #e0e7ff; color: #4338ca; }

.theme-light .sf-panel-center iframe,
.theme-light .sf-archive-preview iframe,
.theme-light .sf-pdf-frame {
    background: #e5e7eb;
}

.theme-light .sf-dup-warning {
    background: #fef2f2;
    color: #991b1b;
}

.theme-light .sf-archive-info {
    background: rgba(15, 108, 189, 0.08);
    border-color: rgba(15, 108, 189, 0.2);
    color: #0f6cbd;
}

.theme-light .sf-timeline-entry {
    background: #f7f9fc;
}

.theme-light .sf-delete-btn {
    background: #dc2626;
}

.theme-light .sf-delete-btn:hover {
    background: #b91c1c;
}

.theme-light .sf-delete-btn-disabled {
    background: #e5e7eb;
    color: #9ca3af;
}

.theme-light .sf-stamp-btn {
    background: rgba(0, 0, 0, 0.05);
    border-color: rgba(0, 0, 0, 0.18);
    color: var(--ui-text);
}
