/* Staff workspace for mosques and networks: a light grey page, white cards, status tags, icons beside words. See DESIGN.md. */
:root {
  --page: #f5f6f4;
  --card: #ffffff;
  --ink: #18201c;
  --muted: #5f6964;
  --faint: #8b948f;
  --rule: #e4e7e4;
  --line: #d3d8d4;
  --orgc: #1f5c45;
  --green: #1d7a45; --greenBg: #e3f4e8;
  --blue: #1f5fae; --blueBg: #e5eefb;
  --amber: #925b00; --amberBg: #fdf0d5;
  --red: #b42318; --redBg: #fde8e6;
  --grey: #555e59; --greyBg: #eceeed;
  --sans: 'DM Sans', system-ui, sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, monospace;
  --radius: 12px;
  color-scheme: light;
}
*, ::before, ::after { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; background: var(--page); color: var(--ink); font: 15px/1.45 var(--sans); -webkit-font-smoothing: antialiased; }
h1, h2, h3 { margin: 0; font-weight: 700; line-height: 1.2; letter-spacing: -.01em; }
h1 { font-size: 26px; }
h2 { font-size: 17px; }
h3 { font-size: 15px; }
p { margin: 0; }
a { color: inherit; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.mono { font-family: var(--mono); font-size: .9em; }
.icon { flex: none; display: block; }
.amount { font-variant-numeric: tabular-nums; font-weight: 700; white-space: nowrap; }
.amount.big { font-size: 18px; }
.stack { display: grid; gap: 18px; }
.row { display: flex; align-items: center; gap: 10px; }
.row.wrap { flex-wrap: wrap; }
.row form { display: contents; }

/* Status tags */
.tag { display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 9px; border-radius: 12px; font-size: 12.5px; font-weight: 600; line-height: 1; white-space: nowrap; }
.tag::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.tag-green { background: var(--greenBg); color: var(--green); }
.tag-blue { background: var(--blueBg); color: var(--blue); }
.tag-amber { background: var(--amberBg); color: var(--amber); }
.tag-red { background: var(--redBg); color: var(--red); }
.tag-grey { background: var(--greyBg); color: var(--grey); }

.avatar { flex: none; display: inline-grid; place-items: center; border-radius: 50%; font-weight: 700; letter-spacing: .01em; }
.person { display: flex; align-items: center; gap: 12px; min-width: 0; }
.person > span:last-child { display: grid; gap: 1px; min-width: 0; }
.person strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Controls */
button, .primary, .secondary, .danger, .ghost { font: 600 14.5px/1 var(--sans); }
.primary, .secondary, .danger, .ghost { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 40px; padding: 0 16px; border-radius: 8px; text-decoration: none; cursor: pointer; white-space: nowrap; }
.primary { border: 1px solid var(--ink); background: var(--ink); color: #fff; }
.primary:hover { background: #2c3631; }
.secondary { border: 1px solid var(--line); background: #fff; color: var(--ink); box-shadow: 0 1px 1px #0000000a; }
.secondary:hover { background: #f8f9f8; }
.ghost { border: 0; background: none; color: var(--muted); padding: 0 8px; }
.ghost:hover { color: var(--ink); }
.danger { border: 1px solid var(--red); background: var(--red); color: #fff; }
.confirm { border-color: var(--green); background: var(--green); }
.confirm:hover { background: #17663a; }
.wide { width: 100%; }
button:disabled { opacity: .45; cursor: default; }
.linkBtn { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 2px; border: 0; background: none; color: var(--muted); font-size: 14px; font-weight: 600; text-decoration: none; cursor: pointer; }
.linkBtn:hover { color: var(--ink); }
.tiny { display: inline-flex; align-items: center; gap: 6px; min-height: 32px; padding: 0 10px; border: 1px solid var(--line); border-radius: 7px; background: #fff; font-size: 13px; cursor: pointer; white-space: nowrap; }
.tiny:hover { background: #f8f9f8; }
:is(a, button, input, select, textarea, summary):focus-visible { outline: 3px solid color-mix(in srgb, var(--orgc) 55%, transparent); outline-offset: 2px; }

.field { display: grid; gap: 6px; margin: 0; padding: 0; border: 0; font-weight: 600; font-size: 14px; }
.field legend { margin-bottom: 6px; padding: 0; }
.field > span:first-child { display: block; }
input:not([type=radio], [type=checkbox], [type=file]), select, textarea { width: 100%; min-height: 42px; padding: 9px 12px; border: 1px solid var(--line); border-radius: 8px; background: #fff; color: var(--ink); font: 400 15px/1.35 var(--sans); }
input:focus, select:focus, textarea:focus { border-color: var(--orgc); outline: 3px solid color-mix(in srgb, var(--orgc) 18%, transparent); }
textarea { resize: vertical; }
.check { display: flex; align-items: center; gap: 10px; min-height: 40px; font-weight: 500; }
.check input { width: 18px; height: 18px; accent-color: var(--orgc); }
.error { color: var(--red); font-weight: 600; }
.fieldErr { color: var(--red); font-size: 13px; font-weight: 600; }
.counter { justify-self: end; color: var(--faint); font-size: 12px; font-weight: 500; }
.dates { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.short { max-width: 180px; font-size: 18px !important; font-weight: 700 !important; }
.moneyInput { display: flex; align-items: center; gap: 8px; font-size: 18px; font-weight: 700; }
.searchBox { position: relative; display: flex; align-items: center; }
.searchBox .icon { position: absolute; left: 11px; color: var(--faint); pointer-events: none; }
.searchBox input { padding-left: 36px !important; }

.models { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 8px; }
.model { position: relative; }
.model input { position: absolute; opacity: 0; }
.model span { display: grid; gap: 4px; height: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; background: #fff; cursor: pointer; }
.model input:checked + span { border-color: var(--orgc); box-shadow: 0 0 0 1px var(--orgc); background: color-mix(in srgb, var(--orgc) 5%, #fff); }
.model input:focus-visible + span { outline: 3px solid color-mix(in srgb, var(--orgc) 55%, transparent); }
.model small { color: var(--muted); font-weight: 400; font-size: 13px; }

/* Notes and banners */
.note { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; padding: 12px 14px; border-radius: 10px; font-weight: 600; }
.note.success { background: var(--greenBg); color: var(--green); }
.error.banner { margin-bottom: 16px; padding: 12px 14px; border-radius: 10px; background: var(--redBg); }
.attention { display: flex; align-items: center; gap: 14px; margin-bottom: 20px; padding: 14px 16px; border: 1px solid #f1d9a6; border-radius: var(--radius); background: var(--amberBg); color: #5c3a00; }
.attention .iconWrap { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: #fff6e3; color: var(--amber); }
.attention > span:nth-child(2) { flex: 1; display: grid; gap: 1px; }
.attention strong { font-size: 15px; }

/* Sign in */
.signin { display: grid; align-content: center; justify-items: center; min-height: 100dvh; padding: 24px 16px; }
.signinCard { width: min(400px, 100%); padding: 32px; border: 1px solid var(--rule); border-radius: 16px; background: #fff; box-shadow: 0 1px 2px #0000000a, 0 8px 24px #0000000a; }
.signinCard .mark { margin-bottom: 8px; }

/* Shell */
.app { display: grid; grid-template-columns: 240px 1fr; min-height: 100dvh; }
.side { position: sticky; top: 0; display: flex; flex-direction: column; gap: 2px; height: 100dvh; padding: 18px 12px; border-right: 1px solid var(--rule); background: #fff; }
.brand { display: flex; align-items: center; gap: 10px; padding: 0 8px 18px; }
.brand strong { display: block; font-size: 15px; line-height: 1.25; }
.mark { flex: none; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 9px; background: var(--orgc); color: #fff; font-size: 17px; font-weight: 700; }
.navItem { display: flex; align-items: center; gap: 10px; min-height: 38px; padding: 0 10px; border-radius: 8px; color: #3c4641; text-decoration: none; font-weight: 600; font-size: 14.5px; }
.navItem .icon { color: var(--faint); }
.navItem:hover { background: #f3f5f3; color: var(--ink); }
.navItem[aria-current] { background: color-mix(in srgb, var(--orgc) 10%, #fff); color: var(--orgc); }
.navItem[aria-current] .icon { color: var(--orgc); }
.navItem .badge { margin-left: auto; }
.navItem.public { margin-top: auto; color: var(--muted); font-weight: 500; }
.me { display: flex; align-items: center; gap: 10px; padding: 12px 8px 0; border-top: 1px solid var(--rule); }
.me > span:nth-child(2) { flex: 1; min-width: 0; }
.me strong, .me small { display: block; }
.me strong { font-size: 14px; }
.me small { color: var(--muted); font-size: 12.5px; }
.me form { margin: 0; }
.me button { display: grid; place-items: center; width: 34px; height: 34px; border: 0; border-radius: 8px; background: none; color: var(--muted); cursor: pointer; }
.me button:hover { background: #f3f5f3; color: var(--ink); }
.badge { display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 7px; border-radius: 11px; background: var(--amber); color: #fff; font-size: 12px; font-weight: 700; }

.main { width: 100%; min-width: 0; max-width: 1080px; padding: 28px 36px 80px; }
.pageHead { display: grid; gap: 4px; margin-bottom: 22px; }
.pageHead.split { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.pageHead .sub { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; color: var(--muted); }
.back { display: inline-flex; align-items: center; gap: 6px; margin-bottom: 12px; color: var(--muted); font-size: 14px; font-weight: 600; text-decoration: none; }
.back:hover { color: var(--ink); }
.tabs { display: none; }

/* Cards */
.card, .panel { margin-bottom: 20px; border: 1px solid var(--rule); border-radius: var(--radius); background: var(--card); box-shadow: 0 1px 2px #0000000a; }
.panel { padding: 20px; }
.cardHead { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--rule); }
.cardHead h2 { display: flex; align-items: center; gap: 8px; }
.cardHead h2 .count { color: var(--faint); font-weight: 600; }
.cardBody { padding: 20px; }
.panel > h2 { margin-bottom: 14px; }
.formFoot { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 4px; padding-top: 16px; border-top: 1px solid var(--rule); }
.empty { display: grid; justify-items: center; gap: 8px; padding: 32px 20px; color: var(--muted); text-align: center; }
.empty .icon { color: var(--faint); }

/* Stat cards */
.kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-bottom: 20px; }
.kpi { display: grid; gap: 6px; align-content: start; padding: 16px 18px; border: 1px solid var(--rule); border-radius: var(--radius); background: #fff; box-shadow: 0 1px 2px #0000000a; }
.kpi > span { display: flex; align-items: center; gap: 7px; color: var(--muted); font-size: 13px; font-weight: 600; }
.kpi > span .icon { color: var(--faint); }
.kpi strong { font-size: 26px; line-height: 1.1; font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.kpi small { color: var(--muted); font-size: 12.5px; }
.kpi .up { display: inline-flex; align-items: center; gap: 4px; color: var(--green); font-weight: 600; }

/* Progress */
.bar { display: flex; height: 8px; background: #e9ecea; border-radius: 4px; overflow: hidden; }
.bar span { display: block; height: 100%; background: var(--orgc); }
.bar .waitingFill { background: color-mix(in srgb, var(--orgc) 30%, #fff); }
.progressBig { display: grid; gap: 10px; }
.progressBig .bar { height: 12px; border-radius: 6px; }
.money3 { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.money3 strong { font-size: 32px; line-height: 1; font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.money3 .pct { margin-left: auto; font-size: 20px; font-weight: 700; color: var(--orgc); }
.legend { display: flex; gap: 18px; flex-wrap: wrap; color: var(--muted); font-size: 13px; }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend i { width: 10px; height: 10px; border-radius: 3px; background: var(--orgc); }
.legend i.w { background: color-mix(in srgb, var(--orgc) 30%, #fff); }

/* Drive rows */
.driveCards { display: grid; }
.driveCard { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px 20px; align-items: center; padding: 16px 20px; border-top: 1px solid var(--rule); color: inherit; text-decoration: none; }
.driveCard:first-child { border-top: 0; }
a.driveCard:hover { background: #fafbfa; }
.driveCard .title { display: grid; gap: 4px; min-width: 0; }
.driveCard h3 { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 15.5px; }
.driveCard .meta { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; color: var(--muted); font-size: 13px; }
.driveCard .meta span { display: inline-flex; align-items: center; gap: 5px; }
.driveCard .end { display: grid; justify-items: end; gap: 2px; text-align: right; }
.driveCard .prog { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 12px; }
.driveCard .prog b { min-width: 40px; text-align: right; font-size: 13px; color: var(--muted); }

/* Payments */
.payFilter { display: flex; flex-wrap: wrap; gap: 10px; padding: 14px 20px; border-bottom: 1px solid var(--rule); }
.payFilter select { width: auto; min-width: 220px; }
.payFilter .searchBox { flex: 1; min-width: 200px; max-width: 320px; }
.cards { display: grid; }
.pay { display: grid; grid-template-columns: minmax(0, 1fr) 150px 90px auto; align-items: center; gap: 16px; padding: 14px 20px; border-top: 1px solid var(--rule); }
.pay:first-child { border-top: 0; }
.pay:hover { background: #fafbfa; }
.payRefs { display: grid; gap: 2px; font-size: 12.5px; }
.pay .amount { text-align: right; }
.reserved { border-top: 1px solid var(--rule); }
.reserved summary { display: flex; align-items: center; gap: 10px; padding: 14px 20px; font-weight: 600; cursor: pointer; }

/* Lists and tables */
.list { margin: 0; padding: 0; list-style: none; }
.list li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 20px; border-top: 1px solid var(--rule); }
.list li:first-child { border-top: 0; }
table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
th, td { padding: 11px 20px; border-top: 1px solid var(--rule); text-align: left; font-weight: 500; vertical-align: middle; }
thead th { border-top: 0; background: #fafbfa; color: var(--muted); font-size: 12.5px; font-weight: 600; }
tbody tr:hover { background: #fafbfa; }
.num { text-align: right; }
.totalRow th, .totalRow td { background: #fafbfa; font-weight: 700; }
.facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; margin: 0; }
.facts > div { display: grid; gap: 3px; padding: 14px 20px; border-left: 1px solid var(--rule); }
.facts > div:first-child { border-left: 0; }
.facts dt { display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: 12.5px; font-weight: 600; }
.facts dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; }

/* Wizard */
.wizard { display: flex; gap: 6px; margin: 0 0 20px; padding: 0; list-style: none; counter-reset: none; }
.wizard li { flex: 1; }
.wizard a, .wizard span { display: flex; align-items: center; gap: 8px; height: 44px; padding: 0 14px; border: 1px solid var(--rule); border-radius: 10px; background: #fff; color: var(--muted); font-weight: 600; font-size: 14px; text-decoration: none; }
.wizard .done a { color: var(--ink); }
.wizard .done a .icon { color: var(--green); }
.wizard [aria-current] { border-color: var(--orgc); box-shadow: 0 0 0 1px var(--orgc); color: var(--ink); }
.split2 { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 20px; align-items: start; }
.split2 > .panel, .split2 > .card { margin-bottom: 0; }
.sticky { position: sticky; top: 20px; }

/* WhatsApp message previews */
.waPane { padding: 16px 14px; border-radius: var(--radius); background: #efe7dd url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='40'%3E%3Cpath d='M20 8l3 6-3 6-3-6zM6 26l2 4-2 4-2-4zM34 28l2 3-2 3-2-3z' fill='%23d9cdbd' opacity='.55'/%3E%3C/svg%3E"); display: grid; gap: 10px; }
.waHead { display: flex; align-items: center; gap: 8px; margin: -16px -14px 4px; padding: 10px 14px; border-radius: var(--radius) var(--radius) 0 0; background: #075e54; color: #fff; font-size: 14px; font-weight: 600; }
.waHead .dot { width: 28px; height: 28px; border-radius: 50%; background: var(--orgc); display: grid; place-items: center; font-weight: 700; }
.bubble { position: relative; max-width: 92%; padding: 8px 10px 6px; border-radius: 8px; background: #fff; box-shadow: 0 1px 1px #0000001f; font-size: 14px; line-height: 1.4; overflow-wrap: anywhere; }
.bubble.mine { justify-self: end; background: #d9fdd3; }
.bubble .meta { display: block; margin-top: 2px; color: #667781; font-size: 11px; text-align: right; }
.waButtons { display: grid; gap: 1px; margin: 6px -10px -6px; border-top: 1px solid #e9edef; }
.waButtons span { display: flex; align-items: center; justify-content: center; gap: 6px; min-height: 38px; color: #027eb5; font: 600 14px/1 var(--sans); background: #fff; border-top: 1px solid #e9edef; }
.waButtons > :first-child { border-top: 0; }
.waButtons > :last-child { border-radius: 0 0 8px 8px; }
.previewList { display: grid; gap: 18px; }
.previewItem { display: grid; gap: 8px; }
.previewItem > strong { display: flex; align-items: center; gap: 8px; font-size: 14px; }

/* Message timeline */
.timeline { position: relative; margin: 0; padding: 4px 20px; list-style: none; }
.timeline > li { position: relative; display: grid; grid-template-columns: 36px minmax(0, 1fr) auto; gap: 14px; padding: 14px 0; }
.timeline > li::before { content: ''; position: absolute; left: 17px; top: 50px; bottom: -14px; width: 2px; background: var(--rule); }
.timeline > li:last-child::before { display: none; }
.marker { position: relative; z-index: 1; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--greyBg); color: var(--grey); }
.marker.done { background: var(--greenBg); color: var(--green); }
.marker.now { background: var(--blueBg); color: var(--blue); }
.marker.wait { background: var(--amberBg); color: var(--amber); }
.marker.bad { background: var(--redBg); color: var(--red); }
.stepBody { display: grid; gap: 4px; min-width: 0; }
.stepBody .head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.stepBody strong { font-size: 15px; }
.stepEnd { display: grid; justify-items: end; align-content: start; gap: 6px; text-align: right; }
.funnel { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 6px; color: var(--muted); font-size: 13px; }
.funnel span { display: inline-flex; align-items: center; gap: 5px; }
.funnel b { color: var(--ink); font-variant-numeric: tabular-nums; }
.funnel .icon { color: var(--faint); }
.st-cancelled { opacity: .55; }

/* Subscribers, WhatsApp */
.qrBox { flex: none; width: 150px; padding: 8px; background: #fff; border: 1px solid var(--rule); border-radius: 10px; }
.qrBox svg { display: block; width: 100%; height: auto; }
.linkBox { display: flex; gap: 8px; align-items: center; }
.linkBox input { font-family: var(--mono); font-size: 13px !important; }
.numberCard { display: flex; align-items: center; gap: 16px; padding: 20px; }
.numberCard .waIcon { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 12px; background: #e3f6ea; color: #128c4b; }
.numberCard > span:nth-child(2) { flex: 1; display: grid; gap: 2px; }
.numberCard strong { font-size: 17px; }
.meter { display: block; height: 8px; border-radius: 4px; background: #e9ecea; overflow: hidden; }
.meter span { display: block; height: 100%; background: #25a35a; }
.mosqueTable td:first-child a { font-weight: 600; text-decoration: none; }
.mosqueTable td:first-child a:hover { text-decoration: underline; }

@media (max-width: 1100px) { .split2 { grid-template-columns: 1fr; } .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Phone: bottom tabs replace the sidebar */
@media (max-width: 760px) {
  .app { display: block; }
  .side { display: none; }
  .main { padding: 18px 14px calc(88px + env(safe-area-inset-bottom)); }
  .pay { grid-template-columns: 1fr auto; padding: 14px 16px; }
  .payRefs { display: none; }
  .pay .row { grid-column: 1 / -1; }
  .pay .row > * { flex: 1; }
  .facts { grid-template-columns: 1fr; }
  .facts > div { border-left: 0; border-top: 1px solid var(--rule); }
  .wizard { overflow-x: auto; }
  .wizard a, .wizard span { white-space: nowrap; }
  .timeline > li { grid-template-columns: 36px 1fr; }
  .stepEnd { grid-column: 2; justify-items: start; text-align: left; }
  .dates { grid-template-columns: 1fr; }
  table { display: block; overflow-x: auto; white-space: nowrap; }
  .tabs { position: fixed; inset: auto 0 0; z-index: 5; display: grid; grid-template-columns: repeat(var(--tabs, 5), 1fr); padding-bottom: env(safe-area-inset-bottom); border-top: 1px solid var(--rule); background: #fff; }
  .tabs a { position: relative; display: grid; justify-items: center; gap: 3px; padding: 9px 0 10px; color: var(--muted); font-size: 11.5px; font-weight: 600; text-decoration: none; }
  .tabs a[aria-current] { color: var(--orgc); }
  .tabs .badge { position: absolute; top: 3px; left: calc(50% + 6px); min-width: 18px; height: 18px; padding: 0 5px; font-size: 11px; }
}
.driveCard h3 a { text-decoration: none; }
.driveCard h3 a:hover { text-decoration: underline; }

/* Drive photo: picked in step 1, shown at the top of WhatsApp appeals. */
.photoPick { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.photoThumb { width: 120px; height: 80px; object-fit: cover; border: 1px solid var(--rule); border-radius: 8px; }
.photoBtn { position: relative; overflow: hidden; }
.photoBtn input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.photoBtn:focus-within { outline: 3px solid color-mix(in srgb, var(--orgc) 55%, transparent); outline-offset: 2px; }
.waImg { display: block; width: calc(100% + 12px); max-height: 220px; margin: -4px -6px 8px; object-fit: cover; border-radius: 6px; }
.driveThumb { width: 64px; height: 48px; object-fit: cover; border-radius: 8px; flex: none; }
.colorPick { display: flex; align-items: center; gap: 10px; }
.colorPick input { width: 52px; height: 42px; padding: 3px; border: 1px solid var(--line); border-radius: 8px; background: #fff; cursor: pointer; }

/* Bank statement: choose the file, check the columns, confirm the matches. */
.filePick { position: relative; display: flex; align-items: center; gap: 14px; padding: 22px; border: 1.5px dashed var(--line); border-radius: var(--radius); background: #fafbfa; cursor: pointer; }
.filePick:hover { border-color: var(--orgc); background: color-mix(in srgb, var(--orgc) 4%, #fff); }
.filePick:focus-within { outline: 3px solid color-mix(in srgb, var(--orgc) 55%, transparent); outline-offset: 2px; }
.filePick[data-chosen] { border-style: solid; border-color: var(--orgc); }
.filePick .iconWrap { flex: none; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: color-mix(in srgb, var(--orgc) 10%, #fff); color: var(--orgc); }
.filePick > span:nth-child(2) { display: grid; gap: 3px; }
.filePick input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.colPick { display: grid; grid-template-columns: 1fr 1fr; align-items: start; gap: 18px 20px; }
.colPick fieldset { grid-column: 1 / -1; }
.checks { display: flex; flex-wrap: wrap; gap: 0 22px; }
.tableScroll { overflow-x: auto; }
table.statement { white-space: nowrap; font-size: 13.5px; }
table.statement th { vertical-align: top; }
table.statement th > span { display: block; }
.colRole { min-height: 24px; margin-top: 6px; }
table.statement [data-is="credit"] { background: color-mix(in srgb, var(--green) 6%, #fff); }
table.statement thead [data-is="credit"] { background: color-mix(in srgb, var(--green) 10%, #fff); color: var(--ink); }
table.statement [data-is="date"], table.statement [data-is="details"] { color: var(--ink); }
table.statement td:not([data-is]), table.statement td[data-is=""] { color: var(--faint); }
.formFoot.bare { margin-top: 0; padding-top: 0; border-top: 0; }
.formFoot.flush { margin-top: 0; border-top: 1px solid var(--rule); padding: 14px 20px; }
.match { display: grid; grid-template-columns: auto minmax(0, 1fr) minmax(0, 1.1fr) 100px; align-items: center; gap: 16px; padding: 14px 20px; border-top: 1px solid var(--rule); }
.match:first-child { border-top: 0; }
label.match { cursor: pointer; }
label.match:hover { background: #fafbfa; }
.match > input { width: 18px; height: 18px; accent-color: var(--orgc); }
.match .stmt { display: grid; justify-items: start; gap: 4px; color: var(--muted); overflow-wrap: anywhere; }
.match .flag { display: grid; place-items: center; width: 18px; color: var(--amber); }
.match .amount { text-align: right; }
@media (max-width: 760px) {
  .colPick { grid-template-columns: 1fr; }
  .match { grid-template-columns: auto minmax(0, 1fr) auto; }
  .match .stmt { grid-column: 2 / -1; grid-row: 2; }
  .cardHead { flex-wrap: wrap; padding: 14px 16px; }
  .match { padding: 14px 16px; }
}
a.tiny { color: inherit; text-decoration: none; }

/* A section of a form that's open only when wanted, such as the drive's Malay words. */
.disclose { border: 1px solid var(--rule); border-radius: 10px; }
.disclose summary { display: flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px; font-weight: 600; cursor: pointer; }
.disclose summary .icon { color: var(--faint); }
.disclose[open] summary { border-bottom: 1px solid var(--rule); }
.disclose > .stack { padding: 14px; gap: 14px; }
.disclose p { margin: 0; }

/* Message previews: English or Malay. */
.previews { display: grid; gap: 14px; }
.langSwitch { display: inline-flex; justify-self: start; padding: 3px; border: 1px solid var(--rule); border-radius: 9px; background: #f3f5f3; }
.langSwitch label { position: relative; }
.langSwitch input { position: absolute; opacity: 0; }
.langSwitch span { display: inline-flex; align-items: center; gap: 6px; min-height: 32px; padding: 0 12px; border-radius: 7px; color: var(--muted); font-weight: 600; font-size: 13.5px; cursor: pointer; }
.langSwitch input:checked + span { background: #fff; color: var(--ink); box-shadow: 0 1px 2px #00000014; }
.langSwitch input:focus-visible + span { outline: 3px solid color-mix(in srgb, var(--orgc) 55%, transparent); }
.previews:has(input[value="en"]:checked) [data-lang="ms"], .previews:has(input[value="ms"]:checked) [data-lang="en"] { display: none; }
.moreList li { padding: 0; }
.moreList a { display: flex; align-items: center; justify-content: space-between; width: 100%; min-height: 52px; padding: 0 20px; color: inherit; font-weight: 600; text-decoration: none; }
.moreList a .icon { color: var(--faint); }
