@layer jp-responsive-shell {
  .rsp-cockpit-tasks {display:none}
  @media screen and (min-width:1024px) and (max-width:1439px) {
    #jp-native-root .q-page .q-overview > .n-stats {
      grid-column:1 / -1 !important;
      inline-size:100% !important;
      grid-template-columns:repeat(4,minmax(0,1fr)) !important;
      justify-self:stretch !important;
    }
    #jp-native-root .q-page .q-overview > .n-stats > .e-metric {
      grid-column:auto !important;
      grid-row:auto !important;
      inline-size:100% !important;
    }
  }
  @media screen and (min-width:768px) and (max-width:899px) {
    #jp-native-root .native-login {
      display:grid !important;
      grid-template-columns:minmax(0,420px) !important;
      align-content:center !important;
      justify-content:center !important;
      gap:24px !important;
      padding:64px 24px !important;
    }
    #jp-native-root .native-login > .login-brand {
      display:grid !important;
      grid-template-columns:56px 1fr;
      align-items:center;
      gap:4px 14px;
      justify-self:stretch;
      text-align:start;
    }
    #jp-native-root .native-login > .login-brand > img {
      grid-row:span 2;
      inline-size:56px !important;
      block-size:auto !important;
    }
    #jp-native-root .native-login > .login-brand > :is(h1,p) {
      margin:0 !important;
    }
    #jp-native-root .native-login > .login-card {
      inline-size:100% !important;
    }
    #jp-native-root .n-shell-header .n-brand small,
    #jp-native-root .topbar > .brand small {
      display:none !important;
    }
    #jp-native-root .n-shell-search > kbd {display:none !important}
    #jp-native-root .n-shell-search input:placeholder-shown {text-overflow:ellipsis}
    #jp-native-root .login-card .n-field > .e-password {
      display:block !important;
      inline-size:100%;
      padding-inline:0 !important;
      margin-inline:0 !important;
      text-indent:0 !important;
    }
    #jp-native-root .ops-products-overview [data-card-id="26-04"] .e-metric-value > span {
      white-space:nowrap !important;
    }
  }
  @media screen and (max-width:767px) {
    #jp-native-root :is(.n-shell-header>.n-brand,.topbar>.brand) {container:responsive-brand / inline-size}
    @container responsive-brand (max-width:85px) {
      #jp-native-root :is(.n-brand,.topbar>.brand)>span {display:none!important}
    }
    #jp-native-root .center-page-actions {
      display:flex!important;flex-wrap:wrap!important;align-items:stretch;min-width:0;gap:8px!important;
    }
    #jp-native-root .center-page-actions>.center-date-control {
      flex:1 1 max-content;max-inline-size:100%;min-inline-size:0!important;height:auto!important;
    }
    #jp-native-root .center-date-control>span {min-inline-size:0;white-space:normal!important;overflow-wrap:anywhere}
    #jp-native-root .center-page-actions>.center-export-control {
      flex:0 0 auto;width:auto!important;min-width:44px!important;min-height:44px!important;justify-content:center;
    }
    #jp-native-root .center-asof {flex:1 0 100%;max-width:100%;white-space:normal!important}
    #jp-native-root .cockpit-revenue {
      font-size:var(--font-size-body,14px);grid-template-columns:repeat(auto-fit,minmax(min(100%,9.75em),1fr))!important;grid-template-areas:none!important;
    }
    #jp-native-root .cockpit-revenue :is(.cockpit-primary-metric,.cp-profit-pair,.cockpit-revenue-details>.ec-metric-profit) {grid-area:auto!important;min-inline-size:0}
    #jp-native-root .cockpit-revenue-details>p {grid-area:auto!important;grid-column:1/-1!important}
    #jp-native-root .cockpit-revenue .cp-mobile-rate {white-space:normal!important;max-inline-size:100%}
    #jp-native-root .rsp-cockpit-tasks:not(:empty) {
      display:flex;flex-wrap:wrap;align-items:center;gap:4px 8px;
      margin:0 max(var(--layout-content-padding,16px),env(safe-area-inset-right)) 12px max(var(--layout-content-padding,16px),env(safe-area-inset-left));
    }
    .rsp-cockpit-tasks :is(button,a) {
      display:inline-flex;min-block-size:44px;align-items:center;gap:6px;padding:6px 10px;
      border:1px solid var(--color-border-default);border-radius:8px;background:var(--color-bg-card);
      color:var(--color-text-primary);font:inherit;font-size:var(--font-size-body-sm,13px);font-weight:600;text-decoration:none;
    }
    .rsp-cockpit-tasks button {color:var(--color-warning-ink);background:var(--color-warning-bg);border-color:var(--color-warning-light)}
    .rsp-cockpit-tasks :is(a,button):focus-visible {outline:2px solid var(--color-primary-500);outline-offset:2px}
    .rsp-cockpit-tasks :is(a,button):active {background:var(--color-primary-50)}
  }
  @media screen and (max-height:540px) and (max-width:1023px) {
    #jp-native-root :is(.n-nav,.center-shell>.sidebar) {max-block-size:calc(100dvh - var(--layout-header-height));overflow-y:auto!important;overscroll-behavior:contain}
    #jp-native-root :is(.n-top-popover,.n-search-results) {max-block-size:calc(100dvh - var(--layout-header-height) - 16px)!important;overflow-y:auto!important}
  }
  @media (any-pointer:coarse) {
    #jp-native-root :is(.n-sidebar-toggle,.mobile-menu,.jp-mobile-search-toggle,.n-icon-button,.top-tools>.icon-button,.shell-nav-group-toggle,.shell-nav-link) {min-block-size:44px!important}
    #jp-native-root :is(.n-sidebar-toggle,.mobile-menu,.jp-mobile-search-toggle,.n-icon-button,.top-tools>.icon-button) {min-inline-size:44px!important}
  }
}

/* The persistent workbench navigation must leave space for the next keyboard target. */
html:has(.mm-root > .mm-nav) {
  scroll-padding-block-end: calc(96px + env(safe-area-inset-bottom));
}
.mm-root:has(> .mm-nav) .mm-screen :is(a[href], button, input, select, textarea, [tabindex]) {
  scroll-margin-block: 10px;
}
.mm-screen input[type="month"]:is(:focus, :focus-within) {
  outline: 2px solid var(--color-primary-500, #2563eb) !important;
  outline-offset: 2px;
}

/* Preserve the reading position while the initial rows and PDF pages arrive. */
@media screen and (min-width: 768px) {
  html:has(.mm-root) { scrollbar-gutter: stable; }
  .mobile-inventory:has(> .mm-load[data-read-state="loading"]):not(:has(> article)) > .mm-note { visibility: hidden; }
  .mobile-document > .mm-load[data-read-state="loading"],
  .quality-pdf:has(> [role="status"]) > .pdf-pages { min-block-size: 100dvh; }
  .quality-pdf > p[role="status"] {
    position: absolute;
    z-index: 1;
    padding: .25rem .5rem;
    background: var(--color-bg-card);
  }
  .quality-pdf article:has(canvas:not([width])) { min-block-size: 100dvh; }
  .quality-pdf canvas:not([width]) + footer { visibility: hidden; }
}

/* Keep the current task at the top as modules and table rows finish reading. */
@media screen {
  #jp-native-root > div:has(> .n-route-loading) {
    display: flow-root;
    min-block-size: 100dvh;
  }
  .fulfillment-delivery.ops-workspace,
  .fulfillment-outbound.ops-workspace { align-content: start !important; }
  #jp-native-root :is(.delivery-ready .ops-record-panel, .fulfillment-outbound > .n-panel) {
    --report-list-space: clamp(9rem, 13vh, 11rem);
  }
  #jp-native-root :is(.delivery-ready .ops-record-panel, .fulfillment-outbound > .n-panel) > :is(.n-table-wrap, p[role="status"]) {
    min-block-size: var(--report-list-space);
    box-sizing: border-box;
  }
  #jp-native-root :is(.delivery-ready .ops-record-panel, .fulfillment-outbound > .n-panel) > p[role="status"] {
    display: grid;
    align-content: center;
    gap: 8px;
    margin: 0;
    padding: 16px;
    color: var(--color-text-secondary);
    background: var(--color-bg-page);
    border-radius: 8px;
  }
  #jp-native-root :is(.delivery-ready .ops-record-panel, .fulfillment-outbound > .n-panel) > p[role="status"]::after {
    content: "";
    inline-size: min(72%, 24rem);
    block-size: 7px;
    border-radius: 4px;
    background: var(--state-skeleton-light, var(--color-border-default));
  }
  .mobile-outbound .outbound-inline-read {
    margin: 0;
    padding: 8px 12px;
    color: var(--color-text-secondary);
  }
  #jp-native-root .ops-record-panel:is([aria-busy="true"], :has(> p[role="alert"])) > .n-pagination {
    visibility: hidden;
  }
}
@media screen and (min-width: 768px) {
  .mm-root:has(.outbound-entry-loading) { --employee-canvas: min(100%,104rem); }
}
@media screen and (max-width: 767px) {
  #jp-native-root .fulfillment-outbound .ops-outbound-list-heading > p[aria-live="polite"] {
    display: block !important;
    flex-basis: 100%;
    min-inline-size: 0;
    margin: 0;
  }
  #jp-native-root :is(.delivery-ready .ops-record-panel, .fulfillment-outbound > .n-panel) {
    --report-list-space: 8.5rem;
  }
}
@media screen and (max-width: 374px) {
  #jp-native-root :is(.fulfillment-outbound,.fulfillment-delivery) .n-page-title-actions .n-actions {
    display: grid !important;
    width: 100%;
    grid-template-columns: 1fr .8fr 1.1fr;
    gap: 6px !important;
  }
  #jp-native-root :is(.fulfillment-outbound,.fulfillment-delivery) .n-page-title-actions .n-actions > :is(a,button) {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-inline-size: 0 !important;
    min-block-size: 44px;
    padding-inline: 4px !important;
    white-space: normal !important;
    line-height: 1.35;
    text-align: center;
  }
  #jp-native-root .fulfillment-delivery > .fulfillment-overview-toggle { min-block-size: 68px; }
  #jp-native-root .fulfillment-delivery .n-page-title-actions .n-actions {
    grid-template-columns: 1.25fr .7fr 1.15fr;
  }
  #jp-native-root .fulfillment-delivery .n-page-title-actions .n-actions > :is(a,button) {
    padding-inline: 2px !important;
    font-size: 13px;
  }
  @layer jp-responsive-shell {
    #jp-native-root .fulfillment-outbound > .n-stats {
      display: grid !important;
      grid-template-columns: repeat(2, minmax(0,1fr)) !important;
    }
    #jp-native-root .fulfillment-outbound > .n-stats > .n-metric { grid-column: auto !important; min-inline-size: 0; }
  }
}

.phone-location,.phone-back,.phone-form-directory, .phone-page-title, .phone-destination, #workspace-phone-nav, #phone-portal-nav {display:none}
html:not([data-phone-wayfinding]) :is(.phone-back, .phone-page-title, .phone-destination, #workspace-phone-nav) {display:none!important}
@media screen and (max-width:1023px) {
  @layer jp-responsive-shell {
    html[data-phone-wayfinding] #jp-native-root :is(.n-shell-header,.topbar)[data-phone-header] > :is(.n-brand,.brand,.mobile-menu,.n-sidebar-toggle) {display:none!important}
  }
  html[data-phone-wayfinding] [data-phone-header] > .phone-location {
    display:flex;flex:1 1 0%;min-width:0;min-height:44px;flex-direction:column;align-items:flex-start;justify-content:center;position:relative;
  }
  html[data-phone-wayfinding] .phone-location > .phone-back {
    display:inline-flex!important;align-items:center;justify-content:flex-start;gap:3px;flex:none;max-width:100%;
    min-width:44px;min-height:20px!important;height:20px!important;padding:0!important;border:0!important;border-radius:5px;
    background:transparent!important;color:var(--color-link,#1d4ed8)!important;box-shadow:none!important;
    font:inherit;font-size:12px!important;font-weight:500!important;
  }
  .phone-back::after {content:'';position:absolute;inset:0;min-height:44px;}
  .phone-back > span {overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
  html[data-phone-wayfinding] .phone-location > .phone-page-title {
    display:block!important;min-width:0;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;
    color:var(--color-text-primary,#0f172a);font-size:15px;font-weight:600;line-height:21px;
  }
  html[data-phone-wayfinding] [data-phone-bar] > :not(.phone-destination) {display:none!important}
  html[data-phone-wayfinding] [data-phone-bar] > .phone-destination {
    display:flex!important;flex:1 1 0;flex-direction:column;gap:3px;align-items:center;justify-content:center;
    min-width:0;min-height:46px!important;padding:4px 0!important;box-sizing:border-box;
    text-decoration:none!important;background:transparent!important;border:0!important;color:var(--color-text-secondary,var(--muted,#526279))!important;
    font:inherit;font-size:12px!important;font-weight:500!important;line-height:1.35!important;
  }
  html[data-phone-wayfinding] [data-phone-bar] > [aria-current] {
    color:var(--color-link,var(--brand-ink,#1d4ed8))!important;font-weight:650!important;
  }
  .phone-nav-glyph {display:inline-block;flex:none;width:21px;height:21px;background-color:currentColor;
    -webkit-mask:var(--phone-glyph) center / contain no-repeat;mask:var(--phone-glyph) center / contain no-repeat;}
  .phone-back .phone-nav-glyph {width:16px;height:16px}
  html[data-phone-wayfinding] :is(.phone-back,.phone-destination):focus-visible {outline:2px solid var(--color-focus,var(--ring));outline-offset:-2px}
  html[data-phone-wayfinding] :is(#workspace-phone-nav,#phone-portal-nav):not([hidden]) {display:flex;position:fixed;z-index:10;inset:auto 0 0;
    background:var(--surface,var(--viz-surface-page,#fff));border-top:1px solid var(--line,var(--viz-surface-border,#dbe2ea));padding:4px max(8px,env(safe-area-inset-right)) max(5px,env(safe-area-inset-bottom)) max(8px,env(safe-area-inset-left));}
  html[data-phone-wayfinding]:has(#workspace-phone-nav) body {padding-bottom:calc(70px + env(safe-area-inset-bottom));}
}
@media screen and (max-width:767px) {
  html[data-phone-wayfinding] #jp-native-root:has(.jp-entry-mobile-steps,.ops-sales-steps) .phone-form-directory {
    display:inline-flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;min-width:44px;min-height:44px;
    font-size:12px;line-height:1.2;text-decoration:none;color:var(--color-link,#1d4ed8);
  }
}
@media screen and (min-width:768px) and (max-width:1023px) {
  @layer jp-responsive-shell {
    html[data-phone-wayfinding] #jp-native-root :is(.jp-mobile-tabs,.mobile-bottom-nav)[data-phone-bar] {
      display:flex!important;position:fixed!important;inset:auto 0 0!important;z-index:35;
      padding:4px max(8px,env(safe-area-inset-right)) max(5px,env(safe-area-inset-bottom)) max(8px,env(safe-area-inset-left));
      background:var(--viz-surface-page,#fff);border-top:1px solid var(--viz-surface-border,#dbe2ea);
    }
    html[data-phone-wayfinding] #jp-native-root :is(.n-main,.main-content) {padding-bottom:calc(72px + env(safe-area-inset-bottom))!important;}
  }
}

@layer jp-responsive-forms {
  @media screen {
    dialog.jp-vue-dialog[open][data-responsive-ime-sheet] {
      inset-block-start:calc(var(--responsive-visual-top) + 4px)!important;
      inset-block-end:auto!important;
      margin-block:0!important;
      max-block-size:calc(var(--responsive-visual-height) - 8px)!important;
      box-sizing:border-box;
    }
  }
  @media screen and (max-height:520px) and (max-width:1023px) {
    dialog.jp-vue-dialog[open] .v-dialog-head {padding-block:6px!important;min-block-size:42px!important}
    dialog.jp-vue-dialog[open] .v-dialog-footer {padding-block:4px max(4px,env(safe-area-inset-bottom,0px))!important;min-block-size:44px!important}
    dialog.jp-vue-dialog[open] .v-dialog-body {min-block-size:0;scroll-padding-block:8px;overscroll-behavior-y:contain}
  }
  @media screen and (max-width:1023px) {
    dialog.jp-vue-dialog .v-dialog-body :is(input,textarea,select),.ops-workspace :is(input,textarea,select) {scroll-margin-block:8px}
  }
  @media screen and (max-width:767px) {
    /* The document action bar owns the bottom edge while entering a sale or
       purchase. The same destinations remain in the header's menu. */
    #jp-native-root:has(.ops-sales-steps,.jp-entry-mobile-steps) .jp-mobile-tabs {
      display: none !important;
    }
    #jp-native-root :is(.ops-sales-steps,.jp-entry-mobile-steps) {
      align-items:stretch!important;
    }
    #jp-native-root :is(.ops-sales-steps,.jp-entry-mobile-steps)>button {
      white-space:normal!important;
      text-wrap:balance;
      overflow-wrap:anywhere;
      block-size:auto!important;
    }
    #jp-native-root :is(.ops-sales-dock,.jp-entry-mobile-dock) {
      display:flex!important;
      flex-wrap:wrap;
    }
    #jp-native-root :is(.ops-sales-dock,.jp-entry-mobile-dock)>:is(div,button) {
      flex:1 0 max-content!important;
      max-inline-size:100%!important;
      box-sizing:border-box;
    }
    #jp-native-root .sale-cart .mixed-quantity label {display:grid!important;grid-template-columns:minmax(0,1fr) auto!important;align-items:center;gap:4px!important}
    #jp-native-root .sale-cart .mixed-quantity label>span {position:static!important;transform:none!important;white-space:nowrap}
    #jp-native-root .sale-cart .mixed-quantity label>input {box-sizing:border-box;inline-size:100%!important;min-inline-size:0!important;padding-inline:4px!important;text-align:center!important}
  }
}

@media (max-width: 767px) {
  .mall-decoration .n-toolbar [data-iso],
  .mall-decoration .history-row [data-iso] {
    word-break: keep-all;
    overflow-wrap: normal;
  }
}

@layer jp-responsive-lists {
  @media screen and (max-width:767px) {
    #jp-native-root .ops-sales-recent .n-table {
      table-layout:auto !important;
      min-inline-size:740px !important;
    }
    #jp-native-root .ops-sales-recent .n-table :is(th,td) {
      white-space:nowrap !important;
      word-break:normal !important;
      overflow-wrap:normal !important;
    }
    #jp-native-root .ops-sales-recent .n-table td:nth-child(2) {
      min-inline-size:12em;
      max-inline-size:18em;
      white-space:normal !important;
      overflow-wrap:anywhere !important;
    }
    #jp-native-root .q-filters.jpl-filter-sheet:popover-open>.q-filter-extra.is-open {
      grid-column:1/-1!important;
      display:grid;
      grid-template-columns:repeat(2,minmax(0,1fr));
      width:100%;
      min-width:0;
    }
    @media (max-width:374px) {
      #jp-native-root .q-filters.jpl-filter-sheet:popover-open>.q-filter-extra>.n-field {grid-column:1/-1!important}
    }
    #jp-native-root .partner-query.jpl-filter-sheet:popover-open {
      grid-template-columns:repeat(2,minmax(0,1fr))!important;
      grid-auto-flow:row!important;
    }
    #jp-native-root .partner-query.jpl-filter-sheet:popover-open>.jpl-sheet-heading,
    #jp-native-root .partner-query.jpl-filter-sheet:popover-open>:is(input,select) {
      grid-column:1/-1!important;
      grid-row:auto!important;
      min-inline-size:0!important;
      inline-size:100%!important;
    }
    #jp-native-root .partner-query.jpl-filter-sheet:popover-open>.partner-filter-toggle {display:none!important}
    #jp-native-root .partner-query.jpl-filter-sheet:popover-open>button:is(.partner-query-submit,.partner-query-extra) {
      grid-row:auto!important;
      grid-column:auto!important;
      inline-size:100%!important;
      min-block-size:44px!important;
      white-space:nowrap;
    }
    .inv-detail-totals {
      display:flex!important;
      flex-wrap:wrap;
    }
    .inv-detail-totals>div {
      flex:1 0 max-content;
      max-inline-size:100%;
      box-sizing:border-box;
    }
  }
  @media screen and (max-width:480px) {
    .inv-detail-totals>div {
      display:flex!important;
      flex:1 0 100%!important;
      flex-direction:row!important;
      flex-wrap:wrap;
      align-items:baseline;
      justify-content:space-between!important;
      min-block-size:0!important;
      gap:4px 12px;
      padding:12px 16px!important;
    }
    .inv-detail-totals>div>strong {white-space:nowrap;overflow-wrap:normal;}
  }
  @media screen and (max-width:767px) {
    #jp-native-root .fulfillment-delivery>.delivery-summary:not(.is-expanded),
    #jp-native-root .ops-compact-overview:not(.is-open)>.n-stats {display:none!important;}
    #jp-native-root .fulfillment-delivery>.fulfillment-overview-toggle {text-wrap:balance;}
    #jp-native-root .fulfillment-delivery .delivery-tab-label {
      word-break:keep-all;
      overflow-wrap:normal;
    }
  }
  @media screen and (max-width:374px) {
    #jp-native-root .fulfillment-delivery>nav[aria-label="配送工作区"]>button {
      padding-inline:4px;
    }
  }
  @media screen and (min-width:1440px) {
    #jp-native-root form:is(.n-toolbar,.v-filterbar):not(:popover-open)>input:is(:not([type]),[type=text],[type=search]),
    .report-product-picker>.report-picker-tools>input:is(:not([type]),[type=text],[type=search]),
    #jp-native-root .pickup-portal>.search {
      max-inline-size:36rem!important;
    }
    #jp-native-root :is(.v-ledger-filter,.partner-query,.q-workspace .n-toolbar):not(:popover-open) {
      max-inline-size:96rem!important;justify-content:flex-start;
    }
    .mm-root .mm-page>.mm-search {max-inline-size:46rem!important;inline-size:100%;}
    .mm-root .mm-page :is(.records-date>input,.outbound-filters>.mm-field:has(input[type=date])) {
      max-inline-size:16rem!important;
    }
    #jp-native-root .ops-outbound-filters {max-inline-size:102rem!important;}
    #jp-native-root .logs-query>.n-toolbar>input[type=search],
    #jp-native-root .customers-workspace .customer-filters:not(:popover-open)>input:not([list]) {
      max-inline-size:32rem!important;flex:1 1 24rem!important;
    }
    #jp-native-root .customers-workspace .customer-filters:not(:popover-open)>input[list] {
      max-inline-size:18rem!important;flex:1 1 14rem!important;
    }
    .mm-page:is(.mobile-records,.mobile-outbound) .mm-card:has(>.mm-list-line) {
      display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 clamp(24px,3vw,64px);
    }
    .mm-page:is(.mobile-records,.mobile-outbound) .mm-card:has(>.mm-list-line)>:not(.mm-list-line) {grid-column:1/-1;}
    .mm-page:is(.mobile-records,.mobile-outbound) .mm-card :is(.mm-list-line.mm-between,.mm-list-line>.mm-between) {
      display:grid!important;grid-template-columns:minmax(0,12rem) minmax(0,1fr);
      justify-content:start!important;align-items:baseline;gap:8px 20px;
    }
    .mm-page:is(.mobile-records,.mobile-outbound) .mm-card :is(.mm-list-line.mm-between,.mm-list-line>.mm-between)>:nth-child(2) {
      justify-self:start;text-align:start!important;overflow-wrap:anywhere;
    }
  }
  @media screen {
    .rsp-list-scroll {display:flex;align-items:center;gap:6px;margin:4px 0 8px;color:var(--color-text-secondary,#475569);font-size:12px;line-height:1.5;}
    [data-dt-scroll][tabindex="0"]:focus-visible {outline:2px solid var(--color-primary-500,#2563eb)!important;outline-offset:-2px;}
    .customer-filters.jpl-filter-sheet :is([data-rsp-desktop-action],.customer-add) {display:none!important;}
    .customer-filters.jpl-filter-sheet:popover-open > .customer-search-submit {
      grid-row:auto!important;grid-column:1!important;order:1;min-height:44px;
    }
    .customer-filters.jpl-filter-sheet:popover-open > button.customer-filter-extra:not([data-rsp-desktop-action]) {
      grid-row:auto!important;grid-column:2!important;order:1;min-height:44px;
    }
    .customer-filters.jpl-filter-sheet:popover-open > input[list] {grid-column:1/-1!important;}
    @media(min-width:768px){
      .jpl-filter-sheet:popover-open {
        display:grid!important;position:fixed!important;inset:50% auto auto 50%!important;transform:translate(-50%,-50%)!important;
        grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:14px 16px!important;align-content:start;
        box-sizing:border-box;width:min(620px,calc(100vw - 40px))!important;max-height:calc(100dvh - 56px)!important;height:auto!important;
        margin:0!important;padding:20px!important;overflow:auto!important;background:var(--color-bg-card,#fff)!important;color:var(--color-text-primary,#0f172a)!important;
        border:1px solid var(--color-border-default,#e2e8f0)!important;border-radius:16px!important;box-shadow:0 16px 48px rgb(15 23 42 / 16%)!important;
      }
      .jpl-filter-sheet::backdrop {background:rgb(15 23 42 / 32%);}
      .jpl-filter-sheet>.jpl-sheet-heading {display:flex!important;grid-column:1/-1;align-items:center;justify-content:space-between;}
      .jpl-filter-sheet .jpl-sheet-heading>button {min-width:44px;min-height:44px;}
      .jpl-filter-sheet .customer-filter-toggle {display:none!important;}
    }
  }
}

@layer jp-responsive-shell {
  @media screen and (max-width:767px), screen and (pointer:coarse) {
    .center-detail :is(.button,.primary-button) {
      min-inline-size:44px !important;
      min-block-size:44px !important;
    }
  }
  @media screen and (max-width:359px) {
    .jp-sample-detail dl {
      display:grid !important;
      grid-template-columns:minmax(0,1fr) !important;
      gap:4px !important;
    }
    .jp-sample-detail dl > :is(dt,dd) {
      grid-column:1 !important;
      margin:0 !important;
    }
    .jp-sample-detail dl > dt:not(:first-child) {
      margin-block-start:10px !important;
    }
    .jp-sample-detail .jp-detail-number {
      white-space:nowrap !important;
    }
    #jp-native-root .q-page .n-panel-head:has(> div:first-child > h2 + p):has(> .n-actions > button) {
      display:grid !important;
      grid-template-columns:minmax(0,1fr) !important;
      justify-items:stretch !important;
      gap:8px !important;
    }
    #jp-native-root .q-page .n-panel-head:has(> div:first-child > h2 + p):has(> .n-actions > button) > div {
      grid-column:1 !important;
      grid-row:auto !important;
    }
    #jp-native-root .q-page .n-panel-head:has(> .n-actions > button) > div:first-child:has(> h2 + p) {
      display:block !important;
    }
  }
  @media screen and (max-width:479px) {
    #jp-native-root .center-shell .ov-calendar-panel > .ov-period-summary {
      background:transparent !important;
      border:0 !important;
      box-shadow:none !important;
      padding:0 !important;
      margin-block:0 16px !important;
    }
    #jp-native-root .customers-workspace .customer-development-values {
      grid-template-columns:minmax(0,1fr) !important;
      gap:8px !important;
    }
    #jp-native-root .customers-workspace .customer-development-values > article {
      display:grid !important;
      grid-template-columns:minmax(0,1fr) auto !important;
      align-items:center !important;
      gap:12px !important;
      min-height:54px !important;
      padding:12px !important;
    }
    #jp-native-root .customers-workspace .customer-development-values > article > span {
      display:grid !important;
      grid-template-columns:18px minmax(0,1fr);
      align-items:center;
      justify-self:stretch !important;
      text-align:start !important;
      gap:8px !important;
      grid-area:1 / 1 !important;
      padding:0 !important;
      min-height:0 !important;
    }
    #jp-native-root .customers-workspace .customer-development-values > article > span::before {
      content:none !important;
    }
    #jp-native-root .customers-workspace .customer-development-values > article > span::after {
      grid-area:1 / 1;
      position:static !important;
      transform:none !important;
      width:18px !important;
      height:18px !important;
    }
    #jp-native-root .customers-workspace .customer-development-values > article > strong {
      grid-area:1 / 2 !important;
      font-size:var(--font-size-h2,22px) !important;
    }
  }
}
@media screen {
  /* Axis captions follow the data markers in SVG paint order. Leave the
     underlying value's touch target available when the captions overlap. */
  .p-payroll-comparison .p-payroll-category { pointer-events:none; }
  .p-payroll-comparison .p-payroll-plot-scroll>svg :is(.p-payroll-grid text,.p-payroll-category,.p-payroll-point-value) {
    font-size:var(--jp-payroll-label-size,15px)!important;
  }
  #jp-native-root .mm-photo.atlas {
    background-image: url('/static/mobile83/food-atlas-512.webp');
    background-image: image-set(
      url('/static/mobile83/food-atlas-512.webp') 1x,
      url('/static/mobile83/food-atlas-1024.webp') 2x
    );
  }
}

@media screen and (max-width:767px) {
  /* Keep the day and weekday grids on the same local scroll surface.
     The adjacent list toggle offers a single-column reading alternative. */
  .center-shell .ov-calendar-body:not(.ov-list-mode) {
    max-inline-size:100%;
    min-inline-size:0;
    overflow-x:auto;
    overscroll-behavior-x:contain;
    scrollbar-width:thin;
  }
  .center-shell .ov-calendar-body:not(.ov-list-mode) > :is(.ov-weekdays,.ov-days) {
    min-inline-size:calc(7 * 44px + 6 * 4px) !important;
  }
  @media (max-width:374px) {
    .center-shell .ov-funds .ov-panel-heading {
      display:grid !important; grid-template-columns:minmax(0,1fr) auto;
      block-size:auto !important; gap:4px 8px; align-items:center;
    }
    .center-shell .ov-funds .ov-panel-heading > h2 { grid-area:1 / 1; }
    .center-shell .ov-funds .ov-panel-heading > .ov-section-link { grid-area:1 / 2; }
    .center-shell .ov-funds .ov-panel-heading > span { grid-area:2 / 1 / 3 / -1; justify-self:start; margin-inline-start:0; }
  }
  #jp-native-root .center-shell .sf-kpis.sfm-v7 .sfm-pair {
    display:flex !important;
    flex-wrap:wrap;
  }
  #jp-native-root .center-shell .sf-kpis.sfm-v7 .sfm-pair > .sfm-card {
    container-type:normal !important;
    flex:1 0 calc(50% - 4px);
    min-inline-size:min-content !important;
    max-inline-size:100%;
  }
  #jp-native-root .center-shell .sfm-pair .sfm-value {
    min-inline-size:max-content !important;
  }
  #jp-native-root .center-shell .sfm-value > data { flex:none; inline-size:max-content !important; }
  #jp-native-root .center-shell .st-channel-list > button {
    grid-template-columns:auto minmax(0,1fr) max-content !important;
  }
  #jp-native-root .center-shell .st-category-list .st-category-row {
    grid-template-columns:auto minmax(0,1fr) max-content max-content !important;
  }
}
@media screen and (max-width:359px) {
  #jp-native-root .center-shell .sf-kpis.sfm-v7 .sfm-primary .sfm-value {
    flex-wrap:wrap !important;
    min-inline-size:0 !important;
    row-gap:2px;
  }
}

@media screen and (max-width:767px) {
  #jp-native-root .ops-workspace.sales-entry.sales-entry[data-mobile-step=catalog] .ops-sales-catalog > .catalog-grid {
    row-gap: var(--space-3, 12px);
  }
  html[data-theme="dark"] #jp-native-root .ops-workspace.sales-entry > .ops-sales-dock {
    background:var(--viz-surface-module) !important;
    border-block-start-color:var(--color-border-default);
  }
  html[data-theme="dark"] #jp-native-root .sales-entry .catalog-photo-dialog .catalog-photo-content header button,
  html[data-theme="dark"] #jp-native-root .sales-entry .cart-panel .n-error button {
    color:var(--color-primary-200) !important;
  }
  #jp-native-root .ops-workspace.sales-entry.sales-entry[data-mobile-step=catalog] .ops-sales-catalog .catalog-card:has(.catalog-photo) {
    --catalog-photo-size: clamp(106px, 38cqi, 152px);
  }
  #jp-native-root .ops-workspace.sales-entry.sales-entry[data-mobile-step=catalog] .ops-sales-catalog .catalog-card > .card-info > .catalog-photo {
    height: auto;
    aspect-ratio: 4 / 5;
    grid-template: minmax(0,1fr) / minmax(0,1fr);
  }
}

@media screen and (max-width:480px) {
  #jp-native-root .ops-workspace.sales-entry.sales-entry[data-mobile-step=catalog] .ops-sales-catalog .catalog-card > .card-info > :is(.catalog-photo,.catalog-photo-missing) { grid-row:1 / 7 }
  #jp-native-root .ops-workspace.sales-entry.sales-entry[data-mobile-step=catalog] .ops-sales-catalog .catalog-card > .card-info > div > strong { grid-area:3 / 2 / 4 / 4 }
  #jp-native-root .ops-workspace.sales-entry.sales-entry[data-mobile-step=catalog] .ops-sales-catalog .catalog-card > .card-info > div > small:last-of-type { grid-area:4 / 2 / 5 / 4; text-align:left }
  #jp-native-root .ops-workspace.sales-entry.sales-entry[data-mobile-step=catalog] .ops-sales-catalog .catalog-card > .stock { grid-row:5 }
  #jp-native-root .ops-workspace.sales-entry.sales-entry[data-mobile-step=catalog] .ops-sales-catalog .catalog-card > small { grid-row:6 }
  #jp-native-root .ops-workspace.sales-entry.sales-entry[data-mobile-step=catalog] .ops-sales-catalog .catalog-card > footer {
    grid-area:7 / 1 / 8 / -1;
    display:flex; align-items:center; justify-content:space-between; gap:12px; margin-top:3px;
  }
}

@layer jp-responsive-shell {
  @media screen and (max-width:374px) {
    #jp-native-root .mobile-home .home-apps a {
      display:flex !important;
      flex-flow:column nowrap !important;
      align-items:flex-start !important;
      justify-content:flex-start !important;
      gap:6px !important;
    }
    #jp-native-root .mobile-home .home-apps a > :is(b,small,strong) {
      display:block;
      margin:0 !important;
      text-align:start;
    }
  }
}

:root #jp-native-root .mobile-home .mobile-brand > .mm-apps-entry {
  display: none;
}
@media screen and (max-width: 1023px) and (pointer: coarse) {
  :root #jp-native-root .mobile-home .mobile-brand > .mm-apps-entry {
    display: inline-grid;
    place-items: center;
    flex: 0 0 44px;
    inline-size: 44px;
    block-size: 44px;
    color: var(--viz-text-secondary, #475569);
    background: var(--viz-surface-page, white);
    border: 1px solid var(--viz-surface-border, #e2e8f0);
    border-radius: 12px;
  }
  .mm-apps-entry > span {
    width: 20px;
    height: 20px;
    background: currentColor;
    mask: url('/static/icon-system/glyphs/menu.svg') center / contain no-repeat;
  }
  :root #jp-native-root .mobile-home:has(.home-view-tabs a[aria-current="page"][href$="view=apps"]) .mobile-brand > .mm-apps-entry {
    display: none;
  }
  #jp-native-root .mobile-home .mobile-brand > .mm-apps-entry:active {
    color: var(--viz-action-fill, #2563eb);
    background: var(--viz-surface-selection, #eff6ff);
  }
  .mm-apps-entry:focus-visible {
    outline: 2px solid var(--viz-action-fill, #2563eb);
    outline-offset: 2px;
  }
}


/* Side panels respond to their own reading width even on a large display. */
@layer jp-responsive-shell {
  @media screen {
    #jp-native-root .customers-workspace .customer-development {
      container: customer-summary / inline-size !important;
      min-inline-size: 0;
    }
    @container customer-summary (width > 42rem) {
      #jp-native-root .customer-development-values > article {
        display: grid !important;
        grid-template-rows: minmax(2.75rem, 1fr) auto !important;
        justify-items: stretch !important;
        align-content: start !important;
        row-gap: 8px !important;
      }
      #jp-native-root .customer-development-values > article > span {
        justify-self: stretch !important;
        text-align: start !important;
        padding-inline-start: 36px !important;
        font-size: min(1rem, 16px) !important;
      }
      #jp-native-root .customer-development-values > article > strong {
        justify-self: start !important;
        align-self: start !important;
      }
    }
    @container customer-summary (max-width: 42rem) {
      #jp-native-root .customers-workspace .customer-development-values {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) !important;
        gap: 8px !important;
        padding-block: 8px 0 !important;
      }
      #jp-native-root .customers-workspace .customer-development-values > article {
        grid-column: 1 !important;
        display: grid !important;
        grid-template: auto / minmax(0, 1fr) auto !important;
        align-items: center !important;
        align-content: center !important;
        justify-items: stretch !important;
        gap: 12px !important;
        min-height: 52px !important;
        padding: 10px 16px !important;
      }
      #jp-native-root .customers-workspace .customer-development-values > article > span {
        grid-area: 1 / 1 !important;
        display: block !important;
        justify-self: stretch !important;
        text-align: start !important;
        padding: 0 !important;
        font-size: var(--font-size-body, 14px) !important;
        line-height: 1.5 !important;
      }
      #jp-native-root .customers-workspace .customer-development-values > article > span::before,
      #jp-native-root .customers-workspace .customer-development-values > article > span::after {
        content: none !important;
      }
      #jp-native-root .customers-workspace .customer-development-values > article > strong {
        grid-area: 1 / 2 !important;
        align-self: center !important;
        justify-self: end !important;
        text-align: end !important;
        font-size: var(--font-size-h2, 22px) !important;
        line-height: 1.25 !important;
      }
    }

    .purchase-detail-finish { container: purchase-facts / inline-size; }
    @container purchase-facts (max-width: 62rem) {
      .purchase-detail-finish .pd-detail-keyfacts {
        grid-template-columns: repeat(auto-fit, minmax(min(100%, 12rem), 1fr)) !important;
        gap: 12px 16px !important;
      }
      .purchase-detail-finish .pd-detail-keyfacts > div {
        display: grid !important;
        grid-template: auto auto / auto minmax(0, 1fr) !important;
        gap: 2px 8px !important;
        align-items: center !important;
      }
      .pd-detail-keyfacts .pd-fact-icon { grid-area: 1 / 1 / 3 / 2; }
      .pd-detail-keyfacts dt { grid-area: 1 / 2; }
      .purchase-detail-finish .pd-detail-keyfacts dd {
        grid-area: 2 / 2;
        white-space: normal !important;
        overflow-wrap: anywhere;
      }
    }

    #jp-native-root .cm-matrix-panel { container: customer-matrix / inline-size; }
    @media (min-width: 768px) {
      @container customer-matrix (max-width: 72rem) {
        #jp-native-root .cm-type-label {
          display: grid !important;
          grid-template: auto auto / 20px minmax(0, 1fr) !important;
          align-content: center;
          gap: 2px 6px !important;
          padding-inline: 8px !important;
        }
        #jp-native-root .cm-type-label .icon {width: 20px; height: 20px;}
        #jp-native-root .cm-type-label > b {grid-column: 2; overflow-wrap: anywhere;}
        #jp-native-root .cm-type-label > span {grid-column: 2; width: auto; margin: 0;}
      }
    }

    #jp-native-root .mall-editor > .library { container: mall-library / inline-size; }
    @container mall-library (max-width: 19rem) {
      #jp-native-root .mall-editor > .library > button.component-add {
        grid-column: 1 / -1 !important;
        display: flex !important;
        align-items: center !important;
        justify-content: flex-start !important;
        gap: 12px !important;
        padding: 8px 12px !important;
        min-height: 44px !important;
      }
    }

    #jp-native-root .catalog-layout > .p-stack > .p-cards {
      display: grid !important;
      grid-template-columns: repeat(auto-fit, minmax(min(100%, 12rem), 1fr)) !important;
    }
    #jp-native-root .adjustment-support .n-actions {
      display: flex !important;
      flex-flow: row wrap !important;
      justify-content: flex-start !important;
      gap: 8px !important;
    }
    #jp-native-root .adjustment-support .n-actions > button {
      width: auto !important;
      max-width: 100%;
      flex: 0 1 auto !important;
      min-height: 44px;
    }

    #jp-native-root .ov-risks { container: overview-risks / inline-size; }
    @container overview-risks (max-width: 30rem) {
      #jp-native-root .ov-risk-content { min-inline-size: 0; flex: 1; }
      #jp-native-root .ov-risk-content > span {
        display: flex !important;
        flex-wrap: wrap !important;
        align-items: baseline !important;
        gap: 2px 8px !important;
      }
      #jp-native-root .ov-risk-content > span > strong { white-space: nowrap; }
    }

    .center-shell .ab-stock { container: assistant-stock / inline-size; }
    @container assistant-stock (max-width: 58rem) {
      #jp-native-root .ab-stock-grid {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) !important;
        height: auto !important;
      }
      #jp-native-root .ab-stock-grid > .ab-priority { height: auto !important; }
    }
  }
}

@layer jp-layout-business {
  @media screen and (max-width: 767px) {
    #jp-native-root .mm-root:has(.mm-way-tabs) .mobile-outbound > .mm-actions:not(.goods-picker-actions) {
      bottom: calc(76px + env(safe-area-inset-bottom,0px)) !important;
    }
    #jp-native-root .mm-root .mobile-outbound > p.mm-error:has(button) { display:grid !important; justify-items:start; row-gap:8px; line-height:1.6; }
    #jp-native-root .mobile-outbound > .mm-error button { min-height:44px; margin:0; }
    #jp-native-root .mobile-outbound .report-list-tools {
      display:flex; align-items:center; gap:6px; flex-wrap:wrap; margin-block:4px 8px;
    }
    #jp-native-root .mobile-outbound .report-list-tools > small {
      flex:1 1 74px; min-width:0; font-size:13px; color:var(--color-text-secondary);
    }
    #jp-native-root .mobile-outbound .report-list-tools > button {
      min-height:44px; padding-inline:9px; font-size:13px; font-weight:550;
      color:var(--color-text-body); background:transparent; border-color:transparent; box-shadow:none;
    }
    #jp-native-root .mobile-outbound .report-list-tools > button:is([aria-expanded=true],[aria-pressed=true]) {
      color:var(--color-selected-ink); background:var(--color-bg-card); border-color:var(--color-border-default);
    }
    #jp-native-root .mobile-outbound .report-filter-options {
      display:grid; gap:8px; padding:10px 12px 12px; margin-block:0 12px;
      border:1px solid var(--color-border-default); border-radius:10px; background:var(--color-bg-card);
    }
    #jp-native-root .mobile-outbound .report-filter-options[hidden] { display:none !important; }
    #jp-native-root .mobile-outbound .report-batch-hint {margin:4px 0 0; color:var(--color-text-secondary); font-size:13px;}
    #jp-native-root .mobile-outbound .report-list-heading {
      display: flex; align-items: center; justify-content: space-between;
      gap: 12px; margin-block: 2px 14px;
    }
    #jp-native-root .mobile-outbound .report-list-heading h2 {
      margin: 0; color: var(--color-text-primary); font-size: 18px; font-weight: 650;
    }
    #jp-native-root .mobile-outbound .report-list-heading .mm-primary {
      min-height: 44px; width: auto; padding-inline: 16px;
    }
    #jp-native-root .mobile-outbound .report-scope-tabs {
      display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 2px;
      padding: 3px; border-radius: 10px; margin-block-end: 12px;
      background: var(--color-bg-secondary);
    }
    #jp-native-root .mobile-outbound .report-scope-tabs button {
      min-width: 0; min-height: 44px; padding: 0 3px; white-space: nowrap;
      background: transparent; border: 1px solid transparent; border-radius: 7px;
      color: var(--color-text-secondary); font-size: 14px;
    }
    #jp-native-root .mobile-outbound .report-scope-tabs button[aria-pressed=true] {
      color: var(--color-selected-ink); background: var(--color-bg-card);
      border-color: var(--color-border-default); font-weight: 650;
    }
    #jp-native-root .mobile-outbound .outbound-status-tabs {
      display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 4px;
      background: transparent; overflow: visible; padding: 0; margin-block: 10px;
    }
    #jp-native-root .mobile-outbound .outbound-status-tabs button {
      min-width: 0; min-height: 44px; padding-inline: 4px; margin: 0;
      border: 1px solid var(--color-border-default); border-radius: 8px;
      background: var(--color-bg-card); color: var(--color-text-body); box-shadow: none;
    }
    #jp-native-root .mobile-outbound .outbound-status-tabs button[aria-pressed=true] {
      background: var(--color-selected); color: var(--color-selected-ink);
      border-color: var(--color-selected-border); font-weight: 650;
    }
    #jp-native-root .mobile-outbound .report-order-card {
      margin-block: 12px; scroll-margin-block: 70px;
    }
    #jp-native-root .mobile-outbound .report-order-card .mm-card-head {
      align-items: flex-start; gap: 8px;
    }
    #jp-native-root .mobile-outbound .report-order-card h2 {
      overflow-wrap: anywhere; line-height: 1.45;
    }
  }
}

@layer classic-control-states {
  @media screen and (max-width:767px) {
    #jp-native-root .mm-root .mobile-outbound .report-scope-tabs > button[aria-pressed=false] {
      color:var(--color-text-secondary) !important; background:transparent !important;
      border-color:transparent !important; box-shadow:none !important;
    }
    #jp-native-root .mm-root .mobile-outbound .report-scope-tabs > button[aria-pressed=true] {
      color:var(--color-bg-card) !important; background:var(--color-text-primary) !important;
      border-color:var(--color-text-primary) !important; box-shadow:none !important;
    }
  }
}
