/* ===================== Maloo Growth (8 Nov 2026) ===================== */
.ic { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 12px; flex: 0 0 auto; background: var(--soft); color: var(--navy); }
.ic.sm { width: 30px; height: 30px; border-radius: 9px; }
.k-navy { background: #e8edf7 !important; color: #1f3a6e !important; } .k-green { background: #e3f6ec !important; color: #138a52 !important; }
.k-orange { background: #fff1e3 !important; color: #d26a12 !important; } .k-purple { background: #f0eafd !important; color: #6b46c1 !important; }
.k-red { background: #fde8ea !important; color: #c8323f !important; } .k-blue { background: #e6f1fd !important; color: #1f6fd1 !important; }
.k-gold { background: #fff6dc !important; color: #b07a06 !important; } .k-grey { background: #eef0f4 !important; color: #59627a !important; }
.tile .ic { border-radius: 16px; }
.tiles.big2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.tile { position: relative; }
.bigtile { padding: 22px 10px 18px; font-size: 0.92rem; font-weight: 700; gap: 12px; }
.bigtile .ic { width: 58px; height: 58px; }
.tbadge { position: absolute; top: 10px; right: 10px; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 11px; background: var(--acc); color: #fff; font-size: 0.72rem; font-weight: 800; display: flex; align-items: center; justify-content: center; }
.unitband { display: flex; align-items: center; gap: 12px; background: linear-gradient(120deg, #0b2545, #1f4b8a); color: #fff; padding: 16px 18px; overflow: hidden; position: relative; }
.unitband::after { content: ""; position: absolute; right: -30px; top: -30px; width: 140px; height: 140px; border-radius: 50%; background: rgba(255, 255, 255, 0.06); }
.unitband.u-floorzy { background: linear-gradient(120deg, #0d3b2e, #1d7a55); } .unitband.u-vito { background: linear-gradient(120deg, #0b2545, #1f5aa6); }
.unitband.u-dush { background: linear-gradient(120deg, #1d1d24, #4a3a1c); } .unitband.u-general { background: linear-gradient(120deg, #2a2466, #4b3fa0); }
.ub-name { font-size: 1.15rem; font-weight: 800; letter-spacing: 0.01em; } .ub-tag { font-size: 0.72rem; opacity: 0.85; letter-spacing: 0.06em; text-transform: uppercase; margin-top: 2px; }
.ub-lead { text-align: right; display: flex; flex-direction: column; font-size: 0.8rem; z-index: 1; } .ub-lead .tiny { opacity: 0.75; }
.perfcard .stat .v { font-size: 1.3rem; }
.quote { display: flex; gap: 10px; align-items: center; background: linear-gradient(120deg, #fdf4de, #edf2fb); color: #0b1f4d; font-weight: 600; font-size: 0.92rem; box-shadow: none; }
.grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; } .grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.grid2wide { display: grid; grid-template-columns: 1fr 1.4fr; gap: 16px; } @media (max-width: 900px) { .grid2wide { grid-template-columns: 1fr; } }
.grid4.g6 { grid-template-columns: repeat(6, minmax(0, 1fr)); } @media (max-width: 1100px) { .grid4.g6 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 700px) { .grid4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .grid4.g6 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.stat.gold { background: linear-gradient(120deg, #fff6dc, #fff); } .stat.warn .v { color: var(--red); }
.taskcard { display: flex; flex-direction: column; gap: 12px; }
.taskmeta { display: flex; gap: 18px; flex-wrap: wrap; } .taskmeta > div { display: flex; flex-direction: column; gap: 2px; } .taskmeta b { font-size: 0.9rem; }
.rowcard { display: flex; align-items: center; gap: 12px; border: 0; width: 100%; font: inherit; color: inherit; cursor: pointer; padding: 14px 14px 14px 18px; position: relative; overflow: hidden; }
.rbar { position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: #d26a12; }
.rbar.s-Won, .rbar.s-Completed, .rbar.s-Approved, .rbar.s-Paid { background: #138a52; } .rbar.s-Inprogress, .rbar.s-Submitted { background: #1f6fd1; }
.rbar.s-Lost, .rbar.s-Rejected { background: #c8323f; } .rbar.s-Needclarification { background: #d26a12; }
.dashed { border: 1.5px dashed var(--line) !important; background: var(--card) !important; color: var(--navy) !important; box-shadow: none !important; }
.colrow { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 8px; border-radius: 14px; background: var(--card); box-shadow: inset 0 0 0 1px var(--line); }
.colrow .grow { flex: 1 1 140px; } .colmove { display: flex; flex-direction: column; } .colmove .iconbtn { width: 26px; height: 20px; background: transparent; color: var(--muted); }
.iconbtn.sm { width: 32px; height: 32px; background: var(--grey-bg); color: var(--ink-2); }
.typechip { border: 0; background: var(--grey-bg); border-radius: 999px; padding: 7px 10px; font: 600 0.78rem var(--font); display: inline-flex; gap: 4px; align-items: center; cursor: pointer; color: var(--ink); }
.reqbox { display: inline-flex; gap: 5px; align-items: center; font-size: 0.74rem; color: var(--muted); } .optsin { flex-basis: 100% !important; }
.in.sm { padding: 8px 10px; min-height: 36px; font-size: 0.88rem; }
.stepn { width: 24px; height: 24px; border-radius: 50%; background: var(--navy); color: #fff; font-size: 0.74rem; font-weight: 800; display: flex; align-items: center; justify-content: center; flex: 0 0 auto; }
.typepick { width: 100%; border: 0; background: var(--card); border-radius: 14px; box-shadow: inset 0 0 0 1px var(--line); cursor: pointer; font: inherit; color: inherit; }
.typepick.on { box-shadow: inset 0 0 0 2px var(--navy); }
.radio { width: 20px; height: 20px; border-radius: 50%; box-shadow: inset 0 0 0 2px #c3c9d3; flex: 0 0 auto; } .radio.on { box-shadow: inset 0 0 0 6px var(--navy); }
.choice { border: 0; background: var(--card); border-radius: 16px; padding: 14px; display: flex; flex-direction: column; gap: 6px; align-items: flex-start; box-shadow: inset 0 0 0 1px var(--line); cursor: pointer; font: inherit; color: inherit; text-align: left; }
.choice.on { box-shadow: inset 0 0 0 2px var(--navy); background: #f4f7fc; }
.steps { display: flex; flex-direction: column; } .stp { display: flex; gap: 12px; align-items: flex-start; padding: 12px 4px; position: relative; }
.stp + .stp::before { content: ""; position: absolute; left: 15px; top: -12px; height: 24px; width: 2px; background: var(--line); }
.stp .dot { width: 24px; height: 24px; border-radius: 50%; flex: 0 0 auto; display: flex; align-items: center; justify-content: center; font-size: 0.75rem; font-weight: 800; background: var(--grey-bg); color: var(--muted); margin-left: 4px; z-index: 1; }
.stp.done .dot { background: #138a52; color: #fff; } .stp.cur .dot { background: var(--navy); color: #fff; box-shadow: 0 0 0 4px #e8edf7; }
.thumbs.sm img { width: 44px; height: 44px; } .minithumb { width: 40px; height: 40px; border-radius: 8px; object-fit: cover; }
.avatar.lg { width: 56px; height: 56px; font-size: 1.05rem; } .avatar.sm { width: 32px; height: 32px; font-size: 0.7rem; }
.kvlist { display: flex; flex-direction: column; gap: 10px; } .kvr { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; } .kvr > :last-child { text-align: right; }
.card.soft { background: var(--soft); box-shadow: none; }
.scorepick { display: flex; gap: 8px; } .scorepick button { flex: 1; height: 48px; border-radius: 14px; border: 0; background: var(--grey-bg); font: 800 1.1rem var(--font); cursor: pointer; color: var(--ink); }
.scorepick button.on { background: var(--navy); color: #fff; }
.score { width: 54px; height: 54px; border-radius: 16px; background: #f0eafd; color: #6b46c1; font-weight: 800; font-size: 1.3rem; display: flex; align-items: baseline; justify-content: center; padding-top: 12px; flex: 0 0 auto; }
.score small { font-size: 0.7rem; font-weight: 700; opacity: 0.7; }
.mbars { display: flex; align-items: flex-end; gap: 18px; height: 150px; padding: 0 8px; } .mbars .mb { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; justify-content: flex-end; }
.mbars .mb i { display: block; width: 100%; max-width: 54px; border-radius: 10px 10px 4px 4px; background: linear-gradient(180deg, #5b9cf0, #1f6fd1); }
.estcard { display: flex; gap: 14px; align-items: center; background: linear-gradient(120deg, #fff6dc, #fff); } .estcard .v { font-size: 1.6rem; font-weight: 800; color: #b07a06; }
.tbl.slab tr.on td { background: #e3f6ec; color: #138a52; }
.wizard { display: flex; gap: 6px; } .wz { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 4px; font-size: 0.7rem; color: var(--muted); font-weight: 600; text-align: center; }
.wz span { width: 28px; height: 28px; border-radius: 50%; background: var(--grey-bg); display: flex; align-items: center; justify-content: center; font-weight: 800; color: var(--muted); }
.wz.done span { background: #138a52; color: #fff; } .wz.cur span { background: var(--navy); color: #fff; } .wz.cur { color: var(--navy); }
.hubtabs { position: sticky; top: 0; z-index: 5; }
.unitcard { border-top: 4px solid #4b3fa0; } .unitcard.u-floorzy { border-top-color: #1d7a55; } .unitcard.u-vito { border-top-color: #1f5aa6; } .unitcard.u-dush { border-top-color: #b07a06; }
.pills.wrap { flex-wrap: wrap; overflow: visible; }
.refimg { width: 100%; max-height: 220px; object-fit: cover; border-radius: 14px; }
.sidelogo { padding: 6px 12px 16px !important; display: flex; flex-direction: column; align-items: flex-start; } .sidelogo img { height: 54px; width: auto; }
.sidelogo small { letter-spacing: 0.32em; margin-top: 6px; }
.sideme { display: flex; gap: 10px; align-items: center; padding: 8px 12px; color: inherit; font-size: 0.84rem; } .sideme .tiny { opacity: 0.7; }
.chip.nodot::before { display: none; } .red { color: var(--red); }
.taskcard .chip, .rowcard .chip { flex: 0 0 auto; }
.tile .ic.k-navy { background: #1f3a6e !important; color: #fff !important; } .tile .ic.k-green { background: #e3f6ec !important; color: #138a52 !important; }
.tile .ic.k-orange { background: #fff1e3 !important; color: #d26a12 !important; } .tile .ic.k-purple { background: #f0eafd !important; color: #6b46c1 !important; }
.tile .ic.k-red { background: #fde8ea !important; color: #c8323f !important; } .tile .ic.k-blue { background: #e6f1fd !important; color: #1f6fd1 !important; }
.tile .ic.k-gold { background: #fff6dc !important; color: #b07a06 !important; } .tile .ic.k-grey { background: #eef0f4 !important; color: #59627a !important; }
a.li, a.li:visited { color: var(--ink); text-decoration: none; } a.li .b { color: var(--ink); }
button.li { border: 0; background: transparent; font: inherit; color: inherit; cursor: pointer; }

/* collapsible sections */
.fold { display: flex; flex-direction: column; gap: 10px; } .foldbody { display: flex; flex-direction: column; gap: 10px; }
.sec.foldh { display: flex; align-items: center; justify-content: space-between; margin-bottom: 0; }
.foldbtn { border: 0; background: none; padding: 0; font: inherit; color: inherit; letter-spacing: inherit; text-transform: inherit; display: inline-flex; align-items: center; gap: 6px; cursor: pointer; }
.foldbtn .caret { display: inline-flex; transition: transform 0.2s ease; transform: rotate(-90deg); } .fold.open .foldbtn .caret { transform: none; }
/* charts */
.vbars { display: flex; flex-direction: column; gap: 10px; } .vlegend { display: flex; gap: 14px; font-size: 0.74rem; color: var(--muted); }
.vlegend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 5px; vertical-align: -1px; } .vlegend i.a { background: #bcd4f6; } .vlegend i.b { background: #138a52; }
.vrow { display: flex; align-items: flex-end; gap: 14px; min-height: 160px; overflow-x: auto; padding-top: 18px; }
.vcol { flex: 1 0 56px; display: flex; flex-direction: column; align-items: center; gap: 6px; } .vpair { display: flex; align-items: flex-end; gap: 4px; }
.vb { width: 22px; border-radius: 6px 6px 2px 2px; position: relative; } .vb.a { background: #bcd4f6; } .vb.b { background: linear-gradient(180deg, #2fb072, #138a52); }
.vb span { position: absolute; bottom: 100%; left: 50%; transform: translateX(-50%); font-size: 0.62rem; font-weight: 700; white-space: nowrap; margin-bottom: 2px; color: var(--ink-2); }
.vlab { text-align: center; max-width: 80px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* sidebar: every option clearly separate */
@media (min-width: 960px) {
  .shell.wide .side { gap: 0; }
  .side .group { margin: 20px 10px 8px !important; padding-top: 14px; border-top: 1px solid var(--line); }
  .side .group:first-of-type { border-top: 0; padding-top: 0; }
  .side a { margin: 3px 0; padding: 11px 12px; border: 1px solid transparent; }
  .side a + a { box-shadow: 0 -1px 0 var(--line); }
  .side a:hover { background: var(--grey-bg); border-color: var(--line); }
  .side a.on, .side a.on + a { box-shadow: 0 1px 2px rgba(10, 25, 40, 0.06), 0 6px 18px rgba(10, 25, 40, 0.08); }
  .side a.on + a { box-shadow: none; }
  .side a.on { border-color: var(--line); }
  .sideme { margin: 4px 0 6px; background: var(--grey-bg); border-radius: 14px; }
}

/* ===================== Maloo Growth theme (14 Nov, client: Maloo blue, not brown) - navy like the welcome picture, gold highlights ===================== */
:root {
  --navy: #0b1f4d; --navy-2: #163a7a; --navy-3: #2a5bb0;
  --brand-grad: linear-gradient(125deg, #061638 0%, #0d2a62 42%, #173f8a 76%, #2457a8 100%);
  --gold: #d9a32b; --gold-2: #f0c75e; --gold-ink: #163a7a;
  --gold-grad: linear-gradient(135deg, #f3cd6a 0%, #dca333 50%, #b9811b 100%);
  --acc: #d9a32b; --acc-bg: #fdf4de;
  --soft: #edf2fb; --soft-ink: #163a7a; --ground: #f3f6fb; --field: #eef2f8; --line: #e1e7f1; --grey-bg: #ebeff6;
  --shadow: 0 6px 24px rgba(11, 31, 77, 0.09); --shadow-up: 0 10px 34px rgba(11, 31, 77, 0.16);
}
body { background-color: var(--ground); }
.ph { background: var(--brand-grad) !important; }
.ph::after { content: ""; position: absolute; right: -80px; top: -120px; width: 320px; height: 320px; border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle, rgba(120, 165, 240, 0.30) 0%, rgba(120, 165, 240, 0) 68%); }
.ph .tr h1::after { background: var(--gold-grad) !important; }
.btn:not(.ghost):not(.soft):not(.red):not(.hbtn):not(.accline):not(.link):not(.dashed) { background: var(--gold-grad) !important; color: #1f1608 !important; box-shadow: 0 6px 18px rgba(185, 129, 27, 0.32) !important; }
.btn:not(.ghost):not(.soft):not(.red):not(.dashed) svg { color: #1f1608; }
.btn.soft { background: var(--soft) !important; color: var(--gold-ink) !important; }
.btn.ghost { color: var(--navy) !important; }
.pill.on, .seg button.on, .card .pill.on { background: var(--navy) !important; color: var(--gold-2) !important; }
.tabbar a.on { color: var(--gold-ink) !important; } .tabbar .pill { background: rgba(22, 58, 122, 0.10) !important; }
.sec, .sec a, .sec button { color: var(--gold-ink); } .foldbtn { color: var(--gold-ink); }
a { color: var(--gold-ink); }
.k-navy, .tile .ic.k-navy { background: var(--gold-grad) !important; color: #1f1608 !important; }
.tbadge { background: #c8322f; }
.unitband { box-shadow: 0 10px 28px rgba(6, 22, 56, 0.25); }
.unitband.u-floorzy, .unitband.u-vito, .unitband.u-dush, .unitband.u-general { background: linear-gradient(125deg, #061638 0%, #0d2a62 55%, #1d4a96 100%); border: 1px solid rgba(240, 199, 94, 0.28); }
.unitband .ub-name { color: var(--gold-2); }
.quote { background: linear-gradient(120deg, #fff6df, #fdeccb); color: #5a400d; }
.stp.cur .dot { background: var(--gold); color: #1f1608; box-shadow: 0 0 0 4px #fbecc6; }
.wz.cur span { background: var(--gold); color: #1f1608; } .wz.cur { color: var(--gold-ink); }
.stepn { background: var(--gold); color: #1f1608; }
.typepick.on, .choice.on { box-shadow: inset 0 0 0 2px var(--gold) !important; background: #fffaf0; } .radio.on { box-shadow: inset 0 0 0 6px var(--gold); }
.scorepick button.on { background: var(--gold-grad); color: #1f1608; }
.mbars .mb i { background: var(--gold-grad); }
.estcard .v { color: var(--gold-ink); }
.stat.gold { background: linear-gradient(120deg, #fff4d6, #fff); }
.bar > i { background: var(--gold-grad) !important; } .bar.green > i, .bar:not(.gold) > i { background: linear-gradient(90deg, #2fb072, #1d8a55) !important; }
.chip.blue { background: #fbf0d6; color: #8a5f12; }
.side a.on::before { background: var(--gold) !important; } .side a.on { color: var(--navy) !important; }
.sidelogo small { color: var(--gold-ink); }
.avatar { background: var(--soft); color: var(--gold-ink); }
.ic.k-blue, .tile .ic.k-blue { background: #fbf0d6 !important; color: #8a5f12 !important; }
.hbars { display: flex; flex-direction: column; gap: 16px; }
.hb { display: flex; flex-direction: column; gap: 6px; } .hbname { font-size: .92rem; }
.hbpct { font-size: 1.15rem; font-weight: 800; color: var(--gold-ink); } .hbpct.good { color: #1d8a55; } .hbpct.low { color: #c8322f; }
.hbtrack { height: 10px; border-radius: 6px; background: var(--grey-bg); overflow: hidden; } .hbtrack i { display: block; height: 100%; border-radius: 6px; background: var(--gold-grad); }
/* gold theme: leftover navy/blue spots */
@media (min-width: 900px) {
  .tbl thead th { background: linear-gradient(180deg, #fbf5e8, #f5ebd6) !important; color: var(--gold-ink) !important; border-bottom: 1px solid #ecdcb8 !important; }
  .tbl thead th:hover, .tbl thead th.sorted { background: #f1e2bf !important; color: var(--navy) !important; }
  .tbl tbody tr:nth-child(even) td { background: #fdfaf3 !important; } .tbl tbody tr.click:hover td { background: #fbf1da !important; }
}
.vlegend i.a, .vb.a { background: #ecd9a8 !important; }
.tabbar { box-shadow: 0 10px 32px rgba(60, 40, 10, 0.16), inset 0 0 0 1px rgba(255, 255, 255, 0.7) !important; }
.hbtrack i[style*="width: 0%"], .hbtrack i[style*="width:0%"] { display: none; }
/* office pages on a phone: one column, rows wrap, wide tables scroll sideways inside their card */
@media (max-width: 700px) {
  .shell.wide .grid2:not(:has(> .stat)) { grid-template-columns: 1fr; }
  .shell.wide .card > .row.between { flex-wrap: wrap; gap: 8px; }
  .shell.wide .card .row.between > .row { flex-wrap: wrap; }
  .shell.wide .tablewrap, .shell.wide .card.pad0 { overflow-x: auto; }
  .shell.wide .tbl td, .shell.wide .tbl th { white-space: nowrap; }
}
/* review card (90/120 days) */
.revgrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.rv { background: var(--soft); border-radius: 12px; padding: 8px 10px; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.rv b { font-size: 1.05rem; font-weight: 800; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rv span { font-size: 0.68rem; color: var(--muted); line-height: 1.25; }
.rv b.good { color: #1d8a55; } .rv b.warn { color: #b9811b; } .rv b.bad { color: #c8322f; }
.journey { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 4px; }
.journey.sm { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.jy { border-radius: 10px; padding: 6px 4px; text-align: center; background: var(--grey-bg); display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.jy span { font-size: 0.6rem; color: var(--muted); line-height: 1.15; } .jy b { font-size: 0.8rem; font-weight: 800; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.jy.on { background: #fbefd2; } .jy.on b { color: var(--gold-ink); }
.review .tiny.b { margin-top: 4px; letter-spacing: 0.04em; text-transform: uppercase; }
/* lead closed on time / late */
.ontime { display: inline-block; margin-top: 4px; font-size: 0.68rem; font-weight: 700; padding: 2px 8px; border-radius: 999px; }
.ontime.good { background: #e3f6ec; color: #138a52; } .ontime.late { background: #fff1e3; color: #b65c0f; }
/* desktop grid: type straight into the cells */
.tbl td.edit { padding: 4px 6px; }
.tbl .cell { width: 100%; min-width: 120px; border: 1px solid transparent; border-radius: 8px; background: transparent; padding: 7px 8px; font: inherit; color: inherit; }
.tbl .cell:hover { border-color: var(--line); background: #fff; } .tbl .cell:focus { outline: none; border-color: var(--gold); background: #fff; box-shadow: 0 0 0 3px rgba(217, 163, 43, 0.18); }
.sec .secbtn { display: inline-flex; align-items: center; gap: 4px; font-size: 0.78rem; font-weight: 700; color: var(--gold-ink); cursor: pointer; text-transform: none; letter-spacing: 0; }
.sec button { display: inline-flex; align-items: center; gap: 4px; }
/* profile photo */
.avatar.img { object-fit: cover; padding: 0; }
.photopick { position: relative; cursor: pointer; flex: 0 0 auto; }
.photopick .cam { position: absolute; right: -2px; bottom: -2px; width: 22px; height: 22px; border-radius: 50%; background: var(--gold); color: #1f1608; display: flex; align-items: center; justify-content: center; box-shadow: 0 0 0 2px #fff; }
/* reports + history */
.filters.row, .stack > .filters { flex-direction: row; flex-wrap: wrap; align-items: center; }
.stack > .filters > .seg { flex: 1 1 260px; min-width: 0; } .stack > .filters > .in { flex: 1 1 220px; min-width: 0; }
.filters .in.sm, .peoplebar .in.sm, .row > select.in.sm { height: 40px; padding: 0 12px; width: auto; flex: 0 1 180px; }
.unitrep { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 12px; }
.journey.sm .jy b { font-size: 0.76rem; } .journey.sm .jy span { font-size: 0.6rem; }
.tbl td.warnc { color: #b9811b; font-weight: 700; } .tbl td.badc { color: #c8322f; font-weight: 700; }
.wrapany { overflow-wrap: anywhere; word-break: break-word; }
@media (max-width: 420px) { .rv { padding: 7px 8px; } .rv b { font-size: 0.98rem; } .jy b { font-size: 0.72rem; } .jy span { font-size: 0.56rem; } }
.tbl input.cell[type=text]:not([inputmode]) { min-width: 190px; }
@media (max-width: 760px) {
  .peoplebar > input.in.sm { flex: 1 1 100%; width: 100% !important; }
  .peoplebar > select.in.sm { flex: 1 1 40%; width: auto !important; min-width: 0; }
  .peoplebar > .grow { display: none; }
  .peoplebar > .btn { flex: 1 1 40%; justify-content: center; }
}
/* documents of a customer / lead */
.docgrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.doc { display: flex; flex-direction: column; gap: 4px; color: inherit; min-width: 0; }
.doc img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 12px; background: var(--soft); }
.doc span { font-size: 0.66rem; color: var(--muted); line-height: 1.2; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.rowcard .avatar { flex: 0 0 auto; }
/* task progress ring + small table */
.ring { --p: 0; width: 84px; height: 84px; border-radius: 50%; flex: 0 0 auto; display: flex; flex-direction: column; align-items: center; justify-content: center;
  background: radial-gradient(closest-side, var(--card) 72%, transparent 73%), conic-gradient(var(--gold) calc(var(--p) * 1%), var(--grey-bg) 0); }
.ring b { font-size: 1.1rem; font-weight: 800; } .ring span { font-size: 0.62rem; color: var(--muted); }
.tbl.mini th, .tbl.mini td { padding: 8px 10px; } .tbl.mini { font-size: 0.82rem; }
.iconbtn.off { opacity: 0.4; }
.hbrow { display: flex; flex-direction: column; gap: 4px; }
/* team structure */
.orgp { display: flex; align-items: center; gap: 10px; color: inherit; min-width: 0; padding: 6px 8px; border-radius: 12px; }
.orgp:hover { background: var(--soft); } .orgp.sm b { font-size: 0.86rem; }
.orgrow { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 4px; }
.orgkids { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 4px; margin-left: 22px; padding-left: 14px; border-left: 2px solid var(--line); }
/* roles table */
.tbl.roles td.c { text-align: center; } .tbl.roles th:not(:first-child) { text-align: center; }
.tbl.roles .yes { display: inline-flex; width: 24px; height: 24px; border-radius: 50%; align-items: center; justify-content: center; background: #e3f6ec; color: #138a52; }

/* period buttons + custom From - To */
.periodpick { flex: none; min-width: 0; } .filters > .periodpick { flex: 1 1 320px; }
.periodpick .datebox { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.tabbar .lensrow .lt.on { color: var(--gold-ink) !important; }
.clamp2 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; line-height: 1.25; }
.custcard { align-items: center; gap: 12px; }
.custval { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; flex: 0 0 auto; }
.custval b { white-space: nowrap; }
/* every filter bar is a wrapping row: period buttons take a full line on phones, selects and search sit beside each other */
.filters { flex-direction: row !important; flex-wrap: wrap; align-items: flex-start; }
.filters > select.in, .filters > input.in { flex: 1 1 160px; width: auto; }
.filters > .seg { flex: 1 1 260px; min-width: 0; }
/* ONE search box style everywhere (Tanishq 8 Nov: like People): same height, rounded, magnifier, never a small stuck-on box */
input.in[placeholder^="Search"], input[type=search].in {
  height: 44px !important; min-height: 44px; padding: 0 14px 0 40px !important; border-radius: 14px !important; font-size: 0.9rem !important;
  background: var(--card) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%239a8f80' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='M20 20l-4-4'/%3E%3C/svg%3E") no-repeat 13px 50% !important;
  box-shadow: inset 0 0 0 1px var(--line) !important; }
input.in[placeholder^="Search"]:focus, input[type=search].in:focus { box-shadow: inset 0 0 0 2px var(--gold) !important; outline: none; }
.tblsearch { max-width: 360px !important; margin: 0 0 12px !important; }
@media (min-width: 700px) { .filters > input.in[placeholder^="Search"], .peoplebar > input.in[placeholder^="Search"] { flex: 0 1 300px; } }

:root { --tab-tint: #163a7a; }  /* selected tab colour of the iPhone glass tab bar (14 Nov: Maloo blue, client said no brown) */
/* incentive rule editor: the levels table fits a phone */
.tbl.slabedit { table-layout: fixed; width: 100%; }
.tbl.slabedit th, .tbl.slabedit td { white-space: normal !important; padding: 6px 6px !important; vertical-align: middle; }
.tbl.slabedit th:last-child, .tbl.slabedit td:last-child { width: 44px; }
.tbl.slabedit .in.sm { width: 100% !important; min-width: 0 !important; flex: none; }

/* 12 Nov: tap a column heading to sort; every table column left aligned so each value sits under its heading */
.tbl th.sortth { cursor: pointer; user-select: none; white-space: nowrap; }
.tbl th.sortth:hover { color: var(--ink); }
.tbl th .sortic { opacity: .45; font-size: .8em; }
.tbl th[aria-sort="ascending"] .sortic, .tbl th[aria-sort="descending"] .sortic { opacity: 1; }
table td.right, table th.right { text-align: left; }

.grid4.g5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
@media (max-width: 900px) { .grid4.g5 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .grid4.g5 > :last-child:nth-child(odd) { grid-column: 1 / -1; } }
@media (max-width: 700px) { .findp { max-width: none !important; flex: 1 1 100% !important; } } /* 14 Nov: phone - search box full width, fifth tile not left alone at half width */

/* 13 Nov: the client's Dashboard Suite mockup - name + role at the top right; the whole side menu fits a 900px-high screen */
.who { display: none; }
@media (min-width: 900px) {
  .who { display: inline-flex; align-items: center; gap: 10px; color: #fff; padding: 4px 6px 4px 4px; border-radius: 999px; background: rgba(255, 255, 255, 0.1); }
  .who .avatar { background: rgba(255, 255, 255, 0.92); color: #3b2a12; }
  .who .whotxt { display: flex; flex-direction: column; line-height: 1.15; padding-right: 10px; }
  .who .whotxt b { font-size: 0.82rem; } .who .whotxt small { font-size: 0.68rem; opacity: 0.8; }
  .shell.wide .side { padding: 14px 12px; }
  .sidelogo { padding: 2px 12px 8px !important; } .sidelogo img { height: 44px; }
  .side .group { margin: 8px 10px 3px !important; padding-top: 8px; }
  .side a { margin: 0; padding: 6px 12px; font-size: 0.85rem; }
  .sideme { padding: 5px 12px; }
}
/* upright bars with the % on top (Department-wise achievement) */
.pbars { display: flex; align-items: flex-end; gap: 18px; height: 190px; padding: 22px 8px 0; border-bottom: 1px solid var(--line); position: relative; }
.pbars .pcol { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; cursor: pointer; min-width: 0; }
.pbars .pbar { width: min(56px, 70%); border-radius: 8px 8px 0 0; min-height: 3px; }
.pbars .pcol b { font-size: 0.82rem; margin-bottom: 4px; }
.plabs { display: flex; gap: 18px; padding: 6px 8px 0; } .plabs span { flex: 1; text-align: center; font-size: 0.74rem; color: var(--muted); font-weight: 600; }
.u-bg-floorzy { background: #1f9d6b; } .u-bg-vito { background: #2f6fde; } .u-bg-dush { background: #e79a1d; } .u-bg-general { background: #8a63d2; }
/* finance: claim verification panel under the table */
.verify { display: grid; grid-template-columns: 1.1fr 1.3fr 1fr; gap: 14px; } @media (max-width: 1100px) { .verify { grid-template-columns: 1fr; } }
.verify .thumbs img { width: 84px; height: 64px; object-fit: cover; border-radius: 10px; }
tr.sel td { background: rgba(217, 163, 43, 0.12) !important; }
.daychip { min-width: 62px; text-align: center; }
.grid2wide > div { min-width: 0; } .seg button { white-space: nowrap; } .daychip { flex: none; }
/* 14 Nov phone polish: on a phone every filter (dropdown, search) takes the full line, and an odd last number tile spans the row */
@media (max-width: 700px) {
  .filters > select.in, .filters > input.in, .filters > .in.sm, .filters > .findp, .filters > span:has(> input.in) { flex: 1 1 100% !important; max-width: none !important; width: 100% !important; }
  .grid4 > :last-child:nth-child(odd), .grid2 > .stat:last-child:nth-child(odd) { grid-column: 1 / -1; }
}
/* 14 Nov: Maloo Growth welcome page (client picture) */
.welcome { min-height: 100vh; min-height: 100dvh; background: linear-gradient(#e4effc 0, #e4effc 45%, #001e4b 55%); display: flex; flex-direction: column; align-items: center; padding-top: env(safe-area-inset-top); }
.welcome img { width: 100%; max-width: 560px; display: block; }
.welcome .wfoot { width: 100%; max-width: 560px; background: #001e4b; padding: 14px 22px calc(26px + env(safe-area-inset-bottom)); flex: 1; }
.welcome .wgo { height: 58px; font-size: 1.12rem; font-weight: 800; letter-spacing: 0.05em; border-radius: 30px; display: flex; align-items: center; justify-content: center; gap: 6px; }
.welcome .wtag { color: #fff; display: flex; align-items: center; gap: 12px; justify-content: center; font-size: 0.82rem; margin-top: 18px; text-align: center; }
.welcome .wtag span { flex: 1; height: 1px; background: rgba(255, 255, 255, 0.45); max-width: 70px; }
/* small phones: the closing line stays on one line (it wrapped and was cut at 360 x 640) */
@media (max-width: 420px) { .welcome .wtag { font-size: clamp(0.62rem, 3.25vw, 0.8rem); gap: 8px; white-space: nowrap; margin-top: 14px; } .welcome .wtag span { max-width: 22px; } .welcome .wfoot { padding-left: 16px; padding-right: 16px; } }
@media (max-width: 420px) and (max-height: 660px) { .welcome .wgo { height: 50px; } .welcome .wfoot { padding-top: 8px; } .welcome .wtag { margin-top: 10px; } }
/* welcome on a computer / tablet: the whole card (picture + Get Started) fits the screen height, centred on Maloo blue - no scrolling to find the button */
@media (min-width: 700px) and (min-height: 520px) {
  .welcome { background: var(--brand-grad); justify-content: center; padding: 16px 0; --ww: min(560px, calc((100dvh - 170px) / 1.456)); }
  .welcome img { width: var(--ww); max-width: var(--ww); border-radius: 20px 20px 0 0; }
  .welcome .wfoot { width: var(--ww); max-width: var(--ww); flex: none; border-radius: 0 0 20px 20px; padding-bottom: 22px; box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35); }
  .welcome .wgo { height: 52px; }
  .welcome .wtag { margin-top: 14px; }
}
@media (max-width: 700px) { .row > select.in.sm, .claimsearch { flex: 1 1 100% !important; width: 100% !important; } }  /* 14 Nov: finance claim filters full width on phones */
.claimdates { display: flex; gap: 10px; } .claimdates .f { flex: 1 1 140px; margin: 0; } .claimdates input { width: 100%; }  /* 14 Nov: custom From / To dates are labelled */
@media (max-width: 700px) { .claimdates { flex: 1 1 100%; } }

/* ---------- Phase 2: Payroll + Onboarding (18 Nov) ---------- */
.payswitch { display: grid; grid-template-columns: 1fr 1fr; background: var(--card); border-radius: 14px; padding: 4px; gap: 4px; box-shadow: 0 1px 3px rgba(11,31,77,.08); }
.payswitch a { text-align: center; padding: 10px 6px; border-radius: 10px; font-weight: 700; font-size: .85rem; color: var(--ink); }
.payswitch a.on { background: var(--gold-grad); color: #fff; }
.btn.gold { background: var(--gold-grad); color: #fff; border: 0; }
.btn.gold:disabled { opacity: .55; }
.grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.sumrow > div { display: flex; flex-direction: column; gap: 2px; background: var(--soft); border-radius: 12px; padding: 10px; }
.sumrow b { font-size: 1.05rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sumrow > div { min-width: 0; }
.card .sumrow, .card.sumrow { margin-top: 10px; }
.monthnav { display: flex; align-items: center; justify-content: space-between; padding: 8px 10px; }
.todaycard, .claimnote { display: flex; align-items: center; gap: 12px; }
.claimnote { border: 1px solid var(--gold); background: var(--acc-bg); }
.checkhero { text-align: center; padding: 24px 16px; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.checkhero h2 { margin: 0; font-size: 1.25rem; }
.checkhero .sumrow { width: 100%; }
.bigic { width: 88px; height: 88px; border-radius: 44px; display: grid; place-items: center; }
.k-gold.bigic, .bigic.k-gold { background: var(--acc-bg); color: var(--gold); }
.bigic.k-blue { background: var(--blue-bg); color: var(--blue); } .bigic.k-green { background: var(--green-bg); color: var(--green); }
.bigic.k-purple { background: var(--purple-bg); color: var(--purple); } .bigic.k-red { background: var(--red-bg); color: var(--red); }
.card.note { display: flex; gap: 10px; align-items: flex-start; }
.card.note.green { background: var(--green-bg); } .card.note.red { background: var(--red-bg); }
.vtypes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.vtype { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 12px 4px; border-radius: 12px; border: 1.5px solid var(--line); background: var(--card); color: var(--ink); font-size: .72rem; font-weight: 700; text-align: center; }
.vtype.on { border-color: var(--gold); background: var(--acc-bg); color: var(--gold-ink); }
.routebox { display: block; width: 100%; height: 150px; background: linear-gradient(180deg, #eaf1fb, #f6f9fd); border-radius: 16px; }
.routebox.empty { display: grid; place-items: center; text-align: center; padding: 0 20px; }
.timeline { margin-top: 10px; display: flex; flex-direction: column; gap: 10px; }
.tl { display: flex; gap: 10px; align-items: flex-start; }
.tlic { flex: 0 0 22px; height: 22px; border-radius: 11px; display: grid; place-items: center; color: #fff; font-size: .7rem; font-weight: 800; }
.tlic.k-green { background: #1f9d55; } .tlic.k-blue { background: #2f6fe0; } .tlic.k-orange { background: #e8862d; }
.thumbs.sm img { width: 44px; height: 44px; }
.totalbar { margin-top: 12px; padding: 12px; border-radius: 12px; background: var(--acc-bg); }
.mtable { width: 100%; border-collapse: collapse; font-size: .8rem; }
.mtable th { text-align: left; padding: 10px 8px; color: var(--muted); font-weight: 700; border-bottom: 1px solid var(--line); background: var(--soft); }
.mtable td { padding: 9px 8px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.mtable .mode { display: inline-flex; gap: 4px; align-items: center; }
.netcard { text-align: center; background: var(--acc-bg); border: 1px solid rgba(217,163,43,.35); }
.netcard .net { font-size: 2rem; font-weight: 800; margin: 4px 0; }
.linkbtn { background: none; border: 0; color: var(--navy-3); font-weight: 700; padding: 4px; }
.slip { width: 100%; border-collapse: collapse; font-size: .84rem; }
.slip td { padding: 6px 4px; border-bottom: 1px solid var(--line); } .slip td:last-child { text-align: right; }
.slip tr.hd td { font-weight: 800; background: var(--soft); } .slip tr.tot td { font-weight: 800; }
.slip tr.net td { font-weight: 800; background: var(--acc-bg); font-size: .95rem; }
.slipbrand { display: flex; align-items: center; gap: 12px; padding-bottom: 10px; border-bottom: 2px solid var(--gold); margin-bottom: 10px; }
.slipbrand img { height: 34px; }
.kv { width: 100%; font-size: .82rem; margin-bottom: 10px; } .kv td { padding: 3px 0; } .kv td:last-child { text-align: right; font-weight: 700; }
.lbal { margin-top: 10px; } .lbal > div { display: flex; flex-direction: column; align-items: center; background: var(--soft); border-radius: 12px; padding: 10px 4px; }
.lbal b { font-size: 1.5rem; }
.lihead { padding: 12px 14px 6px; display: flex; gap: 8px; align-items: center; }
.fycard { background: var(--brand-grad); color: #fff; }
.obhero { display: flex; align-items: center; gap: 14px; color: #fff; margin-top: 10px; }
.stepno { flex: 0 0 26px; height: 26px; border-radius: 13px; display: grid; place-items: center; background: var(--soft); color: var(--soft-ink); font-weight: 800; font-size: .8rem; }
.stepno.ok { background: var(--green); color: #fff; }
.li.locked { opacity: .55; }
.offercard { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 22px 16px; }
.offercard h2 { margin: 0; }
details.obsec summary { list-style: none; cursor: pointer; } details.obsec summary::-webkit-details-marker { display: none; }
.docrow .thumbs { flex: 0 0 auto; } .docrow .upload { width: 64px !important; height: 52px !important; min-height: 52px !important; }
.vidbox { overflow: hidden; aspect-ratio: 16 / 9; background: #0b1f4d; }
.vidbox iframe, .vidbox video { width: 100%; height: 100%; border: 0; display: block; }
.vidlink { height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; color: #fff; font-weight: 700; }
.qopt { display: flex; gap: 10px; align-items: center; padding: 12px; border-radius: 12px; border: 1.5px solid var(--line); }
.qopt.on { border-color: var(--gold); background: var(--acc-bg); }
:root[data-theme="dark"] .routebox { background: linear-gradient(180deg, #1a2333, #141a26); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .routebox { background: linear-gradient(180deg, #1a2333, #141a26); } }
@media print { .noprint, .tabbar, header.ph .phbar, .sbar { display: none !important; } .payslip { box-shadow: none; } }
.mtable td, .mtable th { white-space: nowrap; } .mtable { font-size: .76rem; } .mtable td:first-child { padding-left: 12px; }
.sheetpage header.ph { display: none; } .sheetpage .content { padding: 0; }
.pipe { display: flex; align-items: stretch; gap: 6px; margin-top: 12px; overflow-x: auto; }
.pipebox { flex: 1 1 0; min-width: 96px; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 12px 6px; border-radius: 14px; border: 0; background: var(--soft); color: var(--ink); font-size: .74rem; text-align: center; }
.pipebox b { font-size: 1.5rem; } .pipebox.st-green { background: var(--green-bg); } .pipebox.st-orange { background: var(--orange-bg); } .pipebox.st-purple { background: var(--purple-bg); }
.pipebox.st-gold { background: var(--acc-bg); } .pipebox.st-blue { background: var(--blue-bg); }
.pipearrow { align-self: center; color: var(--muted); flex: 0 0 auto; }
.hrgrid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 12px; } @media (max-width: 800px) { .hrgrid { grid-template-columns: 1fr; } }
.tiles.qa { grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); margin-top: 10px; }
.searchbox { display: flex; align-items: center; gap: 6px; background: var(--field); border-radius: 12px; padding: 0 10px; min-width: 200px; } .searchbox .in { background: transparent; border: 0; }
.kvgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 12px; } .kvgrid > div { display: flex; flex-direction: column; gap: 2px; }
.obline { display: flex; justify-content: space-between; margin-top: 14px; position: relative; }
.obline:before { content: ""; position: absolute; left: 6%; right: 6%; top: 14px; height: 2px; background: var(--line); }
.obdot { display: flex; flex-direction: column; align-items: center; gap: 4px; position: relative; flex: 1; }
.obdot span { width: 30px; height: 30px; border-radius: 15px; display: grid; place-items: center; background: var(--card); border: 2px solid var(--line); font-weight: 800; font-size: .8rem; }
.obdot.ok span { background: var(--green); border-color: var(--green); color: #fff; } .obdot small { font-size: .68rem; text-align: center; }
.docthumb { width: 46px; height: 46px; object-fit: cover; border-radius: 8px; } .docthumb.sm { width: 34px; height: 34px; }
.invitebox { white-space: pre-wrap; background: var(--soft); padding: 12px; border-radius: 12px; font: inherit; font-size: .85rem; }
.codes { display: inline-flex; gap: 2px; } .codes i { font-style: normal; width: 16px; height: 18px; display: grid; place-items: center; font-size: .62rem; font-weight: 800; border-radius: 4px; background: var(--grey-bg); }
.codes .c-P { background: var(--green-bg); color: var(--green); } .codes .c-A { background: var(--red-bg); color: var(--red); } .codes .c-H { background: var(--orange-bg); color: var(--orange); }
.codes .c-L { background: var(--blue-bg); color: var(--blue); } .codes .c-O { background: var(--purple-bg); color: var(--purple); }
.chip.gold { background: var(--acc-bg); color: #8a6512; }
.stat.on { outline: 2px solid var(--gold); }
button.li { width: 100%; text-align: left; }

/* gaps round (18 Nov night) */
.hrtabs { display: flex; gap: 4px; overflow-x: auto; background: var(--card); border-radius: 14px; padding: 4px; box-shadow: 0 1px 3px rgba(11,31,77,.08); }
.hrtabs button { flex: 0 0 auto; border: 0; background: none; padding: 9px 14px; border-radius: 10px; font-weight: 700; font-size: .82rem; color: var(--ink); white-space: nowrap; }
.hrtabs button.on { background: var(--gold-grad); color: #fff; }
.paytabs { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 4px; background: var(--card); border-radius: 14px; padding: 4px; box-shadow: 0 1px 3px rgba(11,31,77,.08); }
.paytabs a { text-align: center; padding: 9px 4px; border-radius: 10px; font-weight: 700; font-size: .8rem; color: var(--ink); }
.paytabs a.on { background: var(--navy); color: #fff; }
.okbanner { display: flex; align-items: center; gap: 8px; justify-content: center; background: var(--green-bg); color: var(--green); font-weight: 700; font-size: .85rem; padding: 10px; border-radius: 12px; }
.lgd { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; vertical-align: middle; }
.okbtn { color: var(--green); background: var(--green-bg); width: 32px; height: 32px; } .nobtn { color: var(--red); background: var(--red-bg); width: 32px; height: 32px; }
.btn.ghost.light { background: rgba(255,255,255,.14); color: #fff; border-color: rgba(255,255,255,.3); }
.grid5 { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; } @media (max-width: 900px) { .grid5 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.card.ctl { display: flex; gap: 10px; align-items: center; } .ctlv { font-size: 1.5rem; }

/* phone: long names keep their width; actions wrap under them */
.wraplist .li { flex-wrap: wrap; } .wraplist .li > .grow { min-width: 55%; flex: 1 1 55%; }
@media (max-width: 600px) { .wraplist .li > .btn { flex: 0 0 auto; } }
.secname { text-transform: uppercase; letter-spacing: .06em; padding-bottom: 2px; }
.btn:disabled { opacity: .45; cursor: default; }

/* dark mode (19 Nov UX pass): gold-tint cards were light with light text */
:root[data-theme="dark"] { --acc-bg: rgba(217,163,43,.16); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --acc-bg: rgba(217,163,43,.16); } }
:root[data-theme="dark"] .netcard .net, :root[data-theme="dark"] .totalbar b, :root[data-theme="dark"] .card.note { color: var(--ink); }
:root[data-theme="dark"] .netcard { border-color: rgba(217,163,43,.35); }
label.btn { display: flex; align-items: center; justify-content: center; cursor: pointer; } label.btn.busy { opacity: .6; pointer-events: none; }

/* round 3: maps, target card, geo line */
.mapbox { width: 100%; border-radius: 16px; overflow: hidden; z-index: 0; background: #e8eef7; }
.mpin span { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 13px; color: #fff; font-weight: 800; font-size: 11px; border: 2px solid #fff; box-shadow: 0 1px 4px rgba(0,0,0,.35); }
.leaflet-container { font: inherit; } .leaflet-control-attribution { font-size: 9px; }
.mappick .hits .li { width: 100%; text-align: left; white-space: normal; }
.geook { display: flex; align-items: center; gap: 6px; justify-content: center; color: var(--green); font-weight: 700; font-size: .82rem; margin-top: 8px; }
.targetcard .trend { display: flex; align-items: flex-end; gap: 8px; height: 76px; margin-top: 12px; }
.targetcard .tb { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 4px; justify-content: flex-end; }
.targetcard .tb i { width: 100%; max-width: 26px; border-radius: 6px 6px 2px 2px; background: #b9cdf0; } .targetcard .tb i.now { background: var(--navy-3); }
.targetcard .tb span { font-size: .65rem; color: var(--muted); }
.card.note.green { color: var(--green); } .card.note.red { color: var(--red); }
:root[data-theme="dark"] .targetcard .tb i { background: #31446b; } :root[data-theme="dark"] .mapbox { filter: brightness(.9); }

.datechip { display: inline-flex; align-items: center; gap: 6px; background: rgba(255,255,255,.14); color: #fff; border-radius: 20px; padding: 6px 12px; font-size: .78rem; font-weight: 700; }
@media (max-width: 600px) { .datechip { display: none; } }
.officerow { background: var(--soft); }
.codes .c-N { background: var(--orange-bg); color: var(--orange); }

/* 24 Nov: business banner like the client mockups - real logo on the left, photo on the right fading into white */
.card.unitband.ub-img { background: #fff; color: #0b1b3a; border: 1px solid #e3e7ef; min-height: 108px; padding: 14px 16px; box-shadow: 0 8px 22px rgba(6, 22, 56, 0.12); }
.card.unitband.ub-img::after { display: none; }
.ub-photo { position: absolute; right: 0; top: 0; bottom: 0; width: 56%; background-size: cover; background-position: center; }
.ub-photo::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, #fff 0%, rgba(255, 255, 255, 0.55) 35%, rgba(255, 255, 255, 0) 70%); }
.ub-left { position: relative; z-index: 1; display: flex; flex-direction: column; gap: 6px; max-width: 58%; }
.ub-logo { display: block; max-height: 46px; max-width: 100%; width: auto; object-fit: contain; object-position: left center; }
.unitband.ub-img .ub-tag { color: #33415c; opacity: 1; font-weight: 700; font-size: 0.66rem; }
.unitband.ub-img .ub-lead { position: relative; z-index: 1; margin-left: auto; align-self: flex-end; background: rgba(255, 255, 255, 0.9); color: #0b1b3a; padding: 6px 10px; border-radius: 10px; }
.unitband.ub-img .ub-lead .tiny { opacity: 0.7; }

/* 24 Nov: business switch (DUSH Employee mockup) */
.uswitch { display: flex; gap: 8px; overflow-x: auto; padding: 2px; scrollbar-width: none; }
.uswitch button { flex: 1 0 auto; min-height: 44px; padding: 0 16px; border-radius: 12px; border: 2px solid transparent; font-weight: 800; color: #fff; opacity: 0.55; font-size: 0.95rem; letter-spacing: 0.02em; }
.uswitch button.on { opacity: 1; border-color: #fff; box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.15), 0 6px 14px rgba(0, 0, 0, 0.18); transform: translateY(-1px); }
.uswitch .us-vito { background: #1f5aa6; } .uswitch .us-dush { background: #b3122e; } .uswitch .us-floorzy { background: #1d8a4e; } .uswitch .us-zeto { background: #6b3fd1; }
.unitband.u-zeto { background: linear-gradient(125deg, #2a1466 0%, #4b2aa0 100%); }

/* ===== 24 Nov: Finance A-D (client "Finance Platform" + "Receivables Intelligence" mockups) ===== */
.fintabs { display: flex; gap: 6px; overflow-x: auto; background: var(--card); border-radius: 14px; padding: 5px; box-shadow: 0 1px 3px rgba(11, 31, 77, .08); scrollbar-width: none; }
.fintabs a { flex: 1 0 auto; display: flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 10px; color: var(--ink); text-decoration: none; min-height: 44px; }
.fintabs a span { display: flex; flex-direction: column; line-height: 1.15; } .fintabs a small { font-size: .7rem; color: var(--muted); white-space: nowrap; }
.fintabs a.on { background: var(--gold-grad, linear-gradient(135deg, #e0b04a, #c08a1c)); color: #fff; } .fintabs a.on small { color: rgba(255, 255, 255, .9); }
.fkpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }
.fkpi { display: flex; gap: 10px; align-items: center; padding: 12px 14px; text-decoration: none; color: inherit; min-width: 0; }
.fkpi .fic { width: 40px; height: 40px; flex: none; border-radius: 12px; display: grid; place-items: center; background: #eef3fb; color: var(--navy-3, #1f5fa8); }
.fkpi .v { display: block; font-size: 1.15rem; font-weight: 800; white-space: nowrap; } .fkpi .l { display: block; font-size: .74rem; color: var(--muted); }
.fkpi.green .fic { background: #e7f6ee; color: #1d8a4e; } .fkpi.gold .fic { background: #fdf5dc; color: #b8860b; } .fkpi.orange .fic { background: #fdeee2; color: #d0661a; } .fkpi.red .fic { background: #fdeaea; color: #c62828; }
.fcard { padding: 14px; min-width: 0; } .fcard .fhead { margin-bottom: 10px; gap: 8px; } .fcard .fhead b { font-size: .95rem; }
.fgrid2, .fgrid3, .fgrid21 { display: grid; gap: 12px; grid-template-columns: 1fr; }
@media (min-width: 900px) { .fgrid2 { grid-template-columns: 1fr 1fr; } .fgrid3 { grid-template-columns: 1fr 1fr 1fr; } .fgrid21 { grid-template-columns: 2fr 1fr; } }
.fchart { width: 100%; height: auto; display: block; }
.flegend { display: flex; flex-direction: column; gap: 8px; min-width: 150px; }
.dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; flex: none; }
.fhb { display: flex; align-items: center; gap: 8px; } .fhbbar { flex: 2; height: 10px; background: #eef1f6; border-radius: 6px; overflow: hidden; min-width: 60px; } .fhbbar span { display: block; height: 100%; border-radius: 6px; }
.finsight { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border-radius: 12px; text-decoration: none; color: inherit; border: 1px solid transparent; }
.finsight.red { background: #fdeaea; border-color: #f5c6c6; } .finsight.orange { background: #fdf1e4; border-color: #f6d3b0; } .finsight.green { background: #e9f7ef; border-color: #bfe5cf; }
.finsight.blue { background: #eaf1fb; border-color: #c4d8f3; } .finsight.purple { background: #f1ebfb; border-color: #d9c8f3; }
.finsight.red > svg { color: #c62828; } .finsight.orange > svg { color: #d0661a; } .finsight.green > svg { color: #1d8a4e; } .finsight.blue > svg { color: #1f5fa8; } .finsight.purple > svg { color: #6b3fd1; }
.bchip { display: inline-block; padding: 2px 9px; border-radius: 999px; font-size: .72rem; font-weight: 700; color: var(--bc); background: color-mix(in srgb, var(--bc) 12%, transparent); white-space: nowrap; }
.fflag { font-size: .78rem; line-height: 1.3; padding-left: 10px; border-left: 3px solid; } .fflag b { font-weight: 800; }
.fflag.red { border-color: #c62828; } .fflag.red b { color: #c62828; } .fflag.orange { border-color: #d0661a; } .fflag.orange b { color: #d0661a; } .fflag.green { border-color: #1d8a4e; } .fflag.green b { color: #1d8a4e; }
.fflow { display: flex; justify-content: space-between; gap: 4px; position: relative; }
.fstep { display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center; flex: 1; } .fdot { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: #eaf1fb; color: #1f5fa8; }
.fbanner { background: linear-gradient(120deg, #0b2545, #1f4b8a); color: #fff; text-align: center; padding: 14px; border-radius: 14px; font-weight: 700; }
.tscroll { overflow-x: auto; } .tbl tr.hl td { background: #f2fbf5; } .tbl td.r, .tbl th.r { text-align: right; } .tbl td.red, .red { color: #c62828; } .tbl td.green, .green { color: #1d8a4e; }
.kv.tight { row-gap: 4px; margin-top: 6px; } .card.soft.green { background: #eef9f2; } .card.soft.red { background: #fdf0f0; }
.note.red { background: #fdeaea; color: #8a1c1c; } .note.orange { background: #fdf1e4; color: #7a3e0c; }
.seg.wrap { flex-wrap: wrap; }
.uswitch .us-all { background: #0b2545; }
.uswitch.office button { flex: 0 1 auto; min-width: 90px; }
.uswitch.office button { opacity: .8; } .uswitch.office button.on { opacity: 1; }
.fgrid2 > *, .fgrid3 > *, .fgrid21 > *, .fgrid21 .stack > * { min-width: 0; }
.fflag, .fflag span { white-space: normal; overflow-wrap: anywhere; }
.seg.wrap button { flex: 0 0 auto; }
@media (max-width: 700px) { .tscroll .tbl th, .tscroll .tbl td { padding: 10px 10px; } .fkpi .v { font-size: 1.02rem; } }
.fchart { max-height: 300px; margin: 0 auto; }
/* 24 Nov: Reward Control Centre wizard */
.rcsteps { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; }
.rcsteps button { flex: 1 0 auto; display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-radius: 12px; background: var(--card); border: 1px solid var(--line); font-weight: 700; font-size: .82rem; color: var(--muted); min-height: 44px; }
.rcsteps button span { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: #eef1f6; font-size: .78rem; }
.rcsteps button.on { color: var(--ink); border-color: #c08a1c; } .rcsteps button.on span { background: var(--gold-grad, #c08a1c); color: #fff; }
.rcsteps button.done span { background: #2e9e5b; color: #fff; }
.rccond { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; margin-bottom: 6px; } .rccond select.in.sm:nth-of-type(1) { min-width: 200px; }
.card.soft.gold { background: #fdf6e3; }
/* 24 Nov: Part A Business / Part B Payroll cards (DUSH employee mockup, our theme) */
.partab { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.partab .card { display: flex; gap: 10px; align-items: center; padding: 14px; color: #fff; text-decoration: none; min-height: 92px; }
.partab .pa { background: linear-gradient(135deg, #0b2545, #1f4b8a); } .partab .pb { background: linear-gradient(135deg, #8a5a12, #c08a1c); }
.partab .card > span:last-child { display: flex; flex-direction: column; line-height: 1.15; } .partab small { font-weight: 800; letter-spacing: .08em; opacity: .85; font-size: .68rem; }
.partab b { font-size: 1.15rem; } .partab .tiny { opacity: .85; margin-top: 2px; } .partab .ic { background: rgba(255,255,255,.15) !important; color: #fff !important; }
.partab:has(> :only-child) { grid-template-columns: 1fr; }

/* 24 Nov round 3 */
.aipanel .finsight{margin:0}
.aiol{margin:6px 0 0 18px;padding:0;display:grid;gap:4px}
.empprev{display:grid;gap:6px;margin-top:10px;padding:10px 12px;border-radius:12px;background:var(--soft,#f3f6fb);border:1px dashed var(--line,#d7deea)}
.tbl td.r{white-space:nowrap}

.seg.sm button{padding:4px 10px;font-size:12px}
/* 25 Nov layout check: business buttons never squeeze ("Floorz y"), long names in tiles wrap inside the tile (phone side-scroll) */
.uswitch button { white-space: nowrap; }
.uswitch.office button { flex: 0 0 auto; }
.fkpi > span:last-child { min-width: 0; }
.fkpi .l { overflow-wrap: anywhere; }
button.fkpi .v { white-space: normal; overflow-wrap: anywhere; }
/* 25 Nov phone check: wrapped tab rows are a rounded box, not a pill (the pill shape clipped the first / last tab) */
.seg.wrap { border-radius: 16px; overflow: visible; }
/* form rows of 3 (dates, dropdowns) go 2 per line on a phone so values are not cut ("12 mo", "11/01/") */
@media (max-width: 600px) { .grid3:has(> label > input, > label > select, > .f > input, > .f > select) { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
/* collection task rows: buttons drop below the text on a phone instead of squeezing the words */
@media (max-width: 600px) { .li.taskli { flex-wrap: wrap; } .li.taskli > .grow { flex: 1 1 calc(100% - 52px); } }
/* 25 Nov: everything that shows a number can be clicked */
main [data-tip], main .card.stat, main table.tbl tbody tr, main svg .tap { cursor: pointer; }
main .flegend .tap:hover, main .fhb.tap:hover { background: rgba(31, 90, 166, .06); border-radius: 8px; }

/* 26 Nov: Talent Productivity & Occupancy */
.occpct { display: inline-block; min-width: 46px; text-align: center; padding: 3px 8px; border-radius: 8px; font-weight: 700; font-size: .85rem; }
.occpct.on_track { background: #e3f4e8; color: #1f7a4a; } .occpct.follow_up { background: #fdf1e4; color: #b7650c; } .occpct.action { background: #fdeaea; color: #c0392b; } .occpct.nodata { background: #eef0f4; color: #6b7280; }
.occband { display: flex; height: 26px; border-radius: 13px; overflow: hidden; font-size: .78rem; font-weight: 700; color: #fff; }
.occband .ob { display: flex; align-items: center; justify-content: center; min-width: 34px; } .ob.on_track { background: #34a853; } .ob.follow_up { background: #f5b400; } .ob.action { background: #e5484d; }
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 4px; margin-right: 6px; } .dot.green { background: #34a853; } .dot.orange { background: #f5b400; } .dot.red { background: #e5484d; }
.occgrid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 12px; align-items: start; }
.occgrid2 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 12px; align-items: start; }
.occmodes { display: grid; grid-template-columns: repeat(3, 1fr) 1.2fr; gap: 10px; }
.occmode { display: flex; gap: 10px; align-items: flex-start; padding: 10px; border-radius: 12px; background: var(--soft, #f5f7fb); }
.occformula { padding: 10px 12px; border-radius: 12px; background: #fff7e3; align-self: stretch; display: flex; align-items: center; }
.occflow { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; } .occstep { display: flex; gap: 8px; padding: 10px; border-radius: 12px; background: var(--soft, #f5f7fb); }
.stepno.sm { width: 20px; height: 20px; font-size: .7rem; flex: none; }
.occmini > div { display: flex; flex-direction: column; } .occmini span { font-size: .72rem; color: var(--muted, #6b7280); }
@media (max-width: 1100px) { .occgrid, .occgrid2 { grid-template-columns: 1fr; } .occmodes { grid-template-columns: 1fr 1fr; } .occflow { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .occmodes, .occflow { grid-template-columns: 1fr; } }
.occpct { white-space: nowrap; } .occgrid .btn.sm, .tbl .btn.sm { white-space: nowrap; }
.occformula { display: block; line-height: 1.5; }
/* 26 Nov: commitments page per mockup */
.cflow { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; padding: 12px; }
.cfstep { display: flex; gap: 8px; align-items: flex-start; position: relative; }
.cfstep:not(:last-child)::after { content: "→"; position: absolute; right: -6px; top: 4px; color: var(--muted, #8a94a6); }
.rowmenu { position: absolute; right: 8px; top: 34px; z-index: 30; background: #fff; border-radius: 12px; box-shadow: 0 8px 24px rgba(10,20,50,.18); display: flex; flex-direction: column; min-width: 190px; padding: 6px; }
.rowmenu button { text-align: left; padding: 8px 10px; border-radius: 8px; background: none; border: 0; font: inherit; cursor: pointer; }
.rowmenu button:hover { background: #f1f4fa; }
.pill.dotred::after { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 4px; background: #e5484d; margin-left: 6px; vertical-align: middle; }
@media (max-width: 1100px) { .cflow { grid-template-columns: 1fr 1fr; } .cfstep::after { display: none; } }
@media (max-width: 600px) { .cflow { grid-template-columns: 1fr; } }

/* 26 Nov: Occupancy Flow mockup */
.fkpi.goldtile { background: linear-gradient(135deg, #e9c46a, #c8962e); color: #fff; } .fkpi.goldtile .fic { background: rgba(255,255,255,.22); color: #fff; } .fkpi.goldtile .l { color: #fff8e6; }
.stepno.gold { background: #c8962e; color: #fff; }
.occroles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.occrole { display: flex; gap: 12px; padding: 14px; border-radius: 14px; border: 1px solid #e6eaf2; background: #fff; }
.occrole .mainm { margin-top: 8px; padding: 8px 10px; border-radius: 10px; background: #f1f4fa; }
.occform { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; padding: 12px 14px; border-radius: 14px; border: 1px solid #e6eaf2; }
.legendchip { padding: 6px 12px; border-radius: 10px; font-size: .82rem; white-space: nowrap; }
.legendchip.green { background: #e3f4e8; color: #1f7a4a; } .legendchip.orange { background: #fdf1e4; color: #b7650c; } .legendchip.red { background: #fdeaea; color: #c0392b; }
.occaccess { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.occacc { display: flex; flex-direction: column; gap: 6px; padding: 12px; border-radius: 14px; border: 1px solid #f0e3c4; background: #fffcf5; }
.occacc .accHead { padding: 6px 8px; margin: -4px -4px 4px; border-radius: 10px; background: #fff3d6; }
.occflowgrid { display: grid; grid-template-columns: 2.2fr 1fr; gap: 12px; align-items: start; }
.occfstep { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border-radius: 12px; border: 1px solid #e6eaf2; background: #fff; }
.occarrow { text-align: center; color: var(--muted, #8a94a6); line-height: 1; }
.finsight.goldnote { background: #fff7e3; border-color: #f0dfb4; }
.btn.outline { background: #fff; border: 1.5px solid currentColor; box-shadow: none; }
.btn.outline.blue { color: #1f5aa6; } .btn.outline.green { color: #1f7a4a; background: #eef8f1; } .btn.outline.orange { color: #b7650c; background: #fff8ee; } .btn.outline.red { color: #c0392b; background: #fff3f3; } .btn.outline.grey { color: #6b7280; }
.rolesees { align-items: center; }
@media (max-width: 1100px) { .occroles, .occaccess { grid-template-columns: 1fr 1fr; } .occflowgrid { grid-template-columns: 1fr; } }
@media (max-width: 600px) { .occroles, .occaccess { grid-template-columns: 1fr; } }
@media (max-width: 1700px) { .occflowgrid { grid-template-columns: 1fr; } }
@media (min-width: 1101px) { .occform { flex-wrap: nowrap; } .occform .grow { min-width: 0; } }
.btn.ol { background: #fff !important; border: 1.5px solid currentColor !important; box-shadow: none !important; background-image: none !important; }
.btn.ol-blue { color: #1f5aa6 !important; } .btn.ol-green { color: #1f7a4a !important; background: #eef8f1 !important; } .btn.ol-orange { color: #b7650c !important; background: #fff8ee !important; } .btn.ol-red { color: #c0392b !important; background: #fff3f3 !important; } .btn.ol-grey { color: #6b7280 !important; }
.cflow { column-gap: 22px; } .cfstep:not(:last-child)::after { right: -17px; }
.kpiring { width: 74px; height: 74px; border-radius: 37px; border: 6px solid #c8962e; display: flex; flex-direction: column; align-items: center; justify-content: center; flex: none; } .kpiring b { font-size: 1.3rem; line-height: 1; }
.occbars { display: flex; align-items: flex-end; gap: 3px; height: 90px; } .occbar { flex: 1; height: 100%; display: flex; align-items: flex-end; background: #f1f4fa; border-radius: 4px; } .occbar i { display: block; width: 100%; background: #c8962e; border-radius: 4px; }
.ob.tap { cursor: pointer; }
.occgrid3 { display: grid; grid-template-columns: 1fr; gap: 12px; align-items: start; }
.occgrid3 > .occtips { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; align-items: start; }
@media (min-width: 1750px) { .occgrid3 { grid-template-columns: minmax(0, 3fr) minmax(280px, 1fr); } .occgrid3 > .occtips { display: flex; } }
@media (max-width: 760px) { .occgrid3 > .occtips { grid-template-columns: 1fr; } }
/* 26 Nov: occupancy person tables fit every column like the mockup (no sideways scroll at desktop width) */
.occtbl { font-size: 12.5px; } .occtbl th { font-size: 10.5px; padding: 8px 6px; } .occtbl td { padding: 8px 6px; vertical-align: top; }
.occtbl td[style*="min-width:170px"] { min-width: 120px !important; } .occtbl .avatar.sm { width: 26px; height: 26px; font-size: 10.5px; flex: none; }
.occtbl .btn.sm { padding: 5px 9px; font-size: 12px; } .occtbl .chip { font-size: 11px; }
.occfilters .in.sm { height: 34px; padding: 4px 26px 4px 10px; font-size: 13px; width: auto !important; min-width: 0; }
/* 27 Nov client doc (Departments): a section title that is the first thing on a page sits on the dark header - give it a light chip so it is always readable */
.content > .stack > .sec:first-child { align-self: flex-start; background: #fff; color: #0b1f4d; padding: 5px 12px; border-radius: 999px; box-shadow: 0 2px 8px rgba(10,20,50,.08); }
/* 27 Nov: row buttons (edit / copy / delete) always visible at the right edge of wide tables */
.tbl td.stickyact { position: sticky; right: 0; background: #fff; box-shadow: -6px 0 8px -6px rgba(10,20,50,.15); z-index: 1; }
