/* ===================== Maloo Rewards (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, #fff6e9, #fdf1ff); color: #4a3a1c; 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; } .mb { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; justify-content: flex-end; }
.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 gold theme (8 Nov, Tanishq: not VITO navy - glassy golden) ===================== */
:root {
  --navy: #1e1810; --navy-2: #3a2c14; --navy-3: #a8761a;
  --brand-grad: linear-gradient(125deg, #120f0a 0%, #2b2112 38%, #5c4216 72%, #a07320 100%);
  --gold: #d9a32b; --gold-2: #f0c75e; --gold-ink: #6e4e10;
  --gold-grad: linear-gradient(135deg, #f3cd6a 0%, #dca333 50%, #b9811b 100%);
  --acc: #d9a32b; --acc-bg: #fdf4de;
  --soft: #faf3e3; --soft-ink: #6e4e10; --ground: #f7f4ee; --field: #f5f1ea; --line: #ece5d8; --grey-bg: #f1ede6;
  --shadow: 0 6px 24px rgba(60, 42, 10, 0.09); --shadow-up: 0 10px 34px rgba(60, 42, 10, 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(240, 199, 94, 0.32) 0%, rgba(240, 199, 94, 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(217, 163, 43, 0.16) !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(30, 20, 5, 0.25); }
.unitband.u-floorzy, .unitband.u-vito, .unitband.u-dush, .unitband.u-general { background: linear-gradient(125deg, #15110b 0%, #2e2313 55%, #6b4c17 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; }
.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: #a8761a; }  /* selected tab colour of the iPhone glass tab bar (Maloo gold) */
/* 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; }
