#sales-report-form{align-items:end;gap:16px;flex-wrap:wrap}#sales-report-form label{display:grid;gap:7px;min-width:180px;font-weight:600}#sales-report-types{flex-wrap:wrap;gap:12px;margin-top:20px}#sales-report-types label{padding:10px 16px;border:1px solid #dbe3ef;border-radius:10px;background:#f6f8fc;display:flex;align-items:center;gap:8px}#sales-report-types input{width:auto;margin:0}#sales-report-summary{grid-template-columns:repeat(auto-fit,minmax(170px,1fr));margin:20px 0}#sales-report-summary .stat{border-top:3px solid #526ce5}#sales-report-summary .stat:nth-child(n+3):nth-child(-n+5){border-top-color:#b8892d}#page-sales-report>.panel:last-child{overflow-x:auto}#page-sales-report table{min-width:1000px}#page-sales-report code{word-break:break-all}.report-tag{display:inline-block;white-space:nowrap;background:#edf1ff;color:#3c52ac;border:1px solid #d7dffc;border-radius:6px;padding:4px 9px}.report-tag.gift{background:#fff6df;color:#906511;border-color:#efdfb7}.report-empty{text-align:center;padding:40px!important;color:#64748b}.sales-prefix-list{display:flex;flex-wrap:wrap;gap:12px;margin-top:20px}.sales-prefix-item{border:1px solid #dbe2f1;background:#f8faff;border-radius:12px;padding:14px;display:grid;gap:9px;min-width:150px}.sales-prefix-item span{font-size:12px;color:#64748b}#user-sales-options,#code-batch-options{display:contents}#page-users .toolbar,#page-codes .toolbar{flex-wrap:wrap}#page-users .toolbar input[type=date],#page-codes .toolbar input[type=date]{display:block;margin-top:6px}#sales-report-error:empty{display:none}#sales-report-error{padding:10px 14px;background:#fff3e7;border-radius:8px}@media(max-width:700px){#sales-report-form label{width:100%;min-width:0}#sales-report-summary{grid-template-columns:repeat(2,minmax(0,1fr))}#sales-report-summary .stat b{font-size:21px}#sales-report-types label{padding:8px 10px}.sales-prefix-item{flex:1}}

.report-actions{display:flex;align-items:center;flex-wrap:wrap;gap:10px;margin:16px 0;padding:12px 16px;border:1px solid #dbe3ef;border-radius:10px;background:#fff}.report-actions[hidden]{display:none}.report-actions small{color:#64748b}.report-row-actions{display:flex;align-items:center;gap:6px;white-space:nowrap}.report-row-actions button,.report-actions button{font-size:12px;padding:7px 10px}.report-row-actions input,.report-select-all input{width:16px;height:16px;padding:0;margin:0;accent-color:#2f73d9}.report-select-all{display:flex;align-items:center;gap:6px;white-space:nowrap}#page-sales-report table{min-width:1200px}#sales-report-assign-dialog{width:min(480px,calc(100vw - 32px))}#sales-report-assign-dialog p{font-size:13px;line-height:1.7;overflow-wrap:anywhere}
#sales-report-delete-dialog{width:min(560px,calc(100vw - 32px))}#sales-report-delete-dialog p{font-size:13px;line-height:1.7;overflow-wrap:anywhere}.report-delete-scope{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;padding:12px;border-radius:8px;background:#fff4f2}.report-delete-scope span{display:grid;gap:6px;font-size:12px;color:#667085}.report-delete-scope b{color:#b42318;font-size:20px}.report-delete-confirm{display:flex;align-items:flex-start;gap:8px;font-size:13px;line-height:1.6}.report-delete-confirm input{width:16px;height:16px;flex:0 0 16px;margin:3px 0 0;padding:0}
#page-sales-report th:last-child,#page-sales-report td:last-child{position:sticky;right:0;z-index:1;background:#fff;box-shadow:-4px 0 8px #1720330a}#page-sales-report th:last-child{background:#f7f9fc}#sales-report-delete-form .report-delete-confirm{display:flex;align-items:flex-start}#sales-report-delete-submit,#sales-report-delete,#page-sales-report .report-row-actions .danger{background:#c64255;color:#fff}#sales-report-delete-submit:disabled,.report-actions button:disabled{opacity:.45;cursor:not-allowed}

.report-status-list{display:flex;flex-wrap:wrap;gap:5px;min-width:120px;max-width:200px;font-size:12px;color:#64748b}.report-status-tag{display:inline-block;border:1px solid #f2d0b0;border-radius:5px;background:#fff3e7;color:#9a481a;padding:3px 6px;white-space:nowrap}#page-sales-report table{min-width:1320px}

#sales-report-summary{display:block;margin:20px 0}.report-net-cards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.report-net-cards .stat:first-child{border-top-color:#268267}.report-totals-scroll{overflow-x:auto;background:#fff;border:1px solid #e2e8f0;border-radius:10px;margin-top:14px}.report-totals-grid{display:grid;grid-template-columns:minmax(155px,1.2fr) repeat(5,minmax(105px,1fr));min-width:720px;font-size:13px}.report-totals-grid>*{padding:13px 16px;border-bottom:1px solid #edf0f5;text-align:right}.report-totals-grid>:nth-child(6n+1){text-align:left}.report-totals-grid>b{background:#f7f9fc;color:#64748b;font-weight:600}.report-totals-grid>:nth-last-child(-n+6){background:#edf8f3;color:#146348;border-bottom:0;font-weight:700}.report-net-note{font-size:12px;color:#64748b;line-height:1.8;margin:10px 0 0}@media(max-width:700px){.report-net-cards{grid-template-columns:repeat(2,minmax(0,1fr))}.report-net-cards .stat:first-child{grid-column:1/-1}}
