dialog.wf-resizable[open]{display:flex!important;flex-direction:column;overflow:hidden!important;box-sizing:border-box}
dialog.wf-resizable>.wf-dialog-content{flex:1 1 auto;min-height:0;min-width:0;overflow:auto;overscroll-behavior:contain;scrollbar-gutter:stable}
dialog.wf-resizable.wf-dialog-sized[open]{width:var(--wf-dialog-width)!important;height:var(--wf-dialog-height)!important;min-width:0!important;min-height:0!important;max-width:none!important;max-height:none!important;position:fixed!important;inset:auto!important;left:var(--wf-dialog-left)!important;top:var(--wf-dialog-top)!important;margin:0!important}
dialog.wf-resizable>.wf-dialog-controls{display:flex;flex:0 0 auto;align-items:center;justify-content:space-between;gap:10px;border-top:1px solid #dce6db;padding-top:10px;margin-top:12px;padding-right:16px;color:#687e6b;font:12px/1.4 'Malgun Gothic','Apple SD Gothic Neo',sans-serif}
dialog.wf-resizable>.wf-dialog-controls>div{display:flex;gap:6px;flex-wrap:wrap;justify-content:flex-end}
dialog.wf-resizable>.wf-dialog-controls button{min-height:30px!important;height:auto!important;min-width:0!important;width:auto!important;padding:6px 9px!important;margin:0!important;border:1px solid #ccdbce!important;border-radius:6px!important;background:#f1f6f1!important;color:#2a6340!important;font-size:12px!important;font-weight:600!important;line-height:1.3!important;white-space:nowrap;cursor:pointer}
dialog.wf-resizable .wf-dialog-controls button:focus-visible,dialog.wf-resizable>.wf-dialog-se:focus-visible{outline:3px solid #69a17b;outline-offset:1px}
dialog.wf-resizable>.wf-dialog-handle{position:absolute;z-index:5;touch-action:none;user-select:none;-webkit-user-select:none}
dialog.wf-resizable>.wf-dialog-n,dialog.wf-resizable>.wf-dialog-s{left:22px;right:22px;height:8px;cursor:ns-resize}
dialog.wf-resizable>.wf-dialog-n{top:0}dialog.wf-resizable>.wf-dialog-s{bottom:0}
dialog.wf-resizable>.wf-dialog-e,dialog.wf-resizable>.wf-dialog-w{top:22px;bottom:22px;width:8px;cursor:ew-resize}
dialog.wf-resizable>.wf-dialog-e{right:0}dialog.wf-resizable>.wf-dialog-w{left:0}
dialog.wf-resizable>.wf-dialog-ne,dialog.wf-resizable>.wf-dialog-nw,dialog.wf-resizable>.wf-dialog-sw,dialog.wf-resizable>.wf-dialog-se{width:24px;height:24px}
dialog.wf-resizable>.wf-dialog-ne{right:0;top:0;cursor:nesw-resize}dialog.wf-resizable>.wf-dialog-nw{left:0;top:0;cursor:nwse-resize}
dialog.wf-resizable>.wf-dialog-sw{left:0;bottom:0;cursor:nesw-resize}dialog.wf-resizable>.wf-dialog-se{right:2px;bottom:2px;cursor:nwse-resize;border-radius:5px;background:repeating-linear-gradient(135deg,transparent 0 4px,#4d8a60 4px 6px,transparent 6px 9px);clip-path:polygon(100% 0,100% 100%,0 100%)}
dialog.wf-resizable.wf-dialog-dragging,dialog.wf-resizable.wf-dialog-dragging *{user-select:none!important;-webkit-user-select:none!important}
/* The extra room should show more rows rather than blank space. */
#orderMatchingDialog.wf-dialog-sized .matching-table-wrap{max-height:clamp(140px,calc(var(--wf-dialog-height) - 340px),75dvh)}
#orderMatchingDialog.wf-dialog-sized:has(#matchingEditor:not([hidden])) .matching-table-wrap{max-height:clamp(120px,calc(var(--wf-dialog-height) - 700px),300px)}
#ledgerRecordDialog.wf-resizable>.wf-dialog-content{display:flex;flex-direction:column}
#ledgerRecordDialog.wf-resizable>.wf-dialog-content>form{flex:1 1 auto;min-height:0;max-height:none!important}
#ledgerRecordDialog.wf-dialog-sized>.wf-dialog-content>form{height:100%}
@media(max-width:650px){dialog.wf-resizable>.wf-dialog-controls{font-size:11px;gap:7px;flex-wrap:wrap}dialog.wf-resizable>.wf-dialog-controls>div{margin-left:auto}dialog.wf-resizable>.wf-dialog-se{width:30px;height:30px}}
@media print{.wf-dialog-controls,.wf-dialog-handle{display:none!important}}
