/* AFRIDA Admin Hub (Tukole) — AFRIDA colours: black, red, green */
:root {
  --green: #00A650; --green-d: #00803d; --green-l: #e6f6ed;
  --red: #ED1B24; --red-d: #c0141c; --red-l: #fdecec;
  --black: #111; --ink: #1d2320; --muted: #5d6762; --line: #e3e7e5;
  --bg: #f5f7f6; --card: #fff; --side: #1F3B33; --side-d: #172d27;
  --amber: #a86400; --amber-l: #fff4e0; --blue: #1c5fa8; --blue-l: #e8f0fa;
  --r: 10px; --shadow: 0 1px 2px rgba(0,0,0,.05), 0 4px 14px rgba(0,0,0,.04);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 15px/1.5 "Segoe UI", Roboto, Helvetica, Arial, sans-serif; color: var(--ink); background: var(--bg); }
a { color: var(--green-d); }
a:hover { color: var(--red-d); }
h1, h2, h3 { line-height: 1.25; margin: 0 0 .6em; }
h2 { font-size: 18px; } h3 { font-size: 16px; }
.muted { color: var(--muted); } .small { font-size: 13px; } .nowrap { white-space: nowrap; }
.ic { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* ---------- header & shell ---------- */
.top { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 12px; padding: 8px 18px; background: #fff; border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--black); }
.brand img { width: 46px; height: 46px; object-fit: contain; }
.brand b { display: block; font-size: 17px; letter-spacing: .2px; }
.brand small { display: block; color: var(--red); font-style: italic; font-weight: 600; font-size: 12px; }
.who { margin-left: auto; display: flex; align-items: center; gap: 12px; text-align: right; }
.who span { font-weight: 600; font-size: 14px; } .who small { display: block; font-weight: 400; color: var(--muted); font-size: 12px; }
.who form { margin: 0; }
.stripe, .auth-stripe { height: 6px; background: linear-gradient(to bottom, var(--green) 0 33%, var(--red) 33% 66%, var(--black) 66%); }
.menu-btn { display: none; background: none; border: 0; padding: 8px; cursor: pointer; color: var(--black); min-height: 44px; }
.shell { display: flex; min-height: calc(100vh - 69px); }
.side { width: 238px; flex: none; background: var(--side); padding: 14px 10px; display: flex; flex-direction: column; gap: 2px; }
.side a { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 8px; color: #d6e4de; text-decoration: none; font-size: 14px; min-height: 42px; }
.side a:hover { background: rgba(255,255,255,.08); color: #fff; }
.side a.on { background: var(--green); color: #fff; font-weight: 600; }
.side .count { margin-left: auto; background: var(--red); color: #fff; border-radius: 20px; padding: 0 8px; font-size: 12px; font-weight: 700; }
main { flex: 1; min-width: 0; padding: 22px 26px 60px; max-width: 1280px; }
.page-title { font-size: 24px; margin: 0 0 16px; color: var(--black); }

/* ---------- cards, grids ---------- */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 18px 20px; margin-bottom: 18px; box-shadow: var(--shadow); }
.card.flush { padding: 0; overflow: hidden; } .pad { padding: 18px; }
.card.narrow { max-width: 680px; }
details.card > summary { cursor: pointer; list-style: none; } details.card > summary::-webkit-details-marker { display: none; }
details.card > summary::before { content: "＋ "; color: var(--green); font-weight: 700; } details.card[open] > summary { margin-bottom: 12px; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; flex-wrap: wrap; }
.card-head h2 { margin: 0; }
.grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 18px; }
.grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 16px; }
.grid4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0 14px; align-items: end; }
.grid3 > div, .grid4 > div { align-self: end; padding-bottom: 14px; }
.span2 { grid-column: span 2; }
.grid-main { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 18px; align-items: start; }
.grid2 > .card, .grid-main > .card, .grid-main > div > .card:last-child { margin-bottom: 18px; }

/* ---------- forms ---------- */
.form label { display: block; font-weight: 600; font-size: 13px; color: #333; margin-bottom: 14px; }
.form label.check { display: flex; align-items: center; gap: 8px; font-size: 15px; margin: 0; }
input, select, textarea { display: block; width: 100%; margin-top: 5px; padding: 9px 11px; font: inherit; color: var(--ink); background: #fff; border: 1px solid #c9d1cd; border-radius: 8px; min-height: 42px; }
input[type=checkbox] { width: 20px; height: 20px; min-height: 0; margin: 0; accent-color: var(--green); display: inline-block; }
input:focus, select:focus, textarea:focus { outline: 3px solid rgba(0,166,80,.25); border-color: var(--green); }
.inline { display: inline-flex; gap: 6px; align-items: center; margin: 0; }
.inline input, .inline select { width: auto; margin: 0; min-height: 34px; padding: 5px 8px; }
.toolbar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 14px; }
.toolbar input[type=search] { width: 320px; max-width: 100%; margin: 0; }
.toolbar select, .toolbar input { width: auto; margin: 0; }
.toolbar label { display: inline-flex; gap: 6px; align-items: center; font-size: 14px; } .toolbar .yr { width: 90px; }
.toolbar .spacer { flex: 1; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 10px 18px; min-height: 44px; border: 2px solid var(--green); border-radius: 8px; background: var(--green); color: #fff; font: inherit; font-weight: 600; text-decoration: none; cursor: pointer; }
.btn:hover { background: var(--green-d); border-color: var(--green-d); color: #fff; }
.btn.red { background: var(--red); border-color: var(--red); } .btn.red:hover { background: var(--red-d); border-color: var(--red-d); }
.btn.ghost { background: #fff; color: var(--green-d); } .btn.ghost:hover { background: var(--green-l); color: var(--green-d); }
.btn.ghost.danger { color: var(--red-d); border-color: var(--red); } .btn.ghost.danger:hover { background: var(--red-l); }
.btn.sm { padding: 5px 12px; min-height: 34px; font-size: 13px; }
.btn.block { width: 100%; margin-top: 8px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 18px; }
.card .btn-row:last-child { margin-bottom: 0; }

/* ---------- flash, badges ---------- */
.flash { padding: 11px 14px; border-radius: 8px; margin-bottom: 14px; font-weight: 500; border: 1px solid; }
.flash.ok { background: var(--green-l); border-color: #9fd9b8; color: #0b5c31; }
.flash.bad { background: var(--red-l); border-color: #f3a9ac; color: #8f0d13; }
.badge { display: inline-block; padding: 2px 9px; border-radius: 20px; font-size: 12px; font-weight: 700; white-space: nowrap; }
.badge.ok { background: var(--green-l); color: #0b6b38; } .badge.bad { background: var(--red-l); color: #a00f16; }
.badge.warn { background: var(--amber-l); color: var(--amber); } .badge.info { background: var(--blue-l); color: var(--blue); }
.badge.muted { background: #eef0ef; color: #59615d; }
.pill { background: var(--side); color: #fff; border-radius: 20px; padding: 1px 9px; font-size: 13px; vertical-align: middle; }

/* ---------- tables ---------- */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { padding: 9px 10px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
th { font-size: 12px; text-transform: uppercase; letter-spacing: .4px; color: var(--muted); background: #fafbfa; }
td.num, th.num { text-align: right; white-space: nowrap; } .c { text-align: center; }
td.in { color: #0b6b38; font-weight: 600; } td.out { color: #a00f16; font-weight: 600; }
tr.click { cursor: pointer; } tr.click:hover td { background: #f3faf6; }
tr.dim td { opacity: .55; }
.sub { color: var(--muted); font-size: 12.5px; }
.sheet thead th { background: var(--side); color: #fff; border-color: #2b4d43; }
.sheet thead th.grp { text-align: center; background: var(--side-d); }
.sheet tbody tr:nth-child(even) td { background: #fafcfb; }
.tick { color: #fff; background: var(--green); border-radius: 50%; display: inline-block; width: 22px; height: 22px; line-height: 22px; font-weight: 700; text-align: center; }
.wait { color: var(--amber); background: var(--amber-l); border-radius: 50%; display: inline-block; width: 22px; height: 22px; line-height: 18px; font-weight: 700; text-align: center; }
.none { color: #b3bab6; }
.legend { color: var(--muted); font-size: 13px; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
table.years td, table.years th { padding: 7px 8px; }

/* ---------- accounts & stats ---------- */
.acc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; margin-bottom: 18px; }
.acc-card { display: flex; flex-direction: column; gap: 4px; padding: 16px 18px; border-radius: var(--r); background: #fff; border: 1px solid var(--line); border-top: 5px solid var(--green); text-decoration: none; color: var(--ink); box-shadow: var(--shadow); }
.acc-card:hover { border-color: var(--green); color: var(--ink); }
.acc-petty { border-top-color: var(--black); } .acc-welfare { border-top-color: var(--red); } .acc-shirts { border-top-color: #6b4fa0; } .acc-fines { border-top-color: var(--amber); }
.acc-name { font-weight: 700; font-size: 14px; color: var(--muted); text-transform: uppercase; letter-spacing: .4px; }
.acc-bal { font-size: 24px; font-weight: 800; color: var(--black); }
.acc-meta { font-size: 13px; color: var(--muted); } .acc-desc { font-size: 12.5px; color: var(--muted); margin-top: 4px; }
.acc-grid.small .acc-bal { font-size: 20px; }
.stat-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 14px; margin-bottom: 18px; }
.stat { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 14px 16px; }
.stat span { display: block; font-size: 13px; color: var(--muted); } .stat b { font-size: 20px; }
.queue { display: flex; align-items: center; gap: 10px; padding: 14px 18px; margin-bottom: 18px; border-radius: var(--r); background: #fff; border: 1px solid var(--line); color: var(--ink); text-decoration: none; }
.queue b { font-size: 22px; } .queue span { margin-left: auto; font-weight: 600; color: var(--green-d); }
.queue.has { background: var(--red-l); border-color: #f3a9ac; } .queue.has b { color: var(--red-d); }

/* ---------- transaction ---------- */
.txn-head { display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.txn-head h2 { margin: 2px 0; font-size: 22px; } .ref { font-family: ui-monospace, Consolas, monospace; color: var(--muted); font-size: 13px; }
.amount { font-size: 26px; font-weight: 800; text-align: right; display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.amount.in { color: #0b6b38; } .amount.out { color: #a00f16; }
.steps { list-style: none; display: flex; gap: 0; padding: 0; margin: 18px 0; counter-reset: s; }
.steps li { flex: 1; position: relative; padding: 32px 6px 0; text-align: center; font-size: 12.5px; color: var(--muted); counter-increment: s; }
.steps li::before { content: counter(s); position: absolute; top: 0; left: 50%; transform: translateX(-50%); width: 26px; height: 26px; border-radius: 50%; background: #e3e7e5; color: #59615d; font-weight: 700; line-height: 26px; z-index: 1; }
.steps li::after { content: ""; position: absolute; top: 12px; left: -50%; width: 100%; height: 3px; background: #e3e7e5; }
.steps li:first-child::after { display: none; }
.steps li.done::before { background: var(--green); color: #fff; content: "✓"; } .steps li.done::after { background: var(--green); }
.steps li b { display: block; color: var(--ink); } .steps span { display: block; }
.facts { display: grid; grid-template-columns: max-content 1fr; gap: 6px 18px; margin: 0; }
.facts dt { color: var(--muted); font-size: 13px; } .facts dd { margin: 0; font-weight: 500; }
.timeline { list-style: none; padding: 0; margin: 0; }
.timeline li { padding: 0 0 14px 18px; border-left: 3px solid var(--line); position: relative; }
.timeline li::before { content: ""; position: absolute; left: -7px; top: 4px; width: 11px; height: 11px; border-radius: 50%; background: var(--line); }
.timeline li.approved::before, .timeline li.reviewed::before, .timeline li.paid::before { background: var(--green); }
.timeline li.returned::before, .timeline li.cancelled::before { background: var(--red); }
.timeline blockquote { margin: 6px 0 0; padding: 8px 10px; background: #f6f8f7; border-radius: 6px; font-size: 14px; }
.flowline { background: var(--green-l); border-radius: 8px; padding: 9px 12px; font-size: 13.5px; } .flowline span { color: var(--green-d); font-weight: 700; margin: 0 4px; }

/* ---------- payment form ---------- */
.payline { border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px 0; margin: 0 0 10px; display: grid; grid-template-columns: 1.4fr 1fr 1fr auto; gap: 0 12px; align-items: center; }
.payline label { margin-bottom: 10px; } .payline output { font-weight: 700; padding-bottom: 10px; min-width: 120px; text-align: right; }
.payline.on { border-color: var(--green); background: #f7fcf9; }
.total { font-size: 18px; text-align: right; }

/* ---------- documents ---------- */
.tabs { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.tabs a { padding: 7px 14px; border-radius: 20px; background: #fff; border: 1px solid var(--line); text-decoration: none; color: var(--ink); font-size: 14px; }
.tabs a.on { background: var(--side); color: #fff; border-color: var(--side); }
.doclist { list-style: none; margin: 0; padding: 0; }
.doclist li { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.doclist li:last-child { border-bottom: 0; }
.doc-main { flex: 1; min-width: 200px; } .doc-main a { text-decoration: none; color: var(--ink); } .doc-main a:hover b { color: var(--green-d); text-decoration: underline; }
.ext { width: 46px; height: 46px; border-radius: 8px; display: grid; place-items: center; font-size: 11px; font-weight: 800; color: #fff; background: #7a837f; flex: none; }
.ext-pdf { background: var(--red); } .ext-doc, .ext-docx { background: var(--blue); } .ext-xls, .ext-xlsx { background: var(--green-d); } .ext-ppt, .ext-pptx { background: #c25412; }
.chips span { display: inline-block; background: var(--green-l); color: #0b5c31; border-radius: 20px; padding: 2px 10px; margin: 0 4px 6px 0; font-size: 13px; }
ul.plain { list-style: none; padding: 0; margin: 0; } ul.plain li { padding: 4px 0; border-bottom: 1px dashed var(--line); }
ul.cols { columns: 2; column-gap: 24px; }

/* ---------- sign-in ---------- */
body.guest { background: var(--side); }
.auth { min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 24px 16px; }
.auth-card { width: 100%; max-width: 420px; background: #fff; border-radius: 14px 14px 0 0; padding: 30px 30px 22px; text-align: center; }
.auth-card.wide { max-width: 720px; text-align: left; border-radius: 14px; }
.auth-stripe { width: 100%; max-width: 420px; border-radius: 0 0 14px 14px; height: 10px; }
.auth-logo { width: 130px; display: block; margin: 0 auto 6px; }
.auth h1 { font-size: 22px; margin: 0; } .tagline { color: var(--red); font-style: italic; font-weight: 600; margin: 2px 0 20px; }
.auth .form { text-align: left; }

/* ---------- print ---------- */
.print-only { display: none; }
.print-head { align-items: center; gap: 12px; margin-bottom: 14px; } .print-head img { width: 60px; }
.print-page { background: #eee; }
.print-bar { display: flex; gap: 10px; justify-content: center; padding: 14px; }
.voucher { background: #fff; max-width: 820px; margin: 0 auto 30px; padding: 34px 40px; box-shadow: var(--shadow); }
.v-head { display: flex; gap: 16px; align-items: center; } .v-head img { width: 84px; }
.v-head h1 { font-size: 20px; margin: 0; color: var(--green-d); } .v-head p { margin: 4px 0 0; font-size: 13px; color: var(--muted); }
.v-stripe { height: 6px; margin: 14px 0 18px; background: linear-gradient(to bottom, var(--green) 0 33%, var(--red) 33% 66%, var(--black) 66%); }
.v-title { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 14px; }
.v-title h2 { font-size: 24px; margin: 0; letter-spacing: 1px; text-transform: uppercase; } .v-title div { text-align: right; font-size: 13px; }
.v-table th { width: 22%; background: #f4f6f5; color: #333; text-transform: none; font-size: 13px; letter-spacing: 0; }
.v-table td, .v-table th { border: 1px solid #cfd6d2; }
.v-amt { font-size: 20px; font-weight: 800; }
.v-sign { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin: 26px 0 10px; }
.v-sign div { border: 1px solid #cfd6d2; border-radius: 6px; padding: 10px; font-size: 12.5px; min-height: 120px; display: flex; flex-direction: column; }
.v-sign span { color: var(--muted); } .v-sign b { margin-top: 6px; } .v-sign i { margin-top: auto; border-top: 1px dotted #888; padding-top: 4px; font-style: normal; color: var(--muted); }
.v-notes { font-size: 13px; } .v-notes h3 { font-size: 14px; } .v-notes p { margin: 4px 0; }
.v-foot { font-size: 11.5px; color: var(--muted); text-align: center; margin-top: 18px; }


/* ---------- v2: search, savings/shares, member app ---------- */
.member-pick { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 0 12px; align-items: end; }
.member-pick + .muted { margin: -8px 0 10px; min-height: 1em; }
.payline.typed { grid-template-columns: 1.4fr 1fr 1fr auto; }
.payline.typed .span-amt { grid-column: span 2; }
.acc-savings { border-top-color: #1c5fa8; } .acc-shares { border-top-color: #0f7c74; }
.seg { display: grid; grid-template-columns: 1fr 1fr; background: #eef1ef; border-radius: 10px; padding: 4px; margin: 0 0 18px; }
.seg a { padding: 9px 6px; border-radius: 8px; text-decoration: none; color: var(--muted); font-weight: 600; font-size: 14px; min-height: 40px; }
.seg a.on { background: #fff; color: var(--black); box-shadow: 0 1px 3px rgba(0,0,0,.12); }
.flash.warnbox { background: var(--amber-l); border-color: #f0c98a; color: #6b4000; }
.flash.warnbox a { color: #6b4000; font-weight: 700; }
.hello { margin: -6px 0 14px; } .hello p { margin: 0; } .hello h2 { font-size: 22px; margin: 0; }
.sum-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; margin-bottom: 10px; }
.sum { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 14px 16px; border-left: 5px solid var(--green); display: flex; flex-direction: column; gap: 2px; box-shadow: var(--shadow); }
.sum span { font-size: 12.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .4px; color: var(--muted); }
.sum b { font-size: 20px; color: var(--black); } .sum small { color: var(--muted); font-size: 12.5px; }
.sum-welfare { border-left-color: var(--red); } .sum-subs { border-left-color: var(--green); } .sum-savings { border-left-color: #1c5fa8; }
.sum-shares { border-left-color: #0f7c74; } .sum-fines { border-left-color: var(--amber); }
.side .install { margin-top: 14px; padding: 0 2px; }
.side .install .btn { background: transparent; color: #fff; border-color: rgba(255,255,255,.5); font-size: 14px; }
.side .install .btn:hover { background: rgba(255,255,255,.1); }
.side .install-help { color: #d6e4de; padding: 6px 4px; }
.auth .install { margin-top: 12px; }
.tabbar { display: none; }
@media (max-width: 760px) {
  .member-pick { grid-template-columns: 1fr; }
  .member-pick label:last-child { order: -1; }
  .payline.typed { grid-template-columns: 1fr 1fr; } .payline.typed .span-amt { grid-column: auto; }
  body.role-member .menu-btn { display: none; }
  body.role-member .side { display: none; }
  body.role-member main { padding-bottom: 90px; }
  .tabbar { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; background: #fff; border-top: 1px solid var(--line); padding: 4px 4px calc(4px + env(safe-area-inset-bottom)); }
  .tabbar a { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 6px 2px; min-height: 52px; font-size: 11.5px; color: var(--muted); text-decoration: none; border-radius: 8px; }
  .tabbar a.on { color: var(--green-d); font-weight: 700; background: var(--green-l); }
  .tabbar .ic { width: 22px; height: 22px; }
  .sum-grid { grid-template-columns: 1fr 1fr; } .sum b { font-size: 17px; }
  .sum-grid .sum:last-child:nth-child(odd) { grid-column: span 2; }
  table.mtable th:first-child, table.mtable td:first-child { font-size: 12.5px; }
}
@media (display-mode: standalone) { .install { display: none !important; } }

/* settings: rights */
fieldset.rights { border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px 4px; margin: 4px 0 16px; }
fieldset.rights legend { font-weight: 700; padding: 0 6px; }
.form label.right { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; margin-bottom: 12px; cursor: pointer; }
.form label.right input { margin-top: 2px; flex: none; }
label.right b { display: block; font-size: 14px; color: var(--ink); } label.right small { display: block; color: var(--muted); font-size: 12.5px; }
@media (min-width: 900px) { fieldset.rights { display: grid; grid-template-columns: 1fr 1fr; gap: 0 22px; } fieldset.rights > p { grid-column: span 2; } }
td.chips span { display: inline-block; background: var(--green-l); color: #0b5c31; border-radius: 20px; padding: 1px 8px; margin: 0 4px 4px 0; font-size: 12px; }

hr.sep { border: 0; border-top: 1px solid var(--line); margin: 16px 0; }
details.left-box { margin-top: 10px; } details.left-box > summary { list-style: none; display: inline-flex; } details.left-box > summary::-webkit-details-marker { display: none; }
details.left-box[open] > summary { margin-bottom: 10px; } .restore-box { margin-top: 10px; }

/* print icon */
.icon-btn { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 8px 12px; min-height: 40px; cursor: pointer; font: inherit; font-size: 14px; color: var(--ink); }
.icon-btn:hover { border-color: var(--green); color: var(--green-d); }
.icon-btn + .who { margin-left: 12px; }
.print-head { gap: 14px; border-bottom: 3px solid var(--green); padding-bottom: 10px; margin-bottom: 14px; }
.print-head img { width: 56px; height: 56px; }
.print-head b { display: block; color: var(--green-d); font-size: 14px; } .print-head span { display: block; font-weight: 700; font-size: 18px; } .print-head small { color: var(--muted); }
.dl-group { display: inline-flex; flex-wrap: wrap; gap: 6px; align-items: center; font-size: 13px; color: var(--muted); }

pre.code { background: #1f2a26; color: #e7f4ec; padding: 10px 12px; border-radius: 8px; overflow-x: auto; white-space: pre-wrap; word-break: break-all; font-size: 13px; }

/* report periods */
.period { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: flex-end; margin-bottom: 14px; }
.period-quick { display: flex; flex-wrap: wrap; gap: 6px; }
.period-quick a { padding: 7px 12px; border-radius: 20px; border: 1px solid var(--line); background: #fff; color: var(--ink); text-decoration: none; font-size: 13.5px; min-height: 36px; display: inline-flex; align-items: center; }
.period-quick a.on { background: var(--side); color: #fff; border-color: var(--side); }
.period-form { display: flex; flex-wrap: wrap; gap: 8px; align-items: flex-end; }
.period-form label { font-size: 12.5px; font-weight: 600; color: #333; }
.period-form input, .period-form select { margin-top: 3px; min-height: 36px; padding: 5px 8px; width: auto; }
.period-head { margin-bottom: 12px; } .period-head h2, .period-head h3 { margin: 0; } .period-head p { margin: 2px 0 8px; }
.period-head .toolbar { margin-bottom: 4px; }
tr.bf td { background: #f3f7f5; }
.stat b.in { color: #0b6b38; } .stat b.out { color: #a00f16; }

/* books */
.book-title { font-size: 18px; margin: 6px 0 12px; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; }
.book-title small { font-size: 13px; font-weight: 400; color: var(--muted); }
.book-label { font-weight: 800; text-transform: uppercase; letter-spacing: .5px; font-size: 12.5px; color: var(--green-d); margin: 0 0 6px; }
.book-seg { max-width: 520px; }
.acc-sacco_petty { border-top-color: #6b4fa0; }
.v-sign.three { grid-template-columns: repeat(3, 1fr); }

/* bulk approvals */
table.bulk-table th.sel, table.bulk-table td.sel { width: 44px; text-align: center; vertical-align: middle; }
table.bulk-table td.sel input, table.bulk-table th.sel input { width: 22px; height: 22px; }
tr.picked td { background: #eef8f2 !important; }
.bulk-bar { position: sticky; bottom: 0; display: flex; flex-wrap: wrap; gap: 10px; align-items: center; padding: 12px 0 2px; background: #fff; border-top: 1px solid var(--line); margin-top: 8px; }
.bulk-bar span { font-weight: 700; min-width: 170px; }
.bulk-bar input { flex: 1; min-width: 200px; margin: 0; }
.btn:disabled { opacity: .45; cursor: not-allowed; }

@media print {
  .top, .side, .tabbar, .stripe, .noprint, .icon-btn, .dl-group, .install, .page-title, .bulk-bar, .sel, .seg, .tabs, .toolbar, .btn, .menu-btn, form.inline { display: none !important; }
  .print-only { display: flex; }
  body, .print-page { background: #fff; font-size: 12px; }
  main { padding: 0; max-width: none; } .shell { display: block; }
  .card { box-shadow: none; break-inside: avoid; }
  .voucher { box-shadow: none; padding: 0; max-width: none; margin: 0; }
  a { color: inherit; text-decoration: none; }
  tr.click { cursor: default; }
}

/* ---------- small screens ---------- */
@media (max-width: 900px) {
  .grid-main, .grid2 { grid-template-columns: 1fr; }
  .grid3, .grid4 { grid-template-columns: 1fr 1fr; }
  .payline { grid-template-columns: 1fr 1fr; }
  .v-sign { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  .menu-btn { display: block; }
  .side { position: fixed; top: 69px; left: 0; bottom: 0; z-index: 30; transform: translateX(-100%); transition: transform .2s; overflow-y: auto; }
  body.nav-open .side { transform: none; box-shadow: 0 0 0 100vmax rgba(0,0,0,.35); }
  main { padding: 16px 16px 50px; }
  .who span { display: none; }
  .icon-btn span { display: none; } .icon-btn { padding: 8px; }
  .brand small { display: none; } .brand b { font-size: 15px; }
  .grid3, .grid4 { grid-template-columns: 1fr; } .span2 { grid-column: auto; }
  ul.cols { columns: 1; }
  .facts { grid-template-columns: 1fr; } .facts dd { margin-bottom: 6px; }
  .steps li { font-size: 11px; }
  .voucher { padding: 20px 16px; }
}

/* ---------- SACCO (uses the existing colours) ---------- */
.section-title { font-size: 18px; margin: 4px 0 12px; color: var(--black); }
.card-head .section-title { margin: 0; }
.tabs a.on .pill { background: #fff; color: var(--side); }
.flash.info { background: var(--blue-l); border-color: #b9cfea; color: var(--blue); }
.card.narrow.wide { max-width: none; }
table.jv select, table.jv input { margin: 0; min-width: 120px; }
table.jv td { vertical-align: middle; }
table.jv tfoot th { text-transform: none; font-size: 14px; }
table.jv tfoot .in { color: #0b6b38; } table.jv tfoot .out { color: #a00f16; }
.queue-list .queue { margin-bottom: 10px; }
details.card.flush-top { margin: 14px 0 0; box-shadow: none; }
.form label[hidden], tr[hidden], .btn[data-jv-add][hidden] { display: none !important; }
.captcha { margin: 0 0 14px; padding: 12px; border: 1px dashed #c9d1cd; border-radius: 8px; }
.captcha-q { display: block; font-weight: 600; font-size: 13px; color: #333; margin-bottom: 6px; }
.captcha img { display: block; margin-bottom: 8px; max-width: 100%; }
.captcha label { margin-bottom: 4px !important; }
.sysdate { display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: center; font-size: 14px; margin: -6px 0 14px; color: var(--muted); }
.sysdate b { color: var(--black); }
a.sum { text-decoration: none; color: inherit; } a.sum:hover { border-color: var(--green); }
.sum-loans { border-left-color: var(--blue); }
fieldset.plain { border: 0; padding: 0; margin: 0; min-width: 0; }

/* ---------- SACCO transaction slip (receipt width; prints on A4 or a receipt printer) ---------- */
.slip-page { background: var(--bg); }
.slip { max-width: 360px; margin: 18px auto; background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 18px 18px 14px; font-size: 13px; color: #111; }
.slip-head { display: flex; gap: 10px; align-items: center; }
.slip-head img { width: 52px; height: 52px; object-fit: contain; }
.slip-head b { display: block; color: var(--green-d); font-size: 15px; } .slip-head span { display: block; font-size: 12px; } .slip-head small { display: block; color: var(--muted); font-size: 10.5px; }
.slip-stripe { height: 5px; margin: 10px 0 8px; background: linear-gradient(to bottom, var(--green) 0 33%, var(--red) 33% 66%, var(--black) 66%); }
.slip h1 { font-size: 15px; text-align: center; letter-spacing: .6px; margin: 4px 0 8px; }
.slip table { width: 100%; border-collapse: collapse; margin-bottom: 6px; }
.slip th, .slip td { padding: 3px 0; border: 0; background: none; font-size: 12.5px; text-transform: none; letter-spacing: 0; color: #111; vertical-align: top; }
.slip-meta th { width: 38%; color: var(--muted); font-weight: 600; }
.slip-lines { border-top: 1px dashed #999; border-bottom: 1px dashed #999; margin: 8px 0 !important; }
.slip-lines td { padding: 5px 0; } .slip-lines .sub { font-size: 11px; }
.slip-bal td { color: var(--muted); font-size: 11.5px; padding-top: 0 !important; }
.slip-total td { font-weight: 700; font-size: 14px; border-top: 1px solid #ccc; }
.slip-words { font-style: italic; margin: 4px 0; } .slip-note { margin: 3px 0; font-size: 12px; }
.slip-sign { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 18px 0 8px; }
.slip-sign div { border-top: 1px solid #333; padding-top: 4px; } .slip-sign span { display: block; font-size: 10.5px; color: var(--muted); } .slip-sign b { display: block; font-size: 12.5px; } .slip-sign small { font-size: 10.5px; color: var(--muted); }
.slip-printed { font-size: 10.5px; color: var(--muted); text-align: center; margin: 8px 0 2px; }
.slip-thanks { text-align: center; font-weight: 700; color: var(--green-d); font-size: 13.5px; margin: 6px 0 0; }
.slip-foot { flex-direction: column; align-items: center; margin-top: 14px; } .slip-foot p { margin: 2px 0; font-size: 11px; }
@media print { .slip-page { background: #fff; } .slip { border: 0; margin: 0 auto; max-width: 80mm; padding: 0; } }
input.inline-num { display: inline-block; width: 64px; min-height: 30px; padding: 2px 6px; margin: 0 2px; }
.idle-warn { position: fixed; z-index: 9999; left: 50%; bottom: 24px; transform: translateX(-50%); width: min(420px, calc(100% - 32px)); background: #fff; border: 2px solid var(--red); border-radius: 10px; padding: 14px 16px; box-shadow: 0 8px 30px rgba(0,0,0,.25); }
.idle-warn p { margin: 0 0 10px; }
@media print { .idle-warn { display: none; } }
.id-pics { display: flex; gap: 14px; flex-wrap: wrap; margin: 0 0 12px; }
.id-pics figure { margin: 0; width: 150px; }
.id-pics img, .id-none { width: 150px; height: 150px; object-fit: contain; border: 1px solid var(--line); border-radius: 8px; background: #fafafa; display: flex; align-items: center; justify-content: center; color: var(--muted); font-size: 12px; text-align: center; }
.id-pics figcaption { font-size: 12px; color: var(--muted); margin: 4px 0; }
.id-pics input[type=file] { font-size: 11px; width: 150px; }
.verify { display: flex; gap: 10px; align-items: flex-start; margin: -4px 0 12px; }
.verify img { width: 90px; height: 90px; object-fit: contain; border: 1px solid var(--line); border-radius: 6px; background: #fafafa; }
.grid2[hidden], div[hidden] { display: none !important; }
.app-foot{margin:28px 0 8px;padding-top:12px;border-top:1px solid var(--line);text-align:center;font-size:.8rem;color:var(--muted)}
body.member .app-foot,.tabbar~.app-foot{margin-bottom:72px}
@media print{.app-foot{margin-top:16px}}
.acc-info { border: 1px solid var(--line); border-radius: 8px; padding: 8px 12px; margin: -4px 0 12px; background: #fafafa; }
.acc-info dl { display: grid; grid-template-columns: auto 1fr; gap: 2px 14px; margin: 0; font-size: 13px; }
.acc-info dt { color: var(--muted); }
.acc-info dd { margin: 0; font-weight: 600; }
table.jv .jv-find { margin-bottom: 4px; font-size: 13px; }
/* member app: menu of sections instead of everything at once */
.my-menu { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 10px; margin-bottom: 14px; }
.my-tile { position: relative; display: flex; flex-direction: column; gap: 2px; background: #fff; border: 1px solid var(--line); border-left: 5px solid var(--green); border-radius: var(--r); padding: 14px 40px 14px 16px; text-decoration: none; color: var(--ink); box-shadow: var(--shadow); }
.my-tile b { font-size: 16px; color: var(--black); }
.my-tile small { color: var(--muted); font-size: 12.5px; }
.my-tile span { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); font-size: 26px; color: var(--muted); line-height: 1; }
.my-tile:hover, .my-tile:focus-visible { border-color: var(--green); }
.my-savings { border-left-color: #1c5fa8; } .my-loan { border-left-color: var(--side); } .my-subs, .my-history { border-left-color: var(--green); }
.my-fines, .my-other { border-left-color: var(--red); } .my-bio, .my-docs { border-left-color: var(--muted); }
.my-tabs { overflow-x: auto; flex-wrap: nowrap; padding-bottom: 4px; -webkit-overflow-scrolling: touch; }
.my-tabs a { white-space: nowrap; }
.my-title { font-size: 20px; margin: 0 0 12px; }
/* mobile money channel page */
dl.kv { display: grid; grid-template-columns: max-content 1fr; gap: 6px 16px; margin: 8px 0 12px; }
dl.kv dt { color: var(--muted); }
dl.kv dd { margin: 0; word-break: break-word; }
pre.api-doc { background: #f6f7f6; border: 1px solid var(--line); border-radius: 8px; padding: 12px; font-size: 12.5px; line-height: 1.45; overflow-x: auto; white-space: pre; }
@media (max-width: 600px) { dl.kv { grid-template-columns: 1fr; } dl.kv dt { margin-top: 6px; } }
.check-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 6px 16px; margin-bottom: 8px; }
ul.checklist { list-style: none; padding: 0; margin: 0 0 12px; }
ul.checklist li { padding: 3px 0; }
ul.checklist li.ok { color: var(--green-d, #00803d); }
ul.checklist li.miss { color: var(--red); font-weight: 600; }
/* JV: kind of account (General ledger / Member account) above the search box */
table.jv .jv-type { width: 100%; margin-bottom: 4px; font-size: .85rem; }
/* budget performance score */
.score.ok { color: #00803d; } .score.warn { color: #b26a00; } .score.bad { color: #c0392b; }
.stat-row .stat small { display: block; margin-top: 2px; }
