/* ============================================================
   feat30 - the intranet as separate apps per business unit.
   Launcher (top right), one short sidebar per app, app home pages.
   Loaded after app.css; everything here is scoped to new classes
   so the old single menu (System Administrators, transition) is
   untouched.
   ============================================================ */

/* ---------- launcher ---------- */
.app-launcher { position: relative; }
.app-launcher > summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; border-radius: 10px; }
.app-launcher > summary::-webkit-details-marker { display: none; }
.app-launcher > summary:hover, .app-launcher[open] > summary { background: var(--blue-soft); }
.app-launcher > summary:focus-visible { outline: 2px solid var(--navy); outline-offset: 2px; }
.grid-ico { display: grid; grid-template-columns: repeat(3, 5px); gap: 3px; }
.grid-ico i { width: 5px; height: 5px; border-radius: 1.5px; background: var(--navy); display: block; }
.launcher-panel {
  position: absolute; right: 0; top: calc(100% + 8px); z-index: 60;
  width: 320px; max-width: calc(100vw - 24px);
  background: #fff; border: 1px solid var(--line); border-radius: 16px;
  box-shadow: 0 18px 44px rgba(4, 18, 44, .18); padding: .9rem;
}
.launcher-title { font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); font-weight: 600; margin: 0 0 .6rem .2rem; }
.launcher-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: .35rem; }
.launcher-tile {
  display: flex; flex-direction: column; align-items: center; gap: .4rem;
  padding: .7rem .3rem .6rem; border-radius: 12px; color: var(--ink); text-align: center;
  font-size: .8rem; font-weight: 600; line-height: 1.2;
}
.launcher-tile:hover { background: #f3f6fa; text-decoration: none; }
.launcher-tile.current { background: color-mix(in srgb, var(--app) 9%, #fff); }
.launcher-ico {
  width: 44px; height: 44px; border-radius: 13px; display: inline-flex; align-items: center; justify-content: center;
  font-size: 1.35rem; background: var(--app); color: #fff;
  box-shadow: 0 6px 14px color-mix(in srgb, var(--app) 30%, transparent);
}

/* ---------- the app sidebar ---------- */
.sidenav.app-nav { border-top: 4px solid var(--app); }
.app-head {
  display: flex !important; align-items: center; gap: .7rem;
  padding: .55rem .6rem .85rem !important; margin: 0 0 .3rem !important;
  border-bottom: 1px solid rgba(255, 255, 255, .09); border-radius: 0 !important;
  color: #fff !important; background: none !important; box-shadow: none !important; transform: none !important;
}
.sidenav.app-nav .app-head::before { content: none; }
.app-ico {
  width: 36px; height: 36px; border-radius: 11px; flex: 0 0 auto;
  display: inline-flex; align-items: center; justify-content: center; font-size: 1.15rem;
  background: var(--app); box-shadow: 0 6px 16px rgba(0, 0, 0, .25);
}
.app-name { font-size: 1.02rem; font-weight: 600; letter-spacing: -.01em; }
.sidenav.app-nav a[data-ico]::before { content: attr(data-ico); }
.sidenav.app-nav a[data-ico=""]::before { content: "\2022"; }
.sidenav.app-nav a.active { box-shadow: inset 3px 0 0 var(--app), 0 7px 22px rgba(0, 0, 0, .22); }
.sidenav.app-nav .sidenav-group { padding-top: .9rem; }
.app-extern { margin-top: .6rem !important; }
.app-switch { margin-top: .9rem; padding: .6rem .7rem 0; border-top: 1px solid rgba(255, 255, 255, .09); display: flex; flex-direction: column; gap: .45rem; }
.sidenav.app-nav .app-switch a.app-all { padding: .4rem .5rem; margin: 0 -.5rem; font-size: .88rem; }
.sidenav.app-nav .app-switch a.app-all::before { content: none; }
.app-switch .btn-link { color: #9db4d6; text-align: left; font-size: .82rem; }
.app-switch .btn-link:hover { color: #fff; }
.sidenav.app-nav .sidenav-logout { margin-top: .4rem; }

/* the classic menu's "Back to the apps" */
.classic-back { padding: .4rem .7rem 0; }
.classic-back .btn-link { color: #ffd59e; font-size: .88rem; }

/* ---------- app home ---------- */
.app-hero { display: flex; align-items: center; gap: 1rem; margin: 0 0 1.2rem; }
.app-hero h1 { margin: 0 0 .2rem; }
.app-hero .page-sub { margin: 0; }
.app-hero-ico {
  width: 56px; height: 56px; border-radius: 16px; flex: 0 0 auto;
  display: inline-flex; align-items: center; justify-content: center; font-size: 1.7rem;
  background: var(--app); color: #fff; box-shadow: 0 10px 24px color-mix(in srgb, var(--app) 32%, transparent);
}
.app-sections { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 1rem; }
.app-sections .card + .card { margin-top: 0; }
.app-section { border-top: 3px solid var(--app); }
.app-section h2 { margin: 0 0 .5rem; }
.app-links { list-style: none; margin: 0; padding: 0; }
.app-links a { display: flex; align-items: center; gap: .6rem; padding: .5rem .45rem; margin: 0 -.45rem; border-radius: 9px; color: var(--ink); font-weight: 500; }
.app-links a:hover { background: color-mix(in srgb, var(--app) 8%, #fff); text-decoration: none; }
.app-link-ico { width: 1.4em; text-align: center; }

/* ---------- "Your apps" page ---------- */
.apps-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 1rem; }
.apps-grid .card + .card { margin-top: 0; }
.app-card { display: flex; flex-direction: column; gap: .45rem; color: var(--ink); border-top: 3px solid var(--app); transition: transform .18s ease; }
.app-card:hover { text-decoration: none; transform: translateY(-2px); }
.app-card-ico {
  width: 46px; height: 46px; border-radius: 13px; display: inline-flex; align-items: center; justify-content: center;
  font-size: 1.4rem; background: var(--app); color: #fff;
}
.app-card-name { font-weight: 600; font-size: 1.02rem; }
.app-card-blurb { font-size: .86rem; color: var(--muted); line-height: 1.45; }

/* ---------- phones (the feat14 hamburger layout) ---------- */
@media (max-width: 900px) {
  .launcher-panel { position: fixed; right: 12px; left: 12px; top: 62px; width: auto; max-width: none; }
  .launcher-grid { grid-template-columns: repeat(3, 1fr); }
  .app-hero-ico { width: 46px; height: 46px; font-size: 1.4rem; }
}
@media print { .app-launcher { display: none !important; } }

/* ---------- To-do list and reminders ---------- */
.td-tabs { display: flex; gap: .3rem; flex-wrap: wrap; border-bottom: 1px solid var(--line); margin-bottom: 1rem; }
.td-tabs a { padding: .6rem 1rem; border-bottom: 3px solid transparent; color: var(--muted); font-weight: 600; margin-bottom: -1px; }
.td-tabs a:hover { color: var(--navy); text-decoration: none; }
.td-tabs a.active { color: var(--navy); border-bottom-color: var(--blue); }
.td-tabs a span { display: inline-block; min-width: 1.4rem; padding: 0 .4rem; margin-left: .25rem; border-radius: 999px; background: var(--blue-soft); color: var(--navy); font-size: .78rem; text-align: center; }
.td-add h2, .td-group h2, .td-prefs h2 { margin-top: 0; }
.td-row { display: grid; grid-template-columns: minmax(220px, 2.2fr) repeat(4, minmax(130px, 1fr)); gap: .75rem 1rem; align-items: start; margin-bottom: .75rem; }
.td-more .td-row { grid-template-columns: repeat(4, minmax(150px, 1fr)); margin-top: .6rem; }
.td-more { margin-bottom: .8rem; }
.td-more > summary { cursor: pointer; color: var(--blue); font-weight: 600; min-height: 36px; display: flex; align-items: center; }
.td-group { padding-top: .9rem; }
.td-group h2 { display: flex; align-items: center; gap: .5rem; font-size: 1rem; }
.td-count { font-size: .78rem; font-weight: 600; color: var(--muted); background: var(--bg); border-radius: 999px; padding: .05rem .55rem; }
.td-group-overdue { border-left: 4px solid var(--danger); }
.td-group-overdue h2 { color: var(--danger); }
.td-group-today { border-left: 4px solid var(--blue); }
.td-list { list-style: none; margin: 0; padding: 0; }
.td-item { display: flex; align-items: flex-start; gap: .75rem; padding: .65rem 0; border-top: 1px solid var(--line); }
.td-item:first-child { border-top: 0; }
.td-item form { margin: 0; }
.td-tick { flex: none; width: 24px; height: 24px; margin-top: 1px; border-radius: 50%; border: 2px solid #9aa8bc; background: #fff; cursor: pointer; padding: 0; position: relative; display: inline-block; }
button.td-tick:hover, button.td-tick:focus-visible { border-color: var(--ok); background: var(--ok-bg); }
button.td-tick:hover::after, button.td-tick:focus-visible::after, .td-tick.is-ticked::after { content: ''; position: absolute; left: 6px; top: 2px; width: 6px; height: 11px; border: solid var(--ok); border-width: 0 2px 2px 0; transform: rotate(45deg); }
.td-tick.is-ticked { border-color: var(--ok); background: var(--ok-bg); }
.td-body { flex: 1; min-width: 0; }
.td-name { font-weight: 600; color: var(--ink); overflow-wrap: anywhere; }
.td-name:hover { color: var(--blue); }
.is-done .td-name { color: var(--muted); text-decoration: line-through; }
.td-meta { display: flex; flex-wrap: wrap; gap: .2rem .8rem; font-size: .82rem; color: var(--muted); margin-top: .15rem; }
.is-overdue .td-due { color: var(--danger); font-weight: 600; }
.td-high { color: var(--orange); font-weight: 600; }
.td-card .card-head { gap: .5rem; flex-wrap: wrap; }
.td-card-counts { display: inline-flex; gap: .3rem; margin-right: auto; }
.td-card-empty { margin: .2rem 0 .6rem; }
.td-list-compact .td-item { padding: .5rem 0; }
.td-quick { display: flex; gap: .5rem; margin-top: .6rem; padding-top: .7rem; border-top: 1px solid var(--line); }
.td-quick input { flex: 1; min-width: 0; }
.td-prefs { margin-top: 1rem; }
.td-check { display: flex; gap: .55rem; align-items: center; font-weight: 400; margin: .35rem 0; min-height: 36px; }
.td-check input { width: 18px; height: 18px; }
.td-dl { display: grid; grid-template-columns: 130px 1fr; gap: .5rem 1rem; margin: 0; }
.td-dl dt { color: var(--muted); font-weight: 600; }
.td-dl dd { margin: 0; }
.td-h3 { font-size: .95rem; margin: 1.1rem 0 .3rem; color: var(--navy); }
.td-notes { white-space: pre-wrap; margin: 0; }
.td-edit > summary { cursor: pointer; list-style: none; }
.td-edit > summary h2 { display: inline; margin: 0; }
.td-edit > summary::before { content: '▸ '; color: var(--blue); }
.td-edit[open] > summary::before { content: '▾ '; }
.td-edit form { margin-top: 1rem; }
.td-note-form { display: grid; gap: .4rem; margin-bottom: 1rem; }
.td-note-form button { justify-self: start; }
.td-log { list-style: none; margin: 0; padding: 0; }
.td-log li { padding: .55rem 0; border-top: 1px solid var(--line); font-size: .9rem; }
.td-log-text { white-space: pre-wrap; margin-top: .15rem; }
.td-delete { margin-top: 1rem; }
@media (max-width: 900px) { .td-row, .td-more .td-row { grid-template-columns: 1fr 1fr; } .td-title { grid-column: 1 / -1; } }
@media (max-width: 520px) { .td-row, .td-more .td-row { grid-template-columns: 1fr; } .td-dl { grid-template-columns: 1fr; } .td-dl dd { margin-bottom: .4rem; } }

/* ---------- Dashboard charts (gauge, 12-month trend, square bars) ---------- */
.gd { --mono: ui-monospace, "Cascadia Mono", Consolas, "SF Mono", Menlo, monospace; --c-orange: #f26b3a; --c-peach: #ffb38f; --c-blue: #2563eb; --soft: #f1f4f8; margin-bottom: 1.2rem; }
.gd-card { background: #fff; border-radius: 22px; padding: 1.5rem 1.6rem; display: flex; flex-direction: column; gap: .8rem; min-width: 0; box-shadow: var(--shadow); }
.gd-h { margin: 0 0 .2rem; font-family: var(--mono); font-size: 1.15rem; font-weight: 600; letter-spacing: .06em; color: var(--ink); }
.gd-sub { margin: -.5rem 0 0; font-size: .86rem; color: var(--muted); text-align: center; }
.gd-top { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 9fr); gap: 1.2rem; margin-bottom: 1.2rem; }
.gd-gauge { align-items: center; } .gd-gauge svg { max-width: 100%; height: auto; }
.gd-gauge-n { font-size: 58px; font-weight: 700; fill: var(--ink); font-family: inherit; }
.gd-gauge-sub { font-family: var(--mono); font-size: 13px; letter-spacing: 1.5px; fill: #475569; }
.gd-gauge-foot { align-self: stretch; display: flex; justify-content: space-between; align-items: center; gap: .8rem; font-size: 1.05rem; line-height: 1.35; }
.gd-pill { font-family: var(--mono); font-weight: 700; font-size: 1rem; border-radius: 10px; padding: .6rem 1.1rem; white-space: nowrap; }
.gd-pill-on { background: #c9f2cf; color: #14532d; } .gd-pill-close { background: #fff0c2; color: #713f12; } .gd-pill-below { background: #ffe1d2; color: #7c2d12; }
.gd-row { display: flex; justify-content: space-between; align-items: center; gap: .8rem; flex-wrap: wrap; }
.gd-legend { display: flex; gap: 1.1rem; flex-wrap: wrap; font-size: .88rem; color: #334155; } .gd-legend span { display: flex; align-items: center; gap: .4rem; }
.gd-key-bar { width: 12px; height: 12px; border-radius: 3px; background: #b9cdf3; display: inline-block; }
.gd-key-dot { width: 12px; height: 12px; border-radius: 50%; background: var(--c-blue); display: inline-block; }
.gd-key-dash { width: 16px; height: 0; border-top: 3px dashed var(--c-orange); display: inline-block; }
.gd-chart { width: 100%; height: auto; }
.gd-axis line { stroke: #e2e8f0; } .gd-axis text { font-size: 11px; fill: #64748b; }
.gd-bars rect { fill: #b9cdf3; }
.gd-line { fill: none; stroke: var(--c-blue); stroke-width: 3; stroke-linejoin: round; }
.gd-line-dash { fill: none; stroke: var(--c-orange); stroke-width: 2.5; stroke-dasharray: 6 5; }
.gd-dots circle { fill: #fff; stroke: var(--c-blue); stroke-width: 2.5; }
.gd-note { margin: 0; font-size: .84rem; color: var(--muted); }
.gd-three { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.2rem; }
.gd-stat { display: flex; align-items: center; gap: 1rem; background: var(--soft); border-radius: 14px; padding: .8rem 1rem; color: var(--ink); font-size: 1.05rem; }
.gd-stat:hover, a.gd-big:hover { text-decoration: none; background: #e8edf4; }
.gd-stat-ok { box-shadow: inset 5px 0 0 #4fbf6a; } .gd-stat-mark { box-shadow: inset 5px 0 0 var(--c-peach); } .gd-stat-alert { box-shadow: inset 5px 0 0 var(--c-orange); }
.gd-num { min-width: 44px; text-align: center; border: 1.5px solid #cbd5e1; border-radius: 9px; background: #fff; padding: .3rem .5rem; font-family: var(--mono); font-weight: 700; font-variant-numeric: tabular-nums; }
.gd-rank-head { display: flex; justify-content: space-between; font-family: var(--mono); font-size: .74rem; letter-spacing: .1em; color: var(--muted); border-bottom: 1.5px solid #e2e8f0; padding-bottom: .5rem; }
.gd-rank { display: grid; grid-template-columns: minmax(0, 1fr) auto 44px; align-items: center; gap: .75rem; }
.gd-rank a, .gd-rank span.gd-name { color: var(--ink); font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gd-rank b { text-align: right; font-variant-numeric: tabular-nums; }
.gd-squares { display: flex; gap: 4px; } .gd-squares i { width: 18px; height: 18px; border-radius: 5px; background: #e2e8f0; display: block; }
.gd-squares i.on { background: var(--c-blue); } .gd-rank-warn .gd-squares i.on { background: var(--c-orange); } .gd-rank-ok .gd-squares i.on { background: #4fbf6a; } .gd-squares i.on.mid { background: var(--c-peach); }
.gd-big { display: flex; align-items: center; gap: 1.1rem; background: var(--soft); border-radius: 14px; padding: .8rem 1.1rem; color: #334155; font-size: .95rem; }
.gd-big-alert { box-shadow: inset -5px 0 0 var(--c-orange); } .gd-big-info { box-shadow: inset -5px 0 0 var(--c-blue); }
.gd-bignum { min-width: 54px; font-size: 2rem; font-weight: 700; color: var(--ink); line-height: 1.1; font-variant-numeric: tabular-nums; }
.gd-money { min-width: 120px; font-size: 1.55rem; white-space: nowrap; }
@media (max-width: 1100px) { .gd-top { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 600px) { .gd-card { padding: 1.2rem; border-radius: 18px; } .gd-money { min-width: 0; } }
.gd-top-one { grid-template-columns: minmax(0, 1fr); }
.gd-gauge-n3 { font-size: 46px; }

/* ============================================================
   GROUP-LOOK-START (13 Nov 2026): every Bizyard portal follows the
   Group CRM look - Poppins, a flush navy sidebar, borderless white
   cards with large rounded corners on a soft grey page, light table
   headers. Borders stay only where they help: form fields, tabs and
   the thin dividers inside lists and tables. Delete this block to go back.
   ============================================================ */
@font-face { font-family: Poppins; src: url(/assets/fonts/Poppins-Regular.ttf) format('truetype'); font-weight: 400; font-display: swap; }
@font-face { font-family: Poppins; src: url(/assets/fonts/Poppins-Medium.ttf) format('truetype'); font-weight: 500; font-display: swap; }
@font-face { font-family: Poppins; src: url(/assets/fonts/Poppins-SemiBold.ttf) format('truetype'); font-weight: 600; font-display: swap; }
@font-face { font-family: Poppins; src: url(/assets/fonts/Poppins-Bold.ttf) format('truetype'); font-weight: 700; font-display: swap; }
:root { --bg: #eef1f5; --line: #e3e8ef; --soft: #f1f4f8; --side-bg: #001a44; }
body { font-family: Poppins, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; font-size: 15px; background: var(--bg); }
h1, .page-head h1 { font-size: 1.85rem; letter-spacing: -.01em; }
.doc-header h1 { font-size: 1.85rem; }

/* top bar and footer: no rules, the white bar sits on the grey page */
.topbar { border-bottom: 0; box-shadow: 0 1px 0 rgba(4, 18, 44, .05); }
.global-search input { background: #fff; border-color: #d5dce6; }
.footer { border-top: 0; background: transparent; }

/* sidebar: a flush navy column from the top bar to the bottom of the page */
.sidenav, .sidenav.app-nav { border: 0; border-top: 0; border-radius: 0; box-shadow: none; }
.sidenav.app-nav a.active { box-shadow: 0 6px 18px rgba(0, 0, 0, .22); }
.sidenav-logout, .app-switch { border-top-color: rgba(255, 255, 255, .12); }
@media (min-width: 1001px) {
  .body-row { background: linear-gradient(90deg, var(--side-bg) 0 286px, transparent 286px); }
  .sidenav { margin: 0; }
}

/* cards: white, borderless, round */
.card, .stat, .empty, .ack-banner, .app-section, .app-card, .dept-card, .cf-section, .cf-bar, .so-steps,
.mk-tile, .inv-items, .org-box, .auth-card, .launcher-panel, .preview-frame { border: 0 !important; }
.card { border-radius: 20px; box-shadow: none; padding: 1.35rem 1.5rem; }
.card + .card { margin-top: 1.2rem; }
.app-section, .app-card { border-top: 0 !important; border-radius: 20px; box-shadow: none; }
.app-card:hover, .dept-card:hover { box-shadow: 0 8px 22px rgba(4, 18, 44, .08); }
.cf-section, .so-steps, .auth-card { border-radius: 20px; box-shadow: none; }
.cf-bar { border-radius: 18px; }
.launcher-panel { border-radius: 18px; }
.empty { background: #fff; border-radius: 18px; }
.mk-tile, .inv-items { background: var(--soft); border-radius: 14px; }

/* number tiles: no stripe, the colour moves to the number */
.stat { border-radius: 18px; box-shadow: none; padding: 1rem 1.15rem; }
.stat::before { display: none; }
.stat .n { font-size: 1.6rem; font-weight: 700; color: var(--ink); }
.stat.green .n { color: var(--green); } .stat.orange .n { color: var(--orange); }
.stat.red .n { color: var(--danger); } .stat.purple .n { color: var(--purple); }
a.stat:hover, a.stat:focus-visible { background: #f8fafc; }
.stat-row { gap: 1rem; }

/* tables: light header band, thin row dividers, no frame */
table.data { border: 0; border-collapse: separate; border-spacing: 0; background: #fff; border-radius: 16px; overflow: hidden; font-size: .92rem; }
table.data th { background: var(--soft); color: var(--ink); text-transform: none; letter-spacing: 0; font-size: .8rem; font-weight: 600; padding: .65rem .75rem; }
table.data td { border-top: 0; border-bottom: 1px solid #edf0f5; padding: .65rem .75rem; }
table.data tr:last-child td { border-bottom: 0; }
table.data tr:nth-child(even) td { background: transparent; }
table.data tbody tr:hover td { background: #f8fafc; }
.card table.data { border-radius: 12px; }

/* lists */
.list li { border-bottom-color: #edf0f5; }

/* fields keep a light border (you need to see where to type); buttons and messages lose theirs */
input:not([type]), input[type=text], input[type=email], input[type=tel], input[type=password], input[type=search], input[type=date], input[type=month], input[type=time],
input[type=url], input[type=number], select, textarea { border-color: #d3dae4; border-radius: 10px; }
.btn { border-radius: 10px; }
.btn-secondary { border: 0; background: #e8edf4; color: var(--navy); }
.btn-secondary:hover { background: #dde4ee; }
.flash { border: 0; border-radius: 14px; }
fieldset { border: 0; background: var(--soft); border-radius: 16px; padding: 1rem 1.1rem; }
legend { padding: .4rem .2rem 0; }
.nav-toggle { border: 0 !important; background: #e8edf4 !important; }
.td-tabs { border-bottom-color: #e3e8ef; }
.td-group-overdue, .td-group-today { border-left: 0; }
.td-group-overdue { box-shadow: inset 5px 0 0 var(--danger); } .td-group-today { box-shadow: inset 5px 0 0 var(--blue); }
@media (max-width: 900px) { .sidenav { border-radius: 16px; } }
/* lighter and a size smaller (Frans, 13 Nov): Poppins reads heavier than the old system font */
body { font-size: 14px; }
h1, .page-head h1, .doc-header h1 { font-size: 1.55rem; font-weight: 600; }
h2 { font-size: 1.05rem; font-weight: 500; }
.card h2, .card h3, .card-head h2, .card-head h3 { font-size: .98rem; font-weight: 500; }
label, legend, th, dt, summary, .btn, .badge, .card-head .more, .more, .crumbs [aria-current] { font-weight: 500; }
strong, b { font-weight: 600; }
.sidenav a { font-size: .88rem; font-weight: 500; }
.sidenav-group { font-weight: 500; font-size: .66rem; }
.stat { padding: .85rem 1rem; }
.stat .n { font-size: 1.2rem; font-weight: 600; letter-spacing: -.01em; }
.stat .l { font-size: .76rem; font-weight: 400; }
.gd-h { font-size: .95rem; font-weight: 500; }
.gd-gauge-n { font-size: 46px; font-weight: 600; }
.gd-gauge-n3 { font-size: 40px; }
.gd-gauge-foot { font-size: .92rem; }
.gd-pill { font-size: .85rem; font-weight: 600; padding: .5rem .9rem; }
.gd-stat { font-size: .9rem; padding: .65rem .9rem; }
.gd-num { font-weight: 600; font-size: .85rem; min-width: 38px; }
.gd-big { font-size: .85rem; padding: .7rem 1rem; }
.gd-bignum { font-size: 1.45rem; font-weight: 600; min-width: 46px; }
.gd-money { font-size: 1.15rem; min-width: 104px; }
.gd-rank a, .gd-rank span.gd-name { font-size: .88rem; font-weight: 400; }
.gd-rank b { font-weight: 500; font-size: .88rem; }
.gd-squares i { width: 15px; height: 15px; border-radius: 4px; }
.gd-legend { font-size: .82rem; }
.gd-note { font-size: .8rem; }
.td-name { font-weight: 500; }
/* the My tasks card sits directly above the app's section cards: give them the same gap as every other row */
.td-card + .app-sections, .stat-row + .app-sections { margin-top: 1.2rem; }
/* GROUP-LOOK-END */
/* customer-linked tasks (25 Nov 2026) */
.td-row-cust { grid-template-columns: minmax(260px, 1fr); max-width: 560px; }
.td-cust { color: var(--blue); font-weight: 500; }
/* customer activity timeline + follow-ups (25 Nov 2026) */
.ca-log { margin-bottom: .8rem; }
.ca-log .ca-sum { flex: 1 1 260px; }
.ca-filters { display: flex; flex-wrap: wrap; gap: .35rem; margin: .2rem 0 .8rem; }
.ca-filters a { font-size: .8rem; padding: .25rem .7rem; border-radius: 999px; background: var(--soft, #f1f4f8); color: var(--ink, #1f2a37); text-decoration: none; }
.ca-filters a.active { background: var(--navy, #13294b); color: #fff; }
.ca-list { list-style: none; margin: 0; padding: 0; position: relative; }
.ca-list::before { content: ""; position: absolute; left: 15px; top: 6px; bottom: 6px; width: 2px; background: var(--line, #e5e9f0); }
.ca-item { display: flex; gap: .75rem; padding: .45rem 0; position: relative; }
.ca-icon { flex: 0 0 32px; height: 32px; border-radius: 50%; background: #eef3fb; color: var(--blue, #1d5fbf); display: grid; place-items: center; font-size: .9rem; font-weight: 600; position: relative; z-index: 1; }
.ca-email .ca-icon, .ca-marketing .ca-icon { background: #f1ecfb; color: #6b3fb8; }
.ca-money .ca-icon, .ca-ok .ca-icon { background: #e7f6ee; color: #1c7a45; }
.ca-warn .ca-icon { background: #fdeceb; color: #b3261e; }
.ca-service .ca-icon { background: #fff4e0; color: #9a5b00; }
.ca-body { min-width: 0; flex: 1; }
.ca-title { font-weight: 500; }
.ca-detail { font-size: .88rem; color: var(--ink-2, #4b5563); overflow-wrap: anywhere; }
.ca-fu-card .td-list { margin-bottom: .5rem; }
.ca-add form { display: grid; gap: .3rem; margin-top: .4rem; }
.ca-add .btn { justify-self: start; margin-top: .3rem; }
.ce-body { white-space: pre-wrap; font-family: inherit; font-size: .92rem; margin: 0; overflow-wrap: anywhere; }
/* marketing campaigns (25 Nov 2026) */
.cp-form { max-width: 820px; display: grid; gap: .35rem; }
.cp-form h2 { margin: .2rem 0 .3rem; }
.cp-form fieldset { border: 0; padding: 0; margin: .4rem 0; }
.cp-form legend { font-weight: 500; font-size: .9rem; margin-bottom: .25rem; }
.cp-checks, .cp-ch { display: flex; flex-wrap: wrap; gap: .3rem 1.1rem; }
.cp-steps { margin: 0; padding-left: 1.2rem; display: grid; gap: .9rem; }
.cp-steps li.is-done > strong::after { content: " ✓"; color: #1c7a45; }
.cp-steps p { margin: .2rem 0 .45rem; }
.cp-bad { color: #b3261e; }
.cp-good { color: #1c7a45; }
.cp-tabs { margin-bottom: .6rem; }
.cp-acts { white-space: nowrap; }
.cp-acts form { display: inline; margin-left: .35rem; }
.cp-acts .cp-wa { background: #1f9d55; border-color: #1f9d55; }
.cp-table tr.cp-done { opacity: .6; }
.cp-flyer { width: 100%; height: auto; border-radius: 10px; display: block; }
.cp-prev { background: var(--soft, #f4f6fa); border-radius: 10px; padding: .8rem; font-size: .85rem; max-height: 420px; overflow: auto; }
.cp-wa-prev { background: #e7f8ee; }
@media (max-width: 640px) { .cp-acts { white-space: normal; } }
/* leads to sales report (25 Nov 2026) */
.lr-funnel { list-style: none; margin: .4rem 0 0; padding: 0; display: grid; gap: .7rem; }
.lr-funnel li { display: grid; grid-template-columns: minmax(150px, 220px) 1fr; gap: 1rem; align-items: center; }
.lr-label { display: flex; flex-direction: column; }
.lr-bar { position: relative; height: 30px; background: #eef2f8; border-radius: 8px; overflow: hidden; }
.lr-bar span { position: absolute; inset: 0 auto 0 0; background: linear-gradient(90deg, #13294b, #2a67c9); border-radius: 8px; }
.lr-bar em { position: absolute; right: .6rem; top: 50%; transform: translateY(-50%); font-style: normal; font-weight: 600; color: var(--ink, #1f2a37); }
.lr-funnel li:last-child .lr-bar span { background: linear-gradient(90deg, #146c3d, #23a35a); }
.lr-table .num, .data .num { text-align: right; white-space: nowrap; }
.lr-rate { display: inline-block; width: 46px; height: 6px; background: #eef2f8; border-radius: 3px; vertical-align: middle; position: relative; overflow: hidden; }
.lr-rate span { position: absolute; inset: 0 auto 0 0; background: #23a35a; }
.lr-grid { align-items: start; }
@media (max-width: 640px) { .lr-funnel li { grid-template-columns: 1fr; gap: .3rem; } }
/* phones: wide tables scroll inside their card instead of widening the page (25 Nov 2026) */
.grid-main-side > *, .grid-2 > *, .grid-3 > * { min-width: 0; }
.table-wrap { position: relative; }
.cp-test { display: inline-flex; gap: .35rem; align-items: center; flex-wrap: wrap; }
.cp-test input { width: 240px; max-width: 100%; }
.cp-fly-list { margin: .3rem 0; padding-left: 1.1rem; }
.cp-fly-list li { margin: .2rem 0; }
.cp-fly-list .td-check { display: inline-flex; margin-left: .6rem; }
.cp-flyer + .meta { margin-top: .35rem; }
.cp-flyer { margin-top: .6rem; }
/* customers list (1 Dec 2026, Reyakopele ICT design) */
.cl-header { align-items: center; }
.cl-add { display: inline-flex; align-items: center; gap: .35rem; }
.cl-views { display: flex; gap: .3rem; margin: .4rem 0 .7rem; flex-wrap: wrap; }
.cl-views a { font-size: .82rem; padding: .3rem .8rem; border-radius: 999px; color: var(--ink-2, #4b5563); text-decoration: none; }
.cl-views a span { color: #8a94a6; font-size: .76rem; margin-left: .15rem; }
.cl-views a.active { background: var(--navy, #13294b); color: #fff; } .cl-views a.active span { color: #c9d4ea; }
.cl-card { padding: 0; overflow: hidden; }
.cl-tools { display: flex; gap: .6rem; align-items: center; padding: .9rem 1rem; border-bottom: 1px solid #edf0f5; flex-wrap: wrap; }
.cl-search { position: relative; flex: 0 1 300px; min-width: 200px; }
.cl-search svg { position: absolute; left: .7rem; top: 50%; transform: translateY(-50%); color: #8a94a6; pointer-events: none; }
.cl-search input { padding-left: 2.1rem; margin: 0; width: 100%; }
.cl-select { width: auto; min-width: 9rem; margin: 0; }
.cl-sort { margin-left: auto; display: flex; align-items: center; gap: .3rem; color: #4b5563; }
.cl-sort select { border: 0; background: transparent; padding: .3rem .2rem; width: auto; margin: 0; font-size: .85rem; color: inherit; }
.cl-table { margin: 0; }
.cl-table thead th { background: #f6f8fb; font-size: .75rem; font-weight: 500; color: #5d6879; letter-spacing: .02em; text-transform: none; }
table.data.cl-table td, table.data.cl-table th { vertical-align: middle; }
.cl-table td { padding-top: .55rem; padding-bottom: .55rem; }
.cl-name { display: flex; align-items: center; gap: .7rem; text-decoration: none; color: inherit; }
.cl-name:hover .cl-nm { color: var(--blue, #1d5fbf); }
.cl-nm { font-weight: 500; color: #1f2a37; display: flex; flex-direction: column; min-width: 0; }
.cl-sub { display: block; font-weight: 400; font-size: .76rem; color: #8a94a6; overflow-wrap: anywhere; }
.cl-av { flex: 0 0 auto; width: 2rem; height: 2rem; border-radius: .5rem; display: grid; place-items: center; font-size: .68rem; font-weight: 600; letter-spacing: .03em; background: #eef2f8; color: #3c4b63; }
.cl-type { display: inline-block; font-size: .72rem; padding: .16rem .55rem; border-radius: .35rem; background: #eef2fb; color: #2b4fa0; white-space: nowrap; }
.cl-type-school { background: #e8f6ee; color: #1c7a45; }
.cl-type-government { background: #e7f0f7; color: #1f5f86; }
.cl-type-npo { background: #f1ecfb; color: #6b3fb8; }
.cl-type-individual { background: #fdf1e2; color: #9a5b00; }
.cl-bill { color: #4b5563; font-size: .9rem; }
.cl-hold { color: #b3261e; font-weight: 500; }
.cl-act-h, .cl-act { text-align: right; white-space: nowrap; width: 1%; }
.cl-act form { display: inline; }
.cl-quote { display: inline-flex; align-items: center; gap: .3rem; border: 1px solid #dfe4ee; background: #fff; color: var(--navy, #23408f); font: inherit; font-size: .82rem; font-weight: 500; padding: .3rem .75rem; border-radius: .45rem; cursor: pointer; }
.cl-quote:hover { border-color: var(--navy, #23408f); background: #f4f7fd; }
.cl-count { margin: 0; padding: .8rem 1rem; font-size: .8rem; color: #8a94a6; border-top: 1px solid #edf0f5; }
.cl-empty { margin: 1rem; }
@media (max-width: 720px) {
  .cl-sort { margin-left: 0; }
  .cl-table .cl-tcol, .cl-table .cl-bcol, .cl-table td.cl-bill { display: none; }
  .cl-act-h { font-size: 0; }
  .cl-quote { padding: .3rem .5rem; font-size: 0; gap: 0; } .cl-quote svg { width: 16px; height: 16px; }
}
.cl-chk { width: 1%; padding-right: 0 !important; }
.cl-chk input { margin: 0; width: 1rem; height: 1rem; }
.cl-foot { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; border-top: 1px solid #edf0f5; padding-right: 1rem; }
.cl-foot .cl-count { border-top: 0; }
.cl-bulk { display: flex; align-items: center; gap: .7rem; flex-wrap: wrap; padding: .5rem 0; }
.cu-del .meta { margin: .2rem 0 .7rem; }
