/* PUBLICBOOST Orders Center v20261018.13
 * Premium Khmer-first order history. Visual layer only: preserves live sync,
 * refill, cancel, reorder, support, receipt and refund flows. */

.pb-orders-page {
  display:flex;
  flex-direction:column;
  gap:19px;
  width:100%;
  max-width:1660px;
  margin:0 auto;
  padding-bottom:5px;
  min-width:0;
}
.pb-orders-page * { box-sizing:border-box; }
.pb-orders-page [hidden] { display:none!important; }

/* Hero: title is the focus, rather than a decorative empty panel. */
.pb-orders-hero{
  position:relative;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:20px;
  min-height:156px;
  padding:24px 28px;
  overflow:hidden;
  isolation:isolate;
  border:1px solid color-mix(in srgb,var(--accent) 30%,var(--line));
  border-radius:21px;
  background:
    radial-gradient(ellipse at 93% 8%,color-mix(in srgb,#4874ff 14%,transparent),transparent 46%),
    radial-gradient(ellipse at 7% 0%,color-mix(in srgb,var(--accent) 16%,transparent),transparent 57%),
    linear-gradient(130deg,color-mix(in srgb,var(--surface) 96%,#4a36a1 4%),var(--surface));
  box-shadow:0 12px 32px rgba(24,18,60,.12),inset 0 1px rgba(255,255,255,.045);
}
.pb-orders-hero::before{
  content:"";
  position:absolute;inset:0 auto 0 0;width:3px;
  background:linear-gradient(180deg,#4ba4ff,#8b65ff,#c169e9);
}
.pb-orders-hero::after{
  content:"";position:absolute;right:-50px;top:-185px;
  width:320px;height:320px;border:1px solid color-mix(in srgb,var(--accent) 24%,transparent);
  border-radius:50%;box-shadow:0 0 0 45px color-mix(in srgb,var(--accent) 3%,transparent);
  pointer-events:none;
}
.pb-orders-hero-text{position:relative;z-index:1;min-width:0}
.pb-orders-kicker{
  display:inline-flex;align-items:center;gap:9px;
  font-size:10px;font-weight:850;letter-spacing:1.55px;line-height:1.4;
  color:var(--accent);
}
.pb-orders-kicker i{
  display:block;width:7px;height:7px;border-radius:50%;flex:none;
  background:linear-gradient(120deg,#6c9bff,#b17cfa);
  box-shadow:0 0 0 4px color-mix(in srgb,var(--accent) 9%,transparent);
}
.pb-orders-hero h1{
  font-size:clamp(26px,2.45vw,34px);
  line-height:1.45;
  font-weight:850;
  letter-spacing:-.65px;
  margin:8px 0 0;
  color:var(--text);
}
.pb-orders-hero p{
  font-size:12.5px;line-height:1.8;color:var(--muted);
  margin:5px 0 0;max-width:510px;
}
.pb-orders-new{
  display:flex;align-items:center;justify-content:center;gap:10px;
  flex:none;position:relative;z-index:1;
  min-height:46px;
  padding:10px 16px;
  color:#fff;text-decoration:none;
  font-size:12.5px;font-weight:830;
  border:1px solid rgba(205,183,255,.21);
  background:linear-gradient(105deg,#665cf0,#8758e8,#a15be1);
  border-radius:12px;
  box-shadow:0 10px 25px rgba(110,70,209,.24);
  white-space:nowrap;
  transition:filter .15s,transform .15s;
}
.pb-orders-new:hover{color:#fff;filter:brightness(1.1);transform:translateY(-1px)}
.pb-orders-new:focus-visible{outline:2px solid var(--accent);outline-offset:4px}
.pb-orders-new svg{width:16px;height:16px;flex:none}
.pb-orders-new svg:last-child{width:14px;opacity:.8;margin-left:2px}

/* Four at-a-glance indicators: larger numbers, clear labels, unified rhythm. */
.pb-orders-page .stats.pb-orders-stats{
  display:grid;grid-template-columns:repeat(4,minmax(0,1fr));
  align-items:stretch;gap:13px;
  margin:0;
}
.pb-orders-page .stat-card.pb-orders-stat{
  position:relative;display:flex;flex-direction:column;
  gap:0;min-width:0;min-height:145px;
  overflow:hidden;padding:19px 20px 16px;
  border:1px solid var(--line);border-radius:18px;
  background:
    radial-gradient(circle at 100% 0%,color-mix(in srgb,var(--accent) 10%,transparent),transparent 62%),
    var(--surface);
  box-shadow:0 8px 22px rgba(17,15,42,.08),inset 0 1px rgba(255,255,255,.03);
  transition:transform .18s,border-color .18s,box-shadow .18s;
}
.pb-orders-page .stat-card.pb-orders-stat:hover{
  transform:translateY(-2px);
  border-color:color-mix(in srgb,var(--accent) 32%,var(--line));
  box-shadow:0 12px 29px rgba(17,15,42,.14);
}
.pb-orders-stat::before{
  position:absolute;content:"";inset:0 auto 0 0;width:3px;
  background:linear-gradient(#578eff,#9879eb);
}
.pb-orders-stat-processing::before{background:linear-gradient(#cfb1ff,#846cf0)}
.pb-orders-stat-completed::before{background:linear-gradient(#68e9bc,#2fba91)}
.pb-orders-stat-totalSpent::before{background:linear-gradient(#71c3ef,#687bff)}
.pb-orders-stat-top{
  display:flex;align-items:center;justify-content:space-between;gap:8px;
  min-width:0;
}
.pb-orders-page .stat-card .pb-orders-stat-label{
  display:block;color:var(--muted);
  font-size:12px;font-weight:730;line-height:1.5;
  min-width:0;
}
.pb-orders-stat-icon{
  display:grid;place-items:center;
  width:36px;height:36px;flex:none;
  border:1px solid color-mix(in srgb,var(--accent) 25%,var(--line));
  border-radius:11px;
  background:color-mix(in srgb,var(--accent) 11%,var(--surface));
  color:var(--accent);
}
.pb-orders-stat-icon svg{height:17px;width:17px}
.pb-orders-stat-completed .pb-orders-stat-icon{
  color:var(--green);
  background:color-mix(in srgb,var(--green) 10%,var(--surface));
  border-color:color-mix(in srgb,var(--green) 22%,var(--line));
}
.pb-orders-page .stat-card .pb-orders-stat-value{
  display:block;
  font-family:Inter,'Noto Sans Khmer',sans-serif;
  font-size:clamp(28px,2.7vw,34px);
  line-height:1.27;font-weight:800;letter-spacing:-1px;
  color:var(--text);margin:9px 0 0;
  font-variant-numeric:tabular-nums;
}
.pb-orders-page .stat-card .pb-orders-stat-foot{
  display:block;margin-top:auto;padding-top:8px;
  font-size:10px;line-height:1.55;
  color:var(--muted);opacity:.85;
}

/* History: a dashboard-like panel with useful controls, no tiny table. */
.pb-orders-page .history-card.pb-orders-history{
  border:1px solid var(--line);border-radius:20px;
  overflow:hidden;
  background:var(--surface);
  box-shadow:0 13px 38px rgba(16,13,40,.1);
}
.pb-orders-page .history-title.pb-orders-history-head{
  display:flex;align-items:center;justify-content:space-between;gap:16px;
  padding:23px 24px 20px;
  border-bottom:1px solid var(--soft-line);
  background:linear-gradient(118deg,color-mix(in srgb,var(--accent) 6%,var(--surface)),var(--surface) 65%);
}
.pb-orders-history .orders-title-stack{
  gap:6px;min-width:0;
}
.pb-orders-section-kicker{
  font-size:9.5px;letter-spacing:1.3px;font-weight:830;
  color:var(--accent);line-height:1.4;
}
.pb-orders-history .orders-title-stack h2{
  color:var(--text);font-size:21px;
  font-weight:800;line-height:1.5;letter-spacing:-.25px;
}
.pb-orders-history .orders-live-label{
  font-size:10px;line-height:1.6;
}
.pb-orders-history .orders-refresh{
  display:flex;gap:8px;align-items:center;justify-content:center;
  min-height:39px;height:39px;
  padding:0 13px;border:1px solid var(--line);
  border-radius:11px;
  background:var(--field);
  font-size:11px;font-weight:780;
  color:var(--text);white-space:nowrap;
  box-shadow:0 2px 10px rgba(0,0,0,.05);
}
.pb-orders-history .orders-refresh svg{width:15px;height:15px;color:var(--accent)}
.pb-orders-history .orders-refresh:hover{
  border-color:color-mix(in srgb,var(--accent) 47%,var(--line));
  background:var(--accent-soft);color:var(--accent);
}
.pb-orders-history .orders-refresh:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
.pb-orders-toolbar{
  display:flex;align-items:center;justify-content:space-between;
  gap:13px;
  padding:16px 20px 13px;
  background:color-mix(in srgb,var(--field) 24%,var(--surface));
}
.pb-orders-filters{display:flex;align-items:center;gap:6px;min-width:0;overflow-x:auto;scrollbar-width:none}
.pb-orders-filters::-webkit-scrollbar{display:none}
.pb-orders-filter{
  display:inline-flex;align-items:center;justify-content:center;gap:7px;
  height:36px;min-height:36px;padding:5px 11px;
  border:1px solid var(--line);border-radius:10px;
  color:var(--muted);background:var(--field);
  white-space:nowrap;flex:none;font-size:11px;font-weight:710;
  transition:background .15s,border-color .15s,color .15s;
}
.pb-orders-filter b{
  display:inline-grid;place-items:center;
  font-size:10px;font-weight:810;
  min-width:21px;height:20px;padding:1px 5px;border-radius:7px;
  color:var(--muted);
  background:color-mix(in srgb,var(--muted) 10%,transparent);
  font-variant-numeric:tabular-nums;
}
.pb-orders-filter:hover{border-color:color-mix(in srgb,var(--accent) 30%,var(--line));color:var(--text)}
.pb-orders-filter.is-active{
  border-color:color-mix(in srgb,var(--accent) 45%,var(--line));
  background:linear-gradient(130deg,color-mix(in srgb,var(--accent) 15%,var(--surface)),color-mix(in srgb,var(--accent) 5%,var(--surface)));
  color:var(--accent);
  box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--accent) 7%,transparent);
}
.pb-orders-filter.is-active b{
  color:var(--accent);
  background:color-mix(in srgb,var(--accent) 16%,transparent);
}
.pb-orders-filter:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
.pb-orders-search{
  display:flex;align-items:center;gap:9px;
  height:39px;min-width:200px;max-width:322px;width:29%;
  border:1px solid var(--line);
  border-radius:11px;
  background:var(--surface);
  padding:0 12px;
  transition:border-color .15s,box-shadow .15s;
}
.pb-orders-search:focus-within{border-color:var(--accent);box-shadow:0 0 0 3px color-mix(in srgb,var(--accent) 10%,transparent)}
.pb-orders-search svg{width:16px;height:16px;flex:none;color:var(--accent)}
.pb-orders-search input{
  width:100%;min-width:0;
  border:0;outline:0;background:transparent;
  color:var(--text);
  font-size:12px;font-family:inherit;
}
.pb-orders-search input::placeholder{color:var(--muted);opacity:.88}
.pb-orders-results-head{
  display:flex;justify-content:space-between;align-items:center;gap:12px;
  padding:10px 24px 8px;
  font-size:11px;font-weight:750;color:var(--muted);
}
.pb-orders-results-head span:last-child{font-size:10.5px;font-weight:600}
.pb-orders-results-head b{font-size:12px;font-weight:850;color:var(--text);font-variant-numeric:tabular-nums}
.pb-orders-rows{
  display:grid;gap:11px;
  padding:7px 18px 19px;
  min-width:0;
}
.pb-orders-rows>.empty{
  border:1px dashed var(--line)!important;
  border-radius:14px!important;
  padding:35px 20px!important;
  background:var(--field);
}
.pb-orders-rows>.empty svg{width:23px;height:23px;margin-bottom:8px;color:var(--accent)}
.pb-orders-page .history-row.pb-order-entry{
  display:grid!important;
  grid-template-columns:minmax(0,1fr) 91px 89px minmax(195px,230px)!important;
  gap:16px!important;
  align-items:center!important;
  padding:20px 19px!important;
  min-height:148px;
  border:1px solid var(--line)!important;
  border-radius:16px!important;
  background:
    linear-gradient(111deg,color-mix(in srgb,var(--accent) 2%,var(--surface)),var(--surface))!important;
  box-shadow:0 3px 14px rgba(0,0,0,.055);
  transition:border-color .16s,transform .16s,box-shadow .16s;
}
.pb-orders-page .history-row.pb-order-entry:hover{
  border-color:color-mix(in srgb,var(--accent) 28%,var(--line))!important;
  box-shadow:0 9px 27px rgba(40,26,96,.09);
  transform:translateY(-1px);
}
.pb-orders-page .history-row.pb-order-entry:last-child{border:1px solid var(--line)!important}
.pb-orders-page .history-service{
  display:flex;align-items:flex-start;gap:13px;
  min-width:0;
}
.pb-orders-page .history-service>.social-icon{
  display:grid;place-items:center;
  flex:none;
  width:43px!important;height:43px!important;
  margin:1px 0 0;padding:7px;
  border:1px solid var(--line);
  border-radius:12px;
  background:var(--field);
  box-shadow:0 4px 14px rgba(0,0,0,.055);
}
.pb-orders-page .history-service>.social-icon img{width:100%;height:100%;object-fit:contain}
.pb-orders-page .history-service>div{flex:1;min-width:0}
.pb-orders-page .history-service b{
  display:block;
  color:var(--text);
  font-size:14px!important;
  font-weight:760!important;
  line-height:1.55!important;
  overflow-wrap:anywhere;
}
.pb-orders-page .history-service small{
  display:block;color:var(--muted);
  font-size:10.5px!important;line-height:1.7!important;
  margin:5px 0 0;
  overflow-wrap:anywhere;
}
.pb-orders-page .history-service .order-refill-meta{
  display:block!important;
  margin-top:5px!important;
  font-size:10px!important;
  line-height:1.65!important;
  color:var(--green)!important;
}
.pb-orders-page .history-target{
  display:grid;gap:5px;
  max-width:100%;margin-top:10px;min-width:0;
}
.pb-orders-page .history-target-caption{display:none!important}
.pb-orders-page .history-target-controls{display:flex;gap:7px;min-width:0}
.pb-orders-page .history-target-url{
  flex:1 1 auto!important;
  min-width:0!important;max-width:100%!important;
  height:36px!important;
  padding:0 11px!important;
  display:flex;align-items:center;gap:6px;
  color:var(--accent);font-size:10.5px!important;
  font-weight:670;
  border-radius:9px;
  background:color-mix(in srgb,var(--accent) 6%,var(--field));
  border:1px solid color-mix(in srgb,var(--accent) 23%,var(--line));
}
.pb-orders-page .history-target-url>span:first-child{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.pb-orders-page .history-target-open svg{width:13px;height:13px}
.pb-orders-page .history-target-copy{
  flex:none;
  min-height:36px!important;height:36px!important;
  border-radius:9px;
  font-size:10px;font-weight:750;
  color:var(--text);
}
.pb-orders-page .history-target-copy svg{width:14px;height:14px}
.pb-orders-page .history-cell{
  display:flex!important;flex-direction:column;
  align-items:flex-start;justify-content:center;
  gap:4px;
  min-width:0;
  text-align:left!important;
}
.pb-orders-page .history-cell small{
  display:block;font-size:11px!important;line-height:1.4;
  color:var(--muted);margin:0;
}
.pb-orders-page .history-cell b{
  display:block;font-family:Inter,'Noto Sans Khmer',sans-serif;
  font-size:17px!important;
  font-weight:790!important;
  color:var(--text);
  letter-spacing:-.25px;
  font-variant-numeric:tabular-nums;
}
.pb-orders-page .history-cell .order-refund{
  margin-top:1px;font-size:10px!important;color:var(--green)!important;
}
.pb-orders-page .history-order-state{
  display:flex!important;
  flex-direction:column!important;
  align-items:stretch!important;
  justify-content:center!important;
  gap:10px!important;
  width:100%;min-width:0;max-width:none;
  padding:0!important;
}
.pb-orders-page .history-order-state .status{
  display:inline-flex;align-items:center;justify-content:center;
  align-self:flex-end;gap:7px;
  max-width:100%;
  width:max-content;
  white-space:normal;
  text-align:center;
  overflow-wrap:anywhere;
  min-height:30px;padding:5px 10px;
  border:1px solid color-mix(in srgb,currentColor 25%,var(--line));
  border-radius:10px;
  background:color-mix(in srgb,currentColor 7%,var(--surface));
  font-size:10.5px!important;font-weight:790!important;
  line-height:1.4!important;
}
.pb-orders-page .status::before{
  width:7px;height:7px;flex:none;
  border-radius:50%;
  box-shadow:0 0 0 3px color-mix(in srgb,currentColor 14%,transparent);
}
.pb-orders-page .status.failed{color:var(--danger)!important}
.pb-orders-page .status.warning{color:#eebc66!important}
.pb-orders-page .order-actions{
  display:flex;flex-wrap:wrap;
  justify-content:flex-end!important;
  gap:7px!important;
  width:100%;
  min-width:0;max-width:none;
}
.pb-orders-page .order-actions button{
  display:inline-flex;align-items:center;justify-content:center;gap:6px;
  width:auto;min-width:0;
  min-height:35px;height:auto;
  padding:8px 10px;
  border:1px solid var(--line);border-radius:9px;
  background:var(--field);color:var(--text);
  font-size:10.5px!important;
  font-weight:760!important;
  line-height:1.45;
  text-align:center;white-space:normal;
}
.pb-orders-page .order-actions button.order-reorder{
  min-height:35px;flex:1 1 100%;
  color:var(--accent);
  background:color-mix(in srgb,var(--accent) 10%,var(--surface));
  border-color:color-mix(in srgb,var(--accent) 37%,var(--line));
  font-weight:820!important;
}
.pb-orders-page .order-actions button.order-reorder svg{height:14px;width:14px}
.pb-orders-page .order-actions button[data-order-action=refill]{color:var(--green);border-color:color-mix(in srgb,var(--green) 26%,var(--line))}
.pb-orders-page .order-actions button.danger{color:var(--danger)}
.pb-orders-page .order-actions button:hover{
  border-color:color-mix(in srgb,var(--accent) 48%,var(--line));
  background:var(--accent-soft);
}
.pb-orders-page .order-actions button:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
.pb-orders-filter-empty{
  margin:0 19px 20px;
  padding:27px 16px;
  border:1px dashed var(--line);
  border-radius:13px;
  text-align:center;
  color:var(--muted);
  background:var(--field);
}
.pb-orders-filter-empty svg{width:21px;height:21px;color:var(--accent);margin-bottom:6px}
.pb-orders-filter-empty p{font-size:12px;line-height:1.7}

/* Laptop/tablet: details first, actions on their own aligned row. */
@media(max-width:1250px){
 .pb-orders-page .history-row.pb-order-entry{
  grid-template-columns:minmax(0,1fr) 95px 100px!important;
  gap:14px!important;
 }
 .pb-orders-page .history-order-state{
  grid-column:1/-1;
  display:flex!important;flex-direction:row!important;
  justify-content:space-between!important;
  align-items:center!important;
  flex-wrap:wrap;
  gap:12px!important;
  padding-top:10px!important;
  border-top:1px solid var(--soft-line);
 }
 .pb-orders-page .history-order-state .status{align-self:center}
 .pb-orders-page .order-actions{width:auto;justify-content:flex-end!important;flex:1 1 280px}
 .pb-orders-page .order-actions button.order-reorder{flex:0 1 auto}
}
@media(max-width:1030px){
 .pb-orders-toolbar{flex-direction:column;align-items:stretch}
 .pb-orders-filters{width:100%}
 .pb-orders-search{width:100%;max-width:none}
 .pb-orders-page .history-row.pb-order-entry{padding:16px!important}
}
/* Phone: service header, two readable metrics, status and action controls. */
@media(max-width:760px){
 .pb-orders-page{gap:13px}
 .pb-orders-hero{min-height:0;padding:20px 17px;gap:13px;border-radius:17px;align-items:flex-start}
 .pb-orders-hero h1{font-size:25px;line-height:1.5;margin-top:7px}
 .pb-orders-hero p{font-size:11.5px;max-width:310px;margin-top:4px}
 .pb-orders-kicker{font-size:9px;letter-spacing:1px}
 .pb-orders-new{min-height:37px;padding:9px 10px;gap:5px;border-radius:10px;font-size:11px}
 .pb-orders-new svg:last-child{display:none}
 .pb-orders-page .stats.pb-orders-stats{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
 .pb-orders-page .stat-card.pb-orders-stat{padding:15px;min-height:124px;border-radius:15px}
 .pb-orders-page .stat-card .pb-orders-stat-value{font-size:27px;margin-top:6px}
 .pb-orders-stat-icon{height:32px;width:32px}
 .pb-orders-stat-icon svg{height:16px;width:16px}
 .pb-orders-page .stat-card .pb-orders-stat-label{font-size:11px}
 .pb-orders-page .stat-card .pb-orders-stat-foot{font-size:9px}
 .pb-orders-page .history-card.pb-orders-history{border-radius:17px}
 .pb-orders-page .history-title.pb-orders-history-head{padding:18px 15px;gap:10px}
 .pb-orders-history .orders-title-stack h2{font-size:18px}
 .pb-orders-section-kicker{font-size:8.5px}
 .pb-orders-history .orders-live-label{font-size:9px}
 .pb-orders-history .orders-refresh{min-width:38px;width:38px;padding:0}
 .pb-orders-history .orders-refresh span{display:none}
 .pb-orders-history .orders-refresh svg{width:16px;height:16px}
 .pb-orders-toolbar{padding:12px 12px 9px;gap:9px}
 .pb-orders-filter{font-size:10.5px;padding:5px 9px;min-height:34px;height:34px}
 .pb-orders-filter b{font-size:9.5px}
 .pb-orders-search{height:42px}
 .pb-orders-search input{font-size:13px}
 .pb-orders-results-head{padding:10px 16px 7px}
 .pb-orders-rows{padding:5px 10px 13px;gap:10px}
 .pb-orders-page .history-row.pb-order-entry{
  display:grid!important;
  grid-template-columns:minmax(0,1fr) minmax(0,1fr)!important;
  gap:11px!important;
  padding:15px!important;
  min-height:0;
  border-radius:14px!important;
 }
 .pb-orders-page .history-service{grid-column:1/-1;gap:10px}
 .pb-orders-page .history-service>.social-icon{width:39px!important;height:39px!important;padding:6px}
 .pb-orders-page .history-service b{font-size:13.5px!important;line-height:1.55}
 .pb-orders-page .history-service small{font-size:10px!important;line-height:1.7}
 .pb-orders-page .history-target-url{font-size:10px!important}
 .pb-orders-page .history-target-copy{width:38px!important;padding:0!important}
 .pb-orders-page .history-target-copy span{display:none}
 .pb-orders-page .history-cell{
  grid-column:auto;display:flex!important;
  padding:11px 12px;
  border:1px solid var(--line);
  border-radius:11px;
  background:var(--field);
 }
 .pb-orders-page .history-cell small{font-size:10px!important}
 .pb-orders-page .history-cell b{font-size:16px!important}
 .pb-orders-page .history-order-state{
  grid-column:1/-1;
  display:flex!important;flex-direction:column!important;
  align-items:stretch!important;
  gap:10px!important;padding-top:11px!important;
 }
 .pb-orders-page .history-order-state .status{align-self:flex-start;text-align:left}
 .pb-orders-page .order-actions{width:100%;justify-content:flex-start!important;gap:7px!important;flex:0 1 auto}
 .pb-orders-page .order-actions button{min-height:36px;padding:8px 10px;font-size:10.5px!important}
 .pb-orders-page .order-actions button.order-reorder{flex:1 1 100%}
}
@media(max-width:400px){
 .pb-orders-hero{flex-wrap:wrap}
 .pb-orders-new{align-self:flex-start}
 .pb-orders-page .stat-card.pb-orders-stat{padding:13px}
 .pb-orders-page .history-row.pb-order-entry{padding:12px!important}
 .pb-orders-page .history-service b{font-size:12.5px!important}
 .pb-orders-page .history-service small{font-size:9.5px!important}
 .pb-orders-page .order-actions button{font-size:10px!important}
}
@media(prefers-reduced-motion:reduce){
 .pb-orders-page .history-row.pb-order-entry,
 .pb-orders-page .stat-card.pb-orders-stat,
 .pb-orders-new{transition:none}
}
/* In light mode, retain contrast, not a neon screen. */
:root[data-theme=light] .pb-orders-hero{
  background:
   radial-gradient(ellipse at 92% 10%,rgba(117,96,224,.11),transparent 50%),
   linear-gradient(130deg,#fcfbff,#f5f4fc);
}
:root[data-theme=light] .pb-orders-page .history-row.pb-order-entry{
  background:linear-gradient(130deg,#fff,#fcfbff)!important;
}
:root[data-theme=light] .pb-orders-history .orders-refresh,
:root[data-theme=light] .pb-orders-page .order-actions button,
:root[data-theme=light] .pb-orders-filter{
  background:#f8f7fc;
}
:root[data-theme=light] .pb-orders-page .history-target-url{
  color:#6a49c7;
}

/* Final readability refinement for compact phones. */
@media(max-width:400px){
 .pb-orders-page .history-service b{font-size:14px!important}
 .pb-orders-page .history-service small{font-size:10px!important}
 .pb-orders-page .order-actions button{font-size:10.5px!important}
}

/* v20261018.14 — Fix real visibility of filtered order rows.
   Explicit ID specificity beats every !important display:grid declaration
   (including mobile and light theme). Do not rely on the UA [hidden] style. */
.pb-orders-page #orderHistory .history-row.pb-order-entry[hidden]{
  display:none!important;
}

/* v20261018.26 — highlight order-specific report action and past reports. */
.pb-orders-page .order-actions button[data-support-order]{
  color:var(--accent);
  background:color-mix(in srgb,var(--accent) 9%,var(--surface));
  border-color:color-mix(in srgb,var(--accent) 36%,var(--line));
  font-weight:800!important;
}
.pb-orders-page .order-actions button[data-support-order]:hover,
.pb-orders-page .order-actions button[data-support-order]:focus-visible{
  border-color:var(--accent);
  background:color-mix(in srgb,var(--accent) 16%,var(--surface));
}
.pb-orders-page>.customer-support-toolbar{
  margin:0 0 -8px;
}
.pb-orders-page>.customer-support-toolbar button{
  min-height:39px;padding:9px 14px;border-radius:11px;
  color:var(--accent);
  background:color-mix(in srgb,var(--accent) 8%,var(--surface));
  border-color:color-mix(in srgb,var(--accent) 26%,var(--line));
  font-size:12px;line-height:1.55;
}
.pb-orders-page>.customer-support-toolbar button:hover{
  border-color:var(--accent);
}
.pb-orders-page>.customer-support-toolbar button:focus-visible{
  outline:2px solid var(--accent);outline-offset:2px;
}
@media(max-width:600px){
  .pb-orders-page>.customer-support-toolbar{margin:0 0 -3px}
  .pb-orders-page>.customer-support-toolbar button{min-height:42px;font-size:11.5px}
}
