/* ==========================================================================
   Add an expense from a receipt
   ========================================================================== */

.receipt-upload__form {
    display: grid;
    gap: 1rem;
}

.receipt-upload__drop {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .5rem;
    padding: 2rem 1rem;
    background: var(--edit-soft);
    border: 2px dashed var(--edit-line);
    border-radius: .5rem;
    color: var(--edit-muted);
    text-align: center;
    cursor: pointer;
}

.receipt-upload__drop:hover,
.receipt-upload__drop:focus-within {
    border-color: #0078e7;
}

/* The whole box is the click target; the input itself is visually hidden */
.receipt-upload__drop input[type="file"] {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
}

.receipt-upload__file {
    color: var(--edit-ink);
    font-weight: 600;
    word-break: break-all;
}

.receipt-upload__preview {
    max-width: 100%;
    max-height: 24rem;
    border-radius: .25rem;
}

.receipt-upload__status {
    align-self: center;
    color: var(--edit-muted);
}
