/* R21 · 财务模块 B/C/D（对账 / 看板 / 列表） */

.reconcile-tabs {
    display: flex;
    gap: 0;
    margin-bottom: 16px;
    border-bottom: 1px solid #e5e7eb;
}

.reconcile-tab {
    padding: 10px 20px;
    border: none;
    background: none;
    cursor: pointer;
    font-size: 14px;
    color: #6b7280;
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
}

.reconcile-tab:hover {
    color: #111827;
}

.reconcile-tab.is-active {
    color: #059669;
    font-weight: 600;
    border-bottom-color: #059669;
}

.reconcile-filters label {
    font-size: 13px;
    color: #374151;
    margin: 0;
}

.reconcile-party-select {
    width: 220px;
}

.reconcile-date-input {
    width: 140px;
}

.reconcile-history {
    margin-bottom: 8px;
    font-size: 13px;
    color: #4b5563;
}

.reconcile-history span + span {
    margin-left: 12px;
}

.reconcile-view {
    min-height: 120px;
}

.reconcile-footer {
    margin-top: 16px;
    padding-top: 12px;
    border-top: 1px solid #e5e7eb;
}

.reconcile-footer .reconcile-totals {
    font-size: 14px;
}

.reconcile-totals span + span {
    margin-left: 16px;
}

.reconcile-footer-actions {
    margin-left: 8px;
}

.reconcile-final {
    color: #059669;
    font-size: 16px;
}

.reconcile-adjustments {
    margin-top: 12px;
}

.reconcile-adjustments .reconcile-adj-row {
    margin-bottom: 6px;
}

.reconcile-adjustments .reconcile-adj-row label {
    display: inline-block;
    width: 160px;
}

/* 财务看板 */
.finance-dash-header {
    margin-bottom: 12px;
}

.finance-dash-filters label {
    font-size: 13px;
    color: #374151;
    margin: 0;
}

.finance-dash-date-input {
    width: 140px;
}

.finance-dash-section {
    margin-bottom: 16px;
}

.finance-section-title {
    font-size: 14px;
    font-weight: 600;
    margin: 0 0 10px 0;
    color: #111827;
}

.finance-toggle {
    cursor: pointer;
    user-select: none;
}

.finance-detail-inner {
    padding: 8px 0 8px 24px;
}

.finance-detail-row td {
    background: #f9fafb;
    vertical-align: top;
}

.finance-amount-copy {
    cursor: pointer;
}

.finance-copy-btn {
    border: none;
    background: none;
    cursor: pointer;
    padding: 0 4px;
    font-size: 12px;
}

.finance-partial-warn {
    color: #d97706;
    margin-left: 2px;
}

.finance-pct-up {
    color: #dc2626;
    font-weight: 600;
}

.finance-row-overrun {
    background: #fef2f2 !important;
    color: #dc2626;
}

.finance-expense-wrap {
    max-width: 400px;
}

.finance-expense-row {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
    gap: 8px;
}

.finance-expense-label {
    width: 80px;
    font-size: 13px;
}

.finance-expense-bar-wrap {
    flex: 1;
    height: 20px;
    background: #e5e7eb;
    border-radius: 4px;
    overflow: hidden;
}

.finance-expense-bar {
    display: block;
    height: 100%;
    border-radius: 4px;
}

.finance-expense-fabric {
    background: #3b82f6;
}

.finance-expense-accessory {
    background: #10b981;
}

.finance-expense-processing {
    background: #f59e0b;
}

.finance-expense-pct {
    width: 48px;
    font-size: 13px;
    font-weight: 600;
}

.finance-col-toggle {
    width: 40px;
}
