﻿/* ── Transaction View – Brand Refresh ── */

.tran-view {
    background: var(--bg-page, #F9FAFB);
    padding: 20px 24px;
    font-family: var(--font, 'DM Sans', sans-serif);
}

/* Section labels */
.tran-section-label {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-muted, #6B7280);
    padding-bottom: 8px;
    border-bottom: 2px solid var(--border, #E5E7EB);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

    .tran-section-label::after {
        content: '';
        flex: 1;
        height: 1px;
        background: linear-gradient(to right, var(--border), transparent);
    }

/* Cards */
.tran-view .card {
    border: 1px solid var(--border, #E5E7EB) !important;
    border-radius: var(--radius, 16px) !important;
    background: var(--bg-card, #FFFFFF);
    box-shadow: var(--shadow-sm, 0 1px 3px rgba(0,0,0,0.04));
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

    .tran-view .card:hover {
        box-shadow: var(--shadow-md, 0 4px 16px rgba(79,70,229,0.08));
        transform: translateY(-2px);
    }

.tran-view .card-body {
    padding: 1rem 1.25rem;
}

/* Headings inside cards */
.tran-view .card h4,
.tran-view .card h5,
.tran-view .card h6 {
    color: var(--text-heading, #111827);
    font-weight: 600;
}

.tran-view .card .text-600 {
    color: var(--text-muted, #6B7280);
}

/* Info rows (custom component) */
.info-row-label {
    font-weight: 500;
    color: var(--text-secondary, #6B7280);
    font-size: 0.7rem;
    letter-spacing: 0.2px;
}

.info-row-value {
    color: var(--text-heading, #111827);
    font-weight: 500;
    font-size: 0.8rem;
}

/* Table */
.tran-view .table {
    font-size: 0.78rem;
    margin-bottom: 0;
    border-collapse: separate;
    border-spacing: 0;
}

    .tran-view .table thead th {
        background: #F9FAFB;
        color: var(--text-muted, #6B7280);
        font-weight: 700;
        font-size: 0.7rem;
        text-transform: uppercase;
        letter-spacing: 0.5px;
        border-bottom: 2px solid var(--border, #E5E7EB);
        padding: 10px 12px;
        white-space: nowrap;
    }

    .tran-view .table tbody td {
        vertical-align: middle;
        padding: 8px 12px;
        border-bottom: 1px solid var(--border, #E5E7EB);
        color: var(--text-body, #374151);
    }

    .tran-view .table tbody tr:hover {
        background-color: #F5F3FF; /* primary tint */
        transition: background 0.15s;
    }

    .tran-view .table tbody td p {
        margin-bottom: 0;
        line-height: 1.4;
    }

    .tran-view .table tbody td .fw-semibold {
        font-weight: 600;
        color: var(--text-heading, #111827);
    }

    .tran-view .table tbody td .text-600 {
        color: var(--text-muted, #6B7280);
    }

    /* Table footers */
    .tran-view .table tfoot {
        border-top: 2px solid var(--border, #E5E7EB);
    }

        .tran-view .table tfoot td {
            padding: 8px 12px;
            font-size: 0.78rem;
        }

        .tran-view .table tfoot .table-secondary {
            background-color: #F9FAFB;
        }

        .tran-view .table tfoot .fw-bold {
            font-weight: 700;
            color: var(--text-heading, #111827);
        }

        .tran-view .table tfoot .table-secondary td {
            border-top: 1px solid var(--border, #E5E7EB);
        }

/* Summary row custom component */
.summary-row td {
    padding: 4px 12px;
}

.summary-row .label {
    color: var(--text-muted, #6B7280);
    font-size: 0.75rem;
    text-align: right;
}

.summary-row .value {
    font-weight: 600;
    color: var(--text-heading, #111827);
    text-align: right;
    padding-right: 12px;
}

/* Modals */
.modal-content {
    border: none;
    border-radius: var(--radius, 16px);
    box-shadow: var(--shadow-lg, 0 12px 40px rgba(79,70,229,0.12));
}

.modal-header {
    background: #F9FAFB;
    border-bottom: 1px solid var(--border, #E5E7EB);
}

    .modal-header h6 {
        font-weight: 700;
        color: var(--text-heading, #111827);
    }

.modal-footer .btn {
    font-weight: 600;
    font-size: 0.8rem;
    border-radius: var(--radius-sm, 10px);
    padding: 6px 16px;
}

.modal-footer .btn-outline-secondary {
    border-color: var(--border, #E5E7EB);
    color: var(--text-muted, #6B7280);
}

    .modal-footer .btn-outline-secondary:hover {
        background: #F9FAFB;
    }

.modal-footer .btn-danger {
    background: var(--accent-error, #EF4444);
    border: none;
    color: white;
}

    .modal-footer .btn-danger:hover {
        background: #DC2626;
    }

/* Responsive tweaks */
@media (max-width: 768px) {
    .tran-view {
        padding: 12px 16px;
    }

        .tran-view .card-body {
            padding: 0.75rem;
        }

        .tran-view .table thead th,
        .tran-view .table tbody td,
        .tran-view .table tfoot td {
            padding: 6px 8px;
            font-size: 0.7rem;
        }

        .tran-view .table thead th {
            font-size: 0.65rem;
        }
}
