/* Scoped to the sales report; no global Porto overrides. */
.ptech-sales-performance{--sp-dark:#343434;--sp-accent:#b8b8b8;--sp-border:#dedede;max-width:1320px;margin:16px auto 48px;color:#333333;font-size:14px;line-height:1.5}
.ptech-sales-performance *{box-sizing:border-box}
.ptech-sales-performance .sp-header{display:flex;justify-content:space-between;align-items:center;gap:24px;padding:30px 32px;background:var(--sp-dark);border-radius:12px 12px 0 0;border-top:5px solid var(--sp-accent);color:#fff}
.ptech-sales-performance .sp-eyebrow{display:block;font-size:11px;font-weight:700;letter-spacing:1.4px;line-height:1.5}
.ptech-sales-performance .sp-header .sp-eyebrow{color:var(--sp-accent)}
.ptech-sales-performance .sp-header h2{color:#fff;font-size:28px;font-weight:600;line-height:1.25;margin:7px 0 9px}
.ptech-sales-performance .sp-header p{color:#e5e5e5;margin:0;font-size:14px}
.ptech-sales-performance .sp-store{border:1px solid #787878;border-radius:24px;padding:8px 15px;color:#fff;font-size:13px;overflow-wrap:anywhere}
.ptech-sales-performance .sp-filters,.ptech-sales-performance .sp-unlock{padding:26px 32px;margin:0 0 30px;background:#f5f5f5;border:1px solid var(--sp-border);border-top:0;border-radius:0 0 12px 12px;width:100%;max-width:none}
.ptech-sales-performance .sp-filter-fields{display:grid;grid-template-columns:220px 220px minmax(200px,1fr);gap:20px 24px;align-items:end;border:0;padding:0;margin:0;min-width:0}
.ptech-sales-performance .sp-filter-fields legend{float:none;display:block;width:100%;margin:0 0 18px;padding:0;font-size:15px;font-weight:600;border:0;color:#333333}
.ptech-sales-performance .field{margin:0!important;padding:0}
.ptech-sales-performance .field .label{display:block;font-size:13px;font-weight:600;margin:0 0 7px;width:auto;text-align:left;float:none}
.ptech-sales-performance .field .control{width:100%;float:none}
.ptech-sales-performance input[type=date],.ptech-sales-performance input[type=password]{height:44px;width:100%;max-width:100%;padding:9px 12px;border:1px solid #bdbdbd;border-radius:6px;background:#fff;box-shadow:none;color:#333333;font:inherit}
.ptech-sales-performance .sp-zero{display:flex;align-items:center;gap:10px;min-height:44px}
.ptech-sales-performance .sp-zero input{margin:0;flex:0 0 auto;width:17px;height:17px;accent-color:var(--sp-dark)}
.ptech-sales-performance .sp-zero label{margin:0;font-size:13px;cursor:pointer}
.ptech-sales-performance .sp-filter-actions{display:flex;gap:18px;align-items:center;flex-wrap:wrap;margin-top:22px}
.ptech-sales-performance .sp-filter-actions>span{font-size:12px;color:#606060}
.ptech-sales-performance button.action{display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:11px 20px;border-radius:6px;font-size:13px;line-height:1.4;font-weight:700;text-transform:none;box-shadow:none;transition:background .15s}
.ptech-sales-performance button.action.primary{background:var(--sp-dark);border:1px solid var(--sp-dark);color:#fff}
.ptech-sales-performance button.action.primary:hover{background:#4a4a4a}
.ptech-sales-performance button.action.secondary{background:#fff;border:1px solid #aaaaaa;color:var(--sp-dark)}
.ptech-sales-performance button.action.secondary:hover{background:#eeeeee}
.ptech-sales-performance :is(button,input,summary,a,[tabindex]):focus-visible{outline:3px solid #666666;outline-offset:3px}
.ptech-sales-performance .sp-unlock .field{max-width:420px;margin-bottom:18px!important}
.ptech-sales-performance .sp-results-toolbar{display:flex;justify-content:space-between;align-items:center;gap:18px;flex-wrap:wrap;margin:0 0 20px}
.ptech-sales-performance .sp-results-toolbar h2{font-size:21px;font-weight:600;color:var(--sp-dark);margin:0 0 5px}
.ptech-sales-performance .sp-results-toolbar p{font-size:13px;color:#606060;margin:0}
.ptech-sales-performance .sp-results-toolbar form{margin:0}
.ptech-sales-performance .sp-panel{border:1px solid var(--sp-border);border-radius:10px;overflow:hidden;margin:0 0 26px;background:#fff}
.ptech-sales-performance .sp-panel-heading{display:flex;justify-content:space-between;align-items:center;gap:15px;padding:20px 24px;background:#f3f3f3;border-left:5px solid var(--sp-dark)}
.ptech-sales-performance .sp-worst .sp-panel-heading{background:#f6f6f6;border-left-color:var(--sp-accent)}
.ptech-sales-performance .sp-panel-heading .sp-eyebrow{color:#606060;font-size:10px}
.ptech-sales-performance .sp-panel-heading h2{font-size:20px;font-weight:600;line-height:1.35;color:var(--sp-dark);margin:5px 0 0}
.ptech-sales-performance .sp-badge{white-space:nowrap;padding:5px 10px;background:#fff;border:1px solid var(--sp-border);border-radius:20px;font-size:11px;color:#606060}
.ptech-sales-performance .sp-table-scroll{overflow-x:auto;width:100%;overscroll-behavior-x:contain}
.ptech-sales-performance .sp-table{border-collapse:collapse;width:100%;min-width:840px;margin:0;background:#fff;font-size:13px}
.ptech-sales-performance .sp-table caption{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}
.ptech-sales-performance .sp-table th{padding:13px 16px;font-size:11px;letter-spacing:.3px;color:#606060;background:#fafafa;font-weight:700;white-space:nowrap;border-bottom:1px solid var(--sp-border);text-align:left}
.ptech-sales-performance .sp-table td{padding:16px;border-bottom:1px solid #e8e8e8;vertical-align:middle;color:#444444}
.ptech-sales-performance .sp-table tbody tr:nth-child(even){background:#f8f8f8}
.ptech-sales-performance .sp-table tbody tr:hover{background:#eeeeee}
.ptech-sales-performance .sp-table tbody tr:last-child td{border-bottom:0}
.ptech-sales-performance .sp-table .sp-number{text-align:right;font-variant-numeric:tabular-nums;white-space:nowrap}
.ptech-sales-performance .sp-table .sp-rank{text-align:center;font-weight:700;color:var(--sp-dark);width:60px}
.ptech-sales-performance .sp-table .sp-name{font-weight:600;color:var(--sp-dark);min-width:220px;overflow-wrap:anywhere}
.ptech-sales-performance .sp-table .sp-sku{font-size:12px;max-width:220px;overflow-wrap:anywhere}
.ptech-sales-performance .sp-table .sp-qty{font-weight:700}
.ptech-sales-performance .sp-notes{padding:16px 20px;border:1px solid var(--sp-border);border-radius:8px;background:#f8f8f8;margin:0 0 22px;color:#606060;font-size:12px}
.ptech-sales-performance .sp-notes summary{cursor:pointer;color:#444444;font-size:13px;font-weight:600}
.ptech-sales-performance .sp-notes p{margin:12px 0 0}
.ptech-sales-performance .sp-empty{text-align:center;padding:42px 20px;border:1px dashed #bdbdbd;border-radius:10px;margin-bottom:24px}
.ptech-sales-performance .sp-empty h2{font-size:20px;color:var(--sp-dark);margin:0 0 10px}
.ptech-sales-performance .sp-empty p{margin:0;color:#606060}
@media(max-width:900px){.ptech-sales-performance .sp-filter-fields{grid-template-columns:1fr 1fr}.ptech-sales-performance .sp-zero{grid-column:1/-1}.ptech-sales-performance .sp-header{align-items:flex-start}.ptech-sales-performance .sp-store{max-width:40%}}
@media(max-width:600px){.ptech-sales-performance{margin-top:8px}.ptech-sales-performance .sp-header{padding:22px 18px;flex-direction:column;gap:16px}.ptech-sales-performance .sp-header h2{font-size:24px}.ptech-sales-performance .sp-store{max-width:100%}.ptech-sales-performance .sp-filters,.ptech-sales-performance .sp-unlock{padding:20px 18px}.ptech-sales-performance .sp-filter-fields{grid-template-columns:1fr;gap:16px}.ptech-sales-performance .sp-filter-actions{align-items:stretch;flex-direction:column;gap:10px}.ptech-sales-performance .sp-panel-heading{padding:17px 14px}.ptech-sales-performance .sp-panel-heading h2{font-size:18px}.ptech-sales-performance .sp-results-toolbar form,.ptech-sales-performance .sp-results-toolbar button{width:100%}}

/* Compact date controls. A normal wrapper avoids fieldset grid inconsistencies. */
.ptech-sales-performance .sp-filter-fields{display:block;max-width:560px}
.ptech-sales-performance .sp-date-row{display:flex;flex-wrap:wrap;align-items:flex-end;gap:16px 20px;max-width:440px}
.ptech-sales-performance .sp-date-row .sp-date-field{flex:0 1 200px;width:200px;max-width:100%;min-width:0}
.ptech-sales-performance .sp-date-row .sp-date-field .control{width:200px;max-width:100%}
.ptech-sales-performance .sp-date-row input[type=date]{display:block;width:200px;max-width:100%;height:38px;font-size:13px;padding:7px 10px}
.ptech-sales-performance .sp-filter-fields .sp-zero{margin-top:14px!important;min-height:28px}
@media(max-width:480px){.ptech-sales-performance .sp-date-row{gap:14px}.ptech-sales-performance .sp-date-row .sp-date-field{flex-basis:200px}}

/* Separate the export controls from the seller results. */
.ptech-sales-performance .sp-results-toolbar{margin-bottom:32px}
.ptech-sales-performance form[action*="sales-performance/index/export"] + h2{margin-top:32px}
