/* 物流悬浮弹层（查看物流 hover）——订单详情 / 采购组共用 */
.pg-express-popover{
    position: absolute;
    width: 360px;
    max-width: calc(100vw - 16px);
    max-height: min(80vh, 640px);
    overflow: auto;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,.18);
    border: 1px solid rgba(0,0,0,.06);
    padding: 12px 14px;
    z-index: 99999;
    color: #333;
}
.pg-express-cards{
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.pg-express-card{
    border: 1px solid rgba(0,0,0,.08);
    border-radius: 8px;
    padding: 10px 12px;
    background: #fafafa;
}
.pg-express-steps-scroll{
    max-height: 280px;
    overflow: auto;
    margin: 0;
    padding: 0;
}
.pg-express-popover-header{
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 6px;
}
.pg-express-popover-title{
    font-size: 14px;
    font-weight: 600;
    color: #333;
    line-height: 24px;
}
.pg-express-popover-more{
    font-size: 12px;
    color: #999;
    text-decoration: none;
}
.pg-express-popover-more:hover{
    color: #DC2828;
    text-decoration: underline;
}
.pg-express-popover-subtitle{
    font-size: 12px;
    color: #666;
    line-height: 18px;
    margin-bottom: 10px;
}
.pg-express-popover-title .btn-copy{
    display: inline-block;
    margin-left: 8px;
    padding: 0 8px;
    height: 22px;
    line-height: 20px !important;
    font-size: 12px;
    font-weight: 400;
    color: #666;
    border: 1px solid #ddd;
    border-radius: 4px;
    vertical-align: middle;
    text-decoration: none;
}
.pg-express-popover-title .btn-copy:hover{
    color: #DC2828;
    border-color: #DC2828;
}

.pg-express-tabs{
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 4px;
    border-bottom: 1px solid #eee;
}
.pg-express-tab{
    display: inline-block;
    max-width: 100%;
    padding: 6px 2px 8px;
    font-size: 14px;
    line-height: 20px;
    color: #333;
    border: none;
    border-bottom: 2px solid transparent;
    border-radius: 0;
    text-decoration: none;
    white-space: nowrap;
    margin-bottom: -1px;
}
.pg-express-tab:hover{
    color: #e60012;
}
.pg-express-tab.active{
    color: #e60012;
    background: transparent;
    border-bottom-color: #e60012;
}
.pg-express-tab-panel{
    padding-top: 4px;
}
.pg-express-meta{
    margin: 6px 0 8px;
}

.pg-express-steps{
    margin-top: 6px;
    margin: 0;
    padding: 0;
    list-style: none;
}
.pg-express-step{
    display: grid;
    grid-template-columns: 80px 24px 1fr;
    column-gap: 10px;
    align-items: start;
    padding: 8px 0;
}
.pg-express-step:last-child{
    padding-bottom: 2px;
}
.pg-express-step-time{
    font-size: 12px;
    color: #999;
    line-height: 16px;
    text-align: right;
    width: 80px;
}
.pg-express-step-axis{
    position: relative;
    height: 100%;
    min-height: 26px;
}
.pg-express-step-axis:before{
    content: '';
    position: absolute;
    left: 11px;
    top: 2px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #fff;
    border: 2px solid #d9d9d9;
    box-sizing: border-box;
}
.pg-express-step-axis:after{
    content: '';
    position: absolute;
    left: 16px;
    top: 16px;
    bottom: -12px;
    width: 2px;
    background: #eee;
}
.pg-express-step:last-child .pg-express-step-axis:after{
    display: none;
}
.pg-express-step-content{
    margin-top: -2px;
}
.pg-express-step-title{
    font-size: 14px;
    color: #333;
    line-height: 20px;
    font-weight: 600;
    word-break: break-all;
}
.pg-express-step-desc{
    margin-top: 2px;
    font-size: 12px;
    color: #999;
    line-height: 18px;
    word-break: break-all;
}
.pg-express-step-info{
    font-size: 14px;
    color: #333;
    line-height: 20px;
    word-break: break-all;
}

.pg-express-step:first-child .pg-express-step-axis:before{
    background: #f8b24a;
    border-color: #f8b24a;
}
.pg-express-step:first-child .pg-express-step-info{
    font-weight: 600;
}
.pg-express-step:first-child .pg-express-step-title{
    font-weight: 600;
}

.pg-express-step:not(:first-child) .pg-express-step-info{
    color: #9b9b9b;
    font-weight: 500;
}
.pg-express-step:not(:first-child) .pg-express-step-title{
    color: #9b9b9b;
    font-weight: 500;
}
.pg-express-step:not(:first-child) .pg-express-step-desc{
    color: #c4c4c4;
}
.pg-express-step:not(:first-child) .pg-express-step-time{
    color: #c4c4c4;
}
.pg-express-step:not(:first-child) .pg-express-step-axis:before{
    border-color: #e2e2e2;
}

.pg-express-step .muted{
    color: #999;
}

.express-icon{
    line-height: 16px;
    cursor: pointer;
    color: #e60012;
}
.express-icon img {
    width: 16px;
    height: 16px;
    vertical-align: middle;
    margin-right: 5px;
}
.pg-last-express{
    background-color: #f5f5f5;
    color: #333;
    font-size: 10px;
    word-break: break-word;
    margin-top: 8px;
    padding: 3px;
    text-align: left;
}
.pg-last-express span{
    color: #f29600;
    margin-right: 8px;
}
