/* ST687625 门到门 TMS 拖车报价确认弹窗（产品询价）
   token 来源：Figma「拖车询价」CSS 导出（new 20.txt）——
   Dialog 800×520 / mask rgba(0,0,0,.15) / 标题·价格·已选 #EB8613 / 表头 #E6EEFA /
   虚线分隔 #DEE3EA / Tooltip 240px 白卡 / 按钮 #66B1FF·#F4A000 / 滚动条 6px #BFBFBF */

.tms-quote-mask {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, .15);
    z-index: 1040;
}

.tms-quote-dialog {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: column;
    width: 800px;
    min-height: 520px;
    max-height: 90vh;
    background: #FFFFFF;
    border-radius: 2px;
    box-shadow: 0 6px 16px -8px rgba(0, 0, 0, .08), 0 9px 28px rgba(0, 0, 0, .05), 0 12px 48px 16px rgba(0, 0, 0, .03);
    z-index: 1050;
}

/* ===== Top：48px，标题橙 + 关闭 × ===== */
.tms-quote-top {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    flex: none;
    height: 48px;
    padding: 16px 24px;
    box-sizing: content-box;
}

.tms-quote-title {
    font-size: 16px;
    font-weight: 700;
    line-height: 24px;
    color: #EB8613;
}

.tms-quote-close {
    font-size: 16px;
    line-height: 1;
    color: rgba(0, 0, 0, .65);
    cursor: pointer;
}

/* ===== Frame 188 主体：可滚动，行距 10px ===== */
.tms-quote-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 10px;
    overflow-y: auto;
    padding: 8px 16px;
    scrollbar-width: thin;
    scrollbar-color: #BFBFBF transparent;
}

.tms-quote-body::-webkit-scrollbar {
    width: 6px;
}

.tms-quote-body::-webkit-scrollbar-thumb {
    background: #BFBFBF;
    border-radius: 3px;
}

/* ===== 表头：32px #E6EEFA ===== */
.tms-quote-head,
.tms-quote-row {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 12px;
    padding: 4px 12px;
    box-sizing: border-box;
}

.tms-quote-head {
    flex: none;
    height: 32px;
    background: #E6EEFA;
    font-size: 14px;
    color: #333333;
}

.tms-quote-col-rte {
    flex: 1 1 auto;
    min-width: 360px;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 8px;
}

.tms-quote-col-cntr {
    position: relative;
    flex: 0 0 96px;
    text-align: center;
}

.tms-quote-col-op {
    flex: 0 0 56px;
    text-align: center;
}

.tms-quote-info {
    display: inline-block;
    width: 14px;
    height: 14px;
    margin-left: 4px;
    border-radius: 50%;
    background: #004098;
    color: #FFFFFF;
    font-size: 10px;
    line-height: 14px;
    text-align: center;
    vertical-align: middle;
}

/* ===== 数据行：44px+，行间虚线 #DEE3EA ===== */
.tms-quote-row {
    flex: none;
    min-height: 44px;
    border-bottom: 1px dashed #DEE3EA;
}

/* 链路：节点（名 14px #004098 / 码 10px #333）+ 节点间 20px 直线箭头 */
.tms-quote-chain {
    display: inline-flex;
    flex-direction: row;
    align-items: center;
}

.tms-quote-node {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
}

.tms-quote-node-nme {
    font-size: 14px;
    line-height: 18px;
    color: #004098;
    white-space: nowrap;
}

.tms-quote-node-cde {
    font-style: normal;
    font-size: 10px;
    line-height: 12px;
    color: #333333;
}

.tms-quote-arrow {
    position: relative;
    width: 20px;
    height: 0;
    margin: 0 6px;
    border-top: 1px solid #004098;
    flex: none;
}

.tms-quote-arrow::after {
    content: '';
    position: absolute;
    right: -1px;
    top: -4px;
    width: 6px;
    height: 6px;
    border-top: 1px solid #004098;
    border-right: 1px solid #004098;
    transform: rotate(45deg);
}

/* ===== 价格：默认仅总价（￥16px + 数字20px 700 #EB8613） ===== */
.tms-quote-price {
    color: #EB8613;
    white-space: nowrap;
}

.tms-quote-price-sym {
    font-size: 16px;
    font-weight: 400;
}

.tms-quote-price-num {
    font-size: 20px;
    font-weight: 700;
}

.tms-quote-no-price {
    color: #BFBFBF;
    font-size: 14px;
    font-weight: 400;
}

/* ===== 价格明细 Tooltip：默认隐藏，hover 箱型单元格浮出（240px 白卡） ===== */
.tms-quote-tip-card {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%);
    width: 240px;
    padding: 8px;
    box-sizing: border-box;
    background: #FFFFFF;
    border-radius: 2px;
    box-shadow: 0 3px 6px rgba(0, 0, 0, .12), 0 6px 16px rgba(0, 0, 0, .08), 0 9px 28px rgba(0, 0, 0, .05);
    text-align: left;
    z-index: 10;
}

.tms-quote-col-cntr:hover .tms-quote-tip-card {
    display: block;
}

/* 40HQ（倒数第二列）靠弹窗右缘，tooltip 改右对齐防横向溢出 */
.tms-quote-col-cntr:nth-last-child(2) .tms-quote-tip-card {
    left: auto;
    right: 0;
    transform: none;
}

.tms-quote-tip-row {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    line-height: 20px;
}

.tms-quote-tip-label {
    font-size: 12px;
    color: #999999;
}

.tms-quote-tip-value {
    font-size: 14px;
    font-weight: 500;
    color: #333333;
}

.tms-quote-incl {
    margin-top: 6px;
    font-size: 12px;
    line-height: 18px;
    color: #EB8613;
}

/* ===== 操作列：选择 #004098 / 已选 #EB8613 ===== */
.tms-quote-col-op a {
    font-size: 14px;
    color: #004098;
    cursor: pointer;
}

.tms-quote-chosen {
    font-size: 14px;
    color: #EB8613;
}

/* ===== Bottom：60px，免责文案 #999 + 确认(蓝)/取消(橙) ===== */
.tms-quote-bottom {
    display: flex;
    flex-direction: row;
    justify-content: flex-end;
    align-items: center;
    gap: 20px;
    flex: none;
    min-height: 60px;
    padding: 10px 16px;
    box-sizing: border-box;
}

.tms-quote-tip {
    margin-right: auto;
    font-size: 14px;
    color: #e64340;
}

.tms-quote-notice {
    font-size: 14px;
    line-height: 20px;
    text-align: right;
    color: #999999;
}

.tms-quote-btn-confirm {
    flex: none;
    width: 80px;
    height: 35px;
    padding: 0;
    border: none;
    border-radius: 5px;
    background: #66B1FF;
    font-size: 14px;
    font-weight: 500;
    color: #FFFFFF;
}

.tms-quote-btn-cancel {
    flex: none;
    width: 72px;
    height: 35px;
    padding: 0;
    border: none;
    border-radius: 5px;
    background: #F4A000;
    font-size: 14px;
    font-weight: 500;
    color: #FFFFFF;
}
