
.modal.trace-modal{max-width:1420px;width:calc(100vw - 48px);max-height:92dvh;display:flex;flex-direction:column;overflow:hidden;border:1px solid #dce5e9;border-radius:18px;box-shadow:0 30px 110px #102b3a40}.trace-modal>.panel-head{flex:none;background:#f8fbfb}.trace-modal>.panel-body{flex:1;min-height:0;max-height:none;overflow:auto;padding:26px;scrollbar-width:thin;scrollbar-color:#adc8c5 #f5f9f8}.trace-icon{width:19px;height:19px;flex:none;vertical-align:middle}.trace-heading{display:flex;align-items:center;justify-content:space-between;gap:18px;margin-bottom:22px}.trace-env{display:inline-flex;color:#1c7566;background:#eaf5ef;border-radius:20px;padding:6px 11px;font-size:11px;font-weight:650}.trace-heading h3{font-size:27px;letter-spacing:-.7px;margin:10px 0 7px;color:#183944}.trace-heading p{font-size:12px;color:#6f8590;margin:0}.trace-heading .btn{gap:8px;min-height:40px}
.trace-cards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin:20px 0}.trace-cards .card{padding:20px;border:1px solid #e0e9ed;border-radius:13px;background:#fbfdfd;display:flex;flex-direction:column;gap:9px;box-shadow:none}.trace-cards small{font-size:11px;line-height:1.6;color:#718692}.trace-cards strong{font-size:20px;line-height:1.35;color:#1b484a;overflow-wrap:anywhere}.trace-cards p{font-size:12px;color:#4e6b75;margin:0;line-height:1.6}.trace-coverage{display:flex;flex-wrap:wrap;gap:8px;margin:14px 0 20px}.trace-coverage>span{display:inline-flex;align-items:center;gap:7px;padding:7px 10px;border-radius:8px;background:#f2f6f8;color:#607986;font-size:11px;line-height:1.5}.trace-coverage .trace-icon{width:15px;height:15px;color:#579588}
.trace-customer{border:1px solid #cfdfda;border-radius:14px;background:linear-gradient(110deg,#edf7f0,#f7fbfa);padding:18px}.trace-customer-intro{display:flex;align-items:center;gap:13px}.trace-customer-intro h4{font-size:14px;margin:0 0 5px;color:#254c46}.trace-customer-intro p{font-size:12px;line-height:1.5;color:#719087;margin:0}.trace-customer-intro .btn{margin-left:auto;min-height:40px;border-color:#b7d2c5;color:#235d4f;background:#fff}.trace-customer-avatar{display:grid;place-items:center;width:42px;height:42px;border-radius:12px;background:#dbeee3;color:#2d7760;flex:none}.trace-customer-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px;padding-top:20px;margin-top:18px;border-top:1px solid #d4e4dc}.trace-customer-grid small{display:block;font-size:11px;color:#6a857c;margin-bottom:6px}.trace-customer-grid strong{font-size:14px;color:#254c46;overflow-wrap:anywhere}.trace-customer-grid p{font-size:13px;line-height:1.7;margin:0;color:#385c52;overflow-wrap:anywhere}.trace-customer [hidden]{display:none!important}
.trace-section-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;margin:22px 0 14px}.trace-section-heading h4{font-size:15px;margin:0 0 5px;color:#254651}.trace-section-heading p{font-size:12px;color:#7b8f99;margin:0;line-height:1.6}.trace-section-heading>span{font-size:11px;border-radius:18px;background:#eef4f5;color:#58717f;padding:6px 10px;white-space:nowrap}.trace-journey{display:flex;overflow-x:auto;list-style:none;padding:4px 0 16px;margin:0;scrollbar-width:thin;scrollbar-color:#adc8c5 #f5f9f8}.trace-journey>li{display:flex;align-items:center;flex:none}.trace-journey-node{display:flex;gap:11px;width:230px;min-height:94px;padding:15px;border:1px solid #d5e4df;border-radius:12px;background:linear-gradient(140deg,#f3f9f5,#fff)}.trace-step{display:grid;place-items:center;flex:none;width:27px;height:27px;border-radius:50%;font-size:11px;color:#236c58;font-weight:700;background:#dff0e4}.trace-journey-node strong{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;font-size:12px;line-height:1.55;color:#325c55}.trace-journey-node time{display:block;font-size:10px;color:#7a948b;margin-top:7px;font-variant-numeric:tabular-nums}.trace-journey-arrow{display:grid;place-items:center;width:42px;color:#55a08b}.trace-journey-arrow .trace-icon{width:23px;height:23px}
.trace-disclosure{border:1px solid #dfe8ed;border-radius:11px;margin:12px 0;background:#fff;overflow:hidden}.trace-disclosure>summary{display:flex;align-items:center;gap:10px;list-style:none;cursor:pointer;font-size:13px;font-weight:600;color:#375b68;padding:15px;min-height:46px;background:#fafcfd}.trace-disclosure>summary::marker{content:''}.trace-disclosure>summary::-webkit-details-marker{display:none}.trace-disclosure>summary::before{display:none!important}.trace-disclosure>summary:hover{background:#f0f7f4}.trace-disclosure-icon{display:grid;place-items:center;width:26px;height:26px;border-radius:8px;background:#edf3f5;color:#609285;flex:none}.trace-disclosure-icon .trace-icon{width:15px;height:15px;transition:transform .18s}.trace-disclosure[open]>summary .trace-disclosure-icon .trace-icon{transform:rotate(90deg)}.trace-disclosure[open]>summary{border-bottom:1px solid #e3ebee}.trace-disclosure-body{padding:18px}.trace-nested{margin:10px 0 0;border-radius:8px;border-color:#e5edf0}.trace-nested>summary{font-size:11px;padding:8px 10px;min-height:35px;background:#fff}.trace-nested .trace-disclosure-icon{width:20px;height:20px;background:#f1f6f7}.trace-nested .trace-disclosure-body{padding:12px}.trace-touch-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px}.trace-touch-grid h4{font-size:12px;color:#295951;margin:0 0 12px}.trace-facts{margin:0;font-size:12px}.trace-facts>div{display:grid;grid-template-columns:135px minmax(0,1fr);gap:10px;padding:6px 0;border-bottom:1px solid #f0f3f5;line-height:1.6}.trace-facts dt{color:#7a8f99}.trace-facts dd{margin:0;color:#355661;overflow-wrap:anywhere}.trace-integrity{display:flex;align-items:center;gap:12px;padding:14px;border-radius:10px;background:#f4f7f8;margin-bottom:16px;color:#496570}.trace-integrity.is-verified{background:#edf7ef;color:#337651}.trace-integrity strong{font-size:12px}.trace-integrity p{font-size:11px;margin:5px 0 0}.trace-disclosure-body>.muted{font-size:11px;line-height:1.7;margin:14px 0 0}
.trace-filters{margin:16px 0;padding:16px;background:#f5f8fa;border:1px solid #e4ebef;border-radius:12px;gap:12px}.trace-filters label{flex:1;min-width:140px;color:#5b7783;font-size:11px}.trace-filters input,.trace-filters select{width:100%;min-height:40px}.trace-filters .btn{min-height:40px}.trace-result-count{font-size:11px;color:#7a8f99;margin:15px 0}.trace-timeline{list-style:none;padding:0 0 0 8px;margin:0}.trace-timeline>li{position:relative;display:grid;grid-template-columns:145px minmax(0,1fr);gap:22px;border-left:2px solid #dbece4;border-bottom:1px solid #edf1f4;padding:18px 0 18px 22px;margin:0}.trace-timeline>li::before{content:'';position:absolute;width:8px;height:8px;border:3px solid #eef7f1;border-radius:50%;background:#5d9f86;left:-8px;top:24px}.trace-time{display:flex;flex-direction:column;gap:7px;font-size:11px;line-height:1.6;color:#3d5b68;font-variant-numeric:tabular-nums}.trace-time small{font-size:10px;color:#91a1a9}.trace-event{display:flex;gap:12px;min-width:0}.trace-event>div{min-width:0;flex:1}.trace-event>div>strong{font-size:13px;color:#284e54}.trace-event-icon{display:grid;place-items:center;flex:none;background:#f0f6f5;width:32px;height:32px;border-radius:9px;color:#649d8f}.trace-event-icon .trace-icon{width:17px;height:17px}.trace-page-title{font-size:12px;color:#526e79;line-height:1.7;margin:6px 0}.trace-path{font-size:10px;color:#94a2ab;line-height:1.6;overflow-wrap:anywhere;margin:0}.trace-event .trace-nested{max-width:660px}.trace-badge{display:block;font-size:11px;margin-top:5px}.trace-open,.customer-open{margin-top:8px}.order-status{display:inline-flex;border-radius:6px;font-size:11px;font-weight:650;padding:4px 8px;background:#edf3f6;color:#526f7d}.order-status.is-received,.order-status.is-delivered{background:#e7f4ec;color:#25684a}.order-status.is-failed,.order-status.is-cancelled{background:#fff0ed;color:#a35a49}.trace-modal :focus-visible{outline:3px solid #33987e;outline-offset:3px}
@media(max-width:1000px){.trace-touch-grid{grid-template-columns:1fr}.trace-customer-grid{grid-template-columns:1fr 1fr}.trace-cards strong{font-size:17px}.trace-modal>.panel-body{padding:20px}}
@media(max-width:700px){.modal.trace-modal{width:calc(100vw - 12px);max-height:96dvh;border-radius:13px}.trace-modal>.panel-body{padding:15px}.trace-heading{align-items:flex-start;flex-wrap:wrap}.trace-heading h3{font-size:23px}.trace-heading .btn{font-size:11px;padding:9px 12px}.trace-cards{grid-template-columns:1fr;gap:9px}.trace-cards .card{padding:15px}.trace-cards strong{font-size:18px}.trace-customer{padding:14px}.trace-customer-intro{flex-wrap:wrap}.trace-customer-intro>div{flex:1;min-width:160px}.trace-customer-intro .btn{width:100%;margin-left:0}.trace-customer-grid{grid-template-columns:1fr;gap:16px}.trace-journey{display:grid;max-height:340px;overflow:auto;padding-right:7px}.trace-journey>li{flex-direction:column;align-items:center;width:100%}.trace-journey-node{width:100%;min-height:70px;padding:12px}.trace-journey-arrow{height:29px}.trace-journey-arrow .trace-icon{transform:rotate(90deg);width:19px;height:19px}.trace-timeline>li{grid-template-columns:1fr;gap:10px;padding-left:16px}.trace-time{flex-direction:row;justify-content:space-between;flex-wrap:wrap}.trace-facts>div{grid-template-columns:115px minmax(0,1fr);font-size:11px}.trace-filters label{min-width:calc(50% - 12px)}.trace-filters .btn{width:100%}.trace-disclosure>summary{padding:12px;font-size:12px}.trace-nested>summary{min-height:44px}.trace-disclosure-body{padding:12px}}
@media(prefers-reduced-motion:reduce){.trace-disclosure-icon .trace-icon{transition:none}}

.trace-customer-actions{display:flex;align-items:center;justify-content:flex-end;gap:6px;flex-wrap:wrap;margin-left:auto}.trace-customer-actions .btn{margin-left:0}.customer-history{border-top:1px solid #cfdfda;margin-top:12px;padding-top:4px}.customer-crm-identity{display:grid;gap:5px;font-size:12px;margin:10px 0}.customer-crm-identity small{overflow-wrap:anywhere}.customer-source-status{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:8px;margin:10px 0}.customer-source-status>div{padding:9px;border:1px solid #d5e3dd;background:#fff;display:grid;gap:4px;font-size:11px}.customer-source-status small{font-size:10px;color:#64748b;line-height:1.4}.customer-history-event{border-top:1px solid #dce5e1;padding:10px 0;font-size:12px}.customer-history-event-head{display:flex;justify-content:space-between;gap:10px;font-size:10px;color:#64748b;margin-bottom:5px}.customer-history-event>.badge{margin-left:7px}.customer-history-event>small{display:block;font-size:10px;margin-top:4px;color:#64748b}.customer-history-fields{margin:0;font-size:11px}.customer-history-fields>div{display:grid;grid-template-columns:minmax(110px,1fr) minmax(0,3fr);gap:10px;padding:5px 0;border-bottom:1px solid #edf1ef}.customer-history-fields dt{color:#64748b;overflow-wrap:anywhere}.customer-history-fields dd{margin:0;white-space:pre-wrap;overflow-wrap:anywhere}.customer-history-pagination{display:flex;align-items:center;justify-content:space-between;gap:10px;padding-top:10px;font-size:11px}.customer-history .store-filters input{width:min(300px,100%)}@media(max-width:700px){.trace-customer-actions{width:100%;margin:0;justify-content:stretch}.trace-customer-actions .btn{width:auto;flex:1;min-height:38px;font-size:11px}.customer-history-event-head{flex-direction:column;gap:3px}.customer-history-fields>div{grid-template-columns:1fr}.customer-source-status{grid-template-columns:1fr 1fr}.customer-history-pagination{font-size:10px}}
