/* Actual order list layout matching approved watercolor reference. Business records, action nodes and filter routes are preserved. */
html body #ordersPage>.page-head {
  display:flex!important;align-items:center;gap:8px;min-height:56px!important;
  padding:10px 16px!important;padding-top:max(10px,env(safe-area-inset-top))!important;
  margin:0!important;background:var(--pb-bg,#f5f5f8)!important;border:0!important;
}
html body #ordersPage>.page-head .page-title {flex:1;min-width:0;margin:0!important;}
html body #ordersPage>.page-head h1 {margin:0!important;font:600 24px/1.3 var(--pb-font-ui,sans-serif)!important;color:var(--pb-ink,#24252d)!important;}
html body #ordersPage>.page-body {
  box-sizing:border-box!important;width:100%;max-width:720px!important;margin:0 auto!important;
  padding:0 16px calc(80px + env(safe-area-inset-bottom))!important;
  background:var(--pb-bg,#f5f5f8)!important;
}
html body #ordersPage .order-tabs {
  display:flex;gap:6px;margin:0 -2px 12px!important;padding:4px 2px!important;
  overflow-x:auto;scrollbar-width:none;scroll-padding:2px;
}
html body #ordersPage .order-tabs button {
  flex:0 0 auto;min-height:44px!important;padding:8px 14px!important;border-radius:14px!important;
  font:500 14px/20px var(--pb-font-ui,sans-serif)!important;color:var(--pb-ink,#24252d)!important;
  border:1px solid var(--pb-line,#e4e5ea)!important;background:#ffffff!important;box-shadow:none!important;
}
html body #ordersPage .order-tabs button.active {
  background:var(--pb-brand-soft,#e6f1e9)!important;color:var(--pb-brand,#004f43)!important;border-color:transparent!important;
}
html body #ordersPage .order-item.pb-order-card,
html:is(#pdd-glass-a#pdd-glass-b#pdd-glass-c#pdd-glass-d#pdd-glass-e#pdd-glass-f#pdd-order-ref,:root) body #ordersPage .order-item.pb-order-card {
  margin:0 0 12px!important;padding:0!important;border-radius:20px!important;
  background:#ffffff!important;border:0!important;box-shadow:0 4px 18px rgba(40,43,66,.045)!important;overflow:hidden!important;
}
html body #ordersPage .pb-order-card .pb-order-content,
html:is(#pdd-glass-a#pdd-glass-b#pdd-glass-c#pdd-glass-d#pdd-glass-e#pdd-glass-f#pdd-order-ref,:root) body #ordersPage .pb-order-card .pb-order-content {
  padding:14px 16px!important;background:#ffffff!important;border:0!important;box-shadow:none!important;
}
html body #ordersPage .pb-order-card .order-item-head {
  display:flex!important;justify-content:space-between;margin:0 0 12px!important;gap:10px;align-items:center;
}
html body #ordersPage .pb-order-card .order-item-head>b {
  font:600 15px/22px var(--pb-font-ui,sans-serif)!important;color:#4a4e58!important;
}
html body #ordersPage .pb-order-card .order-state {
  font:500 12px/18px var(--pb-font-ui,sans-serif)!important;border-radius:9px!important;padding:3px 9px!important;
  background:var(--pb-brand-soft,#e6f1e9)!important;color:var(--pb-brand,#004f43)!important;
}
html body #ordersPage .pb-order-card .pb-order-summary,
html:is(#pdd-glass-a#pdd-glass-b#pdd-glass-c#pdd-glass-d#pdd-glass-e#pdd-glass-f#pdd-order-ref,:root) body #ordersPage .pb-order-card .pb-order-summary {
  display:flex!important;flex-direction:row!important;align-items:flex-start!important;gap:12px!important;
}
html body #ordersPage .pb-order-card .pb-order-cover,
html:is(#pdd-glass-a#pdd-glass-b#pdd-glass-c#pdd-glass-d#pdd-glass-e#pdd-glass-f#pdd-order-ref,:root) body #ordersPage .pb-order-card .pb-order-cover {
  position:relative!important;width:88px!important;height:96px!important;flex:0 0 88px!important;
  border-radius:13px!important;background:#f2f3f7!important;overflow:hidden!important;
}
html body #ordersPage .pb-order-card .pb-order-cover>img:not(.pb-chat-icon) {
  display:block!important;width:100%!important;height:100%!important;object-fit:cover!important;
}
html body #ordersPage .pb-order-demo-badge {display:none!important;}
html body #ordersPage .pb-order-card .order-meta,
html:is(#pdd-glass-a#pdd-glass-b#pdd-glass-c#pdd-glass-d#pdd-glass-e#pdd-glass-f#pdd-order-ref,:root) body #ordersPage .pb-order-card .order-meta {
  position:static!important;display:block!important;flex:1!important;min-width:0!important;width:auto!important;
  margin:0!important;padding:0!important;background:transparent!important;border:0!important;border-radius:0!important;
  -webkit-backdrop-filter:none!important;backdrop-filter:none!important;
  color:var(--pb-muted,#62646f)!important;font:400 13px/1.5 var(--pb-font-ui,sans-serif)!important;
}
html body #ordersPage .pb-order-card .pb-order-title {
  display:block;margin:0 0 5px!important;font:600 16px/1.35 var(--pb-font-ui,sans-serif)!important;color:#20232a!important;overflow-wrap:anywhere;
}
html body #ordersPage .pb-order-title-row {display:flex;align-items:flex-start;justify-content:space-between;gap:8px;}
html body #ordersPage .pb-order-title-row .pb-order-title {flex:1;min-width:0;}
html body #ordersPage .pb-order-title-row .order-state {position:static;flex:none;max-width:88px;white-space:nowrap;}
html body #ordersPage .pb-order-card .order-meta p,
html body #ordersPage .pb-order-card .order-meta .pb-order-amount {
  margin:3px 0!important;font:400 13px/1.5 var(--pb-font-ui,sans-serif)!important;color:var(--pb-muted,#62646f)!important;
  font-variant-numeric:tabular-nums;overflow-wrap:anywhere;
}
html body #ordersPage .pb-order-card .pb-order-number {
  display:flex!important;align-items:center;flex-wrap:wrap;gap:8px 10px!important;min-height:0!important;
  margin:12px 0 0!important;padding:10px 0 0!important;border-top:1px solid #eceef2!important;
}
html body #ordersPage .pb-order-card .pb-order-number>span {
  flex:1 1 0;min-width:70px;font:400 13px/1.5 var(--pb-font-ui,sans-serif)!important;color:var(--pb-muted,#62646f)!important;overflow-wrap:anywhere;
}
html body #ordersPage .pb-order-card .pb-order-number-customer>span {
  flex:0 0 100%!important;min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;
}
html body #ordersPage .pb-order-card .pb-order-number-customer>.pb-order-customer-line {margin-inline-start:auto!important;}
html body #ordersPage .pb-order-card .pb-order-customer-line {
  display:flex!important;align-items:center;justify-content:flex-end;flex-wrap:wrap;gap:8px!important;flex:0 1 auto;min-width:0;margin:0!important;
}
html body #ordersPage .pb-order-card .pb-order-customer-line>div {flex-direction:row!important;flex-wrap:wrap;gap:8px!important;}
html body #ordersPage .pb-order-card .pb-order-customer-line>button,
html body #ordersPage .pb-order-card button.pb-order-view {
  display:inline-flex!important;align-items:center;justify-content:center;flex:0 1 auto!important;
  width:auto!important;min-width:88px!important;min-height:42px!important;height:auto!important;margin:0!important;padding:8px 16px!important;
  border:1px solid var(--pb-line,#e4e5ea)!important;border-radius:14px!important;background:#ffffff!important;
  color:#24252d!important;font:500 14px/20px var(--pb-font-ui,sans-serif)!important;box-shadow:none!important;
}
html body #ordersPage .pb-order-card button.pb-order-view:disabled {
  color:#5f6370!important;background:#eaecf2!important;border-color:transparent!important;opacity:1!important;
}
html body #ordersPage .pb-order-card .pb-order-options {display:none!important;}
html body #ordersPage .pb-order-card.pb-delete-open .pb-order-content {transform:translateX(-80px)!important;}
html body #ordersPage .pb-order-card .pb-order-delete {position:absolute!important;right:0!important;top:0!important;bottom:0!important;width:80px!important;border:0!important;border-radius:0 20px 20px 0!important;background:#c94b45!important;color:#fff!important;font:600 14px/1 var(--pb-font-ui,sans-serif)!important;}
@media(max-width:350px){
  html body #ordersPage>.page-body {padding-left:12px!important;padding-right:12px!important;}
  html body #ordersPage .pb-order-card .pb-order-content {padding:12px!important;}
  html body #ordersPage .pb-order-card .pb-order-cover {width:72px!important;height:88px!important;flex-basis:72px!important;}
  html body #ordersPage .pb-order-card .pb-order-number>span {flex-basis:100%;}
  html body #ordersPage .pb-order-card .pb-order-customer-line {flex:1;}
}

/* Explicit order actions and status-scoped unread numbers. */
html body #ordersPage .pb-order-card .pb-order-view{opacity:1!important;visibility:visible!important;-webkit-text-fill-color:currentColor!important}
html body .order-item .pb-order-state-stack{display:flex;flex-direction:column;align-items:flex-end;gap:4px;flex:none}
html body .order-item .pb-order-state-stack .pb-order-unread{position:static!important;transform:none!important;background:none!important;border:0!important;border-radius:0!important;width:auto!important;height:auto!important;min-width:0!important;padding:0!important;color:#27805c!important;font:600 12px/18px system-ui!important;opacity:1!important}
html body #ordersPage .pb-order-card[hidden]{display:none!important}
