.followup-card{max-width:1050px;margin:auto}.followup-head{display:flex;justify-content:space-between;align-items:flex-start;gap:24px}.followup-head h3{font-size:32px;margin:8px 0}.followup-head p{font-size:20px;margin:8px 0}.followup-state{display:inline-block;border:1px solid #516780;border-radius:20px;padding:5px 10px;font-size:13px;font-weight:700;background:#1a293c;color:#dce7f6}.followup-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin:24px 0}.followup-grid>div{border:1px solid #354255;border-radius:12px;padding:16px;min-width:0}.followup-grid dt{font-size:13px;color:#aebdce;font-weight:700;margin-bottom:8px}.followup-grid dd{margin:0;white-space:pre-line;overflow-wrap:anywhere;font-size:17px}.followup-payment dd{font-size:24px;font-weight:800}.followup-grid small{display:block;color:#b9c4d3;margin-top:10px;overflow-wrap:anywhere}.followup-actions{display:flex;flex-wrap:wrap;gap:10px;align-items:center}.followup-actions .btn{max-width:100%}.followup-details{margin:24px 0;border-top:1px solid #354255;padding-top:18px}.followup-details summary{cursor:pointer;font-weight:700}.followup-message{overflow-wrap:anywhere;color:#b9d7ff}.followup-message input{width:100%;margin-top:8px}.followup-summary{background:#172232;border:1px solid #354255;border-radius:12px;padding:16px;margin:18px 0}.followup-summary p{font-size:13px;color:#b9c4d3;max-width:900px;margin:8px 0 0}.followup-row .package-history-actions small{max-width:230px;color:#aebdce;font-size:12px;line-height:1.4}.followup-row .package-history-actions>strong{font-size:20px;overflow-wrap:anywhere}.followup-report .package-history-filters{margin-top:18px}.followup-report .package-history-main{min-width:0;overflow-wrap:anywhere}.followup-report .package-history-main .followup-state{align-self:start}.followup-card>.muted{margin-top:20px}
@media(max-width:650px){.followup-head{display:block}.followup-head>.followup-state{margin-top:12px}.followup-grid{grid-template-columns:1fr}.followup-actions>.btn{width:100%}.followup-head h3{font-size:28px}.followup-card{padding:20px}.followup-row .package-history-actions small{max-width:none}.followup-report .followup-actions{align-items:stretch}}.tracking-link{color:#76adff;font-weight:800;text-decoration:underline;text-underline-offset:3px}.tracking-link:hover{color:#b9d7ff}

/* Unified order view: one sale, explicit physical packages. */
.order-card,.order-history{max-width:1120px;margin:0 auto;padding:26px;overflow-wrap:anywhere}
.order-breadcrumb{color:#aeb8c9;font-size:.85rem;margin-bottom:14px}.order-card>.followup-head{margin:24px 0}.order-card h2{font-size:1.8rem;margin:8px 0}.order-customer{font-size:1.12rem}.order-section{margin-top:26px}.order-section h3{margin:0 0 16px}.order-unit-list{display:grid;gap:10px}.order-unit-list article{display:flex;justify-content:space-between;gap:18px;padding:16px;background:#1b2637;border:1px solid #33445c;border-radius:12px}.order-unit-list span{color:#cfdaeb}.order-shipping-total{margin-top:24px;padding:20px;background:#192637;border:1px solid #425879;border-radius:12px}.order-shipping-total>div{display:flex;justify-content:space-between;gap:16px}.order-shipping-total strong{font-size:1.5rem}.order-shipping-total p,.order-shipping-total small{display:block;margin:8px 0 0;color:#bac7d8}.order-parcel{margin:12px 0;border:1px solid #34445d;border-radius:12px;overflow:hidden}.order-parcel>summary{padding:18px;cursor:pointer;background:#1b2536;font-weight:700}.order-parcel>summary .followup-state{margin-left:12px}.order-parcel-body{padding:18px}.order-parcel-body .followup-actions{margin-bottom:18px}.order-history-list{display:grid;gap:14px;margin-top:22px}.order-history-row{display:flex;justify-content:space-between;gap:24px;padding:20px;border:1px solid #34445d;border-radius:14px;background:#1b2637}.order-history-row h3{margin:10px 0}.order-history-row p{margin:8px 0}.order-history-row>div:last-child{min-width:210px;display:flex;flex-direction:column;gap:10px;justify-content:center}.order-history-row>div:last-child>strong{font-size:1.35rem}.order-pagination{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-top:22px}.order-card dd{white-space:pre-line}.order-card [data-tracking-message]{color:#b9cbe2}
@media(max-width:650px){.order-card,.order-history{padding:16px}.order-card h2{font-size:1.4rem}.order-unit-list article,.order-history-row{flex-direction:column;gap:10px}.order-history-row>div:last-child{min-width:0}.order-parcel>summary .followup-state{display:block;margin:8px 0 0}.order-card .followup-head{flex-direction:column}.order-shipping-total>div{flex-wrap:wrap}.order-pagination{flex-wrap:wrap}.order-parcel-body{padding:12px}}

.order-history .package-history-filters{display:grid;grid-template-columns:minmax(160px,1.3fr) minmax(140px,1fr) minmax(150px,1fr) minmax(150px,1fr) auto;gap:12px;align-items:end;margin:22px 0}.order-history .package-history-filters label{display:grid;gap:6px;min-width:0}.order-unit-list article{flex-wrap:wrap}.order-unit-list small{width:100%;color:#b5c3d5}@media(max-width:1100px){.order-history .package-history-filters{grid-template-columns:1fr 1fr}}@media(max-width:650px){.order-history .package-history-filters{grid-template-columns:1fr}}

/* Saved packing photos remain visible on each grouped order. */
.order-history-row.has-photos{display:grid;grid-template-columns:112px minmax(0,1fr) 210px;align-items:center;gap:18px}.order-history-photos{display:grid;grid-template-columns:1fr 1fr;gap:6px;align-self:start}.order-history-photos>a{display:block;min-width:0;border:1px solid #516780;border-radius:10px;overflow:hidden}.order-history-photos>a:first-child{grid-column:1/-1}.order-history-photos img{display:block;width:100%;height:48px;object-fit:cover}.order-history-photos>a:first-child img{height:92px}.order-history-photos .order-history-more{display:grid;place-items:center;min-height:36px;color:#dce7f6;text-decoration:none;font-weight:700}.order-history-photos>a:focus-visible{outline:3px solid #bca5ff;outline-offset:3px}@media(max-width:850px){.order-history-row.has-photos{grid-template-columns:100px minmax(0,1fr)}.order-history-row.has-photos>div:last-child{grid-column:1/-1;min-width:0}}@media(max-width:420px){.order-history-row.has-photos{grid-template-columns:84px minmax(0,1fr);gap:12px}.order-history-photos>a:first-child img{height:84px}.order-history-photos img{height:40px}}
