/**
 * Elks Budget Display Styles
 * Version: 1.0.0
 */

/* Import fonts */
@import url('https://fonts.googleapis.com/css2?family=Rajdhani:wght@400;500;700&family=Orbitron:wght@700&display=swap');

/* Override theme constraints on budget page */
body.elks-budget-page,
body.elks-budget-page .edgtf-wrapper,
body.elks-budget-page .edgtf-wrapper-inner,
body.elks-budget-page .edgtf-content,
body.elks-budget-page .edgtf-container,
body.elks-budget-page .edgtf-container-inner,
body.elks-budget-page .edgtf-boxed,
body.elks-budget-page .edgtf-footer-inner {
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow-x: visible !important;
}

html.elks-budget-page,
body.elks-budget-page {
    overflow-x: auto !important;
    max-width: none !important;
}

/* Container - full width */
.elks-budget-container {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    width: 100%;
    padding: 20px;
    background: #f8f9fa;
    box-sizing: border-box;
}

/* Header */
.elks-budget-header {
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 3px solid #492f91;
}

.elks-budget-header h1 {
    color: #492f91;
    font-size: 28px;
    margin: 0 0 10px 0;
}

.elks-budget-header h2 {
    color: #333;
    font-size: 20px;
    font-weight: 500;
    margin: 0 0 5px 0;
}

.elks-budget-header .fiscal-year {
    color: #666;
    font-size: 16px;
}

/* Legend */
.elks-budget-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 20px;
    padding: 15px;
    background: #fff;
    border-radius: 6px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
}

.legend-color {
    width: 20px;
    height: 20px;
    border-radius: 4px;
}

.legend-color.good { background: #c6efce; }
.legend-color.bad { background: #ffc7ce; }
.legend-color.question {
    background: #fff3cd;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: #856404;
}

/* Table */
.elks-budget-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    border-radius: 8px;
    overflow: hidden;
}

.elks-budget-table th,
.elks-budget-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #e9ecef;
}

.elks-budget-table th {
    background: #492f91;
    color: #fff;
    font-family: 'Rajdhani', sans-serif;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 14px;
    letter-spacing: 0.5px;
    position: sticky;
    top: 0;
    z-index: 10;
    text-align: center;
    vertical-align: middle;
}

.elks-budget-table th.col-gl { width: 70px; }
.elks-budget-table th.col-name { width: 240px; }
.elks-budget-table th.col-money { width: 95px; }
.elks-budget-table th.col-variance { width: 100px; }
.elks-budget-table th.col-info { width: 50px; }
.elks-budget-table th.col-feedback { width: 60px; }

/* Row types */
.elks-budget-table tr:hover {
    background: #f8f9fa;
}

.elks-budget-table tr.section-header {
    background: #e9ecef;
}

.elks-budget-table tr.section-header td {
    font-weight: 700;
    font-size: 14px;
    color: #333;
    padding: 15px;
    border-bottom: 2px solid #492f91;
}

.elks-budget-table tr.department-header {
    background: #f1f3f5;
}

.elks-budget-table tr.department-header td {
    font-weight: 600;
    color: #495057;
}

.elks-budget-table tr.sub-account td.col-name {
    padding-left: 40px;
    font-style: italic;
    color: #6c757d;
}

/* Line item notes - short version */
.line-note {
    font-size: 11px;
    color: #856404;
    background: #fff3cd;
    padding: 3px 8px;
    border-radius: 4px;
    margin-top: 4px;
    display: inline-block;
    font-style: italic;
    font-weight: normal;
}

/* Budget Reasoning Icon & Dropdown */
.reasoning-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    background: linear-gradient(135deg, #17a2b8 0%, #138496 100%);
    color: #fff;
    border-radius: 50%;
    font-size: 12px;
    font-weight: bold;
    cursor: pointer;
    margin-left: 8px;
    vertical-align: middle;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border: none;
    font-family: Georgia, serif;
    font-style: italic;
}

.reasoning-toggle:hover {
    transform: scale(1.15);
    box-shadow: 0 2px 8px rgba(23, 162, 184, 0.4);
}

.reasoning-toggle.active {
    background: linear-gradient(135deg, #138496 0%, #0d6977 100%);
}

.reasoning-dropdown {
    display: none;
    background: linear-gradient(135deg, #e8f4f8 0%, #d1ecf1 100%);
    border-left: 4px solid #17a2b8;
    padding: 15px 20px;
    margin-top: 10px;
    border-radius: 6px;
    font-size: 13px;
    line-height: 1.6;
    color: #0c5460;
    animation: slideDown 0.3s ease;
}

.reasoning-dropdown.show {
    display: block;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.reasoning-dropdown h4 {
    margin: 0 0 10px 0;
    color: #0c5460;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.reasoning-dropdown h4::before {
    content: "💡";
}

.reasoning-dropdown ul {
    margin: 10px 0 0 0;
    padding-left: 20px;
}

.reasoning-dropdown li {
    margin-bottom: 6px;
}

.reasoning-dropdown .calc {
    background: #fff;
    padding: 8px 12px;
    border-radius: 4px;
    font-family: "SF Mono", Monaco, monospace;
    font-size: 12px;
    margin-top: 10px;
    border: 1px solid #bee5eb;
}

.elks-budget-table tr.total-row {
    background: #e7e3f1;
    font-weight: 700;
}

.elks-budget-table tr.total-row td {
    border-top: 2px solid #492f91;
}

/* GL Code column - Rajdhani Bold */
.col-gl {
    font-family: 'Rajdhani', sans-serif;
    font-weight: 700;
    font-size: 16px;
}

/* Account Name column - Rajdhani Bold */
td.col-name {
    font-family: 'Rajdhani', sans-serif;
    font-weight: 700;
    font-size: 16px;
}

/* Money columns - Rajdhani Medium */
.col-money {
    text-align: right;
    font-family: 'Rajdhani', sans-serif;
    font-weight: 500;
    font-size: 17px;
}

/* FY27 Proposed column - Orbitron Bold (standout) */
.col-fy27 {
    font-family: 'Orbitron', sans-serif;
    font-weight: 700 !important;
    font-size: 16px;
}

/* Department Status Row */
.dept-status-row {
    background: linear-gradient(90deg, #f8f9fa 0%, #e9ecef 100%);
}

.dept-status-row td {
    padding: 12px 20px !important;
    border-top: 2px solid #492f91;
    border-bottom: 2px solid #492f91;
}

.dept-status {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 600;
    font-size: 14px;
}

.dept-status-indicator {
    display: inline-block;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    flex-shrink: 0;
}

.dept-status.in-black .dept-status-indicator {
    background: #28a745;
    box-shadow: 0 0 8px rgba(40, 167, 69, 0.5);
}

.dept-status.in-red .dept-status-indicator {
    background: #dc3545;
    box-shadow: 0 0 8px rgba(220, 53, 69, 0.5);
}

.dept-status.in-black {
    color: #155724;
}

.dept-status.in-red {
    color: #721c24;
}

.dept-status-label {
    font-weight: 700;
    min-width: 200px;
}

.dept-status-amount {
    font-family: 'Rajdhani', sans-serif;
    font-weight: 700;
    font-size: 18px;
}

.dept-status-text {
    font-weight: 400;
    font-size: 12px;
    opacity: 0.85;
}

.dept-status-badge {
    margin-left: auto;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.dept-status.in-black .dept-status-badge {
    background: #c6efce;
    color: #155724;
}

.dept-status.in-red .dept-status-badge {
    background: #ffc7ce;
    color: #721c24;
}

/* Variance cells */
.variance-good {
    background: #c6efce !important;
    color: #006100;
    font-weight: 600;
    text-align: center;
    font-size: 14px;
}

.variance-bad {
    background: #ffc7ce !important;
    color: #9c0006;
    font-weight: 600;
    text-align: center;
    font-size: 14px;
}

.variance-neutral {
    background: #fff3cd !important;
    color: #856404;
    text-align: center;
    font-size: 14px;
}

/* EMBLAZONED TIMESTAMP */
.budget-timestamp {
    margin-bottom: 25px;
    width: 100%;
}

.timestamp-badge {
    background: linear-gradient(135deg, #492f91 0%, #6b4eb8 100%);
    color: #fff;
    padding: 20px 30px;
    border-radius: 0;
    text-align: center;
    box-shadow: 0 4px 15px rgba(73, 47, 145, 0.3);
}

.timestamp-label {
    display: block;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 2px;
    opacity: 0.8;
    margin-bottom: 5px;
}

.timestamp-date {
    display: block;
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 5px;
}

.timestamp-detail {
    display: block;
    font-size: 14px;
    opacity: 0.9;
}

/* THREE-STATE Question Buttons */
.question-btn {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: none;
    background: #ffc107;
    color: #000;
    font-weight: bold;
    font-size: 16px;
    cursor: pointer;
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease;
    animation: pulse-yellow 2s infinite;
}

.question-btn:hover {
    transform: scale(1.15);
    animation: none;
}

/* State: Needs Info (Yellow pulsing) - DEFAULT */
.question-btn.needs-info,
.question-btn:not(.under-review):not(.satisfied) {
    background: #ffc107;
    color: #000;
    animation: pulse-yellow 2s infinite;
}

/* State: Under Review (Orange pulsing) - Has answers but needs more */
.question-btn.under-review {
    background: #fd7e14;
    color: #fff;
    animation: pulse-orange 2s infinite;
}

/* State: Satisfied (Green, no pulse) */
.question-btn.satisfied {
    background: #28a745;
    color: #fff;
    animation: none;
}

.question-btn.satisfied::after {
    content: '\2713';
    font-size: 14px;
}

/* Answer count badge */
.question-btn[data-count]::before {
    content: attr(data-count);
    position: absolute;
    top: -8px;
    right: -8px;
    background: #dc3545;
    color: #fff;
    font-size: 10px;
    min-width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
}

.question-btn.satisfied[data-count]::before {
    background: #155724;
}

@keyframes pulse-yellow {
    0% { box-shadow: 0 0 0 0 rgba(255, 193, 7, 0.7); }
    70% { box-shadow: 0 0 0 12px rgba(255, 193, 7, 0); }
    100% { box-shadow: 0 0 0 0 rgba(255, 193, 7, 0); }
}

@keyframes pulse-orange {
    0% { box-shadow: 0 0 0 0 rgba(253, 126, 20, 0.7); }
    70% { box-shadow: 0 0 0 12px rgba(253, 126, 20, 0); }
    100% { box-shadow: 0 0 0 0 rgba(253, 126, 20, 0); }
}

/* Modal */
.elks-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.elks-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.elks-modal {
    background: #fff;
    border-radius: 12px;
    width: 100%;
    max-width: 600px;
    max-height: 90vh;
    overflow: hidden;
    transform: scale(0.9);
    transition: transform 0.3s ease;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.elks-modal-overlay.active .elks-modal {
    transform: scale(1);
}

.elks-modal-header {
    background: #492f91;
    color: #fff;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.elks-modal-header h3 {
    margin: 0;
    font-size: 18px;
}

.elks-modal-header .gl-code {
    background: rgba(255,255,255,0.2);
    padding: 4px 10px;
    border-radius: 4px;
    font-family: monospace;
}

.elks-modal-close {
    background: none;
    border: none;
    color: #fff;
    font-size: 28px;
    cursor: pointer;
    line-height: 1;
    padding: 0;
    opacity: 0.8;
}

.elks-modal-close:hover {
    opacity: 1;
}

.elks-modal-body {
    padding: 20px;
    max-height: 60vh;
    overflow-y: auto;
    overflow-x: hidden;
}

.elks-modal-question {
    margin-bottom: 20px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #492f91;
    box-sizing: border-box;
}

.elks-modal-question label {
    display: block;
    font-weight: 600;
    margin-bottom: 10px;
    color: #333;
}

.elks-modal-question input,
.elks-modal-question textarea,
.elks-modal-question select {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ced4da;
    border-radius: 6px;
    font-size: 14px;
    transition: border-color 0.2s ease;
    box-sizing: border-box;
}

/* Checkbox group styling */
.checkbox-group {
    text-align: left;
    padding: 5px 0;
}

.checkbox-group .checkbox-label {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 12px 0;
    font-weight: normal;
    cursor: pointer;
    font-size: 15px;
}

.checkbox-group .checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    padding: 0;
    margin: 0;
    flex-shrink: 0;
    cursor: pointer;
}

.checkbox-group .checkbox-label span {
    flex: 1;
}

.elks-modal-question input:focus,
.elks-modal-question textarea:focus,
.elks-modal-question select:focus {
    outline: none;
    border-color: #492f91;
    box-shadow: 0 0 0 3px rgba(73, 47, 145, 0.1);
}

.elks-modal-question textarea {
    min-height: 80px;
    resize: vertical;
}

.elks-modal-question .hint {
    font-size: 12px;
    color: #6c757d;
    margin-top: 5px;
}

/* Previous Answers */
.previous-answers {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #dee2e6;
}

.previous-answers h4 {
    color: #495057;
    margin: 0 0 15px 0;
    font-size: 14px;
}

.answer-entry {
    background: #e9ecef;
    padding: 12px;
    border-radius: 6px;
    margin-bottom: 10px;
}

.answer-entry .answer-text {
    margin: 0 0 8px 0;
}

.answer-entry .answer-meta {
    font-size: 12px;
    color: #6c757d;
}

.elks-modal-footer {
    padding: 15px 20px;
    background: #f8f9fa;
    border-top: 1px solid #dee2e6;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.elks-modal-footer input[type="text"] {
    flex: 1;
    max-width: 200px;
    padding: 8px 12px;
    border: 1px solid #ced4da;
    border-radius: 6px;
    font-size: 14px;
}

.elks-modal-footer .btn-submit {
    background: #492f91;
    color: #fff;
    border: none;
    padding: 10px 24px;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease;
}

.elks-modal-footer .btn-submit:hover {
    background: #3a2574;
}

.elks-modal-footer .btn-submit:disabled {
    background: #adb5bd;
    cursor: not-allowed;
}

/* Toast Notification */
.elks-toast {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: #28a745;
    color: #fff;
    padding: 15px 25px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    transform: translateY(100px);
    opacity: 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
    z-index: 100000;
}

.elks-toast.show {
    transform: translateY(0);
    opacity: 1;
}

.elks-toast.error {
    background: #dc3545;
}

/* Responsive */
@media (max-width: 768px) {
    .elks-budget-container {
        padding: 10px;
    }

    .elks-budget-header h1 {
        font-size: 22px;
    }

    .elks-budget-table th,
    .elks-budget-table td {
        padding: 8px 10px;
        font-size: 12px;
    }

    .elks-budget-table th.col-name,
    .elks-budget-table td.col-name {
        min-width: 150px;
    }

    .elks-modal {
        margin: 10px;
        max-width: calc(100% - 20px);
    }

    .elks-modal-footer {
        flex-direction: column;
        gap: 10px;
    }

    .elks-modal-footer input[type="text"] {
        max-width: 100%;
        width: 100%;
    }

    .elks-budget-legend {
        flex-direction: column;
        gap: 10px;
    }
}

/* Info Button */
.info-btn,
.info-btn-sample {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: none;
    background: linear-gradient(135deg, #17a2b8 0%, #138496 100%);
    color: #fff;
    font-weight: bold;
    font-size: 14px;
    font-family: Georgia, serif;
    font-style: italic;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.info-btn:hover {
    transform: scale(1.15);
    box-shadow: 0 2px 8px rgba(23, 162, 184, 0.4);
}

/* Section Feedback Button */
.section-feedback-btn {
    background: linear-gradient(135deg, #6f42c1 0%, #5a32a3 100%);
    color: #fff;
    border: none;
    padding: 6px 14px;
    border-radius: 15px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.section-feedback-btn:hover {
    background: linear-gradient(135deg, #7c4dcc 0%, #6f42c1 100%);
    transform: translateY(-1px);
    box-shadow: 0 3px 8px rgba(111, 66, 193, 0.3);
}

/* Info Modal specific styles */
.info-modal .elks-modal-body {
    padding: 25px;
}

.info-modal .info-explanation {
    font-size: 15px;
    line-height: 1.7;
    color: #333;
}

.info-modal .elks-modal-footer {
    justify-content: flex-end;
}

.info-modal .btn-close-modal {
    background: #6c757d;
    color: #fff;
    border: none;
    padding: 10px 24px;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease;
}

.info-modal .btn-close-modal:hover {
    background: #5a6268;
}

/* Summary Rows */
.summary-row {
    background: #f8f9fa;
}

.summary-row td {
    padding: 0 !important;
    border-bottom: 3px solid #492f91;
}

.summary-content {
    margin: 0;
}

.summary-header {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    cursor: pointer;
    gap: 12px;
}

.summary-icon {
    font-size: 20px;
    width: 30px;
    text-align: center;
}

.summary-critical .summary-icon {
    color: #dc3545;
}

.summary-warning .summary-icon {
    color: #fd7e14;
}

.summary-positive .summary-icon {
    color: #28a745;
}

.summary-mixed .summary-icon,
.summary-moderate .summary-icon {
    color: #ffc107;
}

.summary-title {
    font-weight: 700;
    font-size: 14px;
    color: #333;
    flex: 1;
}

.summary-toggle {
    background: #492f91;
    color: #fff;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    font-size: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: background 0.2s ease;
}

.summary-toggle:hover {
    background: #3a2574;
}

.toggle-arrow {
    font-size: 10px;
}

.summary-body {
    display: none;
    padding: 0 20px 20px 20px;
}

.summary-body.show {
    display: block;
}

.summary-text {
    white-space: pre-wrap;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: 13px;
    line-height: 1.6;
    color: #333;
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    border-left: 4px solid #492f91;
    margin: 0;
    max-height: 500px;
    overflow-y: auto;
}

.summary-critical .summary-text {
    border-left-color: #dc3545;
    background: #fff5f5;
}

.summary-warning .summary-text {
    border-left-color: #fd7e14;
    background: #fff8f0;
}

.summary-positive .summary-text {
    border-left-color: #28a745;
    background: #f0fff4;
}

.summary-mixed .summary-text,
.summary-moderate .summary-text {
    border-left-color: #ffc107;
    background: #fffdf0;
}

/* Overall Budget Summary */
.budget-overall-summary {
    margin-top: 30px;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.budget-overall-summary.overall-black {
    background: linear-gradient(135deg, #f0fff4 0%, #c6efce 100%);
    border: 3px solid #28a745;
}

.budget-overall-summary.overall-red {
    background: linear-gradient(135deg, #fff5f5 0%, #ffc7ce 100%);
    border: 3px solid #dc3545;
}

.overall-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid rgba(0,0,0,0.1);
}

.overall-indicator {
    width: 20px;
    height: 20px;
    border-radius: 50%;
}

.overall-black .overall-indicator {
    background: #28a745;
    box-shadow: 0 0 12px rgba(40, 167, 69, 0.6);
}

.overall-red .overall-indicator {
    background: #dc3545;
    box-shadow: 0 0 12px rgba(220, 53, 69, 0.6);
}

.overall-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 1px;
}

.overall-black .overall-header h3 {
    color: #155724;
}

.overall-red .overall-header h3 {
    color: #721c24;
}

.overall-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 20px;
}

.overall-item {
    padding: 20px;
    border-radius: 8px;
    background: rgba(255,255,255,0.7);
    text-align: center;
}

.overall-label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #666;
    margin-bottom: 8px;
}

.overall-value {
    display: block;
    font-family: 'Rajdhani', sans-serif;
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 5px;
}

.overall-item.income .overall-value {
    color: #28a745;
}

.overall-item.expense .overall-value {
    color: #dc3545;
}

.overall-item.net.positive .overall-value {
    color: #155724;
}

.overall-item.net.negative .overall-value {
    color: #721c24;
}

.overall-vs {
    display: block;
    font-size: 11px;
    color: #888;
}

.overall-badge {
    display: inline-block;
    margin-top: 10px;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1px;
}

.overall-item.net.positive .overall-badge {
    background: #28a745;
    color: #fff;
}

.overall-item.net.negative .overall-badge {
    background: #dc3545;
    color: #fff;
}

@media (max-width: 768px) {
    .overall-grid {
        grid-template-columns: 1fr;
    }
}

/* Budget Footer */
.budget-footer {
    margin-top: 30px;
    padding: 25px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.budget-footer h3 {
    margin: 0 0 15px 0;
    color: #492f91;
    font-size: 18px;
}

.budget-footer ul {
    margin: 0 0 20px 0;
    padding-left: 20px;
    color: #555;
    line-height: 1.8;
}

.footer-actions {
    display: flex;
    gap: 30px;
    padding-top: 15px;
    border-top: 1px solid #e9ecef;
}

.footer-actions p {
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #666;
    font-size: 14px;
}

.footer-actions .info-btn,
.footer-actions .question-btn {
    pointer-events: none;
}

.budget-copyright {
    text-align: center;
    margin-top: 25px;
    padding-top: 15px;
    border-top: 1px solid #e9ecef;
    font-size: 11px;
    color: #adb5bd;
    letter-spacing: 0.5px;
}

/* Print styles */
@media print {
    .question-btn,
    .info-btn,
    .elks-modal-overlay,
    .summary-toggle {
        display: none !important;
    }

    .summary-body {
        display: block !important;
    }

    .elks-budget-table {
        box-shadow: none;
    }

    .elks-budget-table th {
        background: #333 !important;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }
}
