.receivable-reference {
    background: transparent;
    border: 0;
    padding: .25rem 0;
    color: inherit;
    font: inherit;
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: .2em;
    cursor: pointer;
}
.receivable-details {
    box-sizing: border-box;
    margin: auto;
    width: min(32rem, 94vw);
    max-height: 88vh;
    overflow: auto;
    padding: 1.25rem;
    border: 1px solid #8888;
    border-radius: .75rem;
    background: var(--card-bg, Canvas);
    color: var(--text-primary, CanvasText);
    overflow-wrap: anywhere;
}
.receivable-details::backdrop { background: rgb(0 0 0 / .5); }
.receivable-details header { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.receivable-details h2 { margin: 0; font-size: 1.25rem; }
.receivable-details h3 { margin: 1rem 0 .5rem; font-size: 1rem; }
.receivable-details p { margin: .35rem 0; }
.receivable-details dl { display: grid; grid-template-columns: 1fr auto; gap: .4rem; }
.receivable-details dd { margin: 0; text-align: right; font-variant-numeric: tabular-nums; }
.receivable-details section { border-top: 1px solid #8885; margin-top: 1rem; }
.receivable-details img { max-width: 100%; max-height: 15rem; border-radius: .4rem; }
.receivable-details button { font: inherit; color: inherit; background: transparent; border: 1px solid #8889; border-radius: .4rem; padding: .45rem .8rem; cursor: pointer; }
.receivable-details button + button { margin-left: .5rem; }

.customer-photo-preview {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: .75rem;
    margin-block: .5rem;
}
.customer-photo-preview:empty { display: none; }
.customer-photo-preview .customer-photo-thumb {
    display: grid;
    gap: .25rem;
    justify-items: center;
    background: transparent;
    color: inherit;
    font: inherit;
    border: 1px solid #8888;
    border-radius: .4rem;
    padding: .35rem;
    cursor: zoom-in;
}
.customer-photo-thumb img { display: block; max-width: min(12rem, 60vw); max-height: 9rem; object-fit: contain; }
.customer-photo-preview a, .customer-photo-tools a { color: inherit; text-decoration: underline; }
.customer-photo-viewer {
    box-sizing: border-box;
    margin: auto;
    width: min(66rem, 96vw);
    padding: .75rem;
    background: var(--card-bg, Canvas);
    color: var(--text-primary, CanvasText);
    border: 1px solid #8888;
    border-radius: .65rem;
}
.customer-photo-viewer::backdrop { background: rgb(0 0 0 / .75); }
.customer-photo-tools { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; padding-bottom: .6rem; }
.customer-photo-tools button { padding: .45rem .65rem; font: inherit; color: inherit; background: transparent; border: 1px solid #8888; border-radius: .4rem; cursor: pointer; }
.customer-photo-tools button:disabled { opacity: .5; cursor: default; }
.customer-photo-tools output { min-width: 4ch; font-variant-numeric: tabular-nums; }
.customer-photo-tools button:last-child { margin-left: auto; }
.customer-photo-viewport { height: 66vh; overflow: auto; overscroll-behavior: contain; background: #151515; }
.customer-photo-viewport img { display: block; margin-inline: auto; max-width: none; height: auto; }
