.ref-surface .page.warehouse-reference {
  --storage-red: #ff432c;
  --order-red: #ff454e;
  --storage-bg: #eef1fb;
  --storage-line: #ededed;
  padding: 0;
  display: block;
  color: #222;
  background: #fff;
}
#app.ref-warehouse, #app.ref-commission, #app.ref-commission-payment, #app.ref-shipment { background: #fff; }
#app.ref-storage, #app.ref-pickup { background: #eef1fb; }
#app.ref-benefits, #app.ref-pickups { background: #f3f3f3; }
.ref-storage .page.warehouse-reference,
.ref-pickup .page.warehouse-reference {
  background: #eef1fb;
  padding-bottom: 60px;
}
.ref-commission .page.warehouse-reference,
.ref-commission-payment .page.warehouse-reference,
.ref-shipment .page.warehouse-reference {
  padding-bottom: 60px;
}
.warehouse-reference .pagination { padding: 12px; }
.wh-tabs { display: flex; align-items: stretch; background: #fff; }
.wh-tabs a {
  position: relative;
  display: grid;
  place-items: center;
  width: 75px;
  min-height: 44px;
  color: #666;
  font-size: 16px;
}
.wh-tabs a[aria-current] { color: #ff4a26; font-weight: 700; }
.wh-tabs a[aria-current]::after {
  content: "";
  position: absolute;
  bottom: 5px;
  left: 12px;
  width: 26px;
  border-top: 2px solid currentColor;
  border-radius: 2px;
}
.ref-warehouse .wh-tabs {
  background: #faf9fb url("./assets/reference/tab_page_head_bg.png") center bottom / 100% auto no-repeat;
}
#app.ref-warehouse .topbar { border-bottom: 0; background: #faf9fb; }
.wh-tabs-wide a,
.wh-tabs-ledger a { width: 50%; }
.wh-tabs-wide a[aria-current]::after,
.wh-tabs-ledger a[aria-current]::after { left: 25%; width: 50%; bottom: 0; }
.wh-tabs-ledger a[aria-current] { color: #3b99ff; font-weight: 400; }
.wh-tabs-ledger a { min-height: 40px; font-size: 14px; }
.wh-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  padding: 16px 10px 10px;
  border-radius: 26px;
  background: linear-gradient(#fff, #eff3fd);
}
.wh-grid .wh-empty { grid-column: 1/-1; }
.wh-empty { margin: 0; padding: 35px 12px; text-align: center; color: #999; font-size: 14px; }
.wh-card {
  min-width: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 5px;
  background: #fff;
  box-shadow: 0 1px 4px #00000006;
}
.wh-card-photo { display: block; width: 100%; aspect-ratio: 1.38; object-fit: cover; }
.wh-card-title { padding: 9px 7px; overflow: hidden; color: #252525; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; }
.wh-card-foot { display: flex; align-items: center; justify-content: space-between; padding: 5px 7px 10px; gap: 4px; }
.wh-card-foot strong { color: #ff4a20; font-size: 13px; }
.wh-chip { color: #fff; background: #ff591e; border-radius: 10px; padding: 0 6px; font-size: 10px; line-height: 14px; white-space: nowrap; }
.wh-large { padding: 5px 4px 8px; background: #fff; }
.wh-large-photo { display: block; width: 100%; aspect-ratio: 1.05; object-fit: cover; border-radius: 4px; }
.wh-detail-text { padding: 6px 9px 18px; }
.wh-detail-text h1 { margin: 0 0 9px; font-size: 16px; font-weight: 700; line-height: 1.3; }
.wh-owner { display: flex; align-items: center; gap: 16px; font-size: 14px; }
.wh-owner span { padding: 1px 7px; color: #172b3c; background: linear-gradient(#98cef8, #c0e8ff); border-radius: 2px; }
.wh-dock {
  position: fixed;
  left: 50%;
  bottom: 0;
  z-index: 4;
  display: flex;
  gap: 9px;
  width: min(100%, 520px);
  padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
  transform: translateX(-50%);
  background: #fff;
  box-shadow: 0 -2px 6px #0000000b;
}
.wh-button {
  display: grid;
  flex: 1;
  place-items: center;
  min-height: 36px;
  border: 0;
  border-radius: 5px;
  padding: 0 8px;
  background: #ff432c;
  color: #fff;
  font-size: 15px;
  line-height: 1.2;
  cursor: pointer;
}
.wh-button:disabled { opacity: .55; }
.wh-dock-round .wh-button { min-height: 42px; border-radius: 25px; background: #ff454e; }
.wh-address {
  display: grid;
  grid-template-columns: 32px 1fr 20px;
  align-items: center;
  gap: 12px;
  width: 100%;
  margin-top: 9px;
  padding: 10px 9px;
  border: 0;
  border-radius: 4px;
  background: #fff;
  color: #141414;
  text-align: left;
  font-size: 13px;
  cursor: pointer;
}
.wh-address > svg { color: #777; height: 17px; width: 17px; }
.wh-address-pin { display: grid; place-items: center; color: #7acbfa; }
.wh-address-pin svg { width: 23px; height: 23px; stroke-width: 3; }
.wh-address-fields { border: 0; margin: 10px 0 0; padding: 12px; background: #fff; border-radius: 4px; }
.wh-address-fields .field { margin: 8px 0; }
.wh-address-fields input, .wh-address-fields textarea { border-radius: 4px; }
.wh-payment { min-height: 100%; background: #fff; }
.wh-product-summary {
  display: grid;
  grid-template-columns: clamp(67px, 21vw, 100px) minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  min-height: 112px;
  padding: 15px 10px 10px;
  border-bottom: 4px solid #f4f4f4;
}
.wh-summary-photo { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 4px; }
.wh-product-summary h1 { margin: 0 0 4px; color: #171717; font-size: 16px; line-height: 1.35; font-weight: 400; }
.wh-product-summary strong { color: #ff454e; font-size: 17px; font-weight: 700; }
.wh-line, .wh-payment .value-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 40px;
  padding: 8px 10px;
  border-bottom: 1px solid #ededed;
  font-size: 14px;
  line-height: 1.3;
}
.wh-line > div { display: flex; align-items: center; gap: 4px; color: #161616; }
.wh-payment .value-row > strong { text-align: right; overflow-wrap: anywhere; }
.wh-subtle { color: #707070; font-size: 12px; }
.wh-coupon-select { display: flex; align-items: center; background: none; border: 0; padding: 0; font-size: 15px; }
.wh-coupon-select svg { width: 12px; height: 12px; color: #888; }
.wh-toggle { position: relative; display: inline-block; width: 42px; height: 22px; cursor: pointer; }
.wh-toggle input { position: absolute; inset: 0; z-index: 1; opacity: 0; margin: 0; }
.wh-toggle span { position: absolute; inset: 0; background: #ddd; border-radius: 14px; }
.wh-toggle input:checked + span { background: #ff454e; }
.wh-toggle span::after { position: absolute; content: ""; top: 1px; left: 1px; width: 20px; height: 20px; border-radius: 50%; background: #fff; }
.wh-toggle input:checked + span::after { transform: translateX(20px); }
.wh-toggle input:focus-visible + span { outline: 2px solid #257cc3; outline-offset: 2px; }
.wh-option-title { min-height: 36px; padding: 9px 10px; border-bottom: 1px solid #ededed; }
.wh-option { display: flex; align-items: center; justify-content: space-between; min-height: 49px; padding: 7px 15px; }
.wh-option-check { display: grid; place-items: center; width: 21px; height: 21px; border-radius: 50%; background: #ff454e; color: #fff; }
.wh-option-check svg { width: 16px; height: 16px; stroke-width: 2.5; }
.wh-pay-content { padding: 10px 15px 20px; }
.wh-qr { margin: 14px auto 7px; text-align: center; }
.wh-qr figcaption { margin: 0 0 9px; color: #272727; }
.wh-qr img { display: block; max-width: 100%; width: min(68%, 250px); max-height: 320px; margin: auto; object-fit: contain; border-radius: 4px; }
.wh-qr p, .wh-cost-description { margin: 7px 0 3px; color: #8c8c8c; font-size: 13px; }
.wh-cost-description b, .wh-cost-note, .wh-error { color: #ff454e; }
.wh-cost-note { margin: 4px 0 8px; font-size: 13px; }
.wh-upload { margin: 34px 0 8px; }
.wh-upload h2 { margin: 0 0 10px; font-size: 15px; font-weight: 500; }
.wh-upload label {
  position: relative;
  display: grid;
  align-content: center;
  place-items: center;
  gap: 5px;
  width: 106px;
  aspect-ratio: 1;
  padding: 4px;
  overflow: hidden;
  border: 1px dashed #d6d6d6;
  border-radius: 4px;
  background: #f4f4f4;
  color: #949494;
  font-size: 12px;
  cursor: pointer;
}
.wh-upload input { position: absolute; inset: 0; width: 100%; opacity: 0; cursor: pointer; }
.wh-upload [data-file-name] { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wh-existing { color: #666; font-size: 13px; }
.wh-existing img { max-width: min(240px, 100%); }
.wh-close-order, .wh-text-button {
  display: inline-block;
  min-height: 36px;
  border: 0;
  padding: 8px 10px;
  background: transparent;
  color: #318deb;
  font-size: 13px;
  cursor: pointer;
}
.wh-ship-list { min-height: 100%; padding: 8px 10px; background: #f4f4f4; }
.wh-ship-card { display: block; margin-bottom: 9px; border-radius: 7px; padding: 11px; background: #fff; }
.wh-ship-card header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 9px; font-size: 13px; }
.wh-ship-card header strong { color: #ff432c; font-weight: 400; }
.wh-ship-card > div { display: grid; grid-template-columns: 57px 1fr 18px; gap: 10px; align-items: center; font-size: 14px; }
.wh-ship-card svg { color: #888; width: 16px; height: 16px; }
.ref-benefits .page.warehouse-reference { background: #f3f3f3; }
.wh-ledger-date { display: flex; align-items: center; justify-content: center; gap: 3px; width: 100%; min-height: 44px; border: 0; background: #fff; color: #666; font-size: 14px; }
.wh-ledger-date svg { width: 12px; height: 12px; transform: rotate(90deg); }
.wh-ledger { margin-top: 5px; background: #fff; }
.wh-ledger header { min-height: 37px; padding: 9px 15px; border-bottom: 1px solid #ededed; text-align: right; color: #666; font-size: 14px; }
.wh-ledger-row { padding: 12px 15px 9px; border-bottom: 1px solid #ededed; font-size: 14px; }
.wh-ledger-row p { margin: 0; line-height: 1.6; }
.wh-ledger-row > div { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; margin-top: 4px; }
.wh-ledger-row time { color: #999; }
.wh-ledger-row strong { font-size: 15px; }
.wh-ledger-row .is-positive { color: #63bd39; }
.wh-ledger-row .is-negative { color: #f16673; }
.wh-coupons { background: #fff; padding: 4px 12px; }
#dialog:has(.warehouse-risk) { width: min(calc(100% - 26px), 447px); max-height: 82dvh; padding: 0; border: 0; border-radius: 8px; }
#dialog:has(.warehouse-risk)::backdrop { background: #0008; }
#dialog:has(.warehouse-risk) .dialog-content { position: relative; padding: 0; }
#dialog:has(.warehouse-risk) h2 { margin: 0; padding: 15px 40px; border-bottom: 1px solid #eee; text-align: center; font-size: 16px; color: #222; }
.warehouse-risk { height: min(46dvh, 390px); overflow: auto; padding: 12px 15px; color: #666; line-height: 1.65; }
.warehouse-risk p { margin: 0 0 15px; white-space: pre-line; }
.wh-risk-countdown { height: 32px; margin: 0; padding: 7px 0 0; border-top: 1px solid #eee; color: #999; text-align: center; font-size: 12px; }
#dialog:has(.warehouse-risk) .dialog-actions { display: block; margin: 0; padding: 0 15px 14px; }
#dialog:has(.warehouse-risk) [data-cancel] {
  position: absolute; right: 10px; top: 9px; width: 27px; height: 27px; min-height: 0; border: 0;
  border-radius: 50%; background: #f5f5f5; padding: 0; color: #999; font-size: 0;
}
#dialog:has(.warehouse-risk) [data-cancel]::after { content: "×"; font-size: 20px; }
#dialog:has(.warehouse-risk) [data-confirm] { width: 100%; min-height: 32px; border-radius: 4px; background: #ff432c; }
#dialog:has(.warehouse-risk) [data-confirm]:disabled { opacity: 1; background: #c8c8c8; color: #fff; }
