#cheque-wallet-dialog{width:min(1180px,calc(100vw - 24px));max-height:94dvh;overflow:auto}#cheque-action-dialog{width:min(1000px,calc(100vw - 24px));max-height:94dvh;overflow:auto}.cheque-content,#cheque-action-form{padding:20px;min-width:0}.cheque-toolbar,.cheque-tabs,.cheque-summary,.cheque-pages{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin:12px 0}.cheque-summary{padding:12px;background:#eff5f5;border-radius:7px}.cheque-pages{justify-content:space-between}.cheque-fields,.cheque-card-fields{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;min-width:0}.cheque-fields{border:1px solid #d5dfeb;border-radius:8px;padding:12px;margin:12px 0}.cheque-fields label,.cheque-source-row label{min-width:0}.cheque-fields :is(input,select),.cheque-source-row :is(input,select){width:100%;min-width:0;box-sizing:border-box}.cheque-card-fields{grid-column:1/-1}.cheque-card-fields[hidden]{display:none}.cheque-source-row{display:grid;grid-template-columns:minmax(0,2fr) minmax(0,1fr);gap:12px;margin:12px 0}.cheque-lot{border:1px solid #d5dfeb;border-radius:9px;padding:14px;margin:14px 0}.cheque-lot-party{border-top:1px solid #e0e6ee;padding:12px 0}.cheque-lot-party>small{display:block;margin-bottom:8px}.cheque-settlement-history{display:flex;justify-content:space-between;gap:10px;align-items:center;flex-wrap:wrap;padding:10px 0;border-bottom:1px solid #e0e6ee}.cheque-row-actions{display:flex;gap:6px;flex-wrap:wrap;min-width:200px}.cheque-row-actions button{font-size:12px;padding:7px 10px}#cheque-wallet-body td small{display:block;color:#607084;max-width:250px;overflow-wrap:anywhere}#cheque-wallet-status,#cheque-action-status{color:#52677e;overflow-wrap:anywhere}#cheque-photo-preview{max-width:100%;max-height:55dvh;object-fit:contain}.cheque-toolbar button{font-size:13px}.cheque-tabs button{flex:1}#cheque-wallet-body table{min-width:900px}#cheque-action-fields p{line-height:1.5}
@media(max-width:1024px),(max-width:1366px) and (pointer:coarse){html body :is(#cheque-wallet-dialog,#cheque-action-dialog)[open]{position:fixed;inset:0;margin:0;transform:none;max-width:100vw;width:100vw;height:100dvh;max-height:100dvh;padding:10px max(10px,env(safe-area-inset-right)) max(12px,env(safe-area-inset-bottom)) max(10px,env(safe-area-inset-left));border:0;border-radius:0;box-sizing:border-box}.cheque-content,#cheque-action-form{padding:0}.cheque-fields,.cheque-card-fields{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:600px){.cheque-fields,.cheque-card-fields,.cheque-source-row{grid-template-columns:minmax(0,1fr)}.cheque-toolbar button{flex:1 1 130px}.cheque-lot{padding:10px}.cheque-summary>*{flex:1 1 140px}#cheque-action-form .dialog-actions button{width:100%}}
