/* PC 代客下单工作台 — 设计稿 1920×1080，整页等比缩放适配 */
*, *::before, *::after { box-sizing: border-box; }

html, body {
    height: 100%;
    margin: 0;
    overflow: hidden;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background: #eef1f6;
    color: #1f2937;
}

.pc-weigh-viewport {
    width: 100vw;
    height: 100vh;
    height: 100dvh;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #eef1f6;
}

.pc-weigh-scale-root {
    width: 1920px;
    height: 1080px;
    flex-shrink: 0;
    transform-origin: center center;
    transform: scale(var(--pc-weigh-scale, 1));
    overflow: hidden;
    background: #eef1f6;
}

html:fullscreen,
html:-webkit-full-screen {
    background: #eef1f6;
}

html:fullscreen body,
html:-webkit-full-screen body {
    overflow: hidden;
}

.pc-customer-picker {
    position: relative;
}

.pc-customer-picker--toolbar {
    flex: 0 1 200px;
    min-width: 140px;
    max-width: 240px;
}

.pc-customer-input {
    width: 100%;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    padding: 6px 10px;
    font-size: 12px;
    outline: none;
    background: #fff;
    color: #111827;
}

.pc-customer-input:focus {
    border-color: #fca5a5;
    box-shadow: 0 0 0 2px rgba(239, 68, 68, 0.12);
}

.pc-customer-dropdown {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    background: #fff;
    color: #111827;
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
    max-height: 280px;
    overflow-y: auto;
    z-index: 200;
    display: none;
}

.pc-customer-dropdown.open { display: block; }

.pc-customer-item {
    padding: 10px 12px;
    cursor: pointer;
    border-bottom: 1px solid #f3f4f6;
    font-size: 13px;
    color: #111827;
}

.pc-customer-item:hover { background: #fef2f2; }
.pc-customer-item.active { background: #fee2e2; font-weight: 600; }

.pc-workbench {
    display: grid;
    grid-template-columns: minmax(480px, 4fr) minmax(220px, 1fr);
    gap: 8px;
    padding: 8px;
    height: 100vh;
    min-height: 0;
    box-sizing: border-box;
}

.pc-panel {
    background: #fff;
    border-radius: 10px;
    border: 1px solid #e5e7eb;
    display: flex;
    flex-direction: column;
    min-height: 0;
    overflow: hidden;
}

.pc-panel-head {
    padding: 10px 12px;
    border-bottom: 1px solid #f0f0f0;
    font-size: 13px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-shrink: 0;
    gap: 8px;
}

.pc-panel-head .tag {
    font-size: 10px;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 999px;
}

.tag-order { background: #111; color: #fff; }
.tag-member { background: #dbeafe; color: #1d4ed8; }
.tag-quote { background: #fef9c3; color: #a16207; }
.tag-statement { background: #fee2e2; color: #b91c1c; }
.tag-pending { background: #ffedd5; color: #c2410c; }

.pc-panel-head--compact {
    padding: 5px 8px;
    font-size: 12px;
}

.pc-panel-body--compact {
    overflow: hidden;
}

.pc-link-sm {
    font-size: 11px;
    color: #2563eb;
    text-decoration: none;
    flex-shrink: 0;
}

.pc-link-sm:hover { text-decoration: underline; }

.pc-btn-outline--sm {
    padding: 3px 8px;
    font-size: 11px;
}

.pc-panel-body {
    flex: 1;
    min-height: 0;
    overflow: auto;
}

/* 下单区 */
.pc-order-panel { grid-row: 1 / -1; }

.pc-order-inner {
    display: flex;
    flex: 1;
    flex-direction: column;
    min-height: 0;
}

.pc-cat-tabs {
    display: flex;
    flex-wrap: nowrap;
    gap: 6px;
    overflow-x: auto;
    flex: 1;
    min-width: 0;
    align-items: center;
    padding-bottom: 2px;
    scrollbar-width: thin;
}

.pc-cat-tabs::-webkit-scrollbar {
    height: 4px;
}

.pc-cat-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border: 1px solid #e5e7eb;
    background: #fff;
    padding: 6px 12px;
    font-size: 12px;
    text-align: center;
    cursor: pointer;
    color: #6b7280;
    border-radius: 6px;
    white-space: nowrap;
}

.pc-cat-btn.active {
    background: #fef2f2;
    border-color: #fecaca;
    color: #ef4444;
    font-weight: 700;
}

.pc-order-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
    min-height: 0;
}

.pc-order-toolbar {
    padding: 8px 12px;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
    min-height: 44px;
}

.pc-order-toolbar-title {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
    font-size: 13px;
    font-weight: 700;
    white-space: nowrap;
}

.pc-order-customer-hint {
    display: none;
}

.pc-toolbar-actions {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
    margin-left: auto;
}

.pc-toolbar-actions--grid {
    display: grid;
    grid-template-columns: 48px 48px;
    grid-template-rows: 48px 48px;
    gap: 6px;
    align-items: stretch;
}

.pc-toolbar-actions--grid .pc-btn-icon {
    width: 48px;
    height: 48px;
}

.pc-btn-icon--label {
    font-size: 14px;
    font-weight: 800;
    color: #374151;
    letter-spacing: 0.02em;
}

.pc-btn-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    background: #fff;
    cursor: pointer;
    color: #4b5563;
    flex-shrink: 0;
    padding: 0;
}

.pc-btn-icon:hover {
    background: #f9fafb;
    border-color: #d1d5db;
}

.pc-btn-icon--text {
    width: auto;
    padding: 0 10px;
    gap: 4px;
    font-size: 12px;
    white-space: nowrap;
}

.pc-order-panel:fullscreen,
.pc-order-panel:-webkit-full-screen {
    border-radius: 0;
    border: none;
    background: #fff;
}

.pc-order-panel:fullscreen .pc-order-inner,
.pc-order-panel:-webkit-full-screen .pc-order-inner {
    height: 100%;
}

.pc-product-search {
    width: 160px;
    flex-shrink: 0;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    padding: 6px 10px;
    font-size: 12px;
}

.pc-product-grid {
    flex: 1;
    overflow-y: auto;
    min-height: 0;
}

.pc-cart-bar {
    border-top: 1px solid #f0f0f0;
    padding: 8px 10px;
    flex-shrink: 0;
    background: #fafafa;
}

.pc-cart-items {
    max-height: 120px;
    overflow-y: auto;
    margin-bottom: 8px;
}

.pc-cart-row {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    padding: 4px 0;
    border-bottom: 1px dashed #eee;
}

.pc-cart-row .name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.pc-qty-btn {
    width: 22px;
    height: 22px;
    border: 1px solid #d1d5db;
    border-radius: 4px;
    background: #fff;
    cursor: pointer;
    font-size: 14px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pc-qty-btn.plus { background: #ef4444; color: #fff; border-color: #ef4444; }

.pc-cart-footer {
    display: flex;
    align-items: center;
    gap: 10px;
}

.pc-cart-total {
    flex: 1;
    font-size: 14px;
    font-weight: 700;
    color: #ef4444;
}

.pc-btn-primary {
    background: #ef4444;
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 10px 20px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
}

.pc-btn-primary:disabled { opacity: 0.5; cursor: not-allowed; }

.pc-btn-outline {
    background: #fff;
    color: #374151;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    padding: 6px 12px;
    font-size: 12px;
    cursor: pointer;
}

/* 右侧四段：会员 / 报价 / 对账 / 待收款 */
.pc-right-col {
    display: grid;
    grid-template-rows: auto minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr);
    gap: 6px;
    min-height: 0;
}

.pc-panel--member { flex-shrink: 0; }

.pc-member-compact {
    padding: 6px 8px;
}

.pc-member-name {
    font-size: 13px;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 3px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.pc-member-meta {
    font-size: 11px;
    color: #6b7280;
    line-height: 1.35;
    margin-bottom: 2px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.pc-member-meta .sep { color: #d1d5db; margin: 0 3px; }

.pc-member-addr {
    font-size: 11px;
    color: #9ca3af;
    line-height: 1.3;
    margin-bottom: 4px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.pc-member-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 4px;
    margin-top: 4px;
}

.pc-stat-box {
    background: #f9fafb;
    border-radius: 4px;
    padding: 3px 4px;
    text-align: center;
}

.pc-stat-box .label { font-size: 9px; color: #9ca3af; line-height: 1.2; }
.pc-stat-box .val { font-size: 11px; font-weight: 700; color: #ef4444; line-height: 1.3; }

.pc-info-row {
    font-size: 11px;
    color: #4b5563;
    margin-bottom: 2px;
    display: flex;
    gap: 4px;
}

.pc-info-row .k { color: #9ca3af; min-width: 40px; }

/* 待收款列表（与 profile 待收款卡片一致，紧凑版） */
.pc-pending-count {
    font-size: 11px;
    font-weight: 600;
    color: #6b7280;
}

.pc-panel-body--pending {
    overflow-y: auto;
    padding: 4px 6px 6px;
}

.pc-pp-card {
    background: #fff;
    border: 1px solid #f0f0f0;
    border-radius: 8px;
    padding: 8px;
    margin-bottom: 6px;
}

.pc-pp-card:last-child { margin-bottom: 0; }

.pc-pp-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    margin-bottom: 6px;
    min-width: 0;
}

.pc-pp-head-main {
    display: flex;
    align-items: center;
    gap: 4px;
    min-width: 0;
    flex: 1;
    overflow: hidden;
}

.pc-pp-member {
    font-size: 12px;
    font-weight: 700;
    color: #111827;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    min-width: 0;
}

.pc-pp-pdf-tag {
    font-size: 8px;
    font-weight: 700;
    color: #16a34a;
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    padding: 1px 4px;
    border-radius: 3px;
    flex-shrink: 0;
}

.pc-pp-head-right {
    display: flex;
    align-items: center;
    gap: 4px;
    flex-shrink: 0;
}

.pc-pp-amount {
    font-size: 11px;
    font-weight: 700;
    color: #dc2626;
    white-space: nowrap;
}

.pc-pp-body {
    padding: 6px 0;
    border-top: 1px dashed #f3f4f6;
    border-bottom: 1px dashed #f3f4f6;
    margin-bottom: 6px;
}

.pc-pp-body p {
    font-size: 10px;
    color: #4b5563;
    line-height: 1.45;
    margin: 0 0 2px;
}

.pc-pp-body p:last-child { margin-bottom: 0; }

.pc-pp-body .k { color: #9ca3af; font-weight: 500; }

.pc-pp-foot {
    display: flex;
    justify-content: flex-end;
    gap: 4px;
}

.pc-pp-btn {
    font-size: 9px;
    line-height: 1.2;
    padding: 4px 6px;
    border-radius: 4px;
    border: 1px solid transparent;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 2px;
    text-decoration: none;
    background: #fff;
}

.pc-pp-btn--call { background: #f0fdf4; color: #16a34a; border-color: #bbf7d0; }
.pc-pp-btn--share { background: #faf5ff; color: #9333ea; border-color: #e9d5ff; }
.pc-pp-btn--pay { background: #3b82f6; color: #fff; }

.pc-empty--sm {
    padding: 12px 8px;
    font-size: 11px;
}

.pc-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 11px;
}

.pc-table th {
    background: #f9fafb;
    padding: 4px 4px;
    text-align: left;
    font-weight: 600;
    color: #6b7280;
    position: sticky;
    top: 0;
    z-index: 1;
}

.pc-table td {
    padding: 3px 4px;
    border-bottom: 1px solid #f3f4f6;
    vertical-align: middle;
}

.pc-table .num { text-align: right; }

.pc-price-custom { color: #ea580c; font-weight: 600; }

.pc-price-input {
    width: 64px;
    border: 1px solid #e5e7eb;
    border-radius: 4px;
    padding: 3px 4px;
    font-size: 11px;
    text-align: right;
}

.pc-stmt-summary {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3px;
    padding: 6px;
    background: #fef2f2;
    border-radius: 4px;
    margin-bottom: 6px;
    font-size: 10px;
}

.pc-stmt-summary .item { text-align: center; }
.pc-stmt-summary .label { color: #9ca3af; font-size: 10px; }
.pc-stmt-summary .val { font-weight: 700; color: #b91c1c; }

.pc-empty {
    padding: 24px;
    text-align: center;
    color: #9ca3af;
    font-size: 12px;
}

.pc-modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.45);
    z-index: 200;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.pc-modal-overlay.open { display: flex; }

.pc-modal {
    background: #fff;
    border-radius: 12px;
    width: 100%;
    max-width: 400px;
    max-height: 90vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.pc-modal--md { max-width: 520px; }

.pc-scale-status {
    display: inline-block;
    font-size: 9px;
    font-weight: 600;
    padding: 1px 5px;
    border-radius: 4px;
    margin-left: 4px;
    vertical-align: middle;
    background: #f3f4f6;
    color: #6b7280;
}

.pc-scale-status--ok { background: #dcfce7; color: #166534; }
.pc-scale-status--wait { background: #fef9c3; color: #a16207; }
.pc-scale-status--err { background: #fee2e2; color: #b91c1c; }

.pc-weigh-weight--stable { border-color: #22c55e; background: #f0fdf4; }
.pc-weigh-weight--stable .pc-weigh-weight-val { color: #15803d; }

.pc-weigh-config-body { display: flex; flex-direction: column; gap: 16px; }
.pc-weigh-config-section h3 { font-size: 14px; font-weight: 700; margin: 0 0 6px; }
.pc-weigh-config-hint { font-size: 11px; color: #6b7280; margin: 0 0 10px; line-height: 1.45; }
.pc-weigh-config-hint code { font-size: 10px; background: #f3f4f6; padding: 1px 4px; border-radius: 4px; }
.pc-weigh-config-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.pc-weigh-config-grid label { display: flex; flex-direction: column; gap: 4px; font-size: 11px; color: #374151; }
.pc-weigh-config-grid input,
.pc-weigh-config-grid select { border: 1px solid #e5e7eb; border-radius: 8px; padding: 6px 8px; font-size: 13px; }
.pc-weigh-config-check { flex-direction: row !important; align-items: center; gap: 6px !important; grid-column: 1 / -1; }
.pc-weigh-config-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 10px; }
.pc-weigh-config-status { font-size: 11px; color: #6b7280; margin-left: auto; }

.pc-modal-head {
    padding: 14px 16px;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 700;
}

.pc-modal-body {
    padding: 16px;
    overflow-y: auto;
    flex: 1;
}

.pc-form-group { margin-bottom: 12px; }
.pc-form-group label { display: block; font-size: 11px; color: #6b7280; margin-bottom: 4px; }
.pc-form-group input, .pc-form-group select, .pc-form-group textarea {
    width: 100%;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 8px 10px;
    font-size: 13px;
}

.pc-order-cb { width: 14px; height: 14px; accent-color: #ef4444; }

/* 1366 窄屏 */
@media (max-width: 1400px) {
    .pc-workbench {
        grid-template-columns: minmax(400px, 4fr) minmax(200px, 1fr);
    }
    .pc-customer-picker--toolbar {
        min-width: 120px;
        max-width: 160px;
    }
    .pc-product-search {
        width: 120px;
    }
    .pc-btn-icon--text .pc-btn-icon-label {
        display: none;
    }
}

@media (max-width: 1200px) {
    .pc-workbench {
        grid-template-columns: 1fr;
        grid-template-rows: 1fr auto;
        overflow-y: auto;
    }
    .pc-order-panel { grid-row: auto; min-height: 480px; }
    .pc-right-col { min-height: 640px; }
}

/* ── PC 称重发货台（新版 pc_order.html）── */
.pc-weigh-workbench {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
    min-height: 0;
    background: #eef1f6;
    padding: 8px;
    box-sizing: border-box;
    gap: 8px;
    overflow: hidden;
}

.pc-weigh-topbar {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 16px 14px;
    min-height: 112px;
}

.pc-weigh-topbar .pc-btn-outline--sm {
    font-size: 33px;
    padding: 10px 16px;
    min-height: 48px;
}

.pc-weigh-topbar .pc-btn-icon {
    width: 48px;
    height: 48px;
}

.pc-weigh-weight {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    min-width: 200px;
    padding: 10px 16px;
    border: 2px solid #fecaca;
    border-radius: 8px;
    background: #fff7ed;
    cursor: pointer;
    text-align: left;
}

.pc-weigh-weight:hover { background: #ffedd5; }

.pc-weigh-weight-label,
.pc-weigh-order-qty-label,
.pc-weigh-price-label {
    font-size: 30px;
    color: #9ca3af;
    line-height: 1.2;
}

.pc-weigh-weight-val {
    font-size: 66px;
    font-weight: 800;
    color: #ea580c;
    line-height: 1.1;
}

.pc-weigh-order-qty {
    display: flex;
    flex-direction: column;
    min-width: 140px;
    padding: 8px 12px;
}

.pc-weigh-order-qty-val {
    font-size: 54px;
    font-weight: 700;
    color: #1f2937;
}

.pc-weigh-pager {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}

.pc-weigh-page-indicator {
    font-size: 33px;
    color: #6b7280;
    white-space: nowrap;
}

.pc-weigh-district {
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    padding: 10px 14px;
    font-size: 36px;
    background: #fff;
    min-width: 160px;
}

.pc-weigh-topbar .pc-scale-status {
    font-size: 24px;
    padding: 4px 10px;
    border-radius: 6px;
}

.pc-weigh-search-wrap {
    position: relative;
    flex: 0 1 220px;
    min-width: 160px;
    max-width: 280px;
}

.pc-weigh-topbar-mid {
    display: grid;
    grid-template-rows: 1fr 1fr;
    gap: 6px;
    align-self: stretch;
    flex: 0 1 auto;
    min-width: 0;
}

.pc-weigh-topbar-mid-row {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 0;
}

.pc-weigh-topbar-mid-row .pc-weigh-pager {
    width: 100%;
}

.pc-weigh-topbar-mid-row .pc-weigh-district {
    flex: 1;
    min-width: 0;
}

.pc-weigh-topbar-mid-row .pc-weigh-search-wrap {
    flex: 1;
    min-width: 0;
    max-width: none;
}

.pc-weigh-remark-input {
    flex: 1;
    align-self: stretch;
    min-width: 120px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 10px 14px;
    font-size: 36px;
    line-height: 1.35;
    box-sizing: border-box;
    background: #fff;
    resize: none;
    overflow: auto;
    color: #dc2626;
    font-weight: 700;
    font-family: "SimHei", "Heiti SC", "Microsoft YaHei", "PingFang SC", sans-serif;
}

.pc-weigh-remark-input::placeholder {
    color: #fca5a5;
    font-weight: 400;
}

.pc-weigh-list-filter {
    display: none;
    gap: 4px;
    padding: 6px 8px;
    border-bottom: 1px solid #f0f0f0;
    flex-shrink: 0;
}

.pc-weigh-list-filter--visible {
    display: flex;
}

.pc-weigh-filter-btn {
    flex: 1;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    padding: 10px 6px;
    font-size: 18px;
    background: #fff;
    cursor: pointer;
    min-height: 44px;
}

.pc-weigh-filter-btn.active {
    background: #fee2e2;
    border-color: #f87171;
    color: #b91c1c;
    font-weight: 700;
}

.pc-weigh-price-history {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    border-top: 1px solid #f0f0f0;
    background: #fafafa;
    flex-shrink: 0;
    min-height: 52px;
}

.pc-weigh-price-history-label {
    font-size: 14px;
    font-weight: 700;
    color: #374151;
    flex-shrink: 0;
}

.pc-weigh-price-history-chips {
    display: flex;
    align-items: center;
    gap: 8px;
    overflow-x: auto;
    flex: 1;
    scrollbar-width: none;
}

.pc-weigh-price-history-chips::-webkit-scrollbar { display: none; }

.pc-ph-chip {
    flex-shrink: 0;
    border: 2px solid #d1d5db;
    border-radius: 8px;
    padding: 8px 14px;
    font-size: 16px;
    font-weight: 700;
    background: #fff;
    cursor: pointer;
    min-height: 40px;
}

.pc-ph-chip--a { color: #1d4ed8; border-color: #93c5fd; }
.pc-ph-chip--b { color: #c2410c; border-color: #fdba74; }
.pc-ph-chip--current {
    border-color: #ef4444;
    background: #fef2f2;
    box-shadow: inset 0 0 0 1px #ef4444;
}

.pc-ph-chip--local {
    color: #15803d;
    border-color: #86efac;
}

.pc-weigh-order-head {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 6px;
}

.pc-weigh-order-district {
    display: inline-flex;
    align-items: center;
    background: #2563eb;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 4px;
    flex-shrink: 0;
}

.pc-weigh-order-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 4px;
}

.pc-weigh-order-chip {
    width: 96px;
    height: 96px;
    flex-shrink: 0;
    border: 3px solid #111827;
    border-radius: 4px;
    padding: 2px;
    background: #fff;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    text-align: center;
    box-sizing: border-box;
    overflow: hidden;
}

.pc-weigh-order-chip-body {
    flex: 2 0 0;
    min-height: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    width: 100%;
    box-sizing: border-box;
    padding: 2px 3px 0;
}

.pc-weigh-order-chip-name {
    width: 100%;
    max-height: 100%;
    font-weight: 700;
    color: #111827;
    line-height: 1.1;
    word-break: break-word;
    overflow-wrap: anywhere;
    white-space: normal;
    text-align: center;
    overflow: hidden;
    display: block;
}

.pc-weigh-order-chip-foot {
    flex: 1 0 0;
    min-height: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    box-sizing: border-box;
    padding: 0 2px 2px;
    overflow: hidden;
}

.pc-weigh-order-chip-qty {
    font-weight: 800;
    color: #2563eb;
    line-height: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
    text-align: center;
}

.pc-weigh-order-chip-meta {
    font-size: 16px;
    font-weight: 800;
    color: #2563eb;
    line-height: 1.1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

.pc-weigh-order-chip--share {
    border-color: #c4b5fd;
    background: #faf5ff;
    color: #7c3aed;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 6px 4px;
}

.pc-weigh-order-chip--share:hover {
    background: #f3e8ff;
    border-color: #a78bfa;
}

.pc-weigh-order-chip-share-label {
    font-size: 14px;
    font-weight: 800;
    line-height: 1;
}

.pc-weigh-order-chip--weighed .pc-weigh-order-chip-name,
.pc-weigh-order-chip--weighed .pc-weigh-order-chip-qty,
.pc-weigh-order-chip--weighed .pc-weigh-order-chip-meta {
    color: #dc2626;
}

.pc-weigh-order-chip--weighed {
    border-color: #dc2626;
}

.pc-weigh-order-chip--selected {
    box-shadow: inset 0 0 0 2px #ef4444;
    background: #fef2f2;
}

.pc-weigh-order-chip--pending {
    border-color: #111827;
}

.pc-weigh-order-row--fulfilled .pc-weigh-order-name {
    color: #dc2626 !important;
}

.pc-weigh-order-line {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    font-size: 14px;
    color: #4b5563;
    margin-top: 3px;
    line-height: 1.4;
}

.pc-weigh-order-line--focus {
    font-weight: 700;
    color: #111827;
}

.pc-weigh-order-line--weighed {
    color: #dc2626;
    font-weight: 600;
}

.pc-weigh-order-line--dim {
    opacity: 0.45;
}

.pc-weigh-order-tag {
    font-size: 9px;
    padding: 1px 5px;
    border-radius: 4px;
    background: #f3f4f6;
    color: #6b7280;
    flex-shrink: 0;
}

.pc-weigh-order-tag--done {
    background: #fee2e2;
    color: #dc2626;
}

.pc-weigh-order-tag--new {
    background: #dbeafe;
    color: #1d4ed8;
}

.pc-weigh-order-delete {
    border: none;
    background: transparent;
    color: #ef4444;
    font-size: 10px;
    padding: 2px 4px;
    cursor: pointer;
    flex-shrink: 0;
}

.pc-order-demand-tag {
    background: #2563eb !important;
    color: #fff !important;
    font-weight: 800 !important;
    min-width: clamp(28px, calc(var(--pc-card-size, 100px) * 0.36), 48px) !important;
    height: clamp(22px, calc(var(--pc-card-size, 100px) * 0.32), 40px) !important;
    font-size: clamp(10px, calc(var(--pc-card-size, 100px) * 0.16), 14px) !important;
    line-height: 1.1 !important;
    white-space: nowrap;
    padding: 0 4px !important;
}

.pc-weigh-add-hint {
    font-size: 11px;
    color: #b45309;
    background: #fffbeb;
    border: 1px solid #fde68a;
    border-radius: 6px;
    padding: 6px 8px;
    margin: 0 6px 6px;
}

/* 触屏键盘 */
.pc-touch-pad-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 10000;
    background: rgba(0, 0, 0, 0.45);
    align-items: flex-end;
    justify-content: center;
    padding: 12px;
    box-sizing: border-box;
}

.pc-touch-pad-overlay.open {
    display: flex;
}

.pc-touch-pad-overlay--anchored {
    display: block;
    background: transparent;
    pointer-events: none;
    align-items: flex-start;
    justify-content: flex-start;
    padding: 0;
}

.pc-touch-pad-overlay--anchored.open {
    display: block;
}

.pc-touch-pad-overlay--anchored .pc-touch-pad {
    pointer-events: auto;
    width: min(400px, 92vw);
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
}

.pc-touch-pad-overlay--letter-vertical.pc-touch-pad-overlay--anchored .pc-touch-pad,
.pc-touch-pad-overlay--letter-vertical.pc-touch-pad-overlay--anchored.open .pc-touch-pad {
    width: 46px !important;
    min-width: 46px !important;
    max-width: 46px !important;
    padding: 3px 2px !important;
    border-radius: 6px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.18);
}

.pc-touch-pad-overlay--letter .pc-touch-pad {
    width: min(380px, 42vw);
    max-height: calc(100vh - 16px);
    overflow-y: auto;
}

.pc-touch-pad {
    width: min(420px, 100%);
    background: #fff;
    border-radius: 12px 12px 8px 8px;
    padding: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.pc-touch-pad-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}

.pc-touch-pad-title {
    font-size: 14px;
    font-weight: 700;
}

.pc-touch-pad-close {
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    padding: 4px 10px;
    background: #fff;
    font-size: 12px;
}

.pc-touch-pad-display {
    font-size: 28px;
    font-weight: 800;
    text-align: right;
    padding: 10px 12px;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    margin-bottom: 10px;
    min-height: 48px;
}

.pc-touch-pad-keys--numpad {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
}

.pc-touch-pad-keys--qwerty {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.pc-touch-pad-qwerty-row {
    display: grid;
    grid-template-columns: repeat(10, minmax(0, 1fr));
    gap: 6px;
}

.pc-touch-pad-qwerty-row:nth-child(2) {
    grid-template-columns: repeat(9, minmax(0, 1fr));
    padding: 0 5%;
}

.pc-touch-pad-qwerty-row:nth-child(3) {
    grid-template-columns: repeat(7, minmax(0, 1fr));
    padding: 0 12%;
}

.pc-touch-pad-qwerty-actions {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 8px;
    margin-top: 4px;
}

.pc-touch-pad-overlay--qwerty.pc-touch-pad-overlay--anchored .pc-touch-pad,
.pc-touch-pad-overlay--qwerty .pc-touch-pad {
    width: min(720px, 96vw) !important;
    min-width: min(560px, 96vw) !important;
    max-width: 96vw !important;
}

.pc-touch-pad-overlay--qwerty .pc-touch-pad-key {
    min-height: 52px;
    font-size: 22px;
}

.pc-touch-pad-overlay--qwerty .pc-touch-pad-key--wide {
    min-height: 48px;
    font-size: 16px;
}

.pc-touch-pad-overlay--qwerty .pc-touch-pad-display {
    font-size: 32px;
    min-height: 56px;
}

.pc-touch-pad-keys--letter {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 6px;
}

.pc-touch-pad-overlay--letter-vertical .pc-touch-pad {
    width: 46px !important;
    min-width: 46px !important;
    max-width: 46px !important;
    padding: 3px 2px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.pc-touch-pad-overlay--letter-vertical .pc-touch-pad-head,
.pc-touch-pad-overlay--letter-vertical .pc-touch-pad-display {
    display: none;
}

.pc-touch-pad-keys--letter-vertical {
    display: flex !important;
    flex-direction: column !important;
    grid-template-columns: none !important;
    gap: 2px;
    overflow-y: auto;
    flex: 1;
    min-height: 0;
    scrollbar-width: thin;
}

.pc-touch-pad-keys--letter-vertical .pc-touch-pad-key {
    min-height: 34px;
    width: 100%;
    font-size: 14px;
    font-weight: 700;
    border-radius: 4px;
    padding: 2px 0;
    flex-shrink: 0;
}

.pc-touch-pad-keys--letter-vertical .pc-touch-pad-key--wide {
    font-size: 11px;
    min-height: 28px;
}

.pc-product-search {
    cursor: pointer;
}

.pc-touch-pad-key {
    min-height: 48px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    background: #f9fafb;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
}

.pc-touch-pad-key:active {
    background: #e5e7eb;
}

.pc-touch-pad-key--wide {
    font-size: 13px;
}

.pc-touch-pad-key--tall {
    min-height: 104px;
}


.pc-weigh-member-search {
    width: 100%;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    padding: 10px 14px;
    font-size: 36px;
}

.pc-weigh-search-wrap .pc-customer-dropdown {
    z-index: 10050;
    max-height: min(420px, 50vh);
}

.pc-weigh-search-wrap .pc-customer-item {
    font-size: 16px;
    padding: 12px 14px;
}

.pc-weigh-search-tag {
    display: inline-block;
    margin-left: 6px;
    font-size: 10px;
    padding: 1px 6px;
    border-radius: 999px;
    background: #ffedd5;
    color: #c2410c;
}

.pc-weigh-search-tag--new {
    background: #dbeafe;
    color: #1d4ed8;
}

.pc-weigh-body {
    flex: 1;
    display: grid;
    grid-template-columns: minmax(88px, 12.5%) minmax(0, 1fr);
    gap: 8px;
    min-height: 0;
}

.pc-weigh-left--narrow {
    position: relative;
    min-width: 0;
}

.pc-product-letter-rail {
    position: absolute;
    left: calc(100% + 4px);
    width: 48px;
    display: none;
    flex-direction: column;
    gap: 2px;
    overflow-y: auto;
    overflow-x: hidden;
    z-index: 10060;
    background: #fff;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    padding: 4px 3px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.18);
    max-height: calc(100% - 8px);
    box-sizing: border-box;
}

.pc-product-letter-rail.open {
    display: flex;
}

.pc-product-letter-rail-btn {
    flex-shrink: 0;
    width: 100%;
    min-height: 36px;
    border: 1px solid #e5e7eb;
    border-radius: 4px;
    background: #f9fafb;
    font-size: 15px;
    font-weight: 700;
    color: #111827;
    cursor: pointer;
    padding: 0;
}

.pc-product-letter-rail-btn:active {
    background: #e5e7eb;
}

.pc-product-letter-rail-btn--action {
    font-size: 11px;
    min-height: 32px;
    color: #374151;
}

.pc-weigh-left--narrow .pc-weigh-left-toolbar {
    flex-direction: row;
    align-items: stretch;
    gap: 4px;
    padding: 6px 4px;
}

.pc-weigh-left--narrow .pc-cat-tabs {
    flex: 1;
    flex-direction: column;
    overflow-x: hidden;
    overflow-y: auto;
    max-height: 168px;
    flex: 1 1 auto;
    min-width: 0;
    gap: 4px;
}

.pc-weigh-left--narrow .pc-cat-btn {
    width: 100%;
    padding: 6px 4px;
    font-size: 18px;
    white-space: normal;
    line-height: 1.15;
}

.pc-product-search-btn {
    flex: 0 0 52px;
    width: 52px;
    min-width: 52px;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    background: #fff;
    color: #374151;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.15;
    padding: 6px 4px;
    cursor: pointer;
    writing-mode: vertical-rl;
    text-orientation: mixed;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    word-break: break-all;
}

.pc-product-search-btn:hover {
    background: #f9fafb;
}

.pc-product-search-btn--active {
    background: #fffbeb;
    border-color: #f59e0b;
    color: #b45309;
}

.pc-product-name-list {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 6px 4px;
    overflow-y: auto;
    min-height: 0;
}

.pc-product-name-block {
    flex-shrink: 0;
    width: 100%;
    height: calc(16px * 1.3 * 2 + 12px);
    min-height: calc(16px * 1.3 * 2 + 12px);
    max-height: calc(16px * 1.3 * 2 + 12px);
    border: 3px solid #111827;
    border-radius: 4px;
    background: #fff;
    color: #111827;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: stretch;
    text-align: left;
    padding: 4px 6px;
    cursor: pointer;
    box-sizing: border-box;
    overflow: hidden;
    gap: 4px;
}

.pc-product-name-block:hover {
    background: #f9fafb;
}

.pc-product-name-block--selected {
    border-color: #dc2626;
    color: #dc2626;
    background: #fff;
}

.pc-product-name-block--selected .pc-product-name-block-qty {
    color: #dc2626;
}

.pc-product-name-block-text {
    flex: 1;
    min-width: 0;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.15;
    word-break: break-all;
    display: block;
    overflow: hidden;
    text-align: left;
}

.pc-product-name-block-qty {
    flex-shrink: 0;
    font-size: 16px;
    font-weight: 800;
    color: #2563eb;
    line-height: 1.1;
    white-space: nowrap;
}

.pc-weigh-left {
    display: flex;
    flex-direction: column;
    min-height: 0;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    overflow: hidden;
}

.pc-weigh-left-toolbar {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    border-bottom: 1px solid #f0f0f0;
    flex-shrink: 0;
}

.pc-weigh-left .pc-product-grid {
    flex: 1;
    overflow-y: auto;
    min-height: 0;
}

.pc-weigh-right {
    display: flex;
    flex-direction: column;
    min-height: 0;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    overflow: hidden;
}

.pc-weigh-order-list {
    flex: 1;
    overflow-y: auto;
    min-height: 0;
    padding: 6px;
}

.pc-weigh-order-row {
    display: block;
    width: 100%;
    text-align: left;
    border: 1px solid #f3f4f6;
    border-radius: 8px;
    padding: 10px;
    margin-bottom: 6px;
    background: #fff;
    cursor: pointer;
}

.pc-weigh-order-row:hover { background: #fef2f2; border-color: #fecaca; }

.pc-weigh-order-row--active {
    background: #fee2e2;
    border-color: #f87171;
    box-shadow: inset 0 0 0 1px #ef4444;
}

.pc-weigh-order-name {
    font-size: 16px;
    font-weight: 700;
    color: #111827;
    margin-bottom: 4px;
}

.pc-weigh-order-meta {
    font-size: 13px;
    color: #6b7280;
    line-height: 1.4;
}

.pc-weigh-footer {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 10px;
    padding: 10px;
    border-top: 1px solid #f0f0f0;
    flex-shrink: 0;
    background: #fafafa;
}

.pc-weigh-price {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    padding: 8px 12px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    background: #fff;
    cursor: pointer;
    text-align: left;
    min-height: 64px;
    box-sizing: border-box;
}

.pc-weigh-price:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.pc-weigh-price-val {
    font-size: 16px;
    font-weight: 700;
    color: #ef4444;
}

.pc-weigh-submit {
    width: 100%;
    min-height: 64px;
    padding: 12px 18px;
    font-size: 18px;
    font-weight: 700;
}

.pc-weigh-delete {
    width: 100%;
    min-height: 64px;
    border: 2px solid #ef4444;
    border-radius: 8px;
    background: #fff;
    color: #ef4444;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
}

.pc-weigh-delete:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.pc-weigh-delete:not(:disabled):hover {
    background: #fef2f2;
}

.product-card--selected {
    outline: 3px solid #ef4444;
    outline-offset: -3px;
    box-shadow: 0 0 0 2px #fecaca;
}

.product-card--in-order .count-tag {
    background: #2563eb;
}

.pc-order-ding-tag {
    background: #2563eb !important;
    color: #fff !important;
    font-weight: 800 !important;
    min-width: clamp(22px, calc(var(--pc-card-size, 100px) * 0.32), 40px) !important;
    height: clamp(22px, calc(var(--pc-card-size, 100px) * 0.32), 40px) !important;
    font-size: clamp(12px, calc(var(--pc-card-size, 100px) * 0.2), 18px) !important;
}

.pc-order-cheng-tag {
    background: #16a34a !important;
    color: #fff !important;
    font-weight: 800 !important;
    min-width: clamp(22px, calc(var(--pc-card-size, 100px) * 0.32), 40px) !important;
    height: clamp(22px, calc(var(--pc-card-size, 100px) * 0.32), 40px) !important;
    font-size: clamp(12px, calc(var(--pc-card-size, 100px) * 0.2), 18px) !important;
}

.product-card--staged {
    box-shadow: inset 0 0 0 2px #86efac;
}

.product-card--in-order .price-tag {
    border: 1px solid #93c5fd;
}

