/* ========================================
   Tax Gain Harvester - Clean Dark Theme
   ======================================== */

:root {
    --bg-primary: #0d1117;
    --bg-secondary: #161b22;
    --bg-card: #21262d;
    --bg-hover: #30363d;

    --text-primary: #f0f6fc;
    --text-secondary: #8b949e;
    --text-muted: #484f58;

    --accent: #58a6ff;
    --accent-light: #79c0ff;

    --success: #3fb950;
    --success-bg: rgba(63, 185, 80, 0.15);
    --warning: #d29922;
    --warning-bg: rgba(210, 153, 34, 0.15);
    --error: #f85149;

    --border: #30363d;
    --radius: 8px;

    /* Spacing System */
    --space-xs: 4px;
    --space-sm: 8px;
    --space-md: 16px;
    --space-lg: 24px;
    --space-xl: 32px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    /* Performance: System font fallback while Inter loads asynchronously */
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.5;
    min-height: 100vh;
}

.app-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: var(--space-xl) 20px;
}

/* ========================================
   Header
   ======================================== */

.header {
    text-align: center;
    margin-bottom: var(--space-xl);
}

.logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 8px;
}

.logo-icon {
    font-size: 28px;
}

.header h1 {
    font-size: 1.75rem;
    font-weight: 600;
    color: var(--text-primary);
}

.subtitle {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* ========================================
   Sections
   ======================================== */

section {
    margin-bottom: var(--space-xl);
}

section>h2 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.section-desc {
    color: var(--text-secondary);
    font-size: 0.875rem;
    margin-bottom: 16px;
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 16px;
}

.section-header h2 {
    margin: 0;
}

/* ========================================
   Dropzone
   ======================================== */

.dropzone {
    position: relative;
    border: 2px dashed var(--border);
    border-radius: var(--radius);
    padding: var(--space-xl) 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
    background: var(--bg-secondary);
    margin-bottom: 20px;
}

.dropzone:hover,
.dropzone.dragover {
    border-color: var(--accent);
    background: rgba(88, 166, 255, 0.05);
}

.dropzone-icon {
    font-size: 2.5rem;
    display: block;
    margin-bottom: 12px;
}

.dropzone-text {
    font-size: 1rem;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.browse-link {
    color: var(--accent);
    cursor: pointer;
}

.dropzone-hint {
    font-size: 0.8rem;
    color: var(--text-secondary);
    /* Updated from text-muted for better contrast */
}

.dropzone input[type="file"] {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
}

/* File Status List */
.file-status-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-md);
    margin-bottom: var(--space-lg);
}

@media (max-width: 600px) {
    .file-status-list {
        grid-template-columns: 1fr;
    }
}

.file-status-item {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-md);
    background: var(--bg-card);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    min-height: 60px;
}

.file-status-item.loaded {
    border-color: var(--success);
    background: var(--success-bg);
}

.file-status-item .status-icon {
    font-size: 1.1rem;
    flex-shrink: 0;
}

.file-status-item .status-name {
    font-weight: 500;
    font-size: 0.875rem;
    flex: 1;
}

.file-status-item .status-hint {
    font-size: 0.75rem;
    color: var(--text-secondary);
    /* Accessibility: Improved contrast 3.8:1 → 4.6:1 */
}

.optional-badge {
    display: inline-block;
    font-size: 0.65rem;
    padding: 2px 6px;
    margin-left: 6px;
    border-radius: 4px;
    background: var(--warning-bg);
    color: var(--warning);
    font-weight: 500;
}

/* Upload Instructions */
.upload-instructions {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: var(--space-lg);
    margin-top: var(--space-lg);
}

.upload-instructions h3 {
    font-size: 0.9rem;
    margin: 0 0 var(--space-md) 0;
    color: var(--text-primary);
}

.instruction-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-md);
}

@media (max-width: 600px) {
    .instruction-grid {
        grid-template-columns: 1fr;
    }
}

.instruction-item {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: var(--space-md);
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
}

.instruction-item .file-type {
    font-weight: 600;
    font-size: 0.8rem;
    color: var(--accent);
}

.instruction-item .file-path {
    font-size: 0.75rem;
    color: var(--text-secondary);
    /* Improved contrast */
}

.instruction-item .date-range {
    font-size: 0.7rem;
    color: var(--text-secondary);
    /* Improved from text-muted */
    margin-top: 4px;
}

.instruction-tip {
    font-size: 0.75rem;
    color: var(--text-primary);
    /* Accessibility: Use primary text for better contrast on warning-bg */
    margin: 16px 0 0 0;
    padding: 8px 12px;
    background: var(--warning-bg);
    border-radius: var(--radius);
}

/* ========================================
   Calculate Button
   ======================================== */

.calculate-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: 20px auto 0;
    padding: 14px 28px;
    background: linear-gradient(135deg, #238636 0%, #2ea043 50%, #3fb950 100%);
    border: none;
    border-radius: 10px;
    color: #fff;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(46, 160, 67, 0.3);
    position: relative;
    overflow: hidden;
}

.calculate-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.calculate-btn:hover:not(:disabled)::before {
    left: 100%;
}

.calculate-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(46, 160, 67, 0.5);
}

.calculate-btn:active:not(:disabled) {
    transform: translateY(0);
    box-shadow: 0 2px 10px rgba(46, 160, 67, 0.3);
}

.calculate-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    box-shadow: none;
}

/* ========================================
   Tax Summary Grid (v3.0)
   ======================================== */

.tax-summary {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: var(--space-lg);
    margin-bottom: var(--space-xl);
}

.tax-summary h2 {
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.tax-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-md);
}

@media (max-width: 600px) {
    .tax-grid {
        grid-template-columns: 1fr;
    }
}

.tax-item {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: var(--space-md);
    text-align: center;
    display: flex;
    flex-direction: column;
    min-height: 100px;
}

.tax-item.gain {
    border-left: 3px solid var(--success);
}

.tax-item.loss {
    border-left: 3px solid var(--error);
}

.tax-item.net {
    border-left: 3px solid var(--accent);
    background: rgba(88, 166, 255, 0.08);
}

.tax-item.result {
    border-left: 3px solid var(--warning);
    background: var(--warning-bg);
}

.tax-label {
    font-size: 0.75rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.3px;
    margin-bottom: 8px;
}

.tax-value {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-primary);
}

.tax-sub {
    font-size: 0.7rem;
    color: var(--text-muted);
    margin-top: 6px;
}

.tax-item.savings {
    border-left: 3px solid var(--success);
    background: var(--success-bg);
}

.tax-item.savings .tax-value {
    color: var(--success);
}

.tax-actions {
    display: flex;
    gap: 12px;
    margin-top: 16px;
    flex-wrap: wrap;
}

.action-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 16px;
    background: var(--accent);
    color: white;
    border: none;
    border-radius: var(--radius);
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: opacity 0.2s;
}

.action-btn:hover:not(:disabled) {
    opacity: 0.9;
}

.action-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.action-btn.secondary {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text-secondary);
}

.action-btn.secondary:hover {
    background: var(--bg-card);
}

/* Legacy summary-grid (keep for compatibility) */
.summary-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 32px;
}

@media (max-width: 700px) {
    .summary-grid {
        grid-template-columns: 1fr;
    }
}

.summary-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px;
    text-align: center;
}

.summary-card.success {
    border-color: var(--success);
    background: var(--success-bg);
}

.summary-card.warning {
    border-color: var(--warning);
    background: var(--warning-bg);
}

.card-label {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.card-value {
    font-size: 1.5rem;
    font-weight: 700;
}

.card-breakdown {
    margin-top: 8px;
    font-size: 0.75rem;
    color: var(--text-secondary);
}

/* ========================================
   Data Sections
   ======================================== */

.data-section {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: var(--space-lg);
    margin-bottom: var(--space-lg);
    overflow: hidden;
}

.data-section h2 {
    font-size: 1rem;
}

/* ========================================
   Tabs
   ======================================== */

.tabs {
    display: flex;
    gap: 8px;
}

.tab-btn {
    padding: 6px 14px;
    background: transparent;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text-secondary);
    font-size: 0.8rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.tab-btn:hover {
    background: var(--bg-hover);
    color: var(--text-primary);
}

.tab-btn.active {
    background: var(--accent);
    border-color: var(--accent);
    color: #000;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* Filter Tabs */
.filter-tabs {
    display: flex;
    gap: 6px;
}

.filter-btn {
    padding: 5px 12px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text-secondary);
    font-size: 0.75rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.filter-btn:hover {
    background: var(--bg-hover);
    color: var(--text-primary);
}

.filter-btn.active {
    background: var(--success);
    border-color: var(--success);
    color: #000;
}

/* ========================================
   Tables
   ======================================== */

.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85rem;
}

.data-table th,
.data-table td {
    padding: 10px 12px;
    text-align: left;
    border-bottom: 1px solid var(--border);
}

.data-table th {
    font-weight: 600;
    color: var(--text-secondary);
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.data-table tbody tr:hover {
    background: var(--bg-hover);
}

.data-table .positive {
    color: var(--success);
}

.data-table .negative {
    color: var(--error);
}

.data-table .tag {
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.65rem;
    font-weight: 600;
}

.data-table .tag.long {
    background: var(--success-bg);
    color: var(--success);
}

.data-table .tag.short {
    background: var(--warning-bg);
    color: var(--warning);
}

.data-table .date-range {
    font-size: 0.75rem;
    color: var(--text-secondary);
    white-space: nowrap;
}

.data-table .total-row {
    background: var(--bg-card);
    border-top: 2px solid var(--accent);
}

.data-table .total-row:hover {
    background: var(--bg-card);
}

.data-table .total-row td {
    padding-top: 14px;
    padding-bottom: 14px;
}

/* ========================================
   Recommendation Cards
   ======================================== */

.recommendation-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 20px;
}

.recommendation-card {
    display: grid;
    grid-template-columns: 1fr auto auto auto;
    gap: 20px;
    align-items: center;
    padding: 16px 20px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
}

@media (max-width: 700px) {
    .recommendation-card {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }
}

.rec-info .rec-name {
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 4px;
}

.rec-info .rec-type {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.rec-stat {
    text-align: right;
}

.rec-stat .label {
    font-size: 0.65rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    margin-bottom: 2px;
}

.rec-stat .value {
    font-weight: 600;
    font-size: 0.95rem;
}

.rec-stat .value.success {
    color: var(--success);
}

/* ========================================
   Capital Optimization Scenarios
   ======================================== */

.optimization-scenarios {
    margin-bottom: 20px;
    padding: 16px;
    background: linear-gradient(135deg, rgba(88, 166, 255, 0.05) 0%, rgba(56, 139, 253, 0.02) 100%);
    border: 1px solid var(--border);
    border-radius: var(--radius);
}

.optimization-scenarios h3 {
    font-size: 0.95rem;
    margin: 0 0 4px 0;
    color: var(--text-primary);
    font-weight: 600;
}

.optimization-scenarios>.section-desc {
    font-size: 0.8rem;
    margin: 0 0 12px 0;
    color: var(--text-secondary);
}

.scenario-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-md);
}

@media (max-width: 800px) {
    .scenario-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 500px) {
    .scenario-grid {
        grid-template-columns: 1fr;
    }
}

.scenario-card {
    background: var(--bg-card);
    border: 2px solid transparent;
    border-radius: 10px;
    padding: var(--space-md);
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
    min-height: 140px;
}

.scenario-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent), var(--success));
    opacity: 0;
    transition: opacity 0.2s;
}

.scenario-card:hover {
    border-color: var(--accent);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.scenario-card:hover::before {
    opacity: 1;
}

.scenario-card.active {
    border-color: var(--success);
    background: rgba(63, 185, 80, 0.08);
}

.scenario-card.active::before {
    opacity: 1;
    background: var(--success);
}

.scenario-card.recommended {
    border-color: var(--warning);
}

.scenario-card.recommended::before {
    opacity: 1;
    background: var(--warning);
}

.scenario-card .scenario-name {
    font-weight: 600;
    font-size: 0.85rem;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.scenario-card .scenario-name .badge {
    font-size: 0.6rem;
    padding: 2px 8px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--warning), #e3b341);
    color: #000;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.scenario-card .scenario-stats {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.scenario-card .stat-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.78rem;
}

.scenario-card .stat-row .label {
    color: var(--text-muted);
}

.scenario-card .stat-row .value {
    font-weight: 600;
    color: var(--text-primary);
}

.scenario-card .stat-row .value.highlight {
    color: var(--success);
    font-weight: 700;
}

.scenario-card .holdings-list {
    margin-top: 10px;
    padding-top: 8px;
    border-top: 1px solid var(--border);
    font-size: 0.7rem;
    color: var(--text-muted);
    line-height: 1.4;
    opacity: 0.8;
}

/* ========================================
   Totals Bar
   ======================================== */

.totals-bar {
    display: flex;
    justify-content: center;
    gap: 48px;
    padding: 16px;
    background: var(--bg-card);
    border-radius: var(--radius);
}

.total-item {
    text-align: center;
}

.total-label {
    font-size: 0.75rem;
    color: var(--text-secondary);
    display: block;
    margin-bottom: 4px;
}

.total-value {
    font-size: 1.25rem;
    font-weight: 700;
}

.total-value.success {
    color: var(--success);
}

/* Action Steps in Recommendations */
.rec-actions {
    width: 100%;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--border);
}

.action-title {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.action-step {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 0.8rem;
    color: var(--text-primary);
    margin-bottom: 6px;
    line-height: 1.4;
}

.step-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    min-width: 18px;
    background: var(--accent);
    color: white;
    border-radius: 50%;
    font-size: 0.65rem;
    font-weight: 700;
}

.action-note {
    font-size: 0.7rem;
    color: var(--warning);
    margin-top: 8px;
    padding: 6px 10px;
    background: var(--warning-bg);
    border-radius: 4px;
}

/* ========================================
   Footer
   ======================================== */

.footer {
    text-align: center;
    padding: 24px;
    color: var(--text-secondary);
    /* Accessibility: Improved contrast from text-muted */
    font-size: 0.8rem;
}

/* ========================================
   Animations
   ======================================== */

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.results-section {
    animation: fadeIn 0.3s ease;
}

/* History Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.modal-content {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    width: 90%;
    max-width: 600px;
    max-height: 80vh;
    overflow-y: auto;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border);
}

.modal-header h2 {
    margin: 0;
    font-size: 1.1rem;
}

.close-btn {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 1.2rem;
    cursor: pointer;
}

#history-content {
    padding: 20px;
}

.history-summary {
    display: flex;
    gap: 16px;
    margin-bottom: 20px;
}

.history-stat {
    flex: 1;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 16px;
    text-align: center;
}

.history-stat .label {
    display: block;
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin-bottom: 4px;
}

.history-stat .value {
    font-size: 1.3rem;
    font-weight: 700;
}

.history-stat .value.success {
    color: var(--success);
}

.history-list {
    margin-bottom: 16px;
}

.history-item {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 12px 16px;
    margin-bottom: 8px;
}

.history-date {
    font-weight: 600;
    margin-bottom: 6px;
}

.history-date .fy {
    font-weight: 400;
    color: var(--text-muted);
    font-size: 0.85rem;
}

.history-details {
    display: flex;
    gap: 16px;
    font-size: 0.8rem;
    color: var(--text-secondary);
    flex-wrap: wrap;
}

.history-details .savings {
    color: var(--success);
    font-weight: 500;
}

/* FY Analysis Styles */
.fy-analysis-list {
    margin-bottom: 16px;
}

.fy-item {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 16px;
    margin-bottom: 12px;
}

.fy-item.under-utilized {
    border-left: 3px solid var(--warning);
}

.fy-item.fully-utilized {
    border-left: 3px solid var(--success);
}

.fy-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.fy-name {
    font-weight: 700;
    font-size: 1rem;
}

.fy-status {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.fy-details {
    font-size: 0.85rem;
}

.fy-row {
    display: flex;
    justify-content: space-between;
    padding: 4px 0;
    border-bottom: 1px dashed var(--border);
}

.fy-row:last-child {
    border-bottom: none;
}

.fy-row.warning {
    color: var(--warning);
}

.fy-row .success {
    color: var(--success);
}

/* Empty state */
.empty-state {
    text-align: center;
    padding: 32px;
    color: var(--text-muted);
}

/* ========================================
   Print Styles
   ======================================== */

@media print {
    * {
        color-adjust: exact !important;
        -webkit-print-color-adjust: exact !important;
    }

    body {
        background: white !important;
        color: black !important;
        font-size: 11pt;
    }

    /* Hide non-essential elements */
    .upload-section,
    .calculate-cta,
    .tabs,
    .filter-tabs,
    .tab-btn,
    .filter-btn,
    .action-btn,
    .tax-actions,
    .footer,
    .dropzone,
    .file-status-list {
        display: none !important;
    }

    /* Show print header/footer */
    #print-header,
    #print-footer {
        display: block !important;
        text-align: center;
        padding: 20px 0;
    }

    #print-header {
        border-bottom: 2px solid #333;
        margin-bottom: 20px;
    }

    #print-header h1 {
        font-size: 24pt;
        margin: 0;
        color: #333;
    }

    #print-header p {
        margin: 8px 0 0 0;
        color: #666;
    }

    #print-footer {
        border-top: 1px solid #ccc;
        margin-top: 30px;
        padding-top: 15px;
        font-size: 9pt;
        color: #666;
    }

    /* Format cards for print */
    .tax-summary,
    .data-section,
    .recommendations-section {
        background: white !important;
        border: 1px solid #ccc !important;
        box-shadow: none !important;
        page-break-inside: avoid;
    }

    .tax-grid {
        grid-template-columns: repeat(3, 1fr) !important;
    }

    .tax-item {
        border: 1px solid #ddd !important;
        background: #f9f9f9 !important;
    }

    .tax-value {
        color: #333 !important;
    }

    .recommendation-card {
        border: 1px solid #ddd !important;
        background: #f9f9f9 !important;
        page-break-inside: avoid;
    }

    /* Show all tabs content */
    .tab-content {
        display: block !important;
    }

    .section-header h2::before {
        content: '' !important;
    }
}

/* Hide print elements normally */
#print-header,
#print-footer {
    display: none;
}