:root { --ink:#16243a; --muted:#66758a; --line:#dde4ec; --paper:#fff; --bg:#f4f7fa; --blue:#1565d8; --green:#108a5c; --red:#c44343; --navy:#0e2945; }
* { box-sizing:border-box; } body { margin:0; background:var(--bg); color:var(--ink); font-family:Inter,Segoe UI,Arial,sans-serif; } button,.file-label { border:0; border-radius:9px; padding:11px 15px; background:var(--blue); color:#fff; cursor:pointer; font:inherit; font-weight:650; } button:hover,.file-label:hover { filter:brightness(.94); } .topbar { background:var(--navy); color:#fff; padding:23px max(5vw,28px); display:flex; justify-content:space-between; align-items:center; gap:20px; } h1,h2,p { margin:0; } h1 { font-size:25px; } h2 { font-size:19px; } .eyebrow { font-size:11px; font-weight:750; letter-spacing:1.35px; opacity:.7; margin-bottom:5px; } .actions,.quick-actions,.form-actions { display:flex; flex-wrap:wrap; gap:9px; align-items:center; } .secondary { background:#e9eef4; color:var(--ink); } .file-label { display:inline-block; } main { max-width:1290px; margin:0 auto; padding:26px; } .summary { display:grid; grid-template-columns:repeat(4,1fr); gap:12px; margin-bottom:22px; } .summary article,.panel,.balance-card { background:var(--paper); border:1px solid var(--line); border-radius:12px; box-shadow:0 1px 2px #1423330c; } .summary article { padding:18px; } .summary span,.balance-card span { display:block; color:var(--muted); font-size:13px; } .summary strong { display:block; margin-top:8px; font-size:21px; } .summary .accent { border-color:#87c3b0; background:#f0faf6; } .summary .accent strong { color:var(--green); } .workspace { display:grid; grid-template-columns:270px 1fr; gap:22px; } .panel { padding:18px; } .panel-title { display:flex; justify-content:space-between; align-items:start; margin-bottom:13px; } .icon-btn { border-radius:50%; padding:0; height:32px; width:32px; font-size:23px; line-height:20px; } .people-list { display:grid; gap:7px; } .person { width:100%; text-align:left; background:transparent; color:var(--ink); padding:12px; border-radius:8px; } .person:hover { background:#eef4fb; } .person.active { background:#e4efff; color:#08499e; } .person span { display:block; font-size:12px; font-weight:500; color:var(--muted); margin-top:3px; } .empty-state { max-width:650px; margin:30px auto; text-align:center; padding:58px 28px; } .empty-icon { color:var(--blue); font-size:48px; } .empty-state p { margin:12px auto 22px; max-width:480px; line-height:1.5; color:var(--muted); } .account-header { display:flex; justify-content:space-between; align-items:center; gap:20px; margin-bottom:17px; } .account-header h2 { font-size:28px; } .muted { color:var(--muted); font-size:13px; margin-top:5px; } .balance-card { padding:14px 18px; min-width:190px; background:#eff9f5; border-color:#a9d7c5; } .balance-card strong { color:var(--green); display:block; margin-top:5px; font-size:22px; } .quick-actions { margin-bottom:17px; } .deposit { background:var(--green); } .withdraw { background:#d15d34; } .danger-link { background:transparent; color:var(--red); padding-left:4px; } .table-wrap { overflow-x:auto; } table { width:100%; border-collapse:collapse; min-width:650px; } th { color:var(--muted); text-align:left; text-transform:uppercase; letter-spacing:.5px; font-size:11px; padding:11px 10px; border-bottom:1px solid var(--line); } td { padding:13px 10px; border-bottom:1px solid #edf1f5; font-size:14px; } td.num { text-align:right; font-variant-numeric:tabular-nums; } .tag { font-weight:700; font-size:12px; padding:5px 8px; border-radius:99px; } .tag.deposit { color:#08744a; background:#daf4e7; } .tag.withdraw { color:#a33b20; background:#ffebdf; } .no-data { color:var(--muted); text-align:center; padding:35px; } dialog { width:min(460px,calc(100vw - 28px)); border:0; border-radius:14px; padding:0; box-shadow:0 16px 60px #00142c55; } dialog::backdrop { background:#0a1d31aa; } form { padding:22px; } .dialog-title { display:flex; justify-content:space-between; align-items:center; margin-bottom:18px; } .close { background:transparent; color:var(--muted); padding:0; font-size:28px; line-height:20px; } label { display:block; font-size:13px; font-weight:700; margin:13px 0; } label small { color:var(--muted); font-weight:500; } input,textarea { display:block; width:100%; margin-top:6px; border:1px solid #bdc9d7; border-radius:8px; padding:11px; font:inherit; color:var(--ink); } textarea { resize:vertical; } .form-actions { justify-content:flex-end; margin-top:21px; } .warning { color:#9d431d; background:#fff0e9; padding:9px; border-radius:7px; font-size:13px; }
.account-totals { display:grid; grid-template-columns:repeat(3,1fr); gap:12px; margin:0 0 17px; } .account-totals article { background:#fff; border:1px solid var(--line); border-radius:10px; padding:13px 15px; } .account-totals span { display:block; color:var(--muted); font-size:12px; } .account-totals strong { display:block; margin-top:5px; font-size:18px; } .account-totals .remaining { background:#f0faf6; border-color:#a9d7c5; } .account-totals .remaining strong { color:var(--green); }
@media (max-width:800px) { .topbar,.account-header { align-items:flex-start; flex-direction:column; } .summary { grid-template-columns:repeat(2,1fr); } .workspace { grid-template-columns:1fr; } .people-panel { padding-bottom:12px; } .people-list { grid-template-columns:repeat(auto-fit,minmax(160px,1fr)); } main { padding:17px; } } @media (max-width:440px) { .summary,.account-totals { grid-template-columns:1fr; } .actions button,.file-label { width:100%; text-align:center; } }
@media print { body { background:white; } .topbar,.summary,.people-panel,.quick-actions { display:none; } main { padding:0; } .workspace { display:block; } .account-header { margin-bottom:25px; } .transactions-panel { border:0; box-shadow:none; padding:0; } }
.topbar .actions { display:none; }
body.authenticated .topbar .actions { display:flex; }
.admin-session { display:flex; gap:8px; } .logout,.login-btn { background:transparent; border:1px solid #6e8ba8; color:#fff; padding:8px 11px; font-size:13px; }
.logout { display:none; }
.login-screen { display:none; position:fixed; z-index:10; inset:0; align-items:center; justify-content:center; padding:24px; background:linear-gradient(135deg,#0e2945ee,#1c517dee); }
.login-card { width:min(420px,100%); padding:30px; border-radius:15px; background:#fff; box-shadow:0 18px 55px #00142666; }
.login-card h1 { color:var(--ink); margin-bottom:9px; }
.login-card > p:not(.eyebrow):not(.login-error) { color:var(--muted); line-height:1.5; margin-bottom:21px; }
.login-card .eyebrow { color:#2365a8; opacity:1; }
.login-card button { width:100%; margin-top:10px; }
.login-error { color:#a72929; background:#ffeded; border-radius:7px; padding:9px; font-size:13px; }
.admin-only { display:none !important; }
body.authenticated .admin-only { display:inline-block !important; }
body.authenticated .logout { display:inline-block; }
body.authenticated .login-btn { display:none; }
body.login-open .login-screen { display:flex; }
body:not(.authenticated) #accountPhone { display:none; }
.transactions-panel table { table-layout:fixed; }
.transactions-panel th:nth-child(1) { width:16%; }
.transactions-panel th:nth-child(2) { width:13%; }
.transactions-panel th:nth-child(3) { width:23%; }
.transactions-panel th:nth-child(4),.transactions-panel th:nth-child(5),.transactions-panel th:nth-child(6) { width:16%; text-align:right; }
.amount-in { color:#1565d8; font-weight:650; }
.amount-out { color:#c44343; font-weight:650; }
.amount-balance,.amount-balance strong { color:#108a5c; }
.transaction-dialog-placeholder { display:none; }
.admin-table-cell { display:none; }
body.authenticated .admin-table-cell { display:table-cell; }
.operation-actions { white-space:nowrap; text-align:right; }
.operation-actions button { padding:6px 9px; font-size:12px; margin-left:5px; }
.edit-operation { background:#e7f0ff; color:#1559ad; }
.delete-operation { background:#ffebeb; color:#b23131; }
select { display:block; width:100%; margin-top:6px; border:1px solid #bdc9d7; border-radius:8px; padding:11px; font:inherit; color:var(--ink); }
.transactions-panel th:nth-child(1) { width:14%; }
.transactions-panel th:nth-child(2) { width:12%; }
.transactions-panel th:nth-child(3) { width:20%; }
.transactions-panel th:nth-child(4),.transactions-panel th:nth-child(5),.transactions-panel th:nth-child(6) { width:13%; }
.transactions-panel th:nth-child(7) { width:15%; }
@media print { .admin-table-cell { display:none !important; } }
.app-loading .topbar,.app-loading main { display:none; }
#serverStatus { display:none; max-width:540px; margin:15vh auto; padding:24px; border:1px solid var(--line); border-radius:12px; background:#fff; text-align:center; }
.app-loading #serverStatus { display:block; }
