/* ===== Order panel (slide-over) ===== */
.opanel{position:fixed;top:12px;right:12px;bottom:12px;width:600px;max-width:calc(100vw - 24px);background:var(--bg-panel);border-radius:24px;
  box-shadow:-24px 0 64px rgba(19,6,0,.16);transform:translateX(calc(100% + 24px));transition:transform .28s cubic-bezier(.2,.8,.2,1);z-index:32;display:flex;flex-direction:column;overflow:hidden}
.opanel.show{transform:none}

/* header */
.op-head{padding:16px 20px 18px;background:var(--bg-sidebar);border-bottom:1px solid var(--border);display:flex;flex-direction:column;gap:16px}
.op-top{display:flex;align-items:center;gap:10px;min-height:32px}
.op-id{font-size:18px;line-height:24px;font-weight:600}
.op-top .meta{display:flex;align-items:center;gap:6px;font-size:13px;color:var(--text-secondary);white-space:nowrap;min-width:0;overflow:hidden}
.op-top .meta .dot{width:3px;height:3px;border-radius:9px;background:var(--text-muted)}
.op-top .right{margin-left:auto;display:flex;align-items:center;gap:6px}
.op-top .right .icon-btn{width:32px;height:32px;background:var(--bg-chip)}
.op-who{display:flex;align-items:center;gap:12px}
.op-who .avatar{width:48px;height:48px;font-size:16px}
.op-who .info{flex:1;min-width:0}
.op-who .nm{font-size:18px;line-height:24px;font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.op-who .ph{display:flex;align-items:center;gap:8px;margin-top:4px;font-size:13px;color:var(--text-secondary)}
/* The website mock's .ph (23-website.css, a phone frame) must not reach the panel's phone line (found at 12.3). */
.op-who .ph{width:auto;max-width:none;margin-left:0;margin-right:0;padding:0;border-radius:0;background:none;box-shadow:none;animation:none}
.op-who .ph .copy{display:grid;place-items:center;color:var(--text-muted)}
.op-who .ph .copy:hover{color:var(--brand-orange-ui)}
.op-who .acts{display:flex;align-items:center;gap:8px;flex:none}
.op-who .acts .icon-btn{background:var(--bg-chip)}
.btn.call-btn{background:var(--pill-active-bg);color:var(--pill-active-fg);padding:0 18px}
.btn.call-btn.live{background:var(--negative);color:#fff}
.op-addr{display:flex;align-items:flex-start;gap:10px;background:var(--bg-chip);border-radius:14px;padding:12px 14px}
.op-addr>svg{margin-top:2px;color:var(--text-secondary)}
.op-addr .txt{flex:1;min-width:0;font-size:13px;line-height:18px}
.op-addr .zone{display:inline-flex;align-items:center;gap:6px;margin-top:6px;font-size:12px;line-height:16px;font-weight:500;color:var(--text-secondary)}
.op-addr .zone::before{content:"";width:6px;height:6px;border-radius:9px;background:var(--brand-orange)}
.op-addr .zone.bad{color:var(--negative)}
.op-addr .zone.bad::before{background:var(--negative)}
.op-addr .edit{font-size:13px;font-weight:500;color:var(--text-secondary);display:inline-flex;align-items:center;gap:4px;flex:none}
.op-addr .edit:hover{color:var(--brand-orange-ui)}
.addr-edit{display:flex;flex-direction:column;gap:8px}

/* body + cards */
.op-body{flex:1;overflow:auto;padding:16px;display:flex;flex-direction:column;gap:12px;scrollbar-width:thin;scrollbar-color:rgba(27,11,3,.16) transparent}
.op-body::-webkit-scrollbar{width:6px}
.op-body::-webkit-scrollbar-thumb{background:rgba(27,11,3,.16);border-radius:9px}
.op-card{background:var(--bg-sidebar);border:1px solid var(--border);border-radius:20px;padding:16px}
.op-card-h{display:flex;align-items:center;gap:10px;margin-bottom:14px;min-height:28px}
.op-card-h .ic{width:28px;height:28px;border-radius:999px;background:var(--brand-dark);color:#fff;display:grid;place-items:center;flex:none}
[data-theme="dark"] .op-card-h .ic{background:#fff;color:var(--brand-dark)}
.op-card-h .tt{font-size:15px;line-height:20px;font-weight:500}
.op-card-h .cnt{font-size:12px;color:var(--text-muted)}
.op-card-h .rt{margin-left:auto;display:flex;align-items:center;gap:8px}
.link{color:var(--text-link);font-size:13px;font-weight:500;display:inline-flex;align-items:center;gap:2px}

.banner{display:flex;align-items:center;gap:10px;border-radius:16px;padding:10px 12px;font-size:13px}
.banner.live{background:color-mix(in srgb,var(--brand-orange) 9%,var(--bg-sidebar));border:1px solid color-mix(in srgb,var(--brand-orange) 30%,transparent)}
.banner.info{background:var(--bg-chip)}
.banner .grow{flex:1;min-width:0}
.banner .btn{flex:none}

/* customer strip */
.strip{display:grid;grid-template-columns:repeat(4,1fr)}
.strip>div{padding:0 14px;border-left:1px solid var(--border)}
.strip>div:first-child{padding-left:0;border-left:0}
.strip b{display:block;font-size:20px;line-height:26px;font-weight:500}
.strip span{font-size:12px;line-height:16px;color:var(--text-secondary)}
.strip .pos{color:var(--success)}
.strip .neg{color:var(--negative)}

/* call outcomes */
.outcomes{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}
.outcomes button{height:40px;border-radius:12px;background:var(--bg-chip);font-weight:500;font-size:13px;display:flex;align-items:center;justify-content:center;gap:6px;transition:box-shadow .15s,background .15s}
.outcomes button:hover{box-shadow:inset 0 0 0 1.5px var(--brand-orange-ui)}
.outcomes button.ok{background:var(--pill-active-bg);color:var(--pill-active-fg)}
.outcomes button.bad svg{color:var(--negative)}
.op-card .note-in{margin-top:10px}
.switch{display:inline-flex;align-items:center;gap:8px;font-size:12px;font-weight:500;color:var(--text-secondary)}
.switch .sw{width:32px;height:18px;border-radius:999px;background:var(--text-muted);position:relative;transition:background .15s;flex:none}
.switch .sw::after{content:"";position:absolute;top:2px;left:2px;width:14px;height:14px;border-radius:999px;background:#fff;transition:transform .15s}
.switch.on .sw{background:var(--brand-orange-ui)}
.switch.on .sw::after{transform:translateX(14px)}
.switch.lg .sw{width:40px;height:22px}
.switch.lg .sw::after{width:18px;height:18px}
.switch.lg.on .sw::after{transform:translateX(18px)}

/* bill lines */
.line{display:grid;grid-template-columns:44px minmax(0,1fr) auto 76px 24px;gap:12px;align-items:center;padding:12px 0;border-top:1px solid var(--border)}
.line:first-child{border-top:0;padding-top:0}
.line .nm{font-weight:500;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;display:flex;align-items:center;gap:6px}
.line .tot{text-align:right;font-weight:600}
.line .x{width:24px;height:24px;border-radius:999px;display:grid;place-items:center;color:var(--text-muted)}
.line .x:hover{background:var(--bg-chip);color:var(--negative)}
.line .thumb{border-radius:12px}
.stepper{display:inline-flex;align-items:center;background:var(--bg-chip);border-radius:999px;height:32px;padding:0 2px}
.stepper button{width:28px;height:28px;display:grid;place-items:center;border-radius:999px}
.stepper button:hover:not(:disabled){background:var(--bg-sidebar)}
.stepper button:disabled{opacity:.3}
.stepper span{min-width:22px;text-align:center;font-weight:600}

/* upsell suggestions */
.sugg{margin-top:14px;border-radius:16px;padding:12px 14px 6px;background:color-mix(in srgb,var(--brand-peach) 22%,var(--bg-sidebar))}
[data-theme="dark"] .sugg{background:color-mix(in srgb,var(--brand-ember) 30%,var(--bg-sidebar))}
.sugg-h{display:flex;align-items:center;gap:8px;font-size:13px;font-weight:500;margin-bottom:4px}
.sugg-h svg{color:var(--brand-orange-ui)}
.sugg-h .caption{margin-left:auto;font-size:12px}
.sugg-row{display:grid;grid-template-columns:36px minmax(0,1fr) auto 32px;gap:12px;align-items:center;padding:10px 0}
.sugg-row+.sugg-row{border-top:1px solid color-mix(in srgb,var(--brand-peach-mid) 25%,transparent)}
.sugg-row .nm{font-weight:500;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.sugg-row .nm small{font-size:12px;font-weight:400;color:var(--text-secondary)}
.sugg-row .why{font-size:12px;line-height:16px;color:var(--text-secondary);margin-top:2px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.sugg-row .why b{font-weight:500;color:var(--text-primary)}
.sugg-row .thumb{border-radius:10px}
.add-btn{width:32px;height:32px;border-radius:999px;background:var(--brand-orange-ui);color:#fff;display:grid;place-items:center;transition:transform .1s}
.add-btn:hover{background:var(--brand-orange);transform:scale(1.06)}
.sugg-more{display:block;width:100%;text-align:center;font-size:12px;font-weight:500;color:var(--text-secondary);padding:8px 0 4px;border-top:1px solid color-mix(in srgb,var(--brand-peach-mid) 25%,transparent)}
.addsearch{position:relative;margin-top:12px}
.addsearch .input{padding-left:38px}
.addsearch>svg{position:absolute;left:12px;top:12px;color:var(--text-muted)}
.results{position:absolute;left:0;right:0;top:46px;background:var(--bg-sidebar);border-radius:14px;box-shadow:0 12px 40px rgba(19,6,0,.18);padding:6px;z-index:5;max-height:260px;overflow:auto}
.results button{display:grid;grid-template-columns:32px 1fr auto;gap:10px;align-items:center;width:100%;padding:6px 8px;border-radius:10px;text-align:left}
.results button:hover{background:var(--bg-chip)}

/* adjustments + totals */
.adj-row{display:flex;align-items:center;gap:12px;padding:14px 0;border-top:1px solid var(--border)}
.op-card-h + .adj-row{padding-top:0;border-top:0}
.adj-row .lbl{flex:1;min-width:0}
.adj-row .lbl b{display:block;font-weight:500}
.adj-row .lbl span{font-size:12px;color:var(--text-secondary)}
.adj-row .ctl{display:flex;align-items:center;gap:6px}
.adj-row .ctl .input{width:110px;height:36px}
.seg2{display:flex;background:var(--bg-chip);border-radius:10px;padding:3px;flex:none}
.seg2 button{width:32px;height:30px;border-radius:8px;font-weight:600;font-size:13px}
.seg2 button.on{background:var(--pill-active-bg);color:var(--pill-active-fg)}
.quick{display:flex;gap:6px;margin-top:10px;flex-wrap:wrap}
.quick .chip{cursor:pointer;height:28px}
.quick .chip.on{background:var(--pill-active-bg);color:var(--pill-active-fg)}
.totals{display:flex;flex-direction:column;gap:8px;padding-top:14px;border-top:1px dashed color-mix(in srgb,var(--text-muted) 50%,transparent)}
.totals .r{display:flex;justify-content:space-between;gap:16px;font-size:13px}
.totals .r .k{color:var(--text-secondary);display:inline-flex;align-items:center;gap:6px}
.totals .r.up .v{color:var(--brand-orange-ui);font-weight:600}
.totals .r.grand{margin-top:4px;padding-top:12px;border-top:1px solid var(--border);font-size:16px;font-weight:600}
.totals .r.grand .v{font-size:20px}
.strike{text-decoration:line-through;color:var(--text-muted);margin-right:6px;font-weight:400}
.lock-note{display:flex;gap:8px;align-items:center;font-size:12px;color:var(--text-secondary);background:var(--bg-chip);border-radius:12px;padding:8px 12px;margin-bottom:12px}

/* courier */
.grid2{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.couriers{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-bottom:12px}
.cour{border:1.5px solid var(--border);border-radius:14px;padding:12px;text-align:left;display:flex;gap:10px;align-items:center;background:var(--bg-sidebar)}
.cour.on{border-color:var(--brand-orange-ui);background:color-mix(in srgb,var(--brand-orange) 5%,var(--bg-sidebar))}
.cour .radio{width:18px;height:18px;border-radius:999px;border:2px solid var(--text-muted);margin-left:auto;flex:none}
.cour.on .radio{border:5px solid var(--brand-orange-ui)}
.progress{display:flex;align-items:center;margin:16px 0 4px}
.progress .st{display:flex;flex-direction:column;align-items:center;gap:6px;font-size:12px;color:var(--text-secondary);flex:none}
.progress .st .c{width:24px;height:24px;border-radius:999px;background:var(--bg-chip);display:grid;place-items:center}
.progress .st.done .c{background:var(--brand-orange-ui);color:#fff}
.progress .ln{flex:1;height:2px;background:var(--bg-chip);margin:0 6px 18px}
.progress .ln.done{background:var(--brand-orange-ui)}

/* activity */
.tl-item{display:grid;grid-template-columns:28px 1fr;gap:12px;padding-bottom:14px;position:relative}
.tl-item:last-child{padding-bottom:0}
.tl-item:not(:last-child)::after{content:"";position:absolute;left:13.5px;top:32px;bottom:4px;width:1px;background:var(--border)}
.tl-ic{width:28px;height:28px;border-radius:999px;display:grid;place-items:center;background:var(--bg-chip)}
.tl-ic.o{background:var(--brand-orange-ui);color:#fff}
.tl-ic.d{background:var(--brand-dark);color:#fff}
[data-theme="dark"] .tl-ic.d{background:#fff;color:var(--brand-dark)}
.tl-body{font-size:13px;line-height:18px;padding-top:4px}
.tl-body .who{font-weight:500}
.tl-body .note{background:var(--bg-chip);border-radius:10px;padding:6px 10px;margin-top:6px}

/* footer */
.op-foot{display:flex;align-items:center;gap:8px;padding:12px 16px 12px 20px;border-top:1px solid var(--border);background:var(--bg-sidebar)}
.op-foot .sum{flex:1;min-width:0;line-height:1.15}
.op-foot .sum span{display:block;font-size:12px;color:var(--text-secondary)}
.op-foot .sum b{font-size:20px;line-height:26px;font-weight:600}
.op-foot .icon-btn{background:var(--bg-chip)}

/* Step 11.5: the courier's word and when, and the parcel's history behind its summary line. */
.parcel-news{display:flex;flex-wrap:wrap;align-items:baseline;gap:4px 8px;margin-top:6px;font-size:13px}
.parcel-history{margin-top:12px;padding-top:10px;border-top:1px solid var(--border);font-size:13px}
.parcel-history summary{display:inline-flex;align-items:center;gap:6px;min-height:28px;cursor:pointer;color:var(--text-secondary);font-weight:500;list-style:none}
.parcel-history summary::-webkit-details-marker{display:none}
.parcel-history summary svg{transition:transform .2s ease}
.parcel-history[open] summary svg{transform:rotate(90deg)}
.parcel-history ol{display:grid;gap:10px;margin:8px 0 0;padding:0 0 0 14px;border-left:2px solid var(--border);list-style:none}
.parcel-history li{display:grid;gap:1px}
@media (prefers-reduced-motion: reduce){.parcel-history summary svg{transition:none}}

/* Step 11.6: the courier's record of the number under Customer history's numbers */
/* Step 11.7: every courier's record of the number in one card (docs/03 §4). */
.cr-card{display:grid;gap:10px;margin-top:12px;padding:12px;border-radius:14px;background:var(--bg-chip);animation:rise var(--t) var(--ease) both;overflow-wrap:anywhere}
.cr-head{display:flex;align-items:center;gap:12px;flex-wrap:wrap}
.cr-sum{display:flex;flex:1;flex-wrap:wrap;align-items:center;gap:4px 8px;min-width:0}
.cr-sum>b{flex-basis:100%;font-size:13px}
.cr-ring{position:relative;display:inline-grid;place-items:center;flex:none;width:44px;height:44px}
.cr-ring svg{position:absolute;inset:0;transform:rotate(-90deg)}
.cr-ring circle{fill:none;stroke-width:4}
.cr-ring .trk{stroke:color-mix(in srgb,var(--text-secondary) 22%,transparent)}
.cr-ring .arc{stroke:var(--c);stroke-linecap:round;stroke-dasharray:113.1px;stroke-dashoffset:var(--gap);animation:crFill var(--t-slow) var(--ease) both}
.cr-ring b{font-size:12px;font-weight:600;line-height:1}
.cr-rows{display:grid;gap:6px;margin:0;padding:0;list-style:none}
.cr-rows li{display:grid;grid-template-columns:92px minmax(0,1fr);gap:8px;font-size:13px;line-height:18px}
.cr-rows li>span:first-child{display:inline-flex;align-items:center;gap:6px}
.cr-rows li>span:last-child{font-weight:500}
.cr-rows li.reported{color:var(--text-negative)}
.cr-card small{font-size:12px;color:var(--text-secondary)}
@keyframes crFill{from{stroke-dashoffset:113.1px}}
@media (prefers-reduced-motion:reduce){.cr-card,.cr-ring .arc{animation:none}}
