* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background-color: #f5f5f5;
    color: #333;
    line-height: 1.6;
}

/* Hide scrollbars and prevent scrolling when login screen is active */
body.login-active {
    overflow: hidden;
}

.screen {
    display: none;
}

.screen.active {
    display: flex;
}

/* Login Screen */
#loginScreen {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100vw;
    height: 100vh;
    justify-content: center;
    align-items: center;
    background: linear-gradient(135deg, #1a2a3a 0%, #2d5a8c 50%, #4a7ba7 100%);
    z-index: 9999;
    overflow: hidden;
}

.login-wrapper {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.login-container {
    background: white;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    width: 100%;
    max-width: 400px;
}

.login-logo {
    text-align: center;
    margin-bottom: 30px;
}

.logo-placeholder {
    display: inline-block;
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: bold;
}

.login-logo-image {
    max-width: 200px;
    max-height: 100px;
    width: auto;
    height: auto;
    display: block;
}

.login-title {
    font-size: 28px;
    margin-bottom: 10px;
    color: #333;
    text-align: center;
    line-height: 1.3;
}

.login-subtitle {
    font-size: 14px;
    color: #666;
    margin-bottom: 5px;
    text-align: center;
}

.login-version {
    font-size: 12px;
    color: #999;
    margin-bottom: 30px;
    text-align: center;
}

.form-group {
    margin-bottom: 15px;
}

.form-group input {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    font-family: 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-weight: 400;
    letter-spacing: 0.3px;
    transition: all 0.3s;
    color: #333;
}

.form-group input::placeholder {
    font-family: 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-weight: 400;
    color: #999;
}

.form-group input:focus {
    outline: none;
    border-color: #2d5a8c;
    box-shadow: 0 0 0 3px rgba(45, 90, 140, 0.1);
}

.btn-login {
    width: 100%;
    padding: 12px;
    background: linear-gradient(135deg, #2d5a8c 0%, #4a7ba7 100%);
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.btn-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(45, 90, 140, 0.4);
}

.login-links {
    text-align: center;
    margin-top: 20px;
}

.btn-forgot-password {
    background: none;
    border: none;
    color: #667eea;
    cursor: pointer;
    font-size: 14px;
    text-decoration: underline;
}

.login-footer {
    text-align: center;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #eee;
    font-size: 12px;
    color: #999;
}

.error-message {
    color: #e74c3c;
    margin-top: 10px;
    font-size: 14px;
    display: none;
}

.error-message.show {
    display: block;
}

/* Main Screen */
#mainScreen {
    display: flex;
    flex-direction: column;
    height: 100vh;
}

.navbar {
    background: white;
    color: #1a2a3a;
    padding: 15px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.navbar-left {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo-small {
    display: inline-block;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
}

.navbar-logo-image {
    max-width: 120px;
    max-height: 100px;
    width: auto;
    height: auto;
    display: block;
}

.navbar-info {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.navbar-title {
    font-size: 20px;
    margin: 0;
    color: #1a2a3a;
}

.navbar-details {
    display: flex;
    gap: 20px;
    font-size: 12px;
    color: #1a2a3a;
}

.district-info,
.nde-info,
.budget-year-info {
    font-size: 13px;
    opacity: 0.95;
    color: #1a2a3a;
}

.district-info .placeholder,
.nde-info .placeholder {
    font-weight: 500;
    color: #E63946;
}

.budget-year-info {
    font-weight: 400;
    color: #1a2a3a;
}

.budget-year-info .placeholder {
    font-weight: 600;
    color: #E63946;
}

.navbar-right {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 15px;
}

.user-display {
    font-size: 14px;
    color: #1a2a3a;
    margin-right: auto;
}

.btn-logout {
    padding: 8px 16px;
    background: transparent;
    color: #E63946;
    border: 2px solid #000;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s;
    font-weight: 600;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 36px;
    white-space: nowrap;
}

.btn-logout:hover {
    background: #E63946;
    color: white;
}

.navbar-button-group {
    display: flex;
    gap: 10px;
    flex-direction: column;
    align-items: flex-end;
}

.btn-save-all {
    padding: 8px 16px;
    background: #4CAF50;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s;
    font-weight: 600;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 36px;
    white-space: nowrap;
}

.btn-save-all:hover {
    background: #45a049;
    box-shadow: 0 2px 8px rgba(76, 175, 80, 0.3);
}

.btn-save-all:active {
    transform: scale(0.98);
}

.btn-save-all:disabled {
    background: #ccc;
    cursor: not-allowed;
    opacity: 0.6;
}

.btn-help {
    padding: 8px 12px;
    background: #2196F3;
    color: white;
    border: none;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-help:hover {
    background: #1976D2;
    box-shadow: 0 2px 8px rgba(33, 150, 243, 0.3);
}

.btn-feedback {
    padding: 8px 12px;
    background: #FF9800;
    color: white;
    border: none;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-feedback:hover {
    background: #F57C00;
    box-shadow: 0 2px 8px rgba(255, 152, 0, 0.3);
}

/* Tab Navigation */
.tab-navigation {
    background: #e8e8e8;
    border-bottom: 2px solid #d0d0d0;
    display: flex;
    gap: 0;
    padding: 0 30px;
    overflow-x: auto;
}

.tab-btn {
    padding: 15px 20px;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    color: #1a2a3a;
    border-bottom: 3px solid transparent;
    transition: all 0.3s;
    white-space: nowrap;
}

.tab-btn:hover {
    color: #1a2a3a;
    background: rgba(26, 42, 58, 0.1);
}

.tab-btn.active {
    color: #E63946;
    border-bottom-color: #E63946;
}

/* Tab Content */
.tab-content {
    flex: 1;
    overflow-y: auto;
    padding: 30px;
}

.tab-pane {
    display: none;
    width: 100%;
}

.tab-pane.active {
    display: block;
    width: 100%;
}

.content-header {
    margin-bottom: 30px;
}

.content-header h2 {
    font-size: 26px;
    margin-bottom: 10px;
    color: #333;
}

.content-header p {
    color: #666;
    font-size: 14px;
}

/* Sections */
.section {
    background: white;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    width: 100%;
    box-sizing: border-box;
}

.section h4 {
    font-size: 16px;
    margin-bottom: 15px;
    color: #333;
}

/* Budget Manuals */
.manuals-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 15px;
}

.manual-option {
    background: #f9f9f9;
    border: 2px solid #E63946;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    transition: all 0.3s;
}

.manual-option:hover {
    box-shadow: 0 4px 12px rgba(230, 57, 70, 0.2);
    transform: translateY(-2px);
}

.manual-option h5 {
    font-size: 16px;
    font-weight: 600;
    color: #1a2a3a;
    margin-bottom: 10px;
}

.manual-option p {
    font-size: 13px;
    color: #666;
    margin-bottom: 15px;
    line-height: 1.5;
}

.manual-option .btn-primary {
    width: 100%;
    padding: 10px;
    font-size: 14px;
}

/* State Resources */
.state-resources-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 15px;
}

.resource-box {
    background: white;
    border: 2px solid #1a2a3a;
    border-radius: 8px;
    padding: 20px;
    transition: all 0.3s;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.resource-box:hover {
    box-shadow: 0 4px 12px rgba(26, 42, 58, 0.2);
    transform: translateY(-2px);
}

.resource-box h5 {
    font-size: 16px;
    font-weight: 600;
    color: #1a2a3a;
    margin-bottom: 10px;
    border-bottom: 2px solid #E63946;
    padding-bottom: 8px;
}

.resource-box p {
    font-size: 13px;
    color: #666;
    margin-bottom: 15px;
    line-height: 1.5;
}

.resource-content {
    min-height: 80px;
    padding: 15px;
    background: #f9f9f9;
    border-radius: 6px;
    border-left: 4px solid #E63946;
}

.resource-content:empty::before {
    content: "Add information here";
    color: #999;
    font-style: italic;
    font-size: 13px;
}

/* Fund Selector */
.fund-selector {
    background: white;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.fund-selector label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

.fund-selector select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    max-width: 400px;
}

/* Fund Editor */
.fund-editor-header {
    background: white;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.fund-editor-header h3 {
    margin: 0 0 10px 0;
    font-size: 20px;
    color: #333;
}

.fund-editor-header p {
    margin: 0;
    color: #666;
    font-size: 14px;
}

/* Buildings Container */
.buildings-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 15px;
}

.building-column {
    background: #f9f9f9;
    padding: 15px;
    border-radius: 4px;
    border: 1px solid #e0e0e0;
}

.building-column h5 {
    margin: 0 0 10px 0;
    font-size: 14px;
    color: #667eea;
}

.building-column p {
    margin: 0;
    font-size: 12px;
    color: #999;
}

/* Budget Table */
.budget-table-container {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
    font-size: 13px;
}

thead {
    background: #f5f5f5;
}

th, td {
    padding: 10px;
    text-align: left;
    border-bottom: 1px solid #e0e0e0;
}

th {
    font-weight: 600;
    color: #333;
}

td input {
    width: 100%;
    padding: 6px;
    border: 1px solid #ddd;
    border-radius: 3px;
    font-size: 13px;
}

td input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 2px rgba(102, 126, 234, 0.1);
}

/* ===== COMPREHENSIVE BUDGET TABLE STYLING ===== */

.budget-table-section {
    margin-top: 30px;
}

.table-info {
    background: #f0f4ff;
    padding: 15px;
    border-radius: 4px;
    margin-bottom: 20px;
    color: #333;
    font-size: 13px;
    border-left: 4px solid #667eea;
}

/* Account Code Search Bar */
.account-code-search {
    margin-bottom: 20px;
    position: relative;
}

.search-input {
    width: 100%;
    padding: 12px 16px;
    font-size: 14px;
    border: 2px solid #ddd;
    border-radius: 4px;
    transition: border-color 0.3s, box-shadow 0.3s;
    box-sizing: border-box;
}

.search-input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.search-input::placeholder {
    color: #999;
}

.search-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #ddd;
    border-top: none;
    border-radius: 0 0 4px 4px;
    max-height: 300px;
    overflow-y: auto;
    z-index: 1000;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.search-result-item {
    padding: 12px 16px;
    border-bottom: 1px solid #eee;
    cursor: pointer;
    transition: background-color 0.2s;
}

.search-result-item:hover {
    background-color: #f5f5f5;
}

.search-result-item:last-child {
    border-bottom: none;
}

.search-result-code {
    font-weight: 600;
    color: #667eea;
    font-family: 'Courier New', monospace;
}

.search-result-description {
    font-size: 12px;
    color: #666;
    margin-top: 4px;
}

.search-no-results {
    padding: 12px 16px;
    text-align: center;
    color: #999;
    font-size: 13px;
}

.budget-table-wrapper {
    overflow-x: auto;
    overflow-y: auto;
    max-height: 800px;
    border: 1px solid #ddd;
    border-radius: 4px;
    margin-bottom: 20px;
}

.budget-table-wrapper table {
    margin: 0;
    font-size: 12px;
}

.budget-table-wrapper thead {
    position: sticky;
    top: 0;
    background: #667eea;
    color: white;
    z-index: 10;
}

.budget-table-wrapper th {
    color: white;
    font-weight: 600;
    padding: 12px 8px;
    text-align: center;
    border-bottom: 2px solid #5568d3;
}

.budget-table-wrapper td {
    padding: 8px;
    border-bottom: 1px solid #eee;
}

/* Account Code Column */
.budget-table-wrapper td:nth-child(1) {
    background: #f9f9f9;
    font-weight: 600;
    color: #333;
    min-width: 140px;
    position: sticky;
    left: 0;
    z-index: 5;
}

/* Description Column */
.budget-table-wrapper td:nth-child(2) {
    background: #fafafa;
    min-width: 300px;
    font-size: 11px;
    color: #555;
    position: sticky;
    left: 140px;
    z-index: 5;
}

/* Budget Input Columns */
.budget-table-wrapper td input[type="number"] {
    width: 100%;
    padding: 6px;
    border: 1px solid #ddd;
    border-radius: 3px;
    font-size: 12px;
    text-align: right;
    background: white;
}

.budget-table-wrapper td input[type="number"]:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 2px rgba(102, 126, 234, 0.15);
    background: #f9f9ff;
}

/* Row Total Column */
.budget-table-wrapper td.row-total {
    background: #e8f0ff;
    font-weight: 600;
    color: #001f5c;
    text-align: right;
    padding: 8px 12px;
    border-left: 2px solid #667eea;
}

/* Footer Row (Column Totals) */
.budget-table-wrapper tr.totals-row {
    background: #e8f0ff;
    font-weight: 700;
}

.budget-table-wrapper tr.totals-row td {
    background: #e8f0ff;
    color: #001f5c;
    text-align: right;
    padding: 12px 8px;
    border-top: 2px solid #667eea;
    border-bottom: 2px solid #667eea;
}

.budget-table-wrapper tr.totals-row td:nth-child(1),
.budget-table-wrapper tr.totals-row td:nth-child(2) {
    text-align: left;
}

/* Section Headers (REVENUE / EXPENDITURES) */
.budget-table-wrapper tr.section-header td {
    background: #667eea !important;
    color: white !important;
    font-weight: bold !important;
    padding: 12px 8px !important;
    text-align: center;
    border-bottom: 2px solid #5568d3 !important;
}

/* Subtotal Rows (TOTAL REVENUE / TOTAL EXPENDITURES) */
.budget-table-wrapper tr.subtotals-row {
    background: #fff3e0;
}

.budget-table-wrapper tr.subtotals-row td {
    background: #fff3e0;
    color: #e65100;
    font-weight: 700;
    text-align: right;
    padding: 12px 8px;
    border-top: 1px solid #ffe0b2;
    border-bottom: 1px solid #ffe0b2;
}

.budget-table-wrapper tr.subtotals-row td:nth-child(1),
.budget-table-wrapper tr.subtotals-row td:nth-child(2) {
    text-align: left;
    color: #e65100;
}

.budget-table-wrapper tr.subtotals-row .subtotal-value {
    color: #e65100;
    font-weight: 700;
}

.budget-actions {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.budget-actions button {
    padding: 12px 24px;
    font-size: 14px;
    font-weight: 600;
    border-radius: 4px;
    border: none;
    cursor: pointer;
    transition: all 0.3s;
}

.budget-actions .btn-primary {
    background: #667eea;
    color: white;
}

.budget-actions .btn-primary:hover {
    background: #5568d3;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.budget-actions .btn-secondary {
    background: #f5f5f5;
    color: #333;
    border: 1px solid #ddd;
}

.budget-actions .btn-secondary:hover {
    background: #e8e8e8;
}

/* Status Message for Budget */
#budgetTableStatus {
    margin-top: 15px;
    padding: 12px 16px;
    border-radius: 4px;
    font-size: 14px;
    text-align: center;
}

#budgetTableStatus.success {
    background: #e8f5e9;
    color: #2e7d32;
    border: 1px solid #c8e6c9;
}

#budgetTableStatus.error {
    background: #ffebee;
    color: #c62828;
    border: 1px solid #ffcdd2;
}

#budgetTableStatus.info {
    background: #e3f2fd;
    color: #1565c0;
    border: 1px solid #bbdefb;
}

/* Empty Table Message */
.empty-budget-table {
    text-align: center;
    padding: 40px 20px;
    color: #999;
    font-size: 14px;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #999;
    font-size: 16px;
}

/* Buttons */
.button-group {
    display: flex;
    gap: 10px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.btn-primary, .btn-secondary {
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s;
}

.btn-primary {
    background: #E63946;
    color: white;
}

.btn-primary:hover {
    background: #D62828;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(230, 57, 70, 0.4);
}

.btn-secondary {
    background: #f5f5f5;
    color: #333;
    border: 1px solid #ddd;
}

.btn-secondary:hover {
    background: #efefef;
}

/* Report Options */
.report-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 15px;
}

.report-option {
    background: #f9f9f9;
    padding: 15px;
    border-radius: 4px;
    border: 1px solid #e0e0e0;
}

.report-option h5 {
    margin: 0 0 8px 0;
    font-size: 14px;
    color: #333;
}

.report-option p {
    margin: 0 0 12px 0;
    font-size: 13px;
    color: #666;
}

.report-option button {
    width: 100%;
}

/* Upload Area */
.upload-area {
    background: #f9f9f9;
    padding: 20px;
    border: 2px dashed #ddd;
    border-radius: 4px;
    text-align: center;
}

#fileInput {
    margin-bottom: 10px;
}

.help-text {
    font-size: 12px;
    color: #999;
    margin-top: 10px;
}

/* Config Status */
.config-status {
    background: #f9f9f9;
    padding: 15px;
    border-radius: 4px;
    font-size: 13px;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 5000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4);
    align-items: center;
    justify-content: center;
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.2s ease, visibility 0.2s ease;
}

.modal.show {
    display: flex;
    visibility: visible;
    opacity: 1;
}

.modal-content {
    background-color: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
}

.modal-close {
    position: absolute;
    right: 15px;
    top: 15px;
    font-size: 28px;
    font-weight: bold;
    color: #999;
    cursor: pointer;
    transition: color 0.3s;
}

.modal-close:hover {
    color: #333;
}

.modal h2 {
    margin-top: 0;
    margin-bottom: 20px;
}

/* Manual Modal Styling */
.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #E63946;
}

.modal-header h2 {
    margin: 0;
    color: #1a2a3a;
    flex: 1;
}

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

.modal-footer {
    display: flex;
    gap: 10px;
    padding-top: 20px;
    border-top: 1px solid #ddd;
}

.modal-footer button {
    flex: 1;
    padding: 10px;
    font-size: 14px;
}

/* Building Selection Modal Styles */
.building-selection-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 15px 0;
}

.building-checkbox-item {
    display: flex;
    align-items: center;
    padding: 10px;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    background-color: #fafafa;
    transition: background-color 0.2s, border-color 0.2s;
}

.building-checkbox-item:hover {
    background-color: #f0f0f0;
    border-color: #E63946;
}

.building-checkbox-item input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: #E63946;
}

.building-checkbox-item label {
    flex: 1;
    font-size: 14px;
    color: #333;
    font-weight: 500;
}

.manual-viewer {
    font-size: 14px;
    line-height: 1.6;
    color: #333;
}

.manual-header {
    background: #f9f9f9;
    padding: 15px;
    border-radius: 6px;
    margin-bottom: 20px;
    border-left: 4px solid #E63946;
}

.manual-header h2 {
    margin: 0 0 5px 0;
    color: #1a2a3a;
    font-size: 18px;
}

.manual-header p {
    margin: 0;
    color: #666;
    font-size: 13px;
}

.manual-content h3 {
    color: #1a2a3a;
    font-size: 16px;
    margin-top: 20px;
    margin-bottom: 10px;
    border-bottom: 1px solid #E63946;
    padding-bottom: 5px;
}

.manual-content ul,
.manual-content ol {
    margin-bottom: 15px;
    padding-left: 25px;
}

.manual-content li {
    margin-bottom: 8px;
}

.manual-content ul ul,
.manual-content ol ol {
    margin-top: 8px;
    margin-bottom: 8px;
}

.manual-content strong {
    color: #1a2a3a;
}

/* Staff Page Styling */
.staff-form-container {
    background: white;
    padding: 20px;
    border-radius: 4px;
    margin-bottom: 15px;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 15px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    margin-bottom: 5px;
    font-weight: 500;
    font-size: 13px;
}

.form-group input,
.form-group select {
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 13px;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 2px rgba(102, 126, 234, 0.1);
}

.section-label {
    font-weight: 600;
    margin: 20px 0 10px 0;
    padding-top: 15px;
    border-top: 1px solid #e0e0e0;
    color: #333;
    font-size: 14px;
}

.staff-controls {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.staff-table-container {
    overflow-x: auto;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    background: white;
}

.staff-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 12px;
}

.staff-table thead {
    background: #f5f5f5;
    border-bottom: 2px solid #e0e0e0;
}

.staff-table th {
    padding: 12px;
    text-align: left;
    font-weight: 600;
    color: #333;
    border-right: 1px solid #e0e0e0;
}

.staff-table th:last-child {
    border-right: none;
}

.staff-table td {
    padding: 10px 12px;
    border-bottom: 1px solid #e0e0e0;
    border-right: 1px solid #e0e0e0;
}

.staff-table td:last-child {
    border-right: none;
}

.staff-table tbody tr:hover {
    background-color: #f9f9f9;
}

.staff-table .numeric {
    text-align: right;
    font-family: monospace;
}

.staff-table .action-btn {
    padding: 6px 10px;
    background: #e74c3c;
    color: white;
    border: none;
    border-radius: 3px;
    cursor: pointer;
    font-size: 11px;
    transition: background 0.3s;
}

.staff-table .action-btn:hover {
    background: #c0392b;
}

.total-section {
    background: linear-gradient(135deg, #f0f0f0 0%, #e8e8e8 100%);
    border: 2px solid #ddd;
}

.total-cost-display {
    background: white;
    padding: 20px;
    border-radius: 4px;
}

.total-row {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid #e0e0e0;
    font-size: 14px;
}

.total-row.grand-total {
    border-bottom: none;
    border-top: 2px solid #667eea;
    padding-top: 15px;
    padding-bottom: 0;
    font-size: 16px;
    font-weight: bold;
    color: #667eea;
}

.total-value {
    font-weight: 600;
    font-family: monospace;
    color: #333;
}

.grand-total .total-value {
    color: #667eea;
    font-size: 18px;
}

/* Error icon for data inconsistencies */
.error-icon {
    display: inline-block;
    cursor: pointer;
    color: #ff5722;
    font-size: 16px;
    margin-left: 8px;
    transition: transform 0.2s ease;
}

.error-icon:hover {
    transform: scale(1.2);
}

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

.report-filters {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
    padding: 15px;
    background: #f9f9f9;
    border-radius: 4px;
}

.filter-group {
    display: flex;
    flex-direction: column;
}

.filter-group label {
    margin-bottom: 5px;
    font-weight: 500;
    font-size: 13px;
}

.filter-group select {
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 13px;
}

.report-content {
    max-height: 400px;
    overflow-y: auto;
    margin-bottom: 15px;
}

/* Page Footer */
.page-footer {
    background: #f5f5f5;
    border-top: 1px solid #e0e0e0;
    padding: 20px 30px;
    text-align: center;
    font-size: 12px;
    color: #666;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    gap: 20px;
}

.footer-left,
.footer-right {
    flex: 1;
    text-align: left;
}

.footer-right {
    text-align: right;
}

.footer-center {
    flex: 2;
    text-align: center;
}

.footer-logo {
    display: inline-block;
    width: 30px;
    height: 30px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: bold;
}

.footer-logo-image {
    max-width: 50px;
    max-height: 40px;
    width: auto;
    height: auto;
    display: block;
}

.footer-text {
    margin: 0;
    font-size: 12px;
    color: #666;
}

.footer-version {
    margin: 0;
    font-size: 11px;
    color: #999;
}

/* Responsive */
@media (max-width: 768px) {
    .page-footer {
        padding: 15px;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
    }

    .footer-left,
    .footer-right {
        text-align: center;
    }

    .navbar-details {
        flex-direction: column;
        gap: 5px;
    }
    .navbar {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }

    .navbar-left {
        width: 100%;
        justify-content: center;
    }

    .navbar-right {
        width: 100%;
        justify-content: center;
    }

    .tab-navigation {
        padding: 0 15px;
    }

    .tab-btn {
        padding: 12px 15px;
        font-size: 13px;
    }

    .tab-content {
        padding: 15px;
    }

    .buildings-container {
        grid-template-columns: 1fr;
    }

    .report-options {
        grid-template-columns: 1fr;
    }
}

/* ============================================
   Professional Fund Reports Styling
   ============================================ */

.fund-report-section {
    background-color: #f9f9f9;
    padding: 20px;
    border-radius: 5px;
    margin-bottom: 20px;
}

.building-checkbox-group {
    margin-top: 10px;
}

.checkbox-item {
    display: flex;
    align-items: center;
    margin: 8px 0;
    cursor: pointer;
    user-select: none;
}

.checkbox-item input[type="checkbox"] {
    margin-right: 10px;
    cursor: pointer;
    width: 18px;
    height: 18px;
}

.checkbox-item span {
    font-size: 14px;
    color: #333;
}

.building-checkboxes-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 10px;
    margin-top: 10px;
    padding: 10px 0;
    margin-left: 30px;
}

.report-preview {
    background-color: white;
    border: 1px solid #ddd;
    border-radius: 5px;
    padding: 20px;
    overflow-x: auto;
}

.professional-report {
    font-family: 'Arial', sans-serif;
    color: #333;
}

.report-header {
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 3px solid #667eea;
}

.report-header h2 {
    margin: 10px 0;
    color: #333;
    font-size: 24px;
    font-weight: bold;
}

.report-header h3 {
    margin: 8px 0;
    color: #667eea;
    font-size: 18px;
    font-weight: 600;
}

.report-header h4 {
    margin: 12px 0;
    color: #333;
    font-size: 16px;
    font-weight: bold;
}

.report-header p {
    margin: 5px 0;
    font-size: 13px;
    color: #666;
}

.report-content {
    margin: 30px 0;
}

.report-section {
    margin: 25px 0;
    page-break-inside: avoid;
}

.report-section h5 {
    margin: 15px 0 10px 0;
    padding: 10px 0;
    border-top: 2px solid #667eea;
    border-bottom: 1px solid #ddd;
    font-size: 14px;
    font-weight: bold;
    text-transform: uppercase;
    color: #333;
}

.report-section h6 {
    margin: 12px 0 8px 0;
    font-size: 13px;
    font-weight: bold;
    color: #555;
}

.professional-table {
    width: 100%;
    border-collapse: collapse;
    margin: 10px 0;
    font-size: 12px;
}

.professional-table.compact {
    font-size: 11px;
}

.professional-table th {
    background-color: #f0f0f0;
    border: 1px solid #999;
    padding: 8px;
    text-align: left;
    font-weight: bold;
    color: #333;
}

.professional-table td {
    border: 1px solid #ddd;
    padding: 8px;
    text-align: left;
}

.code-column {
    width: 80px;
    font-weight: bold;
    color: #667eea;
}

.amount-column {
    text-align: right;
    font-family: 'Courier New', monospace;
    width: 120px;
    padding-right: 10px;
}

.professional-table tr:nth-child(even) {
    background-color: #fafafa;
}

.professional-table tr:hover {
    background-color: #f5f5f5;
}

.subtotal-row {
    background-color: #e8f0ff;
    font-weight: bold;
    border-top: 2px solid #667eea;
    border-bottom: 2px solid #667eea;
}

.subtotal-row td {
    background-color: #e8f0ff;
}

.group-subtotal-row {
    background-color: #f0f0f0;
    font-weight: bold;
    border-top: 1px solid #999;
}

.group-subtotal-row td {
    background-color: #f0f0f0;
}

.total-cell {
    background-color: #fffacd !important;
    border: 1px solid #999;
    font-weight: bold;
}

.summary-box {
    background-color: #f9f9f9;
    border-left: 4px solid #667eea;
    padding: 15px;
    border-radius: 3px;
    margin: 10px 0;
}

.summary-box p {
    margin: 5px 0;
    font-size: 13px;
}

.summary-box strong {
    color: #667eea;
}

.report-footer {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 2px solid #ddd;
    text-align: center;
    font-size: 11px;
    color: #999;
}

.report-footer p {
    margin: 5px 0;
}

/* ============================================
   STATE BUDGET DOCUMENT REPORTS (2026-2027)
   ============================================ */

.section-subtitle {
    font-size: 13px;
    color: #666;
    margin-top: 5px;
    margin-bottom: 15px;
    font-style: italic;
}

.state-reports-container {
    background-color: #f9f9f9;
    padding: 20px;
    border-radius: 5px;
}

.state-fund-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-bottom: 20px;
    border-bottom: 2px solid #ddd;
    padding-bottom: 10px;
}

.state-fund-tab {
    padding: 10px 15px;
    background-color: #e0e0e0;
    border: 1px solid #999;
    border-radius: 3px 3px 0 0;
    cursor: pointer;
    font-size: 12px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.state-fund-tab:hover {
    background-color: #d0d0d0;
}

.state-fund-tab.active {
    background-color: #667eea;
    color: white;
    border-color: #667eea;
}

.state-report-display {
    background-color: white;
    border: 1px solid #ddd;
    border-radius: 5px;
    padding: 20px;
}

.state-report-preview {
    min-height: 400px;
    margin-bottom: 20px;
    overflow-x: auto;
}

.state-report-actions {
    display: flex;
    gap: 10px;
    margin: 20px 0;
    flex-wrap: wrap;
}

.state-report-actions .btn-primary {
    padding: 10px 20px;
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.state-report-status {
    margin: 15px 0;
    padding: 15px;
    border-radius: 4px;
    border-left: 4px solid #667eea;
    background-color: #f5f5ff;
}

/* State Budget Report Styling */
.state-budget-report {
    font-family: Arial, sans-serif;
    color: #333;
    line-height: 1.4;
}

.state-report-header {
    text-align: center;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid #333;
}

.state-report-header h2 {
    margin: 0 0 10px 0;
    font-size: 16px;
    font-weight: bold;
    letter-spacing: 0.5px;
}

.state-report-header h3 {
    margin: 8px 0;
    font-size: 14px;
    font-weight: bold;
}

.state-report-header p {
    margin: 3px 0;
    font-size: 12px;
}

.state-report-body {
    margin: 15px 0;
}

.state-budget-table {
    width: 100%;
    border-collapse: collapse;
    margin: 15px 0;
    font-size: 12px;
}

.state-budget-table th {
    background-color: #f0f0f0;
    border: 1px solid #999;
    padding: 8px;
    text-align: left;
    font-weight: bold;
}

.state-budget-table td {
    border: 1px solid #ddd;
    padding: 8px;
    text-align: left;
}

.numeric-col {
    text-align: right;
    width: 120px;
}

.numeric {
    text-align: right;
    font-family: 'Courier New', monospace;
}

.state-budget-table tr:nth-child(even) {
    background-color: #fafafa;
}

.state-budget-table .section-header {
    background-color: #e8e8e8;
    font-weight: bold;
    border: 1px solid #999;
}

.state-budget-table .section-header td {
    padding: 10px 8px;
}

.state-budget-table .subtotal-row {
    background-color: #f5f5f5;
    font-weight: bold;
    border-top: 1px solid #999;
}

.state-budget-table .grand-total-row {
    background-color: #ffffcc;
    font-weight: bold;
    border: 2px solid #333;
}

.debt-legal-reference {
    background-color: #f9f9f9;
    padding: 15px;
    margin: 15px 0;
    border-left: 4px solid #667eea;
    border-radius: 3px;
}

.debt-legal-reference p {
    margin: 5px 0;
}

.state-report-footer {
    margin-top: 30px;
    padding-top: 15px;
    border-top: 1px solid #ddd;
    text-align: center;
    font-size: 11px;
    color: #999;
}

.state-report-footer p {
    margin: 5px 0;
}

/* Print Styles */
@media print {
    /* State Budget Reports Print Styles */
    .state-reports-container {
        background-color: white;
        padding: 0;
        border-radius: 0;
    }

    .state-fund-tabs {
        display: none;
    }

    .state-report-display {
        background-color: white;
        border: none;
        padding: 0;
    }

    .state-report-preview {
        min-height: auto;
        overflow: visible;
    }

    .state-budget-report {
        page-break-after: auto;
        color: #000;
    }

    .state-budget-table {
        page-break-inside: avoid;
        color: #000;
    }

    .state-budget-table td,
    .state-budget-table th {
        border: 1px solid #000;
    }

    .state-report-actions,
    .state-report-status {
        display: none;
    }

    /* Professional Reports Print Styles */
    .report-preview {
        border: none;
        padding: 0;
    }

    .professional-report {
        color: #000;
    }

    .professional-table {
        page-break-inside: avoid;
    }

    .report-section {
        page-break-inside: avoid;
    }

    .report-header {
        border-bottom: 2px solid #000;
    }

    .subtotal-row,
    .group-subtotal-row {
        page-break-inside: avoid;
    }

    .professional-table tr:hover {
        background-color: white;
    }
}

/* ============================================
   ADMINISTRATOR INTERFACE STYLES
   ============================================ */

.admin-panel-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

@media (max-width: 1200px) {
    .admin-panel-row {
        grid-template-columns: 1fr;
    }
}

.admin-panel {
    background: white;
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 20px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.admin-panel h4 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 15px;
    color: #333;
    border-bottom: 2px solid #667eea;
    padding-bottom: 10px;
}

.admin-panel h5 {
    font-size: 14px;
    font-weight: 600;
    color: #555;
    margin-bottom: 10px;
}

/* Role Switcher Panel */
.role-switcher-panel {
    background: linear-gradient(135deg, #f8f9ff 0%, #f0f4ff 100%);
    border-color: #e0e7ff;
}

.role-switcher-content {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.current-user-info {
    background: white;
    padding: 12px;
    border-radius: 4px;
    border-left: 3px solid #667eea;
}

.current-user-info p {
    font-size: 13px;
    margin: 5px 0;
    display: flex;
    justify-content: space-between;
}

.current-user-info strong {
    color: #333;
}

.current-user-info span {
    color: #667eea;
    font-weight: 600;
}

.role-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.role-badge.admin-badge {
    background: #667eea;
    color: white;
}

.role-badge.test-user-badge {
    background: #ffc107;
    color: #333;
}

.role-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.role-actions p {
    margin: 0;
    font-size: 13px;
    font-weight: 500;
    color: #555;
}

.role-actions select {
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 13px;
}

/* System Statistics Panel */
.system-stats-panel {
    background: linear-gradient(135deg, #f8fff8 0%, #f0fff8 100%);
    border-color: #c8f7dc;
}

.stats-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.stat-item {
    background: white;
    padding: 12px;
    border-radius: 4px;
    border-top: 3px solid #10b981;
    text-align: center;
}

.stat-item .stat-label {
    font-size: 12px;
    color: #999;
    text-transform: uppercase;
    font-weight: 500;
    margin-bottom: 5px;
}

.stat-item .stat-value {
    font-size: 24px;
    font-weight: 700;
    color: #10b981;
}

/* User Management Panel */
.user-management-panel {
    background: white;
    border-color: #ddd;
}

.user-management-content {
    display: flex;
    flex-direction: column;
}

.create-user-form {
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
    margin-bottom: 15px;
}

.existing-users {
    padding-top: 5px;
}

.users-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-height: 250px;
    overflow-y: auto;
}

.user-item {
    background: #f9f9f9;
    padding: 10px;
    border-radius: 4px;
    border-left: 3px solid #667eea;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
}

.user-item-info {
    flex: 1;
}

.user-item-name {
    font-weight: 600;
    color: #333;
}

.user-item-role {
    font-size: 11px;
    color: #999;
    margin-top: 3px;
}

.user-item-actions {
    display: flex;
    gap: 5px;
}

.user-item-actions button {
    padding: 4px 8px;
    font-size: 11px;
    background: #f0f0f0;
    border: 1px solid #ddd;
    border-radius: 3px;
    cursor: pointer;
    transition: all 0.2s;
}

.user-item-actions button:hover {
    background: #e74c3c;
    color: white;
    border-color: #e74c3c;
}

/* Testing Tools Panel */
.testing-tools-panel {
    background: linear-gradient(135deg, #fff8f0 0%, #fff0e6 100%);
    border-color: #ffd7a8;
}

.testing-tools-content {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.testing-tools-content button {
    padding: 12px;
    font-size: 13px;
    font-weight: 500;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: white;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.testing-tools-content button:hover {
    background: #f5f5f5;
    border-color: #999;
}

.testing-tools-content button:active {
    transform: scale(0.98);
}

#testingToolsStatus {
    padding: 12px !important;
    background: #f0f8ff !important;
    border-left: 3px solid #2196F3;
    color: #1976D2 !important;
    font-size: 12px !important;
    border-radius: 4px !important;
}

#testingToolsStatus.success {
    background: #f0f8f0 !important;
    border-left-color: #10b981;
    color: #10b981 !important;
}

#testingToolsStatus.error {
    background: #fff0f0 !important;
    border-left-color: #e74c3c;
    color: #e74c3c !important;
}

/* Admin Tab Section */
#adminTab .section {
    background: white;
    padding: 20px;
    border-radius: 6px;
    margin-bottom: 20px;
    border: 1px solid #ddd;
}

#adminTab .section h4 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 15px;
    color: #333;
    border-bottom: 2px solid #667eea;
    padding-bottom: 10px;
}

/* Modal for Debug Console */
.modal-debug {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.modal-debug.show {
    display: flex;
}

.debug-console-container {
    background: white;
    border-radius: 8px;
    width: 90%;
    max-width: 800px;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.debug-header {
    padding: 15px 20px;
    border-bottom: 1px solid #ddd;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.debug-header h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: #333;
}

.debug-content {
    flex: 1;
    overflow-y: auto;
    padding: 15px;
    background: #1e1e1e;
    font-family: 'Courier New', monospace;
    font-size: 12px;
    color: #0f0;
    line-height: 1.5;
}

.debug-content .log-entry {
    margin-bottom: 5px;
    padding: 3px;
}

.debug-content .log-entry.info {
    color: #0f0;
}

.debug-content .log-entry.warn {
    color: #ff0;
}

.debug-content .log-entry.error {
    color: #f00;
}

.debug-footer {
    padding: 10px 15px;
    border-top: 1px solid #ddd;
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

.debug-footer button {
    padding: 8px 16px;
    font-size: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: #f5f5f5;
    cursor: pointer;
    transition: all 0.2s;
}

.debug-footer button:hover {
    background: #e0e0e0;
}

/* Feature Checklist Modal */
.modal-checklist {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.modal-checklist.show {
    display: flex;
}

.checklist-container {
    background: white;
    border-radius: 8px;
    width: 90%;
    max-width: 700px;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.checklist-header {
    padding: 15px 20px;
    border-bottom: 1px solid #ddd;
}

.checklist-header h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: #333;
}

.checklist-content {
    flex: 1;
    overflow-y: auto;
    padding: 15px;
}

.checklist-section {
    margin-bottom: 20px;
}

.checklist-section h4 {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin-bottom: 10px;
    padding-bottom: 8px;
    border-bottom: 1px solid #eee;
}

.checklist-item {
    display: flex;
    align-items: center;
    padding: 8px 0;
    font-size: 13px;
}

.checklist-item input[type="checkbox"] {
    margin-right: 10px;
    cursor: pointer;
}

.checklist-item label {
    cursor: pointer;
    flex: 1;
    user-select: none;
}

.checklist-item input[type="checkbox"]:checked + label {
    color: #999;
    text-decoration: line-through;
}

.checklist-footer {
    padding: 10px 15px;
    border-top: 1px solid #ddd;
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

.checklist-footer button {
    padding: 8px 16px;
    font-size: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: #f5f5f5;
    cursor: pointer;
    transition: all 0.2s;
}

.checklist-footer button:hover {
    background: #e0e0e0;
}

/* ============================================
   DISTRICT DATA ENTRY PAGE STYLES
   ============================================ */

.district-data-banner {
    background: white;
    color: #1a2a3a;
    padding: 40px 20px;
    margin: -20px -20px 30px -20px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.banner-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
    flex-wrap: wrap;
}

.company-logo-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.company-logo {
    max-height: 180px;
    max-width: 300px;
    width: auto;
    height: auto;
    display: block;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.2));
}

.site-title-section {
    text-align: center;
}

.site-title {
    font-size: 36px;
    font-weight: 700;
    margin: 0 0 10px 0;
    color: #1a2a3a;
    text-shadow: none;
}

.site-subtitle {
    font-size: 16px;
    color: #1a2a3a;
    margin: 0;
}

@media (max-width: 768px) {
    .banner-content {
        flex-direction: column;
        gap: 20px;
    }

    .site-title {
        font-size: 24px;
    }

    .sfs-logo-large {
        width: 80px;
        height: 80px;
        font-size: 20px;
    }
}

/* District Data Container */
.district-data-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
}

/* District Info Card */
.district-info-card {
    background: white;
    border: 2px solid #E63946;
    border-radius: 8px;
    padding: 25px;
    margin-bottom: 30px;
    box-shadow: 0 2px 8px rgba(230, 57, 70, 0.1);
}

.district-info-card h2 {
    font-size: 20px;
    font-weight: 600;
    color: #333;
    margin: 0 0 5px 0;
    padding-bottom: 10px;
    border-bottom: 2px solid #667eea;
}

.info-subtitle {
    font-size: 12px;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 0;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.info-item {
    display: flex;
    flex-direction: column;
}

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

.info-value {
    font-size: 16px;
    font-weight: 500;
    color: #333;
    padding: 10px;
    background: #f9f9f9;
    border-left: 3px solid #667eea;
    border-radius: 4px;
    word-break: break-word;
}

/* District Data Form */
.district-data-form {
    background: white;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.form-section {
    margin-bottom: 35px;
    padding-bottom: 25px;
    border-bottom: 1px solid #eee;
}

.form-section:last-of-type {
    border-bottom: none;
}

.form-section h3 {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin: 0 0 5px 0;
    padding-bottom: 10px;
    border-bottom: 2px solid #667eea;
    display: inline-block;
}

.section-subtitle {
    font-size: 13px;
    color: #999;
    margin: 5px 0 20px 0;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-size: 13px;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.form-group input[type="number"],
.form-group input[type="text"] {
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    font-family: 'Courier New', monospace;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.form-group input[type="number"]:focus,
.form-group input[type="text"]:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
    background: #f8f9ff;
}

.input-with-unit {
    display: flex;
    align-items: stretch;
    gap: 0;
    width: 100%;
}

.currency {
    padding: 10px 8px;
    background-color: #f0f0f0;
    border: 1px solid #d0d0d0;
    border-right: none;
    border-radius: 4px 0 0 4px;
    font-weight: 600;
    color: #666;
    font-size: 14px;
    display: flex;
    align-items: center;
    white-space: nowrap;
    min-width: 30px;
}

.input-with-unit input {
    flex: 1;
    min-width: 120px;
    border: 1px solid #d0d0d0;
    border-left: none;
    border-radius: 0 4px 4px 0;
    padding: 10px 12px;
    font-size: 14px;
}

.help-text {
    font-size: 12px;
    color: #999;
    margin: 5px 0 0 0;
    font-style: italic;
}

/* Funds Container for Prior Year */
.funds-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.fund-entry-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    padding: 15px;
    background: #f9f9f9;
    border: 1px solid #eee;
    border-radius: 6px;
    border-left: 3px solid #667eea;
}

.fund-entry-row .form-group {
    margin-bottom: 0;
}

.fund-entry-row label {
    font-size: 12px;
}

.fund-entry-row input {
    font-size: 13px;
}

/* Bond Entry Form Styling */
.bond-entry-form {
    background: #f9f9f9;
    padding: 20px;
    border: 1px solid #eee;
    border-radius: 6px;
    border-left: 3px solid #667eea;
}

.entry-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 15px;
}

.entry-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.entry-field label {
    font-size: 13px;
    font-weight: 600;
    color: #333;
}

.entry-field input,
.entry-field select {
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 13px;
    font-family: Arial, sans-serif;
    transition: border-color 0.3s;
}

.entry-field input:focus,
.entry-field select:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.entry-field input[readonly],
.entry-field input[disabled] {
    background-color: #f5f5f5;
    cursor: not-allowed;
    color: #999;
}

.entry-actions {
    display: flex;
    gap: 12px;
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid #eee;
}

.entry-actions .btn-primary {
    padding: 10px 24px;
    font-size: 14px;
    font-weight: 600;
    background: #667eea;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s;
}

.entry-actions .btn-primary:hover {
    background: #5568d3;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

/* Form Actions */
.form-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-start;
    margin-top: 30px;
    padding-top: 20px;
}

.form-actions button {
    padding: 12px 24px;
    font-size: 14px;
    font-weight: 600;
    border-radius: 4px;
    border: none;
    cursor: pointer;
    transition: all 0.3s;
}

.form-actions .btn-primary {
    background: #667eea;
    color: white;
}

.form-actions .btn-primary:hover {
    background: #5568d3;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.form-actions .btn-secondary {
    background: #f5f5f5;
    color: #333;
    border: 1px solid #ddd;
}

.form-actions .btn-secondary:hover {
    background: #e8e8e8;
}

/* Status Message */
.status-message {
    margin-top: 20px;
    padding: 15px;
    border-radius: 4px;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.status-message.success {
    background: #e8f5e9;
    color: #2e7d32;
    border-left: 4px solid #4caf50;
}

.status-message.error {
    background: #fff3e0;
    color: #e65100;
    border-left: 4px solid #ff9800;
}

.status-message.info {
    background: #e3f2fd;
    color: #1565c0;
    border-left: 4px solid #2196f3;
}

/* Instructions Card */
.instructions-card {
    background: #f8f9ff;
    border: 2px solid #667eea;
    border-radius: 8px;
    padding: 25px;
    margin-top: 30px;
}

.instructions-card h3 {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin: 0 0 15px 0;
    padding-bottom: 10px;
    border-bottom: 2px solid #667eea;
}

.instructions-card ol {
    margin: 0;
    padding-left: 25px;
    line-height: 1.8;
}

.instructions-card li {
    margin-bottom: 12px;
    font-size: 13px;
    color: #555;
}

.instructions-card strong {
    color: #333;
    font-weight: 600;
}

/* ============================================
   BOND-DEBT MANAGEMENT STYLES
   ============================================ */

/* Color scheme: Navy Blue (#1a3a52) and Red (#E63946) */

.bond-section-1 {
    background: white;
    border: 3px solid #1a3a52;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 30px;
    box-shadow: 0 4px 12px rgba(26, 58, 82, 0.15);
}

.bond-section-1 .section-header {
    margin-bottom: 12px;
    padding-bottom: 10px;
    border-bottom: 3px solid #E63946;
}

.bond-section-1 .section-header h3 {
    color: #1a3a52;
    font-size: 16px;
    font-weight: 600;
    margin: 0;
}

.bond-input-form {
    background: #f5f8fa;
    padding: 12px;
    border-radius: 6px;
    border-left: 5px solid #E63946;
}

.bond-input-form .form-row {
    display: grid;
    grid-template-columns: auto auto auto 1fr;
    gap: 12px;
    margin-bottom: 0;
    align-items: flex-end;
}

.bond-input-form .form-group {
    display: flex;
    flex-direction: column;
}

.bond-input-form label {
    font-weight: 600;
    color: #1a3a52;
    margin-bottom: 4px;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.bond-input-form input,
.bond-input-form select {
    padding: 8px 10px;
    border: 2px solid #d0d0d0;
    border-radius: 4px;
    font-size: 12px;
    font-family: 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    transition: all 0.3s ease;
}

.bond-input-form input:focus,
.bond-input-form select:focus {
    outline: none;
    border-color: #E63946;
    box-shadow: 0 0 0 3px rgba(230, 57, 70, 0.1);
    background-color: #fff;
}

.currency-input {
    display: flex;
    align-items: center;
    background: white;
    border: 2px solid #d0d0d0;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.currency-input:focus-within {
    border-color: #E63946;
    box-shadow: 0 0 0 3px rgba(230, 57, 70, 0.1);
}

.currency-symbol {
    padding: 0 12px;
    color: #1a3a52;
    font-weight: 600;
    font-size: 14px;
}

.currency-input input {
    flex: 1;
    border: none;
    padding: 12px;
    padding-left: 0;
    font-size: 13px;
    background: transparent;
}

.currency-input input:focus {
    outline: none;
    box-shadow: none;
}

.button-group {
    display: flex;
    gap: 8px;
    align-self: flex-end;
}

.btn-add-bond {
    background: #E63946;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 5px;
    white-space: nowrap;
}

.btn-add-bond:hover {
    background: #d62828;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(230, 57, 70, 0.3);
}

.btn-add-bond:active {
    transform: translateY(0);
}

/* Bond Table Container (inside Section 1) */
.bond-table-container {
    margin-top: 20px;
    padding-top: 15px;
    border-top: 2px solid #e0e0e0;
}

/* Section 2: Bond Summary Table */
.bond-section-2 {
    background: white;
    border: 3px solid #1a3a52;
    border-radius: 8px;
    padding: 25px;
    box-shadow: 0 4px 12px rgba(26, 58, 82, 0.15);
}

.bond-section-2 .section-header {
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 3px solid #E63946;
}

.bond-section-2 .section-header h3 {
    color: #1a3a52;
    font-size: 18px;
    font-weight: 600;
    margin: 0;
}

.bond-summary-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 10px;
}

.bond-summary-table thead {
    background: #f0f0f0;
    color: #1a3a52;
}

.bond-summary-table th {
    padding: 12px 15px;
    text-align: left;
    font-weight: 600;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 3px solid #E63946;
}

.bond-summary-table tbody tr {
    border-bottom: 1px solid #e0e0e0;
    transition: background-color 0.2s ease;
}

.bond-summary-table tbody tr:hover {
    background-color: #f5f8fa;
}

.bond-summary-table td {
    padding: 12px 15px;
    font-size: 13px;
    color: #333;
}

.bond-summary-table td:nth-child(2) {
    text-align: right;
    font-weight: 500;
    color: #1a3a52;
}

.empty-message {
    text-align: center;
    color: #999;
    padding: 30px;
    font-size: 13px;
}

/* Action buttons in table */
.btn-delete-bond {
    background: #E63946;
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 3px;
    font-size: 11px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-delete-bond:hover {
    background: #d62828;
    transform: scale(1.05);
}

/* Responsive design */
@media (max-width: 768px) {
    .bond-section-1,
    .bond-section-2 {
        padding: 15px;
        border-width: 2px;
    }

    .bond-input-form .form-row {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .bond-summary-table th,
    .bond-summary-table td {
        padding: 10px;
        font-size: 12px;
    }
}

/* Prior Year Fund Comparison Report Styling */
#priorYearReportSection {
    margin-top: 30px;
    padding: 20px;
    background: #f9f9f9;
    border-radius: 6px;
    border: 1px solid #e0e0e0;
}

#priorYearReportSection .section {
    background: white;
    padding: 20px;
    border-radius: 6px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

#priorYearReportSection h4 {
    color: #1a2a3a;
    margin-top: 0;
    margin-bottom: 20px;
    font-size: 18px;
    font-weight: 600;
    border-bottom: 2px solid #E63946;
    padding-bottom: 10px;
}

.report-preview {
    margin: 20px 0;
    overflow-x: auto;
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    font-size: 14px;
    background: white;
}

.comparison-table thead {
    background: linear-gradient(135deg, #1a2a3a 0%, #2d3e50 100%);
    color: white;
}

.comparison-table th {
    padding: 15px 12px;
    text-align: left;
    font-weight: 600;
    border: 1px solid #1a2a3a;
    white-space: nowrap;
}

.comparison-table td {
    padding: 12px;
    border: 1px solid #e0e0e0;
    text-align: right;
}

.comparison-table td:first-child {
    text-align: left;
    font-weight: 500;
    color: #1a2a3a;
}

.comparison-table tbody tr {
    transition: all 0.2s ease;
    background: white;
}

.comparison-table tbody tr:hover {
    background: #f0f8ff;
}

.comparison-table tbody tr:nth-child(even) {
    background: #fafafa;
}

.comparison-table tbody tr:nth-child(even):hover {
    background: #eef5ff;
}

.comparison-table tfoot {
    background: #f0f0f0;
    font-weight: 600;
}

.comparison-table tfoot tr {
    border-top: 2px solid #1a2a3a;
    border-bottom: 2px solid #1a2a3a;
}

.comparison-table tfoot td {
    padding: 15px 12px;
    border: 1px solid #999;
}

/* Format currency values */
.comparison-table .currency {
    font-family: 'Courier New', monospace;
    font-weight: 500;
}

/* Highlight positive and negative differences */
.comparison-table .positive-diff {
    color: #059669;
    font-weight: 600;
}

.comparison-table .negative-diff {
    color: #E63946;
    font-weight: 600;
}

.comparison-table .neutral-diff {
    color: #6b7280;
}

.report-actions {
    display: flex;
    gap: 12px;
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid #e0e0e0;
}

.report-actions button {
    flex: 1;
    padding: 12px 16px;
    font-size: 14px;
    font-weight: 600;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.report-actions .btn-primary {
    background: #1a2a3a;
    color: white;
}

.report-actions .btn-primary:hover {
    background: #0d1520;
    box-shadow: 0 4px 8px rgba(26, 42, 58, 0.3);
}

.report-actions .btn-secondary {
    background: #e8e8e8;
    color: #1a2a3a;
}

.report-actions .btn-secondary:hover {
    background: #d0d0d0;
}

.report-actions button:active {
    transform: scale(0.98);
}

/* Print styles for Prior Year Report */
@media print {
    #priorYearReportSection {
        margin: 0;
        padding: 0;
        background: white;
        border: none;
        box-shadow: none;
    }

    #priorYearReportSection .section {
        padding: 0;
        box-shadow: none;
        background: white;
    }

    .report-actions {
        display: none;
    }

    .comparison-table {
        margin: 20px 0;
        page-break-inside: avoid;
    }

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

/* ===== STAFF SPREADSHEET STYLING ===== */

/* Instructions Warning Box */
.staff-instructions {
    background: #fff3cd;
    border-left: 4px solid #ffc107;
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 4px;
    color: #856404;
    font-size: 13px;
    line-height: 1.6;
}

/* Spreadsheet Container */
.staff-spreadsheet-container {
    overflow-x: auto;
    margin: 20px 0;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: white;
    -webkit-overflow-scrolling: touch;
}

/* Spreadsheet Table */
.staff-spreadsheet {
    width: 100%;
    border-collapse: collapse;
    font-size: 11px;
}

.staff-spreadsheet thead {
    background: #e8e8e8;
    color: #1a2a3a;
    position: sticky;
    top: 0;
    z-index: 10;
}

.staff-spreadsheet th {
    padding: 10px;
    text-align: left;
    font-weight: 600;
    border-bottom: 2px solid #1a2a3a;
    white-space: nowrap;
    color: #1a2a3a;
}

.staff-spreadsheet tbody tr {
    border-bottom: 1px solid #e0e0e0;
}

.staff-spreadsheet tbody tr:hover {
    background: #f5f5f5;
}

.staff-spreadsheet td {
    padding: 6px;
    border: 1px solid #e0e0e0;
    height: 38px;
}

/* Input Fields in Spreadsheet */
.staff-spreadsheet input,
.staff-spreadsheet select {
    width: 100%;
    padding: 4px;
    border: 1px solid #ccc;
    border-radius: 2px;
    font-size: 11px;
    font-family: inherit;
    box-sizing: border-box;
}

.staff-spreadsheet input:focus,
.staff-spreadsheet select:focus {
    outline: none;
    border-color: #1a2a3a;
    box-shadow: 0 0 3px rgba(26, 42, 58, 0.3);
    background: #fffbf0;
}

/* Calculated Fields (Read-Only) */
.staff-spreadsheet .calculated {
    background: #f9f9f9;
    text-align: right;
    font-family: 'Courier New', monospace;
    color: #1a2a3a;
    font-weight: 500;
    padding: 6px 8px;
}

/* Numeric Alignment */
.staff-spreadsheet .numeric {
    text-align: right;
}

/* FTE Column Input */
.staff-spreadsheet .fte-input {
    min-width: 70px;
    padding: 6px 8px;
    font-size: 12px;
    font-weight: 500;
}

/* Delete Button */
.staff-spreadsheet .delete-btn {
    background: #E63946;
    color: white;
    border: none;
    padding: 4px 8px;
    border-radius: 2px;
    cursor: pointer;
    font-size: 11px;
    transition: all 0.2s;
    white-space: nowrap;
    font-weight: 500;
}

.staff-spreadsheet .delete-btn:hover {
    background: #d62828;
    box-shadow: 0 2px 4px rgba(230, 57, 70, 0.3);
}

.staff-spreadsheet .delete-btn:active {
    transform: scale(0.98);
}

/* Saved Staff Table Container */
.staff-saved-container {
    overflow-x: auto;
    margin: 20px 0;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: white;
    -webkit-overflow-scrolling: touch;
}

/* Saved Staff Table */
.staff-saved-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 12px;
}

.staff-saved-table thead {
    background: #f0f0f0;
    color: #1a2a3a;
    position: sticky;
    top: 0;
    z-index: 10;
}

.staff-saved-table th {
    padding: 12px;
    text-align: left;
    font-weight: 600;
    border-bottom: 2px solid #1a2a3a;
    white-space: nowrap;
    color: #1a2a3a;
}

.staff-saved-table tbody tr {
    border-bottom: 1px solid #e0e0e0;
}

.staff-saved-table tbody tr:hover {
    background: #f9f9f9;
}

.staff-saved-table td {
    padding: 10px 12px;
    border: 1px solid #e0e0e0;
}

.staff-saved-table .numeric {
    text-align: right;
    font-family: 'Courier New', monospace;
}

/* Action Buttons in Saved Staff Table */
.staff-saved-table .action-btn {
    padding: 6px 12px;
    border: none;
    border-radius: 3px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 500;
    transition: all 0.2s;
    margin-right: 6px;
    white-space: nowrap;
}

.staff-saved-table .edit-btn {
    background: #1976d2;
    color: white;
}

.staff-saved-table .edit-btn:hover {
    background: #1565c0;
    box-shadow: 0 2px 4px rgba(25, 118, 210, 0.3);
}

.staff-saved-table .delete-btn {
    background: #E63946;
    color: white;
}

.staff-saved-table .delete-btn:hover {
    background: #d62828;
    box-shadow: 0 2px 4px rgba(230, 57, 70, 0.3);
}

.staff-saved-table .action-btn:active {
    transform: scale(0.98);
}

/* Prior Year Budgeted Expenditures Table */
.prior-year-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
    margin-top: 15px;
    margin-bottom: 20px;
    border: 2px solid #4a7ba7;
    display: table;
    table-layout: auto;
}

.prior-year-table thead {
    background: #4a7ba7;
    color: white;
}

.prior-year-table th {
    padding: 12px 15px;
    text-align: left;
    font-weight: 600;
    border-bottom: 2px solid #2d5a8c;
}

.prior-year-table tbody {
    display: table-row-group;
}

.prior-year-table tbody tr {
    display: table-row;
    border-bottom: 1px solid #d0e4f0;
    background: #f5fafb;
}

.prior-year-table tbody tr:hover {
    background: #e6f0f5;
}

.prior-year-table td {
    padding: 12px 15px;
    border: 1px solid #d0e4f0;
    vertical-align: middle;
}

.fund-name-cell {
    width: 50%;
}

.budget-amount-cell {
    width: 50%;
}

.prior-year-table .input-with-unit {
    display: flex;
    align-items: stretch;
    gap: 0;
    width: 100%;
}

.prior-year-table .currency {
    padding: 8px 6px;
    background-color: #f0f0f0;
    border: 1px solid #d0d0d0;
    border-right: none;
    border-radius: 4px 0 0 4px;
    font-weight: 500;
    color: #666;
    font-size: 12px;
    display: flex;
    align-items: center;
    white-space: nowrap;
    min-width: 25px;
}

.prior-year-table input[type="number"] {
    flex: 1;
    min-width: 100px;
    padding: 8px 8px;
    border: 1px solid #ddd;
    border-left: none;
    border-radius: 0 4px 4px 0;
    font-size: 13px;
}

.prior-year-table input[type="number"]:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 2px rgba(102, 126, 234, 0.1);
}

/* Prior Year Fund Name Labels */
.fund-name-label {
    color: #001f5c !important;
    text-decoration: none !important;
    cursor: default !important;
}

.fund-name-label:hover {
    color: #001f5c !important;
    text-decoration: none !important;
}

/* Add Staff Button */
#addStaffRowBtn {
    margin-bottom: 20px;
    margin-top: 10px;
}

/* Staff Controls */
.staff-controls {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.staff-controls button {
    flex: 1;
    padding: 10px 16px;
    font-size: 13px;
    border-radius: 4px;
}

/* ===== END STAFF SPREADSHEET STYLING ===== */

/* ===== BUILDINGS MANAGEMENT STYLING ===== */

/* Buildings Management Section - Top (above district data) */
.buildings-management-section-top {
    background: white;
    padding: 25px;
    margin-bottom: 30px;
    border: 3px solid #1a2a3a;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(26, 42, 58, 0.1);
}

.buildings-management-section-top h3 {
    color: #1a2a3a;
    margin-top: 0;
    margin-bottom: 10px;
    font-size: 20px;
    font-weight: 600;
    border-bottom: 2px solid #1a2a3a;
    padding-bottom: 10px;
}

.buildings-management-section-top .section-subtitle {
    color: #666;
    margin-bottom: 20px;
    font-size: 14px;
    line-height: 1.5;
}

.buildings-management-section {
    background: white;
    padding: 20px;
    margin-top: 30px;
    border: 1px solid #ddd;
    border-radius: 6px;
}

.buildings-management-section h3 {
    color: #1a2a3a;
    margin-top: 0;
    margin-bottom: 10px;
    font-size: 18px;
    font-weight: 600;
}

.buildings-management-section .section-subtitle {
    color: #666;
    margin-bottom: 20px;
    font-size: 13px;
}

/* Buildings Entry Form */
.buildings-entry-form {
    background: #f9f9f9;
    padding: 20px;
    border-radius: 6px;
    margin-bottom: 30px;
    border: 1px solid #e0e0e0;
}

.buildings-entry-form .form-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-bottom: 15px;
}

.buildings-entry-form .form-group {
    display: flex;
    flex-direction: column;
}

.buildings-entry-form label {
    font-weight: 500;
    margin-bottom: 5px;
    color: #333;
    font-size: 13px;
}

.buildings-entry-form input,
.buildings-entry-form select {
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 13px;
    font-family: inherit;
    background: white;
}

.buildings-entry-form input:focus,
.buildings-entry-form select:focus {
    outline: none;
    border-color: #1a2a3a;
    box-shadow: 0 0 3px rgba(26, 42, 58, 0.3);
    background: #fffbf0;
}

/* Validation Message */
.validation-message {
    font-size: 12px;
    margin-top: 4px;
    display: none;
    font-weight: 500;
}

/* Buildings Entry Form Buttons */
.buildings-entry-form .button-group {
    display: flex;
    gap: 10px;
}

.buildings-entry-form .button-group button {
    flex: 1;
    padding: 10px 16px;
    font-size: 13px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s;
    font-weight: 500;
}

/* Buildings List */
.buildings-list {
    background: white;
    padding: 20px;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
}

.buildings-list h4 {
    color: #1a2a3a;
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 15px;
    font-weight: 600;
}

/* Simple Buildings List with Sort */
.buildings-header {
    margin-bottom: 15px;
}

.buildings-header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0;
}

.buildings-header-label {
    font-weight: 600;
    color: #333;
    font-size: 14px;
}

.sort-button {
    background-color: white;
    border: 1px solid #ddd;
    padding: 6px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    color: #333;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 6px;
}

.sort-button:hover {
    background-color: #f0f0f0;
    border-color: #999;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.sort-button:active {
    transform: scale(0.98);
}

.sort-arrow {
    display: inline-block;
    font-size: 12px;
    font-weight: bold;
}

.buildings-simple-list {
    list-style: none;
    padding: 0;
    margin: 0;
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    overflow: hidden;
}

.building-item-simple {
    padding: 12px 15px;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.building-item-simple:last-child {
    border-bottom: none;
}

.building-item-simple:hover {
    background-color: #f9f9f9;
}

.building-code-display {
    background-color: #f0f0f0;
    padding: 2px 8px;
    border-radius: 3px;
    font-family: 'Courier New', monospace;
    font-size: 12px;
    color: #666;
}

/* Buildings Table */
.buildings-table-container {
    overflow-x: auto;
    width: 100%;
}

.buildings-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.buildings-table thead {
    background: #f5f5f5;
    border-bottom: 2px solid #ddd;
}

.buildings-table th {
    padding: 12px;
    text-align: left;
    font-weight: 600;
    color: #333;
}

.buildings-table tbody tr {
    border-bottom: 1px solid #e0e0e0;
    transition: background 0.2s;
}

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

.buildings-table td {
    padding: 12px;
}

/* Category Badge */
.category-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 3px;
    font-size: 12px;
    font-weight: 500;
    white-space: nowrap;
}

.category-badge.category-elementary {
    background: #e3f2fd;
    color: #1565c0;
}

.category-badge.category-middle-school {
    background: #f3e5f5;
    color: #6a1b9a;
}

.category-badge.category-high-school {
    background: #fff3e0;
    color: #e65100;
}

.category-badge.category-other {
    background: #f5f5f5;
    color: #616161;
}

/* Delete Button in Buildings Table */
.buildings-table .delete-btn {
    background: #E63946;
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 3px;
    cursor: pointer;
    font-size: 12px;
    transition: all 0.2s;
    font-weight: 500;
}

.buildings-table .delete-btn:hover {
    background: #d62828;
    box-shadow: 0 2px 4px rgba(230, 57, 70, 0.3);
}

.buildings-table .delete-btn:active {
    transform: scale(0.98);
}

/* No Buildings Message */
.no-data {
    color: #999;
    text-align: center;
    padding: 20px;
    font-style: italic;
}

/* ===== END BUILDINGS MANAGEMENT STYLING ===== */

/* Responsive Design */
@media (max-width: 768px) {
    .district-data-form {
        padding: 20px;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .fund-entry-row {
        grid-template-columns: 1fr;
    }

    .form-actions {
        flex-direction: column;
    }

    .form-actions button {
        width: 100%;
    }

    .info-grid {
        grid-template-columns: 1fr;
    }

    /* Comparison table responsive */
    .report-preview {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .comparison-table {
        font-size: 12px;
        min-width: 600px;
    }

    .comparison-table th,
    .comparison-table td {
        padding: 10px 8px;
    }

    .report-actions {
        flex-direction: column;
    }

    .report-actions button {
        width: 100%;
    }

    #priorYearReportSection {
        padding: 15px;
    }

    #priorYearReportSection .section {
        padding: 15px;
    }

    #priorYearReportSection h4 {
        font-size: 16px;
    }

    /* Staff Spreadsheet Responsive */
    .staff-spreadsheet-container {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .staff-spreadsheet {
        min-width: 1400px;
    }

    .staff-spreadsheet th,
    .staff-spreadsheet td {
        padding: 5px;
        font-size: 10px;
        height: 35px;
    }

    .staff-instructions {
        font-size: 12px;
        padding: 12px;
    }

    #addStaffRowBtn {
        width: 100%;
    }

    .staff-controls {
        flex-direction: column;
    }

    .staff-controls button {
        width: 100%;
    }

    /* Buildings Management Responsive */
    .buildings-entry-form .form-row {
        grid-template-columns: 1fr;
    }

    .buildings-entry-form .button-group {
        flex-direction: column;
    }

    .buildings-entry-form .button-group button {
        width: 100%;
    }

    .buildings-table {
        font-size: 12px;
    }

    .buildings-table th,
    .buildings-table td {
        padding: 8px;
    }

    .buildings-management-section {
        padding: 15px;
    }

    .buildings-entry-form {
        padding: 15px;
    }

    .buildings-list {
        padding: 15px;
    }

    .csv-instructions {
        padding: 15px;
    }

    .csv-columns-list {
        padding: 15px 0;
    }
}

/* ============================================
   CSV UPLOAD INSTRUCTIONS STYLING
   ============================================ */

.csv-instructions {
    background: #f0f4f8;
    padding: 20px;
    border-left: 4px solid #1a2a3a;
    border-radius: 4px;
    margin-bottom: 20px;
}

.csv-instructions .help-text {
    margin: 0 0 15px 0;
    color: #333;
    line-height: 1.6;
}

.csv-columns-list {
    background: white;
    padding: 15px 20px;
    border-radius: 4px;
    margin: 15px 0;
    font-size: 13px;
    line-height: 1.8;
}

.csv-columns-list ol {
    margin: 0;
    padding-left: 25px;
}

.csv-columns-list li {
    margin-bottom: 8px;
    color: #333;
}

.csv-columns-list strong {
    color: #1a2a3a;
    font-weight: 600;
}

/* ============================================
   LOGOUT CONFIRMATION MODAL STYLING
   ============================================ */

/* Modal Content */
.modal-content {
    background: white;
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    max-width: 500px;
    width: 90%;
    padding: 40px;
    position: relative;
    animation: slideUp 0.3s ease;
}

.modal-content.modal-large {
    max-width: 550px;
}

@keyframes slideUp {
    from {
        transform: translateY(20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Modal Close Button */
.modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 28px;
    color: #999;
    cursor: pointer;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s;
}

.modal-close:hover {
    color: #333;
}

/* Modal Title */
.modal-content h2 {
    color: #1a2a3a;
    margin: 0 0 15px 0;
    font-size: 22px;
    font-weight: 600;
}

/* Modal Description */
.modal-description {
    color: #666;
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 25px;
}

/* Data Save Checklist */
.data-save-checklist {
    background: #f9f9f9;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    padding: 20px;
    margin-bottom: 25px;
}

.checklist-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 15px;
    font-size: 14px;
    color: #333;
    line-height: 1.5;
}

.checklist-item:last-child {
    margin-bottom: 0;
}

.check-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    background: #e8f5e9;
    color: #2e7d32;
    border-radius: 50%;
    margin-right: 12px;
    flex-shrink: 0;
    font-size: 14px;
    font-weight: 600;
}

/* Save Status Message */
.save-status {
    padding: 15px;
    border-radius: 6px;
    margin-bottom: 20px;
    font-size: 14px;
    font-weight: 500;
    display: none;
    text-align: center;
}

.save-status.saving {
    background: #e3f2fd;
    color: #1565c0;
    border-left: 4px solid #2196f3;
}

.save-status.success {
    background: #e8f5e9;
    color: #2e7d32;
    border-left: 4px solid #4caf50;
}

.save-status.error {
    background: #fff3e0;
    color: #e65100;
    border-left: 4px solid #ff9800;
}

/* Modal Action Buttons */
.modal-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
}

.modal-actions button {
    padding: 12px 24px;
    font-size: 14px;
    font-weight: 600;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s;
    min-width: 120px;
}

.modal-actions .btn-primary {
    background: #1a2a3a;
    color: white;
}

.modal-actions .btn-primary:hover:not(:disabled) {
    background: #0d1520;
    box-shadow: 0 4px 12px rgba(26, 42, 58, 0.3);
}

.modal-actions .btn-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.modal-actions .btn-secondary {
    background: #f0f0f0;
    color: #333;
    border: 1px solid #ddd;
}

.modal-actions .btn-secondary:hover {
    background: #e0e0e0;
}

/* Responsive Modal */
@media (max-width: 600px) {
    .modal-content {
        width: 95%;
        padding: 30px;
    }

    .modal-content h2 {
        font-size: 20px;
    }

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

    .modal-actions button {
        width: 100%;
        min-width: auto;
    }

    .data-save-checklist {
        padding: 15px;
    }

    .checklist-item {
        font-size: 13px;
    }
}

/* ============================================
   Notification Styles & Animations
   ============================================ */

.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 16px 24px;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    font-size: 14px;
    z-index: 10000;
    max-width: 400px;
}

.notification-success {
    background-color: #4CAF50;
    color: white;
}

.notification-error {
    background-color: #f44336;
    color: white;
}

.notification-info {
    background-color: #2196F3;
    color: white;
}

@keyframes slideIn {
    from {
        transform: translateX(400px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOut {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(400px);
        opacity: 0;
    }
}

/* Save All Toast Notification */
.save-toast {
    position: fixed;
    bottom: 20px;
    right: 20px;
    padding: 14px 20px;
    border-radius: 4px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    font-size: 14px;
    font-weight: 500;
    z-index: 10001;
    max-width: 400px;
    animation: slideIn 0.3s ease-in-out;
}

.save-toast.saving {
    background-color: #2196F3;
    color: white;
}

.save-toast.success {
    background-color: #4CAF50;
    color: white;
}

.save-toast.error {
    background-color: #f44336;
    color: white;
}

/* ============================================
   Fund Summary Report Styling
   ============================================ */

.fund-summary-report {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    font-size: 14px;
    background-color: white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.fund-summary-report th {
    background-color: #e3f2fd;
    color: #1976d2;
    font-weight: bold;
    padding: 14px;
    text-align: right;
    border: 1px solid #90caf9;
}

.fund-summary-report th:first-child {
    text-align: left;
    background-color: #f5f5f5;
    color: #333;
}

.fund-summary-report td {
    padding: 12px 14px;
    border: 1px solid #e0e0e0;
    text-align: right;
}

.fund-summary-report td:first-child {
    text-align: left;
    font-weight: 500;
    background-color: #fafafa;
    color: #333;
}

.fund-summary-report tr:nth-child(1) {
    background-color: #f9f9f9;
}

.fund-summary-report tr:nth-child(2) {
    background-color: #fff3e0;
}

.fund-summary-report tr:nth-child(3) {
    background-color: #e8f5e9;
    font-weight: bold;
}

.fund-summary-buttons {
    margin-top: 20px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.fund-summary-buttons button {
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.fund-summary-buttons button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.fund-summary-buttons button:active {
    transform: translateY(0);
}

/* Print styling for Fund Summary Report */
@media print {
    .fund-summary-report {
        page-break-inside: avoid;
    }

    .fund-summary-report th {
        background-color: #e3f2fd !important;
        color: #1976d2 !important;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }

    .fund-summary-report tr:nth-child(2) {
        background-color: #fff3e0 !important;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }

    .fund-summary-report tr:nth-child(3) {
        background-color: #e8f5e9 !important;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }

    .fund-summary-buttons {
        display: none;
    }
}

/* ============================================
   Buildings Reorder Styling
   ============================================ */


/* ============================================
   Special Grants Table Styling
   ============================================ */

.special-grants-summary {
    background-color: #f5f5f5;
    padding: 15px;
    border-radius: 4px;
    margin-bottom: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-left: 4px solid #1a3a52;
}

.special-grants-summary p {
    margin: 0;
    font-size: 16px;
    color: #333;
}

.special-grants-summary strong {
    color: #E63946;
    font-size: 18px;
}

#toggleSpecialGrants {
    background-color: #1a3a52;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 500;
    transition: background-color 0.2s;
}

#toggleSpecialGrants:hover {
    background-color: #0f2741;
}

.special-grants-table-wrapper {
    margin-top: 15px;
    max-height: 600px;
    overflow-y: auto;
    border: 1px solid #ddd;
    border-radius: 4px;
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        max-height: 0;
    }
    to {
        opacity: 1;
        max-height: 600px;
    }
}

.special-grants-table {
    width: 100%;
    border-collapse: collapse;
    background-color: white;
}

.special-grants-table thead {
    background-color: #1a3a52;
    color: white;
    position: sticky;
    top: 0;
}

.special-grants-table th {
    padding: 12px 15px;
    text-align: left;
    font-weight: 600;
    border-bottom: 2px solid #0f2741;
}

.special-grants-table th:last-child {
    text-align: right;
}

.special-grants-table tbody tr {
    border-bottom: 1px solid #e0e0e0;
    transition: background-color 0.2s;
}

.special-grants-table tbody tr:hover {
    background-color: #f9f9f9;
}

.special-grants-table tbody tr:nth-child(odd) {
    background-color: #ffffff;
}

.special-grants-table tbody tr:nth-child(even) {
    background-color: #f8f8f8;
}

.grant-name-cell {
    padding: 10px 15px;
    color: #333;
    font-size: 14px;
}

.grant-amount-cell {
    padding: 10px 15px;
    text-align: right;
}

.grant-amount-cell input {
    width: 150px;
    text-align: right;
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 3px;
    font-size: 14px;
}

.grant-amount-cell input:focus {
    outline: none;
    border-color: #1a3a52;
    box-shadow: 0 0 5px rgba(26, 58, 82, 0.2);
}

/* Print styles for special grants table */
@media print {
    .special-grants-summary {
        background-color: white !important;
        border-left: 4px solid #1a3a52 !important;
        page-break-inside: avoid;
    }

    .special-grants-table-wrapper {
        max-height: none;
        overflow: visible;
        border: 1px solid #ddd;
    }

    .special-grants-table {
        width: 100%;
        page-break-inside: avoid;
    }

    .special-grants-table thead {
        background-color: #1a3a52 !important;
        color: white !important;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }

    .special-grants-table tbody tr {
        page-break-inside: avoid;
    }

    .special-grants-table tbody tr:nth-child(even) {
        background-color: #f8f8f8 !important;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }

    .grant-amount-cell input {
        border: none;
        background: transparent;
        padding: 0;
    }
}

/* ============================================
   General Fund Lid Exclusions Styling
   ============================================ */

.lid-exclusions-container {
    background-color: #f9f9f9;
    padding: 20px;
    border-radius: 4px;
    border-left: 4px solid #1a3a52;
    margin: 15px 0;
}

.lid-exclusion-entry {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.lid-exclusion-entry label {
    font-weight: 600;
    color: #333;
    font-size: 15px;
}

.lid-exclusion-entry .input-with-unit {
    display: flex;
    align-items: stretch;
    gap: 0;
    max-width: 300px;
    width: 100%;
}

.lid-exclusion-entry .currency {
    padding: 10px 8px;
    background-color: #f0f0f0;
    border: 1px solid #ccc;
    border-right: none;
    border-radius: 4px 0 0 4px;
    font-weight: 600;
    color: #1a3a52;
    font-size: 16px;
    display: flex;
    align-items: center;
    white-space: nowrap;
    min-width: 30px;
}

.lid-exclusion-entry input[type="number"] {
    flex: 1;
    min-width: 120px;
    padding: 10px 12px;
    border: 1px solid #ccc;
    border-left: none;
    border-radius: 0 4px 4px 0;
    font-size: 14px;
    font-family: 'Courier New', monospace;
}

.lid-exclusion-entry input[type="number"]:focus {
    outline: none;
    border-color: #1a3a52;
    box-shadow: 0 0 5px rgba(26, 58, 82, 0.2);
}

.more-info-link {
    display: inline-flex;
    align-items: center;
    color: #1a3a52;
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    transition: all 0.2s;
    gap: 6px;
}

.more-info-link:hover {
    color: #0f2741;
    text-decoration: underline;
}

.more-info-link::after {
    content: '→';
    font-size: 12px;
}

/* Modal for More Information */
#lidInfoModal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    animation: fadeIn 0.3s ease-out;
}

#lidInfoModal.show {
    display: flex;
    align-items: center;
    justify-content: center;
}

.lid-info-modal-content {
    background-color: white;
    padding: 30px;
    border-radius: 8px;
    max-width: 600px;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.lid-info-modal-content h3 {
    color: #1a3a52;
    margin-top: 0;
    margin-bottom: 15px;
}

.lid-info-modal-content p {
    color: #555;
    line-height: 1.6;
    margin-bottom: 12px;
}

.lid-info-modal-content ul {
    margin-left: 20px;
    color: #555;
    line-height: 1.6;
}

.lid-info-modal-content li {
    margin-bottom: 10px;
}

.lid-info-close-btn {
    background-color: #1a3a52;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
    margin-top: 20px;
    transition: background-color 0.2s;
}

.lid-info-close-btn:hover {
    background-color: #0f2741;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Print styles for Lid Exclusions */
@media print {
    .lid-exclusions-container {
        background-color: white !important;
        border-left: 4px solid #1a3a52 !important;
        page-break-inside: avoid;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }

    .more-info-link {
        display: none;
    }

    #lidInfoModal {
        display: none !important;
    }
}

/* ============================================
   Additional Data Section Styling (LC-2 Page)
   ============================================ */

.additional-data-container {
    background-color: #f5f5f5;
    padding: 20px;
    border-radius: 4px;
    border-left: 4px solid #1a3a52;
    margin: 15px 0;
}

.additional-data-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.additional-data-item {
    background-color: white;
    padding: 15px;
    border-radius: 4px;
    border: 1px solid #e0e0e0;
    transition: all 0.2s;
}

.additional-data-item:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border-color: #1a3a52;
}

.additional-data-item label {
    display: block;
    font-weight: 600;
    color: #333;
    font-size: 14px;
    margin-bottom: 10px;
}

.data-display {
    display: flex;
    align-items: baseline;
    gap: 0;
    margin: 10px 0;
}

.data-display .currency {
    font-weight: 600;
    color: #1a3a52;
    font-size: 16px;
}

.data-display .data-value {
    font-size: 20px;
    font-weight: 700;
    color: #E63946;
    font-family: 'Courier New', monospace;
}

.data-source {
    display: none;
}

/* Print styles for Additional Data */
@media print {
    .additional-data-container {
        background-color: white !important;
        border-left: 4px solid #1a3a52 !important;
        page-break-inside: avoid;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }

    .additional-data-item {
        background-color: white !important;
        border: 1px solid #e0e0e0 !important;
        page-break-inside: avoid;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }

    .data-display .data-value {
        color: #000 !important;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .additional-data-row {
        grid-template-columns: 1fr;
    }
}

/* ============================================
   LC-2 Planning Note Styling
   ============================================ */

.lc2-planning-note {
    background-color: #fff3cd;
    border: 1px solid #ffc107;
    border-left: 4px solid #ff9800;
    padding: 15px;
    border-radius: 4px;
    margin-top: 15px;
}

.lc2-planning-note p {
    margin: 0;
    color: #333;
    font-size: 14px;
    line-height: 1.6;
}

.lc2-planning-note p:first-child {
    margin-bottom: 10px;
    font-weight: 600;
    color: #ff6f00;
}

.lc2-planning-note p strong {
    color: #ff6f00;
    font-weight: 700;
}

/* Print styles for LC-2 Planning Note */
@media print {
    .lc2-planning-note {
        background-color: #f9f9f9 !important;
        border: 1px solid #ddd !important;
        border-left: 4px solid #666 !important;
        page-break-inside: avoid;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }

    .lc2-planning-note p {
        color: #000 !important;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }
}

/* ============================================
   BOND-DEBT MANAGEMENT TAB STYLING
   ============================================ */

/* Bond sections */
.bonds-section {
    background-color: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.bonds-section h3 {
    margin-top: 0;
    margin-bottom: 15px;
    color: #333;
    font-size: 18px;
    font-weight: 600;
    border-bottom: 2px solid #1976d2;
    padding-bottom: 10px;
}

/* Summary grid */
.bonds-summary-section {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
}

.bonds-summary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-top: 15px;
}

.summary-card {
    background-color: #fff;
    border-left: 4px solid #1976d2;
    padding: 15px;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.summary-card label {
    display: block;
    font-weight: 600;
    color: #666;
    margin-bottom: 8px;
    font-size: 13px;
}

.summary-value {
    font-size: 24px;
    font-weight: 700;
    color: #1976d2;
}

/* Bond entry form */
.bond-entry-form {
    background-color: #f9f9f9;
    padding: 8px;
    border-radius: 4px;
    border: 1px solid #e8e8e8;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 8px;
    margin-bottom: 8px;
}

.form-group {
    display: flex;
    flex-direction: column;
    width: 100%;
}

.form-group label {
    font-weight: 500;
    margin-bottom: 3px;
    color: #333;
    font-size: 13px;
}

.form-group input,
.form-group select {
    padding: 8px;
    border: 1px solid #d0d0d0;
    border-radius: 4px;
    font-size: 13px;
    font-family: inherit;
    height: 34px;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: #1976d2;
    box-shadow: 0 0 4px rgba(25, 118, 210, 0.25);
}

.input-with-unit {
    display: flex;
    align-items: stretch;
    gap: 0;
}

.currency {
    padding: 8px 6px;
    background-color: #f0f0f0;
    border: 1px solid #d0d0d0;
    border-right: none;
    border-radius: 4px 0 0 4px;
    font-weight: 600;
    color: #666;
    font-size: 13px;
    display: flex;
    align-items: center;
    white-space: nowrap;
}

.input-with-unit input {
    flex: 1;
    min-width: 120px;
    border-radius: 0 4px 4px 0;
    border-left: none;
    padding: 8px;
    height: 34px;
}

/* Bonds table */
.bonds-table-wrapper {
    overflow-x: auto;
    margin-top: 15px;
}

.bonds-table,
.amortization-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.bonds-table th,
.amortization-table th {
    background-color: #1976d2;
    color: #fff;
    padding: 12px;
    text-align: left;
    font-weight: 600;
    border-bottom: 2px solid #1565c0;
}

.bonds-table td,
.amortization-table td {
    padding: 10px 12px;
    border-bottom: 1px solid #e0e0e0;
}

.bonds-table tbody tr:hover,
.amortization-table tbody tr:hover {
    background-color: #f5f5f5;
}

.bonds-table tbody tr:nth-child(even),
.amortization-table tbody tr:nth-child(even) {
    background-color: #fafafa;
}

/* No data message */
.no-data-message {
    padding: 20px;
    text-align: center;
    color: #999;
    font-style: italic;
    display: none;
}

/* Amortization controls */
.amortization-controls {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-bottom: 15px;
}

.amortization-controls label {
    font-weight: 500;
    color: #333;
}

.amortization-controls select {
    padding: 8px 12px;
    border: 1px solid #d0d0d0;
    border-radius: 4px;
    font-size: 14px;
    min-width: 250px;
}

.amortization-table-wrapper {
    overflow-x: auto;
    margin-top: 15px;
}

/* Import/Export section */
.import-export-controls {
    background-color: #f9f9f9;
    padding: 15px;
    border-radius: 4px;
    border: 1px solid #e8e8e8;
}

.control-group {
    display: flex;
    flex-direction: column;
    margin-bottom: 15px;
}

.control-group:last-child {
    margin-bottom: 0;
}

.control-group label {
    font-weight: 500;
    margin-bottom: 8px;
    color: #333;
    font-size: 14px;
}

.file-input {
    padding: 8px;
    border: 1px solid #d0d0d0;
    border-radius: 4px;
    font-size: 14px;
    margin-bottom: 8px;
}

.control-hint {
    font-size: 12px;
    color: #999;
    margin: 8px 0 0 0;
    font-style: italic;
}

/* Bond actions section */
.bonds-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    background-color: #f0f8ff;
    border: 1px solid #b3d9ff;
}

.btn-large {
    padding: 12px 30px;
    font-size: 16px;
    font-weight: 600;
}

.save-message {
    font-size: 14px;
    padding: 10px 15px;
    border-radius: 4px;
    text-align: center;
    display: none;
}

.save-message.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
    display: block;
}

.save-message.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
    display: block;
}

.save-message.saving {
    background-color: #fff3cd;
    color: #856404;
    border: 1px solid #ffeeba;
    display: block;
}

/* Button styles for bond management */
.btn-small {
    padding: 6px 12px;
    font-size: 12px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.2s ease;
}

.btn-danger {
    background-color: #dc3545;
    color: #fff;
}

.btn-danger:hover {
    background-color: #c82333;
}

.btn-info {
    background-color: #1976d2;
    color: #fff;
    margin-right: 6px;
}

.btn-info:hover {
    background-color: #1565c0;
}

/* Bond Information Display */
.bond-info-display {
    background-color: #f5f5f5;
    border-left: 4px solid #1976d2;
    border-radius: 4px;
    padding: 16px;
    margin: 16px 0;
    display: none;
}

.bond-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
}

.bond-info-item {
    display: flex;
    flex-direction: column;
}

.bond-info-item label {
    font-weight: 600;
    color: #555;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
}

.bond-info-item span {
    font-size: 16px;
    color: #1976d2;
    font-weight: 500;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .bonds-summary-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .amortization-controls {
        flex-direction: column;
        align-items: flex-start;
    }

    .bonds-table,
    .amortization-table {
        font-size: 12px;
    }

    .bonds-table th,
    .amortization-table th {
        padding: 8px;
    }

    .bonds-table td,
    .amortization-table td {
        padding: 8px;
    }
}

/* Compact Import/Export Section */
.bonds-import-export-compact {
    background-color: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 12px 15px;
    margin-top: 20px;
    font-size: 0.95em;
}

.bonds-import-export-compact input[type="file"] {
    border: 1px solid #ccc;
    border-radius: 4px;
    background-color: #fff;
    cursor: pointer;
}

.bonds-import-export-compact button {
    white-space: nowrap;
}

@media (max-width: 900px) {
    .bonds-import-export-compact {
        padding: 10px 12px;
    }

    .bonds-import-export-compact > div {
        gap: 10px !important;
    }

    .bonds-import-export-compact small {
        display: block;
        margin-top: 8px;
        margin-left: 0;
        width: 100%;
    }
}

/* ============================================
   ENHANCED BOND MANAGEMENT STYLING
   ============================================ */

/* Active Bonds Table Styling */
.bonds-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.bonds-table thead {
    background-color: #2c3e50;
    color: white;
}

.bonds-table th {
    padding: 12px;
    text-align: left;
    font-weight: 600;
    border-bottom: 2px solid #34495e;
}

.bonds-table tbody tr {
    border-bottom: 1px solid #ecf0f1;
}

.bonds-table tbody tr:hover {
    background-color: #f8f9fa;
}

.bonds-table td {
    padding: 12px;
    vertical-align: middle;
}

/* Expand Cell Styling */
.expand-cell {
    width: 40px;
    text-align: center;
    padding: 12px 6px;
    cursor: pointer;
    user-select: none;
}

.expand-arrow {
    font-size: 16px;
    cursor: pointer;
    user-select: none;
    transition: transform 0.2s ease;
    display: inline-block;
}

.expand-arrow:hover {
    color: #2980b9;
    transform: scale(1.2);
}

/* Amortization Schedule Row */
.amortization-schedule-row {
    display: none;
}

.amortization-schedule-row.expanded {
    display: table-row;
}

.amortization-cell {
    padding: 0;
    border: none;
    background-color: #f8f9fa;
}

.amortization-details-container {
    padding: 15px;
    background-color: #f8f9fa;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
}

.amortization-details-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 12px;
    margin-bottom: 10px;
}

.amortization-details-table thead {
    background-color: #ecf0f1;
}

.amortization-details-table th {
    padding: 8px;
    text-align: right;
    font-weight: 600;
    border-bottom: 1px solid #bdc3c7;
    font-size: 11px;
}

.amortization-details-table td {
    padding: 6px 8px;
    text-align: right;
    border-bottom: 1px solid #ecf0f1;
    font-family: 'Courier New', monospace;
}

.amortization-details-table td:first-child {
    text-align: left;
}

/* Currency Formatting */
.currency {
    text-align: right;
    font-family: 'Courier New', monospace;
    font-weight: 500;
}

/* Button Styling for Bond Actions */
.btn-sm {
    padding: 6px 10px;
    font-size: 12px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-block;
}

.btn-sm:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

.btn-sm:active {
    transform: translateY(0);
}

/* Delete Button (Red) */
.btn-danger-sm {
    background-color: #e74c3c;
    color: white;
    padding: 6px 10px;
    font-size: 12px;
    border: none;
    border-radius: 3px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.btn-danger-sm:hover {
    background-color: #c0392b;
}

/* View Schedule Link */
.view-schedule-link {
    color: #2980b9;
    cursor: pointer;
    text-decoration: none;
    font-size: 12px;
    padding: 4px 8px;
}

.view-schedule-link:hover {
    text-decoration: underline;
    color: #1a5276;
}

/* No Bonds Message */
.no-data {
    text-align: center;
    padding: 20px;
    color: #7f8c8d;
    font-style: italic;
    background-color: #ecf0f1;
    border-radius: 4px;
    margin-top: 10px;
}

/* Bond Summary Section */
.bond-summary-item {
    display: inline-block;
    margin-right: 30px;
    padding: 10px;
    min-width: 200px;
}

.bond-summary-label {
    font-size: 12px;
    color: #7f8c8d;
    text-transform: uppercase;
    font-weight: 600;
    margin-bottom: 5px;
}

.bond-summary-value {
    font-size: 20px;
    font-weight: bold;
    color: #2c3e50;
}

/* Form Error Display */
.form-error {
    color: #e74c3c;
    font-size: 12px;
    margin-top: 4px;
    margin-left: 2px;
}

.form-field-error {
    border-color: #e74c3c !important;
    background-color: #fadbd8 !important;
}

/* Reports Section Styling */
.bonds-reports-section {
    margin-top: 20px;
    padding: 15px;
    background-color: #ecf0f1;
    border-radius: 4px;
}

.bonds-reports-section h4 {
    margin-bottom: 15px;
    color: #2c3e50;
}

.bonds-reports-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.bonds-reports-buttons button {
    padding: 10px 15px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s ease;
    background-color: #3498db;
    color: white;
}

.bonds-reports-buttons button:hover {
    background-color: #2980b9;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

/* Print styles for bonds */
@media print {
    .bonds-section {
        page-break-inside: avoid;
        border: 1px solid #000;
        box-shadow: none;
    }

    .bond-entry-form,
    .import-export-controls,
    .bonds-import-export-compact,
    .bonds-actions,
    .bonds-reports-section {
        display: none;
    }

    .bonds-table,
    .amortization-table {
        width: 100%;
        border-collapse: collapse;
    }

    .bonds-table th,
    .amortization-table th {
        background-color: #000;
        color: #fff;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }

    .amortization-schedule-row {
        display: table-row !important;
    }

    .expand-cell,
    .expand-arrow {
        display: none;
    }
}
