@charset "UTF-8";
/* CSS Document */

.troubleshooting,
.hidden {
    display: none;
}

.devmode .troubleshooting {
    display: block;
}

table.bkkp {
    width: 100%;
}

table.bkkp tr th,
table.bkkp tr td {
    border: 1px solid grey;
    min-width: 10rem;
    margin: 0;
    padding: 0 3px;
    font-family: verdana;
    font-size: 1rem;
}

table.bkkp tr:nth-child(even) { background: #f7f7f7; }

table.bkkp a {
    text-decoration: none;
}

table.bkkp a:hover {
    text-decoration: underline;
}



.wp-block-post-title,
.accounting, .accounts-pivot {
    max-width: 96%;
}


/* CSS to style the "copy: icon */
.copy-number-icon {
	cursor: pointer;
	margin-left: 6px;
	width: 0.9rem;
	height: 0.9rem;
	display: inline-block;
	vertical-align: text-bottom;
	opacity: 0;
	transition: opacity 0.2s;
	background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 20 20" fill="%23666"><path d="M15 6h-1V4c0-1.1-.9-2-2-2H4c-1.1 0-2 .9-2 2v8c0 1.1.9 2 2 2h2v2c0 1.1.9 2 2 2h7c1.1 0 2-.9 2-2V8c0-1.1-.9-2-2-2zM4 12V4h8v2H8c-1.1 0-2 .9-2 2v4H4zm11 4H8V8h7v8z"/></svg>');
	background-size: contain;
	background-repeat: no-repeat;
}

td:hover .copy-number-icon,
.copy-number-icon:hover {
    opacity: 0.6;
}

.copy-number-icon:hover {
    opacity: 1 !important;
}

/* Optional: Use a custom icon instead of emoji */
.copy-number-icon.icon-style {
    width: 1rem;
    height: 1rem;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><rect x="9" y="9" width="13" height="13" rx="2" ry="2"></rect><path d="M5 15H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h9a2 2 0 0 1 2 2v1"></path></svg>');
    background-size: contain;
    text-indent: -9999px;
}

.numeric.negative {
    color: red;
}

.numeric.positive {
    color: green;
    font-weight: 600;
}

/*** Styling for data auditing ***/

a.data-gap {
    position: relative;
    padding-left: 1.5rem;
}

a.data-gap::before {
    content: "⚠";
    position: absolute;
    left: 0;
    color: #f39c12;
    font-weight: bold;
}

/***** Accounts ***/

/* Account view container */
.account-view {
    max-width: 1200px;
    margin: 0 auto;
}

.account-summary {
    margin-bottom: 2em;
}

/* Year sections */
.transaction-year {
    margin-bottom: 1.5em;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.year-summary {
    cursor: pointer;
    font-weight: bold;
    padding: 1rem;
    background: #f9f9f9;
    border-radius: 4px;
    user-select: none;
}

.year-summary:hover {
    background: #f0f0f0;
}

.year-label {
    font-size: 1.2rem;
}

.year-count {
    color: #666;
    font-weight: normal;
    margin-left: 0.5em;
}

/* Year details section */
.year-details {
    padding: 1rem;
}

.year-totals {
    background: #f5f5f5;
    padding: 0.5rem;
    margin-bottom: 1rem;
    border-radius: 4px;
}

.stat-row {
    display: flex;
    justify-content: space-between;
    padding: 0.25em 0;
}

.stat-label {
    font-weight: 500;
}

.stat-value {
    font-weight: bold;
    color: #333;
}

/* Monthly table */
.monthly-heading {
    margin: 1em 0 0.5em;
    font-size: 1rem;
    color: #666;
}

.monthly-table {
    width: auto;
    border-collapse: collapse;
    margin-top: 0.5rem;
    font-size: 1.1rem;
}

.monthly-table thead {
    background: #f0f0f0;
}

.monthly-table th,
.monthly-table td {
    padding: 0.5rem;
    border: 1px solid #ddd;
}

.monthly-table th {
    font-weight: 600;
    text-align: left;
}

.col-month {
    width: 40%;
    text-align: right;
}

.col-total,
.col-credits,
.col-debits {
    width: 20%;
    text-align: right;
}

.monthly-table tbody tr:hover {
    background: #fafafa;
}

/* States */
.no-transactions {
    color: #666;
    font-style: italic;
}

/*** EMPLOYERS ***/
.whx4.employment th.year {
    min-width: 180px;
}

.whx4.employment .tax-year-cell {
    text-align: right;
    vertical-align: top;
}

.whx4.employment .tax-amount {
    margin-bottom: 0rem;
}

.whx4.employment .tax-amount:last-child {
    margin-bottom: 0;
}

.whx4.employment .comp-amount {
    font-weight: 600;
    font-size: 1.1rem;
    /*color: #2563eb;*/
    text-decoration: none;
}

.whx4.employment .comp-amount:hover {
    text-decoration: underline;
}

.whx4.employment .withheld-amount {
    display: block;
    font-size: 0.9rem;
    color: #6b7280;
    margin-top: 0.15rem;
}

.whx4.employment .no-data {
    color: #9ca3af;
}

.whx4.employment .txn-total {
    font-size: 0.9em;
    margin-top: 0rem;
    padding: 0.25rem 0;
    font-weight: 500;
}

.whx4.employment .txn-total.match {
    color: #059669;  /* Green */
}

.whx4.employment .txn-total.mismatch {
    color: #dc2626;  /* Red */
    font-weight: 600;
}

.employment-income-view table {
    margin-top: 20px;
}

.employment-income-view .year-header {
    text-align: center;
    font-weight: bold;
    border-bottom: 2px solid #ddd;
}

.employment-income-view .column-gross,
.employment-income-view .column-net,
.employment-income-view .column-total,
.employment-income-view .column-txn {
    text-align: right;
    width: 100px;
}

.employment-income-view .employer-name {
    font-weight: 500;
}

.employment-income-view .doc-detail-row {
    background-color: #f9f9f9;
    font-size: 0.95em;
}

.employment-income-view .doc-detail-row .doc-title {
    padding-left: 30px;
    font-style: italic;
}

.employment-income-view .no-docs {
    color: #999;
    font-style: italic;
}

.employment-income-view .column-txn.mismatch {
    background-color: #fff3cd;
}

.employment-income-view .mismatch-indicator {
    color: #856404;
    font-weight: bold;
    margin-left: 5px;
    cursor: help;
}

.employment-income-view .totals-row {
    font-weight: bold;
    border-top: 2px solid #ddd;
    background-color: #f0f0f0;
}

.employment-income-view .troubleshooting {
    margin-top: 20px;
    padding: 10px;
    background-color: #f0f0f0;
    border-left: 4px solid #0073aa;
    font-size: 0.9em;
}

/* Hide print header on screen */
.print-header {
	display: none;
}

@media print {
    /* Hide specific site chrome - adjust selectors to match your theme */
    body > header,
    .wp-site-blocks header,
    body > footer,
    .wp-site-blocks footer,
    .site-header,
    .site-footer,
    #site-navigation,
    #wpadminbar,
    .screen-only {
        display: none !important;
    }
    
    /* Show print header */
	.whx4 .print-header {
		display: block;
		margin-bottom: 1em;
		border-bottom: 2px solid #000;
		padding-bottom: 0.5em;
	}
	
	.whx4 .print-header h1 {
		margin: 0;
		font-size: 20pt;
	}
	
	/* Hide main page title */
	.entry-title,
	.page-title,
	h1.entry-title,
	h1.wp-block-post-title {
		display: none;
	}
    
    /* Hide transaction totals and debug info */
    .whx4.employment .txn-total:not(.no_docs),
    .whx4.employment .debug-divider,
    .whx4.employment .debug-info {
        display: none !important;
    }
    
    /* Optimize table for printing */
    .whx4.employment table.bkkp {
        width: 100%;
        border-collapse: collapse;
        font-size: 1rem;
    }
    
    .whx4.employment table.bkkp th,
    .whx4.employment table.bkkp td {
        border: 1px solid #000;
        padding: 2px;
    }
    
    .whx4.employment table.bkkp thead {
        display: table-header-group;
    }
    
    /* Remove link styling */
    .whx4.employment a {
        text-decoration: none;
        color: #000;
    }
    
    .whx4.accounting .txn-count {
        display: none;
    }
    
    /* Basic page setup */
    @page {
        margin: 0.5in;
    }
}

/*** MISC ***/

/* Debug section */
.debug-divider {
    margin: 2em 0 1em;
    border: none;
    border-top: 1px solid #ddd;
}

.debug-info {
    margin-top: 1em;
}

.debug-info summary {
    cursor: pointer;
    color: #666;
    font-size: 0.9em;
}

.debug-info pre {
    background: #f5f5f5;
    padding: 1em;
    overflow-x: auto;
    font-size: 0.85em;
}