.catalog-cleanup-entry{font-weight:650;min-height:38px;white-space:nowrap}
.customer-sales-view td .catalog-cleanup-entry{margin-left:8px;padding:9px 13px}
.customer-sales-detail-actions{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.customer-sales-detail-meta{display:flex;gap:18px;padding:12px 20px;color:#71868f;font-size:12px;border-bottom:1px solid #edf1f3}
.customer-sales-view .panel-head{gap:16px;flex-wrap:wrap}
#modal:has(.catalog-cleanup-form),#modal:has(.catalog-cleanup-preview){width:1040px;max-width:95vw}
#modal:has(.catalog-cleanup-form) #modal-body,#modal:has(.catalog-cleanup-preview) #modal-body{max-height:calc(92vh - 74px);padding:22px 26px}
.cleanup-steps{display:flex;gap:20px;padding:0;margin:0 0 18px;list-style:none;color:#8a9ba3;font-size:12px}
.cleanup-steps li{display:flex;align-items:center;gap:8px;line-height:1.5}
.cleanup-steps li>span{display:grid;place-items:center;width:25px;height:25px;border-radius:50%;background:#edf2f5;color:#7a8b95;font-weight:650;flex-shrink:0}
.cleanup-steps li[aria-current]{color:#087e72;font-weight:650}
.cleanup-steps li[aria-current]>span{background:#087e72;color:white}
.cleanup-intro{font-size:13px;color:#6b818c;margin:0 0 20px}
.catalog-cleanup-form .form-grid{grid-template-columns:minmax(0,1fr);gap:18px}
.cleanup-section{border:1px solid #e0e8ed;border-radius:12px;padding:19px 20px;min-width:0;background:#fff}
.cleanup-section-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:15px}
.cleanup-section-heading h3{margin:0;font-size:15px;color:#183b46}
.cleanup-section-heading>span,.cleanup-hint{font-size:12px;color:#7b9099;line-height:1.7}
.cleanup-rule-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
.catalog-cleanup-form .cleanup-rule-card{display:flex;align-items:flex-start;gap:11px;padding:16px;border:1px solid #dbe5ea;border-radius:9px;cursor:pointer;min-width:0;line-height:1.6}
.catalog-cleanup-form .cleanup-rule-card:has(input:checked){border-color:#159b8b;background:#f0faf7;box-shadow:0 0 0 1px #159b8b}
.catalog-cleanup-form .cleanup-rule-card:focus-within{outline:3px solid #8bd9cb;outline-offset:3px}
.catalog-cleanup-form input[type=radio],.catalog-cleanup-form input[type=checkbox]{width:18px;height:18px;margin:2px 0 0;padding:0;flex:0 0 18px;accent-color:#087e72;box-shadow:none}
.cleanup-rule-card strong{display:block;font-size:14px;color:#203d48}
.cleanup-rule-card small{display:block;margin-top:5px;color:#768c96;font-size:12px;font-weight:400;line-height:1.7}
.cleanup-threshold{margin-top:16px;padding:15px 16px;border-radius:8px;background:#f6f9fb}
.cleanup-threshold[hidden]{display:none}
.cleanup-threshold>p{margin:0 0 12px;color:#718690;font-size:12px;line-height:1.8}
.cleanup-threshold-controls{display:flex;align-items:flex-end;gap:12px;flex-wrap:wrap}
.cleanup-threshold-controls label{width:180px;flex:none}
.cleanup-threshold-controls input{height:42px}
.cleanup-threshold-controls>button{min-height:42px}
.cleanup-threshold-controls>.cleanup-hint{align-self:center;margin-top:18px}
.cleanup-date-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
.cleanup-date-grid input{min-width:0;height:42px}
.cleanup-shops{border:0;border-top:1px solid #edf1f4;margin:16px 0 0;padding:16px 0 0;min-width:0}
.cleanup-shops legend{font-size:12px;font-weight:600;color:#58717e;padding:0 10px 0 0}
.cleanup-shops>div{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.catalog-cleanup-form .cleanup-shops label{display:flex;align-items:flex-start;gap:10px;padding:11px 12px;border:1px solid #e4ebef;border-radius:8px;cursor:pointer;line-height:1.5;min-width:0}
.cleanup-shops label:has(input:checked){background:#f8fbfc;border-color:#bfd8d6}
.cleanup-shops label>span{min-width:0;overflow-wrap:anywhere}
.cleanup-shops strong{display:block;font-size:12px;font-weight:550}
.cleanup-shops small{display:block;color:#91a0a8;margin-top:3px;font-size:11px}
.cleanup-grant{display:flex;align-items:center;justify-content:space-between;gap:14px;background:#f8fafc}
.catalog-cleanup-form .cleanup-grant label{display:flex;align-items:flex-start;gap:10px;line-height:1.8}
.cleanup-grant button{flex-shrink:0}
.cleanup-access-note{padding:12px 15px;background:#fff6e9;color:#996922;border-radius:8px;font-size:13px;line-height:1.8;margin:0}
.cleanup-notes{color:#7b8d95;font-size:12px;line-height:1.8}
.cleanup-notes summary{cursor:pointer;color:#587782}
.cleanup-notes p{margin:8px 0 0}
.catalog-cleanup-form .form-footer{position:sticky;bottom:-22px;padding:16px 0 0;background:white;z-index:2}
.cleanup-history{border-top:1px solid #edf1f4;margin-top:18px;padding-top:15px}
.cleanup-result-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:14px}
.cleanup-result-heading strong{font-size:16px}
.cleanup-result-heading>span{font-size:12px;color:#7a8f98}
.cleanup-result-message{padding:12px 14px;background:#eef8f6;color:#37786e;border:1px solid #d9eee8;border-radius:9px;line-height:1.8;font-size:13px}
.cleanup-result-stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:16px 0}
.cleanup-result-stats>div{border:1px solid #e0e9ed;border-radius:9px;padding:13px 16px}
.cleanup-result-stats span{display:block;font-size:12px;color:#7b9099}
.cleanup-result-stats strong{display:block;font-size:25px;color:#183b46;margin-top:6px;font-variant-numeric:tabular-nums}
.cleanup-excluded{display:flex;gap:8px 17px;flex-wrap:wrap;color:#81939b;font-size:11px;line-height:1.8;margin:0 0 16px}
.cleanup-excluded b{color:#536e7a;font-weight:550}
.cleanup-preview-table{overflow:auto;border:1px solid #e5ecef;border-radius:9px;max-height:360px}
.cleanup-preview-table table{min-width:620px}
.cleanup-preview-table th{position:sticky;top:0;background:#f4f8fa;z-index:1}
.cleanup-preview-table td,.cleanup-preview-table th{padding:12px 14px;font-size:12px}
.cleanup-submit-note{font-size:12px;line-height:1.8;color:#6c838e;margin:16px 0}
.cleanup-result-actions{display:flex;align-items:center;justify-content:flex-end;gap:10px;flex-wrap:wrap;padding-top:16px;border-top:1px solid #e7edf1}
@media(max-width:600px){
 .customer-sales-detail-actions{width:100%;gap:8px}
 .customer-sales-detail-actions .catalog-cleanup-entry{flex:1}
 #modal:has(.catalog-cleanup-form) #modal-body,#modal:has(.catalog-cleanup-preview) #modal-body{padding:16px}
 .cleanup-steps{gap:8px;font-size:10px;justify-content:space-between}
 .cleanup-steps li{gap:5px;align-items:flex-start}
 .cleanup-steps li>span{width:21px;height:21px;font-size:11px}
 .cleanup-section{padding:15px 13px}
 .cleanup-section-heading{align-items:flex-start}
 .cleanup-section-heading>span{font-size:10px}
 .cleanup-rule-grid,.cleanup-shops>div{grid-template-columns:1fr}
 .cleanup-threshold{padding:12px}
 .cleanup-threshold-controls{align-items:stretch;gap:8px}
 .cleanup-threshold-controls label{width:100%}
 .cleanup-threshold-controls>button{width:100%}
 .cleanup-threshold-controls>.cleanup-hint{margin-top:0}
 .cleanup-date-grid{gap:10px}
 .cleanup-date-grid input{padding:10px 5px;font-size:12px}
 .cleanup-grant{align-items:stretch;flex-direction:column}
 .catalog-cleanup-form .form-footer{bottom:-16px}
 .cleanup-result-heading{align-items:flex-start;flex-direction:column;gap:7px}
 .cleanup-result-stats{gap:7px}
 .cleanup-result-stats>div{padding:10px 9px}
 .cleanup-result-stats span{font-size:10px}
 .cleanup-result-stats strong{font-size:22px}
 .cleanup-result-actions>.primary{width:100%;line-height:1.6}
}

.cleanup-progress{padding:16px 18px;border:1px solid #dbe7e6;border-radius:10px;margin:16px 0}.cleanup-progress h3{font-size:15px;margin:0 0 12px}.cleanup-progress>div{display:flex;flex-direction:column;gap:5px;padding:10px 0;border-top:1px solid #edf1f2}.cleanup-progress span,.cleanup-progress small{font-size:12px;color:#758b94;overflow-wrap:anywhere}
