/* Consistent page layout styles for all pages */

/* Container styles - consistent max-width and centering */
.page-container,
.reconcile-form-container,
.income-form-container,
.expense-form-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1.5rem;
}

/* Grid containers have slightly larger max-width for better data display */
.income-grid-container,
.expense-grid-container,
.reconcile-grid-container,
.general-ledger-container,
.customer-grid-container,
.member-grid-container {
    max-width: 1600px;
    margin: 0 auto;
    padding: 0.75rem;
}

/* Consistent page header styling */
.page-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 1.0rem;
    border-radius: 0.5rem;
    margin-bottom: 0.5rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.page-header h3 {
    color: white;
    font-weight: 600;
    margin-bottom: 0.25rem;
    font-size: 1.75rem;
}

.page-header p {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 0;
    font-size: 1rem;
}

.page-header .text-muted {
    color: rgba(255, 255, 255, 0.8) !important;
}

.page-header .text-white {
    color: white !important;
}

/* Consistent card styling */
.card {
    border: 1px solid #dee2e6;
    margin-bottom: 1.5rem;
    transition: box-shadow 0.3s ease;
}

.card-header {
    padding: 1rem 1.25rem;
    border-bottom: 2px solid rgba(0, 0, 0, 0.1);
}

/* Form section spacing */
.form-section {
    margin-bottom: 1rem;
}

/* Processing overlay for forms */
.processing-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.processing-content {
    text-align: center;
    padding: 2rem;
}

/* Expense summary styling */
.expense-summary,
.income-summary {
    border: 2px solid #e9ecef;
}

/* Action buttons section */
.action-buttons {
    margin-top: 2rem;
}

/* Input styling */
.k-input {
    font-size: 1rem;
}

/* Alert styling */
.alert {
    display: flex;
    align-items: center;
    font-size: 0.9rem;
}

/* Card footer styling */
.card-footer {
    border-top: 1px solid #dee2e6;
    padding: 1rem 1.25rem;
}

/* Form section heading styling */
.form-section h6 {
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 1rem;
}

/* Statement summary styling */
.statement-summary {
    border: 2px solid #e9ecef;
}

/* Transaction summary styling */
.transaction-summary {
    border: 2px solid #dee2e6;
    background-color: #f8f9fa;
    transition: all 0.3s ease;
}

.border-success-summary {
    border-color: #28a745 !important;
    background-color: #d4edda !important;
}

.border-warning-summary {
    border-color: #ffc107 !important;
    background-color: #fff3cd !important;
}

/* Table styling */
.table td {
    padding: 0.5rem 0;
}

/* Status styling for reconcile grids */
.available {
    color: green;
    font-weight: bold !important;
}

.notavailable {
    color: red !important;
    font-weight: bold;
    opacity: 0.7;
}

/* Form check styling */
.form-check {
    padding-left: 0;
}

/* Form label styling */
.form-label.small {
    font-size: 0.875rem;
    font-weight: 600;
    color: #6c757d;
}

/* Responsive adjustments */
@media (max-width: 991.98px) {
    .page-container,
    .income-grid-container,
    .expense-grid-container,
    .reconcile-grid-container,
    .reconcile-form-container,
    .income-form-container,
    .expense-form-container,
    .general-ledger-container,
    .customer-grid-container,
    .member-grid-container {
        padding: 1rem;
    }

    .page-header {
        padding: 1rem;
        margin-bottom: 1rem;
    }

    .page-header h3 {
        font-size: 1.5rem;
    }

    .page-header .d-flex {
        flex-direction: column;
        gap: 1rem;
    }

    .card-body {
        padding: 1rem;
    }
}


