.grid-viewport{overflow:hidden}
.purchase-grid{display:block;height:100%;width:100%;min-width:0}
.purchase-grid .ag-root-wrapper{border:1px solid #ededed}
.purchase-grid .ag-header-cell{padding:0 6px}
.purchase-grid .ag-header-cell-comp-wrapper,.purchase-grid .head-wrap{width:100%;height:100%}
.purchase-grid .head-wrap{font-size:13px;font-weight:500;gap:3px}
.purchase-grid .sort-button{font-size:13px}
.purchase-grid .ag-cell{display:flex;align-items:center;justify-content:center;font-weight:400;line-height:normal}
.purchase-grid .ag-cell>span{max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.purchase-grid .ag-cell.amount{justify-content:flex-end}
.purchase-grid .ag-cell.memo-cell{justify-content:flex-start;color:#545b64}
.purchase-grid .ag-cell.customer-memo-column{justify-content:flex-start}
.purchase-grid .ag-cell.sex-cell{font-weight:600}
.purchase-grid .ag-cell.sex-male{background:#dff3ff;color:#176b9a}
.purchase-grid .ag-cell.sex-female{background:#ffe7f0;color:#a24167}
.purchase-grid .customer-memo-cell{width:100%;height:26px;padding:2px 7px;border:1px solid #c7d7ee;border-radius:4px;background:#f5f9ff;color:#29558a;text-align:left;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:12px;cursor:pointer}
.purchase-grid .customer-memo-cell.has-memo{background:#fffbea;border-color:#eadba1;color:#665015}
.purchase-grid .customer-memo-cell:disabled{color:#999;background:#f7f7f7;border-color:#eee;cursor:default}
.purchase-grid .ag-cell.wisa-grade-cell{font-weight:600}
.purchase-grid .ag-cell.grade-welcome{background:#e8f1ff;color:#28549b}
.purchase-grid .ag-cell.grade-family{background:#f1e9ff;color:#65429a}
.purchase-grid .ag-cell.grade-bronze{background:#f5e8db;color:#845022}
.purchase-grid .ag-cell.grade-silver{background:#e9eef4;color:#4a5f76}
.purchase-grid .ag-cell.grade-gold{background:#fff2c9;color:#886000}
.purchase-grid .ag-cell.grade-diamond{background:#def5f5;color:#126c76}
.purchase-grid .ag-cell.grade-vip{background:#efe5ff;color:#7141aa}
.purchase-grid .ag-cell.grade-royal{background:#e5e5e8;color:#35353b}
.purchase-grid .ag-cell.grade-other{background:#edf2ed;color:#46654a}
.purchase-grid .ag-cell.grade-error{background:#fff0ee;color:#ae3429}
.purchase-grid .ag-cell.total,.purchase-grid .ag-header-cell[col-id="totalPrice"]{background:#ecf3ff;color:#0d6efd;font-weight:600}
.purchase-grid .ag-cell.sequence,.purchase-grid .ag-cell.check-cell{background:#fafaff;font-size:13px;color:#666}
.purchase-grid .ag-row-pinned .ag-cell{background:#fafafa;font-weight:600;font-size:13px}
.purchase-grid .ag-row-pinned .ag-cell.total{background:#ecf3ff}
.purchase-grid .ag-cell.total.zero-price{background:#ffe5e5;color:#d93025;font-weight:700}
.purchase-grid .ag-row.return-row .ag-cell{background:#fff0f0;color:#c62828}
.purchase-grid .ag-row.return-row .ag-cell.total{background:#ffe4e4;color:#c62828}
.purchase-grid .ag-row-selected .ag-cell.total.zero-price{box-shadow:inset 0 0 0 1px #f0a7a7}
.purchase-grid .ag-floating-top{border-bottom:1px solid #dadce0}
.purchase-grid .ag-row-selected .ag-cell{box-shadow:inset 0 0 0 100px #0d6efd0c}
.purchase-grid input[type="checkbox"]{width:16px;height:16px;margin:0;accent-color:#0d6efd;cursor:pointer}
.purchase-grid .row-action{height:100%;min-height:28px}
.purchase-grid .row-action .icon{font-size:20px}
.purchase-grid .ag-header-cell-resize::after{background:#ccd3df;width:2px;opacity:0}
.purchase-grid .ag-header-cell:hover .ag-header-cell-resize::after{opacity:1}
.purchase-grid .ag-cell-focus:not(.ag-cell-range-selected){border-color:#86b7fe!important}
.filter-range-options{max-height:144px;overflow-y:auto;margin-top:9px;padding-bottom:7px;border-bottom:1px solid #ededed}
.filter-range-title{font-size:11px;color:#939393;margin:0 5px 4px}
.filter-range-options label{display:flex;align-items:center;gap:7px;padding:5px;font-size:13px;white-space:nowrap;cursor:pointer}
.filter-range-options input{width:15px;flex-shrink:0;accent-color:#0d6efd}
