/* Two-pane register: the Edit transaction window docks to the right of the list (static/twopane.js) */
html.twopane { --pane-w: 420px; }
html.twopane #modal.pane { background: transparent; inset: 0 0 0 auto; width: var(--pane-w); padding: 0; display: block; z-index: 8; overflow-y: auto; border-left: 1px solid var(--line); box-shadow: -6px 0 24px rgba(0,0,0,.12); }
html.twopane #modal.pane > #modal-box { width: 100% !important; min-height: 100%; box-sizing: border-box; border-radius: 0; margin: 0; }
html.twopane.paneopen #main { margin-right: var(--pane-w); }
html.twopane.paneopen #main .tp-hide { display: none; }
html.twopane tr.row.paneon > td { background: var(--accent-soft, rgba(42, 91, 215, .12)); }
html.twopane #modal.pane #modal-box .actions { flex-wrap: wrap; gap: 8px; }
html.twopane #modal.pane #modal-box .actions .left { margin-right: auto; }
html.twopane #modal.pane { -webkit-overflow-scrolling: touch; overscroll-behavior: contain; }
/* everything fits: the pane is as tall as the screen, a tighter form, and the buttons stay at the bottom while the rest scrolls */
html.twopane #modal.pane > #modal-box { padding: 12px 14px 0; display: flex; flex-direction: column; }
html.twopane #modal.pane #modal-box h3 { margin: 0 0 8px; }
html.twopane #modal.pane #modal-box .actions { position: sticky; bottom: 0; background: var(--panel); margin: auto -14px 0; padding: 10px 14px calc(10px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); z-index: 2; }
html.twopane #modal.pane #modal-box .grid2 { gap: 8px 10px; }
html.twopane #modal.pane #modal-box textarea { min-height: 0; }
html.twopane #modal.pane #modal-box .grid2 { grid-template-columns: 1fr 1fr; }
html.twopane #modal.pane #modal-box .actions button { padding-left: 10px; padding-right: 10px; }
html.twopane #modal.pane #modal-box .actions { gap: 5px; flex-wrap: nowrap; }
html.twopane #modal.pane #modal-box .actions button { padding-left: 8px; padding-right: 8px; white-space: nowrap; }
/* the interface is scaled by the density (CSS zoom): the pane is widened to keep about the same size on screen */
html.twopane { --pane-w: 440px; }
html.twopane[data-density=compact] { --pane-w: calc(440px / .84); }
html.twopane[data-density=dense] { --pane-w: calc(440px / .76); }
