.dl-receipts-wrapper { max-width: 700px; margin: 0 auto; padding: 30px 0; }

.dl-upload-area {
    background: var(--dl-white);
    padding: 32px;
    margin-bottom: 24px;
}

.dl-upload-dropzone {
    border: 2px dashed var(--dl-border);
    padding: 40px 20px;
    text-align: center;
    cursor: pointer;
    transition: var(--dl-transition);
    color: var(--dl-text-muted);
}
.dl-upload-dropzone:hover, .dl-upload-dropzone.dragover {
    border-color: var(--dl-primary);
    background: rgba(130,174,54,0.05);
    color: var(--dl-primary);
}
.dl-upload-dropzone svg { margin: 0 auto 12px; display: block; }
.dl-upload-dropzone p { font-size: 14px; }

.dl-receipt-preview {
    margin-top: 16px;
    text-align: center;
}
.dl-receipt-preview img {
    max-width: 300px;
    max-height: 400px;
}

.dl-upload-msg { margin-top: 16px; font-size: 14px; text-align: center; min-height: 20px; }
.dl-upload-msg.success { color: var(--dl-primary-dark); }
.dl-upload-msg.error { color: #c82333; }

.dl-receipts-history { margin-top: 24px; }

.dl-receipts-list { display: flex; flex-direction: column; gap: 0; }
.dl-receipt-item {
    display: flex;
    gap: 16px;
    padding: 12px 0;
    border-bottom: 1px solid var(--dl-border-light);
}
.dl-receipt-item:last-child { border-bottom: none; }
.dl-receipt-thumb { width: 60px; height: 80px; object-fit: cover; }
.dl-receipt-info { display: flex; flex-direction: column; gap: 4px; }
.dl-receipt-date { font-size: 12px; color: var(--dl-text-muted); }
.dl-receipt-amount { font-weight: 700; font-size: 14px; color: var(--dl-text); }
.dl-receipt-comment { font-size: 12px; color: var(--dl-text-muted); font-style: italic; }

.dl-receipt-comment-approved {
    color: #82ae36;
    font-style: normal;
    margin-top: 4px;
    padding: 4px 8px;
    background: rgba(130,174,54,0.1);
    border-left: 2px solid #82ae36;
    font-size: 13px;
}

.dl-receipt-comment-rejected {
    color: #d63638;
    font-style: normal;
    margin-top: 4px;
    padding: 4px 8px;
    background: rgba(214,54,56,0.1);
    border-left: 2px solid #d63638;
    font-size: 13px;
}

.dl-receipt-thumb {
    width: 60px;
    height: 80px;
    object-fit: cover;
    cursor: pointer;
    transition: transform .2s;
}

.dl-receipt-thumb.dl-receipt-thumb-expanded {
    width: auto;
    height: auto;
    max-width: 400px;
    max-height: 500px;
    position: relative;
    z-index: 10;
}

.dl-ocr-status {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    margin-top: 12px;
    background: rgba(130,174,54,0.08);
    border: 1px solid rgba(130,174,54,0.3);
    color: #82ae36;
    font-size: 14px;
}

.dl-ocr-spinner {
    width: 20px;
    height: 20px;
    border: 2px solid rgba(130,174,54,0.3);
    border-top-color: #82ae36;
    border-radius: 50%;
    animation: dl-spin 0.8s linear infinite;
    flex-shrink: 0;
}

@keyframes dl-spin { to { transform: rotate(360deg); } }

.dl-ocr-result {
    margin-top: 16px;
    padding: 20px;
    background: var(--dl-dark, #181818);
    border: 1px solid var(--dl-border, #2a2a2a);
}

.dl-ocr-field label {
    display: block;
    font-size: 13px;
    color: #999;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.dl-ocr-amount-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.dl-amount-input {
    flex: 1;
    font-size: 24px;
    font-weight: 700;
    max-width: 200px;
}

.dl-amount-currency {
    font-size: 24px;
    color: #82ae36;
}

.dl-ocr-match,
.dl-ocr-nomatch {
    margin-top: 16px;
}

.dl-ocr-badge-ok {
    display: inline-block;
    padding: 6px 14px;
    background: rgba(130,174,54,0.15);
    color: #82ae36;
    border: 1px solid #82ae36;
    font-size: 13px;
    font-weight: 600;
}

.dl-ocr-badge-warn {
    display: inline-block;
    padding: 6px 14px;
    background: rgba(255,165,0,0.1);
    color: #ffa500;
    border: 1px solid rgba(255,165,0,0.4);
    font-size: 13px;
    font-weight: 600;
}

.dl-section-desc {
    color: #999;
    font-size: 14px;
    margin-bottom: 20px;
}

.dl-upload-msg.info { color: #82ae36; }

.dl-ocr-debug {
    margin-top: 16px;
    border-top: 1px solid #2a2a2a;
    padding-top: 12px;
}

.dl-ocr-debug summary {
    cursor: pointer;
    color: #999;
    font-size: 13px;
}

.dl-ocr-debug pre {
    background: #000;
    color: #82ae36;
    padding: 12px;
    font-size: 11px;
    line-height: 1.4;
    max-height: 300px;
    overflow: auto;
    white-space: pre-wrap;
    margin-top: 8px;
}
