/* ERP desktop floating notices share one centered, non-modal surface. */
:where(.cmh-delivery-office-banner, aside[aria-label="盘点复盘提醒"] > section, #cmh-desktop-runtime-refresh, #cmh-online-desktop-update, #cmh-pwa-update-status) {
  box-sizing: border-box;
  border: 1px solid #d1dce8 !important;
  border-radius: 15px !important;
  background: #fff !important;
  color: #182e45 !important;
  box-shadow: 0 20px 58px #11264340, 0 3px 12px #11264317 !important;
  font: 13px/1.58 "Microsoft YaHei UI", "Microsoft YaHei", sans-serif !important;
}
:where(.cmh-delivery-office-banner, aside[aria-label="盘点复盘提醒"], #cmh-desktop-runtime-refresh, #cmh-online-desktop-update, #cmh-pwa-update-status) {
  position: fixed !important;
  inset: 50% auto auto 50% !important;
  width: min(540px,calc(100vw - 32px)) !important;
  max-width: none !important;
  max-height: calc(100dvh - 32px);
  transform: translate(-50%,-50%);
  overflow: auto;
}
.cmh-delivery-office-banner:not([hidden]) { z-index: 10042; }
.cmh-delivery-office-banner[hidden] { display: none; }
.cmh-delivery-office-banner header {
  display: grid; grid-template-columns: 42px minmax(0,1fr) 30px; gap: 14px; padding: 22px 22px 15px; align-items: start;
}
.cmh-delivery-office-banner .cmh-banner-icon {
  display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px;
  background: #fdecea; color: #ae3027; font: 750 24px/1 Arial,sans-serif;
}
.cmh-delivery-office-banner h2, aside[aria-label="盘点复盘提醒"] > section > strong, #cmh-online-desktop-update > strong {
  margin: 1px 0 7px; font: 700 21px/1.3 "Microsoft YaHei UI","Microsoft YaHei",sans-serif; color: #142c45;
}
.cmh-delivery-office-banner p { margin: 0; color: #536981; overflow-wrap: anywhere; }
.cmh-delivery-office-banner .cmh-banner-dismiss {
  margin: -3px -3px 0 0; padding: 0; border: 0; border-radius: 6px; background: transparent;
  color: #536981; font: 22px/30px Arial,sans-serif; cursor: pointer;
}
.cmh-delivery-office-banner .cmh-banner-dismiss:hover { background: #edf2f7; }
.cmh-delivery-office-banner .cmh-banner-details {
  display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 14px; margin: 0 22px; padding: 14px 16px;
  border-radius: 9px; background: #f1f5f9; border: 1px solid #e5edf5;
}
.cmh-delivery-office-banner .cmh-banner-task { color: #142c45; font-size: 15px; font-weight: 650; overflow-wrap: anywhere; }
.cmh-delivery-office-banner .cmh-banner-number { margin-top: 4px; color: #526982; font: 12px/1.4 Consolas,monospace; }
.cmh-delivery-office-banner .cmh-banner-period {
  align-self: center; white-space: nowrap; padding: 4px 9px; border: 1px solid #cbdbea; border-radius: 5px;
  background: #fff; color: #395773; font-size: 12px;
}
.cmh-delivery-office-banner footer { display: flex; justify-content: flex-end; padding: 16px 22px 20px; }
.cmh-delivery-office-banner .cmh-banner-open, aside[aria-label="盘点复盘提醒"] > section > button:not([aria-label]), #cmh-desktop-runtime-refresh > button, #cmh-online-desktop-update > button {
  min-height: 36px; padding: 0 16px !important; border: 1px solid #20568f !important; border-radius: 7px !important;
  background: #20568f !important; color: #fff !important; font: 650 13px/34px "Microsoft YaHei UI","Microsoft YaHei",sans-serif !important;
  cursor: pointer;
}
.cmh-delivery-office-banner button:focus-visible { outline: 2px solid #286aac; outline-offset: 2px; }
aside[aria-label="盘点复盘提醒"] > section, #cmh-online-desktop-update, #cmh-pwa-update-status, #cmh-desktop-runtime-refresh { padding: 20px 22px !important; }
aside[aria-label="盘点复盘提醒"] > section { padding-right: 46px !important; }
aside[aria-label="盘点复盘提醒"] > section > p, #cmh-online-desktop-update > p {
  margin: 12px 0 !important; padding: 12px 14px; border-radius: 9px; background: #f1f5f9; overflow-wrap: anywhere;
}
#cmh-online-desktop-update > button { width: auto !important; }
#cmh-desktop-runtime-refresh > span { display: block; margin-bottom: 12px; }
#cmh-desktop-runtime-refresh > button { margin: 0 0 0 auto !important; display: block; }
@media(max-width:540px) {
  .cmh-delivery-office-banner header { padding: 17px 16px 13px; gap: 10px; }
  .cmh-delivery-office-banner .cmh-banner-details { margin-inline: 16px; padding: 12px; gap: 8px; }
  .cmh-delivery-office-banner footer { padding: 13px 16px 16px; }
}
/* Show one notification family at a time without resetting the underlying queues. */
body:has(.cmh-delivery-office-banner:not([hidden])) :is(aside[aria-label="盘点复盘提醒"], #cmh-desktop-runtime-refresh, #cmh-online-desktop-update, #cmh-pwa-update-status),
body:has(aside[aria-label="盘点复盘提醒"] > section) :is(#cmh-desktop-runtime-refresh, #cmh-online-desktop-update, #cmh-pwa-update-status),
body:has(#cmh-online-desktop-update) :is(#cmh-desktop-runtime-refresh, #cmh-pwa-update-status),
body:has(#cmh-desktop-runtime-refresh) #cmh-pwa-update-status { visibility: hidden; pointer-events: none; }
