* { box-sizing: border-box; }
[hidden] { display: none !important; }
:root { --bg: #f6f4ef; --surface: #fffdf8; --text: #272923; --muted: #75786f; --line: #d8d4c8; --accent: #b84c2b; --accent-dark: #933a21; --shadow: 0 12px 32px rgba(44, 39, 28, .07); font-family: Georgia, 'Times New Roman', serif; color: var(--text); background: var(--bg); }
:root[data-theme="dark"] { --bg: #191b19; --surface: #242724; --text: #f3f0e7; --muted: #adb0a6; --line: #464b44; --accent: #e17a56; --accent-dark: #ef9979; --shadow: 0 12px 32px rgba(0, 0, 0, .2); }
body { margin: 0; min-width: 320px; background: var(--bg); color: var(--text); transition: background .2s, color .2s; }
body.auth-enabled { min-height: 100vh; }
.auth-screen { display: grid; min-height: 100vh; place-items: center; padding: 24px; background: var(--bg); }
.auth-card { width: min(100%, 420px); border: 1px solid var(--line); background: var(--surface); box-shadow: var(--shadow); padding: 34px; }
.auth-logo { display: block; width: 68px; height: 68px; margin-bottom: 24px; }
.auth-card h1 { margin-bottom: 16px; font-size: 2.5rem; }
.auth-copy { color: var(--muted); font: .9rem/1.5 system-ui, sans-serif; }
.auth-form { display: grid; gap: 9px; margin-top: 22px; }
.auth-form label { margin-top: 5px; font: 600 .78rem system-ui, sans-serif; }
.auth-form input { border: 1px solid var(--line); background: var(--bg); color: var(--text); padding: 11px; outline: none; }
.auth-form .primary-button { margin-top: 8px; }
.user-badge { color: var(--muted); font: 600 .72rem system-ui, sans-serif; }
button, input, select { font: inherit; } button { cursor: pointer; }
input[type="number"] { -moz-appearance: textfield; appearance: textfield; }
input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button { margin: 0; -webkit-appearance: none; }
.app-shell { width: min(100% - 36px, 1040px); margin: auto; padding: 48px 0 80px; }
.page-header { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 38px; }
.brand-lockup { display: flex; align-items: center; gap: 18px; }
.fund-logo { width: 76px; height: 76px; border: 1px solid var(--line); border-radius: 50%; background: var(--surface); object-fit: contain; padding: 5px; }
.eyebrow { margin: 0 0 8px; color: var(--accent); font: 700 .72rem/1.2 system-ui, sans-serif; letter-spacing: .13em; text-transform: uppercase; }
h1, h2, p { margin-top: 0; } h1 { margin-bottom: 12px; font-size: clamp(2.8rem, 7vw, 5.6rem); font-weight: 400; letter-spacing: -.045em; line-height: .88; } h2 { margin-bottom: 0; font-size: 1.65rem; font-weight: 400; }
.subtitle { max-width: 420px; margin-bottom: 0; color: var(--muted); font: 1rem/1.5 system-ui, sans-serif; }
.header-actions { display: flex; align-items: center; gap: 14px; } .mode-label { color: var(--muted); font: 600 .75rem system-ui, sans-serif; text-transform: uppercase; letter-spacing: .08em; }
.theme-toggle, .secondary-button, .text-button { border: 1px solid var(--line); background: transparent; color: var(--text); padding: 9px 12px; } .theme-toggle:hover, .secondary-button:hover, .text-button:hover { border-color: var(--accent); color: var(--accent); }
.summary-grid { display: grid; grid-template-columns: 1.5fr repeat(5, 1fr); gap: 12px; margin-bottom: 44px; } .summary-card { border: 1px solid var(--line); background: var(--surface); box-shadow: var(--shadow); padding: 18px; } .summary-card-highlight { border-top: 3px solid var(--accent); } .summary-card span, .summary-card small, .loan-figures small, .member-row small, .activity-row small { display: block; color: var(--muted); font: .78rem system-ui, sans-serif; } .summary-card strong { display: block; margin: 10px 0 8px; color: var(--accent); font-size: 1.55rem; font-weight: 400; } .summary-card small { font-size: .72rem; }
.tabs { display: flex; gap: 24px; border-bottom: 1px solid var(--line); margin-bottom: 30px; } .tab { border: 0; border-bottom: 2px solid transparent; background: transparent; color: var(--muted); padding: 0 0 13px; font: 600 .8rem system-ui, sans-serif; } .tab.is-active { border-color: var(--accent); color: var(--text); }
.tab-panel { display: none; } .tab-panel.is-active { display: block; } .section-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 20px; } .section-actions { display: flex; align-items: center; gap: 10px; }
.primary-button { border: 0; background: var(--accent); color: #fff; padding: 12px 17px; font: 700 .8rem system-ui, sans-serif; } .primary-button:hover { background: var(--accent-dark); } .danger-button { border: 1px solid #b85b4c; background: transparent; color: #a3483d; padding: 11px 15px; font: 700 .8rem system-ui, sans-serif; } .danger-button:hover { background: #a3483d; color: #fff; }
.report-share-button { display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 42px; border: 1px solid #147a50; border-radius: 5px; background: #168653; color: #fff; padding: 10px 16px; font: 700 .8rem system-ui, sans-serif; box-shadow: 0 2px 5px rgba(20, 92, 61, .16); transition: background .15s ease, box-shadow .15s ease, transform .15s ease; } .report-share-button span { display: grid; width: 21px; height: 21px; place-items: center; border: 1px solid rgba(255, 255, 255, .7); border-radius: 50%; font: 700 .9rem/1 system-ui, sans-serif; } .report-share-button:hover { background: #116c43; box-shadow: 0 4px 10px rgba(20, 92, 61, .22); transform: translateY(-1px); }
.activity-list, .member-list, .loan-list { border-top: 1px solid var(--line); } .activity-row, .member-row, .loan-row { display: flex; align-items: center; justify-content: space-between; gap: 20px; border-bottom: 1px solid var(--line); background: var(--surface); padding: 18px 20px; } .activity-row { justify-content: start; } .activity-row strong, .member-row strong, .loan-main strong { display: block; margin-bottom: 5px; font-size: 1rem; font-weight: 400; } .activity-dot { width: 9px; height: 9px; flex-shrink: 0; border-radius: 50%; background: var(--accent); }
.loan-member-group + .loan-member-group { margin-top: 18px; } .loan-member-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; border: 1px solid var(--line); border-bottom: 0; background: var(--surface); padding: 16px 20px; } .loan-member-heading h3 { margin: 0 0 4px; font-size: 1.05rem; font-weight: 400; } .loan-member-heading small { color: var(--muted); font: .75rem system-ui, sans-serif; } .loan-member-heading > strong { color: var(--accent); font-size: 1rem; font-weight: 400; } .loan-member-group .loan-list { border-top: 0; }
.loan-row.is-closed { opacity: .72; } .loan-row.is-closed .due-value { color: var(--muted); } .closed-label { color: var(--muted); font: 600 .75rem system-ui, sans-serif; } .payment-history-toggle { border: 0; background: transparent; color: var(--accent); padding: 0; font: .75rem system-ui, sans-serif; } .payment-history-toggle span { display: inline-block; margin-left: 3px; transition: transform .15s ease; } .payment-history-toggle[aria-expanded="true"] span { transform: rotate(180deg); } .payment-history { margin-top: 12px; border-left: 2px solid var(--line); padding-left: 12px; } .payment-history-row { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 7px 0; } .payment-history-row strong { margin: 0; font: 600 .82rem system-ui, sans-serif; } .payment-history-row small { color: var(--muted); font: .72rem system-ui, sans-serif; }
.loan-usage-name { font-weight: 700; } .loan-usage-percent { font: 600 .78rem system-ui, sans-serif; } .loan-usage--green { color: #198754; } .loan-usage--yellow { color: #9a7800; } .loan-usage--orange { color: #c45a12; } .loan-usage--red { color: #bd3030; }
.application-list { border-top: 1px solid var(--line); } .application-row { display: flex; align-items: center; justify-content: space-between; gap: 20px; border-bottom: 1px solid var(--line); background: var(--surface); padding: 18px 20px; } .application-row.is-pending { border-left: 3px solid var(--accent); } .application-main { min-width: 0; } .application-title { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 7px; } .application-title strong { font-size: 1rem; font-weight: 600; } .application-main > small { display: block; color: var(--muted); font: .75rem/1.5 system-ui, sans-serif; } .application-main p { margin: 8px 0; color: var(--text); font: .82rem/1.45 system-ui, sans-serif; } .application-status { border: 1px solid var(--line); padding: 4px 7px; color: var(--muted); font: 700 .66rem system-ui, sans-serif; text-transform: uppercase; } .application-status--pending { border-color: #c15a32; color: #a84525; } .application-status--approved { border-color: #198754; color: #198754; } .application-status--rejected { border-color: #bd3030; color: #bd3030; } .application-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; } .application-actions button { padding: 9px 12px; }
.application-modal .loan-eligibility { margin-bottom: 4px; } .application-modal .form-note { margin: 0; }
.application-setup-notice { margin: 0 0 16px; border-left: 3px solid var(--accent); background: var(--surface); color: var(--muted); padding: 12px 14px; font: .8rem/1.5 system-ui, sans-serif; }
.archive-list { border-top: 1px solid var(--line); }
.archive-row { display: flex; align-items: center; justify-content: space-between; gap: 18px; border-bottom: 1px solid var(--line); background: var(--surface); padding: 16px 18px; }
.archive-details { min-width: 0; }
.archive-details strong, .archive-details small { display: block; }
.archive-details strong { margin-bottom: 5px; font: 600 .9rem system-ui, sans-serif; }
.archive-details small { color: var(--muted); font: .74rem/1.5 system-ui, sans-serif; }
.analytics-year-control { display: flex; align-items: center; gap: 9px; color: var(--muted); font: 700 .75rem system-ui, sans-serif; } .analytics-year-control select { min-width: 92px; border: 1px solid var(--line); border-radius: 3px; background: var(--surface); color: var(--text); padding: 9px 12px; font: 600 .82rem system-ui, sans-serif; } .analytics-chart-section { margin-top: 16px; padding: 16px 12px 8px; border-top: 1px solid var(--line); background: var(--surface); } .analytics-monthly-chart { width: 100%; overflow-x: auto; } .analytics-monthly-chart svg { display: block; width: 100%; min-width: 620px; height: auto; } .analytics-grid-line { stroke: var(--line); stroke-width: 1; stroke-dasharray: 3 5; } .analytics-month-grid { stroke: color-mix(in srgb, var(--line) 65%, transparent); stroke-width: 1; } .analytics-axis-label, .analytics-month-label { fill: var(--muted); font: 11px system-ui, sans-serif; } .analytics-month-label { font-weight: 700; } .analytics-axis-title { fill: var(--text); font: 700 11px system-ui, sans-serif; } .analytics-line { fill: none; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; } .analytics-series-principal { stroke: #27785f; } .analytics-series-interest { stroke: #ca6b2d; } .analytics-series-count { stroke: #49799b; } .analytics-point { stroke-width: 2; } circle.analytics-series-principal { fill: #27785f; } circle.analytics-series-interest { fill: #ca6b2d; } circle.analytics-series-count { fill: #49799b; } .analytics-data-label { font: 600 9px system-ui, sans-serif; paint-order: stroke; stroke: var(--surface); stroke-width: 3px; stroke-linejoin: round; } text.analytics-series-principal { fill: #27785f; } text.analytics-series-interest { fill: #b75b20; } text.analytics-series-count { fill: #49799b; } .analytics-legend { display: flex; flex-wrap: wrap; gap: 10px 22px; margin: 0 0 4px 12px; } .analytics-legend span { display: inline-flex; align-items: center; gap: 7px; color: var(--muted); font: 600 .74rem system-ui, sans-serif; } .analytics-legend-swatch { width: 18px; height: 3px; background: currentColor; } .analytics-swatch--principal { color: #27785f; } .analytics-swatch--interest { color: #ca6b2d; } .analytics-swatch--count { color: #49799b; }
.closed-history-row .loan-figures { margin-left: auto; }
.subsection-heading { margin-top: 42px; margin-bottom: 16px; } .subsection-heading h2 { font-size: 1.35rem; } .contribution-list { border-top: 1px solid var(--line); } .contribution-row { display: flex; align-items: center; justify-content: space-between; gap: 20px; border-bottom: 1px solid var(--line); background: var(--surface); padding: 15px 20px; } .contribution-row strong { display: block; margin-bottom: 4px; font-size: .95rem; font-weight: 400; } .contribution-row small { color: var(--muted); font: .75rem system-ui, sans-serif; } .contribution-row .contribution-amount { color: var(--accent); font-size: 1rem; }
.loan-history-section { margin-top: 48px; }
.member-row-actions, .row-actions { display: flex; align-items: center; gap: 12px; } .member-row-actions > span { color: var(--muted); font: .75rem system-ui, sans-serif; } .member-details { min-width: 0; } .member-identity { display: flex; align-items: center; gap: 8px; } .member-edit-button { display: inline-grid; width: 24px; height: 24px; place-items: center; border: 1px solid transparent; border-radius: 3px; background: transparent; color: var(--muted); font: 1rem/1 system-ui, sans-serif; } .member-edit-button:hover { border-color: var(--accent); color: var(--accent); } .text-button { border: 0; padding: 5px 0; font: 600 .75rem system-ui, sans-serif; } .text-button.danger { color: #a6574c; }
.loan-row { align-items: start; flex-wrap: wrap; } .loan-main { min-width: 160px; flex: 1; } .loan-figures { display: flex; gap: 28px; } .loan-figures span { min-width: 90px; } .loan-figures strong { display: block; margin-top: 5px; font-size: .98rem; font-weight: 400; } .loan-figures .due-value { color: var(--accent); }
.empty-state { border: 1px dashed var(--line); color: var(--muted); padding: 28px 20px; text-align: center; } .modal { width: min(calc(100% - 32px), 430px); border: 1px solid var(--line); background: var(--surface); color: var(--text); padding: 0; } .modal::backdrop { background: rgba(20, 21, 18, .55); } .modal-content { display: grid; position: relative; gap: 9px; padding: 32px; } .modal-content h2 { margin-bottom: 14px; } .modal-content label { margin-top: 5px; font: 600 .78rem system-ui, sans-serif; } .modal-content input, .modal-content select { border: 1px solid var(--line); background: var(--bg); color: var(--text); padding: 11px; outline: none; } .modal-content .primary-button { margin-top: 12px; } .modal-close { position: absolute; top: 15px; right: 17px; border: 0; background: transparent; color: var(--muted); font-size: 1.4rem; } .form-note, .payment-limit { color: var(--muted); font: .75rem/1.4 system-ui, sans-serif; } .payment-limit { color: var(--accent); font-weight: 600; }
.fund-report-modal { width: min(calc(100% - 28px), 980px); max-height: min(90vh, 900px); overflow: auto; } .fund-report-content { position: relative; padding: 30px; } .fund-report-content h2 { margin-bottom: 4px; font-size: 1.7rem; } .fund-report-content > .form-note { margin-bottom: 20px; } .fund-report-summary { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 18px 0 26px; } .fund-report-metric { min-width: 0; border: 1px solid var(--line); border-top: 3px solid var(--accent); background: var(--bg); padding: 12px 14px; } .fund-report-metric span { display: block; color: var(--muted); font: 600 .72rem system-ui, sans-serif; } .fund-report-metric strong { display: block; margin-top: 7px; color: var(--text); font: 600 1.1rem system-ui, sans-serif; overflow-wrap: anywhere; } .fund-report-section { margin-top: 22px; } .fund-report-section h3 { margin: 0 0 10px; font: 600 1rem system-ui, sans-serif; } .fund-report-table-wrap { max-width: 100%; overflow-x: auto; border: 1px solid var(--line); } .fund-report-table { width: 100%; border-collapse: collapse; background: var(--surface); font: .78rem/1.4 system-ui, sans-serif; text-align: left; } .fund-report-table th, .fund-report-table td { border-bottom: 1px solid var(--line); padding: 10px 12px; white-space: nowrap; } .fund-report-table th { background: var(--bg); color: var(--muted); font-size: .7rem; font-weight: 700; } .fund-report-table td:last-child, .fund-report-table th:last-child { text-align: right; } .fund-report-table tbody tr:last-child td { border-bottom: 0; } .fund-report-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 24px; padding-top: 16px; border-top: 1px solid var(--line); }
.form-error { margin: 0; border-left: 3px solid #b84c2b; color: #b84c2b; padding: 8px 10px; font: 600 .78rem/1.35 system-ui, sans-serif; } .loan-eligibility { margin: 0; border-left: 3px solid var(--accent); background: color-mix(in srgb, var(--accent) 8%, var(--surface)); color: var(--accent); padding: 10px 12px; font: 700 .84rem system-ui, sans-serif; } .modal-content input[aria-invalid="true"] { border-color: #b84c2b; box-shadow: 0 0 0 2px rgba(184, 76, 43, .14); }
.toast { position: fixed; right: 20px; bottom: 20px; visibility: hidden; opacity: 0; background: var(--text); color: var(--bg); padding: 12px 16px; font: .8rem system-ui, sans-serif; transition: opacity .2s, visibility .2s; } .toast.is-visible { visibility: visible; opacity: 1; }
@media (max-width: 900px) { .summary-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 700px) { .page-header, .section-heading { align-items: start; flex-direction: column; } .brand-lockup { align-items: start; } .fund-logo { width: 62px; height: 62px; } .summary-grid { grid-template-columns: 1fr; } .summary-card strong { margin: 7px 0 4px; } .loan-figures { order: 3; width: 100%; justify-content: space-between; gap: 8px; } .row-actions { width: 100%; } .fund-report-content { padding: 24px 16px; } .fund-report-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); } .fund-report-actions { align-items: stretch; flex-direction: column; } }
@media (max-width: 700px) { .application-row { align-items: start; flex-direction: column; padding: 16px 12px; } .application-actions { width: 100%; } .application-actions button { flex: 1; } }
@media (max-width: 700px) { .archive-row { align-items: start; flex-direction: column; padding: 15px 12px; } }
@media (max-width: 500px) { .analytics-chart-section { padding: 14px 4px 8px; margin-top: 10px; } .analytics-monthly-chart svg { min-width: 600px; } .analytics-legend { gap: 8px 14px; margin-left: 7px; } .analytics-legend span { font-size: .68rem; } }
@media (max-width: 500px) { .app-shell { width: min(100% - 24px, 1040px); padding-top: 32px; } .header-actions, .member-row, .member-row-actions { align-items: start; flex-direction: column; } .tabs { gap: 14px; overflow: auto; } .tab { white-space: nowrap; } .activity-row, .member-row, .loan-row { padding: 15px 12px; } .section-actions { display: grid; width: 100%; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; } .section-actions > button { min-width: 0; min-height: 44px; padding: 10px 8px; font-size: .75rem; } .section-actions .report-share-button { grid-column: auto; justify-content: center; padding-inline: 8px; } }
