/* Image upload list — shared across UnitTypeForm, DevelopmentForm, TenantForm */
.image-upload-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: 0.75rem;
}

.image-upload-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 0.75rem;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 0.375rem;
    cursor: grab;
}

.image-upload-item.drag-target {
    border-color: #2563eb;
    background: #eff6ff;
}

.image-upload-item:active {
    cursor: grabbing;
}

.image-upload-thumb {
    width: 3rem;
    height: 3rem;
    object-fit: cover;
    border-radius: 0.25rem;
    flex-shrink: 0;
    background: #f1f5f9;
}

.image-upload-name {
    flex: 1 1 auto;
    font-size: 0.85rem;
    color: #334155;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    min-width: 0;
}

.image-upload-status {
    font-size: 0.75rem;
    color: #94a3b8;
    flex-shrink: 0;
}

.image-upload-status.uploading {
    color: #2563eb;
}

.image-upload-status.error {
    color: #ef4444;
}

/* Bond capture fields — shared across the Approved / AIP / Declined step cards
   (and the bond application card's inline errors). */
.bac-capture-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 0.75rem 1rem;
}

.bac-capture-field {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    min-width: 0;
}

.bac-capture-field--wide {
    grid-column: 1 / -1;
}

.bac-capture-label {
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--muted);
}

.bac-req {
    color: #dc2626;
}

.bac-attorney-row {
    display: flex;
    gap: 0.5rem;
    align-items: flex-start;
}

.bac-attorney-row > :first-child {
    flex: 1;
    min-width: 0;
}

.bac-capture-error {
    margin-top: 0.6rem;
    color: #dc2626;
    font-size: 0.82rem;
}

/* Each bond capture component owns its own Save button, right-aligned below the
   fields (mirrors the Deeds office tracking step's own Save). */
.bac-capture-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 0.85rem;
}

/* Single-field capture components put the Save button on the same row as the field
   (plenty of horizontal space). The button aligns to the input, not the label. */
.bac-capture-inline {
    display: flex;
    gap: 1rem;
    align-items: flex-end;
}

.bac-capture-inline .bac-capture-field {
    flex: 1;
    min-width: 0;
}

/* Reusable currency input group — seamless "R" prefix, single border / radius. */
.cf-currency {
    display: flex;
    align-items: center;
    background: #fff;
    border: 1px solid var(--hair, #ced4da);
    border-radius: 0.375rem;
}

.cf-currency:focus-within {
    border-color: #86b7fe;
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.15);
}

.cf-currency__symbol {
    padding: 0 0.1rem 0 0.7rem;
    color: var(--muted);
    font-weight: 600;
    user-select: none;
}

.cf-currency .form-control {
    border: 0;
    border-radius: 0.375rem;
    padding-left: 0.25rem;
    box-shadow: none;
}

.cf-currency .form-control:focus {
    box-shadow: none;
}
