    /* Accounting page specific styles - UI/UX Pro Max enhanced */

    /* === Reduced Motion === */
    @media (prefers-reduced-motion: reduce) {
        *, *::before, *::after {
            animation-duration: 0.01ms !important;
            animation-iteration-count: 1 !important;
            transition-duration: 0.01ms !important;
        }
    }

    /* === Focus States (Accessibility) === */
    *:focus-visible {
        outline: 2px solid #8B5CF6;
        outline-offset: 2px;
    }
    input:focus-visible, select:focus-visible, textarea:focus-visible {
        outline: none;
        border-color: #8B5CF6;
        box-shadow: 0 0 0 3px rgba(139,92,246,0.15);
    }

    /* === Cursor Pointer === */
    .list-item[onclick], .mod-card, .action-btn, .sub-tab,
    .mod-back-btn, .search-btn, .btn-primary-full, .btn-outline-full,
    .modal-close, .list-btn { cursor: pointer; }

    /* === Hover Transitions === */
    .list-item[onclick] {
        transition: background-color 0.2s ease;
    }
    .list-item[onclick]:hover {
        background-color: var(--primary-light);
    }
    .sub-tab {
        transition: all 0.2s ease;
    }
    .sub-tab:hover:not(.active) {
        background: rgba(139,92,246,0.06);
    }
    .action-btn {
        transition: all 0.2s ease;
    }
    .action-btn:hover {
        transform: translateY(-1px);
        box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    }
    .list-btn {
        transition: all 0.2s ease;
    }
    .list-btn:hover {
        background: var(--primary-light) !important;
        color: #8B5CF6 !important;
    }

    /* === Button Loading State === */
    .btn-loading {
        position: relative;
        pointer-events: none;
        opacity: 0.7;
    }
    .btn-loading::after {
        content: '';
        position: absolute;
        width: 14px; height: 14px;
        border: 2px solid transparent;
        border-top-color: currentColor;
        border-radius: 50%;
        animation: spin 0.6s linear infinite;
        top: 50%; left: 50%;
        margin: -7px 0 0 -7px;
    }

    /* === Skeleton Loading === */
    .skeleton {
        background: linear-gradient(90deg, var(--bg-body) 25%, #e8ecf0 50%, var(--bg-body) 75%);
        background-size: 200% 100%;
        animation: shimmer 1.5s infinite;
        border-radius: 6px;
    }
    @keyframes shimmer {
        0% { background-position: 200% 0; }
        100% { background-position: -200% 0; }
    }
    @keyframes spin { to { transform: rotate(360deg); } }

    /* === Touch Target Size === */
    .list-btn, .action-btn, .search-btn, .sub-tab {
        min-height: 32px;
        min-width: 44px;
    }

    .acct-header {
        background: linear-gradient(135deg, #8B5CF6 0%, #5B21B6 100%);
        padding: 16px 15px 20px;
        position: relative;
        overflow: hidden;
    }
    .acct-header::before {
        content: '';
        position: absolute;
        top: -40%; right: -20%;
        width: 200px; height: 200px;
        background: radial-gradient(circle, rgba(255,255,255,0.12) 0%, transparent 70%);
    }
    .acct-header h1 {
        position: relative; z-index: 1;
        color: #fff; font-size: 20px; font-weight: 700;
        margin-bottom: 4px;
    }
    .acct-header p {
        position: relative; z-index: 1;
        color: rgba(255,255,255,0.85); font-size: 13px;
    }
    .acct-back {
        position: absolute; left: 12px; top: 16px; z-index: 2;
        width: 32px; height: 32px; border-radius: 8px;
        background: rgba(255,255,255,0.2); border: none; color: #fff;
        font-size: 16px; cursor: pointer;
        display: flex; align-items: center; justify-content: center;
        transition: background 0.2s ease;
    }
    .acct-back:active { background: rgba(255,255,255,0.35); }

    /* Sub tabs */
    .sub-tabs {
        display: flex;
        background: var(--bg-body);
        border-radius: var(--radius-sm);
        padding: 3px;
        margin-bottom: 12px;
    }
    .sub-tab {
        flex: 1; text-align: center;
        padding: 7px 10px; font-size: 12px; font-weight: 600;
        border-radius: 8px; cursor: pointer;
        color: var(--text-secondary);
        transition: all var(--transition);
    }
    .sub-tab.active {
        background: var(--bg-white);
        color: #8B5CF6;
        box-shadow: var(--shadow);
    }

    /* Action button row */
    .action-row {
        display: flex; gap: 8px; flex-wrap: wrap;
        padding: 0 15px 12px;
    }
    .action-btn {
        flex: 1; min-width: 0;
        padding: 10px 8px;
        background: var(--bg-white);
        border: 1.5px solid var(--border);
        border-radius: var(--radius-sm);
        font-size: 12px; font-weight: 600;
        color: var(--text-primary);
        cursor: pointer; text-align: center;
        transition: all var(--transition);
    }
    .action-btn:active {
        border-color: #8B5CF6;
        background: var(--primary-light);
        color: #8B5CF6;
    }
    .action-btn.danger { border-color: var(--danger); color: var(--danger); }
    .action-btn.success { border-color: var(--success); color: var(--success); }
    .action-btn.warning { border-color: var(--warning); color: var(--warning); }
    .action-btn.primary { border-color: #8B5CF6; color: #8B5CF6; }

    /* Status badge */
    .status-block {
        text-align: center; padding: 16px;
        font-size: 14px; font-weight: 600;
    }
    .status-locked { color: var(--success); }
    .status-unlocked { color: var(--warning); }

    /* Report cards */
    .rpt-card {
        background: var(--bg-white);
        border-radius: var(--radius-sm);
        margin: 0 15px 10px;
        padding: 14px;
        box-shadow: var(--shadow);
    }
    .rpt-row {
        display: flex; justify-content: space-between;
        padding: 7px 0; border-bottom: 1px solid #f5f5f5;
        font-size: 13px;
    }
    .rpt-row:last-child { border-bottom: none; }
    .rpt-row.highlight {
        background: var(--primary-light);
        margin: 4px -14px; padding: 8px 14px;
        font-weight: 700;
    }
    .rpt-label { color: var(--text-secondary); }
    .rpt-val { font-weight: 600; }

    /* Processing status steps */
    .step-bar {
        display: flex; align-items: center;
        padding: 12px 15px; gap: 4px;
    }
    .step {
        flex: 1; text-align: center; font-size: 11px;
        color: var(--text-tertiary); padding: 6px 0;
        border-radius: 6px; background: var(--bg-body);
    }
    .step.done { background: var(--success); color: #fff; }
    .step.current { background: var(--warning); color: #fff; }
    .step-arrow { color: var(--text-tertiary); font-size: 10px; }

    /* Inline edit row */
    .inline-row {
        display: flex; gap: 6px; align-items: center;
        padding: 8px 0;
    }
    .inline-row input, .inline-row select {
        flex: 1; padding: 7px 10px;
        border: 1px solid var(--border);
        border-radius: 8px; font-size: 13px;
        background: var(--bg-body);
    }

    /* Segment profit table */
    .seg-table {
        width: 100%; border-collapse: collapse;
        font-size: 12px; margin: 8px 0;
    }
    .seg-table th {
        background: var(--bg-body); padding: 8px 6px;
        text-align: right; font-weight: 600;
        border-bottom: 2px solid var(--border);
    }
    .seg-table th:first-child { text-align: left; }
    .seg-table td {
        padding: 8px 6px; text-align: right;
        border-bottom: 1px solid #f5f5f5;
    }
    .seg-table td:first-child { text-align: left; font-weight: 500; }
    .seg-table .total-row { background: var(--primary-light); font-weight: 700; }

    /* Cash flow */
    .cf-section {
        font-size: 13px; font-weight: 700;
        color: #8B5CF6; padding: 10px 0 6px;
    }
    .cf-row {
        display: flex; justify-content: space-between;
        padding: 5px 0; font-size: 12px;
    }

    /* Contract card */
    .contract-card {
        background: var(--bg-white);
        border-radius: var(--radius-sm);
        margin: 0 15px 10px;
        padding: 14px;
        box-shadow: var(--shadow);
    }
    .contract-card .cc-title { font-weight: 700; font-size: 14px; margin-bottom: 6px; }
    .contract-card .cc-info { font-size: 12px; color: var(--text-secondary); line-height: 1.6; }

    /* SVG icon inline replacement */
    .icon-sm { width: 16px; height: 16px; display: inline-block; vertical-align: middle; }
    .icon-md { width: 20px; height: 20px; display: inline-block; vertical-align: middle; }

    /* Quick voucher card grid */
    .quick-card {
        background: var(--bg-white);
        border-radius: var(--radius-sm);
        padding: 14px 8px 10px;
        text-align: center;
        box-shadow: var(--shadow);
        cursor: pointer;
        transition: all var(--transition);
    }
    .quick-card:active {
        background: var(--primary-light);
        transform: scale(0.96);
    }
    .quick-icon {
        width: 40px; height: 40px;
        margin: 0 auto 6px;
        display: flex; align-items: center; justify-content: center;
        border-radius: 10px;
        background: var(--bg-body);
    }
    .quick-label {
        font-size: 12px; font-weight: 600;
        color: var(--text-primary);
    }

    /* 往来账样式 */
    .ca-container {
        padding: 0 15px 16px;
    }
    .ca-card {
        background: var(--bg-white);
        border-radius: var(--radius-sm);
        margin-bottom: 8px;
        box-shadow: var(--shadow);
        overflow: hidden;
    }
    .ca-card-header {
        display: flex; justify-content: space-between; align-items: center;
        padding: 12px 15px; cursor: pointer;
        transition: background-color 0.2s ease;
    }
    .ca-card-header:active { background: var(--primary-light); }
    .ca-name { font-size: 14px; font-weight: 700; color: var(--text-primary); }
    .ca-arrow { font-size: 12px; color: var(--text-tertiary); transition: transform 0.2s ease; }
    .ca-card-body {
        padding: 0 15px 10px;
        background: var(--bg-body);
        border-top: 1px solid var(--border);
    }
    .ca-row {
        display: flex; justify-content: space-between; align-items: center;
        padding: 8px 0; border-bottom: 1px solid #f0f0f0;
        font-size: 12px;
    }
    .ca-row:last-child { border-bottom: none; }
    .ca-row.ca-header { font-weight: 600; }
    .ca-r { text-align: right; min-width: 70px; }
    .ca-r.positive { color: var(--danger); }
    .ca-r.negative { color: var(--success); }
    .ca-items {
        padding: 6px 0 4px 12px;
        border-left: 2px solid var(--primary);
        margin: 4px 0;
    }
    .ca-item {
        display: flex; align-items: center; gap: 6px;
        padding: 7px 8px; font-size: 11px;
        cursor: pointer; border-bottom: 1px solid #f5f5f5;
        transition: background-color 0.2s ease;
    }
    .ca-item:last-child { border-bottom: none; }
    .ca-item:active { background: var(--primary-light); }
    .ca-item-date { color: var(--text-tertiary); min-width: 70px; }
    .ca-item-id { color: var(--primary); font-weight: 600; min-width: 100px; }
    .ca-item-summary { flex: 1; color: var(--text-secondary); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .ca-item-debit, .ca-item-credit { min-width: 60px; text-align: right; font-family: 'SF Mono', monospace; }

    /* 往来账类型标签 */
    .ca-tag {
        display: inline-block; padding: 2px 6px; border-radius: 4px;
        font-size: 10px; font-weight: 600; min-width: 32px; text-align: center;
    }
    .ca-tag-occur { background: #e8f4fd; color: #1976d2; }
    .ca-tag-collect { background: #e8f5e9; color: #388e3c; }
    .ca-tag-pay { background: #fff3e0; color: #f57c00; }

    /* 往来账汇总行（始终可见） */
    .ca-summary {
        padding: 0 15px 8px;
        background: var(--bg-body);
        border-top: 1px solid var(--border);
    }
    .ca-summary-row {
        display: flex; justify-content: space-between; align-items: center;
        padding: 6px 0; border-bottom: 1px dashed var(--border);
        font-size: 12px;
    }
    .ca-summary-row:last-child { border-bottom: none; }
    .ca-summary-label { font-weight: 600; color: var(--text-primary); }

    /* 可搜索下拉组件 — 参考 sales.html 客户选择样式 */
    .ss-wrap { position: relative; width: 100%; }
    .ss-input {
        width: 100%; padding: 8px 32px 8px 10px;
        border: 1px solid var(--border); border-radius: 6px;
        font-size: 13px; cursor: pointer; background: #fff;
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M2 4l4 4 4-4' fill='none' stroke='%23999' stroke-width='1.5'/%3E%3C/svg%3E");
        background-repeat: no-repeat;
        background-position: right 10px center;
        transition: border-color 0.2s;
    }
    .ss-input:focus { border-color: #8B5CF6; outline: none; }
    .ss-dd {
        position: absolute; top: 100%; left: 0; right: 0;
        background: #fff; border: 1px solid var(--border);
        border-radius: 0 0 8px 8px; max-height: 300px;
        overflow-y: auto; z-index: 1000; display: none;
        box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    }
    .ss-dd.open { display: block; }
    .ss-dd .ss-item {
        padding: 8px 12px; font-size: 13px; cursor: pointer;
        border-bottom: 1px solid #f5f5f5;
        white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
        transition: background 0.15s;
    }
    .ss-dd .ss-item:last-child { border-bottom: none; }
    .ss-dd .ss-item:active, .ss-dd .ss-item:hover { background: rgba(139,92,246,0.08); }
    .ss-dd .ss-item.active { background: rgba(139,92,246,0.12); font-weight: 600; }
    .ss-dd.ss-empty { padding: 16px; text-align: center; color: var(--text-tertiary); font-size: 13px; }

    /* 手工凭证分录辅助核算行 */
    .e-aux-row td {
        padding: 4px 12px !important;
        background: rgba(139,92,246,0.06) !important;
    }
    .e-aux-row .ss-wrap {
        width: auto;
        min-width: 150px;
    }
