/* Pay bills, mobile money, bulk payments, reports, registration and password reset. Uses the tokens in app.css. */

.seg { display: inline-flex; flex-wrap: wrap; padding: 4px; border-radius: 12px; background: var(--soft); gap: 2px; }
.seg button { padding: 8px 14px; border-radius: 9px; font-size: 13.5px; color: var(--muted); }
.seg button.on { background: var(--panel); color: var(--ink); box-shadow: var(--shadow-sm); font-weight: 600; }
.reg-seg { display: flex; }
.reg-seg button { flex: 1; }

.bad { color: var(--bad); }
.ok { color: var(--good); }
.bad-text { color: var(--bad); }
.field.invalid select { border-color: var(--bad); box-shadow: 0 0 0 4px color-mix(in srgb, var(--bad) 16%, transparent); }
.field select:disabled { opacity: .6; }

/* mobile money band */
.momo-band { display: flex; gap: 14px; align-items: center; margin: -4px 0 20px; padding: 14px 16px; border-radius: 14px; background: linear-gradient(120deg, #ffcb05, #ffdd55); color: #1d1700; }
.momo-band > span { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; background: #1d1700; color: #ffcb05; }
.momo-band b { display: block; font-family: var(--display); font-size: 16px; }
.momo-band small { font-size: 12.5px; opacity: .8; }

/* lookups */
.inline-go { display: flex; gap: 8px; }
.inline-go input { flex: 1; min-width: 0; }
.inline-go .btn { white-space: nowrap; }
.inline-check { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin: -4px 0 16px; }
.inline-check small { font-size: 13px; color: var(--muted); display: inline-flex; gap: 6px; align-items: center; }
.inline-check small.ok { color: var(--good); }
.inline-check small.bad { color: var(--bad); }
.bill-card { border: 1px solid var(--line); border-radius: 14px; padding: 16px; margin: 0 0 18px; background: var(--panel-2); }
.bill-top { display: flex; justify-content: space-between; gap: 16px; margin-bottom: 10px; }
.bill-top b { display: block; font-size: 15.5px; margin: 2px 0; }
.bill-top .r { text-align: right; }
.bill-top .r b { font-family: var(--display); font-size: 22px; }
table.mini { width: 100%; font-size: 13px; border-collapse: collapse; }
table.mini td { padding: 6px 4px; border-top: 1px dashed var(--line); }
td.r, th.r { text-align: right; }

/* bulk */
.wizard.wide { grid-template-columns: minmax(0, 1fr) 300px; }
.bulk-src { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 16px; margin: 16px 0 18px; align-items: stretch; }
.drop { display: grid; place-items: center; text-align: center; gap: 6px; padding: 24px 16px; border: 2px dashed var(--line); border-radius: 16px; cursor: pointer; color: var(--muted); transition: border-color .2s, background .2s; }
.drop .icon { width: 26px; height: 26px; color: var(--brand); transform: rotate(180deg); }
.drop b { color: var(--ink); font-weight: 600; }
.drop u { color: var(--brand); }
.drop small { font-size: 12.5px; }
.drop:hover, .drop.over { border-color: var(--brand); background: var(--tint); }
.drop.busy { opacity: .6; pointer-events: none; }
.tpl { display: flex; flex-direction: column; gap: 10px; justify-content: center; }
.bulk-sum { display: flex; flex-wrap: wrap; gap: 8px 18px; align-items: center; padding: 12px 14px; border-radius: 12px; background: var(--soft); margin-bottom: 12px; font-size: 14px; }
.bulk-sum span { display: inline-flex; gap: 6px; align-items: center; }
.bulk-sum .btn:first-of-type { margin-left: auto; }
.bulk-table { max-height: 420px; overflow: auto; margin-bottom: 18px; border: 1px solid var(--line); border-radius: 14px; }
.bulk-table thead th { position: sticky; top: 0; background: var(--panel); z-index: 1; }
.bulk-table small.bad { display: block; font-size: 12px; }
tr.bad-row { background: color-mix(in srgb, var(--bad-bg) 55%, transparent); }

/* reports */
.rep-dates { display: flex; gap: 10px; margin-left: auto; }
.rep-dates .field { margin: 0; }
@media (max-width: 760px) { .rep-dates { margin-left: 0; width: 100%; } .rep-dates .field { flex: 1; } }
.export-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; }
.export { display: flex; flex-direction: column; gap: 6px; padding: 18px; border: 1px solid var(--line); border-radius: 16px; color: inherit; text-decoration: none; transition: border-color .2s, transform .2s var(--ease); }
.export:hover { border-color: var(--brand); transform: translateY(-2px); }
.export i { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--tint); color: var(--brand); margin-bottom: 6px; }
.export small { color: var(--muted); font-size: 13px; flex: 1; }
.export .link { display: inline-flex; gap: 6px; align-items: center; margin-top: 8px; font-size: 13.5px; }

/* signed out */
.auth-meta .link { font-size: 13.5px; }
.open-acct { text-align: center; margin: 18px 0 0; font-size: 14px; color: var(--muted); }
.code-input { letter-spacing: .5em; font-size: 20px; text-align: center; }
.register { position: fixed; inset: 0; z-index: 40; overflow: auto; background: radial-gradient(1200px 500px at 10% -10%, var(--tint), transparent), var(--bg); }
.reg-wrap { max-width: 640px; margin: 0 auto; padding: 24px 16px 60px; }
.reg-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.reg-logo { height: 40px; }
:root[data-theme="dark"] .reg-logo { filter: brightness(0) invert(1); }
.reg-card { padding: 28px; }
.reg-card h2 { font-family: var(--display); font-size: 24px; margin: 18px 0 4px; }
.reg-card .lead { color: var(--muted); margin: 0 0 20px; }
.reg-files { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0; }
.file-chip { display: inline-flex; align-items: center; gap: 6px; padding: 6px 6px 6px 10px; border-radius: 999px; background: var(--soft); font-size: 13px; max-width: 100%; }
.file-chip button { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; color: var(--muted); }
.file-chip button:hover { background: var(--bad-bg); color: var(--bad); }
.file-chip .icon, .file-chip button .icon { width: 14px; height: 14px; }

@media (max-width: 1100px) { .wizard.wide { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 640px) {
  .bulk-src { grid-template-columns: minmax(0, 1fr); }
  .bulk-sum .btn:first-of-type { margin-left: 0; }
  .reg-card { padding: 20px 16px; }
  .inline-go { flex-direction: column; }
}
