/* 报价新增页面样式 */
.quotation-add-page {
    min-height: calc(100vh - 200px);
}

/* 详情灌入期：主区域先隐身，灌完一次性显现，避免中间多次重排闪烁 */
.quotation-add-page > .quotation-sheet-bar-wrap,
.quotation-add-page > #quotation-container {
    transition: opacity 0.18s ease;
}
.quotation-add-page.qa-hydrating > .quotation-sheet-bar-wrap,
.quotation-add-page.qa-hydrating > #quotation-container {
    opacity: 0 !important;
    pointer-events: none !important;
    transition: none !important;
}
.quotation-add-page.qa-hydrating,
.quotation-add-page.qa-hydrating * {
    animation: none !important;
    scroll-behavior: auto !important;
}
.quotation-add-page.qa-hydrating .collapse {
    transition: none !important;
}
#qa-process-time-box {
    min-height: 40px;
}
#qa-pt-list {
    min-height: 48px;
}
#qa-process-time-box #qa-pt-status {
    font-weight: 600;
    letter-spacing: 0.02em;
    vertical-align: middle;
}
#qa-process-time-box .qa-pt-recalc-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    margin-left: 0.15rem;
    padding: 0.12rem 0.55rem;
    border: 1px solid #94b6d8;
    border-radius: 999px;
    background: linear-gradient(180deg, #f7fbff 0%, #e8f2fb 100%);
    color: #1d5f9a;
    font-size: 0.75rem;
    font-weight: 600;
    line-height: 1.3;
    text-decoration: none;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.85);
    transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}
#qa-process-time-box .qa-pt-recalc-btn i {
    font-size: 0.85rem;
    line-height: 1;
}
#qa-process-time-box .qa-pt-recalc-btn:hover {
    background: linear-gradient(180deg, #eef6fc 0%, #d7ebf8 100%);
    border-color: #6f9fc9;
    color: #0f4d82;
}
#qa-process-time-box .qa-pt-recalc-btn:active {
    background: #d3e7f6;
    box-shadow: inset 0 1px 2px rgba(15, 77, 130, 0.12);
}
#qa-process-time-box .qa-pt-recalc-btn:focus-visible {
    outline: 2px solid rgba(29, 95, 154, 0.35);
    outline-offset: 1px;
}

/* 配套产品页：取消主报价区留下的空白占位，工作区顶对齐页签 */
.quotation-add-page.qa-acc-mode {
    min-height: 0;
}
.quotation-add-page.qa-acc-mode > .d-flex.justify-content-between.align-items-center.mb-3 {
    display: none !important;
}
#qa-accessory-workspace {
    margin-top: 0;
}
#qa-accessory-workspace .qa-acc-side {
    position: sticky;
    top: 20px;
}

/* 子报价栏：位于报价主体上方，圆角矩形标签（宽窄屏与主内容对齐） */
.quotation-sheet-bar-wrap {
    position: relative;
    z-index: 1035;
    width: 100%;
    margin-bottom: 12px;
    padding: 0;
}

.quotation-add-page.narrow-mode .quotation-sheet-bar-wrap {
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.quotation-add-page.wide-mode .quotation-sheet-bar-wrap {
    max-width: 100%;
}

.quotation-sheet-bar {
    display: flex;
    align-items: center;
    min-height: 44px;
    background-color: var(--brand, #0d1f44);
    border: 1px solid var(--brand-2, #123366);
    border-radius: 5px;
    box-shadow: 0 1px 3px rgba(13, 31, 68, 0.25);
    padding: 6px 8px;
    gap: 6px;
    user-select: none;
    width: 100%;
}

.quotation-sheet-bar .sheet-bar-group {
    display: flex;
    flex-direction: column;
    justify-content: center;
    flex-shrink: 0;
    padding: 4px 10px;
    margin-right: 2px;
    border-right: 1px solid rgba(255, 255, 255, 0.2);
    min-width: 100px;
    max-width: 150px;
    border-radius: 5px;
    background: rgba(255, 255, 255, 0.08);
}

.quotation-sheet-bar .sheet-bar-label {
    font-size: 10px;
    color: rgba(255, 255, 255, 0.65);
    line-height: 1.1;
}

.quotation-sheet-bar .sheet-group-no {
    font-size: 11px;
    font-weight: 600;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.quotation-sheet-bar .sheet-scroll-btn {
    flex-shrink: 0;
    width: 26px;
    height: 28px;
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 5px;
    background: rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.9);
    font-size: 15px;
    line-height: 1;
    padding: 0;
    cursor: pointer;
}

.quotation-sheet-bar .sheet-scroll-btn:hover {
    background: rgba(255, 255, 255, 0.22);
    border-color: rgba(255, 255, 255, 0.55);
    color: #fff;
}

.quotation-sheet-bar .sheet-tabs-scroller {
    flex: 1;
    min-width: 0;
    overflow-x: auto;
    overflow-y: hidden;
    display: flex;
    align-items: center;
    scrollbar-width: none;
}

.quotation-sheet-bar .sheet-tabs-scroller::-webkit-scrollbar {
    display: none;
}

.quotation-sheet-bar .sheet-tabs {
    display: flex;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 2px 4px;
    gap: 6px;
    flex-wrap: nowrap;
}

.quotation-sheet-bar .sheet-tab {
    flex-shrink: 0;
    margin: 0;
    padding: 0;
}

.quotation-sheet-bar .sheet-tab-inner {
    display: flex;
    align-items: center;
    position: relative;
    gap: 2px;
}

.quotation-sheet-bar .sheet-tab-btn {
    display: block;
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 5px;
    background: rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.92);
    font-size: 12px;
    line-height: 1.3;
    padding: 5px 14px;
    cursor: pointer;
    white-space: nowrap;
    max-width: 140px;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: background 0.12s ease, color 0.12s ease, border-color 0.12s ease;
}

.quotation-sheet-bar .sheet-tab-btn:hover {
    background: rgba(255, 255, 255, 0.22);
    border-color: rgba(255, 255, 255, 0.5);
    color: #fff;
}

.quotation-sheet-bar .sheet-tab.active .sheet-tab-btn {
    background: #fff;
    color: var(--brand, #0d1f44);
    font-weight: 700;
    border-color: #fff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.quotation-sheet-bar .sheet-tab-btn .sheet-tab-status {
    font-size: 10px;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.65);
    margin-left: 4px;
}

.quotation-sheet-bar .sheet-tab.active .sheet-tab-btn .sheet-tab-status {
    color: #6c757d;
    font-weight: 500;
}

.quotation-sheet-bar .sheet-tab-close {
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    margin: 0;
    padding: 0;
    border: none;
    border-radius: 5px;
    background: transparent;
    color: rgba(255, 255, 255, 0.75);
    font-size: 13px;
    line-height: 1;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.12s ease, background 0.12s ease, color 0.12s ease;
}

.quotation-sheet-bar .sheet-tab:hover .sheet-tab-close,
.quotation-sheet-bar .sheet-tab.active .sheet-tab-close {
    opacity: 1;
}

.quotation-sheet-bar .sheet-tab.active .sheet-tab-close {
    color: #6c757d;
}

.quotation-sheet-bar .sheet-tab-close:hover {
    background: rgba(220, 53, 69, 0.35);
    color: #ffb3bc;
}

.quotation-sheet-bar .sheet-tab.active .sheet-tab-close:hover {
    background: rgba(220, 53, 69, 0.15);
    color: #c82333;
}

.quotation-sheet-bar .sheet-add-btn {
    flex-shrink: 0;
    width: 30px;
    height: 28px;
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 5px;
    background: rgba(255, 255, 255, 0.12);
    font-size: 20px;
    font-weight: 300;
    line-height: 1;
    color: rgba(255, 255, 255, 0.92);
    cursor: pointer;
    padding: 0;
}

.quotation-sheet-bar .sheet-add-btn:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.55);
}

.quotation-sheet-bar .sheet-tab-badge {
    display: inline-grid;
    place-items: center;
    min-width: 18px;
    height: 18px;
    margin-left: 4px;
    padding: 0 5px;
    border-radius: 10px;
    background: #0d6efd;
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    line-height: 1;
    vertical-align: middle;
}

.quotation-sheet-bar .sheet-tab.active .sheet-tab-badge {
    background: #0d6efd;
    color: #fff;
}

.shipping-label-input {
    font-size: 0.8125rem !important;
    font-weight: 500;
}

.quotation-sheet-bar .sheet-more-menu {
    flex-shrink: 0;
    position: static;
}

/* 高于右侧工序明细 sticky（1020），低于顶部导航（1050） */
.quotation-sheet-bar .sheet-more-menu .dropdown-menu {
    z-index: 1045;
    font-size: 0.8125rem;
    min-width: 9.5rem;
}

.quotation-sheet-bar .sheet-more-menu .dropdown-item {
    font-size: 0.8125rem;
    padding: 0.35rem 0.75rem;
}

.quotation-sheet-bar .sheet-more-btn {
    width: 30px;
    height: 28px;
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 5px;
    background: rgba(255, 255, 255, 0.12);
    font-size: 14px;
    color: rgba(255, 255, 255, 0.92);
    cursor: pointer;
    padding: 0;
}

.quotation-sheet-bar .sheet-more-btn::after {
    display: none;
}

.quotation-sheet-bar .sheet-more-btn:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.55);
    color: #fff;
}

.quotation-sheet-bar .sheet-tabs-empty {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.75);
    padding: 6px 12px;
    white-space: nowrap;
    border: 1px dashed rgba(255, 255, 255, 0.35);
    border-radius: 5px;
    background: rgba(255, 255, 255, 0.08);
}

/* 工序明细：成本眼睛图标（米黄色） */
.quotation-price-area .btn-quotation-cost-eye {
    color: #e8d4a8 !important;
    text-decoration: none;
}
.quotation-price-area .btn-quotation-cost-eye:hover,
.quotation-price-area .btn-quotation-cost-eye:focus {
    color: #f5e6c8 !important;
}
.quotation-price-area .price-cost-unit-cell {
    font-size: 0.8125rem;
    font-weight: 500;
    vertical-align: middle;
}
.quotation-price-area .price-foot-cost-cell {
    line-height: 1.25;
}
.quotation-price-area .price-foot-cost-cell .price-cost-unit-cell {
    margin-top: 0.125rem;
}

/* 客户报价列：可手填 */
.quotation-price-area .price-custom-quote-input,
.quotation-price-area .price-custom-profit-input {
    width: 76px;
    min-width: 64px;
    max-width: 100%;
    padding: 0.15rem 0.35rem;
    font-size: 0.8125rem;
    display: inline-block;
}

.quotation-price-area .price-foot-custom-cell {
    line-height: 1.25;
    vertical-align: middle;
}

.quotation-price-area .custom-quote-profit-row {
    font-size: 0.8125rem;
}

.quotation-price-area .custom-quote-profit-row .price-custom-profit-input {
    width: 76px;
}

/* 宽窄屏切换样式 */
.quotation-add-page.narrow-mode #quotation-container {
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

@media (min-width: 992px) {
    /* 右栏加宽，避免工序明细 6 列挤成竖排字 */
    .quotation-add-page.narrow-mode #quotation-container > .col-lg-6 {
        flex: 0 0 calc(50% - 80px);
        max-width: calc(50% - 80px);
    }
    .quotation-add-page.narrow-mode #quotation-container > .col-lg-4 {
        flex: 0 0 calc(33.33333333% + 80px);
        max-width: calc(33.33333333% + 80px);
    }
}

.quotation-add-page.wide-mode #quotation-container {
    max-width: 100%;
}

/* 配置模块样式 */
.config-module {
    background: #fff;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.config-module:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.config-module-header {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 12px 16px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #dee2e6;
    transition: background 0.2s ease;
}

.config-module-header:hover {
    background: linear-gradient(135deg, #e9ecef 0%, #dee2e6 100%);
}

.config-module-header[aria-expanded="true"] .collapse-icon {
    transform: rotate(180deg);
}

.collapse-icon {
    transition: transform 0.3s ease;
    color: #6c757d;
}

.step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    border: 2px solid #6c757d;
    background: transparent;
    color: #6c757d;
    border-radius: 50%;
    font-size: 0.75rem;
    font-weight: 500;
    margin-right: 2px;
}

/* 工序标题字号调小 */
.config-module-header h6 {
    font-size: 0.9rem;
    font-weight: 500;
}

/* 已配置完成的工序 - 使用绿色打勾圆圈 */
.step-number.completed {
    border-color: #28a745;
    background: #28a745;
    color: #fff;
}

.step-number.completed::after {
    content: '✓';
    font-size: 0.9rem;
    font-weight: bold;
}

/* 部分配置的工序 - 使用黄色圆圈 */
.step-number.partial {
    border-color: #ffc107;
    background: #ffc107;
    color: #fff;
}

.config-module-body {
    padding: 20px;
    background: #fff;
}

/* 价格显示区样式 */
.quotation-price-area {
    position: sticky;
    z-index: 1020;
}

.quotation-price-area .card {
    border: 1px solid #dee2e6;
    border-radius: 8px;
}

.quotation-price-area .card-header {
    border-radius: 8px 8px 0 0;
    padding: 12px 16px;
}

/* 右栏疏密：统一栈间距，减少套娃边框与常驻说明 */
.quotation-price-area .card-body.qa-side-stack {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 16px 14px;
}
.quotation-price-area .qa-side-block {
    border: 1px solid #e8edf3;
    border-radius: 8px;
    padding: 12px;
    background: #fff;
}
.quotation-price-area .qa-side-field .form-label {
    margin-bottom: 0.4rem;
}
.quotation-price-area .qa-side-hint {
    margin-top: 0.35rem;
    font-size: 0.7rem;
    line-height: 1.35;
    color: #94a3b8;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: normal;
}
.quotation-price-area .qa-compose-row {
    padding: 0.35rem 0;
    border-bottom: 1px solid #f1f5f9;
}
.quotation-price-area .qa-compose-row:last-child {
    border-bottom: 0;
}
.quotation-price-area .qa-freight-details {
    margin-top: 0.5rem;
    font-size: 0.8125rem;
}
.quotation-price-area .qa-freight-summary {
    cursor: pointer;
    color: #64748b;
    list-style: none;
}
.quotation-price-area .qa-freight-summary::-webkit-details-marker {
    display: none;
}
.quotation-price-area .qa-freight-summary::before {
    content: '▸';
    display: inline-block;
    margin-right: 4px;
    color: #94a3b8;
}
.quotation-price-area .qa-freight-details[open] .qa-freight-summary::before {
    content: '▾';
}
.quotation-price-area .qa-freight-body {
    margin-top: 0.35rem;
    padding-top: 0.15rem;
}
.quotation-price-area .qa-side-fold {
    border: 1px solid #e8edf3;
    border-radius: 8px;
    padding: 10px 12px;
    background: #fff;
}
.quotation-price-area .qa-side-actions {
    margin-top: 0.15rem;
}
.quotation-price-area .qa-price-summary-block {
    padding: 10px;
}
.quotation-price-area .qa-price-summary-block .price-summary {
    margin: 0;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}
.quotation-price-area .qa-price-summary-block .table {
    font-size: 0.8125rem;
    min-width: 420px;
    table-layout: auto;
}
.quotation-price-area .qa-price-summary-block .table > :not(caption) > * > * {
    padding: 0.4rem 0.45rem;
    vertical-align: middle;
}
.quotation-price-area .qa-price-summary-block .price-name-cell,
.quotation-price-area .qa-price-summary-block th:first-child,
.quotation-price-area .qa-price-summary-block td:first-child {
    white-space: nowrap;
    word-break: keep-all;
    min-width: 4.5rem;
}
.quotation-price-area .qa-price-summary-block .settle-col,
.quotation-price-area .qa-price-summary-block .price-settle-cell {
    white-space: nowrap;
    width: 1%;
    min-width: 3.75rem;
    padding-left: 0.5rem !important;
    padding-right: 0.5rem !important;
    font-size: 0.95rem;
}
.quotation-price-area .qa-price-summary-block .qa-pt-hours-col,
.quotation-price-area .qa-price-summary-block .qa-pt-hours-cell {
    white-space: nowrap;
    width: 1%;
    min-width: 4rem;
    padding-left: 0.5rem !important;
    padding-right: 0.55rem !important;
    font-size: 0.95rem;
    font-weight: 600;
}
.quotation-price-area .qa-price-summary-block .price-custom-quote-input {
    min-width: 4.25rem;
    max-width: 5.5rem;
    margin-left: auto;
}
.quotation-price-area #qa-process-time-box .qa-pt-time-table {
    border: 0;
}
.quotation-price-area #qa-process-time-box .qa-pt-time-table > :not(caption) > * > * {
    padding: 0.3rem 0.4rem;
    border-color: #eef2f7;
}
.quotation-price-area #qa-process-time-box .table-bordered {
    border: 0;
}

.quotation-price-area .price-name-cell {
    vertical-align: middle;
}
.quotation-price-area .price-row-tip {
    margin-left: 4px;
    cursor: help;
    font-size: 0.875rem;
    vertical-align: -1px;
}
.tooltip.qa-price-row-tip .tooltip-inner {
    white-space: pre-line;
    text-align: left;
    max-width: 280px;
}

/* 工序控制台样式 */
.process-control-panel {
    z-index: 1020 !important;
}

.process-control-panel .card {
    border: 1px solid #dee2e6;
    border-radius: 8px;
}

.process-control-item {
    display: flex;
    align-items: flex-start;
    padding: 4px 0;
}

.process-control-item label {
    cursor: pointer;
    font-size: 0.9rem;
    margin-bottom: 0;
    user-select: none;
}

.process-control-item:has(.form-check-input:not(.process-sub-toggle)) {
    align-items: center;
}

.process-control-item .form-check-input:checked {
    background-color: #0D1F44;
    border-color: #0D1F44;
}

.process-control-item .form-check-input:focus {
    border-color: #0D1F44;
    outline: 0;
    box-shadow: 0 0 0 0.25rem rgba(13, 31, 68, 0.25);
}

.process-sub-control-list {
    margin-top: 8px;
    margin-left: 26px;
    width: calc(100% - 26px);
}

.process-main-label {
    font-weight: 500;
    color: #495057;
    display: flex;
    align-items: center;
    flex: 1;
}

.process-checkbox-placeholder {
    width: 18px;
    height: 18px;
    display: inline-block;
    margin-right: 8px;
    flex-shrink: 0;
}

.process-control-item:has(.process-main-label) {
    align-items: flex-start;
    flex-wrap: wrap;
}

.process-control-item:has(.process-main-label) > .process-main-label {
    width: calc(100% - 26px);
    margin-bottom: 0;
}

.process-toggle-icon {
    color: #6c757d;
    cursor: pointer;
}

.process-sub-modules {
    border-left: 3px solid #e9ecef;
    padding-left: 15px;
    margin-left: 10px;
}

.price-item {
    transition: all 0.2s ease;
}

.price-item:hover {
    background: #f8f9fa;
    padding-left: 8px;
    padding-right: 8px;
    margin-left: -8px;
    margin-right: -8px;
    border-radius: 4px;
}

.price-summary table {
    font-size: 0.85rem;
    margin-bottom: 0;
}

.price-summary table thead th {
    background-color: #f8f9fa;
    font-weight: 600;
    padding: 8px;
    border-bottom: 2px solid #dee2e6;
}

.price-summary table thead th:first-child {
    background-color: #fff3cd;
}

.price-summary table thead th:nth-child(n+3) {
    background-color: #d1ecf1;
}

.price-summary table tbody td {
    padding: 6px 8px;
    vertical-align: middle;
}

.price-summary table tbody td:first-child {
    background-color: #fffbf0;
}

.price-summary table tbody .price-settle-cell {
    background-color: #fff;
    white-space: nowrap;
    font-size: 0.8rem;
}

.price-summary table tbody td.cost-col,
.price-summary table tbody td.quote-col {
    background-color: #e7f3f5;
}

.price-summary table tbody tr:hover td {
    background-color: #f0f0f0 !important;
}

.price-summary table tfoot th {
    padding: 10px 8px;
    border-top: 2px solid #dee2e6;
    background-color: #f8f9fa;
}

.quotation-info {
    background: #f8f9fa;
    padding: 16px;
    border-radius: 6px;
}

.info-item {
    font-size: 0.9rem;
}

@media (max-width: 991.98px) {
    .quotation-price-area {
        position: relative;
        margin-top: 20px;
    }

    .quotation-price-area.sticky-top {
        position: relative !important;
        top: 0 !important;
    }
}

.form-label {
    font-size: 0.875rem;
    font-weight: 500;
    color: #495057;
    margin-bottom: 0.5rem;
}

.form-control-sm, .form-select-sm {
    font-size: 0.875rem;
}

.config-module.completed .config-module-header {
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
}

.config-module.completed .step-number {
    border-color: #28a745;
    background: #28a745;
    color: #fff;
}

.config-module.completed .step-number::after {
    content: '✓';
    font-size: 0.9rem;
    font-weight: bold;
}

.config-module.partial .step-number {
    border-color: #ffc107;
    background: #ffc107;
    color: #fff;
}

.back-printing-section {
    border-top: 1px solid #dee2e6;
    padding-top: 0.5rem;
    margin-top: 1rem;
}

.multiple-printing-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.qa-side-total {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 12px 14px;
}
.qa-side-total-label { font-size: 0.9rem; color: #64748b; }
.qa-side-total-amount { font-size: 1.6rem; line-height: 1.2; }
.qa-side-total-sub { font-size: 0.85rem; color: #475569; }
.qa-freight-hint { line-height: 1.5; }
.qa-group-total { padding-top: 4px; }
.qa-group-parts {
    font-weight: 500;
    font-size: 12px;
    color: #475569;
    margin: 4px 0 2px;
}
.qa-group-parts-list {
    list-style: none;
    margin: 0;
    padding: 0;
}
.qa-group-part-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 8px;
    padding: 2px 0;
    white-space: nowrap;
}
.qa-group-part-label {
    color: #64748b;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
}
.qa-group-part-amt {
    font-variant-numeric: tabular-nums;
    color: #334155;
    flex-shrink: 0;
}
.qa-group-part-plus {
    text-align: center;
    color: #94a3b8;
    font-size: 11px;
    line-height: 1;
    padding: 0;
    list-style: none;
}
.qa-group-part-one {
    word-break: keep-all;
}
.qa-quote-list-toggle {
    border: 0;
    background: transparent;
    padding: 8px 0;
    font-weight: 600;
    color: #334155;
}
.qa-quote-list-row {
    display: grid;
    grid-template-columns: 80px minmax(0, 1.35fr) 60px minmax(0, 0.75fr);
    gap: 6px 8px;
    align-items: center;
    font-size: 12px;
    margin-bottom: 8px;
}
.qa-quote-list-row.qa-deal-row {
    grid-template-columns: 96px minmax(0, 1fr) auto;
}
.qa-quote-list-row input.form-control {
    width: 100%;
    min-width: 0;
    max-width: 100%;
}
.qa-deal-row input.form-control {
    min-height: 32px;
}
.qa-deal-unit-hint {
    font-size: 11px;
    white-space: nowrap;
}
.qa-quote-list-delta {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    padding-top: 6px;
    border-top: 1px dashed #e2e8f0;
}
.qa-sales-hide-price { visibility: hidden; }
#quote-total,
#quote-unit,
#quote-group-total,
#quote-group-total-hint,
#qa-std-total,
#qa-std-unit,
#qa-target-total,
#qa-target-unit,
#deal-unit-price,
#qa-delta-std,
#qa-delta-tgt,
#modal-tier-quote .qa-sales-hide-price {
    visibility: visible !important;
}

.multiple-printing-item > * {
    flex-shrink: 0;
}

/* 工序用时表（对齐预览：预留橙 / 总计绿） */
.qa-pt-time-table .qa-pt-name {
    background: #fffaf0;
}
.qa-pt-time-table .qa-pt-reserve-row td {
    background: #fff3e6;
    color: #c45a00;
}
.qa-pt-time-table .qa-pt-grand-row td {
    background: #eaf7ee;
    color: #1b7a3d;
    font-weight: 500;
}

/* 本方案报价总计卡 */
.qa-proposal-total-card {
    border: 1px solid #e0e5ec;
    border-radius: 12px;
    padding: 16px;
    background: #fff;
    color: #142641;
}
.qa-proposal-summary-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px 12px;
    margin-bottom: 14px;
}
.qa-proposal-total-title {
    margin: 0;
    font-size: 1.075rem;
    font-weight: 750;
}
.qa-proposal-sync-status {
    padding: 4px 10px;
    border-radius: 999px;
    background: #af2735;
    color: #fff;
    font-size: .75rem;
    line-height: 1.35;
    font-weight: 600;
    white-space: nowrap;
}
.qa-proposal-sync-status[data-state="ready"] { background: #068336; }
.qa-proposal-sync-status[data-state="dirty"] { background: #faead7; color: #8b4106; }
.qa-proposal-sync-status[data-state="pending"] { background: #145cc5; }
.qa-proposal-summary-table {
    width: 100%;
    border-collapse: collapse;
    font-variant-numeric: tabular-nums;
}
.qa-proposal-summary-table th,
.qa-proposal-summary-table td {
    border: 1px solid #e0e5ec;
    padding: 9px 12px;
    vertical-align: middle;
    text-align: left;
}
.qa-proposal-summary-table th {
    width: 31%;
    min-width: 6em;
    font-weight: 650;
}
.qa-proposal-summary-table td {
    color: #131922;
    font-size: 1rem;
    font-weight: 700;
}
.qa-proposal-summary-table .qa-proposal-summary-total th,
.qa-proposal-summary-table .qa-proposal-summary-total td {
    background: #eaf2ff;
    color: #075ee6;
}
.qa-proposal-summary-total td {
    font-size: clamp(1.45rem, 3vw, 1.75rem);
    font-weight: 800;
    overflow-wrap: anywhere;
}
.qa-proposal-freight {
    display: grid;
    grid-template-columns: max-content minmax(0, 1fr) max-content;
    align-items: center;
    gap: 9px;
    margin-top: 14px;
    padding: 9px 11px;
    border-radius: 8px;
    background: #f2f4f7;
}
.qa-proposal-freight span {
    border-left: 1px solid #dbe2eb;
    padding-left: 9px;
    color: #4d5d73;
    font-size: .75rem;
}
.qa-proposal-freight strong {
    font-size: .82rem;
    font-variant-numeric: tabular-nums;
}
.qa-proposal-updated {
    margin-top: 15px;
    color: #5c6b80;
    font-size: .77rem;
    font-variant-numeric: tabular-nums;
}
.qa-tier-sales-display {
    position: absolute;
    z-index: 3;
    left: .55rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--bs-body-color);
    pointer-events: none;
}
#sales-quantity.qa-tier-sales-active {
    color: transparent;
    caret-color: transparent;
}

/* 基本信息：客户选择与交货自动标签 */
[data-module="basic"] .form-label {
    margin-bottom: 0.35rem;
    font-size: 0.875rem;
}
[data-module="basic"] .qa-basic-customer-group .btn {
    white-space: nowrap;
}
[data-module="basic"] .qa-basic-unit-select {
    flex: 0 0 auto;
}
[data-module="basic"] .qa-delivery-auto-badge {
    font-size: 0.7rem;
    font-weight: 500;
    padding: 0.2em 0.45em;
}
.qa-tip-icon {
    font-size: 0.8rem;
    cursor: help;
    line-height: 1;
}
[data-module="paper"] .form-label {
    margin-bottom: 0.35rem;
    font-size: 0.875rem;
}
