/* Product-owned window chrome. Phone/coarse-pointer editor sheets keep their existing rules. */
.window-grip,.window-help,.window-tools [data-dock] { display:none; }
/* Keep Close outside the scrollable editor body on every screen. */
dialog > .ed-head { position:sticky; top:0; z-index:2; display:flex; flex-wrap:wrap; align-items:center; gap:8px; }
.window-title { flex:1 1 120px; min-width:0; overflow-wrap:anywhere; }
.window-tools { display:flex; flex-wrap:wrap; flex:none; gap:4px; margin-left:auto; }
.renter-options { margin:0; padding:4px; border:1px solid var(--color-border-strong); border-radius:10px; background:var(--color-surface); color:var(--color-text); box-shadow:0 8px 24px #0003; overflow:auto; }
.renter-options [role="option"] { min-height:44px; padding:8px 12px; border-radius:6px; font-size:16px; cursor:pointer; }
.renter-options [role="option"] strong,.renter-options [role="option"] span { display:block; }
.renter-options [role="option"] span { font-size:14px; color:var(--color-muted); overflow-wrap:anywhere; }
.renter-options [aria-selected="true"],.renter-options [role="option"]:hover { background:var(--color-sunken); outline:2px solid var(--color-primary-strong); outline-offset:-2px; }
@media (pointer:fine) and (min-width:900px) {
    /* T-1232: wide enough at 1280 for all seven columns, Use this payment included. */
    body[data-dialog-layout] #batchEditor { width:min(1180px,calc(100vw - 48px)); max-width:calc(100vw - 24px); }
    #batchEditor .ed-body { padding:12px; }
    #batchEditor .hint,#batchEditor .batch-table,#batchEditor .batch-table th,#batchEditor .batch-table td,#batchEditor .batch-table input,#batchEditor .batch-table select,#batchEditor .batch-total { font-size:16px; }
    #batchEditor .batch-table th,#batchEditor .batch-table td { padding:4px 2px; }
    #batchEditor .batch-table input,#batchEditor .batch-table select { min-height:44px; padding:8px; }
    #batchEditor .bx-cust { min-width:200px; }
    #batchEditor .bx-method { min-width:110px; }
    #batchEditor .bx-reference { min-width:130px; }
    #batchEditor .bx-amount { min-width:120px; text-align:right; }
    #batchEditor .bx-date { min-width:160px; }
    #batchEditor .bx-remove { min-width:44px; min-height:44px; }
    :is(#inquiryEditor,#inquiryConvert,#editor,#csvImportDialog,#payEditor,#batchEditor).operator-window[open] { position:fixed; margin:0; max-width:calc(100vw - 24px); max-height:calc(100dvh - 24px); min-width:0; min-height:0; display:flex; flex-direction:column; overflow:hidden; }
    .operator-window .ed-head { flex:none; display:flex; align-items:center; gap:8px; padding:8px 12px; cursor:move; touch-action:none; user-select:none; }
    .operator-window .window-title { flex:1 1 120px; min-width:0; font-size:16px; }
    .operator-window .window-tools { display:flex; flex:none; gap:4px; }
    .operator-window .window-tools [data-dock] { display:block; min-width:44px; width:44px; min-height:44px; padding:4px; border:1px solid var(--color-on-primary); border-radius:8px; background:transparent; color:var(--color-on-primary); font-size:20px; cursor:pointer; }
    .operator-window .window-tools [data-dock]:hover,.operator-window .window-tools [data-dock][aria-pressed="true"] { background:var(--color-on-primary); color:var(--color-primary-strong); }
    .operator-window .ed-head:focus-visible,.operator-window .window-tools button:focus-visible { outline:3px solid var(--color-on-primary) !important; outline-offset:-5px !important; }
    .operator-window .window-tools button[aria-pressed="true"]:focus-visible,.operator-window .window-tools button:hover:focus-visible { outline-color:var(--color-primary-strong) !important; }
    .operator-window .window-grip:focus-visible { outline-offset:-5px !important; }
    .operator-window > .ed-body { flex:1; min-height:0; max-height:none; overflow:auto; scroll-padding-bottom:16px; }
    .operator-window > .window-actions { flex:none; display:flex; flex-wrap:wrap; position:static; margin:0; padding:12px 56px 12px 12px; gap:8px; border-top:1px solid var(--color-border); background:var(--color-surface); }
    .operator-window > .window-actions > .btn { min-height:44px; }
    .operator-window .window-grip { display:block; position:absolute; right:4px; bottom:4px; width:44px; height:44px; padding:0; border:1px solid var(--color-border-strong); border-radius:8px; background:var(--color-surface); color:var(--color-primary-strong); font-size:24px; cursor:nwse-resize; touch-action:none; }
    .operator-window[data-window-dock="left"]::backdrop,.operator-window[data-window-dock="right"]::backdrop { background:rgb(0 0 0 / 15%); }
    .operator-window .window-help { display:block; position:absolute; width:1px; height:1px; overflow:hidden; clip-path:inset(50%); }
}
@media print { .renter-options { display:none !important; } }
