/* GeneralLedger Module Styles - Scoped with gl- prefix */

.gl-container {
    padding: 20px;
    max-width: 1400px;
    margin: 0 auto;
}

.gl-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #e9ecef;
}

.gl-header h2 {
    margin: 0;
    color: #2c3e50;
}

.gl-header h2 i {
    margin-right: 10px;
    color: #3498db;
}

.gl-filters {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.gl-summary {
    margin-bottom: 20px;
}

.gl-summary-card {
    background: white;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 15px;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.gl-summary-label {
    font-size: 0.875rem;
    color: #6c757d;
    margin-bottom: 5px;
}

.gl-summary-value {
    font-size: 1.5rem;
    font-weight: 600;
}

.gl-table-container {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    overflow: hidden;
}

.gl-table {
    margin-bottom: 0;
}

.gl-table thead {
    background: #f8f9fa;
}

.gl-table thead th {
    font-weight: 600;
    color: #495057;
    border-bottom: 2px solid #dee2e6;
    padding: 12px;
}

.gl-table tbody td {
    padding: 10px 12px;
    vertical-align: middle;
}

.gl-table tbody tr:hover {
    background-color: #f1f3f4;
}

.gl-table .text-end {
    text-align: right;
}

.gl-debit {
    color: #28a745;
    font-weight: 500;
}

.gl-credit {
    color: #dc3545;
    font-weight: 500;
}

.gl-txn-number {
    font-family: monospace;
    font-size: 0.9rem;
    color: #6c757d;
    cursor: pointer;
}

.gl-txn-number:hover {
    color: #0d6efd;
    text-decoration: underline;
}

.gl-type-badge {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 500;
}

.gl-type-journal { background: #e3f2fd; color: #1565c0; }
.gl-type-invoice { background: #e8f5e9; color: #2e7d32; }
.gl-type-payment { background: #fff3e0; color: #ef6c00; }
.gl-type-bill { background: #fce4ec; color: #c2185b; }
.gl-type-check { background: #f3e5f5; color: #7b1fa2; }

.gl-pagination {
    padding: 20px;
}

/* Entry Lines in Modal */
.gl-entry-lines {
    max-height: 300px;
    overflow-y: auto;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    padding: 10px;
}

.gl-entry-line {
    display: flex;
    gap: 10px;
    align-items: center;
    padding: 8px;
    background: #f8f9fa;
    border-radius: 4px;
    margin-bottom: 8px;
}

.gl-entry-line:last-child {
    margin-bottom: 0;
}

.gl-entry-line select,
.gl-entry-line input {
    font-size: 0.9rem;
}

.gl-entry-line .account-select {
    flex: 2;
}

.gl-entry-line .amount-input {
    width: 120px;
}

.gl-entry-line .description-input {
    flex: 1;
}

.gl-entry-line .remove-btn {
    padding: 4px 8px;
}

.gl-totals {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 4px;
}

/* Search Results */
.gl-search-results {
    background: #fff3cd;
    padding: 10px 15px;
    border-radius: 4px;
    margin-bottom: 15px;
    display: none;
}

.gl-search-results.active {
    display: block;
}

/* Empty state */
.gl-empty-state {
    text-align: center;
    padding: 40px;
    color: #6c757d;
}

.gl-empty-state i {
    font-size: 3rem;
    margin-bottom: 15px;
}

/* Responsive */
@media (max-width: 768px) {
    .gl-header {
        flex-direction: column;
        gap: 15px;
    }

    .gl-entry-line {
        flex-wrap: wrap;
    }

    .gl-entry-line .account-select,
    .gl-entry-line .description-input {
        flex: 100%;
    }
}
