/* ============================================================================
   Tab功能模块样式 (Tab Module)
   ============================================================================ */

/* 溢价规则模态框 */
#premiumRuleModal .input-group-text {
    min-width: 40px;
    justify-content: center;
}

#premiumRuleModal .input-group button {
    width: 40px;
}

#premiumRuleModal input[type="number"] {
    appearance: textfield;
    -moz-appearance: textfield;
}

#premiumRuleModal input[type="number"]::-webkit-outer-spin-button,
#premiumRuleModal input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.price-setting-table {
    font-size: 0.9rem;
}

.price-setting-table tbody td {
    padding: 0.35rem 0.5rem;
    vertical-align: middle;
}

.price-setting-table tbody td:first-child {
    white-space: nowrap;
}

.price-setting-table .price-field {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: nowrap;
}

.price-setting-table .price-field .form-control {
    flex: 0 0 110px;
    min-width: 0;
}

.price-setting-table .price-input {
    height: 30px;
    padding: 0 0.45rem;
    font-size: 0.82rem;
}

.price-setting-table .base-price {
    display: inline-flex;
    justify-content: flex-end;
    align-items: center;
    padding: 2px 6px;
    border-radius: 999px;
    background-color: #f1f3f5;
    color: #6c757d;
    font-size: 0.72rem;
    white-space: nowrap;
    flex: 0 0 110px;
    min-width: 110px;
}

.premium-box {
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 16px;
    background-color: #f9f9f9;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.premium-type-label .badge {
    font-size: 12px;
    padding: 4px 8px;
    border-radius: 4px;
}

/* 确认规则模态框 */
#confirmRuleModal .modal-body p {
    margin-bottom: 0.5rem;
}

#confirmRuleModal .modal-body p:last-child {
    margin-bottom: 0;
    margin-top: 1rem;
}

/* 返点余额管理模态框 */
#spreadGainModal .modal-body p {
    margin-bottom: 1rem;
    font-weight: 500;
}

#spreadGainModal .form-text {
    font-size: 0.85rem;
}

/* 关联账户模态框 */
#relatedAccountsModal .modal-body {
    max-height: 70vh;
    overflow-y: auto;
}

#relatedAccountsModal .table {
    font-size: 0.95rem;
}

#relatedAccountsModal .table th {
    white-space: nowrap;
}

#relatedAccountsModal .badge {
    font-size: 0.8em;
    padding: 0.35em 0.65em;
}

/* 运费估算模态框 */
#freightEstimateModal .modal-dialog {
    max-width: 600px;
}

#freightEstimateModal .modal-body {
    padding: 1.5rem;
}

#freightEstimateModal .form-control {
    padding: 0.5rem 1rem;
    font-size: 1.1rem;
}

#freightEstimateModal .alert {
    padding: 0.75rem;
}

#estimateResult {
    animation: fadeIn 0.3s ease;
}

.freight-input, .processing-fee-input {
    text-align: right;
}

@media (max-width: 576px) {
    #freightEstimateModal .modal-dialog {
        margin: 0.5rem auto;
    }
}

