.pgc{font:14px/1.5 "Microsoft YaHei",system-ui,sans-serif;color:#1d2939;background:#fff;border:1px solid #e4e7ec;border-radius:14px;padding:24px;box-sizing:border-box;min-width:0}.pgc *{box-sizing:border-box}.pgc-heading,.pgc-subheading,.pgc-switchline{display:flex;align-items:center;justify-content:space-between;gap:16px}.pgc h2,.pgc h3{margin:0;font-size:20px;font-weight:650}.pgc-eyebrow{font-size:12px;color:#667085;margin:0 0 6px}.pgc-subheading{margin:22px 0 16px;color:#667085;font-size:13px}.pgc-subheading strong{color:#344054}.pgc-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}.pgc-cell{background:#f8fafc;border:1px solid #eef0f3;border-radius:10px;padding:18px 16px;display:flex;align-items:flex-start;flex-direction:column;gap:12px;min-width:0}.pgc-label{font-size:13px;color:#667085}.pgc button{font-family:inherit;cursor:pointer}.pgc-number{border:0;border-bottom:1px dashed #cbd5e1;padding:0 0 2px;background:transparent;color:#1d2939;font-size:25px;font-weight:650;font-variant-numeric:tabular-nums;white-space:nowrap}.pgc-number:hover{color:#2563eb;border-color:#2563eb}.pgc-positive{color:#16803c}.pgc-negative,.pgc-missing{color:#b42318}.pgc-missing{font-size:13px}.pgc-muted{color:#667085;font-size:13px}.pgc-ahead{display:block;color:#667085;font-size:12px;font-weight:400}.pgc-toolbar{display:flex;gap:10px;align-items:end;flex-wrap:wrap;margin:20px 0 12px}.pgc input,.pgc select{border:1px solid #d0d5dd;border-radius:7px;background:#fff;padding:8px;font:inherit;min-height:36px;max-width:100%}.pgc input[type=search]{flex:1;min-width:150px}.pgc-control{display:flex;flex-direction:column;gap:4px;font-size:12px;color:#667085}.pgc select{min-width:110px;height:54px;padding:3px}.pgc-secondary,.pgc-chips button{border:1px solid #d0d5dd;border-radius:7px;background:#fff;padding:8px 12px;color:#344054}.pgc-chips{display:flex;gap:6px;flex-wrap:wrap;margin-bottom:8px}.pgc-chips button{font-size:12px;padding:4px 8px;background:#f8fafc}.pgc-scroll{overflow-x:auto;max-width:100%}.pgc table{border-collapse:collapse;width:100%;white-space:nowrap;font-size:13px}.pgc caption{text-align:left;color:#667085;font-size:12px;padding-bottom:10px}.pgc th{background:#f8fafc;font-weight:500;text-align:left}.pgc th,.pgc td{padding:13px 12px;border-bottom:1px solid #eaecf0}.pgc th button{font:inherit;color:#475467;border:0;background:none;padding:0}.pgc th[aria-sort=ascending] button:after{content:" ↑"}.pgc th[aria-sort=descending] button:after{content:" ↓"}.pgc td .pgc-number{font-size:16px}.pgc-total{font-weight:650;background:#f8fafc}.pgc-dialog{border:1px solid #e4e7ec;border-radius:14px;padding:24px;width:min(820px,92vw);max-height:85vh;overflow:auto;color:#344054}.pgc-dialog::backdrop{background:rgba(16,24,40,.35)}.pgc-switchline{justify-content:flex-start;flex-wrap:wrap}.pgc-switch{border:0;border-radius:20px;background:#667085;color:#fff;min-width:58px;min-height:32px;padding:4px 16px}.pgc-switch[aria-checked=true]{background:#2563eb}.pgc button:disabled{opacity:.5;cursor:not-allowed}.pgc button:focus-visible,.pgc input:focus-visible,.pgc select:focus-visible{outline:3px solid #93c5fd;outline-offset:2px}@media(max-width:700px){.pgc{padding:18px;border-radius:12px}.pgc-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.pgc-cell{padding:14px 12px}.pgc-number{font-size:23px}.pgc-toolbar{align-items:stretch}.pgc-toolbar>input[type=search]{flex-basis:100%}.pgc-control{flex:1;min-width:110px}.pgc h2{font-size:18px}.pgc-subheading{align-items:flex-start;flex-direction:column;gap:4px}}

.pgc-dashboard-gap{margin:16px 24px}.pgc-book-clearance{grid-column:1/-1}.pgc-clearance-editor>div+div{margin-top:16px}.pgc-clearance-editor select{height:36px;padding:6px 10px}.pgc-prompt-switch{margin:16px 0 4px;padding:14px}.pgc-clearance-editor{font:14px/1.5 "Microsoft YaHei",system-ui,sans-serif}.pgc-clearance-editor .pgc-control{display:flex;flex-direction:column;gap:4px}.pgc-clearance-editor button{width:auto}.pgc-clearance-editor .pgc-switch{min-width:58px}@media(max-width:700px){.pgc-dashboard-gap{margin:12px}.pgc-clearance-editor{padding:14px}}

/* The SKU book converts the component's legacy classes to dashboard controls after mount. */
.sd .clearance-settings.card {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 16px;
  align-items: stretch;
  padding: 16px;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: var(--r3);
  background: var(--card);
  box-shadow: var(--sh1);
  text-align: start;
  white-space: normal;
}
.sd .clearance-settings.card:empty { display: none; }
.sd .clearance-settings > .clearance-status,
.sd .clearance-settings > .clearance-pricing {
  margin: 0;
  min-width: 0;
  padding: 0;
  border: 0;
  box-shadow: none;
}
.sd .clearance-settings > .clearance-status {
  display: flex;
  align-items: flex-end;
  align-content: center;
  flex-wrap: wrap;
  gap: 6px 10px;
  background: transparent;
}
.sd .clearance-settings .clearance-status label {
  flex: 1 1 100px;
  max-width: 210px;
  color: var(--ink2);
  font-weight: 600;
}
.sd .clearance-settings .clearance-status select {
  width: 100%;
  max-width: none;
  height: 36px;
  padding-inline: 10px;
  border: 1px solid var(--line);
  border-radius: var(--r1);
  background: var(--soft);
  color: var(--ink);
}
.sd .clearance-settings .clearance-status button {
  min-height: 36px;
  padding-inline: 16px;
  border-color: var(--brand);
  background: var(--brand);
  color: var(--card);
  font-weight: 600;
}
.sd .clearance-settings .clearance-status button:hover:enabled {
  border-color: var(--brandi);
  background: var(--brandi);
}
.sd .clearance-settings > .clearance-pricing {
  display: grid;
  align-content: center;
  padding: 9px 16px;
  border-radius: var(--r2);
  background: var(--soft);
}
.sd .clearance-settings .clearance-pricing > div {
  display: flex;
  align-items: center;
  gap: 4px 12px;
  flex-wrap: wrap;
}
.sd .clearance-settings .clearance-pricing > div > span:first-child {
  flex: 1 1 auto;
  color: var(--ink);
  font-weight: 600;
}
.sd .clearance-settings .clr-msg {
  flex-basis: 100%;
  color: var(--mute);
  overflow-wrap: anywhere;
}
.sd .clearance-settings .clr-msg:empty { display: none; }
.sd .clearance-settings .clearance-toggle[role=switch] {
  display: inline-flex;
  position: relative;
  width: 62px;
  min-width: 62px;
  height: 32px;
  padding: 0 9px 0 30px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--mute);
  border-radius: 99px;
  background: var(--mute);
  color: var(--card);
  font-weight: 650;
  line-height: 1;
}
.sd .clearance-settings .clearance-toggle[role=switch]::before {
  content: "";
  position: absolute;
  inset-inline-start: 4px;
  top: 4px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--card);
  box-shadow: var(--sh1);
}
.sd .clearance-settings .clearance-toggle[role=switch][aria-checked=true] {
  padding: 0 30px 0 9px;
  border-color: var(--brand);
  background: var(--brand);
}
.sd .clearance-settings .clearance-toggle[aria-checked=true]::before {
  inset-inline-start: auto;
  inset-inline-end: 4px;
}
.sd .clearance-settings :is(select, button):focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 3px;
}
.sd .clearance-settings :is(select, button):disabled { opacity: .55; cursor: not-allowed; }
@media (max-width: 700px) {
  .sd .clearance-settings.card {
    position: sticky;
    left: 12px;
    justify-self: start;
    width: min(100%, calc(100vw - 64px));
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
    padding: 12px;
  }
  .sd .clearance-settings .clearance-status label { max-width: none; }
  .sd .clearance-settings .clearance-status :is(select, button) { min-height: 40px; }
  .sd .clearance-settings > .clearance-pricing { padding: 8px 12px; }
}
.pgc-link-btn{border:0;background:transparent;padding:4px 6px;color:#3370ff;font:inherit;font-size:13px;cursor:pointer;text-decoration:none}
.pgc-link-btn:hover{text-decoration:underline}
.pgc-cr-dialog{font:14px/1.5 -apple-system,BlinkMacSystemFont,"Segoe UI","PingFang SC","Microsoft YaHei",sans-serif;border:1px solid #dee0e3;border-radius:14px;padding:22px 24px;width:min(580px,calc(100vw - 24px));max-width:calc(100vw - 16px);max-height:88vh;overflow:auto;color:#1f2329;background:#fff;box-shadow:0 12px 32px rgba(31,35,41,.16);box-sizing:border-box}
.pgc-cr-dialog::backdrop{background:rgba(16,24,40,.42)}
.pgc-cr-dialog *{box-sizing:border-box}
.pgc-cr-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;margin-bottom:16px}
.pgc-cr-title{margin:0;font-size:18px;font-weight:650;line-height:1.35;color:#1f2329}
.pgc-cr-sub{margin-top:3px;font-size:13px;color:#646a73;overflow-wrap:anywhere}
.pgc-cr-close{border:0;background:transparent;color:#8f959e;font-size:20px;line-height:1;padding:4px 6px;border-radius:6px;cursor:pointer}
.pgc-cr-close:hover{background:#f2f3f5;color:#1f2329}
.pgc-cr-loading{padding:16px;border-radius:10px;background:#f5f6f7;color:#646a73;font-size:13px;text-align:center;margin-bottom:16px}
.pgc-cr-error{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 14px;border-radius:10px;background:#feedec;border:1px solid #fcc9c7;color:#c43b37;font-size:13px;margin-bottom:16px}
.pgc-cr-stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin-bottom:10px}
.pgc-cr-stat{padding:11px 12px;border-radius:10px;background:#f5f6f7;border:1px solid #ebedf0;min-width:0}
.pgc-cr-stat.is-warn{background:#fdf0e7;border-color:#fad3b6}
.pgc-cr-stat-label{font-size:12px;color:#646a73;line-height:1.4}
.pgc-cr-stat-val{margin-top:4px;font-size:18px;font-weight:650;color:#1f2329;font-variant-numeric:tabular-nums;line-height:1.3}
.pgc-cr-stat.is-warn .pgc-cr-stat-val{color:#be570a}
.pgc-cr-stat-meta{margin-top:3px;font-size:11px;color:#8f959e;line-height:1.35}
.pgc-cr-return-note{margin:0 0 14px;font-size:12px;color:#646a73;line-height:1.5}
.pgc-cr-form{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px 14px;margin-top:14px}
.pgc-cr-field{display:flex;flex-direction:column;gap:5px;min-width:0}
.pgc-cr-field.is-full{grid-column:1/-1}
.pgc-cr-label{font-size:13px;font-weight:500;color:#1f2329}
.pgc-cr-req{color:#f54a45;margin-left:3px;font-weight:600}
.pgc-cr-input{width:100%;min-height:36px;padding:7px 10px;border:1px solid #d0d3d6;border-radius:6px;background:#fff;color:#1f2329;font:inherit;font-size:13px;line-height:1.45}
.pgc-cr-input:focus{outline:none;border-color:#3370ff;box-shadow:0 0 0 2px rgba(51,112,255,.15)}
textarea.pgc-cr-input{min-height:74px;resize:vertical}
.pgc-cr-money{display:flex;align-items:center;border:1px solid #d0d3d6;border-radius:6px;background:#fff;overflow:hidden}
.pgc-cr-money:focus-within{border-color:#3370ff;box-shadow:0 0 0 2px rgba(51,112,255,.15)}
.pgc-cr-currency{padding:0 10px;color:#646a73;font-size:13px;background:#f5f6f7;border-right:1px solid #ebedf0;line-height:36px;user-select:none}
.pgc-cr-money .pgc-cr-input{border:0;box-shadow:none;min-height:36px}
.pgc-cr-warning{margin-top:14px;padding:10px 12px;border-radius:8px;background:#fdf0e7;border:1px solid #fad3b6;color:#be570a;font-size:13px;font-weight:500;line-height:1.5}
.pgc-cr-errline{margin:10px 0 0;color:#c43b37;font-size:13px;line-height:1.45}
.pgc-cr-foot{display:flex;justify-content:flex-end;gap:10px;margin-top:18px}
.pgc-cr-btn{border-radius:6px;padding:8px 16px;font:inherit;font-size:13px;font-weight:500;cursor:pointer;min-height:36px;border:1px solid #d0d3d6;background:#fff;color:#1f2329}
.pgc-cr-btn:hover:not(:disabled){background:#f5f6f7}
.pgc-cr-btn.is-primary{border-color:#3370ff;background:#3370ff;color:#fff}
.pgc-cr-btn.is-primary:hover:not(:disabled){background:#4e83fd;border-color:#4e83fd}
.pgc-cr-btn.is-warn{border-color:#ed6d0c;background:#ed6d0c;color:#fff}
.pgc-cr-btn.is-warn:hover:not(:disabled){background:#d96208;border-color:#d96208}
.pgc-cr-btn:disabled{opacity:.55;cursor:not-allowed}
@media(max-width:640px){
  .pgc-cr-dialog{width:calc(100vw - 16px);padding:16px;border-radius:12px}
  .pgc-cr-stats{grid-template-columns:repeat(2,minmax(0,1fr))}
  .pgc-cr-stats .pgc-cr-stat:last-child{grid-column:1/-1}
  .pgc-cr-form{grid-template-columns:1fr}
  .pgc-cr-foot{flex-direction:column-reverse}
  .pgc-cr-foot .pgc-cr-btn{width:100%}
}
