/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Fintech Color Palette */
    --primary-color: #6366f1;
    --primary-dark: #4f46e5;
    --primary-light: #818cf8;
    --secondary-color: #10b981;
    --background: #f8fafc;
    --surface: #ffffff;
    --text-primary: #1e293b;
    --text-secondary: #64748b;
    --border-color: #e2e8f0;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --border-radius: 12px;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Sukhumvit Set', 'Helvetica Neue', Arial, sans-serif;
    background: var(--background);
    color: var(--text-primary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    padding-top: 60px; /* Space for fixed navbar */
}

/* Navigation Bar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 12px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
}

.navbar-brand h1 {
    font-size: 20px;
    margin: 0;
    font-weight: 700;
}

.navbar-menu {
    display: flex;
    align-items: center;
    gap: 15px;
}

.navbar-user {
    display: flex;
    align-items: center;
    gap: 10px;
}

.navbar-agent-name {
    font-size: 14px;
    font-weight: 500;
}

.navbar-dropdown {
    position: relative;
}

.navbar-dropdown-btn {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 18px;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.navbar-dropdown-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

.navbar-dropdown-content {
    display: none;
    position: absolute;
    right: 0;
    top: 40px;
    padding-top: 8px;
    background: transparent;
    min-width: 180px;
    z-index: 100;
}

.navbar-dropdown-content-inner {
    background: white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    border-radius: 10px;
    overflow: hidden;
}

.navbar-dropdown-content.open {
    display: block;
}

/* removed hover trigger — now handled by JS click */

.navbar-dropdown-content a {
    display: block;
    padding: 12px 16px;
    color: #333;
    text-decoration: none;
    transition: background 0.2s;
    font-size: 14px;
}

.navbar-dropdown-content a:hover {
    background: #f5f5f5;
}

/* Container */
.container {
    max-width: 480px;
    margin: 0 auto;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Plans Container */
.plans-container {
    display: grid;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

/* Plan Card */
.plan-card {
    position: relative;
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.plan-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.plan-title {
    font-size: 1.25rem;
    color: var(--primary-color);
    margin: 0;
}

.plan-subtitle {
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
}

.btn-remove-plan {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #fee2e2;
    color: #dc2626;
    border: none;
    font-size: 1.2rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.btn-remove-plan:hover {
    background: #fecaca;
    transform: rotate(90deg);
}

/* Form Rows for Side-by-Side Inputs */
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.section-label {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 1rem 0 0.75rem;
}

/* Action Buttons */
.action-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2rem;
}

.btn-add-plan {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem;
    background: white;
    color: var(--primary-color);
    border: 2px dashed var(--primary-color);
    border-radius: var(--border-radius);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-add-plan:hover {
    background: var(--primary-color);
    color: white;
    border-style: solid;
}

.btn-add-plan .btn-icon {
    font-size: 1.5rem;
    font-weight: 700;
}

/* Results Grid */
.results-grid {
    display: grid;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.results-grid.single-result {
    max-width: 480px;
    margin: 0 auto 1.5rem;
}

.results-card {
    position: relative;
    transition: all 0.3s ease;
}

.results-card.winner {
    border: 2px solid #fbbf24;
    box-shadow: 0 0 20px rgba(251, 191, 36, 0.3);
}

/* Winner Badge (Top Style) */
.winner-badge-top {
    position: absolute;
    top: -16px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 700;
    font-size: 0.85rem;
    z-index: 10;
    animation: bounce 0.6s ease;
}

.winner-badge-top .badge-icon {
    font-size: 1.2rem;
}

/* Comparison Summary */
.comparison-summary {
    background: linear-gradient(135deg, #fefce8 0%, #fef3c7 100%);
    border: 2px solid #fbbf24;
    animation: slideIn 0.5s ease;
}

.comparison-table {
    overflow-x: auto;
}

.comparison-table table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 8px;
    overflow: hidden;
}

.comparison-table th {
    background: var(--primary-color);
    color: white;
    padding: 0.75rem;
    text-align: left;
    font-weight: 600;
    font-size: 0.9rem;
}

.comparison-table td {
    padding: 0.75rem;
    border-bottom: 1px solid var(--border-color);
    font-size: 0.9rem;
}

.comparison-table tr:last-child td {
    border-bottom: none;
}

.comparison-table .winner-row {
    background: #fef3c7;
    font-weight: 600;
}

.comparison-table .winner-row td {
    color: var(--text-primary);
}

/* Responsive Design */
@media (min-width: 768px) {
    .container {
        max-width: 900px;
    }

    .plans-container {
        grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    }

    .results-grid:not(.single-result) {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    }

    .action-buttons {
        flex-direction: row;
        justify-content: center;
    }

    .btn-add-plan,
    .btn-primary {
        flex: 1;
        max-width: 300px;
    }
}

@media (min-width: 1024px) {
    .container {
        max-width: 1200px;
    }

    .plans-container {
        grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
    }

    .results-grid:not(.single-result) {
        grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    }
}

/* Mode Toggle */
.mode-toggle {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    background: var(--surface);
    padding: 0.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
}

.mode-btn {
    flex: 1;
    padding: 0.75rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-secondary);
    background: transparent;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.mode-btn.active {
    color: white;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    box-shadow: var(--shadow-sm);
}

.mode-btn:hover:not(.active) {
    background: var(--background);
}

/* Compare Mode Layout */
.compare-container {
    display: grid;
    gap: 1rem;
    margin-bottom: 1rem;
}

.compare-card {
    position: relative;
}

.plan-title {
    font-size: 1.25rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    text-align: center;
}

/* Compare Results */
.compare-results-container {
    display: grid;
    gap: 1rem;
    margin-bottom: 1.5rem;
    position: relative;
}

.compare-result {
    position: relative;
}

.winner-badge {
    display: none;
    position: absolute;
    top: -1rem;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
    font-weight: 700;
    font-size: 0.85rem;
    text-align: center;
    z-index: 10;
    animation: bounce 0.6s ease;
}

.winner-badge.show {
    display: block;
}

.badge-icon {
    font-size: 1.5rem;
    margin-bottom: 0.25rem;
}

.badge-text {
    font-size: 0.8rem;
}

.badge-arrow {
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-top: 8px solid #f59e0b;
}

@keyframes bounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(-10px); }
}

/* Comparison Summary */
.comparison-summary {
    background: linear-gradient(135deg, #fefce8 0%, #fef3c7 100%);
    border: 2px solid #fbbf24;
}

.comparison-details {
    display: grid;
    gap: 1rem;
}

.comparison-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem;
    background: white;
    border-radius: 8px;
}

.comparison-label {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.9rem;
}

.comparison-values {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.comparison-value {
    font-weight: 700;
    font-size: 1rem;
}

.comparison-value.winner {
    color: var(--secondary-color);
    font-size: 1.1rem;
}

.comparison-value.loser {
    color: var(--text-secondary);
    opacity: 0.7;
}

.vs-separator {
    color: var(--text-secondary);
    font-weight: 600;
}

/* Responsive Design for Tablets and Desktop */
@media (min-width: 768px) {
    .container {
        max-width: 900px;
    }

    .compare-container {
        grid-template-columns: 1fr 1fr;
    }

    .compare-results-container {
        grid-template-columns: 1fr 1fr;
    }

    .winner-badge {
        top: 50%;
        left: auto;
        right: -1.5rem;
        transform: translateY(-50%) rotate(-90deg);
    }

    .winner-badge.plan1 {
        left: -1.5rem;
        right: auto;
        transform: translateY(-50%) rotate(90deg);
    }

    .badge-arrow {
        display: none;
    }
}

@media (min-width: 1024px) {
    .container {
        max-width: 1200px;
    }
}

/* Header */
.header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
    padding: 2rem 1.5rem 3rem;
    text-align: center;
    box-shadow: var(--shadow-lg);
}

.logo h1 {
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: -0.5px;
    margin-bottom: 0.5rem;
}

.tagline {
    font-size: 0.95rem;
    opacity: 0.95;
    font-weight: 300;
}

/* Main Content */
.main-content {
    flex: 1;
    padding: 0 1.5rem 2rem;
    margin-top: -1.5rem;
}

/* Card */
.card {
    background: var(--surface);
    border-radius: var(--border-radius);
    padding: 2rem 1.5rem;
    box-shadow: var(--shadow-md);
    margin-bottom: 2rem;
}

.form-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.form-subtitle {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

/* Form Styles */
.form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-label {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.form-input,
.form-select {
    width: 100%;
    padding: 0.875rem 1rem;
    font-size: 1rem;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    background: var(--surface);
    color: var(--text-primary);
    transition: all 0.2s ease;
    font-family: inherit;
}

.form-input:focus,
.form-select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.form-input::placeholder {
    color: var(--text-secondary);
    opacity: 0.7;
}

.form-select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 1.25rem;
    padding-right: 3rem;
    cursor: pointer;
}

/* Button */
.btn-primary {
    width: 100%;
    padding: 1rem;
    font-size: 1rem;
    font-weight: 600;
    color: white;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: var(--shadow-sm);
    margin-top: 0.5rem;
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.btn-primary:active {
    transform: translateY(0);
}

/* Features Section */
.features {
    display: grid;
    gap: 1rem;
    margin-bottom: 2rem;
}

.feature-item {
    background: var(--surface);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
    text-align: center;
    transition: all 0.2s ease;
}

.feature-item:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 0.75rem;
}

.feature-item h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.feature-item p {
    font-size: 0.875rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* Footer */
.footer {
    text-align: center;
    padding: 1.5rem;
    color: var(--text-secondary);
    font-size: 0.85rem;
    border-top: 1px solid var(--border-color);
}

/* Responsive Design */
@media (max-width: 480px) {
    .header {
        padding: 1.5rem 1rem 2.5rem;
    }

    .logo h1 {
        font-size: 1.75rem;
    }

    .main-content {
        padding: 0 1rem 1.5rem;
    }

    .card {
        padding: 1.5rem 1rem;
    }
}

/* Input validation styles */
.form-input:invalid:not(:placeholder-shown),
.form-select:invalid:not(:placeholder-shown) {
    border-color: #ef4444;
}

.form-input:valid:not(:placeholder-shown),
.form-select:valid {
    border-color: var(--secondary-color);
}

/* Section Divider */
.divider {
    height: 1px;
    background: linear-gradient(to right, transparent, var(--border-color), transparent);
    margin: 1.5rem 0;
}

.divider-thin {
    height: 1px;
    background: var(--border-color);
    margin: 1rem 0;
}

.section-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

/* Results Card */
.results-card {
    background: linear-gradient(135deg, #f0fdf4 0%, #dbeafe 100%);
    border: 2px solid var(--secondary-color);
}

.results-content {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.result-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
}

.result-item.highlight {
    background: white;
    padding: 1.25rem;
    border-radius: 8px;
    box-shadow: var(--shadow-sm);
}

.result-item.highlight.irr {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
}

.result-item.highlight.irr .result-label,
.result-item.highlight.irr .result-value {
    color: white;
}

.result-label {
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.result-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.result-value.small {
    font-size: 1.1rem;
}

.result-value.big {
    font-size: 2rem;
    font-weight: 800;
}

.result-value.positive {
    color: var(--secondary-color);
}

.result-value.negative {
    color: #ef4444;
}

/* Insurance Type Specific Highlights */
.pension-highlight {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border: 2px solid #f59e0b;
}

.pension-highlight .result-label,
.pension-highlight .result-value {
    color: #92400e;
}

.lifelong-highlight {
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
    border: 2px solid #3b82f6;
}

.lifelong-highlight .result-label,
.lifelong-highlight .result-value {
    color: #1e40af;
}

.savings-result {
    border-left: 4px solid #10b981;
}

.pension-result {
    border-left: 4px solid #f59e0b;
}

.lifelong-result {
    border-left: 4px solid #3b82f6;
}

.health-result {
    border-left: 4px solid #06b6d4;
}

/* Health Insurance Highlight */
.health-highlight {
    background: linear-gradient(135deg, #cffafe 0%, #a5f3fc 100%);
    padding: 1rem;
    border-radius: 8px;
    border: 2px solid #06b6d4;
    margin-bottom: 1rem;
}

.health-highlight .result-label,
.health-highlight .result-value {
    color: #164e63;
}

/* Best Value Indicator (Green Highlight) */
.best-value {
    color: #16a34a !important;
    font-weight: 800 !important;
}

.best-value-row {
    background: #f0fdf4 !important;
}

.best-value-row td {
    font-weight: 600;
}

.value-ratio {
    font-weight: 700;
    color: var(--secondary-color);
}

/* Premium Projection Display */
.premium-projection-display {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.projection-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem;
    background: var(--background);
    border-radius: 6px;
    border: 1px solid var(--border-color);
}

.projection-item.current {
    background: linear-gradient(135deg, #e0e7ff 0%, #c7d2fe 100%);
    border-color: var(--primary-color);
}

.projection-age {
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-weight: 600;
}

.projection-premium {
    font-size: 0.9rem;
    color: var(--primary-color);
    font-weight: 700;
}

/* Smart Summary */
.smart-summary {
    margin-top: 2rem;
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 50%, #fed7aa 100%);
    border: 2px solid #f59e0b;
}

.smart-summary .form-title {
    color: #92400e;
}

.summary-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    margin-top: 1rem;
}

.summary-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.summary-icon {
    font-size: 2.5rem;
    line-height: 1;
}

.summary-content {
    flex: 1;
}

.summary-label {
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.25rem;
}

.summary-value {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 0.25rem;
}

.summary-value.highlight-green {
    color: #16a34a;
    font-size: 2rem;
}

.summary-detail {
    font-size: 0.8rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

.summary-item.health-coverage {
    border-left: 4px solid #06b6d4;
}

.summary-item.tax-benefits {
    border-left: 4px solid #8b5cf6;
}

.summary-item.tax-refund {
    border-left: 4px solid #16a34a;
}

.summary-item.total-premium {
    border-left: 4px solid #f59e0b;
}

.summary-item.senior-highlight {
    border-left: 4px solid #dc2626;
    background: #fff7ed;
}

/* Minor (underage) warning banner */
.alert-minor {
    background: #fffbeb;
    border: 2px solid #f59e0b;
    border-radius: 10px;
    padding: 0.75rem 1.25rem;
    margin-bottom: 1rem;
    color: #92400e;
    font-weight: 600;
    font-size: 0.95rem;
}

/* Senior citizen notice card */
.senior-notice {
    margin-top: 1.5rem;
    background: linear-gradient(135deg, #fff7ed 0%, #ffedd5 100%);
    border: 2px solid #ea580c;
}

.senior-notice-header {
    font-size: 1.1rem;
    font-weight: 700;
    color: #9a3412;
    margin-bottom: 0.75rem;
}

.senior-tips {
    margin: 0;
    padding-left: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.senior-tips li {
    color: #7c2d12;
    font-size: 0.9rem;
    line-height: 1.5;
}

@media (min-width: 768px) {
    .summary-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .summary-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Comparison Type Headers */
.comparison-type-header {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary-color);
    margin: 1.5rem 0 0.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--border-color);
}

.comparison-type-header:first-child {
    margin-top: 0;
}

.result-grid {
    display: grid;
    gap: 0.75rem;
}

.cashflow-summary {
    margin-top: 0.5rem;
}

/* Button Secondary */
.btn-secondary {
    width: 100%;
    padding: 0.875rem;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--primary-color);
    background: white;
    border: 2px solid var(--primary-color);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-secondary:hover {
    background: var(--primary-color);
    color: white;
}

/* Cashflow Table */
.cashflow-table {
    overflow-x: auto;
    margin-top: 1rem;
}

.cashflow-table table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.875rem;
}

.cashflow-table th,
.cashflow-table td {
    padding: 0.75rem 0.5rem;
    text-align: right;
    border-bottom: 1px solid var(--border-color);
}

.cashflow-table th {
    background: var(--background);
    font-weight: 600;
    color: var(--text-primary);
    position: sticky;
    top: 0;
}

.cashflow-table td:first-child,
.cashflow-table th:first-child {
    text-align: center;
    font-weight: 600;
}

.cashflow-table .cash-out {
    color: #ef4444;
}

.cashflow-table .cash-in {
    color: var(--secondary-color);
}

.cashflow-table .net-flow {
    font-weight: 600;
}

.cashflow-table tr:last-child {
    border-bottom: 2px solid var(--primary-color);
}

.cashflow-table tr:last-child td {
    font-weight: 700;
    font-size: 0.95rem;
}
