/* Compact customer ledger. Less frequent filters remain inside the business scroller. */
.sy-admin .ledger-period-toolbar .ledger-type-condition{order:2;margin:0}
.sy-admin .ledger-period-toolbar .ledger-type-condition select{width:130px;height:32px;min-height:32px}
.sy-admin .ledger-period-toolbar .search{order:3;margin-left:0!important;flex:1 1 210px;max-width:300px}
.sy-admin .ledger-period-toolbar .cap{order:0}.sy-admin .ledger-period-toolbar .sy-range-trigger{order:1}
.sy-admin .ledger-period-toolbar .ledger-more-button{order:4;display:inline-flex;align-items:center;gap:6px;min-height:32px;padding:5px 9px;border:1px solid #dce4ef;border-radius:4px;background:#fff;color:#637a9a;font-size:12px;white-space:nowrap}
.sy-admin .ledger-period-toolbar .ledger-reset-filters{order:5;min-height:30px;padding:4px 7px;border:0;background:transparent;color:#4f7fbe;font-size:12px;white-space:nowrap}
.sy-admin .ledger-period-toolbar .ledger-applied-count{display:none}.sy-admin .ledger-period-toolbar .sy-filter-help{order:7}
.sy-admin .ledger-period-toolbar .ledger-more-button>span{color:#5e80bc;font-size:11px}.sy-admin .ledger-period-toolbar .ledger-more-button>i{font-style:normal}
.ledger-list-card{position:relative}.ledger-list-card>.ledger-expand-menu{position:absolute;top:8px;right:18px;z-index:8}
.ledger-list-card>.ledger-status-tabs{padding-right:128px}
.ledger-summary-footer{padding:11px 18px;border-top:1px solid #edf0f4;background:#fafbfd;border-radius:0 0 6px 6px;line-height:20px}
.ledger-summary-footer .ledger-results-summary{font-size:12px;color:#8a98ab}
.ledger-list-card{overflow:visible}.ledger-list-head{display:flex;align-items:center;gap:16px;min-height:51px;padding:11px 18px;border-bottom:1px solid #edf0f4;background:#fff;border-radius:6px 6px 0 0}.ledger-list-head h2{flex:0 0 auto;margin:0;color:#303e53;font-size:15px;font-weight:500;line-height:1.6}.ledger-results-summary{min-width:0;color:#8c9aad;font-size:12px;line-height:1.7}.ledger-results-summary b{color:#647c9b;font-weight:500}.ledger-expand-menu{position:relative;flex:0 0 auto;margin-left:auto;color:#7b8fa9;font-size:12px;line-height:1.6}.ledger-expand-menu>summary{display:flex;align-items:center;gap:6px;list-style:none;cursor:pointer;padding:4px 0 4px 7px;white-space:nowrap}.ledger-expand-menu>summary::-webkit-details-marker{display:none}.ledger-expand-menu>summary::after{content:'⌄';font-size:12px;color:#a4b4c8}.ledger-expand-menu[open]>summary{color:#4678b8}.ledger-expand-menu>div{position:absolute;right:0;top:calc(100% + 6px);z-index:35;min-width:140px;padding:5px;border:1px solid #e0e7f1;border-radius:6px;background:#fff;box-shadow:0 6px 20px #19345111}.ledger-expand-menu button{display:block;width:100%;min-height:32px;margin:0;padding:6px 9px;border:0;border-radius:4px;background:#fff;color:#687e9c;font-family:inherit;font-size:12px;line-height:1.5;text-align:left;cursor:pointer}.ledger-expand-menu button:hover{color:#2878e6;background:#f3f7fd}
.ledger-query-controls{display:flex;align-items:center;flex-wrap:wrap;gap:12px;padding:13px 18px 12px;background:#fff}.ledger-type-condition{display:flex;align-items:center;gap:8px;min-width:0}.ledger-type-condition>span{color:#788ba5;font-size:12px;line-height:1.6;white-space:nowrap}.ledger-type-condition select{display:block;width:175px;min-width:0;height:33px;padding:6px 26px 6px 10px;border:1px solid #dce4ef;border-radius:4px;background:#fff;color:#5f7696;font-family:inherit;font-size:13px;line-height:1.5}.ledger-query-controls .ledger-more-button{display:inline-flex;align-items:center;gap:7px;width:auto;min-height:32px;margin:0;padding:5px 9px;border:1px solid #dce4ef;border-radius:4px;background:#fff;color:#6d86a8;font-family:inherit;font-size:12px;line-height:1.5;cursor:pointer}.ledger-more-button>i{font-style:normal;color:#a1b2c9;font-size:12px}.ledger-more-button[aria-expanded="true"]>i{transform:rotate(180deg)}.ledger-more-button>span{display:inline-flex;align-items:center;min-height:18px;padding:0 4px;border-radius:3px;background:#edf3fc;color:#6991c3;font-size:10px;line-height:1.5}.ledger-applied-count{color:#99a8bd;font-size:11px;line-height:1.6}.ledger-query-controls .ledger-reset-filters{display:inline-flex;align-items:center;width:auto;min-height:29px;padding:4px 3px;margin:0;border:0;background:transparent;color:#6d92c2;font-family:inherit;font-size:12px;line-height:1.5;cursor:pointer}.ledger-query-controls [hidden],.ledger-advanced-panel[hidden]{display:none!important}
.ledger-advanced-panel{padding:0 18px 15px;background:#fff;border-bottom:1px solid #edf1f6}.ledger-advanced-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:13px 17px;padding:15px;border:1px solid #e8edf4;border-radius:5px;background:#fafbfd}.ledger-advanced-grid>label{display:block;min-width:0}.ledger-advanced-grid>label>span{display:block;margin-bottom:7px;color:#8799b2;font-size:12px;line-height:1.6}.ledger-advanced-grid select,.ledger-advanced-grid input{display:block;width:100%;min-width:0;height:33px;min-height:33px;padding:6px 9px;border:1px solid #dce5f1;border-radius:4px;background:#fff;color:#67809f;font-family:inherit;font-size:12px;line-height:1.5;box-shadow:none}.ledger-advanced-grid input::placeholder{color:#adbbce;font-size:11px}.ledger-advanced-grid select:focus,.ledger-advanced-grid input:focus,.ledger-type-condition select:focus{outline:0;border-color:#8eafd9;box-shadow:0 0 0 2px #3875c40a}.ledger-amount-inputs{display:flex;align-items:center;gap:7px;min-width:0}.ledger-amount-inputs>span{flex:0 0 auto;color:#b3bed0;font-size:11px}.ledger-amount-inputs input{flex:1;min-width:0}
.ledger-status-tabs{display:flex;align-items:center;flex-wrap:wrap;gap:3px;padding:0 18px;border-top:1px solid #f0f3f7;border-bottom:1px solid #e7edf5;background:#fff}.ledger-status-tabs .ledger-status-tab{display:inline-flex;align-items:center;justify-content:center;gap:7px;width:auto;min-height:41px;margin:0;padding:9px 12px 8px;border:0;border-bottom:2px solid transparent;border-radius:0;background:transparent;color:#7f92ad;font-family:inherit;font-size:13px;font-weight:400;line-height:1.5;cursor:pointer;box-shadow:none;white-space:nowrap}.ledger-status-tab>span{font-size:11px;color:#a0aec2;font-variant-numeric:tabular-nums}.ledger-status-tabs .ledger-status-tab.on{color:#3674c2;border-bottom-color:#397fdb;font-weight:500}.ledger-status-tab.on>span{color:#729ace}.ledger-status-tabs .ledger-status-tab:hover{background:#f8faff;color:#487ebd}.ledger-table-wrap{width:100%;overflow:auto;border-radius:0 0 6px 6px}.ledger-table{min-width:850px}.sy-admin .ledger-table>thead>tr>th{padding:11px 14px;font-size:12px;font-weight:400;background:#f8fafc;white-space:nowrap}.sy-admin .ledger-table>tbody>.grp-row>td{padding:13px 14px;background:#fff;border-bottom:1px solid #eef2f7;font-size:13px;color:#7084a1}.sy-admin .ledger-table>tbody>.grp-row:hover>td{background:#fafcff}.sy-admin .ledger-table>tbody>.grp-open>td{background:#f8fbff}.sy-admin .ledger-table .cust-cell .nm{font-size:14px;color:#4f6788;font-weight:500}.sy-admin .ledger-table .cust-av{width:31px;height:31px;flex:0 0 31px;font-size:13px;border-radius:7px}.sy-admin .ledger-table .grp-in{gap:9px;padding:0;min-width:200px}.sy-admin .ledger-table .caret{width:17px;height:17px;font-size:8px;flex:0 0 17px;border-radius:4px}.sy-admin .ledger-table .plate-chip{font-size:11px;padding:1px 5px;border-radius:3px}.sy-admin .ledger-table .vin-txt{font-size:10px;color:#a4b2c6}.sy-admin .ledger-table .tag-soft,.sy-admin .ledger-table .tag-dim{font-size:10px;padding:1px 5px;border-radius:3px}.sy-admin .ledger-table .sub-table th{padding:10px;font-size:11px}.sy-admin .ledger-table .sub-table td{padding:11px 10px;font-size:12px}.sy-admin .ledger-table .sub-table .rule-tag{font-size:10px}.sy-admin .ledger-table .sub-table .link-btn{font-size:11px;min-height:27px;padding:3px 5px}.sy-admin .ledger-table .empty{padding:35px 22px;font-size:13px;color:#9eacc0;line-height:1.9}
.sy-admin .ledger-period-toolbar .tsep{display:none}.sy-admin .ledger-period-toolbar .search{flex:1 1 240px;min-width:220px;max-width:310px;margin-left:auto}.sy-admin .ledger-period-toolbar .search input{width:100%;min-width:0;font-size:13px}.sy-admin .ledger-period-toolbar #hitTip:empty{display:none}.sy-admin .ledger-period-toolbar #hitTip{font-size:11px;color:#98a9c0;line-height:1.6}.ledger-status-tab:focus-visible,.ledger-more-button:focus-visible,.ledger-reset-filters:focus-visible,.ledger-expand-menu summary:focus-visible{outline:3px solid #bfd5f1;outline-offset:2px}
@media(max-width:1199px){.ledger-list-head{gap:11px;padding-left:15px;padding-right:15px}.ledger-results-summary{font-size:11px}.ledger-query-controls,.ledger-status-tabs{padding-left:15px;padding-right:15px}.ledger-status-tabs .ledger-status-tab{padding-left:10px;padding-right:10px;font-size:12px;gap:5px}.ledger-status-tab>span{font-size:10px}.ledger-advanced-panel{padding-left:15px;padding-right:15px}.ledger-advanced-grid{gap:12px}.sy-admin .ledger-period-toolbar .search{min-width:210px;max-width:290px}.ledger-expand-menu{font-size:11px}}
@media(max-width:800px){.ledger-list-head{flex-wrap:wrap}.ledger-results-summary{order:3;flex:0 0 100%;margin-top:-5px}.ledger-query-controls{gap:9px}.ledger-advanced-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.ledger-status-tabs{padding-left:10px;padding-right:10px;gap:0}.ledger-status-tabs .ledger-status-tab{min-height:38px;font-size:11px;padding:8px}.ledger-status-tab>span{font-size:10px}.ledger-applied-count{display:none}.sy-admin .ledger-period-toolbar .search{max-width:100%;min-width:190px}}
@media(max-width:480px){.ledger-type-condition{flex:1;min-width:0}.ledger-type-condition select{width:100%;flex:1}.ledger-query-controls{gap:8px}.ledger-query-controls .ledger-more-button{font-size:11px;gap:5px;padding:5px 7px}.ledger-advanced-grid{grid-template-columns:minmax(0,1fr);padding:12px}.ledger-list-head h2{font-size:14px}.ledger-results-summary{font-size:10px}.ledger-status-tabs .ledger-status-tab{padding-left:6px;padding-right:6px;gap:3px}.ledger-status-tab>span{font-size:9px}}
.sy-admin .ledger-table>tbody>.grp-row>td:not(:first-child){white-space:nowrap}.sy-admin .ledger-table .cust-cell{display:flex;align-items:center;gap:5px;flex-wrap:wrap}.sy-admin .ledger-table .cust-cell .nm{display:inline-block;max-width:220px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.sy-admin .ledger-table .tag-soft,.sy-admin .ledger-table .tag-dim{white-space:nowrap;flex:0 0 auto}
/* A subordinate seven-column coupon list, inset beneath each customer summary. */
.sy-admin .ledger-table>tbody>.sub-row>td{padding:0;background:#f7f9fc;border-bottom:1px solid #e8edf4}
.ledger-subpanel{padding:9px 16px 14px 42px;background:#f7f9fc}
.sy-admin .ledger-table .ledger-coupon-table{width:100%;min-width:0;table-layout:fixed;border:1px solid #e5ebf3;border-collapse:separate;border-spacing:0;background:#fff;border-radius:6px;overflow:hidden}
.ledger-coupon-table .ledger-col-name{width:22%}.ledger-coupon-table .ledger-col-value{width:12%}.ledger-coupon-table .ledger-col-range{width:14%}.ledger-coupon-table .ledger-col-issued{width:12%}.ledger-coupon-table .ledger-col-date{width:12%}.ledger-coupon-table .ledger-col-state{width:8%}.ledger-coupon-table .ledger-col-source{width:12%}.ledger-coupon-table .ledger-col-action{width:8%}
.sy-admin .ledger-table .ledger-coupon-table>thead>tr>th{padding:8px 10px;border-bottom:1px solid #e9eef5;background:#f9fafc;color:#94a1b3;font-size:10px;font-weight:400;line-height:19px;text-align:left;white-space:nowrap}
.sy-admin .ledger-table .ledger-coupon-table>tbody>tr>td{height:64px;padding:10px;border-bottom:1px solid #eef2f6;background:#fff;vertical-align:middle;font-size:12px;line-height:20px;overflow:hidden}
.sy-admin .ledger-table .ledger-coupon-table>tbody>tr:last-child>td{border-bottom:0}.sy-admin .ledger-table .ledger-coupon-table>tbody>tr:hover>td{background:#fcfdff}
.sy-admin .ledger-table .ledger-coupon-table>thead>tr>th:last-child,.sy-admin .ledger-table .ledger-coupon-table>tbody>tr>td:last-child{padding-left:6px;padding-right:4px}
.ledger-coupon-name{display:block;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#536782;font-size:12px;font-weight:500;line-height:21px}
.ledger-coupon-meta{display:flex;align-items:center;gap:8px;min-width:0;line-height:19px}.ledger-coupon-meta>code{display:block;min-width:0;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#a0adbd;font:10px/19px ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;letter-spacing:0}
.sy-admin .ledger-table .ledger-coupon-detail{display:inline-flex;align-items:center;justify-content:center;flex:none;width:auto;min-width:0;min-height:19px;height:19px;padding:0 1px;margin:0;border:0;border-radius:3px;background:transparent;color:#94a3b8;font-size:10px;line-height:19px;font-weight:400;box-shadow:none;cursor:pointer}
.sy-admin .ledger-table .ledger-coupon-detail:hover{color:#587da9;background:#f2f6fc}
.ledger-coupon-value{display:block;font-size:13px;font-weight:500;color:#536b8b;font-variant-numeric:tabular-nums;white-space:nowrap}
.ledger-coupon-date{display:block;color:#74869e;font:11px/21px ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;white-space:nowrap}
.ledger-coupon-source{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#8291a7;font-size:11px;line-height:21px}
.ledger-coupon-secondary{display:block;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#a6b1c0;font-size:10px;line-height:19px;font-weight:400;font-variant-numeric:tabular-nums}.ledger-coupon-secondary.is-expiring{color:#b68a4c}
.sy-admin .ledger-table .ledger-coupon-table .rule-tag{max-width:100%;padding:2px 5px;border-radius:4px;font-size:10px;font-weight:400;white-space:nowrap}.sy-admin .ledger-table .ledger-coupon-table .badge{padding:3px 6px;font-size:10px;font-weight:400;white-space:nowrap}
.sy-admin .ledger-table .ledger-coupon-table .ledger-redeem-link{min-width:0;width:auto;min-height:27px;padding:3px 4px;font-size:11px;line-height:20px;white-space:nowrap}
.ledger-action-unavailable{display:inline-block;padding:3px 5px;color:#b3bdca;font-size:13px;line-height:20px;cursor:default;text-decoration:none}
.ledger-detail-summary{display:flex;align-items:center;gap:12px;margin:0 0 20px}.ledger-detail-summary>strong{min-width:0;color:#536782;font-size:17px;font-weight:500;line-height:1.7;overflow-wrap:anywhere}
.ledger-detail-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 24px;margin:0;border-top:1px solid #edf1f6}.ledger-detail-fields>div{min-width:0;padding:12px 0;border-bottom:1px solid #edf1f6}.ledger-detail-fields dt{color:#99a6b9;font-size:11px;line-height:19px}.ledger-detail-fields dd{margin:4px 0 0;color:#657b9b;font-size:13px;line-height:1.8;overflow-wrap:anywhere}.ledger-detail-rule{margin-top:20px;padding:15px 17px;border:1px solid #e7edf5;border-radius:6px;background:#fafbfd}.ledger-detail-rule b{color:#7b8fae;font-size:12px;font-weight:500}.ledger-detail-rule p{margin:7px 0 0;color:#95a3b8;font-size:12px;line-height:1.9;white-space:pre-wrap;overflow-wrap:anywhere}
@media(max-width:1199px){.ledger-subpanel{padding-left:29px;padding-right:13px}.sy-admin .ledger-table .ledger-coupon-table>thead>tr>th{padding-left:8px;padding-right:8px}.sy-admin .ledger-table .ledger-coupon-table>tbody>tr>td{padding-left:8px;padding-right:8px}}
@media(max-width:650px){.ledger-subpanel{padding-left:18px;padding-right:12px}.ledger-detail-fields{grid-template-columns:minmax(0,1fr)}}
.sy-admin .ledger-table .ledger-coupon-table>tbody>tr>td:first-child{padding-left:10px!important}
@media(min-width:900px) and (max-width:1199px){
 .sy-admin .ledger-table{min-width:0;table-layout:fixed;width:100%}
 .sy-admin .ledger-table>thead>tr>th,.sy-admin .ledger-table>tbody>.grp-row>td{padding-left:9px;padding-right:9px}
 .sy-admin .ledger-table>thead>tr>th{font-size:11px}
 .sy-admin .ledger-table>thead>tr>th:nth-child(1){width:29%}.sy-admin .ledger-table>thead>tr>th:nth-child(2){width:6%}.sy-admin .ledger-table>thead>tr>th:nth-child(3){width:15%}.sy-admin .ledger-table>thead>tr>th:nth-child(4){width:8%}.sy-admin .ledger-table>thead>tr>th:nth-child(5){width:9%}.sy-admin .ledger-table>thead>tr>th:nth-child(6){width:10%}.sy-admin .ledger-table>thead>tr>th:nth-child(7){width:9%}.sy-admin .ledger-table>thead>tr>th:nth-child(8){width:14%}
 .sy-admin .ledger-table .grp-in{min-width:0}.sy-admin .ledger-table>tbody>.grp-row>td:not(:first-child){font-size:11px}
}
/* V41: clearer customer summaries without adding another dashboard layer. */
#storeBody .ledger-list-card{border:1px solid var(--sy-border,#e4e8f0);border-radius:9px;background:var(--sy-surface,#fff)}
#storeBody .ledger-table{width:100%;min-width:800px;table-layout:fixed}
#storeBody .ledger-table>thead>tr>th:first-child{width:26%}
#storeBody .ledger-table>thead>tr>th:nth-child(2),
#storeBody .ledger-table>thead>tr>th:nth-child(4),
#storeBody .ledger-table>thead>tr>th:nth-child(7){width:8%}
#storeBody .ledger-table>thead>tr>th:nth-child(3){width:17%}
#storeBody .ledger-table>thead>tr>th:nth-child(5){width:9%}
#storeBody .ledger-table>thead>tr>th:nth-child(6){width:10%}
#storeBody .ledger-table>thead>tr>th:nth-child(8){width:14%}
#storeBody .ledger-table>thead>tr>th{background:var(--sy-bg,#f7f8fb);color:var(--sy-muted,#7c899c);font-weight:500}
#storeBody .ledger-table>tbody>.grp-row>td{background:var(--sy-surface,#fff);padding-top:14px;padding-bottom:14px;color:var(--sy-text,#475569);transition:background .15s}
#storeBody .ledger-table>tbody>.grp-row:hover>td{background:var(--sy-primary-soft,#f4f6ff)}
#storeBody .ledger-table>tbody>.grp-open>td{background:var(--sy-primary-soft,#f4f6ff)}
#storeBody .ledger-table .cust-cell .nm{color:var(--sy-text,#303847);font-size:14px;font-weight:600}
#storeBody .ledger-table .grp-in{min-width:0;gap:10px}
#storeBody .ledger-table .grp-in>div:last-child{min-width:0}
#storeBody .ledger-table .cust-cell .nm{max-width:200px}
#storeBody .ledger-table .vin-txt{color:var(--sy-muted,#7c899c);font-size:11px}
#storeBody .ledger-table>tbody>.grp-row>td:nth-child(3){color:var(--sy-primary,#6475f5)!important;font-size:14px;font-weight:600!important;font-family:inherit;font-variant-numeric:tabular-nums}
#storeBody .ledger-table>tbody>.grp-row>td:nth-child(6)[style*="e06c0b"]{color:#d97706!important;font-weight:600}
#storeBody .ledger-table>tbody>.grp-row>td:last-child{color:var(--sy-muted,#7c899c);font-family:inherit;font-size:12px}
#storeBody .ledger-table .caret{display:grid;place-items:center;width:20px;height:20px;flex-basis:20px;border:1px solid var(--sy-border,#e4e8f0);color:var(--sy-muted,#7c899c);background:var(--sy-surface,#fff)}
#storeBody .ledger-status-tabs .ledger-status-tab{color:var(--sy-muted,#7c899c)}
#storeBody .ledger-status-tabs .ledger-status-tab.on{color:var(--sy-primary,#6475f5);border-bottom-color:var(--sy-primary,#6475f5)}
#storeBody .ledger-status-tab>span{padding:1px 5px;border-radius:4px;background:var(--sy-bg,#f2f4f8);font-size:11px;color:var(--sy-muted,#7c899c)}
#storeBody .ledger-status-tab.on>span{background:var(--sy-primary-soft,#eef2ff);color:var(--sy-primary,#6475f5)}
@media(min-width:900px) and (max-width:1199px){#storeBody .ledger-table .cust-cell .nm{max-width:160px}#storeBody .ledger-table .vin-txt{font-size:10px}}
/* Ledger refinement: quiet nested lists, clear values and compact customer summaries. */
#storeBody .ledger-table>tbody>.grp-row>td{padding-top:10px;padding-bottom:10px}
#storeBody .ledger-table .cust-av{width:28px;height:28px;flex-basis:28px;border-radius:6px}
#storeBody .ledger-table .cust-cell .nm{font-size:13px;line-height:20px}
#storeBody .ledger-table .cust-cell{gap:6px}
#storeBody .ledger-table .tag-soft,#storeBody .ledger-table .tag-dim{font-weight:400;padding:0 4px;line-height:17px}
#storeBody .ledger-table .plate-chip{background:transparent;border-color:var(--sy-border,#e4e8f0);color:var(--sy-text,#475569)}
#storeBody .ledger-table .caret{border:0;background:transparent;width:24px;height:24px;flex-basis:24px;cursor:pointer;padding:0;box-shadow:none}
#storeBody .ledger-table .caret:hover{color:var(--sy-primary,#6475f5);background:var(--sy-primary-soft,#eef2ff)}
#storeBody .ledger-table .caret:focus-visible{outline:2px solid var(--sy-primary,#6475f5);outline-offset:2px}
#storeBody .ledger-table>thead>tr>th:nth-child(3),#storeBody .ledger-table>tbody>.grp-row>td:nth-child(3){text-align:right}
#storeBody .ledger-table>tbody>.grp-row>td:nth-child(4){color:var(--sy-text,#475569);font-weight:600}
#storeBody .ledger-subpanel{padding:0 16px 10px 42px;background:var(--sy-surface,#fff)}
#storeBody .ledger-table>tbody>.sub-row>td{background:var(--sy-surface,#fff)}
#storeBody .ledger-table .ledger-coupon-table{border:0;border-radius:0;background:var(--sy-surface,#fff)}
#storeBody .ledger-table .ledger-coupon-table>thead>tr>th{background:var(--sy-surface,#fff);color:var(--sy-muted,#7c899c);padding-top:6px;padding-bottom:6px;font-size:11px;border-bottom:1px solid var(--sy-border,#e4e8f0)}
#storeBody .ledger-table .ledger-coupon-table>tbody>tr>td{height:auto;padding-block:8px;border-bottom:1px solid var(--sy-border,#e4e8f0);background:var(--sy-surface,#fff)}
#storeBody .ledger-table .ledger-coupon-table>thead>tr>th:nth-child(2),#storeBody .ledger-table .ledger-coupon-table>tbody>tr>td:nth-child(2){text-align:right;padding-right:22px}
#storeBody .ledger-table .ledger-coupon-name{color:var(--sy-text,#334155);font-size:12px;font-weight:500}
#storeBody .ledger-table .ledger-coupon-value{display:block;text-align:right;color:var(--sy-text,#334155);font-weight:500;font-variant-numeric:tabular-nums}
#storeBody .ledger-table .ledger-coupon-meta>code{color:var(--sy-muted,#7c899c);font-size:10px}
#storeBody .ledger-table .ledger-coupon-source,#storeBody .ledger-table .ledger-coupon-date{color:var(--sy-text,#475569);font-size:11px}
#storeBody .ledger-table .ledger-coupon-secondary{color:var(--sy-muted,#7c899c);font-size:10px}
#storeBody .ledger-table .ledger-coupon-detail{color:var(--sy-muted,#7c899c)}
#storeBody .ledger-expand-actions{display:flex;align-items:center;gap:8px;top:5px;right:16px;line-height:20px}
#storeBody .ledger-expand-actions button{display:inline-block;width:auto;min-height:30px;padding:4px 2px;background:transparent;color:var(--sy-muted,#7c899c);font-size:12px;white-space:nowrap}
#storeBody .ledger-expand-actions button:hover{color:var(--sy-primary,#6475f5);background:transparent}
#storeBody .ledger-expand-actions>span{color:var(--sy-border,#e4e8f0)}
#storeBody .ledger-list-card>.ledger-status-tabs{padding-right:162px}
@media(max-width:1100px){#storeBody .ledger-expand-actions{gap:5px;right:12px}#storeBody .ledger-expand-actions button{font-size:11px}#storeBody .ledger-list-card>.ledger-status-tabs{padding-right:144px}#storeBody .ledger-table>tbody>.grp-row>td:nth-child(3){font-size:12px}#storeBody .ledger-table .ledger-coupon-table>tbody>tr>td{padding-left:8px;padding-right:8px}}
#storeBody .ledger-table .ledger-coupon-table>thead>tr>th:nth-child(3),#storeBody .ledger-table .ledger-coupon-table>tbody>tr>td:nth-child(3){padding-left:22px}

/* Ledger typography: use size and weight for hierarchy, not faint text. */
#storeBody .ledger-list-card{--ledger-secondary:#596579;--ledger-meta:#6b7585}
html[data-sy-theme=dark] #storeBody .ledger-list-card{--ledger-secondary:#b9c2d0;--ledger-meta:#a3aebf}
#storeBody .ledger-table{font-variant-numeric:tabular-nums}
#storeBody .ledger-table>thead>tr>th{font-size:12px;font-weight:500;color:var(--ledger-secondary);padding-top:10px;padding-bottom:10px}
#storeBody .ledger-table>tbody>.grp-row>td{background:var(--sy-surface-alt,#f8f9fc);font-size:12px;line-height:20px}
#storeBody .ledger-table>tbody>.grp-open>td{background:var(--sy-surface-alt,#f8f9fc)}
#storeBody .ledger-table .cust-cell .nm{font-size:14px;line-height:21px;font-weight:600;color:var(--sy-text,#30343f)}
#storeBody .ledger-table .plate-chip{font-size:12px;line-height:19px;color:var(--ledger-secondary);border:0;padding:0;background:transparent}
#storeBody .ledger-table .vin-txt{font-size:11px;color:var(--ledger-meta);font-weight:400;letter-spacing:0}
#storeBody .ledger-table .tag-soft,#storeBody .ledger-table .tag-dim{font-size:11px;line-height:18px;padding:0 5px;border:0;color:var(--ledger-secondary);font-weight:400;background:var(--sy-bg,#f3f5f9)}
#storeBody .ledger-table>tbody>.grp-row>td:nth-child(2),#storeBody .ledger-table>tbody>.grp-row>td:nth-child(4),#storeBody .ledger-table>tbody>.grp-row>td:nth-child(5),#storeBody .ledger-table>tbody>.grp-row>td:nth-child(7){font-family:inherit;font-weight:500!important;font-size:12px;color:var(--ledger-secondary)}
#storeBody .ledger-table>tbody>.grp-row>td:nth-child(6){font-family:inherit;font-size:12px;font-weight:500}
#storeBody .ledger-table>tbody>.grp-row>td:last-child{font-family:inherit;font-size:12px;color:var(--ledger-meta)}
#storeBody .ledger-table>tbody>.grp-row>td:nth-child(3){font-size:14px;font-weight:600!important;font-family:inherit;letter-spacing:0}
#storeBody .ledger-table .ledger-coupon-table>thead>tr>th{font-size:12px;font-weight:400;color:var(--ledger-secondary);line-height:20px}
#storeBody .ledger-table .ledger-coupon-table>tbody>tr>td{height:62px;line-height:21px}
#storeBody .ledger-table .ledger-coupon-table>thead>tr>th:nth-child(2),#storeBody .ledger-table .ledger-coupon-table>tbody>tr>td:nth-child(2){padding-left:8px;padding-right:14px;text-align:right}
#storeBody .ledger-table .ledger-coupon-table>thead>tr>th:nth-child(3),#storeBody .ledger-table .ledger-coupon-table>tbody>tr>td:nth-child(3){padding-left:14px;padding-right:8px}
#storeBody .ledger-table .ledger-coupon-name{font-size:13px;line-height:22px;color:var(--sy-text,#30343f);font-weight:500}
#storeBody .ledger-table .ledger-coupon-value{font-size:13px;line-height:21px;font-weight:500;color:var(--sy-text,#30343f);font-variant-numeric:tabular-nums}
#storeBody .ledger-table .ledger-coupon-meta{gap:7px;line-height:19px}
#storeBody .ledger-table .ledger-coupon-meta>code{font-size:11px;line-height:19px;color:var(--ledger-meta)}
#storeBody .ledger-table .ledger-coupon-detail{font-size:11px;line-height:19px;color:var(--ledger-meta);padding:0 2px}
#storeBody .ledger-table .ledger-coupon-detail:hover{color:var(--sy-primary,#6475f5);background:var(--sy-primary-soft,#eef2ff)}
#storeBody .ledger-table .ledger-coupon-date{font-family:inherit;font-size:12px;line-height:21px;color:var(--ledger-secondary)}
#storeBody .ledger-table .ledger-coupon-source{font-size:12px;line-height:21px;color:var(--ledger-secondary)}
#storeBody .ledger-table .ledger-coupon-secondary{font-size:11px;line-height:19px;color:var(--ledger-meta)}
#storeBody .ledger-table .ledger-coupon-secondary.is-expiring{color:#b7791f}
#storeBody .ledger-table .ledger-coupon-table .rule-tag{font-size:12px;line-height:20px;padding:0;border:0;color:var(--ledger-secondary);background:transparent}
#storeBody .ledger-table .ledger-coupon-table .badge{font-size:11px;line-height:18px;padding:2px 6px}
#storeBody .ledger-table .ledger-coupon-table .ledger-redeem-link{font-size:12px;line-height:20px;font-weight:500;color:var(--sy-primary,#6475f5)}
#storeBody .ledger-summary-footer{padding:11px 18px;background:var(--sy-surface-alt,#f8f9fc)}
#storeBody .ledger-summary-footer .ledger-results-summary{font-size:12px;line-height:21px;color:var(--ledger-secondary);font-variant-numeric:tabular-nums}
#storeBody .ledger-results-summary b{font-weight:500;color:var(--sy-text,#30343f)}
@media(max-width:1100px){#storeBody .ledger-table .ledger-coupon-value{font-size:12px}#storeBody .ledger-table .cust-cell .nm{font-size:13px}#storeBody .ledger-table .ledger-coupon-table>tbody>tr>td,#storeBody .ledger-table .ledger-coupon-table>thead>tr>th{padding-left:8px;padding-right:8px}#storeBody .ledger-table .ledger-coupon-table>tbody>tr>td:nth-child(2),#storeBody .ledger-table .ledger-coupon-table>thead>tr>th:nth-child(2){padding-right:14px}#storeBody .ledger-table .ledger-coupon-table>tbody>tr>td:nth-child(3),#storeBody .ledger-table .ledger-coupon-table>thead>tr>th:nth-child(3){padding-left:14px}}
/* Keep entitlement row actions at the same quiet scale as table content. */
.sy-admin:not(.sy-knowledge-route) #storeBody .ledger-table .ledger-coupon-table :is(.ledger-redeem-link,.ledger-action-unavailable){font-size:var(--sy-table-heading-size)!important;font-weight:400!important;line-height:18px}

/* Compact customer summary rows so consecutive issuance dates sit closer. */
.sy-admin #storeBody .ledger-table > tbody > .grp-row > td {
  padding-block: 7px !important;
}


/* Keep counts aligned with their headers. */
#storeBody .ledger-table>thead>tr>th:is(:nth-child(2),:nth-child(n+4)):not(:last-child),
#storeBody .ledger-table>tbody>.grp-row>td:is(:nth-child(2),:nth-child(n+4)):not(:last-child){text-align:center}

/* Entitlement detail in the existing ledger dialog. */
#commerceModal .ledger-coupon-modal{width:calc(100% - 32px);max-width:1000px!important}
.ledger-coupon-modal .ledger-detail-view{--detail-line:var(--sy-border,#dee6f1);--detail-surface:var(--sy-surface,#fff);--detail-soft:var(--sy-surface-alt,#f4f6fb);--detail-ink:var(--sy-text,#202c43);--detail-muted:var(--sy-text-secondary,#596982);--detail-accent:var(--sy-primary,#3156c7);color:var(--detail-ink)}
.ledger-detail-view [hidden]{display:none!important}
.ledger-detail-hero{display:grid;grid-template-columns:minmax(0,1fr) minmax(145px,205px);background:var(--detail-surface);border:1px solid var(--detail-line);border-radius:10px;overflow:hidden}
.ledger-detail-main{padding:17px 19px;min-width:0}
.ledger-detail-kicker,.ledger-detail-id,.ledger-detail-muted{font-size:12px;line-height:1.55;color:var(--detail-muted)}
.ledger-detail-view .ledger-detail-summary{flex-wrap:wrap;gap:5px 10px;margin:3px 0 4px}
.ledger-detail-view .ledger-detail-summary>strong{font-size:22px;line-height:1.35;font-weight:680;color:var(--detail-ink)}
.ledger-detail-id code{color:var(--detail-ink);overflow-wrap:anywhere}
.ledger-detail-key{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px 12px;margin:12px 0 0;padding:0}
.ledger-detail-main .ledger-detail-key{border-top:1px solid var(--detail-line);padding-top:10px}
.ledger-detail-key>div{min-width:0}
.ledger-detail-key dt,.ledger-detail-balance>span{font-size:12px;color:var(--detail-muted)}
.ledger-detail-key dd{margin:2px 0 0;font-size:14px;font-weight:650;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}
.ledger-detail-key dd.ledger-detail-muted{font-size:12px;font-weight:400}
.ledger-detail-balance{display:flex;flex-direction:column;align-items:flex-start;justify-content:center;gap:5px;padding:14px 16px;background:var(--sy-primary-soft,#eaf0ff);border-left:1px solid var(--detail-line)}
.ledger-detail-balance>strong{font-size:clamp(19px,3vw,25px);font-weight:700;color:var(--detail-accent);font-variant-numeric:tabular-nums;overflow-wrap:anywhere}
.ledger-detail-balance .ghost-btn{min-height:28px;padding:3px 8px;margin-top:4px}
.ledger-detail-metrics{grid-template-columns:repeat(4,minmax(0,1fr));margin:11px 0}
.ledger-detail-metrics>div,.ledger-detail-card{background:var(--detail-surface);border:1px solid var(--detail-line);border-radius:8px;min-width:0}
.ledger-detail-metrics>div{padding:8px 10px}
.ledger-detail-layout{display:grid;grid-template-columns:minmax(0,1.55fr) minmax(0,1fr);gap:11px;align-items:start}
.ledger-detail-layout>aside{display:grid;gap:10px;min-width:0}
.ledger-detail-panel{padding:10px 12px}
.ledger-detail-panel h3{font-size:14px;font-weight:680;margin:0 0 8px}
.ledger-detail-tabs,.ledger-detail-filters{display:flex;align-items:center;gap:7px;flex-wrap:wrap}
.ledger-detail-tabs{padding:0 9px;border-bottom:1px solid var(--detail-line)}
.ledger-detail-tabs button,.ledger-detail-filters button{font:inherit;font-size:12px;color:var(--detail-muted);background:none;border:0;cursor:pointer;padding:5px 7px}
.ledger-detail-tabs button{padding:8px 5px;border-bottom:2px solid transparent}
.ledger-detail-tabs [aria-selected=true]{color:var(--detail-accent);border-color:currentColor;font-weight:650}
.ledger-detail-filters [aria-pressed=true]{background:var(--sy-primary-soft,#eaf0ff);color:var(--detail-accent);border-radius:4px;font-weight:650}
.ledger-detail-timeline{list-style:none;margin:9px 0 0;padding:0}
.ledger-detail-timeline>li{border-left:2px solid var(--detail-line);padding:2px 0 7px 9px;margin:0 0 3px;overflow-wrap:anywhere}
.ledger-detail-timeline>li div{display:flex;flex-wrap:wrap;align-items:baseline;justify-content:space-between;gap:2px 9px}
.ledger-detail-timeline strong{font-size:13px}
.ledger-detail-timeline time,.ledger-detail-timeline>li>span{font-size:12px;color:var(--detail-muted)}
.ledger-detail-view .ledger-detail-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 11px;border-color:var(--detail-line)}
.ledger-detail-view .ledger-detail-fields>div{padding:5px 0;border-color:var(--detail-line)}
.ledger-detail-view .ledger-detail-fields dt{color:var(--detail-muted);font-size:12px}
.ledger-detail-view .ledger-detail-fields dd{color:var(--detail-ink);font-size:13px;margin-top:0}
.ledger-detail-view .ledger-detail-rule{margin:0 0 8px;padding:8px 10px;border-color:var(--detail-line);background:var(--detail-soft)}
.ledger-detail-view .ledger-detail-rule b,.ledger-detail-view .ledger-detail-rule p{color:var(--detail-ink)}
.ledger-detail-docs details,.ledger-detail-transaction{background:var(--detail-soft);border:1px solid var(--detail-line);border-radius:6px;margin:5px 0;padding:6px 8px}
.ledger-detail-view summary{cursor:pointer;font-size:12px;overflow-wrap:anywhere}
.ledger-detail-view summary strong{margin-left:6px;color:var(--detail-accent)}
.ledger-detail-view :is(button,summary):focus-visible{outline:2px solid var(--detail-accent);outline-offset:2px}
@media(max-width:680px){
 #commerceModal .ledger-coupon-modal{width:calc(100% - 16px)}
 #commerceModal .ledger-coupon-modal .modal-b{padding:9px}
 .ledger-detail-hero,.ledger-detail-layout{grid-template-columns:minmax(0,1fr)}
 .ledger-detail-main{padding:12px}
 .ledger-detail-balance{border-left:0;border-top:1px solid var(--detail-line);flex-direction:row;flex-wrap:wrap;align-items:center;justify-content:flex-start;gap:6px 8px;padding:8px 11px}
 .ledger-detail-balance .ghost-btn{margin:0 0 0 auto}
 .ledger-detail-view .ledger-detail-summary>strong{font-size:18px}
 .ledger-detail-key{gap:7px}
 .ledger-detail-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}
 .ledger-detail-key dd{font-size:12px}
}
