/**
 * OKMM Budget Calculator Styles
 * Version: 2.0.0 - Beaver Builder Integration
 * 
 * Uses BB's button/form/color classes for consistency
 * Only includes essential layout and structure
 */

/* ==========================================================================
   Buttons - Simple White/Gray Styling (Override FL Builder)
   ========================================================================== */

.okmm-btn {
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px;
    padding: 10px 20px !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    border: 1px solid #595959 !important;
    border-radius: 4px !important;
    cursor: pointer;
    transition: all 0.2s;
    background: white !important;
    background-color: white !important;
    color: #333 !important;
    text-decoration: none !important;
}

.okmm-btn i,
.okmm-btn .fa {
    color: inherit !important;
}

.okmm-btn:hover {
    background: #f5f5f5 !important;
    background-color: #f5f5f5 !important;
    border-color: #333 !important;
    color: #333 !important;
}

.okmm-btn-primary,
.okmm-btn-add-subcategory {
    /* Primary: solid brand color */
    background: #bad532 !important;
    background-color: #bad532 !important;
    color: #000 !important;
    border-color: #a8c12d !important;
    font-weight: 600 !important;
}

.okmm-btn-primary:hover,
.okmm-btn-add-subcategory:hover {
    background: #a8c12d !important;
    background-color: #a8c12d !important;
    border-color: #96ad28 !important;
    color: #000 !important;
}

.okmm-btn-secondary {
    /* Secondary: outlined/ghost */
    background: white !important;
    background-color: white !important;
    color: #333 !important;
    border-color: #595959 !important;
}

.okmm-btn-secondary:hover {
    background: #f5f5f5 !important;
    background-color: #f5f5f5 !important;
    border-color: #333 !important;
    color: #333 !important;
}

/* ==========================================================================
   Focus Indicators (WCAG 2.4.7) - Added for keyboard navigation
   ========================================================================== */

.okmm-btn:focus {
    outline: 3px solid #000 !important;
    outline-offset: 2px !important;
}

/* Suppress focus ring on inner button — show it on the parent row instead */
.okmm-category-btn:focus {
    outline: none !important;
    box-shadow: none !important;
}

/* Focus ring on the full category row when the button inside receives focus */
.okmm-category-item:focus-within {
    outline: 3px solid #000 !important;
    outline-offset: 2px !important;
}

/* Override BB's border-radius (25px pill) on category buttons */
.okmm-category-btn,
.okmm-calculator-sidebar .okmm-category-btn,
.fl-builder-content .okmm-category-btn,
.fl-page .okmm-category-btn {
    border-radius: 0 !important;
    color: #000 !important;
}

/* Force black text on category totals - BB override protection */
.okmm-category-total,
.okmm-calculator-sidebar .okmm-category-total,
.fl-builder-content .okmm-category-total,
.fl-page .okmm-category-total {
    color: #000 !important;
}

/* Whole category row is clickable */
.okmm-category-item {
    cursor: pointer;
}

input:focus,
textarea:focus {
    outline: 3px solid #000 !important;
    border-color: #000 !important;
}

#view-final-budget:focus {
    outline: 4px solid #000 !important;
    outline-offset: 3px !important;
}


/* ==========================================================================
   Calculator Header Row (Title + Utility Links)
   ========================================================================== */

.okmm-calculator-header-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 8px;
}

.okmm-header-links {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.okmm-utility-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 8px;
    font-size: 13px;
    font-weight: 500;
    color: #355E7C !important;
    text-decoration: none !important;
    border-radius: 3px;
    transition: all 0.2s;
    white-space: nowrap;
}

.okmm-utility-link i,
.okmm-utility-link .fa {
    color: #355E7C !important;
    font-size: 13px;
}

.okmm-utility-link:hover {
    background: #e7eef3 !important;
    color: #274B63 !important;
    text-decoration: none !important;
}

.okmm-utility-link:focus {
    outline: 3px solid #000;
    outline-offset: 2px;
}

@media (max-width: 768px) {
    .okmm-calculator-header-row {
        flex-direction: column;
    }
    
    .okmm-header-links {
        align-self: flex-start;
        margin-bottom: 8px;
    }
}

@media print {
    .okmm-header-links {
        display: none !important;
    }
}

/* ==========================================================================
   Income Input at Top of Right Panel
   ========================================================================== */

.okmm-income-input-top {
    margin-bottom: 30px;
    padding: 20px;
    background: #f9f9f9;
    border-radius: 4px;
    border: 1px solid #ddd;
}

.okmm-income-input-top label {
    display: block;
    font-weight: 600;
    margin-bottom: 10px;
    color: #000 !important;
}

.okmm-income-input-top input {
    width: 100%;
    padding: 12px;
    font-size: 18px;
    font-weight: 600;
    text-align: right;
    border: 1px solid #595959;
    border-radius: 4px;
}

.okmm-income-input-top input::placeholder {
    color: #666;
    opacity: 1;
}

/* ==========================================================================
   Main Container - Essential Layout Only
   ========================================================================== */

.okmm-calculator-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    color: #000; /* Base black text for all calculator content */
}

.okmm-calculator-container {
    display: flex;
    gap: 30px;
    margin-bottom: 30px;
}

/* ==========================================================================
   Sidebar (Left Column)
   ========================================================================== */

.okmm-calculator-sidebar {
    flex: 0 0 300px;
    background: #f5f5f5;
    padding: 20px;
    border-radius: 4px;
    border: 1px solid #ddd;
}

.okmm-income-section {
    margin-bottom: 30px;
    padding: 20px !important;
    background: #f9f9f9 !important;
    border: 2px solid #c9de5d !important;
    border-radius: 6px !important;
}

.okmm-income-section label {
    display: block !important;
    font-weight: 700 !important;
    font-size: 16px !important;
    margin-bottom: 12px !important;
    color: #000 !important;
}

/* Multiple selectors for maximum specificity */
.okmm-income-section input,
.okmm-income-section input.okmm-currency-input,
.okmm-income-section #monthly-income,
input#monthly-income.okmm-currency-input {
    width: 100% !important;
    padding: 16px !important;
    font-size: 24px !important;
    font-weight: 700 !important;
    text-align: right !important;
    border: 2px solid #595959 !important;
    border-radius: 4px !important;
    background: white !important;
    background-color: white !important;
    color: #000 !important;
    line-height: 1.2 !important;
    height: auto !important;
    min-height: 60px !important;
}

.okmm-income-section input:focus,
.okmm-income-section #monthly-income:focus {
    outline: 3px solid #000 !important;
    border-color: #000 !important;
    box-shadow: none !important;
}

.okmm-income-section input::placeholder,
.okmm-income-section #monthly-income::placeholder {
    color: #999 !important;
    opacity: 1 !important;
}

/* Category List */
.okmm-category-list {
    margin-bottom: 30px;
}

.okmm-category-item {
    display: flex;
    align-items: center;
    margin-bottom: 2px;
    background: white !important; /* Force white background */
    background-color: white !important;
    border: 1px solid #767676 !important;
    border-radius: 4px;
    overflow: hidden;
}

.okmm-category-item.active {
    background: #c9de5d !important; /* OKMM green for active state only */
    background-color: #c9de5d !important;
}

.okmm-category-btn {
    flex: 1;
    padding: 12px 15px !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    text-align: left !important;
    background: white !important; /* Force white, not transparent */
    background-color: white !important;
    border: none !important;
    cursor: pointer;
    transition: all 0.2s;
    color: #000 !important; /* Black text for visibility */
}

.okmm-category-item.active .okmm-category-btn {
    color: #000 !important;
    background: transparent !important; /* Transparent when active to show green row */
    background-color: transparent !important;
}

.okmm-category-btn:hover {
    background: #f5f5f5 !important; /* Light gray hover */
    background-color: #f5f5f5 !important;
    color: #000 !important; /* Keep text black on hover */
}

/* Even more specific hover for category items */
.okmm-calculator-sidebar .okmm-category-item:hover {
    background: #f5f5f5 !important;
    background-color: #f5f5f5 !important;
}

/* But keep active state green */
.okmm-calculator-sidebar .okmm-category-item.active:hover {
    background: #c9de5d !important;
    background-color: #c9de5d !important;
}

.okmm-category-item.active .okmm-category-btn:hover {
    background: rgba(255, 255, 255, 0.1) !important;
    background-color: rgba(255, 255, 255, 0.1) !important;
}

.okmm-category-status {
    padding: 0 10px;
}

.okmm-category-status i {
    color: #767676;
    font-size: 14px;
}

.okmm-category-status.has-amount i {
    color: #388E3C;
}

.okmm-category-item.active .okmm-category-status i {
    color: white;
}

.okmm-category-total {
    padding: 12px 15px;
    font-weight: 600;
    min-width: 90px;
    text-align: right;
    border-left: 1px solid #ddd;
    color: #000; /* Black text for visibility */
}

.okmm-category-item.active .okmm-category-total {
    color: #000 !important; /* Always black for visibility */
    font-weight: 700;
    border-left-color: rgba(255, 255, 255, 0.3);
}

/* Remaining Balance */
.okmm-remaining-balance {
    padding: 20px;
    background: #c9de5d; /* OKMM green */
    color: #000;
    border-radius: 4px;
    text-align: center;
}

.okmm-remaining-balance .balance-label {
    font-size: 14px;
    margin-bottom: 5px;
    color: #32332F; /* Explicit color instead of opacity for consistent contrast */
}

.okmm-remaining-balance .balance-amount {
    font-size: 28px;
    font-weight: bold;
}

.okmm-remaining-balance .balance-amount.negative {
    color: #c62828; /* Dark red for contrast on lime-green background */
}

/* ==========================================================================
   Content Area (Right Column)
   ========================================================================== */

.okmm-calculator-content {
    flex: 1;
}

/* Calculator Header Section (Always Visible) */
.okmm-calculator-header-section {
    background: white;
    padding: 30px 30px 0 30px;
    border-radius: 4px 4px 0 0;
    border: 1px solid #ddd;
    border-bottom: none;
}

.okmm-calculator-title {
    margin: 0 0 15px 0;
    font-size: 28px;
    color: #000;
}

.okmm-general-instructions {
    margin: 0 0 25px 0;
    padding: 15px;
    background: #f9f9f9;
    border-left: 4px solid #c9de5d;
    border-radius: 4px;
    color: #333;
    line-height: 1.6;
}

.okmm-content-panel {
    display: none;
    background: white;
    padding: 0 30px 30px 30px;
    border-radius: 0 0 4px 4px;
    border: 1px solid #ddd;
    border-top: none;
}

.okmm-content-panel.active {
    display: block;
}

.okmm-category-title {
    margin: 0 0 20px 0;
    padding-top: 20px;
    font-size: 24px;
    color: #000;
    border-top: 2px solid #e0e0e0;
}

.okmm-content-panel h2 {
    margin: 0 0 20px 0;
    font-size: 24px;
}

.okmm-instructions {
    margin-bottom: 25px;
    color: #666;
    line-height: 1.6;
}

/* Get Started Panel */
.okmm-get-started {
    text-align: center;
    padding: 40px 20px;
}

.okmm-start-message {
    margin-top: 40px;
    padding: 30px;
    background: #f5f5f5;
    border-radius: 4px;
    border: 2px dashed #ddd;
}

.okmm-start-message i {
    font-size: 48px;
    color: #c9de5d;
    margin-bottom: 20px;
}

.okmm-start-message p {
    font-size: 18px;
    color: #333;
    margin: 0;
}

/* ==========================================================================
   Subcategory Table
   ========================================================================== */

.okmm-subcategory-table-wrapper {
    margin-bottom: 20px;
    border: 1px solid #ddd;
    border-radius: 4px;
    overflow: hidden;
}

/* ==========================================================================
   Tip Box Styling (Override inline styles)
   ========================================================================== */

.okmm-savings-tip {
    background: #f5f5f5 !important;
    border-left: 4px solid #c9de5d !important;
    color: #000 !important;
    padding: 15px !important;
    display: flex !important;
    flex-direction: row !important;
    align-items: flex-start !important;
    gap: 15px !important;
}

.okmm-savings-tip i {
    color: #000 !important;
    background: #c9de5d !important;
    padding: 8px !important;
    border-radius: 50% !important;
    width: 48px !important;
    height: 48px !important;
    min-width: 36px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex-shrink: 0 !important;
    font-size: 24px !important;
    order: -1 !important; /* Force icon to come first */
    margin-top: 2px !important;
    float: left !important;
}

.okmm-savings-tip p {
    margin: 0 !important;
    color: #000 !important;
    flex: 1 !important;
    line-height: 1.6 !important;
}

/* ==========================================================================
   Table Styles
   ========================================================================== */

.okmm-subcategory-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 18px !important;
}

.okmm-subcategory-table thead {
    background: #c9de5d !important;
    color: #000 !important;
}

.okmm-subcategory-table th {
    padding: 15px;
    text-align: left;
    font-weight: 600;
    border-bottom: 2px solid #ddd;
    background: #c9de5d !important;
    color: #000 !important;
}

.okmm-subcategory-table th.edit-column {
    width: 100px;
}

.okmm-subcategory-table th.amount-column {
    width: 150px;
    text-align: right;
}

.okmm-subcategory-table tbody tr {
    border-bottom: 1px solid #ddd;
}

.okmm-subcategory-table tbody tr:hover {
    background: #f9f9f9;
}

.okmm-subcategory-table tbody tr:last-child {
    border-bottom: none;
}

.okmm-subcategory-table td {
    padding: 12px 15px;
}

.okmm-subcategory-table td.edit-column {
    text-align: center;
}

.okmm-subcategory-table td.amount-column {
    text-align: right;
}

.okmm-subcategory-table .subcategory-name {
    font-weight: 500;
}

.okmm-subcategory-table input[type="text"] {
    width: 100%;
    padding: 8px 12px;
    font-size: 16px;
    font-weight: 600;
    text-align: right;
    border: 1px solid #595959;
    border-radius: 4px;
}

.okmm-subcategory-table input[type="text"]::placeholder {
    color: #666; /* Darker placeholder for better visibility */
    opacity: 1;
}

/* Edit/Delete icon buttons - minimal styling */
.okmm-edit-subcategory-btn,
.okmm-delete-subcategory-btn {
    padding: 6px 10px !important;
    background: white !important;
    background-color: white !important;
    border: 1px solid #595959 !important;
    border-radius: 4px !important;
    cursor: pointer;
    transition: all 0.2s;
    color: #333 !important;
}

.okmm-edit-subcategory-btn i,
.okmm-edit-subcategory-btn .fa,
.okmm-delete-subcategory-btn i,
.okmm-delete-subcategory-btn .fa {
    color: #333 !important;
}

/* Center edit/delete buttons horizontally within the cell */
.okmm-subcategory-table td.edit-column {
    text-align: center;
    vertical-align: middle;
}

.okmm-subcategory-table td.edit-column .okmm-edit-subcategory-btn,
.okmm-subcategory-table td.edit-column .okmm-delete-subcategory-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    vertical-align: middle;
    margin: 2px;
}

.okmm-edit-subcategory-btn:hover {
    background: #f0f0f0 !important;
    background-color: #f0f0f0 !important;
    border-color: #333 !important;
}

.okmm-edit-subcategory-btn:focus,
.okmm-delete-subcategory-btn:focus {
    outline: 3px solid #000 !important;
    outline-offset: 2px !important;
}

.okmm-delete-subcategory-btn:hover {
    background: #ffebee !important;
    background-color: #ffebee !important;
    border-color: #ef5350 !important;
    color: #c62828 !important;
}

.okmm-delete-subcategory-btn:hover i,
.okmm-delete-subcategory-btn:hover .fa {
    color: #c62828 !important;
}

/* Subcategory Total */
.okmm-subcategory-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background: #f5f5f5;
    border-radius: 4px;
    margin-bottom: 20px;
}

.okmm-subcategory-total .label {
    font-weight: 600;
    color: #000; /* Black text for visibility */
}

.okmm-subcategory-total .amount {
    font-size: 20px;
    font-weight: bold;
    color: #000; /* Black text for visibility */
}

/* ==========================================================================
   Panel Actions
   ========================================================================== */

.okmm-panel-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    margin-top: 30px;
}

.okmm-navigation-buttons {
    display: flex;
    gap: 10px;
}

/* View Final Budget Wrapper — normal document flow per WCAG 1.4.10 Reflow */
.okmm-view-budget-wrapper {
    text-align: center;
    margin-top: 30px;
    padding: 20px 0;
    border-top: 2px solid #e0e0e0;
}

.okmm-view-budget-wrapper .okmm-btn {
    padding: 14px 28px;
    font-size: 16px;
    font-weight: 700;
}

/* ==========================================================================
   Modals
   ========================================================================== */

.okmm-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.okmm-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
}

.okmm-modal-content {
    position: relative;
    background: white;
    border-radius: 4px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    max-width: 600px; /* Wider for better layout */
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
}

.okmm-modal-large {
    max-width: 900px;
}

.okmm-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 30px;
    border-bottom: 2px solid #ddd;
}

.okmm-modal-header h3 {
    margin: 0;
    font-size: 20px;
}

.okmm-modal-close {
    background: #6b7280 !important;
    background-color: #6b7280 !important;
    border: none !important;
    font-size: 20px;
    line-height: 1;
    color: #fff !important;
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    border-radius: 4px !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.okmm-modal-close:hover {
    background: #4b5563 !important;
    background-color: #4b5563 !important;
    color: #fff !important;
}

.okmm-modal-close:focus {
    outline: 3px solid #000 !important;
    outline-offset: 2px !important;
}

.okmm-modal-body {
    padding: 30px;
}

.okmm-modal-body p {
    margin-top: 0;
    color: #333;
}

.okmm-modal-body label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
}

.okmm-modal-body input[type="text"] {
    width: 100%;
    padding: 10px;
    font-size: 16px;
    border: 1px solid #595959;
    border-radius: 4px;
}

.okmm-modal-body .required {
    color: #d32f2f;
}

.okmm-modal-footer {
    padding: 20px 30px;
    border-top: 2px solid #ddd;
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 10px;
}

.okmm-modal-footer .okmm-btn {
    min-width: 120px; /* Equal sizing per Fitts's Law */
    justify-content: center;
    white-space: nowrap;
    min-height: 42px;
}

/* Modal primary: dark solid fill — highest visual weight */
.okmm-modal-footer .okmm-btn-primary {
    background: #32332f !important;
    background-color: #32332f !important;
    color: #fff !important;
    border-color: #32332f !important;
}

.okmm-modal-footer .okmm-btn-primary:hover {
    background: #4a4b46 !important;
    background-color: #4a4b46 !important;
    border-color: #4a4b46 !important;
    color: #fff !important;
}

/* Modal secondary: outlined ghost — lower visual weight */
.okmm-modal-footer .okmm-btn-secondary {
    background: white !important;
    background-color: white !important;
    color: #333 !important;
    border: 1px solid #595959 !important;
}

/* ==========================================================================
   Budget Report
   ========================================================================== */

.okmm-budget-report {
    padding: 20px;
}

.okmm-budget-report h2 {
    margin: 0 0 20px 0;
    font-size: 28px;
}

.budget-income {
    font-size: 18px;
    padding: 15px;
    background: #f5f5f5;
    border-radius: 4px;
    margin-bottom: 30px;
}

.budget-category {
    margin-bottom: 25px;
}

.budget-category h3 {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 15px;
    background: #c9de5d;
    color: #000;
    margin: 0 0 10px 0;
    border-radius: 4px;
}

.budget-category ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.budget-category li {
    display: flex;
    justify-content: space-between;
    padding: 8px 15px;
    border-bottom: 1px solid #ddd;
}

.budget-category li:last-child {
    border-bottom: none;
}

.budget-summary {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 3px solid #ddd;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    padding: 12px 15px;
    font-size: 18px;
    font-weight: 600;
}

.summary-row.remaining {
    background: #388E3C;
    color: white;
    border-radius: 4px;
    margin-top: 10px;
}

.summary-row.remaining.negative {
    background: #d32f2f;
}

.budget-warning,
.budget-success {
    padding: 15px;
    border-radius: 4px;
    margin-top: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.budget-warning {
    background: #fff3cd;
    border: 2px solid #ffb800;
    color: #664d03;
}

.budget-success {
    background: #d4edda;
    border: 2px solid #388E3C;
    color: #155724;
}

.budget-actions {
    margin-top: 30px;
    display: flex;
    justify-content: center;
    gap: 15px;
}

/* ==========================================================================
   Disclaimer
   ========================================================================== */

.okmm-disclaimer {
    padding: 20px;
    background: #f5f5f5;
    border-radius: 4px;
    border: 1px solid #ddd;
}

.okmm-disclaimer p {
    margin: 0;
    font-size: 13px;
    line-height: 1.6;
    color: #000;
}

/* ==========================================================================
   Utility Classes
   ========================================================================== */

.screen-reader-text {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    white-space: nowrap;
    border-width: 0;
}

/* TablePress Styling - Match website body text */
.tablepress,
.tablepress td,
.tablepress th {
    font-size: 16px !important;
}

.tablepress td,
.tablepress th {
    color: #000 !important;
}

/* ==========================================================================
   Responsive Design
   ========================================================================== */

@media (max-width: 768px) {
    .okmm-calculator-container {
        flex-direction: column;
    }
    
    .okmm-calculator-sidebar {
        flex: 1;
        width: 100%;
    }
    
    .okmm-panel-actions {
        flex-direction: column;
    }
    
    .okmm-navigation-buttons {
        width: 100%;
    }
    
    .okmm-navigation-buttons .okmm-btn {
        flex: 1;
    }
    
    /* Stack modal buttons on mobile */
    .okmm-modal-footer {
        flex-direction: column-reverse;
    }
    
    .okmm-modal-footer .okmm-btn {
        width: 100%;
    }
}

/* ==========================================================================
   Print Styles
   ========================================================================== */

@media print {
    /* Hide everything except the budget modal */
    body > *:not(#budget-report-modal) {
        display: none !important;
    }
    
    /* Page setup */
    @page {
        size: letter portrait;
        margin: 0.75in;
    }
    
    /* Show and reset the modal for print */
    #budget-report-modal {
        display: block !important;
        position: static !important;
    }
    
    .okmm-modal,
    .okmm-modal-content {
        display: block !important;
        position: static !important;
        max-width: 100% !important;
        width: 100% !important;
        max-height: none !important;
        height: auto !important;
        overflow: visible !important;
        margin: 0 !important;
        padding: 0 !important;
        border: none !important;
        border-radius: 0 !important;
        box-shadow: none !important;
        background: white !important;
    }
    
    /* Hide buttons and interactive elements */
    .budget-actions,
    .okmm-modal-overlay,
    button {
        display: none !important;
    }
    
    /* Style the budget report */
    .okmm-budget-report {
        padding: 0 !important;
        width: 100% !important;
        height: auto !important;
        overflow: visible !important;
        position: relative !important;
    }
    
    /* Add OKMM logo at top of printed budget */
    .okmm-budget-report::before {
        content: '' !important;
        display: block !important;
        width: 200px !important;
        height: 60px !important;
        margin: 0 auto 20pt !important;
        background-image: url('https://dev.oklahomamoneymatters.org/wp-content/uploads/2025/12/OKMM-Logo_4-color-01.svg') !important;
        background-size: contain !important;
        background-repeat: no-repeat !important;
        background-position: center !important;
    }
    
    /* Add attribution footer at bottom of printed budget */
    .okmm-budget-report::after {
        content: 'Budget Calculator - https://oklahomamoneymatters.org/calculator' !important;
        display: block !important;
        text-align: center !important;
        font-size: 10pt !important;
        color: #666 !important;
        margin-top: 20pt !important;
        padding-top: 10pt !important;
        border-top: 1pt solid #ddd !important;
    }
    
    .okmm-budget-report h2 {
        font-size: 20pt;
        margin-bottom: 10pt;
        border-bottom: 2pt solid #000;
        page-break-after: avoid;
    }
    
    .budget-income {
        font-size: 13pt;
        padding: 8pt;
        border: 1.5pt solid #000;
        margin-bottom: 12pt;
        page-break-inside: avoid;
    }
    
    .budget-categories {
        width: 100%;
    }
    
    .budget-category {
        page-break-inside: avoid;
        margin-bottom: 12pt;
    }
    
    .budget-category h3 {
        font-size: 14pt;
        margin-top: 10pt;
        border-bottom: 1pt solid #000;
        page-break-after: avoid;
    }
    
    .budget-category ul {
        list-style: none;
        padding-left: 0;
        margin: 6pt 0;
    }
    
    .budget-category li {
        padding: 3pt 0;
        border-bottom: 0.5pt dotted #999;
        page-break-inside: avoid;
    }
    
    .budget-summary {
        border: 2pt solid #000;
        padding: 10pt;
        margin-top: 12pt;
        page-break-inside: avoid;
        background: #f5f5f5 !important;
    }
    
    .budget-success,
    .budget-warning {
        border: 1.5pt solid #000;
        padding: 10pt;
        margin: 10pt 0;
        page-break-inside: avoid;
    }
    
    /* Black text for printing */
    * {
        color: #000 !important;
    }
}