/* Scoped workflow controls; shared by the existing Offinz clients. */
.offinz-camera-button,.offinz-collection-trigger{display:inline-flex;align-items:center;justify-content:center;gap:8px;max-width:100%;min-width:0;min-height:44px;padding:10px 14px;border:1px solid #c7cedd;border-radius:12px;background:#f5f3ff;color:#493395;font-family:inherit;font-size:13px;font-weight:700;line-height:1.4;white-space:normal;overflow-wrap:anywhere;cursor:pointer}
.offinz-camera-button{margin-top:8px}.offinz-camera-status{max-width:100%;font-size:12px;line-height:1.5;color:#515b6b;overflow-wrap:anywhere;margin-top:6px}.offinz-expense-list-actions{display:flex;flex-wrap:wrap;align-items:center;gap:12px;min-width:0}
.offinz-collection-dialog{box-sizing:border-box;width:min(560px,calc(100% - 32px));max-height:calc(100dvh - 32px);overflow:auto;padding:24px;border:1px solid #c7cedd;border-radius:20px;background:#fff;color:#172033;box-shadow:0 24px 80px #10182b50}
.offinz-collection-dialog::backdrop{background:#10182ba8}.offinz-collection-dialog h2{font-size:22px;line-height:1.3;font-weight:800;margin:0 0 12px}.offinz-collection-dialog p{font-size:14px;line-height:1.5;margin:10px 0;overflow-wrap:anywhere}.offinz-collection-dates{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:20px 0}.offinz-collection-dates label{min-width:0;font-size:13px;font-weight:700}.offinz-collection-dates input{box-sizing:border-box;width:100%;min-width:0;max-width:100%;display:block;padding:10px;border:1px solid #aeb9ca;border-radius:10px;background:#f8fafc;color:#172033;margin-top:6px}
.offinz-collection-actions{display:flex;flex-wrap:wrap;gap:10px;justify-content:flex-end;margin-top:20px}.offinz-collection-actions button{min-height:44px;min-width:0;max-width:100%;padding:10px 16px;white-space:normal;border:1px solid #b7c2d4;background:#f4f6fa;color:#24324a;border-radius:12px;font-weight:700}.offinz-collection-actions button[type=submit]{background:#5840d3;border-color:#5840d3;color:white}.offinz-collection-dialog :focus-visible,.offinz-camera-button:focus-visible,.offinz-collection-trigger:focus-visible{outline:3px solid #937be8;outline-offset:3px}.offinz-collection-dialog :disabled{cursor:wait;opacity:.65}
body.dark-mode :is(.offinz-camera-button,.offinz-collection-trigger){background:#29253e!important;color:#e4dcff!important;border-color:#79718f!important}body.dark-mode .offinz-camera-status{color:#bbc5d4!important}body.dark-mode .offinz-collection-dialog{background:#1d2633;color:#f4f6fb;border-color:#66758d}body.dark-mode .offinz-collection-dates input{background:#141b27;color:#f4f6fb;border-color:#66758d}body.dark-mode .offinz-collection-actions button{background:#253147;color:#f4f6fb;border-color:#71829e}body.dark-mode .offinz-collection-actions button[type=submit]{background:#694fe0;color:#fff}
@media(max-width:560px){.offinz-collection-dates{grid-template-columns:minmax(0,1fr)}.offinz-collection-dialog{padding:20px}.offinz-collection-actions button{flex:1 1 130px}.offinz-expense-list-actions{width:100%;align-items:stretch}.offinz-expense-list-actions .offinz-collection-trigger{width:100%}}

/* Observed at 320 px: the backup import shrank to 57 px beside the export. */
.offinz-backup-actions{flex-wrap:wrap;align-items:stretch}
.offinz-backup-actions>button,.offinz-backup-actions>.relative{min-width:0;flex:1 1 220px}
.offinz-backup-actions button{width:100%;white-space:normal;overflow-wrap:anywhere;min-height:44px}
.offinz-backup-actions button i,#settingsView h3>i{flex-shrink:0}
@media(max-width:560px){.offinz-backup-actions{flex-direction:column}.offinz-backup-actions>button,.offinz-backup-actions>.relative{flex-basis:auto}}
/* Checkbox retains a usable target next to a wrapping mobile label. */
#offinzSwissQrSettings #setQrBillEnabled{width:18px;height:18px;min-width:18px;flex:0 0 18px;accent-color:#6557e8}
#offinzSwissQrSettings>label{min-height:44px;cursor:pointer}
/* Generic file-input styling must not expose the programmatic camera picker. */
#expReceiptCamera[hidden],#claimReceiptCamera[hidden]{display:none!important}
/* At tablet widths the fixed sidebar leaves too little room for half-width cards. */
@media(max-width:1100px){
 body #dashboardView #dashboardWidgetBoard>.dashboard-widget,
 body #dashboardView #dashboardWidgetBoard>.dashboard-drop-placeholder{grid-column:1/-1!important;min-width:0}
}
