/* Scoped to the general cash form and its read-only full history. */
.gd-ui-v2-quick select[data-gd-general-native],select[data-gd-general-week][data-gd-general-native]{display:none!important}
body .gd-ui-v2-quick .gd-general-select,body .gd-general-history-tools .gd-general-select{display:flex!important;align-items:center;justify-content:space-between;width:100%!important;min-width:0;height:33px!important;min-height:33px!important;padding:5px 8px!important;border:1px solid #d1d8e6!important;border-radius:8px!important;background:#fff!important;background-image:none!important;color:#202a43!important;color-scheme:light!important;font:inherit!important;font-size:12px!important;font-weight:500!important;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;opacity:1!important;box-shadow:none!important;filter:none!important;transform:none!important}
body .gd-ui-v2-quick .gd-general-select:disabled{background:#f0f2f7!important;color:#758097!important}
body .gd-general-select:focus-visible,body .gd-general-options button:focus-visible{outline:2px solid #5965db!important;outline-offset:1px}
body .gd-general-options{position:fixed!important;z-index:2147483644!important;display:grid!important;gap:3px!important;max-height:280px!important;overflow:auto!important;padding:5px!important;border:1px solid #bfc9df!important;border-radius:9px!important;background:#fff!important;color:#202a43!important;color-scheme:light!important;box-shadow:0 8px 24px #18274728!important;backdrop-filter:none!important;filter:none!important;transform:none!important;box-sizing:border-box!important}
body .gd-general-options button{display:block!important;width:100%!important;min-height:33px!important;padding:7px 9px!important;border:1px solid transparent!important;border-radius:6px!important;background:#fff!important;color:#202a43!important;white-space:normal!important;text-align:left!important;font:500 13px/1.3 Arial,sans-serif!important}
body .gd-general-options button[aria-selected=true],body .gd-general-options button:hover{background:#edf1ff!important;border-color:#d5def9!important}
body .gd-general-options button:disabled{color:#8c95a7!important;cursor:default}
body.gdone-ui-v2-active .gd-ui-v2-quick .gdone-cashier-misc-row-2.is-limited{grid-template-columns:minmax(80px,1fr) minmax(60px,.45fr) minmax(100px,.8fr) auto!important}
body.gdone-ui-v2-active .gd-ui-v2-quick>.gd-ui-v2-card-head{flex-wrap:wrap!important;gap:7px!important}
body.gdone-ui-v2-active .gd-ui-v2-quick .gd-ui-v2-no-cash{margin-left:0!important;white-space:normal!important}
body .gd-general-history-button{flex:0 0 auto!important;margin-left:auto!important;padding:5px 9px!important;border:1px solid #c8d2ed!important;border-radius:7px!important;background:#f0f3ff!important;color:#34477e!important;font:700 12px/1.3 Arial,sans-serif!important}
body .gd-ui-v2-drivers.gd-general-history-open>:not([data-gd-general-history-pane]){display:none!important}
.gd-general-history-pane{display:flex;flex-direction:column;min-width:0;min-height:0;height:100%;overflow:hidden;color:#202a43}
.gd-general-history-head{display:flex;align-items:center;justify-content:space-between;gap:8px;flex-wrap:wrap;padding:8px;border-bottom:1px solid #d8dfed}
.gd-general-history-head h3{margin:0;font-size:16px;line-height:1.3;min-width:0}
.gd-general-history-head button,.gd-general-history-tools>button{padding:6px 9px;border:1px solid #cbd5e9;border-radius:7px;background:#f5f7ff;color:#354a80;font-weight:700;cursor:pointer}
.gd-general-history-tools{display:grid;grid-template-columns:112px minmax(0,1fr) auto 88px;align-items:center;gap:6px;padding:8px}
.gd-general-history-tools>label{min-width:0;max-width:none;margin:0}
.gd-general-history-tools>button{height:33px;box-sizing:border-box;white-space:nowrap}
.gd-general-history-tools>span{font-size:11px;color:#63718a;white-space:nowrap;text-align:right;font-variant-numeric:tabular-nums}
.gd-general-history-tools input{width:100%;min-width:0;height:33px;min-height:33px;padding:5px 8px;border:1px solid #d1d9e9;border-radius:8px;background:#fff;color:#202a43;font-size:12px;box-sizing:border-box}
[data-gd-general-status]{margin:0 8px 5px;font-size:12px;color:#775c28}
[data-gd-general-status]:empty{display:none}
.gd-general-records{flex:1;min-height:0;overflow:auto;overscroll-behavior:contain;padding:0 8px 8px;overflow-anchor:none}
.gd-general-record{padding:8px;margin-bottom:6px;border:1px solid #d4ddec;border-radius:8px;background:#fff;overflow-wrap:anywhere;line-height:1.25}
.gd-general-record>header{display:flex;align-items:flex-start;justify-content:space-between;gap:8px;min-width:0}
.gd-general-record-heading{display:flex;align-items:baseline;flex-wrap:wrap;gap:3px 8px;min-width:0;font-size:13px}
.gd-general-person{font-size:11px;color:#69768f}
.gd-general-record time{display:block;margin-top:2px;color:#69768f;font-size:11px}
.gd-general-amount{white-space:nowrap;font-size:14px}.gd-general-amount.is-in{color:#14834a}.gd-general-amount.is-out{color:#b23e47}
.gd-general-record dl{display:grid;grid-template-columns:1fr 1fr;gap:3px 10px;margin:5px 0;font-size:12px}.gd-general-record dl>div{display:flex;align-items:baseline;flex-wrap:wrap;gap:2px 4px;min-width:0}.gd-general-record dt,.gd-general-comment>span,.gd-general-vehicle>span{color:#69768f;font-size:11px}.gd-general-record dd{margin:0;font-weight:600}
.gd-general-details{display:flex;align-items:baseline;flex-wrap:wrap;gap:3px 12px;min-width:0}
.gd-general-vehicle{display:flex;align-items:baseline;gap:4px;font-size:12px}
.gd-general-comment{display:flex;align-items:baseline;flex:1 1 180px;gap:4px;min-width:0}.gd-general-comment>span{flex:0 0 auto}.gd-general-comment p{margin:0;min-width:0;white-space:pre-wrap;font-size:12px;line-height:1.3;max-height:none!important;overflow:visible!important;text-overflow:clip!important}
.gd-general-tag{display:inline-block;margin-top:4px;padding:2px 5px;border-radius:5px;background:#fff2d5;color:#856018;font-size:11px}.gd-general-record.is-cancelled{background:#f7f7fa}.gd-general-empty{padding:16px 8px;color:#63718a}
@media(max-width:700px){.gd-general-history-tools{grid-template-columns:104px minmax(0,1fr) auto}.gd-general-history-tools>span{grid-column:1 / -1;text-align:right}}
@media(max-width:600px){body.gdone-ui-v2-active .gd-ui-v2-quick .gdone-cashier-misc-row-2.is-limited{grid-template-columns:minmax(0,1fr) minmax(0,1fr)!important}.gd-general-record dl{grid-template-columns:1fr}}

/* Existing audited cancellation, deliberately scoped to general history. */
.gd-general-record-actions{display:flex;justify-content:flex-end;margin-top:6px}.gd-general-record-actions button{padding:5px 10px;border:1px solid #e8bbc0;border-radius:7px;background:#fff5f5;color:#a62f3a;font:600 12px/1.25 inherit;cursor:pointer}.gd-general-record-actions button:disabled{opacity:.55;cursor:wait}
