/* LEDGER.ahmed.com.pk — Minimal Functional Styles */
* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: system-ui, sans-serif; background: #f5f5f5; color: #222; }

/* Login */
.login-container { max-width: 360px; margin: 10vh auto; padding: 2rem; background: #fff; border-radius: 8px; box-shadow: 0 2px 8px rgba(0,0,0,.1); }
.login-container h1 { text-align: center; margin-bottom: 1.5rem; }
.login-container input, .login-container button { width: 100%; padding: .75rem; margin-bottom: .75rem; border: 1px solid #ccc; border-radius: 4px; font-size: 1rem; }
.login-container button { background: #2e7d32; color: #fff; border: none; cursor: pointer; }
.alert.error { background: #ffebee; color: #c62828; padding: .5rem; border-radius: 4px; margin-bottom: 1rem; }

/* Top Bar */
.top-bar { display: flex; align-items: center; gap: 1rem; padding: .75rem 1.5rem; background: #fff; border-bottom: 1px solid #ddd; position: sticky; top: 0; z-index: 100; }
.brand { font-weight: 700; font-size: 1.25rem; }
.btn-primary { background: #2e7d32; color: #fff; border: none; padding: .5rem 1.25rem; border-radius: 4px; cursor: pointer; font-size: 1rem; }
.btn-lg { font-size: 1.25rem; padding: .75rem 2rem; font-weight: 700; }
.chip { display: inline-block; background: #e8f5e9; padding: .25rem .75rem; border-radius: 999px; font-size: .85rem; white-space: nowrap; }
.user-info { margin-left: auto; font-size: .9rem; }

/* Modal */
.modal { position: fixed; inset: 0; background: rgba(0,0,0,.5); display: flex; align-items: center; justify-content: center; z-index: 200; }
.modal.hidden { display: none; }
.modal-content { background: #fff; padding: 2rem; border-radius: 8px; width: 90%; max-width: 700px; max-height: 90vh; overflow-y: auto; }
.modal-content label { display: block; margin-bottom: .75rem; }
.modal-content input, .modal-content textarea { width: 100%; padding: .5rem; border: 1px solid #ccc; border-radius: 4px; margin-top: .25rem; }
.split-row { display: grid; grid-template-columns: 1fr 1fr 1fr 1.5fr 1.5fr auto; gap: .5rem; margin-bottom: .5rem; align-items: center; }
.modal-actions { display: flex; gap: 1rem; margin-top: 1.5rem; justify-content: flex-end; }

main { padding: 1.5rem; }
/* ... keep existing css ... */

/* Autocomplete Dropdown */
#purpose-results {
    position: absolute;
    background: #fff;
    border: 1px solid #ccc;
    width: 100%;
    z-index: 10;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    display: none; /* Hidden by default */
}
#purpose-results:not(:empty) {
    display: block;
}
.suggest-item {
    padding: 10px;
    cursor: pointer;
    border-bottom: 1px solid #eee;
}
.suggest-item:hover {
    background: #f0f0f0;
}
.suggest-item.new {
    color: #2e7d32;
    font-weight: bold;
}